From f9e6b20b60da9162d653a131a24d7caedfc7f5ba Mon Sep 17 00:00:00 2001
From: James Maslek <jmaslek11@gmail.com>
Date: Mon, 3 Apr 2023 06:38:02 -0400
Subject: [PATCH 1/4] Add --sheet-name to load on econometrics and forecast
 (#4525)

* Add sheet-name to econometrics load

* Also do forecasting load

* Handle error when sheet not found
---
 openbb_terminal/common/common_model.py          | 11 ++++++++++-
 .../econometrics/econometrics_controller.py     | 17 ++++++++++++++++-
 openbb_terminal/forecast/forecast_controller.py | 17 ++++++++++++++++-
 3 files changed, 42 insertions(+), 3 deletions(-)

diff --git a/openbb_terminal/common/common_model.py b/openbb_terminal/common/common_model.py
index 1130469b4de0..bbf1d98cabf6 100644
--- a/openbb_terminal/common/common_model.py
+++ b/openbb_terminal/common/common_model.py
@@ -52,6 +52,7 @@
 @log_start_end(log=logger)
 def load(
     file: str,
+    sheet_name: Optional[str] = None,
     data_files: Optional[Dict[Any, Any]] = None,
     data_examples: Optional[Dict[Any, Any]] = None,
 ) -> pd.DataFrame:
@@ -90,7 +91,15 @@ def load(
 
     try:
         if file_type == ".xlsx":
-            data = pd.read_excel(full_file)
+            try:
+                data = (
+                    pd.read_excel(full_file)
+                    if sheet_name is None
+                    else pd.read_excel(full_file, sheet_name=sheet_name)
+                )
+            except ValueError as err:
+                console.print(f"[red]{err}[/red]\n")
+                return pd.DataFrame()
         elif file_type == ".csv":
             data = pd.read_csv(full_file)
         else:
diff --git a/openbb_terminal/econometrics/econometrics_controller.py b/openbb_terminal/econometrics/econometrics_controller.py
index 1e39c7d83b43..cf1233a1cf12 100644
--- a/openbb_terminal/econometrics/econometrics_controller.py
+++ b/openbb_terminal/econometrics/econometrics_controller.py
@@ -170,6 +170,7 @@ def __init__(self, queue: Optional[List[str]] = None):
                 "-a": "-alias",
                 "--examples": None,
                 "-e": "--examples",
+                "--sheet-name": None,
             }
 
             for feature in ["export", "show", "desc", "clear", "index"]:
@@ -349,6 +350,13 @@ def call_load(self, other_args: List[str]):
             default=False,
             dest="examples",
         )
+        parser.add_argument(
+            "--sheet-name",
+            dest="sheet_name",
+            default=None,
+            nargs="+",
+            help="Name of excel sheet to save data to. Only valid for .xlsx files.",
+        )
 
         if other_args and "-" not in other_args[0][0]:
             other_args.insert(0, "-f")
@@ -405,7 +413,14 @@ def call_load(self, other_args: List[str]):
                 )
                 return
 
-            data = common_model.load(file, self.DATA_FILES, common_model.DATA_EXAMPLES)
+            data = common_model.load(
+                file,
+                data_files=self.DATA_FILES,
+                data_examples=common_model.DATA_EXAMPLES,
+                sheet_name=" ".join(ns_parser.sheet_name)
+                if ns_parser.sheet_name
+                else None,
+            )
 
             if not data.empty:
                 data.columns = data.columns.map(lambda x: x.lower().replace(" ", "_"))
diff --git a/openbb_terminal/forecast/forecast_controller.py b/openbb_terminal/forecast/forecast_controller.py
index 25bffa9ef788..467194b61e67 100644
--- a/openbb_terminal/forecast/forecast_controller.py
+++ b/openbb_terminal/forecast/forecast_controller.py
@@ -772,6 +772,14 @@ def call_load(self, other_args: List[str]):
             help="Alias name to give to the dataset",
             type=str,
         )
+        parser.add_argument(
+            "--sheet-name",
+            dest="sheet_name",
+            default=None,
+            nargs="+",
+            help="Name of excel sheet to save data to. Only valid for .xlsx files.",
+        )
+
         # Load in any newly exported files
         self.DATA_FILES = forecast_model.get_default_files()
 
@@ -796,7 +804,14 @@ def call_load(self, other_args: List[str]):
                         "[red]The file/dataset selected has already been loaded.[/red]\n"
                     )
                     return
-                data = common_model.load(file, self.DATA_FILES, {})
+                data = common_model.load(
+                    file,
+                    data_files=self.DATA_FILES,
+                    data_examples={},
+                    sheet_name=" ".join(ns_parser.sheet_name)
+                    if ns_parser.sheet_name
+                    else None,
+                )
                 if not data.empty:
                     self.files_full.append([ns_parser.file, ns_parser.alias])
                     self.load(alias, data)

From 165abe248080803d07aa45f68385013fcea4ba4d Mon Sep 17 00:00:00 2001
From: jose-donato <43375532+jose-donato@users.noreply.github.com>
Date: Mon, 3 Apr 2023 11:58:40 +0100
Subject: [PATCH 2/4] Adds foundation for dark mode from user (#4623)

* fix: adds foundation for dark mode from user

* start theme sync with hub

* send chart_tables to backend

* last fix

* fix: pushed table html

* fix: footer size wasnt correct

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
---
 frontend-components/tables/src/App.tsx        |  7 ++
 .../tables/src/components/Table/index.tsx     | 23 +++++--
 .../tables/src/utils/useDarkMode.tsx          |  5 +-
 .../core/models/preferences_model.py          |  4 +-
 openbb_terminal/core/plots/backend.py         | 12 +++-
 openbb_terminal/core/plots/plotly_helper.py   |  4 +-
 openbb_terminal/core/plots/table.html         | 64 +++++++++----------
 openbb_terminal/core/session/constants.py     | 11 +++-
 openbb_terminal/core/session/hub_model.py     |  6 +-
 openbb_terminal/core/session/local_model.py   | 37 ++++++++---
 openbb_terminal/helper_funcs.py               |  8 ++-
 openbb_terminal/miscellaneous/i18n/en.yml     |  4 +-
 openbb_terminal/settings_controller.py        | 54 ++++++++--------
 13 files changed, 148 insertions(+), 91 deletions(-)

diff --git a/frontend-components/tables/src/App.tsx b/frontend-components/tables/src/App.tsx
index 13708f380a3a..f49c515d305d 100644
--- a/frontend-components/tables/src/App.tsx
+++ b/frontend-components/tables/src/App.tsx
@@ -80,6 +80,13 @@ function App() {
             title={title}
             data={transformedData.data}
             columns={transformedData.columns}
+            initialTheme={
+              data.theme &&
+              typeof data.theme === "string" &&
+              data.theme === "dark"
+                ? "dark"
+                : "light"
+            }
           />
         )}
       </DndProvider>
diff --git a/frontend-components/tables/src/components/Table/index.tsx b/frontend-components/tables/src/components/Table/index.tsx
index f251c15acfb7..4443b4cd988e 100644
--- a/frontend-components/tables/src/components/Table/index.tsx
+++ b/frontend-components/tables/src/components/Table/index.tsx
@@ -94,12 +94,22 @@ function getCellWidth(row, column) {
   }
 }
 
-export default function Table({ data, columns, title }: any) {  // source = ""
-  const [colorTheme, setTheme] = useDarkMode();
+export default function Table({
+  data,
+  columns,
+  title,
+  initialTheme,
+}: {
+  data: any[];
+  columns: any[];
+  title: string;
+  initialTheme: "light" | "dark";
+}) {
+  const [colorTheme, setTheme] = useDarkMode(initialTheme);
   const [darkMode, setDarkMode] = useState(
-    colorTheme === "light" ? true : false
+    colorTheme === "dark" ? true : false
   );
-  const toggleDarkMode = (checked) => {
+  const toggleDarkMode = (checked: boolean) => {
     setTheme(colorTheme);
     setDarkMode(checked);
   };
@@ -553,7 +563,10 @@ export default function Table({ data, columns, title }: any) {  // source = ""
                           <th
                             key={header.id}
                             colSpan={header.colSpan}
-                            className="text-grey-500 bg-grey-100 dark:bg-grey-850 font-normal text-left text-sm h-10"
+                            className="text-grey-500 bg-grey-100 dark:bg-grey-850 font-normal text-left text-sm h-10 p-4"
+                            style={{
+                              width: header.getSize(),
+                            }}
                           >
                             {header.isPlaceholder
                               ? null
diff --git a/frontend-components/tables/src/utils/useDarkMode.tsx b/frontend-components/tables/src/utils/useDarkMode.tsx
index 0c7ecc5d8cfd..9a631e2f6eea 100644
--- a/frontend-components/tables/src/utils/useDarkMode.tsx
+++ b/frontend-components/tables/src/utils/useDarkMode.tsx
@@ -1,14 +1,13 @@
 import { useState, useEffect } from "react";
 
-export default function useDarkMode() {
-  const [theme, setTheme] = useState(localStorage.theme);
+export default function useDarkMode(initialTheme: "dark" | "light") {
+  const [theme, setTheme] = useState(initialTheme);
   const colorTheme = theme === "dark" ? "light" : "dark";
 
   useEffect(() => {
     const root = window.document.documentElement;
     root.classList.remove(colorTheme);
     root.classList.add(theme);
-    localStorage.setItem("theme", theme);
   }, [theme, colorTheme]);
 
   return [colorTheme, setTheme];
diff --git a/openbb_terminal/core/models/preferences_model.py b/openbb_terminal/core/models/preferences_model.py
index a8d58d205ea2..148a5b90e83c 100644
--- a/openbb_terminal/core/models/preferences_model.py
+++ b/openbb_terminal/core/models/preferences_model.py
@@ -1,5 +1,5 @@
 import os
-from typing import Optional
+from typing import Literal, Optional
 
 from pydantic import NonNegativeInt, PositiveFloat, PositiveInt
 from pydantic.dataclasses import dataclass
@@ -86,7 +86,7 @@ class PreferencesModel(BaseModel):
     MPL_STYLE: str = "dark"
     PMF_STYLE: str = "dark"
     RICH_STYLE: str = "dark"
-    PLOT_STYLE: str = "dark"
+    THEME: Literal["dark", "light"] = "dark"
 
     # PATHS
     PREFERRED_DATA_SOURCE_FILE: str = str(USER_DATA_SOURCES_DEFAULT_FILE)
diff --git a/openbb_terminal/core/plots/backend.py b/openbb_terminal/core/plots/backend.py
index 167018a96e5c..cd1d89c31532 100644
--- a/openbb_terminal/core/plots/backend.py
+++ b/openbb_terminal/core/plots/backend.py
@@ -221,7 +221,13 @@ async def process_image(self, export_image: Path):
                     opener = "open" if sys.platform == "darwin" else "xdg-open"
                     subprocess.check_call([opener, export_image])  # nosec: B603
 
-    def send_table(self, df_table: pd.DataFrame, title: str = "", source: str = ""):
+    def send_table(
+        self,
+        df_table: pd.DataFrame,
+        title: str = "",
+        source: str = "",
+        theme: str = "dark",
+    ):
         """Send table data to the backend to be displayed in a table.
 
         Parameters
@@ -232,6 +238,8 @@ def send_table(self, df_table: pd.DataFrame, title: str = "", source: str = ""):
             Title to display in the window, by default ""
         source : str, optional
             Source of the data, by default ""
+        theme : light or dark, optional
+            Theme of the table, by default "light"
         """
         self.loop.run_until_complete(self.check_backend())
 
@@ -260,7 +268,7 @@ def send_table(self, df_table: pd.DataFrame, title: str = "", source: str = ""):
         width = max(int(min(sum(columnwidth) * 9.7, self.WIDTH + 100)), 800)
 
         json_data = json.loads(df_table.to_json(orient="split"))
-        json_data.update(dict(title=title, source=source or ""))
+        json_data.update(dict(title=title, source=source or "", theme=theme or "dark"))
 
         self.outgoing.append(
             json.dumps(
diff --git a/openbb_terminal/core/plots/plotly_helper.py b/openbb_terminal/core/plots/plotly_helper.py
index 39a3f0be29a1..6704d6d7263f 100644
--- a/openbb_terminal/core/plots/plotly_helper.py
+++ b/openbb_terminal/core/plots/plotly_helper.py
@@ -108,7 +108,7 @@ def apply_console_style(self, style: Optional[str] = "") -> None:
     def apply_style(self, style: Optional[str] = "") -> None:
         """Apply the style to the libraries."""
         if not style:
-            style = get_current_user().preferences.PLOT_STYLE
+            style = get_current_user().preferences.THEME
 
         if style != self.plt_style:
             self.load_style(style)
@@ -243,7 +243,7 @@ def get_colors(self, reverse: bool = False) -> list:
 
 
 theme = TerminalStyle(
-    get_current_user().preferences.PLOT_STYLE, get_current_user().preferences.RICH_STYLE
+    get_current_user().preferences.THEME, get_current_user().preferences.RICH_STYLE
 )
 theme.apply_style()
 
diff --git a/openbb_terminal/core/plots/table.html b/openbb_terminal/core/plots/table.html
index 4679644efe2f..0dff5a0fa40f 100644
--- a/openbb_terminal/core/plots/table.html
+++ b/openbb_terminal/core/plots/table.html
@@ -51,29 +51,29 @@
  *
  * This source code is licensed under the MIT license found in the
  * LICENSE file in the root directory of this source tree.
- */var sy=x,w1=60103;La.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Jd=Symbol.for;w1=Jd("react.element"),La.Fragment=Jd("react.fragment")}var ly=sy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uy=Object.prototype.hasOwnProperty,cy={key:!0,ref:!0,__self:!0,__source:!0};function y1(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)uy.call(t,n)&&!cy.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:w1,type:e,key:o,ref:a,props:i,_owner:ly.current}}La.jsx=y1;La.jsxs=y1;(function(e){e.exports=La})(Yw);const E1=ma.Fragment,Z=ma.jsx,Te=ma.jsxs;var Qr={},fy={get exports(){return Qr},set exports(e){Qr=e}},dr={},Nc={},dy={get exports(){return Nc},set exports(e){Nc=e}},S1={};/** @license React v0.20.2
+ */var sy=x,w1=60103;La.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Jd=Symbol.for;w1=Jd("react.element"),La.Fragment=Jd("react.fragment")}var ly=sy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,uy=Object.prototype.hasOwnProperty,cy={key:!0,ref:!0,__self:!0,__source:!0};function y1(e,t,r){var n,i={},o=null,a=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(n in t)uy.call(t,n)&&!cy.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:w1,type:e,key:o,ref:a,props:i,_owner:ly.current}}La.jsx=y1;La.jsxs=y1;(function(e){e.exports=La})(Yw);const E1=ma.Fragment,Q=ma.jsx,Te=ma.jsxs;var Qr={},fy={get exports(){return Qr},set exports(e){Qr=e}},dr={},Nc={},dy={get exports(){return Nc},set exports(e){Nc=e}},S1={};/** @license React v0.20.2
  * scheduler.production.min.js
  *
  * Copyright (c) Facebook, Inc. and its affiliates.
  *
  * This source code is licensed under the MIT license found in the
  * LICENSE file in the root directory of this source tree.
- */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,u=null,c=function(){if(l!==null)try{var K=e.unstable_now();l(!0,K),l=null}catch(O){throw setTimeout(c,0),O}};t=function(K){l!==null?setTimeout(t,0,K):(l=K,setTimeout(c,0))},r=function(K,O){u=setTimeout(K,O)},n=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,p=null,g=-1,v=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},i=function(){},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<K?Math.floor(1e3/K):5};var y=new MessageChannel,S=y.port2;y.port1.onmessage=function(){if(p!==null){var K=e.unstable_now();w=K+v;try{p(!0,K)?S.postMessage(null):(m=!1,p=null)}catch(O){throw S.postMessage(null),O}}else m=!1},t=function(K){p=K,m||(m=!0,S.postMessage(null))},r=function(K,O){g=f(function(){K(e.unstable_now())},O)},n=function(){h(g),g=-1}}function N(K,O){var b=K.length;K.push(O);e:for(;;){var k=b-1>>>1,F=K[k];if(F!==void 0&&0<C(F,O))K[k]=O,K[b]=F,b=k;else break e}}function M(K){return K=K[0],K===void 0?null:K}function _(K){var O=K[0];if(O!==void 0){var b=K.pop();if(b!==O){K[0]=b;e:for(var k=0,F=K.length;k<F;){var H=2*(k+1)-1,G=K[H],Y=H+1,te=K[Y];if(G!==void 0&&0>C(G,b))te!==void 0&&0>C(te,G)?(K[k]=te,K[Y]=b,k=Y):(K[k]=G,K[H]=b,k=H);else if(te!==void 0&&0>C(te,b))K[k]=te,K[Y]=b,k=Y;else break e}}return O}return null}function C(K,O){var b=K.sortIndex-O.sortIndex;return b!==0?b:K.id-O.id}var A=[],L=[],U=1,B=null,V=3,q=!1,ne=!1,we=!1;function ve(K){for(var O=M(L);O!==null;){if(O.callback===null)_(L);else if(O.startTime<=K)_(L),O.sortIndex=O.expirationTime,N(A,O);else break;O=M(L)}}function _e(K){if(we=!1,ve(K),!ne)if(M(A)!==null)ne=!0,t(J);else{var O=M(L);O!==null&&r(_e,O.startTime-K)}}function J(K,O){ne=!1,we&&(we=!1,n()),q=!0;var b=V;try{for(ve(O),B=M(A);B!==null&&(!(B.expirationTime>O)||K&&!e.unstable_shouldYield());){var k=B.callback;if(typeof k=="function"){B.callback=null,V=B.priorityLevel;var F=k(B.expirationTime<=O);O=e.unstable_now(),typeof F=="function"?B.callback=F:B===M(A)&&_(A),ve(O)}else _(A);B=M(A)}if(B!==null)var H=!0;else{var G=M(L);G!==null&&r(_e,G.startTime-O),H=!1}return H}finally{B=null,V=b,q=!1}}var ce=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(K){K.callback=null},e.unstable_continueExecution=function(){ne||q||(ne=!0,t(J))},e.unstable_getCurrentPriorityLevel=function(){return V},e.unstable_getFirstCallbackNode=function(){return M(A)},e.unstable_next=function(K){switch(V){case 1:case 2:case 3:var O=3;break;default:O=V}var b=V;V=O;try{return K()}finally{V=b}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=ce,e.unstable_runWithPriority=function(K,O){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var b=V;V=K;try{return O()}finally{V=b}},e.unstable_scheduleCallback=function(K,O,b){var k=e.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?k+b:k):b=k,K){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=b+F,K={id:U++,callback:O,priorityLevel:K,startTime:b,expirationTime:F,sortIndex:-1},b>k?(K.sortIndex=b,N(L,K),M(A)===null&&K===M(L)&&(we?n():we=!0,r(_e,b-k))):(K.sortIndex=F,N(A,K),ne||q||(ne=!0,t(J))),K},e.unstable_wrapCallback=function(K){var O=V;return function(){var b=V;V=O;try{return K.apply(this,arguments)}finally{V=b}}}})(S1);(function(e){e.exports=S1})(dy);/** @license React v17.0.2
+ */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,u=null,c=function(){if(l!==null)try{var K=e.unstable_now();l(!0,K),l=null}catch(C){throw setTimeout(c,0),C}};t=function(K){l!==null?setTimeout(t,0,K):(l=K,setTimeout(c,0))},r=function(K,C){u=setTimeout(K,C)},n=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,p=null,g=-1,v=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},i=function(){},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<K?Math.floor(1e3/K):5};var y=new MessageChannel,S=y.port2;y.port1.onmessage=function(){if(p!==null){var K=e.unstable_now();w=K+v;try{p(!0,K)?S.postMessage(null):(m=!1,p=null)}catch(C){throw S.postMessage(null),C}}else m=!1},t=function(K){p=K,m||(m=!0,S.postMessage(null))},r=function(K,C){g=f(function(){K(e.unstable_now())},C)},n=function(){h(g),g=-1}}function b(K,C){var N=K.length;K.push(C);e:for(;;){var k=N-1>>>1,F=K[k];if(F!==void 0&&0<A(F,C))K[k]=C,K[N]=F,N=k;else break e}}function M(K){return K=K[0],K===void 0?null:K}function _(K){var C=K[0];if(C!==void 0){var N=K.pop();if(N!==C){K[0]=N;e:for(var k=0,F=K.length;k<F;){var H=2*(k+1)-1,z=K[H],J=H+1,Z=K[J];if(z!==void 0&&0>A(z,N))Z!==void 0&&0>A(Z,z)?(K[k]=Z,K[J]=N,k=J):(K[k]=z,K[H]=N,k=H);else if(Z!==void 0&&0>A(Z,N))K[k]=Z,K[J]=N,k=J;else break e}}return C}return null}function A(K,C){var N=K.sortIndex-C.sortIndex;return N!==0?N:K.id-C.id}var R=[],L=[],U=1,B=null,V=3,Y=!1,ne=!1,me=!1;function xe(K){for(var C=M(L);C!==null;){if(C.callback===null)_(L);else if(C.startTime<=K)_(L),C.sortIndex=C.expirationTime,b(R,C);else break;C=M(L)}}function _e(K){if(me=!1,xe(K),!ne)if(M(R)!==null)ne=!0,t(ie);else{var C=M(L);C!==null&&r(_e,C.startTime-K)}}function ie(K,C){ne=!1,me&&(me=!1,n()),Y=!0;var N=V;try{for(xe(C),B=M(R);B!==null&&(!(B.expirationTime>C)||K&&!e.unstable_shouldYield());){var k=B.callback;if(typeof k=="function"){B.callback=null,V=B.priorityLevel;var F=k(B.expirationTime<=C);C=e.unstable_now(),typeof F=="function"?B.callback=F:B===M(R)&&_(R),xe(C)}else _(R);B=M(R)}if(B!==null)var H=!0;else{var z=M(L);z!==null&&r(_e,z.startTime-C),H=!1}return H}finally{B=null,V=N,Y=!1}}var ae=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(K){K.callback=null},e.unstable_continueExecution=function(){ne||Y||(ne=!0,t(ie))},e.unstable_getCurrentPriorityLevel=function(){return V},e.unstable_getFirstCallbackNode=function(){return M(R)},e.unstable_next=function(K){switch(V){case 1:case 2:case 3:var C=3;break;default:C=V}var N=V;V=C;try{return K()}finally{V=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=ae,e.unstable_runWithPriority=function(K,C){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var N=V;V=K;try{return C()}finally{V=N}},e.unstable_scheduleCallback=function(K,C,N){var k=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?k+N:k):N=k,K){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=N+F,K={id:U++,callback:C,priorityLevel:K,startTime:N,expirationTime:F,sortIndex:-1},N>k?(K.sortIndex=N,b(L,K),M(R)===null&&K===M(L)&&(me?n():me=!0,r(_e,N-k))):(K.sortIndex=F,b(R,K),ne||Y||(ne=!0,t(ie))),K},e.unstable_wrapCallback=function(K){var C=V;return function(){var N=V;V=C;try{return K.apply(this,arguments)}finally{V=N}}}})(S1);(function(e){e.exports=S1})(dy);/** @license React v17.0.2
  * react-dom.production.min.js
  *
  * Copyright (c) Facebook, Inc. and its affiliates.
  *
  * This source code is licensed under the MIT license found in the
  * LICENSE file in the root directory of this source tree.
- */var zl=x,je=o1,ft=Nc;function se(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}if(!zl)throw Error(se(227));var _1=new Set,va={};function ai(e,t){Ji(e,t),Ji(e+"Capture",t)}function Ji(e,t){for(va[e]=t,e=0;e<t.length;e++)_1.add(t[e])}var Zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hy=/^[: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]*$/,eh=Object.prototype.hasOwnProperty,th={},rh={};function py(e){return eh.call(rh,e)?!0:eh.call(th,e)?!1:hy.test(e)?rh[e]=!0:(th[e]=!0,!1)}function gy(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function my(e,t,r,n){if(t===null||typeof t>"u"||gy(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 $t(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yt[e]=new $t(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yt[t]=new $t(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new $t(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new $t(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){yt[e]=new $t(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new $t(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yt[e]=new $t(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yt[e]=new $t(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yt[e]=new $t(e,5,!1,e.toLowerCase(),null,!1,!1)});var i0=/[\-:]([a-z])/g;function o0(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(i0,o0);yt[t]=new $t(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(i0,o0);yt[t]=new $t(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(i0,o0);yt[t]=new $t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new $t(e,1,!1,e.toLowerCase(),null,!1,!1)});yt.xlinkHref=new $t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yt[e]=new $t(e,1,!1,e.toLowerCase(),null,!0,!0)});function a0(e,t,r,n){var i=yt.hasOwnProperty(t)?yt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(my(t,r,i,n)&&(r=null),n||i===null?py(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var si=zl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wo=60103,jn=60106,un=60107,s0=60108,qo=60114,l0=60109,u0=60110,Gl=60112,Qo=60113,Js=60120,jl=60115,c0=60116,f0=60121,d0=60128,T1=60129,h0=60130,$c=60131;if(typeof Symbol=="function"&&Symbol.for){var st=Symbol.for;Wo=st("react.element"),jn=st("react.portal"),un=st("react.fragment"),s0=st("react.strict_mode"),qo=st("react.profiler"),l0=st("react.provider"),u0=st("react.context"),Gl=st("react.forward_ref"),Qo=st("react.suspense"),Js=st("react.suspense_list"),jl=st("react.memo"),c0=st("react.lazy"),f0=st("react.block"),st("react.scope"),d0=st("react.opaque.id"),T1=st("react.debug_trace_mode"),h0=st("react.offscreen"),$c=st("react.legacy_hidden")}var nh=typeof Symbol=="function"&&Symbol.iterator;function Oo(e){return e===null||typeof e!="object"?null:(e=nh&&e[nh]||e["@@iterator"],typeof e=="function"?e:null)}var $u;function zo(e){if($u===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);$u=t&&t[1]||""}return`
+ */var zl=x,je=o1,ft=Nc;function le(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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."}if(!zl)throw Error(le(227));var _1=new Set,va={};function ai(e,t){Ji(e,t),Ji(e+"Capture",t)}function Ji(e,t){for(va[e]=t,e=0;e<t.length;e++)_1.add(t[e])}var Zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),hy=/^[: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]*$/,eh=Object.prototype.hasOwnProperty,th={},rh={};function py(e){return eh.call(rh,e)?!0:eh.call(th,e)?!1:hy.test(e)?rh[e]=!0:(th[e]=!0,!1)}function gy(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function my(e,t,r,n){if(t===null||typeof t>"u"||gy(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 $t(e,t,r,n,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var yt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){yt[e]=new $t(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];yt[t]=new $t(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new $t(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new $t(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){yt[e]=new $t(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new $t(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yt[e]=new $t(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yt[e]=new $t(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yt[e]=new $t(e,5,!1,e.toLowerCase(),null,!1,!1)});var i0=/[\-:]([a-z])/g;function o0(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(i0,o0);yt[t]=new $t(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(i0,o0);yt[t]=new $t(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(i0,o0);yt[t]=new $t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new $t(e,1,!1,e.toLowerCase(),null,!1,!1)});yt.xlinkHref=new $t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yt[e]=new $t(e,1,!1,e.toLowerCase(),null,!0,!0)});function a0(e,t,r,n){var i=yt.hasOwnProperty(t)?yt[t]:null,o=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");o||(my(t,r,i,n)&&(r=null),n||i===null?py(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var si=zl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Wo=60103,jn=60106,un=60107,s0=60108,qo=60114,l0=60109,u0=60110,Gl=60112,Qo=60113,Js=60120,jl=60115,c0=60116,f0=60121,d0=60128,T1=60129,h0=60130,$c=60131;if(typeof Symbol=="function"&&Symbol.for){var st=Symbol.for;Wo=st("react.element"),jn=st("react.portal"),un=st("react.fragment"),s0=st("react.strict_mode"),qo=st("react.profiler"),l0=st("react.provider"),u0=st("react.context"),Gl=st("react.forward_ref"),Qo=st("react.suspense"),Js=st("react.suspense_list"),jl=st("react.memo"),c0=st("react.lazy"),f0=st("react.block"),st("react.scope"),d0=st("react.opaque.id"),T1=st("react.debug_trace_mode"),h0=st("react.offscreen"),$c=st("react.legacy_hidden")}var nh=typeof Symbol=="function"&&Symbol.iterator;function Oo(e){return e===null||typeof e!="object"?null:(e=nh&&e[nh]||e["@@iterator"],typeof e=="function"?e:null)}var $u;function zo(e){if($u===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);$u=t&&t[1]||""}return`
 `+$u+e}var Mu=!1;function os(e,t){if(!e||Mu)return"";Mu=!0;var r=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(l){var n=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){n=l}e.call(t.prototype)}else{try{throw Error()}catch(l){n=l}e()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var i=l.stack.split(`
 `),o=n.stack.split(`
 `),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s])return`
-`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{Mu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?zo(e):""}function vy(e){switch(e.tag){case 5:return zo(e.type);case 16:return zo("Lazy");case 13:return zo("Suspense");case 19:return zo("SuspenseList");case 0:case 2:case 15:return e=os(e.type,!1),e;case 11:return e=os(e.type.render,!1),e;case 22:return e=os(e.type._render,!1),e;case 1:return e=os(e.type,!0),e;default:return""}}function Bi(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 un:return"Fragment";case jn:return"Portal";case qo:return"Profiler";case s0:return"StrictMode";case Qo:return"Suspense";case Js:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u0:return(e.displayName||"Context")+".Consumer";case l0:return(e._context.displayName||"Context")+".Provider";case Gl:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case jl:return Bi(e.type);case f0:return Bi(e._render);case c0:t=e._payload,e=e._init;try{return Bi(e(t))}catch{}}return null}function An(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function C1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xy(e){var t=C1(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function as(e){e._valueTracker||(e._valueTracker=xy(e))}function A1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=C1(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function el(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 Mc(e,t){var r=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ih(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=An(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function R1(e,t){t=t.checked,t!=null&&a0(e,"checked",t,!1)}function Lc(e,t){R1(e,t);var r=An(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Bc(e,t.type,An(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Bc(e,t,r){(t!=="number"||el(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function wy(e){var t="";return zl.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Uc(e,t){return e=je({children:void 0},t),(t=wy(t.children))&&(e.children=t),e}function Ui(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+An(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Hc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(se(91));return je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ah(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(se(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(se(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:An(r)}}function O1(e,t){var r=An(t.value),n=An(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function sh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Vc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function F1(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 Wc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?F1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ss,P1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==Vc.svg||"innerHTML"in e)e.innerHTML=t;else{for(ss=ss||document.createElement("div"),ss.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ss.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xa(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Zo={animationIterationCount:!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},yy=["Webkit","ms","Moz","O"];Object.keys(Zo).forEach(function(e){yy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zo[t]=Zo[e]})});function D1(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Zo.hasOwnProperty(e)&&Zo[e]?(""+t).trim():t+"px"}function I1(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=D1(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Ey=je({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 zc(e,t){if(t){if(Ey[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(se(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(se(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(se(61))}if(t.style!=null&&typeof t.style!="object")throw Error(se(62))}}function Gc(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}}function p0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jc=null,Hi=null,Vi=null;function lh(e){if(e=Ha(e)){if(typeof jc!="function")throw Error(se(280));var t=e.stateNode;t&&(t=Zl(t),jc(e.stateNode,e.type,t))}}function k1(e){Hi?Vi?Vi.push(e):Vi=[e]:Hi=e}function b1(){if(Hi){var e=Hi,t=Vi;if(Vi=Hi=null,lh(e),t)for(e=0;e<t.length;e++)lh(t[e])}}function g0(e,t){return e(t)}function N1(e,t,r,n,i){return e(t,r,n,i)}function m0(){}var $1=g0,Xn=!1,Lu=!1;function v0(){(Hi!==null||Vi!==null)&&(m0(),b1())}function Sy(e,t,r){if(Lu)return e(t,r);Lu=!0;try{return $1(e,t,r)}finally{Lu=!1,v0()}}function wa(e,t){var r=e.stateNode;if(r===null)return null;var n=Zl(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(se(231,t,typeof r));return r}var Xc=!1;if(Zr)try{var Fo={};Object.defineProperty(Fo,"passive",{get:function(){Xc=!0}}),window.addEventListener("test",Fo,Fo),window.removeEventListener("test",Fo,Fo)}catch{Xc=!1}function _y(e,t,r,n,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var Jo=!1,tl=null,rl=!1,Kc=null,Ty={onError:function(e){Jo=!0,tl=e}};function Cy(e,t,r,n,i,o,a,s,l){Jo=!1,tl=null,_y.apply(Ty,arguments)}function Ay(e,t,r,n,i,o,a,s,l){if(Cy.apply(this,arguments),Jo){if(Jo){var u=tl;Jo=!1,tl=null}else throw Error(se(198));rl||(rl=!0,Kc=u)}}function li(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function M1(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 uh(e){if(li(e)!==e)throw Error(se(188))}function Ry(e){var t=e.alternate;if(!t){if(t=li(e),t===null)throw Error(se(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return uh(i),e;if(o===n)return uh(i),t;o=o.sibling}throw Error(se(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error(se(189))}}if(r.alternate!==n)throw Error(se(190))}if(r.tag!==3)throw Error(se(188));return r.stateNode.current===r?e:t}function L1(e){if(e=Ry(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ch(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var B1,x0,U1,H1,Yc=!1,Rr=[],mn=null,vn=null,xn=null,ya=new Map,Ea=new Map,Po=[],fh="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 qc(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function dh(e,t){switch(e){case"focusin":case"focusout":mn=null;break;case"dragenter":case"dragleave":vn=null;break;case"mouseover":case"mouseout":xn=null;break;case"pointerover":case"pointerout":ya.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ea.delete(t.pointerId)}}function Do(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e=qc(t,r,n,i,o),t!==null&&(t=Ha(t),t!==null&&x0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Oy(e,t,r,n,i){switch(t){case"focusin":return mn=Do(mn,e,t,r,n,i),!0;case"dragenter":return vn=Do(vn,e,t,r,n,i),!0;case"mouseover":return xn=Do(xn,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return ya.set(o,Do(ya.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Ea.set(o,Do(Ea.get(o)||null,e,t,r,n,i)),!0}return!1}function Fy(e){var t=Kn(e.target);if(t!==null){var r=li(t);if(r!==null){if(t=r.tag,t===13){if(t=M1(r),t!==null){e.blockedOn=t,H1(e.lanePriority,function(){ft.unstable_runWithPriority(e.priority,function(){U1(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=S0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Ha(r),t!==null&&x0(t),e.blockedOn=r,!1;t.shift()}return!0}function hh(e,t,r){Bs(e)&&r.delete(t)}function Py(){for(Yc=!1;0<Rr.length;){var e=Rr[0];if(e.blockedOn!==null){e=Ha(e.blockedOn),e!==null&&B1(e);break}for(var t=e.targetContainers;0<t.length;){var r=S0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Rr.shift()}mn!==null&&Bs(mn)&&(mn=null),vn!==null&&Bs(vn)&&(vn=null),xn!==null&&Bs(xn)&&(xn=null),ya.forEach(hh),Ea.forEach(hh)}function Io(e,t){e.blockedOn===t&&(e.blockedOn=null,Yc||(Yc=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,Py)))}function V1(e){function t(i){return Io(i,e)}if(0<Rr.length){Io(Rr[0],e);for(var r=1;r<Rr.length;r++){var n=Rr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(mn!==null&&Io(mn,e),vn!==null&&Io(vn,e),xn!==null&&Io(xn,e),ya.forEach(t),Ea.forEach(t),r=0;r<Po.length;r++)n=Po[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Po.length&&(r=Po[0],r.blockedOn===null);)Fy(r),r.blockedOn===null&&Po.shift()}function ls(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ii={animationend:ls("Animation","AnimationEnd"),animationiteration:ls("Animation","AnimationIteration"),animationstart:ls("Animation","AnimationStart"),transitionend:ls("Transition","TransitionEnd")},Bu={},W1={};Zr&&(W1=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function Xl(e){if(Bu[e])return Bu[e];if(!Ii[e])return e;var t=Ii[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in W1)return Bu[e]=t[r];return e}var z1=Xl("animationend"),G1=Xl("animationiteration"),j1=Xl("animationstart"),X1=Xl("transitionend"),K1=new Map,w0=new Map,Dy=["abort","abort",z1,"animationEnd",G1,"animationIteration",j1,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",X1,"transitionEnd","waiting","waiting"];function y0(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),w0.set(n,t),K1.set(n,i),ai(i,[n])}}var Iy=ft.unstable_now;Iy();var Ve=8;function Fi(e){if(1&e)return Ve=15,1;if(2&e)return Ve=14,2;if(4&e)return Ve=13,4;var t=24&e;return t!==0?(Ve=12,t):e&32?(Ve=11,32):(t=192&e,t!==0?(Ve=10,t):e&256?(Ve=9,256):(t=3584&e,t!==0?(Ve=8,t):e&4096?(Ve=7,4096):(t=4186112&e,t!==0?(Ve=6,t):(t=62914560&e,t!==0?(Ve=5,t):e&67108864?(Ve=4,67108864):e&134217728?(Ve=3,134217728):(t=805306368&e,t!==0?(Ve=2,t):1073741824&e?(Ve=1,1073741824):(Ve=8,e))))))}function ky(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function by(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(se(358,e))}}function Sa(e,t){var r=e.pendingLanes;if(r===0)return Ve=0;var n=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(o!==0)n=o,i=Ve=15;else if(o=r&134217727,o!==0){var l=o&~a;l!==0?(n=Fi(l),i=Ve):(s&=o,s!==0&&(n=Fi(s),i=Ve))}else o=r&~a,o!==0?(n=Fi(o),i=Ve):s!==0&&(n=Fi(s),i=Ve);if(n===0)return 0;if(n=31-Rn(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&a)){if(Fi(t),i<=Ve)return t;Ve=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Rn(t),i=1<<r,n|=e[r],t&=~i;return n}function Y1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nl(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Pi(24&~t),e===0?nl(10,t):e;case 10:return e=Pi(192&~t),e===0?nl(8,t):e;case 8:return e=Pi(3584&~t),e===0&&(e=Pi(4186112&~t),e===0&&(e=512)),e;case 2:return t=Pi(805306368&~t),t===0&&(t=268435456),t}throw Error(se(358,e))}function Pi(e){return e&-e}function Uu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Kl(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Rn(t),e[t]=r}var Rn=Math.clz32?Math.clz32:My,Ny=Math.log,$y=Math.LN2;function My(e){return e===0?32:31-(Ny(e)/$y|0)|0}var Ly=ft.unstable_UserBlockingPriority,By=ft.unstable_runWithPriority,Us=!0;function Uy(e,t,r,n){Xn||m0();var i=E0,o=Xn;Xn=!0;try{N1(i,e,t,r,n)}finally{(Xn=o)||v0()}}function Hy(e,t,r,n){By(Ly,E0.bind(null,e,t,r,n))}function E0(e,t,r,n){if(Us){var i;if((i=(t&4)===0)&&0<Rr.length&&-1<fh.indexOf(e))e=qc(null,e,t,r,n),Rr.push(e);else{var o=S0(e,t,r,n);if(o===null)i&&dh(e,n);else{if(i){if(-1<fh.indexOf(e)){e=qc(o,e,t,r,n),Rr.push(e);return}if(Oy(o,e,t,r,n))return;dh(e,n)}lm(e,t,n,null,r)}}}}function S0(e,t,r,n){var i=p0(n);if(i=Kn(i),i!==null){var o=li(i);if(o===null)i=null;else{var a=o.tag;if(a===13){if(i=M1(o),i!==null)return i;i=null}else if(a===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return lm(e,t,n,i,r),null}var cn=null,_0=null,Hs=null;function q1(){if(Hs)return Hs;var e,t=_0,r=t.length,n,i="value"in cn?cn.value:cn.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return Hs=i.slice(e,1<n?1-n:void 0)}function Vs(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 us(){return!0}function ph(){return!1}function Jt(e){function t(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?us:ph,this.isPropagationStopped=ph,this}return je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=us)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=us)},persist:function(){},isPersistent:us}),t}var fo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},T0=Jt(fo),Ua=je({},fo,{view:0,detail:0}),Vy=Jt(Ua),Hu,Vu,ko,Yl=je({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:C0,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!==ko&&(ko&&e.type==="mousemove"?(Hu=e.screenX-ko.screenX,Vu=e.screenY-ko.screenY):Vu=Hu=0,ko=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:Vu}}),gh=Jt(Yl),Wy=je({},Yl,{dataTransfer:0}),zy=Jt(Wy),Gy=je({},Ua,{relatedTarget:0}),Wu=Jt(Gy),jy=je({},fo,{animationName:0,elapsedTime:0,pseudoElement:0}),Xy=Jt(jy),Ky=je({},fo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yy=Jt(Ky),qy=je({},fo,{data:0}),mh=Jt(qy),Qy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zy={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"},Jy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jy[e])?!!t[e]:!1}function C0(){return eE}var tE=je({},Ua,{key:function(e){if(e.key){var t=Qy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:C0,charCode:function(e){return e.type==="keypress"?Vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rE=Jt(tE),nE=je({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vh=Jt(nE),iE=je({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:C0}),oE=Jt(iE),aE=je({},fo,{propertyName:0,elapsedTime:0,pseudoElement:0}),sE=Jt(aE),lE=je({},Yl,{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}),uE=Jt(lE),cE=[9,13,27,32],A0=Zr&&"CompositionEvent"in window,ea=null;Zr&&"documentMode"in document&&(ea=document.documentMode);var fE=Zr&&"TextEvent"in window&&!ea,Q1=Zr&&(!A0||ea&&8<ea&&11>=ea),xh=String.fromCharCode(32),wh=!1;function Z1(e,t){switch(e){case"keyup":return cE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ki=!1;function dE(e,t){switch(e){case"compositionend":return J1(t);case"keypress":return t.which!==32?null:(wh=!0,xh);case"textInput":return e=t.data,e===xh&&wh?null:e;default:return null}}function hE(e,t){if(ki)return e==="compositionend"||!A0&&Z1(e,t)?(e=q1(),Hs=_0=cn=null,ki=!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 Q1&&t.locale!=="ko"?null:t.data;default:return null}}var pE={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 yh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pE[e.type]:t==="textarea"}function em(e,t,r,n){k1(n),t=il(t,"onChange"),0<t.length&&(r=new T0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ta=null,_a=null;function gE(e){om(e,0)}function ql(e){var t=Ni(e);if(A1(t))return e}function mE(e,t){if(e==="change")return t}var tm=!1;if(Zr){var zu;if(Zr){var Gu="oninput"in document;if(!Gu){var Eh=document.createElement("div");Eh.setAttribute("oninput","return;"),Gu=typeof Eh.oninput=="function"}zu=Gu}else zu=!1;tm=zu&&(!document.documentMode||9<document.documentMode)}function Sh(){ta&&(ta.detachEvent("onpropertychange",rm),_a=ta=null)}function rm(e){if(e.propertyName==="value"&&ql(_a)){var t=[];if(em(t,_a,e,p0(e)),e=gE,Xn)e(t);else{Xn=!0;try{g0(e,t)}finally{Xn=!1,v0()}}}}function vE(e,t,r){e==="focusin"?(Sh(),ta=t,_a=r,ta.attachEvent("onpropertychange",rm)):e==="focusout"&&Sh()}function xE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ql(_a)}function wE(e,t){if(e==="click")return ql(t)}function yE(e,t){if(e==="input"||e==="change")return ql(t)}function EE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ar=typeof Object.is=="function"?Object.is:EE,SE=Object.prototype.hasOwnProperty;function Ta(e,t){if(ar(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!SE.call(t,r[n])||!ar(e[r[n]],t[r[n]]))return!1;return!0}function _h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Th(e,t){var r=_h(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_h(r)}}function nm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ch(){for(var e=window,t=el();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=el(e.document)}return t}function Qc(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")}var _E=Zr&&"documentMode"in document&&11>=document.documentMode,bi=null,Zc=null,ra=null,Jc=!1;function Ah(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Jc||bi==null||bi!==el(n)||(n=bi,"selectionStart"in n&&Qc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ra&&Ta(ra,n)||(ra=n,n=il(Zc,"onSelect"),0<n.length&&(t=new T0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=bi)))}y0("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);y0("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);y0(Dy,2);for(var Rh="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ju=0;ju<Rh.length;ju++)w0.set(Rh[ju],0);Ji("onMouseEnter",["mouseout","mouseover"]);Ji("onMouseLeave",["mouseout","mouseover"]);Ji("onPointerEnter",["pointerout","pointerover"]);Ji("onPointerLeave",["pointerout","pointerover"]);ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ai("onBeforeInput",["compositionend","keypress","textInput","paste"]);ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Go="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),im=new Set("cancel close invalid load scroll toggle".split(" ").concat(Go));function Oh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Ay(n,t,void 0,e),e.currentTarget=null}function om(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Oh(i,s,u),o=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Oh(i,s,u),o=l}}}if(rl)throw e=Kc,rl=!1,Kc=null,e}function We(e,t){var r=cm(t),n=e+"__bubble";r.has(n)||(sm(t,e,2,!1),r.add(n))}var Fh="_reactListening"+Math.random().toString(36).slice(2);function am(e){e[Fh]||(e[Fh]=!0,_1.forEach(function(t){im.has(t)||Ph(t,!1,e,null),Ph(t,!0,e,null)}))}function Ph(e,t,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=r;if(e==="selectionchange"&&r.nodeType!==9&&(o=r.ownerDocument),n!==null&&!t&&im.has(e)){if(e!=="scroll")return;i|=2,o=n}var a=cm(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),sm(o,e,i,t),a.add(s))}function sm(e,t,r,n){var i=w0.get(t);switch(i===void 0?2:i){case 0:i=Uy;break;case 1:i=Hy;break;default:i=E0}r=i.bind(null,t,r,e),i=void 0,!Xc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function lm(e,t,r,n,i){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Kn(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}Sy(function(){var u=o,c=p0(r),f=[];e:{var h=K1.get(e);if(h!==void 0){var d=T0,m=e;switch(e){case"keypress":if(Vs(r)===0)break e;case"keydown":case"keyup":d=rE;break;case"focusin":m="focus",d=Wu;break;case"focusout":m="blur",d=Wu;break;case"beforeblur":case"afterblur":d=Wu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=zy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=oE;break;case z1:case G1:case j1:d=Xy;break;case X1:d=sE;break;case"scroll":d=Vy;break;case"wheel":d=uE;break;case"copy":case"cut":case"paste":d=Yy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=vh}var p=(t&4)!==0,g=!p&&e==="scroll",v=p?h!==null?h+"Capture":null:h;p=[];for(var w=u,y;w!==null;){y=w;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=wa(w,v),S!=null&&p.push(Ca(w,S,y)))),g)break;w=w.return}0<p.length&&(h=new d(h,m,null,r,c),f.push({event:h,listeners:p}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",h&&!(t&16)&&(m=r.relatedTarget||r.fromElement)&&(Kn(m)||m[ho]))break e;if((d||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,d?(m=r.relatedTarget||r.toElement,d=u,m=m?Kn(m):null,m!==null&&(g=li(m),m!==g||m.tag!==5&&m.tag!==6)&&(m=null)):(d=null,m=u),d!==m)){if(p=gh,S="onMouseLeave",v="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(p=vh,S="onPointerLeave",v="onPointerEnter",w="pointer"),g=d==null?h:Ni(d),y=m==null?h:Ni(m),h=new p(S,w+"leave",d,r,c),h.target=g,h.relatedTarget=y,S=null,Kn(c)===u&&(p=new p(v,w+"enter",m,r,c),p.target=y,p.relatedTarget=g,S=p),g=S,d&&m)t:{for(p=d,v=m,w=0,y=p;y;y=Ei(y))w++;for(y=0,S=v;S;S=Ei(S))y++;for(;0<w-y;)p=Ei(p),w--;for(;0<y-w;)v=Ei(v),y--;for(;w--;){if(p===v||v!==null&&p===v.alternate)break t;p=Ei(p),v=Ei(v)}p=null}else p=null;d!==null&&Dh(f,h,d,p,!1),m!==null&&g!==null&&Dh(f,g,m,p,!0)}}e:{if(h=u?Ni(u):window,d=h.nodeName&&h.nodeName.toLowerCase(),d==="select"||d==="input"&&h.type==="file")var N=mE;else if(yh(h))if(tm)N=yE;else{N=xE;var M=vE}else(d=h.nodeName)&&d.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(N=wE);if(N&&(N=N(e,u))){em(f,N,r,c);break e}M&&M(e,h,u),e==="focusout"&&(M=h._wrapperState)&&M.controlled&&h.type==="number"&&Bc(h,"number",h.value)}switch(M=u?Ni(u):window,e){case"focusin":(yh(M)||M.contentEditable==="true")&&(bi=M,Zc=u,ra=null);break;case"focusout":ra=Zc=bi=null;break;case"mousedown":Jc=!0;break;case"contextmenu":case"mouseup":case"dragend":Jc=!1,Ah(f,r,c);break;case"selectionchange":if(_E)break;case"keydown":case"keyup":Ah(f,r,c)}var _;if(A0)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else ki?Z1(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(Q1&&r.locale!=="ko"&&(ki||C!=="onCompositionStart"?C==="onCompositionEnd"&&ki&&(_=q1()):(cn=c,_0="value"in cn?cn.value:cn.textContent,ki=!0)),M=il(u,C),0<M.length&&(C=new mh(C,e,null,r,c),f.push({event:C,listeners:M}),_?C.data=_:(_=J1(r),_!==null&&(C.data=_)))),(_=fE?dE(e,r):hE(e,r))&&(u=il(u,"onBeforeInput"),0<u.length&&(c=new mh("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=_))}om(f,t)})}function Ca(e,t,r){return{instance:e,listener:t,currentTarget:r}}function il(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=wa(e,r),o!=null&&n.unshift(Ca(e,o,i)),o=wa(e,t),o!=null&&n.push(Ca(e,o,i))),e=e.return}return n}function Ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dh(e,t,r,n,i){for(var o=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=wa(r,o),l!=null&&a.unshift(Ca(r,l,s))):i||(l=wa(r,o),l!=null&&a.push(Ca(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}function ol(){}var Xu=null,Ku=null;function um(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ef(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ih=typeof setTimeout=="function"?setTimeout:void 0,TE=typeof clearTimeout=="function"?clearTimeout:void 0;function R0(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Wi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function kh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Yu=0;function CE(e){return{$$typeof:d0,toString:e,valueOf:e}}var Ql=Math.random().toString(36).slice(2),fn="__reactFiber$"+Ql,al="__reactProps$"+Ql,ho="__reactContainer$"+Ql,bh="__reactEvents$"+Ql;function Kn(e){var t=e[fn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ho]||r[fn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=kh(e);e!==null;){if(r=e[fn])return r;e=kh(e)}return t}e=r,r=e.parentNode}return null}function Ha(e){return e=e[fn]||e[ho],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ni(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(se(33))}function Zl(e){return e[al]||null}function cm(e){var t=e[bh];return t===void 0&&(t=e[bh]=new Set),t}var tf=[],$i=-1;function $n(e){return{current:e}}function ze(e){0>$i||(e.current=tf[$i],tf[$i]=null,$i--)}function Ze(e,t){$i++,tf[$i]=e.current,e.current=t}var On={},Ft=$n(On),Ht=$n(!1),Jn=On;function eo(e,t){var r=e.type.contextTypes;if(!r)return On;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Vt(e){return e=e.childContextTypes,e!=null}function sl(){ze(Ht),ze(Ft)}function Nh(e,t,r){if(Ft.current!==On)throw Error(se(168));Ze(Ft,t),Ze(Ht,r)}function fm(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(se(108,Bi(t)||"Unknown",i));return je({},r,n)}function Ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Jn=Ft.current,Ze(Ft,e),Ze(Ht,Ht.current),!0}function $h(e,t,r){var n=e.stateNode;if(!n)throw Error(se(169));r?(e=fm(e,t,Jn),n.__reactInternalMemoizedMergedChildContext=e,ze(Ht),ze(Ft),Ze(Ft,e)):ze(Ht),Ze(Ht,r)}var O0=null,Qn=null,AE=ft.unstable_runWithPriority,F0=ft.unstable_scheduleCallback,rf=ft.unstable_cancelCallback,RE=ft.unstable_shouldYield,Mh=ft.unstable_requestPaint,nf=ft.unstable_now,OE=ft.unstable_getCurrentPriorityLevel,Jl=ft.unstable_ImmediatePriority,dm=ft.unstable_UserBlockingPriority,hm=ft.unstable_NormalPriority,pm=ft.unstable_LowPriority,gm=ft.unstable_IdlePriority,qu={},FE=Mh!==void 0?Mh:function(){},Ur=null,zs=null,Qu=!1,Lh=nf(),Ct=1e4>Lh?nf:function(){return nf()-Lh};function to(){switch(OE()){case Jl:return 99;case dm:return 98;case hm:return 97;case pm:return 96;case gm:return 95;default:throw Error(se(332))}}function mm(e){switch(e){case 99:return Jl;case 98:return dm;case 97:return hm;case 96:return pm;case 95:return gm;default:throw Error(se(332))}}function ei(e,t){return e=mm(e),AE(e,t)}function Aa(e,t,r){return e=mm(e),F0(e,t,r)}function br(){if(zs!==null){var e=zs;zs=null,rf(e)}vm()}function vm(){if(!Qu&&Ur!==null){Qu=!0;var e=0;try{var t=Ur;ei(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Ur=null}catch(r){throw Ur!==null&&(Ur=Ur.slice(e+1)),F0(Jl,br),r}finally{Qu=!1}}}var PE=si.ReactCurrentBatchConfig;function vr(e,t){if(e&&e.defaultProps){t=je({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var ll=$n(null),ul=null,Mi=null,cl=null;function P0(){cl=Mi=ul=null}function D0(e){var t=ll.current;ze(ll),e.type._context._currentValue=t}function xm(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function zi(e,t){ul=e,cl=Mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yr=!0),e.firstContext=null)}function ur(e,t){if(cl!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(cl=e,t=1073741823),t={context:e,observedBits:t,next:null},Mi===null){if(ul===null)throw Error(se(308));Mi=t,ul.dependencies={lanes:0,firstContext:t,responders:null}}else Mi=Mi.next=t;return e._currentValue}var sn=!1;function I0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function wm(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 wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yn(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function Bh(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ra(e,t,r,n){var i=e.updateQueue;sn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;if(c!==null){c=c.updateQueue;var f=c.lastBaseUpdate;f!==a&&(f===null?c.firstBaseUpdate=u:f.next=u,c.lastBaseUpdate=l)}}if(o!==null){f=i.baseState,a=0,c=u=l=null;do{s=o.lane;var h=o.eventTime;if((n&s)===s){c!==null&&(c=c.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var d=e,m=o;switch(s=t,h=r,m.tag){case 1:if(d=m.payload,typeof d=="function"){f=d.call(h,f,s);break e}f=d;break e;case 3:d.flags=d.flags&-4097|64;case 0:if(d=m.payload,s=typeof d=="function"?d.call(h,f,s):d,s==null)break e;f=je({},f,s);break e;case 2:sn=!0}}o.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[o]:s.push(o))}else h={eventTime:h,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,a|=s;if(o=o.next,o===null){if(s=i.shared.pending,s===null)break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,Wa|=a,e.lanes=a,e.memoizedState=f}}function Uh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(se(191,i));i.call(n)}}}var ym=new zl.Component().refs;function fl(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:je({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var eu={isMounted:function(e){return(e=e._reactInternals)?li(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Qt(),i=En(e),o=wn(n,i);o.payload=t,r!=null&&(o.callback=r),yn(e,o),Sn(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Qt(),i=En(e),o=wn(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),yn(e,o),Sn(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Qt(),n=En(e),i=wn(r,n);i.tag=2,t!=null&&(i.callback=t),yn(e,i),Sn(e,n,r)}};function Hh(e,t,r,n,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,a):t.prototype&&t.prototype.isPureReactComponent?!Ta(r,n)||!Ta(i,o):!0}function Em(e,t,r){var n=!1,i=On,o=t.contextType;return typeof o=="object"&&o!==null?o=ur(o):(i=Vt(t)?Jn:Ft.current,n=t.contextTypes,o=(n=n!=null)?eo(e,i):On),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=eu,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vh(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&eu.enqueueReplaceState(t,t.state,null)}function of(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=ym,I0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ur(o):(o=Vt(t)?Jn:Ft.current,i.context=eo(e,o)),Ra(e,r,i,n),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(fl(e,t,o,r),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&&eu.enqueueReplaceState(i,i.state,null),Ra(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var cs=Array.isArray;function bo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(se(309));var n=r.stateNode}if(!n)throw Error(se(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=n.refs;a===ym&&(a=n.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(se(284));if(!r._owner)throw Error(se(290,e))}return e}function fs(e,t){if(e.type!=="textarea")throw Error(se(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Sm(e){function t(g,v){if(e){var w=g.lastEffect;w!==null?(w.nextEffect=v,g.lastEffect=v):g.firstEffect=g.lastEffect=v,v.nextEffect=null,v.flags=8}}function r(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function n(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function i(g,v){return g=Pn(g,v),g.index=0,g.sibling=null,g}function o(g,v,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<v?(g.flags=2,v):w):(g.flags=2,v)):v}function a(g){return e&&g.alternate===null&&(g.flags=2),g}function s(g,v,w,y){return v===null||v.tag!==6?(v=rc(w,g.mode,y),v.return=g,v):(v=i(v,w),v.return=g,v)}function l(g,v,w,y){return v!==null&&v.elementType===w.type?(y=i(v,w.props),y.ref=bo(g,v,w),y.return=g,y):(y=Ks(w.type,w.key,w.props,null,g.mode,y),y.ref=bo(g,v,w),y.return=g,y)}function u(g,v,w,y){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=nc(w,g.mode,y),v.return=g,v):(v=i(v,w.children||[]),v.return=g,v)}function c(g,v,w,y,S){return v===null||v.tag!==7?(v=Ki(w,g.mode,y,S),v.return=g,v):(v=i(v,w),v.return=g,v)}function f(g,v,w){if(typeof v=="string"||typeof v=="number")return v=rc(""+v,g.mode,w),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Wo:return w=Ks(v.type,v.key,v.props,null,g.mode,w),w.ref=bo(g,null,v),w.return=g,w;case jn:return v=nc(v,g.mode,w),v.return=g,v}if(cs(v)||Oo(v))return v=Ki(v,g.mode,w,null),v.return=g,v;fs(g,v)}return null}function h(g,v,w,y){var S=v!==null?v.key:null;if(typeof w=="string"||typeof w=="number")return S!==null?null:s(g,v,""+w,y);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Wo:return w.key===S?w.type===un?c(g,v,w.props.children,y,S):l(g,v,w,y):null;case jn:return w.key===S?u(g,v,w,y):null}if(cs(w)||Oo(w))return S!==null?null:c(g,v,w,y,null);fs(g,w)}return null}function d(g,v,w,y,S){if(typeof y=="string"||typeof y=="number")return g=g.get(w)||null,s(v,g,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Wo:return g=g.get(y.key===null?w:y.key)||null,y.type===un?c(v,g,y.props.children,S,y.key):l(v,g,y,S);case jn:return g=g.get(y.key===null?w:y.key)||null,u(v,g,y,S)}if(cs(y)||Oo(y))return g=g.get(w)||null,c(v,g,y,S,null);fs(v,y)}return null}function m(g,v,w,y){for(var S=null,N=null,M=v,_=v=0,C=null;M!==null&&_<w.length;_++){M.index>_?(C=M,M=null):C=M.sibling;var A=h(g,M,w[_],y);if(A===null){M===null&&(M=C);break}e&&M&&A.alternate===null&&t(g,M),v=o(A,v,_),N===null?S=A:N.sibling=A,N=A,M=C}if(_===w.length)return r(g,M),S;if(M===null){for(;_<w.length;_++)M=f(g,w[_],y),M!==null&&(v=o(M,v,_),N===null?S=M:N.sibling=M,N=M);return S}for(M=n(g,M);_<w.length;_++)C=d(M,g,_,w[_],y),C!==null&&(e&&C.alternate!==null&&M.delete(C.key===null?_:C.key),v=o(C,v,_),N===null?S=C:N.sibling=C,N=C);return e&&M.forEach(function(L){return t(g,L)}),S}function p(g,v,w,y){var S=Oo(w);if(typeof S!="function")throw Error(se(150));if(w=S.call(w),w==null)throw Error(se(151));for(var N=S=null,M=v,_=v=0,C=null,A=w.next();M!==null&&!A.done;_++,A=w.next()){M.index>_?(C=M,M=null):C=M.sibling;var L=h(g,M,A.value,y);if(L===null){M===null&&(M=C);break}e&&M&&L.alternate===null&&t(g,M),v=o(L,v,_),N===null?S=L:N.sibling=L,N=L,M=C}if(A.done)return r(g,M),S;if(M===null){for(;!A.done;_++,A=w.next())A=f(g,A.value,y),A!==null&&(v=o(A,v,_),N===null?S=A:N.sibling=A,N=A);return S}for(M=n(g,M);!A.done;_++,A=w.next())A=d(M,g,_,A.value,y),A!==null&&(e&&A.alternate!==null&&M.delete(A.key===null?_:A.key),v=o(A,v,_),N===null?S=A:N.sibling=A,N=A);return e&&M.forEach(function(U){return t(g,U)}),S}return function(g,v,w,y){var S=typeof w=="object"&&w!==null&&w.type===un&&w.key===null;S&&(w=w.props.children);var N=typeof w=="object"&&w!==null;if(N)switch(w.$$typeof){case Wo:e:{for(N=w.key,S=v;S!==null;){if(S.key===N){switch(S.tag){case 7:if(w.type===un){r(g,S.sibling),v=i(S,w.props.children),v.return=g,g=v;break e}break;default:if(S.elementType===w.type){r(g,S.sibling),v=i(S,w.props),v.ref=bo(g,S,w),v.return=g,g=v;break e}}r(g,S);break}else t(g,S);S=S.sibling}w.type===un?(v=Ki(w.props.children,g.mode,y,w.key),v.return=g,g=v):(y=Ks(w.type,w.key,w.props,null,g.mode,y),y.ref=bo(g,v,w),y.return=g,g=y)}return a(g);case jn:e:{for(S=w.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){r(g,v.sibling),v=i(v,w.children||[]),v.return=g,g=v;break e}else{r(g,v);break}else t(g,v);v=v.sibling}v=nc(w,g.mode,y),v.return=g,g=v}return a(g)}if(typeof w=="string"||typeof w=="number")return w=""+w,v!==null&&v.tag===6?(r(g,v.sibling),v=i(v,w),v.return=g,g=v):(r(g,v),v=rc(w,g.mode,y),v.return=g,g=v),a(g);if(cs(w))return m(g,v,w,y);if(Oo(w))return p(g,v,w,y);if(N&&fs(g,w),typeof w>"u"&&!S)switch(g.tag){case 1:case 22:case 0:case 11:case 15:throw Error(se(152,Bi(g.type)||"Component"))}return r(g,v)}}var dl=Sm(!0),_m=Sm(!1),Va={},Pr=$n(Va),Oa=$n(Va),Fa=$n(Va);function Yn(e){if(e===Va)throw Error(se(174));return e}function af(e,t){switch(Ze(Fa,t),Ze(Oa,e),Ze(Pr,Va),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wc(t,e)}ze(Pr),Ze(Pr,t)}function ro(){ze(Pr),ze(Oa),ze(Fa)}function Wh(e){Yn(Fa.current);var t=Yn(Pr.current),r=Wc(t,e.type);t!==r&&(Ze(Oa,e),Ze(Pr,r))}function k0(e){Oa.current===e&&(ze(Pr),ze(Oa))}var Qe=$n(0);function hl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)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 Vr=null,dn=null,Dr=!1;function Tm(e,t){var r=sr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function zh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function sf(e){if(Dr){var t=dn;if(t){var r=t;if(!zh(e,t)){if(t=Wi(r.nextSibling),!t||!zh(e,t)){e.flags=e.flags&-1025|2,Dr=!1,Vr=e;return}Tm(Vr,r)}Vr=e,dn=Wi(t.firstChild)}else e.flags=e.flags&-1025|2,Dr=!1,Vr=e}}function Gh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Vr=e}function ds(e){if(e!==Vr)return!1;if(!Dr)return Gh(e),Dr=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ef(t,e.memoizedProps))for(t=dn;t;)Tm(e,t),t=Wi(t.nextSibling);if(Gh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(se(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){dn=Wi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}dn=null}}else dn=Vr?Wi(e.stateNode.nextSibling):null;return!0}function Zu(){dn=Vr=null,Dr=!1}var Gi=[];function b0(){for(var e=0;e<Gi.length;e++)Gi[e]._workInProgressVersionPrimary=null;Gi.length=0}var na=si.ReactCurrentDispatcher,lr=si.ReactCurrentBatchConfig,Pa=0,tt=null,Tt=null,pt=null,pl=!1,ia=!1;function Lt(){throw Error(se(321))}function N0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ar(e[r],t[r]))return!1;return!0}function $0(e,t,r,n,i,o){if(Pa=o,tt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,na.current=e===null||e.memoizedState===null?IE:kE,e=r(n,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(se(301));o+=1,pt=Tt=null,t.updateQueue=null,na.current=bE,e=r(n,i)}while(ia)}if(na.current=xl,t=Tt!==null&&Tt.next!==null,Pa=0,pt=Tt=tt=null,pl=!1,t)throw Error(se(300));return e}function qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?tt.memoizedState=pt=e:pt=pt.next=e,pt}function ui(){if(Tt===null){var e=tt.alternate;e=e!==null?e.memoizedState:null}else e=Tt.next;var t=pt===null?tt.memoizedState:pt.next;if(t!==null)pt=t,Tt=e;else{if(e===null)throw Error(se(310));Tt=e,e={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},pt===null?tt.memoizedState=pt=e:pt=pt.next=e}return pt}function Or(e,t){return typeof t=="function"?t(e):t}function No(e){var t=ui(),r=t.queue;if(r===null)throw Error(se(311));r.lastRenderedReducer=e;var n=Tt,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,l=i;do{var u=l.lane;if((Pa&u)===u)s!==null&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),n=l.eagerReducer===e?l.eagerState:e(n,l.action);else{var c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,tt.lanes|=u,Wa|=u}l=l.next}while(l!==null&&l!==i);s===null?o=n:s.next=a,ar(n,t.memoizedState)||(yr=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function $o(e){var t=ui(),r=t.queue;if(r===null)throw Error(se(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);ar(o,t.memoizedState)||(yr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function jh(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(Pa&e)===e)&&(t._workInProgressVersionPrimary=n,Gi.push(t))),e)return r(t._source);throw Gi.push(t),Error(se(350))}function Cm(e,t,r,n){var i=kt;if(i===null)throw Error(se(349));var o=t._getVersion,a=o(t._source),s=na.current,l=s.useState(function(){return jh(i,t,r)}),u=l[1],c=l[0];l=pt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,m=f.source;f=f.subscribe;var p=tt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=u;var g=o(t._source);if(!ar(a,g)){g=r(t._source),ar(c,g)||(u(g),g=En(p),i.mutableReadLanes|=g&i.pendingLanes),g=i.mutableReadLanes,i.entangledLanes|=g;for(var v=i.entanglements,w=g;0<w;){var y=31-Rn(w),S=1<<y;v[y]|=g,w&=~S}}},[r,t,n]),s.useEffect(function(){return n(t._source,function(){var g=h.getSnapshot,v=h.setSnapshot;try{v(g(t._source));var w=En(p);i.mutableReadLanes|=w&i.pendingLanes}catch(y){v(function(){throw y})}})},[t,n]),ar(d,r)&&ar(m,t)&&ar(f,n)||(e={pending:null,dispatch:null,lastRenderedReducer:Or,lastRenderedState:c},e.dispatch=u=B0.bind(null,tt,e),l.queue=e,l.baseQueue=null,c=jh(i,t,r),l.memoizedState=l.baseState=c),c}function Am(e,t,r){var n=ui();return Cm(n,e,t,r)}function Mo(e){var t=qn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Or,lastRenderedState:e},e=e.dispatch=B0.bind(null,tt,e),[t.memoizedState,e]}function gl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=tt.updateQueue,t===null?(t={lastEffect:null},tt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function Xh(e){var t=qn();return e={current:e},t.memoizedState=e}function ml(){return ui().memoizedState}function lf(e,t,r,n){var i=qn();tt.flags|=e,i.memoizedState=gl(1|t,r,void 0,n===void 0?null:n)}function M0(e,t,r,n){var i=ui();n=n===void 0?null:n;var o=void 0;if(Tt!==null){var a=Tt.memoizedState;if(o=a.destroy,n!==null&&N0(n,a.deps)){gl(t,r,o,n);return}}tt.flags|=e,i.memoizedState=gl(1|t,r,o,n)}function Kh(e,t){return lf(516,4,e,t)}function vl(e,t){return M0(516,4,e,t)}function Rm(e,t){return M0(4,2,e,t)}function Om(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 Fm(e,t,r){return r=r!=null?r.concat([e]):null,M0(4,2,Om.bind(null,t,e),r)}function L0(){}function Pm(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&N0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Dm(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&N0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function DE(e,t){var r=to();ei(98>r?98:r,function(){e(!0)}),ei(97<r?97:r,function(){var n=lr.transition;lr.transition=1;try{e(!1),t()}finally{lr.transition=n}})}function B0(e,t,r){var n=Qt(),i=En(e),o={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===tt||a!==null&&a===tt)ia=pl=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,l=a(s,r);if(o.eagerReducer=a,o.eagerState=l,ar(l,s))return}catch{}finally{}Sn(e,i,n)}}var xl={readContext:ur,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useMutableSource:Lt,useOpaqueIdentifier:Lt,unstable_isNewReconciler:!1},IE={readContext:ur,useCallback:function(e,t){return qn().memoizedState=[e,t===void 0?null:t],e},useContext:ur,useEffect:Kh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,lf(4,2,Om.bind(null,t,e),r)},useLayoutEffect:function(e,t){return lf(4,2,e,t)},useMemo:function(e,t){var r=qn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=qn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=B0.bind(null,tt,e),[n.memoizedState,e]},useRef:Xh,useState:Mo,useDebugValue:L0,useDeferredValue:function(e){var t=Mo(e),r=t[0],n=t[1];return Kh(function(){var i=lr.transition;lr.transition=1;try{n(e)}finally{lr.transition=i}},[e]),r},useTransition:function(){var e=Mo(!1),t=e[0];return e=DE.bind(null,e[1]),Xh(e),[e,t]},useMutableSource:function(e,t,r){var n=qn();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},Cm(n,e,t,r)},useOpaqueIdentifier:function(){if(Dr){var e=!1,t=CE(function(){throw e||(e=!0,r("r:"+(Yu++).toString(36))),Error(se(355))}),r=Mo(t)[1];return!(tt.mode&2)&&(tt.flags|=516,gl(5,function(){r("r:"+(Yu++).toString(36))},void 0,null)),t}return t="r:"+(Yu++).toString(36),Mo(t),t},unstable_isNewReconciler:!1},kE={readContext:ur,useCallback:Pm,useContext:ur,useEffect:vl,useImperativeHandle:Fm,useLayoutEffect:Rm,useMemo:Dm,useReducer:No,useRef:ml,useState:function(){return No(Or)},useDebugValue:L0,useDeferredValue:function(e){var t=No(Or),r=t[0],n=t[1];return vl(function(){var i=lr.transition;lr.transition=1;try{n(e)}finally{lr.transition=i}},[e]),r},useTransition:function(){var e=No(Or)[0];return[ml().current,e]},useMutableSource:Am,useOpaqueIdentifier:function(){return No(Or)[0]},unstable_isNewReconciler:!1},bE={readContext:ur,useCallback:Pm,useContext:ur,useEffect:vl,useImperativeHandle:Fm,useLayoutEffect:Rm,useMemo:Dm,useReducer:$o,useRef:ml,useState:function(){return $o(Or)},useDebugValue:L0,useDeferredValue:function(e){var t=$o(Or),r=t[0],n=t[1];return vl(function(){var i=lr.transition;lr.transition=1;try{n(e)}finally{lr.transition=i}},[e]),r},useTransition:function(){var e=$o(Or)[0];return[ml().current,e]},useMutableSource:Am,useOpaqueIdentifier:function(){return $o(Or)[0]},unstable_isNewReconciler:!1},NE=si.ReactCurrentOwner,yr=!1;function Bt(e,t,r,n){t.child=e===null?_m(t,null,r,n):dl(t,e.child,r,n)}function Yh(e,t,r,n,i){r=r.render;var o=t.ref;return zi(t,i),n=$0(e,t,r,n,o,i),e!==null&&!yr?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Wr(e,t,i)):(t.flags|=1,Bt(e,t,n,i),t.child)}function qh(e,t,r,n,i,o){if(e===null){var a=r.type;return typeof a=="function"&&!G0(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,Im(e,t,a,n,i,o)):(e=Ks(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,!(i&o)&&(i=a.memoizedProps,r=r.compare,r=r!==null?r:Ta,r(i,n)&&e.ref===t.ref)?Wr(e,t,o):(t.flags|=1,e=Pn(a,n),e.ref=t.ref,e.return=t,t.child=e)}function Im(e,t,r,n,i,o){if(e!==null&&Ta(e.memoizedProps,n)&&e.ref===t.ref)if(yr=!1,(o&i)!==0)e.flags&16384&&(yr=!0);else return t.lanes=e.lanes,Wr(e,t,o);return uf(e,t,r,n,o)}function Ju(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},ps(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},ps(t,o!==null?o.baseLanes:r);else return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ps(t,e),null;else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ps(t,n);return Bt(e,t,i,r),t.child}function km(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function uf(e,t,r,n,i){var o=Vt(r)?Jn:Ft.current;return o=eo(t,o),zi(t,i),r=$0(e,t,r,n,o,i),e!==null&&!yr?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Wr(e,t,i)):(t.flags|=1,Bt(e,t,r,i),t.child)}function Qh(e,t,r,n,i){if(Vt(r)){var o=!0;Ws(t)}else o=!1;if(zi(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Em(t,r,n),of(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=r.contextType;typeof u=="object"&&u!==null?u=ur(u):(u=Vt(r)?Jn:Ft.current,u=eo(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==u)&&Vh(t,a,n,u),sn=!1;var h=t.memoizedState;a.state=h,Ra(t,n,a,i),l=t.memoizedState,s!==n||h!==l||Ht.current||sn?(typeof c=="function"&&(fl(t,r,c,n),l=t.memoizedState),(s=sn||Hh(t,r,s,n,h,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{a=t.stateNode,wm(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:vr(t.type,s),a.props=u,f=t.pendingProps,h=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=ur(l):(l=Vt(r)?Jn:Ft.current,l=eo(t,l));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||h!==l)&&Vh(t,a,n,l),sn=!1,h=t.memoizedState,a.state=h,Ra(t,n,a,i);var m=t.memoizedState;s!==f||h!==m||Ht.current||sn?(typeof d=="function"&&(fl(t,r,d,n),m=t.memoizedState),(u=sn||Hh(t,r,u,n,h,m,l))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=m),a.props=n,a.state=m,a.context=l,n=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),n=!1)}return cf(e,t,r,n,o,i)}function cf(e,t,r,n,i,o){km(e,t);var a=(t.flags&64)!==0;if(!n&&!a)return i&&$h(t,r,!1),Wr(e,t,o);n=t.stateNode,NE.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=dl(t,e.child,null,o),t.child=dl(t,null,s,o)):Bt(e,t,s,o),t.memoizedState=n.state,i&&$h(t,r,!0),t.child}function Zh(e){var t=e.stateNode;t.pendingContext?Nh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Nh(e,t.context,!1),af(e,t.containerInfo)}var hs={dehydrated:null,retryLane:0};function Jh(e,t,r){var n=t.pendingProps,i=Qe.current,o=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Ze(Qe,i&1),e===null?(n.fallback!==void 0&&sf(t),e=n.children,i=n.fallback,o?(e=ep(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=hs,e):typeof n.unstable_expectedLoadTime=="number"?(e=ep(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=hs,t.lanes=33554432,e):(r=j0({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?o?(n=rp(e,t,n.children,n.fallback,r),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=hs,n):(r=tp(e,t,n.children,r),t.memoizedState=null,r):o?(n=rp(e,t,n.children,n.fallback,r),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=hs,n):(r=tp(e,t,n.children,r),t.memoizedState=null,r)}function ep(e,t,r,n){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},!(i&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=j0(t,i,0,null),r=Ki(r,i,n,null),o.return=e,r.return=e,o.sibling=r,e.child=o,r}function tp(e,t,r,n){var i=e.child;return e=i.sibling,r=Pn(i,{mode:"visible",children:r}),!(t.mode&2)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function rp(e,t,r,n,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:r};return!(o&2)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=s,a=r.lastEffect,a!==null?(t.firstEffect=r.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Pn(a,s),e!==null?n=Pn(e,n):(n=Ki(n,o,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function np(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xm(e.return,t)}function ec(e,t,r,n,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i,a.lastEffect=o)}function ip(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Bt(e,t,n.children,r),n=Qe.current,n&2)n=n&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&np(e,r);else if(e.tag===19)np(e,r);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}n&=1}if(Ze(Qe,n),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&hl(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),ec(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&hl(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}ec(t,!0,r,null,o,t.lastEffect);break;case"together":ec(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Wr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Wa|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(se(153));if(t.child!==null){for(e=t.child,r=Pn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Pn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var bm,ff,Nm,$m;bm=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ff=function(){};Nm=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Yn(Pr.current);var o=null;switch(r){case"input":i=Mc(e,i),n=Mc(e,n),o=[];break;case"option":i=Uc(e,i),n=Uc(e,n),o=[];break;case"select":i=je({},i,{value:void 0}),n=je({},n,{value:void 0}),o=[];break;case"textarea":i=Hc(e,i),n=Hc(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ol)}zc(r,n);var a;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(va.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(va.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&We("scroll",e),o||s===l||(o=[])):typeof l=="object"&&l!==null&&l.$$typeof===d0?l.toString():(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};$m=function(e,t,r,n){r!==n&&(t.flags|=4)};function Lo(e,t){if(!Dr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function $E(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Vt(t.type)&&sl(),null;case 3:return ro(),ze(Ht),ze(Ft),b0(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ds(t)?t.flags|=4:n.hydrate||(t.flags|=256)),ff(t),null;case 5:k0(t);var i=Yn(Fa.current);if(r=t.type,e!==null&&t.stateNode!=null)Nm(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(se(166));return null}if(e=Yn(Pr.current),ds(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[fn]=t,n[al]=o,r){case"dialog":We("cancel",n),We("close",n);break;case"iframe":case"object":case"embed":We("load",n);break;case"video":case"audio":for(e=0;e<Go.length;e++)We(Go[e],n);break;case"source":We("error",n);break;case"img":case"image":case"link":We("error",n),We("load",n);break;case"details":We("toggle",n);break;case"input":ih(n,o),We("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},We("invalid",n);break;case"textarea":ah(n,o),We("invalid",n)}zc(r,o),e=null;for(var a in o)o.hasOwnProperty(a)&&(i=o[a],a==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):va.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&We("scroll",n));switch(r){case"input":as(n),oh(n,o,!0);break;case"textarea":as(n),sh(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=ol)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(a=i.nodeType===9?i:i.ownerDocument,e===Vc.html&&(e=F1(r)),e===Vc.html?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fn]=t,e[al]=n,bm(e,t,!1,!1),t.stateNode=e,a=Gc(r,n),r){case"dialog":We("cancel",e),We("close",e),i=n;break;case"iframe":case"object":case"embed":We("load",e),i=n;break;case"video":case"audio":for(i=0;i<Go.length;i++)We(Go[i],e);i=n;break;case"source":We("error",e),i=n;break;case"img":case"image":case"link":We("error",e),We("load",e),i=n;break;case"details":We("toggle",e),i=n;break;case"input":ih(e,n),i=Mc(e,n),We("invalid",e);break;case"option":i=Uc(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=je({},n,{value:void 0}),We("invalid",e);break;case"textarea":ah(e,n),i=Hc(e,n),We("invalid",e);break;default:i=n}zc(r,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?I1(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&P1(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&xa(e,l):typeof l=="number"&&xa(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(va.hasOwnProperty(o)?l!=null&&o==="onScroll"&&We("scroll",e):l!=null&&a0(e,o,l,a))}switch(r){case"input":as(e),oh(e,n,!1);break;case"textarea":as(e),sh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+An(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ui(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ui(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ol)}um(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)$m(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(se(166));r=Yn(Fa.current),Yn(Pr.current),ds(t)?(n=t.stateNode,r=t.memoizedProps,n[fn]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[fn]=t,t.stateNode=n)}return null;case 13:return ze(Qe),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&ds(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Qe.current&1?gt===0&&(gt=3):((gt===0||gt===3)&&(gt=4),kt===null||!(Wa&134217727)&&!(go&134217727)||ji(kt,At))),(n||r)&&(t.flags|=4),null);case 4:return ro(),ff(t),e===null&&am(t.stateNode.containerInfo),null;case 10:return D0(t),null;case 17:return Vt(t.type)&&sl(),null;case 19:if(ze(Qe),n=t.memoizedState,n===null)return null;if(o=(t.flags&64)!==0,a=n.rendering,a===null)if(o)Lo(n,!1);else{if(gt!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=hl(e),a!==null){for(t.flags|=64,Lo(n,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ze(Qe,Qe.current&1|2),t.child}e=e.sibling}n.tail!==null&&Ct()>vf&&(t.flags|=64,o=!0,Lo(n,!1),t.lanes=33554432)}else{if(!o)if(e=hl(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Lo(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Dr)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Ct()-n.renderingStartTime>vf&&r!==1073741824&&(t.flags|=64,o=!0,Lo(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Ct(),r.sibling=null,t=Qe.current,Ze(Qe,o?t&1|2:t&1),r):null;case 23:case 24:return z0(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(se(156,t.tag))}function ME(e){switch(e.tag){case 1:Vt(e.type)&&sl();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(ro(),ze(Ht),ze(Ft),b0(),t=e.flags,t&64)throw Error(se(285));return e.flags=t&-4097|64,e;case 5:return k0(e),null;case 13:return ze(Qe),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return ze(Qe),null;case 4:return ro(),null;case 10:return D0(e),null;case 23:case 24:return z0(),null;default:return null}}function U0(e,t){try{var r="",n=t;do r+=vy(n),n=n.return;while(n);var i=r}catch(o){i=`
+`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{Mu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?zo(e):""}function vy(e){switch(e.tag){case 5:return zo(e.type);case 16:return zo("Lazy");case 13:return zo("Suspense");case 19:return zo("SuspenseList");case 0:case 2:case 15:return e=os(e.type,!1),e;case 11:return e=os(e.type.render,!1),e;case 22:return e=os(e.type._render,!1),e;case 1:return e=os(e.type,!0),e;default:return""}}function Bi(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 un:return"Fragment";case jn:return"Portal";case qo:return"Profiler";case s0:return"StrictMode";case Qo:return"Suspense";case Js:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u0:return(e.displayName||"Context")+".Consumer";case l0:return(e._context.displayName||"Context")+".Provider";case Gl:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case jl:return Bi(e.type);case f0:return Bi(e._render);case c0:t=e._payload,e=e._init;try{return Bi(e(t))}catch{}}return null}function An(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function C1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function xy(e){var t=C1(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){n=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function as(e){e._valueTracker||(e._valueTracker=xy(e))}function A1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=C1(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function el(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 Mc(e,t){var r=t.checked;return je({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function ih(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=An(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function R1(e,t){t=t.checked,t!=null&&a0(e,"checked",t,!1)}function Lc(e,t){R1(e,t);var r=An(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bc(e,t.type,r):t.hasOwnProperty("defaultValue")&&Bc(e,t.type,An(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function oh(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Bc(e,t,r){(t!=="number"||el(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function wy(e){var t="";return zl.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Uc(e,t){return e=je({children:void 0},t),(t=wy(t.children))&&(e.children=t),e}function Ui(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+An(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Hc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(le(91));return je({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ah(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(le(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(le(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:An(r)}}function O1(e,t){var r=An(t.value),n=An(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function sh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Vc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function F1(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 Wc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?F1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ss,P1=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==Vc.svg||"innerHTML"in e)e.innerHTML=t;else{for(ss=ss||document.createElement("div"),ss.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ss.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xa(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Zo={animationIterationCount:!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},yy=["Webkit","ms","Moz","O"];Object.keys(Zo).forEach(function(e){yy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zo[t]=Zo[e]})});function D1(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Zo.hasOwnProperty(e)&&Zo[e]?(""+t).trim():t+"px"}function I1(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=D1(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Ey=je({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 zc(e,t){if(t){if(Ey[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(le(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(le(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(le(61))}if(t.style!=null&&typeof t.style!="object")throw Error(le(62))}}function Gc(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}}function p0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jc=null,Hi=null,Vi=null;function lh(e){if(e=Ha(e)){if(typeof jc!="function")throw Error(le(280));var t=e.stateNode;t&&(t=Zl(t),jc(e.stateNode,e.type,t))}}function k1(e){Hi?Vi?Vi.push(e):Vi=[e]:Hi=e}function b1(){if(Hi){var e=Hi,t=Vi;if(Vi=Hi=null,lh(e),t)for(e=0;e<t.length;e++)lh(t[e])}}function g0(e,t){return e(t)}function N1(e,t,r,n,i){return e(t,r,n,i)}function m0(){}var $1=g0,Xn=!1,Lu=!1;function v0(){(Hi!==null||Vi!==null)&&(m0(),b1())}function Sy(e,t,r){if(Lu)return e(t,r);Lu=!0;try{return $1(e,t,r)}finally{Lu=!1,v0()}}function wa(e,t){var r=e.stateNode;if(r===null)return null;var n=Zl(r);if(n===null)return null;r=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(le(231,t,typeof r));return r}var Xc=!1;if(Zr)try{var Fo={};Object.defineProperty(Fo,"passive",{get:function(){Xc=!0}}),window.addEventListener("test",Fo,Fo),window.removeEventListener("test",Fo,Fo)}catch{Xc=!1}function _y(e,t,r,n,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var Jo=!1,tl=null,rl=!1,Kc=null,Ty={onError:function(e){Jo=!0,tl=e}};function Cy(e,t,r,n,i,o,a,s,l){Jo=!1,tl=null,_y.apply(Ty,arguments)}function Ay(e,t,r,n,i,o,a,s,l){if(Cy.apply(this,arguments),Jo){if(Jo){var u=tl;Jo=!1,tl=null}else throw Error(le(198));rl||(rl=!0,Kc=u)}}function li(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function M1(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 uh(e){if(li(e)!==e)throw Error(le(188))}function Ry(e){var t=e.alternate;if(!t){if(t=li(e),t===null)throw Error(le(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var o=i.alternate;if(o===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===r)return uh(i),e;if(o===n)return uh(i),t;o=o.sibling}throw Error(le(188))}if(r.return!==n.return)r=i,n=o;else{for(var a=!1,s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a)throw Error(le(189))}}if(r.alternate!==n)throw Error(le(190))}if(r.tag!==3)throw Error(le(188));return r.stateNode.current===r?e:t}function L1(e){if(e=Ry(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ch(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var B1,x0,U1,H1,Yc=!1,Rr=[],mn=null,vn=null,xn=null,ya=new Map,Ea=new Map,Po=[],fh="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 qc(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function dh(e,t){switch(e){case"focusin":case"focusout":mn=null;break;case"dragenter":case"dragleave":vn=null;break;case"mouseover":case"mouseout":xn=null;break;case"pointerover":case"pointerout":ya.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ea.delete(t.pointerId)}}function Do(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e=qc(t,r,n,i,o),t!==null&&(t=Ha(t),t!==null&&x0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Oy(e,t,r,n,i){switch(t){case"focusin":return mn=Do(mn,e,t,r,n,i),!0;case"dragenter":return vn=Do(vn,e,t,r,n,i),!0;case"mouseover":return xn=Do(xn,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return ya.set(o,Do(ya.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Ea.set(o,Do(Ea.get(o)||null,e,t,r,n,i)),!0}return!1}function Fy(e){var t=Kn(e.target);if(t!==null){var r=li(t);if(r!==null){if(t=r.tag,t===13){if(t=M1(r),t!==null){e.blockedOn=t,H1(e.lanePriority,function(){ft.unstable_runWithPriority(e.priority,function(){U1(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=S0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Ha(r),t!==null&&x0(t),e.blockedOn=r,!1;t.shift()}return!0}function hh(e,t,r){Bs(e)&&r.delete(t)}function Py(){for(Yc=!1;0<Rr.length;){var e=Rr[0];if(e.blockedOn!==null){e=Ha(e.blockedOn),e!==null&&B1(e);break}for(var t=e.targetContainers;0<t.length;){var r=S0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Rr.shift()}mn!==null&&Bs(mn)&&(mn=null),vn!==null&&Bs(vn)&&(vn=null),xn!==null&&Bs(xn)&&(xn=null),ya.forEach(hh),Ea.forEach(hh)}function Io(e,t){e.blockedOn===t&&(e.blockedOn=null,Yc||(Yc=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,Py)))}function V1(e){function t(i){return Io(i,e)}if(0<Rr.length){Io(Rr[0],e);for(var r=1;r<Rr.length;r++){var n=Rr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(mn!==null&&Io(mn,e),vn!==null&&Io(vn,e),xn!==null&&Io(xn,e),ya.forEach(t),Ea.forEach(t),r=0;r<Po.length;r++)n=Po[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Po.length&&(r=Po[0],r.blockedOn===null);)Fy(r),r.blockedOn===null&&Po.shift()}function ls(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ii={animationend:ls("Animation","AnimationEnd"),animationiteration:ls("Animation","AnimationIteration"),animationstart:ls("Animation","AnimationStart"),transitionend:ls("Transition","TransitionEnd")},Bu={},W1={};Zr&&(W1=document.createElement("div").style,"AnimationEvent"in window||(delete Ii.animationend.animation,delete Ii.animationiteration.animation,delete Ii.animationstart.animation),"TransitionEvent"in window||delete Ii.transitionend.transition);function Xl(e){if(Bu[e])return Bu[e];if(!Ii[e])return e;var t=Ii[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in W1)return Bu[e]=t[r];return e}var z1=Xl("animationend"),G1=Xl("animationiteration"),j1=Xl("animationstart"),X1=Xl("transitionend"),K1=new Map,w0=new Map,Dy=["abort","abort",z1,"animationEnd",G1,"animationIteration",j1,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",X1,"transitionEnd","waiting","waiting"];function y0(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),w0.set(n,t),K1.set(n,i),ai(i,[n])}}var Iy=ft.unstable_now;Iy();var Ve=8;function Fi(e){if(1&e)return Ve=15,1;if(2&e)return Ve=14,2;if(4&e)return Ve=13,4;var t=24&e;return t!==0?(Ve=12,t):e&32?(Ve=11,32):(t=192&e,t!==0?(Ve=10,t):e&256?(Ve=9,256):(t=3584&e,t!==0?(Ve=8,t):e&4096?(Ve=7,4096):(t=4186112&e,t!==0?(Ve=6,t):(t=62914560&e,t!==0?(Ve=5,t):e&67108864?(Ve=4,67108864):e&134217728?(Ve=3,134217728):(t=805306368&e,t!==0?(Ve=2,t):1073741824&e?(Ve=1,1073741824):(Ve=8,e))))))}function ky(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function by(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(le(358,e))}}function Sa(e,t){var r=e.pendingLanes;if(r===0)return Ve=0;var n=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(o!==0)n=o,i=Ve=15;else if(o=r&134217727,o!==0){var l=o&~a;l!==0?(n=Fi(l),i=Ve):(s&=o,s!==0&&(n=Fi(s),i=Ve))}else o=r&~a,o!==0?(n=Fi(o),i=Ve):s!==0&&(n=Fi(s),i=Ve);if(n===0)return 0;if(n=31-Rn(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&a)){if(Fi(t),i<=Ve)return t;Ve=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Rn(t),i=1<<r,n|=e[r],t&=~i;return n}function Y1(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nl(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Pi(24&~t),e===0?nl(10,t):e;case 10:return e=Pi(192&~t),e===0?nl(8,t):e;case 8:return e=Pi(3584&~t),e===0&&(e=Pi(4186112&~t),e===0&&(e=512)),e;case 2:return t=Pi(805306368&~t),t===0&&(t=268435456),t}throw Error(le(358,e))}function Pi(e){return e&-e}function Uu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Kl(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Rn(t),e[t]=r}var Rn=Math.clz32?Math.clz32:My,Ny=Math.log,$y=Math.LN2;function My(e){return e===0?32:31-(Ny(e)/$y|0)|0}var Ly=ft.unstable_UserBlockingPriority,By=ft.unstable_runWithPriority,Us=!0;function Uy(e,t,r,n){Xn||m0();var i=E0,o=Xn;Xn=!0;try{N1(i,e,t,r,n)}finally{(Xn=o)||v0()}}function Hy(e,t,r,n){By(Ly,E0.bind(null,e,t,r,n))}function E0(e,t,r,n){if(Us){var i;if((i=(t&4)===0)&&0<Rr.length&&-1<fh.indexOf(e))e=qc(null,e,t,r,n),Rr.push(e);else{var o=S0(e,t,r,n);if(o===null)i&&dh(e,n);else{if(i){if(-1<fh.indexOf(e)){e=qc(o,e,t,r,n),Rr.push(e);return}if(Oy(o,e,t,r,n))return;dh(e,n)}lm(e,t,n,null,r)}}}}function S0(e,t,r,n){var i=p0(n);if(i=Kn(i),i!==null){var o=li(i);if(o===null)i=null;else{var a=o.tag;if(a===13){if(i=M1(o),i!==null)return i;i=null}else if(a===3){if(o.stateNode.hydrate)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return lm(e,t,n,i,r),null}var cn=null,_0=null,Hs=null;function q1(){if(Hs)return Hs;var e,t=_0,r=t.length,n,i="value"in cn?cn.value:cn.textContent,o=i.length;for(e=0;e<r&&t[e]===i[e];e++);var a=r-e;for(n=1;n<=a&&t[r-n]===i[o-n];n++);return Hs=i.slice(e,1<n?1-n:void 0)}function Vs(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 us(){return!0}function ph(){return!1}function Jt(e){function t(r,n,i,o,a){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?us:ph,this.isPropagationStopped=ph,this}return je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=us)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=us)},persist:function(){},isPersistent:us}),t}var fo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},T0=Jt(fo),Ua=je({},fo,{view:0,detail:0}),Vy=Jt(Ua),Hu,Vu,ko,Yl=je({},Ua,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:C0,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!==ko&&(ko&&e.type==="mousemove"?(Hu=e.screenX-ko.screenX,Vu=e.screenY-ko.screenY):Vu=Hu=0,ko=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:Vu}}),gh=Jt(Yl),Wy=je({},Yl,{dataTransfer:0}),zy=Jt(Wy),Gy=je({},Ua,{relatedTarget:0}),Wu=Jt(Gy),jy=je({},fo,{animationName:0,elapsedTime:0,pseudoElement:0}),Xy=Jt(jy),Ky=je({},fo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yy=Jt(Ky),qy=je({},fo,{data:0}),mh=Jt(qy),Qy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zy={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"},Jy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jy[e])?!!t[e]:!1}function C0(){return eE}var tE=je({},Ua,{key:function(e){if(e.key){var t=Qy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Zy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:C0,charCode:function(e){return e.type==="keypress"?Vs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rE=Jt(tE),nE=je({},Yl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vh=Jt(nE),iE=je({},Ua,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:C0}),oE=Jt(iE),aE=je({},fo,{propertyName:0,elapsedTime:0,pseudoElement:0}),sE=Jt(aE),lE=je({},Yl,{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}),uE=Jt(lE),cE=[9,13,27,32],A0=Zr&&"CompositionEvent"in window,ea=null;Zr&&"documentMode"in document&&(ea=document.documentMode);var fE=Zr&&"TextEvent"in window&&!ea,Q1=Zr&&(!A0||ea&&8<ea&&11>=ea),xh=String.fromCharCode(32),wh=!1;function Z1(e,t){switch(e){case"keyup":return cE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ki=!1;function dE(e,t){switch(e){case"compositionend":return J1(t);case"keypress":return t.which!==32?null:(wh=!0,xh);case"textInput":return e=t.data,e===xh&&wh?null:e;default:return null}}function hE(e,t){if(ki)return e==="compositionend"||!A0&&Z1(e,t)?(e=q1(),Hs=_0=cn=null,ki=!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 Q1&&t.locale!=="ko"?null:t.data;default:return null}}var pE={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 yh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!pE[e.type]:t==="textarea"}function em(e,t,r,n){k1(n),t=il(t,"onChange"),0<t.length&&(r=new T0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ta=null,_a=null;function gE(e){om(e,0)}function ql(e){var t=Ni(e);if(A1(t))return e}function mE(e,t){if(e==="change")return t}var tm=!1;if(Zr){var zu;if(Zr){var Gu="oninput"in document;if(!Gu){var Eh=document.createElement("div");Eh.setAttribute("oninput","return;"),Gu=typeof Eh.oninput=="function"}zu=Gu}else zu=!1;tm=zu&&(!document.documentMode||9<document.documentMode)}function Sh(){ta&&(ta.detachEvent("onpropertychange",rm),_a=ta=null)}function rm(e){if(e.propertyName==="value"&&ql(_a)){var t=[];if(em(t,_a,e,p0(e)),e=gE,Xn)e(t);else{Xn=!0;try{g0(e,t)}finally{Xn=!1,v0()}}}}function vE(e,t,r){e==="focusin"?(Sh(),ta=t,_a=r,ta.attachEvent("onpropertychange",rm)):e==="focusout"&&Sh()}function xE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ql(_a)}function wE(e,t){if(e==="click")return ql(t)}function yE(e,t){if(e==="input"||e==="change")return ql(t)}function EE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ar=typeof Object.is=="function"?Object.is:EE,SE=Object.prototype.hasOwnProperty;function Ta(e,t){if(ar(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!SE.call(t,r[n])||!ar(e[r[n]],t[r[n]]))return!1;return!0}function _h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Th(e,t){var r=_h(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_h(r)}}function nm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ch(){for(var e=window,t=el();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=el(e.document)}return t}function Qc(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")}var _E=Zr&&"documentMode"in document&&11>=document.documentMode,bi=null,Zc=null,ra=null,Jc=!1;function Ah(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Jc||bi==null||bi!==el(n)||(n=bi,"selectionStart"in n&&Qc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ra&&Ta(ra,n)||(ra=n,n=il(Zc,"onSelect"),0<n.length&&(t=new T0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=bi)))}y0("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);y0("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);y0(Dy,2);for(var Rh="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ju=0;ju<Rh.length;ju++)w0.set(Rh[ju],0);Ji("onMouseEnter",["mouseout","mouseover"]);Ji("onMouseLeave",["mouseout","mouseover"]);Ji("onPointerEnter",["pointerout","pointerover"]);Ji("onPointerLeave",["pointerout","pointerover"]);ai("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ai("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ai("onBeforeInput",["compositionend","keypress","textInput","paste"]);ai("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ai("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ai("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Go="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),im=new Set("cancel close invalid load scroll toggle".split(" ").concat(Go));function Oh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Ay(n,t,void 0,e),e.currentTarget=null}function om(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var a=n.length-1;0<=a;a--){var s=n[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Oh(i,s,u),o=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Oh(i,s,u),o=l}}}if(rl)throw e=Kc,rl=!1,Kc=null,e}function We(e,t){var r=cm(t),n=e+"__bubble";r.has(n)||(sm(t,e,2,!1),r.add(n))}var Fh="_reactListening"+Math.random().toString(36).slice(2);function am(e){e[Fh]||(e[Fh]=!0,_1.forEach(function(t){im.has(t)||Ph(t,!1,e,null),Ph(t,!0,e,null)}))}function Ph(e,t,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,o=r;if(e==="selectionchange"&&r.nodeType!==9&&(o=r.ownerDocument),n!==null&&!t&&im.has(e)){if(e!=="scroll")return;i|=2,o=n}var a=cm(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),sm(o,e,i,t),a.add(s))}function sm(e,t,r,n){var i=w0.get(t);switch(i===void 0?2:i){case 0:i=Uy;break;case 1:i=Hy;break;default:i=E0}r=i.bind(null,t,r,e),i=void 0,!Xc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function lm(e,t,r,n,i){var o=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=n.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Kn(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}Sy(function(){var u=o,c=p0(r),f=[];e:{var h=K1.get(e);if(h!==void 0){var d=T0,m=e;switch(e){case"keypress":if(Vs(r)===0)break e;case"keydown":case"keyup":d=rE;break;case"focusin":m="focus",d=Wu;break;case"focusout":m="blur",d=Wu;break;case"beforeblur":case"afterblur":d=Wu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=gh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=zy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=oE;break;case z1:case G1:case j1:d=Xy;break;case X1:d=sE;break;case"scroll":d=Vy;break;case"wheel":d=uE;break;case"copy":case"cut":case"paste":d=Yy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=vh}var p=(t&4)!==0,g=!p&&e==="scroll",v=p?h!==null?h+"Capture":null:h;p=[];for(var w=u,y;w!==null;){y=w;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,v!==null&&(S=wa(w,v),S!=null&&p.push(Ca(w,S,y)))),g)break;w=w.return}0<p.length&&(h=new d(h,m,null,r,c),f.push({event:h,listeners:p}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",h&&!(t&16)&&(m=r.relatedTarget||r.fromElement)&&(Kn(m)||m[ho]))break e;if((d||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,d?(m=r.relatedTarget||r.toElement,d=u,m=m?Kn(m):null,m!==null&&(g=li(m),m!==g||m.tag!==5&&m.tag!==6)&&(m=null)):(d=null,m=u),d!==m)){if(p=gh,S="onMouseLeave",v="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(p=vh,S="onPointerLeave",v="onPointerEnter",w="pointer"),g=d==null?h:Ni(d),y=m==null?h:Ni(m),h=new p(S,w+"leave",d,r,c),h.target=g,h.relatedTarget=y,S=null,Kn(c)===u&&(p=new p(v,w+"enter",m,r,c),p.target=y,p.relatedTarget=g,S=p),g=S,d&&m)t:{for(p=d,v=m,w=0,y=p;y;y=Ei(y))w++;for(y=0,S=v;S;S=Ei(S))y++;for(;0<w-y;)p=Ei(p),w--;for(;0<y-w;)v=Ei(v),y--;for(;w--;){if(p===v||v!==null&&p===v.alternate)break t;p=Ei(p),v=Ei(v)}p=null}else p=null;d!==null&&Dh(f,h,d,p,!1),m!==null&&g!==null&&Dh(f,g,m,p,!0)}}e:{if(h=u?Ni(u):window,d=h.nodeName&&h.nodeName.toLowerCase(),d==="select"||d==="input"&&h.type==="file")var b=mE;else if(yh(h))if(tm)b=yE;else{b=xE;var M=vE}else(d=h.nodeName)&&d.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(b=wE);if(b&&(b=b(e,u))){em(f,b,r,c);break e}M&&M(e,h,u),e==="focusout"&&(M=h._wrapperState)&&M.controlled&&h.type==="number"&&Bc(h,"number",h.value)}switch(M=u?Ni(u):window,e){case"focusin":(yh(M)||M.contentEditable==="true")&&(bi=M,Zc=u,ra=null);break;case"focusout":ra=Zc=bi=null;break;case"mousedown":Jc=!0;break;case"contextmenu":case"mouseup":case"dragend":Jc=!1,Ah(f,r,c);break;case"selectionchange":if(_E)break;case"keydown":case"keyup":Ah(f,r,c)}var _;if(A0)e:{switch(e){case"compositionstart":var A="onCompositionStart";break e;case"compositionend":A="onCompositionEnd";break e;case"compositionupdate":A="onCompositionUpdate";break e}A=void 0}else ki?Z1(e,r)&&(A="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(Q1&&r.locale!=="ko"&&(ki||A!=="onCompositionStart"?A==="onCompositionEnd"&&ki&&(_=q1()):(cn=c,_0="value"in cn?cn.value:cn.textContent,ki=!0)),M=il(u,A),0<M.length&&(A=new mh(A,e,null,r,c),f.push({event:A,listeners:M}),_?A.data=_:(_=J1(r),_!==null&&(A.data=_)))),(_=fE?dE(e,r):hE(e,r))&&(u=il(u,"onBeforeInput"),0<u.length&&(c=new mh("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=_))}om(f,t)})}function Ca(e,t,r){return{instance:e,listener:t,currentTarget:r}}function il(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=wa(e,r),o!=null&&n.unshift(Ca(e,o,i)),o=wa(e,t),o!=null&&n.push(Ca(e,o,i))),e=e.return}return n}function Ei(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Dh(e,t,r,n,i){for(var o=t._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=wa(r,o),l!=null&&a.unshift(Ca(r,l,s))):i||(l=wa(r,o),l!=null&&a.push(Ca(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}function ol(){}var Xu=null,Ku=null;function um(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function ef(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ih=typeof setTimeout=="function"?setTimeout:void 0,TE=typeof clearTimeout=="function"?clearTimeout:void 0;function R0(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Wi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function kh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Yu=0;function CE(e){return{$$typeof:d0,toString:e,valueOf:e}}var Ql=Math.random().toString(36).slice(2),fn="__reactFiber$"+Ql,al="__reactProps$"+Ql,ho="__reactContainer$"+Ql,bh="__reactEvents$"+Ql;function Kn(e){var t=e[fn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ho]||r[fn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=kh(e);e!==null;){if(r=e[fn])return r;e=kh(e)}return t}e=r,r=e.parentNode}return null}function Ha(e){return e=e[fn]||e[ho],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ni(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(le(33))}function Zl(e){return e[al]||null}function cm(e){var t=e[bh];return t===void 0&&(t=e[bh]=new Set),t}var tf=[],$i=-1;function $n(e){return{current:e}}function ze(e){0>$i||(e.current=tf[$i],tf[$i]=null,$i--)}function Ze(e,t){$i++,tf[$i]=e.current,e.current=t}var On={},Ft=$n(On),Ht=$n(!1),Jn=On;function eo(e,t){var r=e.type.contextTypes;if(!r)return On;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in r)i[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Vt(e){return e=e.childContextTypes,e!=null}function sl(){ze(Ht),ze(Ft)}function Nh(e,t,r){if(Ft.current!==On)throw Error(le(168));Ze(Ft,t),Ze(Ht,r)}function fm(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(le(108,Bi(t)||"Unknown",i));return je({},r,n)}function Ws(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||On,Jn=Ft.current,Ze(Ft,e),Ze(Ht,Ht.current),!0}function $h(e,t,r){var n=e.stateNode;if(!n)throw Error(le(169));r?(e=fm(e,t,Jn),n.__reactInternalMemoizedMergedChildContext=e,ze(Ht),ze(Ft),Ze(Ft,e)):ze(Ht),Ze(Ht,r)}var O0=null,Qn=null,AE=ft.unstable_runWithPriority,F0=ft.unstable_scheduleCallback,rf=ft.unstable_cancelCallback,RE=ft.unstable_shouldYield,Mh=ft.unstable_requestPaint,nf=ft.unstable_now,OE=ft.unstable_getCurrentPriorityLevel,Jl=ft.unstable_ImmediatePriority,dm=ft.unstable_UserBlockingPriority,hm=ft.unstable_NormalPriority,pm=ft.unstable_LowPriority,gm=ft.unstable_IdlePriority,qu={},FE=Mh!==void 0?Mh:function(){},Ur=null,zs=null,Qu=!1,Lh=nf(),Ct=1e4>Lh?nf:function(){return nf()-Lh};function to(){switch(OE()){case Jl:return 99;case dm:return 98;case hm:return 97;case pm:return 96;case gm:return 95;default:throw Error(le(332))}}function mm(e){switch(e){case 99:return Jl;case 98:return dm;case 97:return hm;case 96:return pm;case 95:return gm;default:throw Error(le(332))}}function ei(e,t){return e=mm(e),AE(e,t)}function Aa(e,t,r){return e=mm(e),F0(e,t,r)}function br(){if(zs!==null){var e=zs;zs=null,rf(e)}vm()}function vm(){if(!Qu&&Ur!==null){Qu=!0;var e=0;try{var t=Ur;ei(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Ur=null}catch(r){throw Ur!==null&&(Ur=Ur.slice(e+1)),F0(Jl,br),r}finally{Qu=!1}}}var PE=si.ReactCurrentBatchConfig;function vr(e,t){if(e&&e.defaultProps){t=je({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var ll=$n(null),ul=null,Mi=null,cl=null;function P0(){cl=Mi=ul=null}function D0(e){var t=ll.current;ze(ll),e.type._context._currentValue=t}function xm(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function zi(e,t){ul=e,cl=Mi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yr=!0),e.firstContext=null)}function ur(e,t){if(cl!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(cl=e,t=1073741823),t={context:e,observedBits:t,next:null},Mi===null){if(ul===null)throw Error(le(308));Mi=t,ul.dependencies={lanes:0,firstContext:t,responders:null}}else Mi=Mi.next=t;return e._currentValue}var sn=!1;function I0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function wm(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 wn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yn(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function Bh(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?i=o=a:o=o.next=a,r=r.next}while(r!==null);o===null?i=o=t:o=o.next=t}else i=o=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Ra(e,t,r,n){var i=e.updateQueue;sn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var c=e.alternate;if(c!==null){c=c.updateQueue;var f=c.lastBaseUpdate;f!==a&&(f===null?c.firstBaseUpdate=u:f.next=u,c.lastBaseUpdate=l)}}if(o!==null){f=i.baseState,a=0,c=u=l=null;do{s=o.lane;var h=o.eventTime;if((n&s)===s){c!==null&&(c=c.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var d=e,m=o;switch(s=t,h=r,m.tag){case 1:if(d=m.payload,typeof d=="function"){f=d.call(h,f,s);break e}f=d;break e;case 3:d.flags=d.flags&-4097|64;case 0:if(d=m.payload,s=typeof d=="function"?d.call(h,f,s):d,s==null)break e;f=je({},f,s);break e;case 2:sn=!0}}o.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[o]:s.push(o))}else h={eventTime:h,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,a|=s;if(o=o.next,o===null){if(s=i.shared.pending,s===null)break;o=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,Wa|=a,e.lanes=a,e.memoizedState=f}}function Uh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(le(191,i));i.call(n)}}}var ym=new zl.Component().refs;function fl(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:je({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var eu={isMounted:function(e){return(e=e._reactInternals)?li(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Qt(),i=En(e),o=wn(n,i);o.payload=t,r!=null&&(o.callback=r),yn(e,o),Sn(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Qt(),i=En(e),o=wn(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),yn(e,o),Sn(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Qt(),n=En(e),i=wn(r,n);i.tag=2,t!=null&&(i.callback=t),yn(e,i),Sn(e,n,r)}};function Hh(e,t,r,n,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,a):t.prototype&&t.prototype.isPureReactComponent?!Ta(r,n)||!Ta(i,o):!0}function Em(e,t,r){var n=!1,i=On,o=t.contextType;return typeof o=="object"&&o!==null?o=ur(o):(i=Vt(t)?Jn:Ft.current,n=t.contextTypes,o=(n=n!=null)?eo(e,i):On),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=eu,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vh(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&eu.enqueueReplaceState(t,t.state,null)}function of(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=ym,I0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ur(o):(o=Vt(t)?Jn:Ft.current,i.context=eo(e,o)),Ra(e,r,i,n),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(fl(e,t,o,r),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&&eu.enqueueReplaceState(i,i.state,null),Ra(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var cs=Array.isArray;function bo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(le(309));var n=r.stateNode}if(!n)throw Error(le(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(o){var a=n.refs;a===ym&&(a=n.refs={}),o===null?delete a[i]:a[i]=o},t._stringRef=i,t)}if(typeof e!="string")throw Error(le(284));if(!r._owner)throw Error(le(290,e))}return e}function fs(e,t){if(e.type!=="textarea")throw Error(le(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Sm(e){function t(g,v){if(e){var w=g.lastEffect;w!==null?(w.nextEffect=v,g.lastEffect=v):g.firstEffect=g.lastEffect=v,v.nextEffect=null,v.flags=8}}function r(g,v){if(!e)return null;for(;v!==null;)t(g,v),v=v.sibling;return null}function n(g,v){for(g=new Map;v!==null;)v.key!==null?g.set(v.key,v):g.set(v.index,v),v=v.sibling;return g}function i(g,v){return g=Pn(g,v),g.index=0,g.sibling=null,g}function o(g,v,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<v?(g.flags=2,v):w):(g.flags=2,v)):v}function a(g){return e&&g.alternate===null&&(g.flags=2),g}function s(g,v,w,y){return v===null||v.tag!==6?(v=rc(w,g.mode,y),v.return=g,v):(v=i(v,w),v.return=g,v)}function l(g,v,w,y){return v!==null&&v.elementType===w.type?(y=i(v,w.props),y.ref=bo(g,v,w),y.return=g,y):(y=Ks(w.type,w.key,w.props,null,g.mode,y),y.ref=bo(g,v,w),y.return=g,y)}function u(g,v,w,y){return v===null||v.tag!==4||v.stateNode.containerInfo!==w.containerInfo||v.stateNode.implementation!==w.implementation?(v=nc(w,g.mode,y),v.return=g,v):(v=i(v,w.children||[]),v.return=g,v)}function c(g,v,w,y,S){return v===null||v.tag!==7?(v=Ki(w,g.mode,y,S),v.return=g,v):(v=i(v,w),v.return=g,v)}function f(g,v,w){if(typeof v=="string"||typeof v=="number")return v=rc(""+v,g.mode,w),v.return=g,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Wo:return w=Ks(v.type,v.key,v.props,null,g.mode,w),w.ref=bo(g,null,v),w.return=g,w;case jn:return v=nc(v,g.mode,w),v.return=g,v}if(cs(v)||Oo(v))return v=Ki(v,g.mode,w,null),v.return=g,v;fs(g,v)}return null}function h(g,v,w,y){var S=v!==null?v.key:null;if(typeof w=="string"||typeof w=="number")return S!==null?null:s(g,v,""+w,y);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Wo:return w.key===S?w.type===un?c(g,v,w.props.children,y,S):l(g,v,w,y):null;case jn:return w.key===S?u(g,v,w,y):null}if(cs(w)||Oo(w))return S!==null?null:c(g,v,w,y,null);fs(g,w)}return null}function d(g,v,w,y,S){if(typeof y=="string"||typeof y=="number")return g=g.get(w)||null,s(v,g,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Wo:return g=g.get(y.key===null?w:y.key)||null,y.type===un?c(v,g,y.props.children,S,y.key):l(v,g,y,S);case jn:return g=g.get(y.key===null?w:y.key)||null,u(v,g,y,S)}if(cs(y)||Oo(y))return g=g.get(w)||null,c(v,g,y,S,null);fs(v,y)}return null}function m(g,v,w,y){for(var S=null,b=null,M=v,_=v=0,A=null;M!==null&&_<w.length;_++){M.index>_?(A=M,M=null):A=M.sibling;var R=h(g,M,w[_],y);if(R===null){M===null&&(M=A);break}e&&M&&R.alternate===null&&t(g,M),v=o(R,v,_),b===null?S=R:b.sibling=R,b=R,M=A}if(_===w.length)return r(g,M),S;if(M===null){for(;_<w.length;_++)M=f(g,w[_],y),M!==null&&(v=o(M,v,_),b===null?S=M:b.sibling=M,b=M);return S}for(M=n(g,M);_<w.length;_++)A=d(M,g,_,w[_],y),A!==null&&(e&&A.alternate!==null&&M.delete(A.key===null?_:A.key),v=o(A,v,_),b===null?S=A:b.sibling=A,b=A);return e&&M.forEach(function(L){return t(g,L)}),S}function p(g,v,w,y){var S=Oo(w);if(typeof S!="function")throw Error(le(150));if(w=S.call(w),w==null)throw Error(le(151));for(var b=S=null,M=v,_=v=0,A=null,R=w.next();M!==null&&!R.done;_++,R=w.next()){M.index>_?(A=M,M=null):A=M.sibling;var L=h(g,M,R.value,y);if(L===null){M===null&&(M=A);break}e&&M&&L.alternate===null&&t(g,M),v=o(L,v,_),b===null?S=L:b.sibling=L,b=L,M=A}if(R.done)return r(g,M),S;if(M===null){for(;!R.done;_++,R=w.next())R=f(g,R.value,y),R!==null&&(v=o(R,v,_),b===null?S=R:b.sibling=R,b=R);return S}for(M=n(g,M);!R.done;_++,R=w.next())R=d(M,g,_,R.value,y),R!==null&&(e&&R.alternate!==null&&M.delete(R.key===null?_:R.key),v=o(R,v,_),b===null?S=R:b.sibling=R,b=R);return e&&M.forEach(function(U){return t(g,U)}),S}return function(g,v,w,y){var S=typeof w=="object"&&w!==null&&w.type===un&&w.key===null;S&&(w=w.props.children);var b=typeof w=="object"&&w!==null;if(b)switch(w.$$typeof){case Wo:e:{for(b=w.key,S=v;S!==null;){if(S.key===b){switch(S.tag){case 7:if(w.type===un){r(g,S.sibling),v=i(S,w.props.children),v.return=g,g=v;break e}break;default:if(S.elementType===w.type){r(g,S.sibling),v=i(S,w.props),v.ref=bo(g,S,w),v.return=g,g=v;break e}}r(g,S);break}else t(g,S);S=S.sibling}w.type===un?(v=Ki(w.props.children,g.mode,y,w.key),v.return=g,g=v):(y=Ks(w.type,w.key,w.props,null,g.mode,y),y.ref=bo(g,v,w),y.return=g,g=y)}return a(g);case jn:e:{for(S=w.key;v!==null;){if(v.key===S)if(v.tag===4&&v.stateNode.containerInfo===w.containerInfo&&v.stateNode.implementation===w.implementation){r(g,v.sibling),v=i(v,w.children||[]),v.return=g,g=v;break e}else{r(g,v);break}else t(g,v);v=v.sibling}v=nc(w,g.mode,y),v.return=g,g=v}return a(g)}if(typeof w=="string"||typeof w=="number")return w=""+w,v!==null&&v.tag===6?(r(g,v.sibling),v=i(v,w),v.return=g,g=v):(r(g,v),v=rc(w,g.mode,y),v.return=g,g=v),a(g);if(cs(w))return m(g,v,w,y);if(Oo(w))return p(g,v,w,y);if(b&&fs(g,w),typeof w>"u"&&!S)switch(g.tag){case 1:case 22:case 0:case 11:case 15:throw Error(le(152,Bi(g.type)||"Component"))}return r(g,v)}}var dl=Sm(!0),_m=Sm(!1),Va={},Pr=$n(Va),Oa=$n(Va),Fa=$n(Va);function Yn(e){if(e===Va)throw Error(le(174));return e}function af(e,t){switch(Ze(Fa,t),Ze(Oa,e),Ze(Pr,Va),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wc(t,e)}ze(Pr),Ze(Pr,t)}function ro(){ze(Pr),ze(Oa),ze(Fa)}function Wh(e){Yn(Fa.current);var t=Yn(Pr.current),r=Wc(t,e.type);t!==r&&(Ze(Oa,e),Ze(Pr,r))}function k0(e){Oa.current===e&&(ze(Pr),ze(Oa))}var Qe=$n(0);function hl(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)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 Vr=null,dn=null,Dr=!1;function Tm(e,t){var r=sr(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function zh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function sf(e){if(Dr){var t=dn;if(t){var r=t;if(!zh(e,t)){if(t=Wi(r.nextSibling),!t||!zh(e,t)){e.flags=e.flags&-1025|2,Dr=!1,Vr=e;return}Tm(Vr,r)}Vr=e,dn=Wi(t.firstChild)}else e.flags=e.flags&-1025|2,Dr=!1,Vr=e}}function Gh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Vr=e}function ds(e){if(e!==Vr)return!1;if(!Dr)return Gh(e),Dr=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!ef(t,e.memoizedProps))for(t=dn;t;)Tm(e,t),t=Wi(t.nextSibling);if(Gh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(le(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){dn=Wi(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}dn=null}}else dn=Vr?Wi(e.stateNode.nextSibling):null;return!0}function Zu(){dn=Vr=null,Dr=!1}var Gi=[];function b0(){for(var e=0;e<Gi.length;e++)Gi[e]._workInProgressVersionPrimary=null;Gi.length=0}var na=si.ReactCurrentDispatcher,lr=si.ReactCurrentBatchConfig,Pa=0,tt=null,Tt=null,pt=null,pl=!1,ia=!1;function Lt(){throw Error(le(321))}function N0(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ar(e[r],t[r]))return!1;return!0}function $0(e,t,r,n,i,o){if(Pa=o,tt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,na.current=e===null||e.memoizedState===null?IE:kE,e=r(n,i),ia){o=0;do{if(ia=!1,!(25>o))throw Error(le(301));o+=1,pt=Tt=null,t.updateQueue=null,na.current=bE,e=r(n,i)}while(ia)}if(na.current=xl,t=Tt!==null&&Tt.next!==null,Pa=0,pt=Tt=tt=null,pl=!1,t)throw Error(le(300));return e}function qn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?tt.memoizedState=pt=e:pt=pt.next=e,pt}function ui(){if(Tt===null){var e=tt.alternate;e=e!==null?e.memoizedState:null}else e=Tt.next;var t=pt===null?tt.memoizedState:pt.next;if(t!==null)pt=t,Tt=e;else{if(e===null)throw Error(le(310));Tt=e,e={memoizedState:Tt.memoizedState,baseState:Tt.baseState,baseQueue:Tt.baseQueue,queue:Tt.queue,next:null},pt===null?tt.memoizedState=pt=e:pt=pt.next=e}return pt}function Or(e,t){return typeof t=="function"?t(e):t}function No(e){var t=ui(),r=t.queue;if(r===null)throw Error(le(311));r.lastRenderedReducer=e;var n=Tt,i=n.baseQueue,o=r.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}n.baseQueue=i=o,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var s=a=o=null,l=i;do{var u=l.lane;if((Pa&u)===u)s!==null&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),n=l.eagerReducer===e?l.eagerState:e(n,l.action);else{var c={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};s===null?(a=s=c,o=n):s=s.next=c,tt.lanes|=u,Wa|=u}l=l.next}while(l!==null&&l!==i);s===null?o=n:s.next=a,ar(n,t.memoizedState)||(yr=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function $o(e){var t=ui(),r=t.queue;if(r===null)throw Error(le(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,o=t.memoizedState;if(i!==null){r.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);ar(o,t.memoizedState)||(yr=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function jh(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(Pa&e)===e)&&(t._workInProgressVersionPrimary=n,Gi.push(t))),e)return r(t._source);throw Gi.push(t),Error(le(350))}function Cm(e,t,r,n){var i=kt;if(i===null)throw Error(le(349));var o=t._getVersion,a=o(t._source),s=na.current,l=s.useState(function(){return jh(i,t,r)}),u=l[1],c=l[0];l=pt;var f=e.memoizedState,h=f.refs,d=h.getSnapshot,m=f.source;f=f.subscribe;var p=tt;return e.memoizedState={refs:h,source:t,subscribe:n},s.useEffect(function(){h.getSnapshot=r,h.setSnapshot=u;var g=o(t._source);if(!ar(a,g)){g=r(t._source),ar(c,g)||(u(g),g=En(p),i.mutableReadLanes|=g&i.pendingLanes),g=i.mutableReadLanes,i.entangledLanes|=g;for(var v=i.entanglements,w=g;0<w;){var y=31-Rn(w),S=1<<y;v[y]|=g,w&=~S}}},[r,t,n]),s.useEffect(function(){return n(t._source,function(){var g=h.getSnapshot,v=h.setSnapshot;try{v(g(t._source));var w=En(p);i.mutableReadLanes|=w&i.pendingLanes}catch(y){v(function(){throw y})}})},[t,n]),ar(d,r)&&ar(m,t)&&ar(f,n)||(e={pending:null,dispatch:null,lastRenderedReducer:Or,lastRenderedState:c},e.dispatch=u=B0.bind(null,tt,e),l.queue=e,l.baseQueue=null,c=jh(i,t,r),l.memoizedState=l.baseState=c),c}function Am(e,t,r){var n=ui();return Cm(n,e,t,r)}function Mo(e){var t=qn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Or,lastRenderedState:e},e=e.dispatch=B0.bind(null,tt,e),[t.memoizedState,e]}function gl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=tt.updateQueue,t===null?(t={lastEffect:null},tt.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function Xh(e){var t=qn();return e={current:e},t.memoizedState=e}function ml(){return ui().memoizedState}function lf(e,t,r,n){var i=qn();tt.flags|=e,i.memoizedState=gl(1|t,r,void 0,n===void 0?null:n)}function M0(e,t,r,n){var i=ui();n=n===void 0?null:n;var o=void 0;if(Tt!==null){var a=Tt.memoizedState;if(o=a.destroy,n!==null&&N0(n,a.deps)){gl(t,r,o,n);return}}tt.flags|=e,i.memoizedState=gl(1|t,r,o,n)}function Kh(e,t){return lf(516,4,e,t)}function vl(e,t){return M0(516,4,e,t)}function Rm(e,t){return M0(4,2,e,t)}function Om(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 Fm(e,t,r){return r=r!=null?r.concat([e]):null,M0(4,2,Om.bind(null,t,e),r)}function L0(){}function Pm(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&N0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Dm(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&N0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function DE(e,t){var r=to();ei(98>r?98:r,function(){e(!0)}),ei(97<r?97:r,function(){var n=lr.transition;lr.transition=1;try{e(!1),t()}finally{lr.transition=n}})}function B0(e,t,r){var n=Qt(),i=En(e),o={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===tt||a!==null&&a===tt)ia=pl=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,l=a(s,r);if(o.eagerReducer=a,o.eagerState=l,ar(l,s))return}catch{}finally{}Sn(e,i,n)}}var xl={readContext:ur,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useMutableSource:Lt,useOpaqueIdentifier:Lt,unstable_isNewReconciler:!1},IE={readContext:ur,useCallback:function(e,t){return qn().memoizedState=[e,t===void 0?null:t],e},useContext:ur,useEffect:Kh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,lf(4,2,Om.bind(null,t,e),r)},useLayoutEffect:function(e,t){return lf(4,2,e,t)},useMemo:function(e,t){var r=qn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=qn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=B0.bind(null,tt,e),[n.memoizedState,e]},useRef:Xh,useState:Mo,useDebugValue:L0,useDeferredValue:function(e){var t=Mo(e),r=t[0],n=t[1];return Kh(function(){var i=lr.transition;lr.transition=1;try{n(e)}finally{lr.transition=i}},[e]),r},useTransition:function(){var e=Mo(!1),t=e[0];return e=DE.bind(null,e[1]),Xh(e),[e,t]},useMutableSource:function(e,t,r){var n=qn();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},Cm(n,e,t,r)},useOpaqueIdentifier:function(){if(Dr){var e=!1,t=CE(function(){throw e||(e=!0,r("r:"+(Yu++).toString(36))),Error(le(355))}),r=Mo(t)[1];return!(tt.mode&2)&&(tt.flags|=516,gl(5,function(){r("r:"+(Yu++).toString(36))},void 0,null)),t}return t="r:"+(Yu++).toString(36),Mo(t),t},unstable_isNewReconciler:!1},kE={readContext:ur,useCallback:Pm,useContext:ur,useEffect:vl,useImperativeHandle:Fm,useLayoutEffect:Rm,useMemo:Dm,useReducer:No,useRef:ml,useState:function(){return No(Or)},useDebugValue:L0,useDeferredValue:function(e){var t=No(Or),r=t[0],n=t[1];return vl(function(){var i=lr.transition;lr.transition=1;try{n(e)}finally{lr.transition=i}},[e]),r},useTransition:function(){var e=No(Or)[0];return[ml().current,e]},useMutableSource:Am,useOpaqueIdentifier:function(){return No(Or)[0]},unstable_isNewReconciler:!1},bE={readContext:ur,useCallback:Pm,useContext:ur,useEffect:vl,useImperativeHandle:Fm,useLayoutEffect:Rm,useMemo:Dm,useReducer:$o,useRef:ml,useState:function(){return $o(Or)},useDebugValue:L0,useDeferredValue:function(e){var t=$o(Or),r=t[0],n=t[1];return vl(function(){var i=lr.transition;lr.transition=1;try{n(e)}finally{lr.transition=i}},[e]),r},useTransition:function(){var e=$o(Or)[0];return[ml().current,e]},useMutableSource:Am,useOpaqueIdentifier:function(){return $o(Or)[0]},unstable_isNewReconciler:!1},NE=si.ReactCurrentOwner,yr=!1;function Bt(e,t,r,n){t.child=e===null?_m(t,null,r,n):dl(t,e.child,r,n)}function Yh(e,t,r,n,i){r=r.render;var o=t.ref;return zi(t,i),n=$0(e,t,r,n,o,i),e!==null&&!yr?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Wr(e,t,i)):(t.flags|=1,Bt(e,t,n,i),t.child)}function qh(e,t,r,n,i,o){if(e===null){var a=r.type;return typeof a=="function"&&!G0(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,Im(e,t,a,n,i,o)):(e=Ks(r.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,!(i&o)&&(i=a.memoizedProps,r=r.compare,r=r!==null?r:Ta,r(i,n)&&e.ref===t.ref)?Wr(e,t,o):(t.flags|=1,e=Pn(a,n),e.ref=t.ref,e.return=t,t.child=e)}function Im(e,t,r,n,i,o){if(e!==null&&Ta(e.memoizedProps,n)&&e.ref===t.ref)if(yr=!1,(o&i)!==0)e.flags&16384&&(yr=!0);else return t.lanes=e.lanes,Wr(e,t,o);return uf(e,t,r,n,o)}function Ju(e,t,r){var n=t.pendingProps,i=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},ps(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},ps(t,o!==null?o.baseLanes:r);else return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ps(t,e),null;else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ps(t,n);return Bt(e,t,i,r),t.child}function km(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function uf(e,t,r,n,i){var o=Vt(r)?Jn:Ft.current;return o=eo(t,o),zi(t,i),r=$0(e,t,r,n,o,i),e!==null&&!yr?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Wr(e,t,i)):(t.flags|=1,Bt(e,t,r,i),t.child)}function Qh(e,t,r,n,i){if(Vt(r)){var o=!0;Ws(t)}else o=!1;if(zi(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Em(t,r,n),of(t,r,n,i),n=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=r.contextType;typeof u=="object"&&u!==null?u=ur(u):(u=Vt(r)?Jn:Ft.current,u=eo(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==u)&&Vh(t,a,n,u),sn=!1;var h=t.memoizedState;a.state=h,Ra(t,n,a,i),l=t.memoizedState,s!==n||h!==l||Ht.current||sn?(typeof c=="function"&&(fl(t,r,c,n),l=t.memoizedState),(s=sn||Hh(t,r,s,n,h,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=l),a.props=n,a.state=l,a.context=u,n=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{a=t.stateNode,wm(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:vr(t.type,s),a.props=u,f=t.pendingProps,h=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=ur(l):(l=Vt(r)?Jn:Ft.current,l=eo(t,l));var d=r.getDerivedStateFromProps;(c=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||h!==l)&&Vh(t,a,n,l),sn=!1,h=t.memoizedState,a.state=h,Ra(t,n,a,i);var m=t.memoizedState;s!==f||h!==m||Ht.current||sn?(typeof d=="function"&&(fl(t,r,d,n),m=t.memoizedState),(u=sn||Hh(t,r,u,n,h,m,l))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=m),a.props=n,a.state=m,a.context=l,n=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=256),n=!1)}return cf(e,t,r,n,o,i)}function cf(e,t,r,n,i,o){km(e,t);var a=(t.flags&64)!==0;if(!n&&!a)return i&&$h(t,r,!1),Wr(e,t,o);n=t.stateNode,NE.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=dl(t,e.child,null,o),t.child=dl(t,null,s,o)):Bt(e,t,s,o),t.memoizedState=n.state,i&&$h(t,r,!0),t.child}function Zh(e){var t=e.stateNode;t.pendingContext?Nh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Nh(e,t.context,!1),af(e,t.containerInfo)}var hs={dehydrated:null,retryLane:0};function Jh(e,t,r){var n=t.pendingProps,i=Qe.current,o=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Ze(Qe,i&1),e===null?(n.fallback!==void 0&&sf(t),e=n.children,i=n.fallback,o?(e=ep(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=hs,e):typeof n.unstable_expectedLoadTime=="number"?(e=ep(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=hs,t.lanes=33554432,e):(r=j0({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?o?(n=rp(e,t,n.children,n.fallback,r),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=hs,n):(r=tp(e,t,n.children,r),t.memoizedState=null,r):o?(n=rp(e,t,n.children,n.fallback,r),o=t.child,i=e.child.memoizedState,o.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},o.childLanes=e.childLanes&~r,t.memoizedState=hs,n):(r=tp(e,t,n.children,r),t.memoizedState=null,r)}function ep(e,t,r,n){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},!(i&2)&&o!==null?(o.childLanes=0,o.pendingProps=t):o=j0(t,i,0,null),r=Ki(r,i,n,null),o.return=e,r.return=e,o.sibling=r,e.child=o,r}function tp(e,t,r,n){var i=e.child;return e=i.sibling,r=Pn(i,{mode:"visible",children:r}),!(t.mode&2)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function rp(e,t,r,n,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:r};return!(o&2)&&t.child!==a?(r=t.child,r.childLanes=0,r.pendingProps=s,a=r.lastEffect,a!==null?(t.firstEffect=r.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):r=Pn(a,s),e!==null?n=Pn(e,n):(n=Ki(n,o,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function np(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),xm(e.return,t)}function ec(e,t,r,n,i,o){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i,a.lastEffect=o)}function ip(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Bt(e,t,n.children,r),n=Qe.current,n&2)n=n&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&np(e,r);else if(e.tag===19)np(e,r);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}n&=1}if(Ze(Qe,n),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&hl(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),ec(t,!1,i,r,o,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&hl(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}ec(t,!0,r,null,o,t.lastEffect);break;case"together":ec(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Wr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Wa|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(le(153));if(t.child!==null){for(e=t.child,r=Pn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Pn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var bm,ff,Nm,$m;bm=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ff=function(){};Nm=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Yn(Pr.current);var o=null;switch(r){case"input":i=Mc(e,i),n=Mc(e,n),o=[];break;case"option":i=Uc(e,i),n=Uc(e,n),o=[];break;case"select":i=je({},i,{value:void 0}),n=je({},n,{value:void 0}),o=[];break;case"textarea":i=Hc(e,i),n=Hc(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ol)}zc(r,n);var a;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(va.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(va.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&We("scroll",e),o||s===l||(o=[])):typeof l=="object"&&l!==null&&l.$$typeof===d0?l.toString():(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};$m=function(e,t,r,n){r!==n&&(t.flags|=4)};function Lo(e,t){if(!Dr)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function $E(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Vt(t.type)&&sl(),null;case 3:return ro(),ze(Ht),ze(Ft),b0(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ds(t)?t.flags|=4:n.hydrate||(t.flags|=256)),ff(t),null;case 5:k0(t);var i=Yn(Fa.current);if(r=t.type,e!==null&&t.stateNode!=null)Nm(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(le(166));return null}if(e=Yn(Pr.current),ds(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[fn]=t,n[al]=o,r){case"dialog":We("cancel",n),We("close",n);break;case"iframe":case"object":case"embed":We("load",n);break;case"video":case"audio":for(e=0;e<Go.length;e++)We(Go[e],n);break;case"source":We("error",n);break;case"img":case"image":case"link":We("error",n),We("load",n);break;case"details":We("toggle",n);break;case"input":ih(n,o),We("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},We("invalid",n);break;case"textarea":ah(n,o),We("invalid",n)}zc(r,o),e=null;for(var a in o)o.hasOwnProperty(a)&&(i=o[a],a==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):va.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&We("scroll",n));switch(r){case"input":as(n),oh(n,o,!0);break;case"textarea":as(n),sh(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=ol)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(a=i.nodeType===9?i:i.ownerDocument,e===Vc.html&&(e=F1(r)),e===Vc.html?r==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[fn]=t,e[al]=n,bm(e,t,!1,!1),t.stateNode=e,a=Gc(r,n),r){case"dialog":We("cancel",e),We("close",e),i=n;break;case"iframe":case"object":case"embed":We("load",e),i=n;break;case"video":case"audio":for(i=0;i<Go.length;i++)We(Go[i],e);i=n;break;case"source":We("error",e),i=n;break;case"img":case"image":case"link":We("error",e),We("load",e),i=n;break;case"details":We("toggle",e),i=n;break;case"input":ih(e,n),i=Mc(e,n),We("invalid",e);break;case"option":i=Uc(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=je({},n,{value:void 0}),We("invalid",e);break;case"textarea":ah(e,n),i=Hc(e,n),We("invalid",e);break;default:i=n}zc(r,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?I1(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&P1(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&xa(e,l):typeof l=="number"&&xa(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(va.hasOwnProperty(o)?l!=null&&o==="onScroll"&&We("scroll",e):l!=null&&a0(e,o,l,a))}switch(r){case"input":as(e),oh(e,n,!1);break;case"textarea":as(e),sh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+An(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Ui(e,!!n.multiple,o,!1):n.defaultValue!=null&&Ui(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ol)}um(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)$m(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(le(166));r=Yn(Fa.current),Yn(Pr.current),ds(t)?(n=t.stateNode,r=t.memoizedProps,n[fn]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[fn]=t,t.stateNode=n)}return null;case 13:return ze(Qe),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&ds(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Qe.current&1?gt===0&&(gt=3):((gt===0||gt===3)&&(gt=4),kt===null||!(Wa&134217727)&&!(go&134217727)||ji(kt,At))),(n||r)&&(t.flags|=4),null);case 4:return ro(),ff(t),e===null&&am(t.stateNode.containerInfo),null;case 10:return D0(t),null;case 17:return Vt(t.type)&&sl(),null;case 19:if(ze(Qe),n=t.memoizedState,n===null)return null;if(o=(t.flags&64)!==0,a=n.rendering,a===null)if(o)Lo(n,!1);else{if(gt!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=hl(e),a!==null){for(t.flags|=64,Lo(n,!1),o=a.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ze(Qe,Qe.current&1|2),t.child}e=e.sibling}n.tail!==null&&Ct()>vf&&(t.flags|=64,o=!0,Lo(n,!1),t.lanes=33554432)}else{if(!o)if(e=hl(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Lo(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Dr)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Ct()-n.renderingStartTime>vf&&r!==1073741824&&(t.flags|=64,o=!0,Lo(n,!1),t.lanes=33554432);n.isBackwards?(a.sibling=t.child,t.child=a):(r=n.last,r!==null?r.sibling=a:t.child=a,n.last=a)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Ct(),r.sibling=null,t=Qe.current,Ze(Qe,o?t&1|2:t&1),r):null;case 23:case 24:return z0(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(le(156,t.tag))}function ME(e){switch(e.tag){case 1:Vt(e.type)&&sl();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(ro(),ze(Ht),ze(Ft),b0(),t=e.flags,t&64)throw Error(le(285));return e.flags=t&-4097|64,e;case 5:return k0(e),null;case 13:return ze(Qe),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return ze(Qe),null;case 4:return ro(),null;case 10:return D0(e),null;case 23:case 24:return z0(),null;default:return null}}function U0(e,t){try{var r="",n=t;do r+=vy(n),n=n.return;while(n);var i=r}catch(o){i=`
 Error generating stack: `+o.message+`
-`+o.stack}return{value:e,source:t,stack:i}}function df(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var LE=typeof WeakMap=="function"?WeakMap:Map;function Mm(e,t,r){r=wn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){yl||(yl=!0,xf=n),df(e,t)},r}function Lm(e,t,r){r=wn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return df(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Fr===null?Fr=new Set([this]):Fr.add(this),df(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var BE=typeof WeakSet=="function"?WeakSet:Set;function op(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){_n(e,r)}else t.current=null}function UE(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:vr(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&R0(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(se(163))}function HE(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(Xm(r,e),YE(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:vr(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&Uh(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}Uh(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&um(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&V1(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(se(163))}function ap(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=D1("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function sp(e,t){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(O0,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)Xm(t,r);else{n=t;try{i()}catch(o){_n(n,o)}}r=r.next}while(r!==e)}break;case 1:if(op(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){_n(t,o)}break;case 5:op(t);break;case 4:Bm(e,t)}}function lp(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function up(e){return e.tag===5||e.tag===3||e.tag===4}function cp(e){e:{for(var t=e.return;t!==null;){if(up(t))break e;t=t.return}throw Error(se(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(se(161))}r.flags&16&&(xa(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||up(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?hf(e,r,t):pf(e,r,t)}function hf(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ol));else if(n!==4&&(e=e.child,e!==null))for(hf(e,t,r),e=e.sibling;e!==null;)hf(e,t,r),e=e.sibling}function pf(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(pf(e,t,r),e=e.sibling;e!==null;)pf(e,t,r),e=e.sibling}function Bm(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(se(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var a=e,s=r,l=s;;)if(sp(a,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(a=i,s=r.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(sp(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function tc(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[al]=n,e==="input"&&n.type==="radio"&&n.name!=null&&R1(r,n),Gc(e,i),t=Gc(e,n),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?I1(r,s):a==="dangerouslySetInnerHTML"?P1(r,s):a==="children"?xa(r,s):a0(r,a,s,t)}switch(e){case"input":Lc(r,n);break;case"textarea":O1(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,o=n.value,o!=null?Ui(r,!!n.multiple,o,!1):e!==!!n.multiple&&(n.defaultValue!=null?Ui(r,!!n.multiple,n.defaultValue,!0):Ui(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(se(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,V1(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(W0=Ct(),ap(t.child,!0)),fp(t);return;case 19:fp(t);return;case 17:return;case 23:case 24:ap(t,t.memoizedState!==null);return}throw Error(se(163))}function fp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new BE),t.forEach(function(n){var i=ZE.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function VE(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var WE=Math.ceil,wl=si.ReactCurrentDispatcher,H0=si.ReactCurrentOwner,Ce=0,kt=null,at=null,At=0,ti=0,gf=$n(0),gt=0,tu=null,po=0,Wa=0,go=0,V0=0,mf=null,W0=0,vf=1/0;function mo(){vf=Ct()+500}var xe=null,yl=!1,xf=null,Fr=null,Fn=!1,oa=null,jo=90,wf=[],yf=[],Gr=null,aa=0,Ef=null,Gs=-1,Hr=0,js=0,sa=null,Xs=!1;function Qt(){return Ce&48?Ct():Gs!==-1?Gs:Gs=Ct()}function En(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return to()===99?1:2;if(Hr===0&&(Hr=po),PE.transition!==0){js!==0&&(js=mf!==null?mf.pendingLanes:0),e=Hr;var t=4186112&~js;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=to(),Ce&4&&e===98?e=nl(12,Hr):(e=ky(e),e=nl(e,Hr)),e}function Sn(e,t,r){if(50<aa)throw aa=0,Ef=null,Error(se(185));if(e=ru(e,t),e===null)return null;Kl(e,t,r),e===kt&&(go|=t,gt===4&&ji(e,At));var n=to();t===1?Ce&8&&!(Ce&48)?Sf(e):(cr(e,r),Ce===0&&(mo(),br())):(!(Ce&4)||n!==98&&n!==99||(Gr===null?Gr=new Set([e]):Gr.add(e)),cr(e,r)),mf=e}function ru(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function cr(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-Rn(a),l=1<<s,u=o[s];if(u===-1){if(!(l&n)||l&i){u=t,Fi(l);var c=Ve;o[s]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=t&&(e.expiredLanes|=l);a&=~l}if(n=Sa(e,e===kt?At:0),t=Ve,n===0)r!==null&&(r!==qu&&rf(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==qu&&rf(r)}t===15?(r=Sf.bind(null,e),Ur===null?(Ur=[r],zs=F0(Jl,vm)):Ur.push(r),r=qu):t===14?r=Aa(99,Sf.bind(null,e)):(r=by(t),r=Aa(r,Um.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function Um(e){if(Gs=-1,js=Hr=0,Ce&48)throw Error(se(327));var t=e.callbackNode;if(Mn()&&e.callbackNode!==t)return null;var r=Sa(e,e===kt?At:0);if(r===0)return null;var n=r,i=Ce;Ce|=16;var o=zm();(kt!==e||At!==n)&&(mo(),Xi(e,n));do try{jE();break}catch(s){Wm(e,s)}while(1);if(P0(),wl.current=o,Ce=i,at!==null?n=0:(kt=null,At=0,n=gt),po&go)Xi(e,0);else if(n!==0){if(n===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,R0(e.containerInfo)),r=Y1(e),r!==0&&(n=Xo(e,r))),n===1)throw t=tu,Xi(e,0),ji(e,r),cr(e,Ct()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(se(345));case 2:Hn(e);break;case 3:if(ji(e,r),(r&62914560)===r&&(n=W0+500-Ct(),10<n)){if(Sa(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Qt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ih(Hn.bind(null,e),n);break}Hn(e);break;case 4:if(ji(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var a=31-Rn(r);o=1<<a,a=n[a],a>i&&(i=a),r&=~o}if(r=i,r=Ct()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*WE(r/1960))-r,10<r){e.timeoutHandle=Ih(Hn.bind(null,e),r);break}Hn(e);break;case 5:Hn(e);break;default:throw Error(se(329))}}return cr(e,Ct()),e.callbackNode===t?Um.bind(null,e):null}function ji(e,t){for(t&=~V0,t&=~go,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Rn(t),n=1<<r;e[r]=-1,t&=~n}}function Sf(e){if(Ce&48)throw Error(se(327));if(Mn(),e===kt&&e.expiredLanes&At){var t=At,r=Xo(e,t);po&go&&(t=Sa(e,t),r=Xo(e,t))}else t=Sa(e,0),r=Xo(e,t);if(e.tag!==0&&r===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,R0(e.containerInfo)),t=Y1(e),t!==0&&(r=Xo(e,t))),r===1)throw r=tu,Xi(e,0),ji(e,t),cr(e,Ct()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hn(e),cr(e,Ct()),null}function zE(){if(Gr!==null){var e=Gr;Gr=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,cr(t,Ct())})}br()}function Hm(e,t){var r=Ce;Ce|=1;try{return e(t)}finally{Ce=r,Ce===0&&(mo(),br())}}function Vm(e,t){var r=Ce;Ce&=-2,Ce|=8;try{return e(t)}finally{Ce=r,Ce===0&&(mo(),br())}}function ps(e,t){Ze(gf,ti),ti|=t,po|=t}function z0(){ti=gf.current,ze(gf)}function Xi(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,TE(r)),at!==null)for(r=at.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&sl();break;case 3:ro(),ze(Ht),ze(Ft),b0();break;case 5:k0(n);break;case 4:ro();break;case 13:ze(Qe);break;case 19:ze(Qe);break;case 10:D0(n);break;case 23:case 24:z0()}r=r.return}kt=e,at=Pn(e.current,null),At=ti=po=t,gt=0,tu=null,V0=go=Wa=0}function Wm(e,t){do{var r=at;try{if(P0(),na.current=xl,pl){for(var n=tt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}pl=!1}if(Pa=0,pt=Tt=tt=null,ia=!1,H0.current=null,r===null||r.return===null){gt=1,tu=t,at=null;break}e:{var o=e,a=r.return,s=r,l=t;if(t=At,s.flags|=2048,s.firstEffect=s.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l;if(!(s.mode&2)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=(Qe.current&1)!==0,h=a;do{var d;if(d=h.tag===13){var m=h.memoizedState;if(m!==null)d=m.dehydrated!==null;else{var p=h.memoizedProps;d=p.fallback===void 0?!1:p.unstable_avoidThisFallback!==!0?!0:!f}}if(d){var g=h.updateQueue;if(g===null){var v=new Set;v.add(u),h.updateQueue=v}else g.add(u);if(!(h.mode&2)){if(h.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var w=wn(-1,1);w.tag=2,yn(s,w)}s.lanes|=1;break e}l=void 0,s=t;var y=o.pingCache;if(y===null?(y=o.pingCache=new LE,l=new Set,y.set(u,l)):(l=y.get(u),l===void 0&&(l=new Set,y.set(u,l))),!l.has(s)){l.add(s);var S=QE.bind(null,o,u,s);u.then(S,S)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(h!==null);l=Error((Bi(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
+`+o.stack}return{value:e,source:t,stack:i}}function df(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var LE=typeof WeakMap=="function"?WeakMap:Map;function Mm(e,t,r){r=wn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){yl||(yl=!0,xf=n),df(e,t)},r}function Lm(e,t,r){r=wn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return df(e,t),n(i)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(Fr===null?Fr=new Set([this]):Fr.add(this),df(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var BE=typeof WeakSet=="function"?WeakSet:Set;function op(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){_n(e,r)}else t.current=null}function UE(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:vr(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&R0(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(le(163))}function HE(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(Xm(r,e),YE(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:vr(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&Uh(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}Uh(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&um(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&V1(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(le(163))}function ap(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=D1("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function sp(e,t){if(Qn&&typeof Qn.onCommitFiberUnmount=="function")try{Qn.onCommitFiberUnmount(O0,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)Xm(t,r);else{n=t;try{i()}catch(o){_n(n,o)}}r=r.next}while(r!==e)}break;case 1:if(op(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){_n(t,o)}break;case 5:op(t);break;case 4:Bm(e,t)}}function lp(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function up(e){return e.tag===5||e.tag===3||e.tag===4}function cp(e){e:{for(var t=e.return;t!==null;){if(up(t))break e;t=t.return}throw Error(le(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(le(161))}r.flags&16&&(xa(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||up(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?hf(e,r,t):pf(e,r,t)}function hf(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=ol));else if(n!==4&&(e=e.child,e!==null))for(hf(e,t,r),e=e.sibling;e!==null;)hf(e,t,r),e=e.sibling}function pf(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(pf(e,t,r),e=e.sibling;e!==null;)pf(e,t,r),e=e.sibling}function Bm(e,t){for(var r=t,n=!1,i,o;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(le(160));switch(i=n.stateNode,n.tag){case 5:o=!1;break e;case 3:i=i.containerInfo,o=!0;break e;case 4:i=i.containerInfo,o=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var a=e,s=r,l=s;;)if(sp(a,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===s)break e;for(;l.sibling===null;){if(l.return===null||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(a=i,s=r.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(sp(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function tc(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(r[al]=n,e==="input"&&n.type==="radio"&&n.name!=null&&R1(r,n),Gc(e,i),t=Gc(e,n),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?I1(r,s):a==="dangerouslySetInnerHTML"?P1(r,s):a==="children"?xa(r,s):a0(r,a,s,t)}switch(e){case"input":Lc(r,n);break;case"textarea":O1(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,o=n.value,o!=null?Ui(r,!!n.multiple,o,!1):e!==!!n.multiple&&(n.defaultValue!=null?Ui(r,!!n.multiple,n.defaultValue,!0):Ui(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(le(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,V1(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(W0=Ct(),ap(t.child,!0)),fp(t);return;case 19:fp(t);return;case 17:return;case 23:case 24:ap(t,t.memoizedState!==null);return}throw Error(le(163))}function fp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new BE),t.forEach(function(n){var i=ZE.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function VE(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var WE=Math.ceil,wl=si.ReactCurrentDispatcher,H0=si.ReactCurrentOwner,Ce=0,kt=null,at=null,At=0,ti=0,gf=$n(0),gt=0,tu=null,po=0,Wa=0,go=0,V0=0,mf=null,W0=0,vf=1/0;function mo(){vf=Ct()+500}var we=null,yl=!1,xf=null,Fr=null,Fn=!1,oa=null,jo=90,wf=[],yf=[],Gr=null,aa=0,Ef=null,Gs=-1,Hr=0,js=0,sa=null,Xs=!1;function Qt(){return Ce&48?Ct():Gs!==-1?Gs:Gs=Ct()}function En(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return to()===99?1:2;if(Hr===0&&(Hr=po),PE.transition!==0){js!==0&&(js=mf!==null?mf.pendingLanes:0),e=Hr;var t=4186112&~js;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=to(),Ce&4&&e===98?e=nl(12,Hr):(e=ky(e),e=nl(e,Hr)),e}function Sn(e,t,r){if(50<aa)throw aa=0,Ef=null,Error(le(185));if(e=ru(e,t),e===null)return null;Kl(e,t,r),e===kt&&(go|=t,gt===4&&ji(e,At));var n=to();t===1?Ce&8&&!(Ce&48)?Sf(e):(cr(e,r),Ce===0&&(mo(),br())):(!(Ce&4)||n!==98&&n!==99||(Gr===null?Gr=new Set([e]):Gr.add(e)),cr(e,r)),mf=e}function ru(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function cr(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-Rn(a),l=1<<s,u=o[s];if(u===-1){if(!(l&n)||l&i){u=t,Fi(l);var c=Ve;o[s]=10<=c?u+250:6<=c?u+5e3:-1}}else u<=t&&(e.expiredLanes|=l);a&=~l}if(n=Sa(e,e===kt?At:0),t=Ve,n===0)r!==null&&(r!==qu&&rf(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==qu&&rf(r)}t===15?(r=Sf.bind(null,e),Ur===null?(Ur=[r],zs=F0(Jl,vm)):Ur.push(r),r=qu):t===14?r=Aa(99,Sf.bind(null,e)):(r=by(t),r=Aa(r,Um.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function Um(e){if(Gs=-1,js=Hr=0,Ce&48)throw Error(le(327));var t=e.callbackNode;if(Mn()&&e.callbackNode!==t)return null;var r=Sa(e,e===kt?At:0);if(r===0)return null;var n=r,i=Ce;Ce|=16;var o=zm();(kt!==e||At!==n)&&(mo(),Xi(e,n));do try{jE();break}catch(s){Wm(e,s)}while(1);if(P0(),wl.current=o,Ce=i,at!==null?n=0:(kt=null,At=0,n=gt),po&go)Xi(e,0);else if(n!==0){if(n===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,R0(e.containerInfo)),r=Y1(e),r!==0&&(n=Xo(e,r))),n===1)throw t=tu,Xi(e,0),ji(e,r),cr(e,Ct()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(le(345));case 2:Hn(e);break;case 3:if(ji(e,r),(r&62914560)===r&&(n=W0+500-Ct(),10<n)){if(Sa(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Qt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ih(Hn.bind(null,e),n);break}Hn(e);break;case 4:if(ji(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var a=31-Rn(r);o=1<<a,a=n[a],a>i&&(i=a),r&=~o}if(r=i,r=Ct()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*WE(r/1960))-r,10<r){e.timeoutHandle=Ih(Hn.bind(null,e),r);break}Hn(e);break;case 5:Hn(e);break;default:throw Error(le(329))}}return cr(e,Ct()),e.callbackNode===t?Um.bind(null,e):null}function ji(e,t){for(t&=~V0,t&=~go,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Rn(t),n=1<<r;e[r]=-1,t&=~n}}function Sf(e){if(Ce&48)throw Error(le(327));if(Mn(),e===kt&&e.expiredLanes&At){var t=At,r=Xo(e,t);po&go&&(t=Sa(e,t),r=Xo(e,t))}else t=Sa(e,0),r=Xo(e,t);if(e.tag!==0&&r===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,R0(e.containerInfo)),t=Y1(e),t!==0&&(r=Xo(e,t))),r===1)throw r=tu,Xi(e,0),ji(e,t),cr(e,Ct()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Hn(e),cr(e,Ct()),null}function zE(){if(Gr!==null){var e=Gr;Gr=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,cr(t,Ct())})}br()}function Hm(e,t){var r=Ce;Ce|=1;try{return e(t)}finally{Ce=r,Ce===0&&(mo(),br())}}function Vm(e,t){var r=Ce;Ce&=-2,Ce|=8;try{return e(t)}finally{Ce=r,Ce===0&&(mo(),br())}}function ps(e,t){Ze(gf,ti),ti|=t,po|=t}function z0(){ti=gf.current,ze(gf)}function Xi(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,TE(r)),at!==null)for(r=at.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&sl();break;case 3:ro(),ze(Ht),ze(Ft),b0();break;case 5:k0(n);break;case 4:ro();break;case 13:ze(Qe);break;case 19:ze(Qe);break;case 10:D0(n);break;case 23:case 24:z0()}r=r.return}kt=e,at=Pn(e.current,null),At=ti=po=t,gt=0,tu=null,V0=go=Wa=0}function Wm(e,t){do{var r=at;try{if(P0(),na.current=xl,pl){for(var n=tt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}pl=!1}if(Pa=0,pt=Tt=tt=null,ia=!1,H0.current=null,r===null||r.return===null){gt=1,tu=t,at=null;break}e:{var o=e,a=r.return,s=r,l=t;if(t=At,s.flags|=2048,s.firstEffect=s.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l;if(!(s.mode&2)){var c=s.alternate;c?(s.updateQueue=c.updateQueue,s.memoizedState=c.memoizedState,s.lanes=c.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=(Qe.current&1)!==0,h=a;do{var d;if(d=h.tag===13){var m=h.memoizedState;if(m!==null)d=m.dehydrated!==null;else{var p=h.memoizedProps;d=p.fallback===void 0?!1:p.unstable_avoidThisFallback!==!0?!0:!f}}if(d){var g=h.updateQueue;if(g===null){var v=new Set;v.add(u),h.updateQueue=v}else g.add(u);if(!(h.mode&2)){if(h.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var w=wn(-1,1);w.tag=2,yn(s,w)}s.lanes|=1;break e}l=void 0,s=t;var y=o.pingCache;if(y===null?(y=o.pingCache=new LE,l=new Set,y.set(u,l)):(l=y.get(u),l===void 0&&(l=new Set,y.set(u,l))),!l.has(s)){l.add(s);var S=QE.bind(null,o,u,s);u.then(S,S)}h.flags|=4096,h.lanes=t;break e}h=h.return}while(h!==null);l=Error((Bi(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
 
-Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}gt!==5&&(gt=2),l=U0(l,s),h=a;do{switch(h.tag){case 3:o=l,h.flags|=4096,t&=-t,h.lanes|=t;var N=Mm(h,o,t);Bh(h,N);break e;case 1:o=l;var M=h.type,_=h.stateNode;if(!(h.flags&64)&&(typeof M.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Fr===null||!Fr.has(_)))){h.flags|=4096,t&=-t,h.lanes|=t;var C=Lm(h,o,t);Bh(h,C);break e}}h=h.return}while(h!==null)}jm(r)}catch(A){t=A,at===r&&r!==null&&(at=r=r.return);continue}break}while(1)}function zm(){var e=wl.current;return wl.current=xl,e===null?xl:e}function Xo(e,t){var r=Ce;Ce|=16;var n=zm();kt===e&&At===t||Xi(e,t);do try{GE();break}catch(i){Wm(e,i)}while(1);if(P0(),Ce=r,wl.current=n,at!==null)throw Error(se(261));return kt=null,At=0,gt}function GE(){for(;at!==null;)Gm(at)}function jE(){for(;at!==null&&!RE();)Gm(at)}function Gm(e){var t=Km(e.alternate,e,ti);e.memoizedProps=e.pendingProps,t===null?jm(e):at=t,H0.current=null}function jm(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=ME(t),r!==null){r.flags&=2047,at=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=$E(r,t,ti),r!==null){at=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||ti&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){at=t;return}at=t=e}while(t!==null);gt===0&&(gt=5)}function Hn(e){var t=to();return ei(99,XE.bind(null,e,t)),null}function XE(e,t){do Mn();while(oa!==null);if(Ce&48)throw Error(se(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(se(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-Rn(o),u=1<<l;i[l]=0,a[l]=-1,s[l]=-1,o&=~u}if(Gr!==null&&!(n&24)&&Gr.has(e)&&Gr.delete(e),e===kt&&(at=kt=null,At=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=Ce,Ce|=32,H0.current=null,Xu=Us,a=Ch(),Qc(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&u.rangeCount!==0){s=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{s.nodeType,l.nodeType}catch{s=null;break e}var c=0,f=-1,h=-1,d=0,m=0,p=a,g=null;t:for(;;){for(var v;p!==s||o!==0&&p.nodeType!==3||(f=c+o),p!==l||u!==0&&p.nodeType!==3||(h=c+u),p.nodeType===3&&(c+=p.nodeValue.length),(v=p.firstChild)!==null;)g=p,p=v;for(;;){if(p===a)break t;if(g===s&&++d===o&&(f=c),g===l&&++m===u&&(h=c),(v=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=v}s=f===-1||h===-1?null:{start:f,end:h}}else s=null;s=s||{start:0,end:0}}else s=null;Ku={focusedElem:a,selectionRange:s},Us=!1,sa=null,Xs=!1,xe=n;do try{KE()}catch(A){if(xe===null)throw Error(se(330));_n(xe,A),xe=xe.nextEffect}while(xe!==null);sa=null,xe=n;do try{for(a=e;xe!==null;){var w=xe.flags;if(w&16&&xa(xe.stateNode,""),w&128){var y=xe.alternate;if(y!==null){var S=y.ref;S!==null&&(typeof S=="function"?S(null):S.current=null)}}switch(w&1038){case 2:cp(xe),xe.flags&=-3;break;case 6:cp(xe),xe.flags&=-3,tc(xe.alternate,xe);break;case 1024:xe.flags&=-1025;break;case 1028:xe.flags&=-1025,tc(xe.alternate,xe);break;case 4:tc(xe.alternate,xe);break;case 8:s=xe,Bm(a,s);var N=s.alternate;lp(s),N!==null&&lp(N)}xe=xe.nextEffect}}catch(A){if(xe===null)throw Error(se(330));_n(xe,A),xe=xe.nextEffect}while(xe!==null);if(S=Ku,y=Ch(),w=S.focusedElem,a=S.selectionRange,y!==w&&w&&w.ownerDocument&&nm(w.ownerDocument.documentElement,w)){for(a!==null&&Qc(w)&&(y=a.start,S=a.end,S===void 0&&(S=y),"selectionStart"in w?(w.selectionStart=y,w.selectionEnd=Math.min(S,w.value.length)):(S=(y=w.ownerDocument||document)&&y.defaultView||window,S.getSelection&&(S=S.getSelection(),s=w.textContent.length,N=Math.min(a.start,s),a=a.end===void 0?N:Math.min(a.end,s),!S.extend&&N>a&&(s=a,a=N,N=s),s=Th(w,N),o=Th(w,a),s&&o&&(S.rangeCount!==1||S.anchorNode!==s.node||S.anchorOffset!==s.offset||S.focusNode!==o.node||S.focusOffset!==o.offset)&&(y=y.createRange(),y.setStart(s.node,s.offset),S.removeAllRanges(),N>a?(S.addRange(y),S.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),S.addRange(y)))))),y=[],S=w;S=S.parentNode;)S.nodeType===1&&y.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<y.length;w++)S=y[w],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}Us=!!Xu,Ku=Xu=null,e.current=r,xe=n;do try{for(w=e;xe!==null;){var M=xe.flags;if(M&36&&HE(w,xe.alternate,xe),M&128){y=void 0;var _=xe.ref;if(_!==null){var C=xe.stateNode;switch(xe.tag){case 5:y=C;break;default:y=C}typeof _=="function"?_(y):_.current=y}}xe=xe.nextEffect}}catch(A){if(xe===null)throw Error(se(330));_n(xe,A),xe=xe.nextEffect}while(xe!==null);xe=null,FE(),Ce=i}else e.current=r;if(Fn)Fn=!1,oa=e,jo=t;else for(xe=n;xe!==null;)t=xe.nextEffect,xe.nextEffect=null,xe.flags&8&&(M=xe,M.sibling=null,M.stateNode=null),xe=t;if(n=e.pendingLanes,n===0&&(Fr=null),n===1?e===Ef?aa++:(aa=0,Ef=e):aa=0,r=r.stateNode,Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(O0,r,void 0,(r.current.flags&64)===64)}catch{}if(cr(e,Ct()),yl)throw yl=!1,e=xf,xf=null,e;return Ce&8||br(),null}function KE(){for(;xe!==null;){var e=xe.alternate;Xs||sa===null||(xe.flags&8?ch(xe,sa)&&(Xs=!0):xe.tag===13&&VE(e,xe)&&ch(xe,sa)&&(Xs=!0));var t=xe.flags;t&256&&UE(e,xe),!(t&512)||Fn||(Fn=!0,Aa(97,function(){return Mn(),null})),xe=xe.nextEffect}}function Mn(){if(jo!==90){var e=97<jo?97:jo;return jo=90,ei(e,qE)}return!1}function YE(e,t){wf.push(t,e),Fn||(Fn=!0,Aa(97,function(){return Mn(),null}))}function Xm(e,t){yf.push(t,e),Fn||(Fn=!0,Aa(97,function(){return Mn(),null}))}function qE(){if(oa===null)return!1;var e=oa;if(oa=null,Ce&48)throw Error(se(331));var t=Ce;Ce|=32;var r=yf;yf=[];for(var n=0;n<r.length;n+=2){var i=r[n],o=r[n+1],a=i.destroy;if(i.destroy=void 0,typeof a=="function")try{a()}catch(l){if(o===null)throw Error(se(330));_n(o,l)}}for(r=wf,wf=[],n=0;n<r.length;n+=2){i=r[n],o=r[n+1];try{var s=i.create;i.destroy=s()}catch(l){if(o===null)throw Error(se(330));_n(o,l)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return Ce=t,br(),!0}function dp(e,t,r){t=U0(r,t),t=Mm(e,t,1),yn(e,t),t=Qt(),e=ru(e,1),e!==null&&(Kl(e,1,t),cr(e,t))}function _n(e,t){if(e.tag===3)dp(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){dp(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Fr===null||!Fr.has(n))){e=U0(t,e);var i=Lm(r,e,1);if(yn(r,i),i=Qt(),r=ru(r,1),r!==null)Kl(r,1,i),cr(r,i);else if(typeof n.componentDidCatch=="function"&&(Fr===null||!Fr.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function QE(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Qt(),e.pingedLanes|=e.suspendedLanes&r,kt===e&&(At&r)===r&&(gt===4||gt===3&&(At&62914560)===At&&500>Ct()-W0?Xi(e,0):V0|=r),cr(e,t)}function ZE(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Hr===0&&(Hr=po),t=Pi(62914560&~Hr),t===0&&(t=4194304)):t=to()===99?1:2:t=1),r=Qt(),e=ru(e,t),e!==null&&(Kl(e,t,r),cr(e,r))}var Km;Km=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ht.current)yr=!0;else if(r&n)yr=!!(e.flags&16384);else{switch(yr=!1,t.tag){case 3:Zh(t),Zu();break;case 5:Wh(t);break;case 1:Vt(t.type)&&Ws(t);break;case 4:af(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Ze(ll,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?Jh(e,t,r):(Ze(Qe,Qe.current&1),t=Wr(e,t,r),t!==null?t.sibling:null);Ze(Qe,Qe.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return ip(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ze(Qe,Qe.current),n)break;return null;case 23:case 24:return t.lanes=0,Ju(e,t,r)}return Wr(e,t,r)}else yr=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=eo(t,Ft.current),zi(t,r),i=$0(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vt(n)){var o=!0;Ws(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,I0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&fl(t,n,a,e),i.updater=eu,t.stateNode=i,i._reactInternals=t,of(t,n,e,r),t=cf(null,t,n,!0,o,r)}else t.tag=0,Bt(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=eS(i),e=vr(i,e),o){case 0:t=uf(null,t,i,e,r);break e;case 1:t=Qh(null,t,i,e,r);break e;case 11:t=Yh(null,t,i,e,r);break e;case 14:t=qh(null,t,i,vr(i.type,e),n,r);break e}throw Error(se(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vr(n,i),uf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vr(n,i),Qh(e,t,n,i,r);case 3:if(Zh(t),n=t.updateQueue,e===null||n===null)throw Error(se(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,wm(e,t),Ra(t,n,null,r),n=t.memoizedState.element,n===i)Zu(),t=Wr(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(dn=Wi(t.stateNode.containerInfo.firstChild),Vr=t,o=Dr=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],Gi.push(o);for(r=_m(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Bt(e,t,n,r),Zu();t=t.child}return t;case 5:return Wh(t),e===null&&sf(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ef(n,i)?a=null:o!==null&&ef(n,o)&&(t.flags|=16),km(e,t),Bt(e,t,a,r),t.child;case 6:return e===null&&sf(t),null;case 13:return Jh(e,t,r);case 4:return af(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=dl(t,null,n,r):Bt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vr(n,i),Yh(e,t,n,i,r);case 7:return Bt(e,t,t.pendingProps,r),t.child;case 8:return Bt(e,t,t.pendingProps.children,r),t.child;case 12:return Bt(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(Ze(ll,s._currentValue),s._currentValue=o,a!==null)if(s=a.value,o=ar(s,o)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(s,o):1073741823)|0,o===0){if(a.children===i.children&&!Ht.current){t=Wr(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var u=l.firstContext;u!==null;){if(u.context===n&&u.observedBits&o){s.tag===1&&(u=wn(-1,r&-r),u.tag=2,yn(s,u)),s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),xm(s.return,r),l.lanes|=r;break}u=u.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Bt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,n=o.children,zi(t,r),i=ur(i,o.unstable_observedBits),n=n(i),t.flags|=1,Bt(e,t,n,r),t.child;case 14:return i=t.type,o=vr(i,t.pendingProps),o=vr(i.type,o),qh(e,t,i,o,n,r);case 15:return Im(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vr(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Vt(n)?(e=!0,Ws(t)):e=!1,zi(t,r),Em(t,n,i),of(t,n,i,r),cf(null,t,n,!0,e,r);case 19:return ip(e,t,r);case 23:return Ju(e,t,r);case 24:return Ju(e,t,r)}throw Error(se(156,t.tag))};function JE(e,t,r,n){this.tag=e,this.key=r,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=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function sr(e,t,r,n){return new JE(e,t,r,n)}function G0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eS(e){if(typeof e=="function")return G0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gl)return 11;if(e===jl)return 14}return 2}function Pn(e,t){var r=e.alternate;return r===null?(r=sr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ks(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")G0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case un:return Ki(r.children,i,o,t);case T1:a=8,i|=16;break;case s0:a=8,i|=1;break;case qo:return e=sr(12,r,t,i|8),e.elementType=qo,e.type=qo,e.lanes=o,e;case Qo:return e=sr(13,r,t,i),e.type=Qo,e.elementType=Qo,e.lanes=o,e;case Js:return e=sr(19,r,t,i),e.elementType=Js,e.lanes=o,e;case h0:return j0(r,i,o,t);case $c:return e=sr(24,r,t,i),e.elementType=$c,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case l0:a=10;break e;case u0:a=9;break e;case Gl:a=11;break e;case jl:a=14;break e;case c0:a=16,n=null;break e;case f0:a=22;break e}throw Error(se(130,e==null?e:typeof e,""))}return t=sr(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Ki(e,t,r,n){return e=sr(7,e,n,t),e.lanes=r,e}function j0(e,t,r,n){return e=sr(23,e,n,t),e.elementType=h0,e.lanes=r,e}function rc(e,t,r){return e=sr(6,e,null,t),e.lanes=r,e}function nc(e,t,r){return t=sr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tS(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Uu(0),this.expirationTimes=Uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.mutableSourceEagerHydrationData=null}function rS(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jn,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function El(e,t,r,n){var i=t.current,o=Qt(),a=En(i);e:if(r){r=r._reactInternals;t:{if(li(r)!==r||r.tag!==1)throw Error(se(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Vt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(se(171))}if(r.tag===1){var l=r.type;if(Vt(l)){r=fm(r,l,s);break e}}r=s}else r=On;return t.context===null?t.context=r:t.pendingContext=r,t=wn(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),yn(i,t),Sn(i,a,o),a}function ic(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 hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function X0(e,t){hp(e,t),(e=e.alternate)&&hp(e,t)}function nS(){return null}function K0(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new tS(e,t,r!=null&&r.hydrate===!0),t=sr(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,I0(t),e[ho]=r.current,am(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var i=t._getVersion;i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}K0.prototype.render=function(e){El(e,this._internalRoot,null,null)};K0.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;El(null,e,null,function(){t[ho]=null})};function za(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function iS(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new K0(e,0,t?{hydrate:!0}:void 0)}function nu(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o._internalRoot;if(typeof i=="function"){var s=i;i=function(){var u=ic(a);s.call(u)}}El(t,a,e,i)}else{if(o=r._reactRootContainer=iS(r,n),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var u=ic(a);l.call(u)}}Vm(function(){El(t,a,e,i)})}return ic(a)}B1=function(e){if(e.tag===13){var t=Qt();Sn(e,4,t),X0(e,4)}};x0=function(e){if(e.tag===13){var t=Qt();Sn(e,67108864,t),X0(e,67108864)}};U1=function(e){if(e.tag===13){var t=Qt(),r=En(e);Sn(e,r,t),X0(e,r)}};H1=function(e,t){return t()};jc=function(e,t,r){switch(t){case"input":if(Lc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Zl(n);if(!i)throw Error(se(90));A1(n),Lc(n,i)}}}break;case"textarea":O1(e,r);break;case"select":t=r.value,t!=null&&Ui(e,!!r.multiple,t,!1)}};g0=Hm;N1=function(e,t,r,n,i){var o=Ce;Ce|=4;try{return ei(98,e.bind(null,t,r,n,i))}finally{Ce=o,Ce===0&&(mo(),br())}};m0=function(){!(Ce&49)&&(zE(),Mn())};$1=function(e,t){var r=Ce;Ce|=2;try{return e(t)}finally{Ce=r,Ce===0&&(mo(),br())}};function Ym(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!za(t))throw Error(se(200));return rS(e,t,null,r)}var oS={Events:[Ha,Ni,Zl,k1,b1,Mn,{current:!1}]},Bo={findFiberByHostInstance:Kn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},aS={bundleType:Bo.bundleType,version:Bo.version,rendererPackageName:Bo.rendererPackageName,rendererConfig:Bo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:si.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=L1(e),e===null?null:e.stateNode},findFiberByHostInstance:Bo.findFiberByHostInstance||nS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gs.isDisabled&&gs.supportsFiber)try{O0=gs.inject(aS),Qn=gs}catch{}}dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oS;dr.createPortal=Ym;dr.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(se(188)):Error(se(268,Object.keys(e)));return e=L1(t),e=e===null?null:e.stateNode,e};dr.flushSync=function(e,t){var r=Ce;if(r&48)return e(t);Ce|=1;try{if(e)return ei(99,e.bind(null,t))}finally{Ce=r,br()}};dr.hydrate=function(e,t,r){if(!za(t))throw Error(se(200));return nu(null,e,t,!0,r)};dr.render=function(e,t,r){if(!za(t))throw Error(se(200));return nu(null,e,t,!1,r)};dr.unmountComponentAtNode=function(e){if(!za(e))throw Error(se(40));return e._reactRootContainer?(Vm(function(){nu(null,null,e,!1,function(){e._reactRootContainer=null,e[ho]=null})}),!0):!1};dr.unstable_batchedUpdates=Hm;dr.unstable_createPortal=function(e,t){return Ym(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};dr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!za(r))throw Error(se(200));if(e==null||e._reactInternals===void 0)throw Error(se(38));return nu(e,t,r,!1,n)};dr.version="17.0.2";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=dr})(fy);const qm=i1(Qr);/**
+Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}gt!==5&&(gt=2),l=U0(l,s),h=a;do{switch(h.tag){case 3:o=l,h.flags|=4096,t&=-t,h.lanes|=t;var b=Mm(h,o,t);Bh(h,b);break e;case 1:o=l;var M=h.type,_=h.stateNode;if(!(h.flags&64)&&(typeof M.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Fr===null||!Fr.has(_)))){h.flags|=4096,t&=-t,h.lanes|=t;var A=Lm(h,o,t);Bh(h,A);break e}}h=h.return}while(h!==null)}jm(r)}catch(R){t=R,at===r&&r!==null&&(at=r=r.return);continue}break}while(1)}function zm(){var e=wl.current;return wl.current=xl,e===null?xl:e}function Xo(e,t){var r=Ce;Ce|=16;var n=zm();kt===e&&At===t||Xi(e,t);do try{GE();break}catch(i){Wm(e,i)}while(1);if(P0(),Ce=r,wl.current=n,at!==null)throw Error(le(261));return kt=null,At=0,gt}function GE(){for(;at!==null;)Gm(at)}function jE(){for(;at!==null&&!RE();)Gm(at)}function Gm(e){var t=Km(e.alternate,e,ti);e.memoizedProps=e.pendingProps,t===null?jm(e):at=t,H0.current=null}function jm(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=ME(t),r!==null){r.flags&=2047,at=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=$E(r,t,ti),r!==null){at=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||ti&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){at=t;return}at=t=e}while(t!==null);gt===0&&(gt=5)}function Hn(e){var t=to();return ei(99,XE.bind(null,e,t)),null}function XE(e,t){do Mn();while(oa!==null);if(Ce&48)throw Error(le(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(le(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<o;){var l=31-Rn(o),u=1<<l;i[l]=0,a[l]=-1,s[l]=-1,o&=~u}if(Gr!==null&&!(n&24)&&Gr.has(e)&&Gr.delete(e),e===kt&&(at=kt=null,At=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=Ce,Ce|=32,H0.current=null,Xu=Us,a=Ch(),Qc(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&u.rangeCount!==0){s=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{s.nodeType,l.nodeType}catch{s=null;break e}var c=0,f=-1,h=-1,d=0,m=0,p=a,g=null;t:for(;;){for(var v;p!==s||o!==0&&p.nodeType!==3||(f=c+o),p!==l||u!==0&&p.nodeType!==3||(h=c+u),p.nodeType===3&&(c+=p.nodeValue.length),(v=p.firstChild)!==null;)g=p,p=v;for(;;){if(p===a)break t;if(g===s&&++d===o&&(f=c),g===l&&++m===u&&(h=c),(v=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=v}s=f===-1||h===-1?null:{start:f,end:h}}else s=null;s=s||{start:0,end:0}}else s=null;Ku={focusedElem:a,selectionRange:s},Us=!1,sa=null,Xs=!1,we=n;do try{KE()}catch(R){if(we===null)throw Error(le(330));_n(we,R),we=we.nextEffect}while(we!==null);sa=null,we=n;do try{for(a=e;we!==null;){var w=we.flags;if(w&16&&xa(we.stateNode,""),w&128){var y=we.alternate;if(y!==null){var S=y.ref;S!==null&&(typeof S=="function"?S(null):S.current=null)}}switch(w&1038){case 2:cp(we),we.flags&=-3;break;case 6:cp(we),we.flags&=-3,tc(we.alternate,we);break;case 1024:we.flags&=-1025;break;case 1028:we.flags&=-1025,tc(we.alternate,we);break;case 4:tc(we.alternate,we);break;case 8:s=we,Bm(a,s);var b=s.alternate;lp(s),b!==null&&lp(b)}we=we.nextEffect}}catch(R){if(we===null)throw Error(le(330));_n(we,R),we=we.nextEffect}while(we!==null);if(S=Ku,y=Ch(),w=S.focusedElem,a=S.selectionRange,y!==w&&w&&w.ownerDocument&&nm(w.ownerDocument.documentElement,w)){for(a!==null&&Qc(w)&&(y=a.start,S=a.end,S===void 0&&(S=y),"selectionStart"in w?(w.selectionStart=y,w.selectionEnd=Math.min(S,w.value.length)):(S=(y=w.ownerDocument||document)&&y.defaultView||window,S.getSelection&&(S=S.getSelection(),s=w.textContent.length,b=Math.min(a.start,s),a=a.end===void 0?b:Math.min(a.end,s),!S.extend&&b>a&&(s=a,a=b,b=s),s=Th(w,b),o=Th(w,a),s&&o&&(S.rangeCount!==1||S.anchorNode!==s.node||S.anchorOffset!==s.offset||S.focusNode!==o.node||S.focusOffset!==o.offset)&&(y=y.createRange(),y.setStart(s.node,s.offset),S.removeAllRanges(),b>a?(S.addRange(y),S.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),S.addRange(y)))))),y=[],S=w;S=S.parentNode;)S.nodeType===1&&y.push({element:S,left:S.scrollLeft,top:S.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<y.length;w++)S=y[w],S.element.scrollLeft=S.left,S.element.scrollTop=S.top}Us=!!Xu,Ku=Xu=null,e.current=r,we=n;do try{for(w=e;we!==null;){var M=we.flags;if(M&36&&HE(w,we.alternate,we),M&128){y=void 0;var _=we.ref;if(_!==null){var A=we.stateNode;switch(we.tag){case 5:y=A;break;default:y=A}typeof _=="function"?_(y):_.current=y}}we=we.nextEffect}}catch(R){if(we===null)throw Error(le(330));_n(we,R),we=we.nextEffect}while(we!==null);we=null,FE(),Ce=i}else e.current=r;if(Fn)Fn=!1,oa=e,jo=t;else for(we=n;we!==null;)t=we.nextEffect,we.nextEffect=null,we.flags&8&&(M=we,M.sibling=null,M.stateNode=null),we=t;if(n=e.pendingLanes,n===0&&(Fr=null),n===1?e===Ef?aa++:(aa=0,Ef=e):aa=0,r=r.stateNode,Qn&&typeof Qn.onCommitFiberRoot=="function")try{Qn.onCommitFiberRoot(O0,r,void 0,(r.current.flags&64)===64)}catch{}if(cr(e,Ct()),yl)throw yl=!1,e=xf,xf=null,e;return Ce&8||br(),null}function KE(){for(;we!==null;){var e=we.alternate;Xs||sa===null||(we.flags&8?ch(we,sa)&&(Xs=!0):we.tag===13&&VE(e,we)&&ch(we,sa)&&(Xs=!0));var t=we.flags;t&256&&UE(e,we),!(t&512)||Fn||(Fn=!0,Aa(97,function(){return Mn(),null})),we=we.nextEffect}}function Mn(){if(jo!==90){var e=97<jo?97:jo;return jo=90,ei(e,qE)}return!1}function YE(e,t){wf.push(t,e),Fn||(Fn=!0,Aa(97,function(){return Mn(),null}))}function Xm(e,t){yf.push(t,e),Fn||(Fn=!0,Aa(97,function(){return Mn(),null}))}function qE(){if(oa===null)return!1;var e=oa;if(oa=null,Ce&48)throw Error(le(331));var t=Ce;Ce|=32;var r=yf;yf=[];for(var n=0;n<r.length;n+=2){var i=r[n],o=r[n+1],a=i.destroy;if(i.destroy=void 0,typeof a=="function")try{a()}catch(l){if(o===null)throw Error(le(330));_n(o,l)}}for(r=wf,wf=[],n=0;n<r.length;n+=2){i=r[n],o=r[n+1];try{var s=i.create;i.destroy=s()}catch(l){if(o===null)throw Error(le(330));_n(o,l)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return Ce=t,br(),!0}function dp(e,t,r){t=U0(r,t),t=Mm(e,t,1),yn(e,t),t=Qt(),e=ru(e,1),e!==null&&(Kl(e,1,t),cr(e,t))}function _n(e,t){if(e.tag===3)dp(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){dp(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Fr===null||!Fr.has(n))){e=U0(t,e);var i=Lm(r,e,1);if(yn(r,i),i=Qt(),r=ru(r,1),r!==null)Kl(r,1,i),cr(r,i);else if(typeof n.componentDidCatch=="function"&&(Fr===null||!Fr.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function QE(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Qt(),e.pingedLanes|=e.suspendedLanes&r,kt===e&&(At&r)===r&&(gt===4||gt===3&&(At&62914560)===At&&500>Ct()-W0?Xi(e,0):V0|=r),cr(e,t)}function ZE(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Hr===0&&(Hr=po),t=Pi(62914560&~Hr),t===0&&(t=4194304)):t=to()===99?1:2:t=1),r=Qt(),e=ru(e,t),e!==null&&(Kl(e,t,r),cr(e,r))}var Km;Km=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ht.current)yr=!0;else if(r&n)yr=!!(e.flags&16384);else{switch(yr=!1,t.tag){case 3:Zh(t),Zu();break;case 5:Wh(t);break;case 1:Vt(t.type)&&Ws(t);break;case 4:af(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Ze(ll,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?Jh(e,t,r):(Ze(Qe,Qe.current&1),t=Wr(e,t,r),t!==null?t.sibling:null);Ze(Qe,Qe.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return ip(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ze(Qe,Qe.current),n)break;return null;case 23:case 24:return t.lanes=0,Ju(e,t,r)}return Wr(e,t,r)}else yr=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=eo(t,Ft.current),zi(t,r),i=$0(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vt(n)){var o=!0;Ws(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,I0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&fl(t,n,a,e),i.updater=eu,t.stateNode=i,i._reactInternals=t,of(t,n,e,r),t=cf(null,t,n,!0,o,r)}else t.tag=0,Bt(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=i._init,i=o(i._payload),t.type=i,o=t.tag=eS(i),e=vr(i,e),o){case 0:t=uf(null,t,i,e,r);break e;case 1:t=Qh(null,t,i,e,r);break e;case 11:t=Yh(null,t,i,e,r);break e;case 14:t=qh(null,t,i,vr(i.type,e),n,r);break e}throw Error(le(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vr(n,i),uf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vr(n,i),Qh(e,t,n,i,r);case 3:if(Zh(t),n=t.updateQueue,e===null||n===null)throw Error(le(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,wm(e,t),Ra(t,n,null,r),n=t.memoizedState.element,n===i)Zu(),t=Wr(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(dn=Wi(t.stateNode.containerInfo.firstChild),Vr=t,o=Dr=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],Gi.push(o);for(r=_m(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Bt(e,t,n,r),Zu();t=t.child}return t;case 5:return Wh(t),e===null&&sf(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ef(n,i)?a=null:o!==null&&ef(n,o)&&(t.flags|=16),km(e,t),Bt(e,t,a,r),t.child;case 6:return e===null&&sf(t),null;case 13:return Jh(e,t,r);case 4:return af(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=dl(t,null,n,r):Bt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vr(n,i),Yh(e,t,n,i,r);case 7:return Bt(e,t,t.pendingProps,r),t.child;case 8:return Bt(e,t,t.pendingProps.children,r),t.child;case 12:return Bt(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value;var s=t.type._context;if(Ze(ll,s._currentValue),s._currentValue=o,a!==null)if(s=a.value,o=ar(s,o)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(s,o):1073741823)|0,o===0){if(a.children===i.children&&!Ht.current){t=Wr(e,t,r);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){a=s.child;for(var u=l.firstContext;u!==null;){if(u.context===n&&u.observedBits&o){s.tag===1&&(u=wn(-1,r&-r),u.tag=2,yn(s,u)),s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),xm(s.return,r),l.lanes|=r;break}u=u.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}Bt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,o=t.pendingProps,n=o.children,zi(t,r),i=ur(i,o.unstable_observedBits),n=n(i),t.flags|=1,Bt(e,t,n,r),t.child;case 14:return i=t.type,o=vr(i,t.pendingProps),o=vr(i.type,o),qh(e,t,i,o,n,r);case 15:return Im(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vr(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Vt(n)?(e=!0,Ws(t)):e=!1,zi(t,r),Em(t,n,i),of(t,n,i,r),cf(null,t,n,!0,e,r);case 19:return ip(e,t,r);case 23:return Ju(e,t,r);case 24:return Ju(e,t,r)}throw Error(le(156,t.tag))};function JE(e,t,r,n){this.tag=e,this.key=r,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=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function sr(e,t,r,n){return new JE(e,t,r,n)}function G0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function eS(e){if(typeof e=="function")return G0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Gl)return 11;if(e===jl)return 14}return 2}function Pn(e,t){var r=e.alternate;return r===null?(r=sr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ks(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")G0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case un:return Ki(r.children,i,o,t);case T1:a=8,i|=16;break;case s0:a=8,i|=1;break;case qo:return e=sr(12,r,t,i|8),e.elementType=qo,e.type=qo,e.lanes=o,e;case Qo:return e=sr(13,r,t,i),e.type=Qo,e.elementType=Qo,e.lanes=o,e;case Js:return e=sr(19,r,t,i),e.elementType=Js,e.lanes=o,e;case h0:return j0(r,i,o,t);case $c:return e=sr(24,r,t,i),e.elementType=$c,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case l0:a=10;break e;case u0:a=9;break e;case Gl:a=11;break e;case jl:a=14;break e;case c0:a=16,n=null;break e;case f0:a=22;break e}throw Error(le(130,e==null?e:typeof e,""))}return t=sr(a,r,t,i),t.elementType=e,t.type=n,t.lanes=o,t}function Ki(e,t,r,n){return e=sr(7,e,n,t),e.lanes=r,e}function j0(e,t,r,n){return e=sr(23,e,n,t),e.elementType=h0,e.lanes=r,e}function rc(e,t,r){return e=sr(6,e,null,t),e.lanes=r,e}function nc(e,t,r){return t=sr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tS(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Uu(0),this.expirationTimes=Uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.mutableSourceEagerHydrationData=null}function rS(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jn,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function El(e,t,r,n){var i=t.current,o=Qt(),a=En(i);e:if(r){r=r._reactInternals;t:{if(li(r)!==r||r.tag!==1)throw Error(le(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Vt(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(le(171))}if(r.tag===1){var l=r.type;if(Vt(l)){r=fm(r,l,s);break e}}r=s}else r=On;return t.context===null?t.context=r:t.pendingContext=r,t=wn(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),yn(i,t),Sn(i,a,o),a}function ic(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 hp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function X0(e,t){hp(e,t),(e=e.alternate)&&hp(e,t)}function nS(){return null}function K0(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new tS(e,t,r!=null&&r.hydrate===!0),t=sr(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,I0(t),e[ho]=r.current,am(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var i=t._getVersion;i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}K0.prototype.render=function(e){El(e,this._internalRoot,null,null)};K0.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;El(null,e,null,function(){t[ho]=null})};function za(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function iS(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new K0(e,0,t?{hydrate:!0}:void 0)}function nu(e,t,r,n,i){var o=r._reactRootContainer;if(o){var a=o._internalRoot;if(typeof i=="function"){var s=i;i=function(){var u=ic(a);s.call(u)}}El(t,a,e,i)}else{if(o=r._reactRootContainer=iS(r,n),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var u=ic(a);l.call(u)}}Vm(function(){El(t,a,e,i)})}return ic(a)}B1=function(e){if(e.tag===13){var t=Qt();Sn(e,4,t),X0(e,4)}};x0=function(e){if(e.tag===13){var t=Qt();Sn(e,67108864,t),X0(e,67108864)}};U1=function(e){if(e.tag===13){var t=Qt(),r=En(e);Sn(e,r,t),X0(e,r)}};H1=function(e,t){return t()};jc=function(e,t,r){switch(t){case"input":if(Lc(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=Zl(n);if(!i)throw Error(le(90));A1(n),Lc(n,i)}}}break;case"textarea":O1(e,r);break;case"select":t=r.value,t!=null&&Ui(e,!!r.multiple,t,!1)}};g0=Hm;N1=function(e,t,r,n,i){var o=Ce;Ce|=4;try{return ei(98,e.bind(null,t,r,n,i))}finally{Ce=o,Ce===0&&(mo(),br())}};m0=function(){!(Ce&49)&&(zE(),Mn())};$1=function(e,t){var r=Ce;Ce|=2;try{return e(t)}finally{Ce=r,Ce===0&&(mo(),br())}};function Ym(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!za(t))throw Error(le(200));return rS(e,t,null,r)}var oS={Events:[Ha,Ni,Zl,k1,b1,Mn,{current:!1}]},Bo={findFiberByHostInstance:Kn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},aS={bundleType:Bo.bundleType,version:Bo.version,rendererPackageName:Bo.rendererPackageName,rendererConfig:Bo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:si.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=L1(e),e===null?null:e.stateNode},findFiberByHostInstance:Bo.findFiberByHostInstance||nS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gs.isDisabled&&gs.supportsFiber)try{O0=gs.inject(aS),Qn=gs}catch{}}dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oS;dr.createPortal=Ym;dr.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(le(188)):Error(le(268,Object.keys(e)));return e=L1(t),e=e===null?null:e.stateNode,e};dr.flushSync=function(e,t){var r=Ce;if(r&48)return e(t);Ce|=1;try{if(e)return ei(99,e.bind(null,t))}finally{Ce=r,br()}};dr.hydrate=function(e,t,r){if(!za(t))throw Error(le(200));return nu(null,e,t,!0,r)};dr.render=function(e,t,r){if(!za(t))throw Error(le(200));return nu(null,e,t,!1,r)};dr.unmountComponentAtNode=function(e){if(!za(e))throw Error(le(40));return e._reactRootContainer?(Vm(function(){nu(null,null,e,!1,function(){e._reactRootContainer=null,e[ho]=null})}),!0):!1};dr.unstable_batchedUpdates=Hm;dr.unstable_createPortal=function(e,t){return Ym(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};dr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!za(r))throw Error(le(200));if(e==null||e._reactInternals===void 0)throw Error(le(38));return nu(e,t,r,!1,n)};dr.version="17.0.2";(function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}t(),e.exports=dr})(fy);const qm=i1(Qr);/**
  * table-core
  *
  * Copyright (c) TanStack
@@ -85,7 +85,7 @@
  */function hn(e,t){return typeof e=="function"?e(t):e}function fr(e,t){return r=>{t.setState(n=>({...n,[e]:hn(r,n[e])}))}}function Sl(e){return e instanceof Function}function sS(e,t){const r=[],n=i=>{i.forEach(o=>{r.push(o);const a=t(o);a!=null&&a.length&&n(a)})};return n(e),r}function Ae(e,t,r){let n=[],i;return()=>{let o;r.key&&r.debug&&(o=Date.now());const a=e();if(!(a.length!==n.length||a.some((u,c)=>n[c]!==u)))return i;n=a;let l;if(r.key&&r.debug&&(l=Date.now()),i=t(...a),r==null||r.onChange==null||r.onChange(i),r.key&&r.debug&&r!=null&&r.debug()){const u=Math.round((Date.now()-o)*100)/100,c=Math.round((Date.now()-l)*100)/100,f=c/16,h=(d,m)=>{for(d=String(d);d.length<m;)d=" "+d;return d};console.info(`%c⏱ ${h(c,5)} /${h(u,5)} ms`,`
             font-size: .6rem;
             font-weight: bold;
-            color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,r==null?void 0:r.key)}return i}}function lS(e,t,r,n){var i,o;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(o=s.id)!=null?o:l?l.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let d=h;for(const p of l.split(".")){var m;d=(m=d)==null?void 0:m[p]}return d}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:Ae(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(d=>d.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var h;return(h=e.options.debugAll)!=null?h:e.options.debugColumns}}),getLeafColumns:Ae(()=>[e._getOrderColumnsFn()],h=>{var d;if((d=f.columns)!=null&&d.length){let m=f.columns.flatMap(p=>p.getLeafColumns());return h(m)}return[f]},{key:"column.getLeafColumns",debug:()=>{var h;return(h=e.options.debugAll)!=null?h:e.options.debugColumns}})};return f=e._features.reduce((h,d)=>Object.assign(h,d.createColumn==null?void 0:d.createColumn(f,e)),f),f}function pp(e,t,r){var n;let o={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(o),a},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(a=>{Object.assign(o,a.createHeader==null?void 0:a.createHeader(o,e))}),o}const uS={createTable:e=>({getHeaderGroups:Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var o,a;const s=(o=n==null?void 0:n.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?a:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return ms(t,[...s,...u,...l],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(o=>!(n!=null&&n.includes(o.id))&&!(i!=null&&i.includes(o.id))),ms(t,r,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const o=(i=n==null?void 0:n.map(a=>r.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return ms(t,o,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const o=(i=n==null?void 0:n.map(a=>r.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return ms(t,o,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:Ae(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:Ae(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:Ae(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:Ae(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:Ae(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:Ae(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:Ae(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:Ae(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:Ae(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:Ae(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:Ae(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:Ae(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,o,a,s,l,u;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(a=(s=r[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function ms(e,t,r,n){var i,o;let a=0;const s=function(h,d){d===void 0&&(d=1),a=Math.max(a,d),h.filter(m=>m.getIsVisible()).forEach(m=>{var p;(p=m.columns)!=null&&p.length&&s(m.columns,d+1)},0)};s(e);let l=[];const u=(h,d)=>{const m={depth:d,id:[n,`${d}`].filter(Boolean).join("_"),headers:[]},p=[];h.forEach(g=>{const v=[...p].reverse()[0],w=g.column.depth===m.depth;let y,S=!1;if(w&&g.column.parent?y=g.column.parent:(y=g.column,S=!0),v&&(v==null?void 0:v.column)===y)v.subHeaders.push(g);else{const N=pp(r,y,{id:[n,d,y.id,g==null?void 0:g.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${p.filter(M=>M.column===y).length}`:void 0,depth:d,index:p.length});N.subHeaders.push(g),p.push(N)}m.headers.push(g),g.headerGroup=m}),l.push(m),d>0&&u(p,d-1)},c=t.map((h,d)=>pp(r,h,{depth:a,index:d}));u(c,a-1),l.reverse();const f=h=>h.filter(m=>m.column.getIsVisible()).map(m=>{let p=0,g=0,v=[0];m.subHeaders&&m.subHeaders.length?(v=[],f(m.subHeaders).forEach(y=>{let{colSpan:S,rowSpan:N}=y;p+=S,v.push(N)})):p=1;const w=Math.min(...v);return g=g+w,m.colSpan=p,m.rowSpan=g,{colSpan:p,rowSpan:g}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const vs={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},oc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),cS={getDefaultColumnDef:()=>vs,getInitialState:e=>({columnSizing:{},columnSizingInfo:oc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:fr("columnSizing",e),onColumnSizingInfoChange:fr("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var r,n,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:vs.minSize,(n=o??e.columnDef.size)!=null?n:vs.size),(i=e.columnDef.maxSize)!=null?i:vs.maxSize)},getStart:r=>{const n=r?r==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),i=n.findIndex(o=>o.id===e.id);if(i>0){const o=n[i-1];return o.getStart(r)+o.getSize()}return 0},resetSize:()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},getCanResize:()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var o;r+=(o=i.column.getSize())!=null?o:0}};return n(e),r},getStart:()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},getResizeHandler:()=>{const r=t.getColumn(e.column.id),n=r==null?void 0:r.getCanResize();return i=>{if(!r||!n||(i.persist==null||i.persist(),ac(i)&&i.touches&&i.touches.length>1))return;const o=e.getSize(),a=e?e.getLeafHeaders().map(p=>[p.column.id,p.column.getSize()]):[[r.id,r.getSize()]],s=ac(i)?Math.round(i.touches[0].clientX):i.clientX,l={},u=(p,g)=>{typeof g=="number"&&(t.setColumnSizingInfo(v=>{var w,y;const S=g-((w=v==null?void 0:v.startOffset)!=null?w:0),N=Math.max(S/((y=v==null?void 0:v.startSize)!=null?y:0),-.999999);return v.columnSizingStart.forEach(M=>{let[_,C]=M;l[_]=Math.round(Math.max(C+C*N,0)*100)/100}),{...v,deltaOffset:S,deltaPercentage:N}}),(t.options.columnResizeMode==="onChange"||p==="end")&&t.setColumnSizing(v=>({...v,...l})))},c=p=>u("move",p),f=p=>{u("end",p),t.setColumnSizingInfo(g=>({...g,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h={moveHandler:p=>c(p.clientX),upHandler:p=>{document.removeEventListener("mousemove",h.moveHandler),document.removeEventListener("mouseup",h.upHandler),f(p.clientX)}},d={moveHandler:p=>(p.cancelable&&(p.preventDefault(),p.stopPropagation()),c(p.touches[0].clientX),!1),upHandler:p=>{var g;document.removeEventListener("touchmove",d.moveHandler),document.removeEventListener("touchend",d.upHandler),p.cancelable&&(p.preventDefault(),p.stopPropagation()),f((g=p.touches[0])==null?void 0:g.clientX)}},m=fS()?{passive:!1}:!1;ac(i)?(document.addEventListener("touchmove",d.moveHandler,m),document.addEventListener("touchend",d.upHandler,m)):(document.addEventListener("mousemove",h.moveHandler,m),document.addEventListener("mouseup",h.upHandler,m)),t.setColumnSizingInfo(p=>({...p,startOffset:s,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},resetHeaderSizeInfo:t=>{var r;e.setColumnSizingInfo(t?oc():(r=e.initialState.columnSizingInfo)!=null?r:oc())},getTotalSize:()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}})};let xs=null;function fS(){if(typeof xs=="boolean")return xs;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return xs=e,xs}function ac(e){return e.type==="touchstart"}const dS={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:fr("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;return{_autoResetExpanded:()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},setExpanded:n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),toggleAllRowsExpanded:n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:n=>{var i,o;e.setExpanded(n?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(n=>n.getCanExpand()),getToggleAllRowsExpandedHandler:()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},getIsAllRowsExpanded:()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},getExpandedDepth:()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const a=o.split(".");n=Math.max(n,a.length)}),n},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:r=>{t.setExpanded(n=>{var i;const o=n===!0?!0:!!(n!=null&&n[e.id]);let a={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=n,r=(i=r)!=null?i:!o,!o&&r)return{...a,[e.id]:!0};if(o&&!r){const{[e.id]:s,...l}=a;return l}return n})},getIsExpanded:()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n!=null&&n[e.id])},getCanExpand:()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},getToggleExpandedHandler:()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}})},Qm=(e,t,r)=>{var n;const i=r.toLowerCase();return!!((n=e.getValue(t))!=null&&n.toLowerCase().includes(i))};Qm.autoRemove=e=>Sr(e);const Zm=(e,t,r)=>{var n;return!!((n=e.getValue(t))!=null&&n.includes(r))};Zm.autoRemove=e=>Sr(e);const Jm=(e,t,r)=>{var n;return((n=e.getValue(t))==null?void 0:n.toLowerCase())===r.toLowerCase()};Jm.autoRemove=e=>Sr(e);const ev=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};ev.autoRemove=e=>Sr(e)||!(e!=null&&e.length);const tv=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});tv.autoRemove=e=>Sr(e)||!(e!=null&&e.length);const rv=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});rv.autoRemove=e=>Sr(e)||!(e!=null&&e.length);const nv=(e,t,r)=>e.getValue(t)===r;nv.autoRemove=e=>Sr(e);const iv=(e,t,r)=>e.getValue(t)==r;iv.autoRemove=e=>Sr(e);const Y0=(e,t,r)=>{let[n,i]=r;const o=e.getValue(t);return o>=n&&o<=i};Y0.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,o=t===null||Number.isNaN(n)?-1/0:n,a=r===null||Number.isNaN(i)?1/0:i;if(o>a){const s=o;o=a,a=s}return[o,a]};Y0.autoRemove=e=>Sr(e)||Sr(e[0])&&Sr(e[1]);const Lr={includesString:Qm,includesStringSensitive:Zm,equalsString:Jm,arrIncludes:ev,arrIncludesAll:tv,arrIncludesSome:rv,equals:nv,weakEquals:iv,inNumberRange:Y0};function Sr(e){return e==null||e===""}const hS={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:fr("columnFilters",e),onGlobalFilterChange:fr("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r,n;const i=(r=e.getCoreRowModel().flatRows[0])==null||(n=r._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof i=="string"||typeof i=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);return typeof n=="string"?Lr.includesString:typeof n=="number"?Lr.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Lr.equals:Array.isArray(n)?Lr.arrIncludes:Lr.weakEquals},getFilterFn:()=>{var r,n;return Sl(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Lr[e.columnDef.filterFn]},getCanFilter:()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var r,n,i,o;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var r,n;return(r=t.getState().columnFilters)==null||(n=r.find(i=>i.id===e.id))==null?void 0:n.value},getFilterIndex:()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},setFilterValue:r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),o=n==null?void 0:n.find(c=>c.id===e.id),a=hn(r,o?o.value:void 0);if(gp(i,a,e)){var s;return(s=n==null?void 0:n.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=n==null?void 0:n.map(c=>c.id===e.id?l:c))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Lr.includesString,getGlobalFilterFn:()=>{var t,r;const{globalFilterFn:n}=e.options;return Sl(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Lr[n]},setColumnFilters:t=>{const r=e.getAllLeafColumns(),n=i=>{var o;return(o=hn(t,i))==null?void 0:o.filter(a=>{const s=r.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(gp(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function gp(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const pS=(e,t,r)=>r.reduce((n,i)=>{const o=i.getValue(e);return n+(typeof o=="number"?o:0)},0),gS=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}),n},mS=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}),n},vS=(e,t,r)=>{let n,i;return r.forEach(o=>{const a=o.getValue(e);a!=null&&(n===void 0?a>=a&&(n=i=a):(n>a&&(n=a),i<a&&(i=a)))}),[n,i]},xS=(e,t)=>{let r=0,n=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++r,n+=o)}),r)return n/r},wS=(e,t)=>{if(!t.length)return;let r=0,n=0;return t.forEach(i=>{let o=i.getValue(e);typeof o=="number"&&(r=Math.min(r,o),n=Math.max(n,o))}),(r+n)/2},yS=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),ES=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,SS=(e,t)=>t.length,sc={sum:pS,min:gS,max:mS,extent:vS,mean:xS,median:wS,unique:yS,uniqueCount:ES,count:SS},_S={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:fr("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},getCanGroup:()=>{var r,n,i,o;return(r=(n=(i=(o=e.columnDef.enableGrouping)!=null?o:!0)!=null?i:t.options.enableGrouping)!=null?n:!0)!=null?r:!!e.accessorFn},getIsGrouped:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},getGroupedIndex:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},getToggleGroupingHandler:()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);if(typeof n=="number")return sc.sum;if(Object.prototype.toString.call(n)==="[object Date]")return sc.extent},getAggregationFn:()=>{var r,n;if(!e)throw new Error;return Sl(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:sc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,r,n)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===r.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}})};function TS(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(o=>!t.includes(o.id));return r==="remove"?n:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...n]}const CS={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:fr("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},_getOrderColumnsFn:Ae(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const a=[...t],s=[...i];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&o.push(s.splice(u,1)[0])}o=[...o,...s]}return TS(o,r,n)},{key:!1})})},_f=0,Tf=10,lc=()=>({pageIndex:_f,pageSize:Tf}),AS={getInitialState:e=>({...e,pagination:{...lc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:fr("pagination",e)}),createTable:e=>{let t=!1,r=!1;return{_autoResetPageIndex:()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},setPagination:n=>{const i=o=>hn(n,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},resetPagination:n=>{var i;e.setPagination(n?lc():(i=e.initialState.pagination)!=null?i:lc())},setPageIndex:n=>{e.setPagination(i=>{let o=hn(n,i.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,a)),{...i,pageIndex:o}})},resetPageIndex:n=>{var i,o,a;e.setPageIndex(n?_f:(i=(o=e.initialState)==null||(a=o.pagination)==null?void 0:a.pageIndex)!=null?i:_f)},resetPageSize:n=>{var i,o,a;e.setPageSize(n?Tf:(i=(o=e.initialState)==null||(a=o.pagination)==null?void 0:a.pageSize)!=null?i:Tf)},setPageSize:n=>{e.setPagination(i=>{const o=Math.max(1,hn(n,i.pageSize)),a=i.pageSize*i.pageIndex,s=Math.floor(a/o);return{...i,pageIndex:s,pageSize:o}})},setPageCount:n=>e.setPagination(i=>{var o;let a=hn(n,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),getPageOptions:Ae(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((o,a)=>a)),i},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:n<i-1},previousPage:()=>e.setPageIndex(n=>n-1),nextPage:()=>e.setPageIndex(n=>n+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},uc=()=>({left:[],right:[]}),RS={getInitialState:e=>({columnPinning:uc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:fr("columnPinning",e)}),createColumn:(e,t)=>({pin:r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,a;if(r==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(f=>!(n!=null&&n.includes(f))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f)))}})},getCanPin:()=>e.getLeafColumns().some(n=>{var i,o;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((o=t.options.enablePinning)!=null?o:!0)}),getIsPinned:()=>{const r=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=t.getState().columnPinning,o=r.some(s=>n==null?void 0:n.includes(s)),a=r.some(s=>i==null?void 0:i.includes(s));return o?"left":a?"right":!1},getPinnedIndex:()=>{var r,n,i;const o=e.getIsPinned();return o?(r=(n=t.getState().columnPinning)==null||(i=n[o])==null?void 0:i.indexOf(e.id))!=null?r:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:Ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const o=[...n??[],...i??[]];return r.filter(a=>!o.includes(a.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getLeftVisibleCells:Ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(r,n)=>(n??[]).map(o=>r.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getRightVisibleCells:Ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(o=>r.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var r,n;return e.setColumnPinning(t?uc():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:uc())},getIsSomeColumnsPinned:t=>{var r;const n=e.getState().columnPinning;if(!t){var i,o;return!!((i=n.left)!=null&&i.length||(o=n.right)!=null&&o.length)}return!!((r=n[t])!=null&&r.length)},getLeftLeafColumns:Ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:Ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:Ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(o=>!i.includes(o.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},OS={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:fr("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},toggleAllRowsSelected:t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(n[o.id]=!0)}):i.forEach(o=>{delete n[o.id]}),n})},toggleAllPageRowsSelected:t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(o=>{Cf(i,o.id,n,e)}),i}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:Ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?cc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:Ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?cc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:Ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?cc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},getIsSomeRowsSelected:()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.some(r=>r.getIsSelected()||r.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:r=>{const n=e.getIsSelected();t.setRowSelection(i=>{if(r=typeof r<"u"?r:!n,n===r)return i;const o={...i};return Cf(o,e.id,r,t),o})},getIsSelected:()=>{const{rowSelection:r}=t.getState();return q0(e,r)},getIsSomeSelected:()=>{const{rowSelection:r}=t.getState();return mp(e,r)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:r}=t.getState();return mp(e,r)==="all"},getCanSelect:()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},getCanSelectSubRows:()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},getCanMultiSelect:()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},getToggleSelectedHandler:()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}})},Cf=(e,t,r,n)=>{var i;const o=n.getRow(t);r?(o.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),o.getCanSelect()&&(e[t]=!0)):delete e[t],(i=o.subRows)!=null&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(a=>Cf(e,a.id,r,n))};function cc(e,t){const r=e.getState().rowSelection,n=[],i={},o=function(a,s){return a.map(l=>{var u;const c=q0(l,r);if(c&&(n.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),c)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:n,rowsById:i}}function q0(e,t){var r;return(r=t[e.id])!=null?r:!1}function mp(e,t,r){if(e.subRows&&e.subRows.length){let n=!0,i=!1;return e.subRows.forEach(o=>{i&&!n||(q0(o,t)?i=!0:n=!1)}),n?"all":i?"some":!1}return!1}const Af=/([0-9]+)/gm,FS=(e,t,r)=>ov(Dn(e.getValue(r)).toLowerCase(),Dn(t.getValue(r)).toLowerCase()),PS=(e,t,r)=>ov(Dn(e.getValue(r)),Dn(t.getValue(r))),DS=(e,t,r)=>Q0(Dn(e.getValue(r)).toLowerCase(),Dn(t.getValue(r)).toLowerCase()),IS=(e,t,r)=>Q0(Dn(e.getValue(r)),Dn(t.getValue(r))),kS=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},bS=(e,t,r)=>Q0(e.getValue(r),t.getValue(r));function Q0(e,t){return e===t?0:e>t?1:-1}function Dn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function ov(e,t){const r=e.split(Af).filter(Boolean),n=t.split(Af).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),o=n.shift(),a=parseInt(i,10),s=parseInt(o,10),l=[a,s].sort();if(isNaN(l[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return r.length-n.length}const Uo={alphanumeric:FS,alphanumericCaseSensitive:PS,text:DS,textCaseSensitive:IS,datetime:kS,basic:bS},NS={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:fr("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const o=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Uo.datetime;if(typeof o=="string"&&(n=!0,o.split(Af).length>1))return Uo.alphanumeric}return n?Uo.text:Uo.basic},getAutoSortDir:()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof(r==null?void 0:r.getValue(e.id))=="string"?"asc":"desc"},getSortingFn:()=>{var r,n;if(!e)throw new Error;return Sl(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Uo[e.columnDef.sortingFn]},toggleSorting:(r,n)=>{const i=e.getNextSortingOrder(),o=typeof r<"u"&&r!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(d=>d.id===e.id),l=a==null?void 0:a.findIndex(d=>d.id===e.id);let u=[],c,f=o?r:i==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&n?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(o||i||(c="remove")),c==="add"){var h;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=a.filter(d=>d.id!==e.id):u=[{id:e.id,desc:f}];return u})},getFirstSortDir:()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:r=>{var n,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==o&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":o},getCanSort:()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},getIsSorted:()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},getSortIndex:()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},clearSorting:()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},getToggleSortingHandler:()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},$S={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:fr("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},getIsVisible:()=>{var r,n;return(r=(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},getCanHide:()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},getToggleVisibilityHandler:()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:Ae(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getVisibleCells:Ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>{const t=(r,n)=>Ae(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),{key:r,debug:()=>{var i;return(i=e.options.debugAll)!=null?i:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),resetColumnVisibility:r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},toggleAllColumnsVisible:r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:r||!(o.getCanHide!=null&&o.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}}},vp=[uS,$S,CS,RS,hS,NS,_S,dS,AS,OS,cS];function MS(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:vp};const n=r._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),i=c=>r.options.mergeOptions?r.options.mergeOptions(n,c):{...n,...c};let a={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(c=>{var f;a=(f=c.getInitialState==null?void 0:c.getInitialState(a))!=null?f:a});const s=[];let l=!1;const u={_features:vp,options:{...n,...e},initialState:a,_queue:c=>{s.push(c),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const f=hn(c,r.options);r.options=i(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,h)=>{var d;return(d=r.options.getRowId==null?void 0:r.options.getRowId(c,f,h))!=null?d:`${h?[h.id,f].join("."):f}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:c=>{const f=r.getRowModel().rowsById[c];if(!f)throw new Error;return f},_getDefaultColumnDef:Ae(()=>[r.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:h=>{const d=h.header.column.columnDef;return d.accessorKey?d.accessorKey:d.accessorFn?d.id:null},cell:h=>{var d,m;return(d=(m=h.renderValue())==null||m.toString==null?void 0:m.toString())!=null?d:null},...r._features.reduce((h,d)=>Object.assign(h,d.getDefaultColumnDef==null?void 0:d.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns},key:!1}),_getColumnDefs:()=>r.options.columns,getAllColumns:Ae(()=>[r._getColumnDefs()],c=>{const f=function(h,d,m){return m===void 0&&(m=0),h.map(p=>{const g=lS(r,p,m,d),v=p;return g.columns=v.columns?f(v.columns,g,m+1):[],g})};return f(c)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllFlatColumns:Ae(()=>[r.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),_getAllFlatColumnsById:Ae(()=>[r.getAllFlatColumns()],c=>c.reduce((f,h)=>(f[h.id]=h,f),{}),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllLeafColumns:Ae(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,f)=>{let h=c.flatMap(d=>d.getLeafColumns());return f(h)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getColumn:c=>r._getAllFlatColumnsById()[c]};return Object.assign(r,u),r._features.forEach(c=>Object.assign(r,c.createTable==null?void 0:c.createTable(r))),r}function LS(e,t,r,n){const i=()=>{var a;return(a=o.getValue())!=null?a:e.options.renderFallbackValue},o={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:Ae(()=>[e,r,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(a=>{Object.assign(o,a.createCell==null?void 0:a.createCell(o,r,t,e))},{}),o}const Z0=(e,t,r,n,i,o)=>{let a={id:t,index:n,original:r,depth:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(a._valuesCache.hasOwnProperty(s))return a._valuesCache[s];const l=e.getColumn(s);if(l!=null&&l.accessorFn)return a._valuesCache[s]=l.accessorFn(a.original,n),a._valuesCache[s]},getUniqueValues:s=>{if(a._uniqueValuesCache.hasOwnProperty(s))return a._uniqueValuesCache[s];const l=e.getColumn(s);if(l!=null&&l.accessorFn)return l.columnDef.getUniqueValues?(a._uniqueValuesCache[s]=l.columnDef.getUniqueValues(a.original,n),a._uniqueValuesCache[s]):(a._uniqueValuesCache[s]=[a.getValue(s)],a._uniqueValuesCache[s])},renderValue:s=>{var l;return(l=a.getValue(s))!=null?l:e.options.renderFallbackValue},subRows:o??[],getLeafRows:()=>sS(a.subRows,s=>s.subRows),getAllCells:Ae(()=>[e.getAllLeafColumns()],s=>s.map(l=>LS(e,a,l,l.id)),{key:!1,debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugRows}}),_getAllCellsByColumnId:Ae(()=>[a.getAllCells()],s=>s.reduce((l,u)=>(l[u.column.id]=u,l),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugRows}})};for(let s=0;s<e._features.length;s++){const l=e._features[s];Object.assign(a,l==null||l.createRow==null?void 0:l.createRow(a,e))}return a};function BS(){return e=>Ae(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;u<i.length;u++){const c=Z0(e,e._getRowId(i[u],u,a),i[u],u,o);if(r.flatRows.push(c),r.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=n(c.originalSubRows,o+1,c))}}return s};return r.rows=n(t),r},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function US(e,t,r){return r.options.filterFromLeafRows?HS(e,t,r):VS(e,t,r)}function HS(e,t,r){var n;const i=[],o={},a=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){var f;let d=l[h];const m=Z0(r,d.id,d.original,d.index,d.depth);if(m.columnFilters=d.columnFilters,(f=d.subRows)!=null&&f.length&&u<a){if(m.subRows=s(d.subRows,u+1),d=m,t(d)&&!m.subRows.length){c.push(d),o[d.id]=d,o[h]=d;continue}if(t(d)||m.subRows.length){c.push(d),o[d.id]=d,o[h]=d;continue}}else d=m,t(d)&&(c.push(d),o[d.id]=d,o[h]=d)}return c};return{rows:s(e),flatRows:i,rowsById:o}}function VS(e,t,r){var n;const i=[],o={},a=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){let d=l[h];if(t(d)){var f;if((f=d.subRows)!=null&&f.length&&u<a){const p=Z0(r,d.id,d.original,d.index,d.depth);p.subRows=s(d.subRows,u+1),d=p}c.push(d),i.push(d),o[d.id]=d}}return c};return{rows:s(e),flatRows:i,rowsById:o}}function WS(){return e=>Ae(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{if(!t.rows.length||!(r!=null&&r.length)&&!n){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const i=[],o=[];(r??[]).forEach(h=>{var d;const m=e.getColumn(h.id);if(!m)return;const p=m.getFilterFn();p&&i.push({id:h.id,filterFn:p,resolvedValue:(d=p.resolveFilterValue==null?void 0:p.resolveFilterValue(h.value))!=null?d:h.value})});const a=r.map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());n&&s&&l.length&&(a.push("__global__"),l.forEach(h=>{var d;o.push({id:h.id,filterFn:s,resolvedValue:(d=s.resolveFilterValue==null?void 0:s.resolveFilterValue(n))!=null?d:n})}));let u,c;for(let h=0;h<t.flatRows.length;h++){const d=t.flatRows[h];if(d.columnFilters={},i.length)for(let m=0;m<i.length;m++){u=i[m];const p=u.id;d.columnFilters[p]=u.filterFn(d,p,u.resolvedValue,g=>{d.columnFiltersMeta[p]=g})}if(o.length){for(let m=0;m<o.length;m++){c=o[m];const p=c.id;if(c.filterFn(d,p,c.resolvedValue,g=>{d.columnFiltersMeta[p]=g})){d.columnFilters.__global__=!0;break}}d.columnFilters.__global__!==!0&&(d.columnFilters.__global__=!1)}}const f=h=>{for(let d=0;d<a.length;d++)if(h.columnFilters[a[d]]===!1)return!1;return!0};return US(t.rows,f,e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function zS(){return e=>Ae(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],o=n.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};o.forEach(l=>{const u=e.getColumn(l.id);u&&(a[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=[...l];return u.sort((c,f)=>{for(let d=0;d<o.length;d+=1){var h;const m=o[d],p=a[m.id],g=(h=m==null?void 0:m.desc)!=null?h:!1;if(p.sortUndefined){const w=c.getValue(m.id),y=f.getValue(m.id),S=typeof w>"u",N=typeof y>"u";if(S||N)return S&&N?0:S?p.sortUndefined:-p.sortUndefined}let v=p.sortingFn(c,f,m.id);if(v!==0)return g&&(v*=-1),p.invertSorting&&(v*=-1),v}return c.index-f.index}),u.forEach(c=>{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function GS(e){const t=[],r=n=>{var i;t.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function jS(e){return t=>Ae(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(r,n)=>{if(!n.rows.length)return n;const{pageSize:i,pageIndex:o}=r;let{rows:a,flatRows:s,rowsById:l}=n;const u=i*o,c=u+i;a=a.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:a,flatRows:s,rowsById:l}:f=GS({rows:a,flatRows:s,rowsById:l}),f.flatRows=[];const h=d=>{f.flatRows.push(d),d.subRows.length&&d.subRows.forEach(h)};return f.rows.forEach(h),f},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}/**
+            color: hsl(${Math.max(0,Math.min(120-120*f,120))}deg 100% 31%);`,r==null?void 0:r.key)}return i}}function lS(e,t,r,n){var i,o;const s={...e._getDefaultColumnDef(),...t},l=s.accessorKey;let u=(i=(o=s.id)!=null?o:l?l.replace(".","_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:l&&(l.includes(".")?c=h=>{let d=h;for(const p of l.split(".")){var m;d=(m=d)==null?void 0:m[p]}return d}:c=h=>h[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:Ae(()=>[!0],()=>{var h;return[f,...(h=f.columns)==null?void 0:h.flatMap(d=>d.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var h;return(h=e.options.debugAll)!=null?h:e.options.debugColumns}}),getLeafColumns:Ae(()=>[e._getOrderColumnsFn()],h=>{var d;if((d=f.columns)!=null&&d.length){let m=f.columns.flatMap(p=>p.getLeafColumns());return h(m)}return[f]},{key:"column.getLeafColumns",debug:()=>{var h;return(h=e.options.debugAll)!=null?h:e.options.debugColumns}})};return f=e._features.reduce((h,d)=>Object.assign(h,d.createColumn==null?void 0:d.createColumn(f,e)),f),f}function pp(e,t,r){var n;let o={id:(n=r.id)!=null?n:t.id,column:t,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const a=[],s=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(s),a.push(l)};return s(o),a},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(a=>{Object.assign(o,a.createHeader==null?void 0:a.createHeader(o,e))}),o}const uS={createTable:e=>({getHeaderGroups:Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>{var o,a;const s=(o=n==null?void 0:n.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>r.find(h=>h.id===f)).filter(Boolean))!=null?a:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return ms(t,[...s,...u,...l],e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterHeaderGroups:Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n,i)=>(r=r.filter(o=>!(n!=null&&n.includes(o.id))&&!(i!=null&&i.includes(o.id))),ms(t,r,e,"center")),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftHeaderGroups:Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,r,n)=>{var i;const o=(i=n==null?void 0:n.map(a=>r.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return ms(t,o,e,"left")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightHeaderGroups:Ae(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,r,n)=>{var i;const o=(i=n==null?void 0:n.map(a=>r.find(s=>s.id===a)).filter(Boolean))!=null?i:[];return ms(t,o,e,"right")},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFooterGroups:Ae(()=>[e.getHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFooterGroups:Ae(()=>[e.getLeftHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFooterGroups:Ae(()=>[e.getCenterHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFooterGroups:Ae(()=>[e.getRightHeaderGroups()],t=>[...t].reverse(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getFlatHeaders:Ae(()=>[e.getHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftFlatHeaders:Ae(()=>[e.getLeftHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterFlatHeaders:Ae(()=>[e.getCenterHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightFlatHeaders:Ae(()=>[e.getRightHeaderGroups()],t=>t.map(r=>r.headers).flat(),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getCenterLeafHeaders:Ae(()=>[e.getCenterFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeftLeafHeaders:Ae(()=>[e.getLeftFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getRightLeafHeaders:Ae(()=>[e.getRightFlatHeaders()],t=>t.filter(r=>{var n;return!((n=r.subHeaders)!=null&&n.length)}),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}}),getLeafHeaders:Ae(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(t,r,n)=>{var i,o,a,s,l,u;return[...(i=(o=t[0])==null?void 0:o.headers)!=null?i:[],...(a=(s=r[0])==null?void 0:s.headers)!=null?a:[],...(l=(u=n[0])==null?void 0:u.headers)!=null?l:[]].map(c=>c.getLeafHeaders()).flat()},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugHeaders}})})};function ms(e,t,r,n){var i,o;let a=0;const s=function(h,d){d===void 0&&(d=1),a=Math.max(a,d),h.filter(m=>m.getIsVisible()).forEach(m=>{var p;(p=m.columns)!=null&&p.length&&s(m.columns,d+1)},0)};s(e);let l=[];const u=(h,d)=>{const m={depth:d,id:[n,`${d}`].filter(Boolean).join("_"),headers:[]},p=[];h.forEach(g=>{const v=[...p].reverse()[0],w=g.column.depth===m.depth;let y,S=!1;if(w&&g.column.parent?y=g.column.parent:(y=g.column,S=!0),v&&(v==null?void 0:v.column)===y)v.subHeaders.push(g);else{const b=pp(r,y,{id:[n,d,y.id,g==null?void 0:g.id].filter(Boolean).join("_"),isPlaceholder:S,placeholderId:S?`${p.filter(M=>M.column===y).length}`:void 0,depth:d,index:p.length});b.subHeaders.push(g),p.push(b)}m.headers.push(g),g.headerGroup=m}),l.push(m),d>0&&u(p,d-1)},c=t.map((h,d)=>pp(r,h,{depth:a,index:d}));u(c,a-1),l.reverse();const f=h=>h.filter(m=>m.column.getIsVisible()).map(m=>{let p=0,g=0,v=[0];m.subHeaders&&m.subHeaders.length?(v=[],f(m.subHeaders).forEach(y=>{let{colSpan:S,rowSpan:b}=y;p+=S,v.push(b)})):p=1;const w=Math.min(...v);return g=g+w,m.colSpan=p,m.rowSpan=g,{colSpan:p,rowSpan:g}});return f((i=(o=l[0])==null?void 0:o.headers)!=null?i:[]),l}const vs={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},oc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),cS={getDefaultColumnDef:()=>vs,getInitialState:e=>({columnSizing:{},columnSizingInfo:oc(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",onColumnSizingChange:fr("columnSizing",e),onColumnSizingInfoChange:fr("columnSizingInfo",e)}),createColumn:(e,t)=>({getSize:()=>{var r,n,i;const o=t.getState().columnSizing[e.id];return Math.min(Math.max((r=e.columnDef.minSize)!=null?r:vs.minSize,(n=o??e.columnDef.size)!=null?n:vs.size),(i=e.columnDef.maxSize)!=null?i:vs.maxSize)},getStart:r=>{const n=r?r==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns(),i=n.findIndex(o=>o.id===e.id);if(i>0){const o=n[i-1];return o.getStart(r)+o.getSize()}return 0},resetSize:()=>{t.setColumnSizing(r=>{let{[e.id]:n,...i}=r;return i})},getCanResize:()=>{var r,n;return((r=e.columnDef.enableResizing)!=null?r:!0)&&((n=t.options.enableColumnResizing)!=null?n:!0)},getIsResizing:()=>t.getState().columnSizingInfo.isResizingColumn===e.id}),createHeader:(e,t)=>({getSize:()=>{let r=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var o;r+=(o=i.column.getSize())!=null?o:0}};return n(e),r},getStart:()=>{if(e.index>0){const r=e.headerGroup.headers[e.index-1];return r.getStart()+r.getSize()}return 0},getResizeHandler:()=>{const r=t.getColumn(e.column.id),n=r==null?void 0:r.getCanResize();return i=>{if(!r||!n||(i.persist==null||i.persist(),ac(i)&&i.touches&&i.touches.length>1))return;const o=e.getSize(),a=e?e.getLeafHeaders().map(p=>[p.column.id,p.column.getSize()]):[[r.id,r.getSize()]],s=ac(i)?Math.round(i.touches[0].clientX):i.clientX,l={},u=(p,g)=>{typeof g=="number"&&(t.setColumnSizingInfo(v=>{var w,y;const S=g-((w=v==null?void 0:v.startOffset)!=null?w:0),b=Math.max(S/((y=v==null?void 0:v.startSize)!=null?y:0),-.999999);return v.columnSizingStart.forEach(M=>{let[_,A]=M;l[_]=Math.round(Math.max(A+A*b,0)*100)/100}),{...v,deltaOffset:S,deltaPercentage:b}}),(t.options.columnResizeMode==="onChange"||p==="end")&&t.setColumnSizing(v=>({...v,...l})))},c=p=>u("move",p),f=p=>{u("end",p),t.setColumnSizingInfo(g=>({...g,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},h={moveHandler:p=>c(p.clientX),upHandler:p=>{document.removeEventListener("mousemove",h.moveHandler),document.removeEventListener("mouseup",h.upHandler),f(p.clientX)}},d={moveHandler:p=>(p.cancelable&&(p.preventDefault(),p.stopPropagation()),c(p.touches[0].clientX),!1),upHandler:p=>{var g;document.removeEventListener("touchmove",d.moveHandler),document.removeEventListener("touchend",d.upHandler),p.cancelable&&(p.preventDefault(),p.stopPropagation()),f((g=p.touches[0])==null?void 0:g.clientX)}},m=fS()?{passive:!1}:!1;ac(i)?(document.addEventListener("touchmove",d.moveHandler,m),document.addEventListener("touchend",d.upHandler,m)):(document.addEventListener("mousemove",h.moveHandler,m),document.addEventListener("mouseup",h.upHandler,m)),t.setColumnSizingInfo(p=>({...p,startOffset:s,startSize:o,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:r.id}))}}}),createTable:e=>({setColumnSizing:t=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(t),setColumnSizingInfo:t=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(t),resetColumnSizing:t=>{var r;e.setColumnSizing(t?{}:(r=e.initialState.columnSizing)!=null?r:{})},resetHeaderSizeInfo:t=>{var r;e.setColumnSizingInfo(t?oc():(r=e.initialState.columnSizingInfo)!=null?r:oc())},getTotalSize:()=>{var t,r;return(t=(r=e.getHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},getLeftTotalSize:()=>{var t,r;return(t=(r=e.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},getCenterTotalSize:()=>{var t,r;return(t=(r=e.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0},getRightTotalSize:()=>{var t,r;return(t=(r=e.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((n,i)=>n+i.getSize(),0))!=null?t:0}})};let xs=null;function fS(){if(typeof xs=="boolean")return xs;let e=!1;try{const t={get passive(){return e=!0,!1}},r=()=>{};window.addEventListener("test",r,t),window.removeEventListener("test",r)}catch{e=!1}return xs=e,xs}function ac(e){return e.type==="touchstart"}const dS={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:fr("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,r=!1;return{_autoResetExpanded:()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(r)return;r=!0,e._queue(()=>{e.resetExpanded(),r=!1})}},setExpanded:n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),toggleAllRowsExpanded:n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},resetExpanded:n=>{var i,o;e.setExpanded(n?{}:(i=(o=e.initialState)==null?void 0:o.expanded)!=null?i:{})},getCanSomeRowsExpand:()=>e.getRowModel().flatRows.some(n=>n.getCanExpand()),getToggleAllRowsExpandedHandler:()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},getIsSomeRowsExpanded:()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},getIsAllRowsExpanded:()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},getExpandedDepth:()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(o=>{const a=o.split(".");n=Math.max(n,a.length)}),n},getPreExpandedRowModel:()=>e.getSortedRowModel(),getExpandedRowModel:()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())}},createRow:(e,t)=>({toggleExpanded:r=>{t.setExpanded(n=>{var i;const o=n===!0?!0:!!(n!=null&&n[e.id]);let a={};if(n===!0?Object.keys(t.getRowModel().rowsById).forEach(s=>{a[s]=!0}):a=n,r=(i=r)!=null?i:!o,!o&&r)return{...a,[e.id]:!0};if(o&&!r){const{[e.id]:s,...l}=a;return l}return n})},getIsExpanded:()=>{var r;const n=t.getState().expanded;return!!((r=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(e))!=null?r:n===!0||n!=null&&n[e.id])},getCanExpand:()=>{var r,n,i;return(r=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(e))!=null?r:((n=t.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},getToggleExpandedHandler:()=>{const r=e.getCanExpand();return()=>{r&&e.toggleExpanded()}}})},Qm=(e,t,r)=>{var n;const i=r.toLowerCase();return!!((n=e.getValue(t))!=null&&n.toLowerCase().includes(i))};Qm.autoRemove=e=>Sr(e);const Zm=(e,t,r)=>{var n;return!!((n=e.getValue(t))!=null&&n.includes(r))};Zm.autoRemove=e=>Sr(e);const Jm=(e,t,r)=>{var n;return((n=e.getValue(t))==null?void 0:n.toLowerCase())===r.toLowerCase()};Jm.autoRemove=e=>Sr(e);const ev=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};ev.autoRemove=e=>Sr(e)||!(e!=null&&e.length);const tv=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});tv.autoRemove=e=>Sr(e)||!(e!=null&&e.length);const rv=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});rv.autoRemove=e=>Sr(e)||!(e!=null&&e.length);const nv=(e,t,r)=>e.getValue(t)===r;nv.autoRemove=e=>Sr(e);const iv=(e,t,r)=>e.getValue(t)==r;iv.autoRemove=e=>Sr(e);const Y0=(e,t,r)=>{let[n,i]=r;const o=e.getValue(t);return o>=n&&o<=i};Y0.resolveFilterValue=e=>{let[t,r]=e,n=typeof t!="number"?parseFloat(t):t,i=typeof r!="number"?parseFloat(r):r,o=t===null||Number.isNaN(n)?-1/0:n,a=r===null||Number.isNaN(i)?1/0:i;if(o>a){const s=o;o=a,a=s}return[o,a]};Y0.autoRemove=e=>Sr(e)||Sr(e[0])&&Sr(e[1]);const Lr={includesString:Qm,includesStringSensitive:Zm,equalsString:Jm,arrIncludes:ev,arrIncludesAll:tv,arrIncludesSome:rv,equals:nv,weakEquals:iv,inNumberRange:Y0};function Sr(e){return e==null||e===""}const hS={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],globalFilter:void 0,...e}),getDefaultOptions:e=>({onColumnFiltersChange:fr("columnFilters",e),onGlobalFilterChange:fr("globalFilter",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100,globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var r,n;const i=(r=e.getCoreRowModel().flatRows[0])==null||(n=r._getAllCellsByColumnId()[t.id])==null?void 0:n.getValue();return typeof i=="string"||typeof i=="number"}}),createColumn:(e,t)=>({getAutoFilterFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);return typeof n=="string"?Lr.includesString:typeof n=="number"?Lr.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Lr.equals:Array.isArray(n)?Lr.arrIncludes:Lr.weakEquals},getFilterFn:()=>{var r,n;return Sl(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(r=(n=t.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?r:Lr[e.columnDef.filterFn]},getCanFilter:()=>{var r,n,i;return((r=e.columnDef.enableColumnFilter)!=null?r:!0)&&((n=t.options.enableColumnFilters)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},getCanGlobalFilter:()=>{var r,n,i,o;return((r=e.columnDef.enableGlobalFilter)!=null?r:!0)&&((n=t.options.enableGlobalFilter)!=null?n:!0)&&((i=t.options.enableFilters)!=null?i:!0)&&((o=t.options.getColumnCanGlobalFilter==null?void 0:t.options.getColumnCanGlobalFilter(e))!=null?o:!0)&&!!e.accessorFn},getIsFiltered:()=>e.getFilterIndex()>-1,getFilterValue:()=>{var r,n;return(r=t.getState().columnFilters)==null||(n=r.find(i=>i.id===e.id))==null?void 0:n.value},getFilterIndex:()=>{var r,n;return(r=(n=t.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},setFilterValue:r=>{t.setColumnFilters(n=>{const i=e.getFilterFn(),o=n==null?void 0:n.find(c=>c.id===e.id),a=hn(r,o?o.value:void 0);if(gp(i,a,e)){var s;return(s=n==null?void 0:n.filter(c=>c.id!==e.id))!=null?s:[]}const l={id:e.id,value:a};if(o){var u;return(u=n==null?void 0:n.map(c=>c.id===e.id?l:c))!=null?u:[]}return n!=null&&n.length?[...n,l]:[l]})},_getFacetedRowModel:t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),getFacetedRowModel:()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),_getFacetedUniqueValues:t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),getFacetedUniqueValues:()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,_getFacetedMinMaxValues:t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),getFacetedMinMaxValues:()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}),createRow:(e,t)=>({columnFilters:{},columnFiltersMeta:{}}),createTable:e=>({getGlobalAutoFilterFn:()=>Lr.includesString,getGlobalFilterFn:()=>{var t,r;const{globalFilterFn:n}=e.options;return Sl(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Lr[n]},setColumnFilters:t=>{const r=e.getAllLeafColumns(),n=i=>{var o;return(o=hn(t,i))==null?void 0:o.filter(a=>{const s=r.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(gp(l,a.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},setGlobalFilter:t=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(t)},resetGlobalFilter:t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)},resetColumnFilters:t=>{var r,n;e.setColumnFilters(t?[]:(r=(n=e.initialState)==null?void 0:n.columnFilters)!=null?r:[])},getPreFilteredRowModel:()=>e.getCoreRowModel(),getFilteredRowModel:()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel()),_getGlobalFacetedRowModel:e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),getGlobalFacetedRowModel:()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),_getGlobalFacetedUniqueValues:e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),getGlobalFacetedUniqueValues:()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,_getGlobalFacetedMinMaxValues:e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),getGlobalFacetedMinMaxValues:()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}})};function gp(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const pS=(e,t,r)=>r.reduce((n,i)=>{const o=i.getValue(e);return n+(typeof o=="number"?o:0)},0),gS=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n>o||n===void 0&&o>=o)&&(n=o)}),n},mS=(e,t,r)=>{let n;return r.forEach(i=>{const o=i.getValue(e);o!=null&&(n<o||n===void 0&&o>=o)&&(n=o)}),n},vS=(e,t,r)=>{let n,i;return r.forEach(o=>{const a=o.getValue(e);a!=null&&(n===void 0?a>=a&&(n=i=a):(n>a&&(n=a),i<a&&(i=a)))}),[n,i]},xS=(e,t)=>{let r=0,n=0;if(t.forEach(i=>{let o=i.getValue(e);o!=null&&(o=+o)>=o&&(++r,n+=o)}),r)return n/r},wS=(e,t)=>{if(!t.length)return;let r=0,n=0;return t.forEach(i=>{let o=i.getValue(e);typeof o=="number"&&(r=Math.min(r,o),n=Math.max(n,o))}),(r+n)/2},yS=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),ES=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,SS=(e,t)=>t.length,sc={sum:pS,min:gS,max:mS,extent:vS,mean:xS,median:wS,unique:yS,uniqueCount:ES,count:SS},_S={getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,r;return(t=(r=e.getValue())==null||r.toString==null?void 0:r.toString())!=null?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:fr("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>({toggleGrouping:()=>{t.setGrouping(r=>r!=null&&r.includes(e.id)?r.filter(n=>n!==e.id):[...r??[],e.id])},getCanGroup:()=>{var r,n,i,o;return(r=(n=(i=(o=e.columnDef.enableGrouping)!=null?o:!0)!=null?i:t.options.enableGrouping)!=null?n:!0)!=null?r:!!e.accessorFn},getIsGrouped:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.includes(e.id)},getGroupedIndex:()=>{var r;return(r=t.getState().grouping)==null?void 0:r.indexOf(e.id)},getToggleGroupingHandler:()=>{const r=e.getCanGroup();return()=>{r&&e.toggleGrouping()}},getAutoAggregationFn:()=>{const r=t.getCoreRowModel().flatRows[0],n=r==null?void 0:r.getValue(e.id);if(typeof n=="number")return sc.sum;if(Object.prototype.toString.call(n)==="[object Date]")return sc.extent},getAggregationFn:()=>{var r,n;if(!e)throw new Error;return Sl(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(r=(n=t.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?r:sc[e.columnDef.aggregationFn]}}),createTable:e=>({setGrouping:t=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(t),resetGrouping:t=>{var r,n;e.setGrouping(t?[]:(r=(n=e.initialState)==null?void 0:n.grouping)!=null?r:[])},getPreGroupedRowModel:()=>e.getFilteredRowModel(),getGroupedRowModel:()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())}),createRow:e=>({getIsGrouped:()=>!!e.groupingColumnId,_groupingValuesCache:{}}),createCell:(e,t,r,n)=>({getIsGrouped:()=>t.getIsGrouped()&&t.id===r.groupingColumnId,getIsPlaceholder:()=>!e.getIsGrouped()&&t.getIsGrouped(),getIsAggregated:()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=r.subRows)!=null&&i.length)}})};function TS(e,t,r){if(!(t!=null&&t.length)||!r)return e;const n=e.filter(o=>!t.includes(o.id));return r==="remove"?n:[...t.map(o=>e.find(a=>a.id===o)).filter(Boolean),...n]}const CS={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:fr("columnOrder",e)}),createTable:e=>({setColumnOrder:t=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(t),resetColumnOrder:t=>{var r;e.setColumnOrder(t?[]:(r=e.initialState.columnOrder)!=null?r:[])},_getOrderColumnsFn:Ae(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(t,r,n)=>i=>{let o=[];if(!(t!=null&&t.length))o=i;else{const a=[...t],s=[...i];for(;s.length&&a.length;){const l=a.shift(),u=s.findIndex(c=>c.id===l);u>-1&&o.push(s.splice(u,1)[0])}o=[...o,...s]}return TS(o,r,n)},{key:!1})})},_f=0,Tf=10,lc=()=>({pageIndex:_f,pageSize:Tf}),AS={getInitialState:e=>({...e,pagination:{...lc(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:fr("pagination",e)}),createTable:e=>{let t=!1,r=!1;return{_autoResetPageIndex:()=>{var n,i;if(!t){e._queue(()=>{t=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(r)return;r=!0,e._queue(()=>{e.resetPageIndex(),r=!1})}},setPagination:n=>{const i=o=>hn(n,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},resetPagination:n=>{var i;e.setPagination(n?lc():(i=e.initialState.pagination)!=null?i:lc())},setPageIndex:n=>{e.setPagination(i=>{let o=hn(n,i.pageIndex);const a=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return o=Math.max(0,Math.min(o,a)),{...i,pageIndex:o}})},resetPageIndex:n=>{var i,o,a;e.setPageIndex(n?_f:(i=(o=e.initialState)==null||(a=o.pagination)==null?void 0:a.pageIndex)!=null?i:_f)},resetPageSize:n=>{var i,o,a;e.setPageSize(n?Tf:(i=(o=e.initialState)==null||(a=o.pagination)==null?void 0:a.pageSize)!=null?i:Tf)},setPageSize:n=>{e.setPagination(i=>{const o=Math.max(1,hn(n,i.pageSize)),a=i.pageSize*i.pageIndex,s=Math.floor(a/o);return{...i,pageIndex:s,pageSize:o}})},setPageCount:n=>e.setPagination(i=>{var o;let a=hn(n,(o=e.options.pageCount)!=null?o:-1);return typeof a=="number"&&(a=Math.max(-1,a)),{...i,pageCount:a}}),getPageOptions:Ae(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((o,a)=>a)),i},{key:!1,debug:()=>{var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable}}),getCanPreviousPage:()=>e.getState().pagination.pageIndex>0,getCanNextPage:()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:n<i-1},previousPage:()=>e.setPageIndex(n=>n-1),nextPage:()=>e.setPageIndex(n=>n+1),getPrePaginationRowModel:()=>e.getExpandedRowModel(),getPaginationRowModel:()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),getPageCount:()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getPrePaginationRowModel().rows.length/e.getState().pagination.pageSize)}}}},uc=()=>({left:[],right:[]}),RS={getInitialState:e=>({columnPinning:uc(),...e}),getDefaultOptions:e=>({onColumnPinningChange:fr("columnPinning",e)}),createColumn:(e,t)=>({pin:r=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);t.setColumnPinning(i=>{var o,a;if(r==="right"){var s,l;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(f=>!(n!=null&&n.includes(f))),right:[...((l=i==null?void 0:i.right)!=null?l:[]).filter(f=>!(n!=null&&n.includes(f))),...n]}}if(r==="left"){var u,c;return{left:[...((u=i==null?void 0:i.left)!=null?u:[]).filter(f=>!(n!=null&&n.includes(f))),...n],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(f=>!(n!=null&&n.includes(f)))}}return{left:((o=i==null?void 0:i.left)!=null?o:[]).filter(f=>!(n!=null&&n.includes(f))),right:((a=i==null?void 0:i.right)!=null?a:[]).filter(f=>!(n!=null&&n.includes(f)))}})},getCanPin:()=>e.getLeafColumns().some(n=>{var i,o;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((o=t.options.enablePinning)!=null?o:!0)}),getIsPinned:()=>{const r=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=t.getState().columnPinning,o=r.some(s=>n==null?void 0:n.includes(s)),a=r.some(s=>i==null?void 0:i.includes(s));return o?"left":a?"right":!1},getPinnedIndex:()=>{var r,n,i;const o=e.getIsPinned();return o?(r=(n=t.getState().columnPinning)==null||(i=n[o])==null?void 0:i.indexOf(e.id))!=null?r:-1:0}}),createRow:(e,t)=>({getCenterVisibleCells:Ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(r,n,i)=>{const o=[...n??[],...i??[]];return r.filter(a=>!o.includes(a.column.id))},{key:"row.getCenterVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getLeftVisibleCells:Ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,,],(r,n)=>(n??[]).map(o=>r.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"left"})),{key:"row.getLeftVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getRightVisibleCells:Ae(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(r,n)=>(n??[]).map(o=>r.find(a=>a.column.id===o)).filter(Boolean).map(o=>({...o,position:"right"})),{key:"row.getRightVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>({setColumnPinning:t=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(t),resetColumnPinning:t=>{var r,n;return e.setColumnPinning(t?uc():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:uc())},getIsSomeColumnsPinned:t=>{var r;const n=e.getState().columnPinning;if(!t){var i,o;return!!((i=n.left)!=null&&i.length||(o=n.right)!=null&&o.length)}return!!((r=n[t])!=null&&r.length)},getLeftLeafColumns:Ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getRightLeafColumns:Ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(t,r)=>(r??[]).map(n=>t.find(i=>i.id===n)).filter(Boolean),{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}}),getCenterLeafColumns:Ae(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,r,n)=>{const i=[...r??[],...n??[]];return t.filter(o=>!i.includes(o.id))},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugColumns}})})},OS={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:fr("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>({setRowSelection:t=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(t),resetRowSelection:t=>{var r;return e.setRowSelection(t?{}:(r=e.initialState.rowSelection)!=null?r:{})},toggleAllRowsSelected:t=>{e.setRowSelection(r=>{t=typeof t<"u"?t:!e.getIsAllRowsSelected();const n={...r},i=e.getPreGroupedRowModel().flatRows;return t?i.forEach(o=>{o.getCanSelect()&&(n[o.id]=!0)}):i.forEach(o=>{delete n[o.id]}),n})},toggleAllPageRowsSelected:t=>e.setRowSelection(r=>{const n=typeof t<"u"?t:!e.getIsAllPageRowsSelected(),i={...r};return e.getRowModel().rows.forEach(o=>{Cf(i,o.id,n,e)}),i}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:Ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?cc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getFilteredSelectedRowModel:Ae(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,r)=>Object.keys(t).length?cc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getFilteredSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getGroupedSelectedRowModel:Ae(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,r)=>Object.keys(t).length?cc(e,r):{rows:[],flatRows:[],rowsById:{}},{key:"getGroupedSelectedRowModel",debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable}}),getIsAllRowsSelected:()=>{const t=e.getFilteredRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!(t.length&&Object.keys(r).length);return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},getIsAllPageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows,{rowSelection:r}=e.getState();let n=!!t.length;return n&&t.some(i=>i.getCanSelect()&&!r[i.id])&&(n=!1),n},getIsSomeRowsSelected:()=>{var t;const r=Object.keys((t=e.getState().rowSelection)!=null?t:{}).length;return r>0&&r<e.getFilteredRowModel().flatRows.length},getIsSomePageRowsSelected:()=>{const t=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:t.some(r=>r.getIsSelected()||r.getIsSomeSelected())},getToggleAllRowsSelectedHandler:()=>t=>{e.toggleAllRowsSelected(t.target.checked)},getToggleAllPageRowsSelectedHandler:()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}}),createRow:(e,t)=>({toggleSelected:r=>{const n=e.getIsSelected();t.setRowSelection(i=>{if(r=typeof r<"u"?r:!n,n===r)return i;const o={...i};return Cf(o,e.id,r,t),o})},getIsSelected:()=>{const{rowSelection:r}=t.getState();return q0(e,r)},getIsSomeSelected:()=>{const{rowSelection:r}=t.getState();return mp(e,r)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:r}=t.getState();return mp(e,r)==="all"},getCanSelect:()=>{var r;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(e):(r=t.options.enableRowSelection)!=null?r:!0},getCanSelectSubRows:()=>{var r;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(e):(r=t.options.enableSubRowSelection)!=null?r:!0},getCanMultiSelect:()=>{var r;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(e):(r=t.options.enableMultiRowSelection)!=null?r:!0},getToggleSelectedHandler:()=>{const r=e.getCanSelect();return n=>{var i;r&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}})},Cf=(e,t,r,n)=>{var i;const o=n.getRow(t);r?(o.getCanMultiSelect()||Object.keys(e).forEach(a=>delete e[a]),o.getCanSelect()&&(e[t]=!0)):delete e[t],(i=o.subRows)!=null&&i.length&&o.getCanSelectSubRows()&&o.subRows.forEach(a=>Cf(e,a.id,r,n))};function cc(e,t){const r=e.getState().rowSelection,n=[],i={},o=function(a,s){return a.map(l=>{var u;const c=q0(l,r);if(c&&(n.push(l),i[l.id]=l),(u=l.subRows)!=null&&u.length&&(l={...l,subRows:o(l.subRows)}),c)return l}).filter(Boolean)};return{rows:o(t.rows),flatRows:n,rowsById:i}}function q0(e,t){var r;return(r=t[e.id])!=null?r:!1}function mp(e,t,r){if(e.subRows&&e.subRows.length){let n=!0,i=!1;return e.subRows.forEach(o=>{i&&!n||(q0(o,t)?i=!0:n=!1)}),n?"all":i?"some":!1}return!1}const Af=/([0-9]+)/gm,FS=(e,t,r)=>ov(Dn(e.getValue(r)).toLowerCase(),Dn(t.getValue(r)).toLowerCase()),PS=(e,t,r)=>ov(Dn(e.getValue(r)),Dn(t.getValue(r))),DS=(e,t,r)=>Q0(Dn(e.getValue(r)).toLowerCase(),Dn(t.getValue(r)).toLowerCase()),IS=(e,t,r)=>Q0(Dn(e.getValue(r)),Dn(t.getValue(r))),kS=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},bS=(e,t,r)=>Q0(e.getValue(r),t.getValue(r));function Q0(e,t){return e===t?0:e>t?1:-1}function Dn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function ov(e,t){const r=e.split(Af).filter(Boolean),n=t.split(Af).filter(Boolean);for(;r.length&&n.length;){const i=r.shift(),o=n.shift(),a=parseInt(i,10),s=parseInt(o,10),l=[a,s].sort();if(isNaN(l[0])){if(i>o)return 1;if(o>i)return-1;continue}if(isNaN(l[1]))return isNaN(a)?-1:1;if(a>s)return 1;if(s>a)return-1}return r.length-n.length}const Uo={alphanumeric:FS,alphanumericCaseSensitive:PS,text:DS,textCaseSensitive:IS,datetime:kS,basic:bS},NS={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto"}),getDefaultOptions:e=>({onSortingChange:fr("sorting",e),isMultiSortEvent:t=>t.shiftKey}),createColumn:(e,t)=>({getAutoSortingFn:()=>{const r=t.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of r){const o=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(o)==="[object Date]")return Uo.datetime;if(typeof o=="string"&&(n=!0,o.split(Af).length>1))return Uo.alphanumeric}return n?Uo.text:Uo.basic},getAutoSortDir:()=>{const r=t.getFilteredRowModel().flatRows[0];return typeof(r==null?void 0:r.getValue(e.id))=="string"?"asc":"desc"},getSortingFn:()=>{var r,n;if(!e)throw new Error;return Sl(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(r=(n=t.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?r:Uo[e.columnDef.sortingFn]},toggleSorting:(r,n)=>{const i=e.getNextSortingOrder(),o=typeof r<"u"&&r!==null;t.setSorting(a=>{const s=a==null?void 0:a.find(d=>d.id===e.id),l=a==null?void 0:a.findIndex(d=>d.id===e.id);let u=[],c,f=o?r:i==="desc";if(a!=null&&a.length&&e.getCanMultiSort()&&n?s?c="toggle":c="add":a!=null&&a.length&&l!==a.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(o||i||(c="remove")),c==="add"){var h;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((h=t.options.maxMultiSortColCount)!=null?h:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(d=>d.id===e.id?{...d,desc:f}:d):c==="remove"?u=a.filter(d=>d.id!==e.id):u=[{id:e.id,desc:f}];return u})},getFirstSortDir:()=>{var r,n;return((r=(n=e.columnDef.sortDescFirst)!=null?n:t.options.sortDescFirst)!=null?r:e.getAutoSortDir()==="desc")?"desc":"asc"},getNextSortingOrder:r=>{var n,i;const o=e.getFirstSortDir(),a=e.getIsSorted();return a?a!==o&&((n=t.options.enableSortingRemoval)==null||n)&&(!(r&&(i=t.options.enableMultiRemove)!=null)||i)?!1:a==="desc"?"asc":"desc":o},getCanSort:()=>{var r,n;return((r=e.columnDef.enableSorting)!=null?r:!0)&&((n=t.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},getCanMultiSort:()=>{var r,n;return(r=(n=e.columnDef.enableMultiSort)!=null?n:t.options.enableMultiSort)!=null?r:!!e.accessorFn},getIsSorted:()=>{var r;const n=(r=t.getState().sorting)==null?void 0:r.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},getSortIndex:()=>{var r,n;return(r=(n=t.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?r:-1},clearSorting:()=>{t.setSorting(r=>r!=null&&r.length?r.filter(n=>n.id!==e.id):[])},getToggleSortingHandler:()=>{const r=e.getCanSort();return n=>{r&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(n):!1))}}}),createTable:e=>({setSorting:t=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(t),resetSorting:t=>{var r,n;e.setSorting(t?[]:(r=(n=e.initialState)==null?void 0:n.sorting)!=null?r:[])},getPreSortedRowModel:()=>e.getGroupedRowModel(),getSortedRowModel:()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())})},$S={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:fr("columnVisibility",e)}),createColumn:(e,t)=>({toggleVisibility:r=>{e.getCanHide()&&t.setColumnVisibility(n=>({...n,[e.id]:r??!e.getIsVisible()}))},getIsVisible:()=>{var r,n;return(r=(n=t.getState().columnVisibility)==null?void 0:n[e.id])!=null?r:!0},getCanHide:()=>{var r,n;return((r=e.columnDef.enableHiding)!=null?r:!0)&&((n=t.options.enableHiding)!=null?n:!0)},getToggleVisibilityHandler:()=>r=>{e.toggleVisibility==null||e.toggleVisibility(r.target.checked)}}),createRow:(e,t)=>({_getAllVisibleCells:Ae(()=>[e.getAllCells(),t.getState().columnVisibility],r=>r.filter(n=>n.column.getIsVisible()),{key:"row._getAllVisibleCells",debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}}),getVisibleCells:Ae(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(r,n,i)=>[...r,...n,...i],{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugRows}})}),createTable:e=>{const t=(r,n)=>Ae(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(o=>o.getIsVisible==null?void 0:o.getIsVisible()),{key:r,debug:()=>{var i;return(i=e.options.debugAll)!=null?i:e.options.debugColumns}});return{getVisibleFlatColumns:t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),getVisibleLeafColumns:t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),getLeftVisibleLeafColumns:t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),getRightVisibleLeafColumns:t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),getCenterVisibleLeafColumns:t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),setColumnVisibility:r=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(r),resetColumnVisibility:r=>{var n;e.setColumnVisibility(r?{}:(n=e.initialState.columnVisibility)!=null?n:{})},toggleAllColumnsVisible:r=>{var n;r=(n=r)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,o)=>({...i,[o.id]:r||!(o.getCanHide!=null&&o.getCanHide())}),{}))},getIsAllColumnsVisible:()=>!e.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),getIsSomeColumnsVisible:()=>e.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),getToggleAllColumnsVisibilityHandler:()=>r=>{var n;e.toggleAllColumnsVisible((n=r.target)==null?void 0:n.checked)}}}},vp=[uS,$S,CS,RS,hS,NS,_S,dS,AS,OS,cS];function MS(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:vp};const n=r._features.reduce((c,f)=>Object.assign(c,f.getDefaultOptions==null?void 0:f.getDefaultOptions(r)),{}),i=c=>r.options.mergeOptions?r.options.mergeOptions(n,c):{...n,...c};let a={...{},...(t=e.initialState)!=null?t:{}};r._features.forEach(c=>{var f;a=(f=c.getInitialState==null?void 0:c.getInitialState(a))!=null?f:a});const s=[];let l=!1;const u={_features:vp,options:{...n,...e},initialState:a,_queue:c=>{s.push(c),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(f=>setTimeout(()=>{throw f})))},reset:()=>{r.setState(r.initialState)},setOptions:c=>{const f=hn(c,r.options);r.options=i(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,h)=>{var d;return(d=r.options.getRowId==null?void 0:r.options.getRowId(c,f,h))!=null?d:`${h?[h.id,f].join("."):f}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:c=>{const f=r.getRowModel().rowsById[c];if(!f)throw new Error;return f},_getDefaultColumnDef:Ae(()=>[r.options.defaultColumn],c=>{var f;return c=(f=c)!=null?f:{},{header:h=>{const d=h.header.column.columnDef;return d.accessorKey?d.accessorKey:d.accessorFn?d.id:null},cell:h=>{var d,m;return(d=(m=h.renderValue())==null||m.toString==null?void 0:m.toString())!=null?d:null},...r._features.reduce((h,d)=>Object.assign(h,d.getDefaultColumnDef==null?void 0:d.getDefaultColumnDef()),{}),...c}},{debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns},key:!1}),_getColumnDefs:()=>r.options.columns,getAllColumns:Ae(()=>[r._getColumnDefs()],c=>{const f=function(h,d,m){return m===void 0&&(m=0),h.map(p=>{const g=lS(r,p,m,d),v=p;return g.columns=v.columns?f(v.columns,g,m+1):[],g})};return f(c)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllFlatColumns:Ae(()=>[r.getAllColumns()],c=>c.flatMap(f=>f.getFlatColumns()),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),_getAllFlatColumnsById:Ae(()=>[r.getAllFlatColumns()],c=>c.reduce((f,h)=>(f[h.id]=h,f),{}),{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getAllLeafColumns:Ae(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(c,f)=>{let h=c.flatMap(d=>d.getLeafColumns());return f(h)},{key:!1,debug:()=>{var c;return(c=r.options.debugAll)!=null?c:r.options.debugColumns}}),getColumn:c=>r._getAllFlatColumnsById()[c]};return Object.assign(r,u),r._features.forEach(c=>Object.assign(r,c.createTable==null?void 0:c.createTable(r))),r}function LS(e,t,r,n){const i=()=>{var a;return(a=o.getValue())!=null?a:e.options.renderFallbackValue},o={id:`${t.id}_${r.id}`,row:t,column:r,getValue:()=>t.getValue(n),renderValue:i,getContext:Ae(()=>[e,r,t,o],(a,s,l,u)=>({table:a,column:s,row:l,cell:u,getValue:u.getValue,renderValue:u.renderValue}),{key:!1,debug:()=>e.options.debugAll})};return e._features.forEach(a=>{Object.assign(o,a.createCell==null?void 0:a.createCell(o,r,t,e))},{}),o}const Z0=(e,t,r,n,i,o)=>{let a={id:t,index:n,original:r,depth:i,_valuesCache:{},_uniqueValuesCache:{},getValue:s=>{if(a._valuesCache.hasOwnProperty(s))return a._valuesCache[s];const l=e.getColumn(s);if(l!=null&&l.accessorFn)return a._valuesCache[s]=l.accessorFn(a.original,n),a._valuesCache[s]},getUniqueValues:s=>{if(a._uniqueValuesCache.hasOwnProperty(s))return a._uniqueValuesCache[s];const l=e.getColumn(s);if(l!=null&&l.accessorFn)return l.columnDef.getUniqueValues?(a._uniqueValuesCache[s]=l.columnDef.getUniqueValues(a.original,n),a._uniqueValuesCache[s]):(a._uniqueValuesCache[s]=[a.getValue(s)],a._uniqueValuesCache[s])},renderValue:s=>{var l;return(l=a.getValue(s))!=null?l:e.options.renderFallbackValue},subRows:o??[],getLeafRows:()=>sS(a.subRows,s=>s.subRows),getAllCells:Ae(()=>[e.getAllLeafColumns()],s=>s.map(l=>LS(e,a,l,l.id)),{key:!1,debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugRows}}),_getAllCellsByColumnId:Ae(()=>[a.getAllCells()],s=>s.reduce((l,u)=>(l[u.column.id]=u,l),{}),{key:"row.getAllCellsByColumnId",debug:()=>{var s;return(s=e.options.debugAll)!=null?s:e.options.debugRows}})};for(let s=0;s<e._features.length;s++){const l=e._features[s];Object.assign(a,l==null||l.createRow==null?void 0:l.createRow(a,e))}return a};function BS(){return e=>Ae(()=>[e.options.data],t=>{const r={rows:[],flatRows:[],rowsById:{}},n=function(i,o,a){o===void 0&&(o=0);const s=[];for(let u=0;u<i.length;u++){const c=Z0(e,e._getRowId(i[u],u,a),i[u],u,o);if(r.flatRows.push(c),r.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var l;c.originalSubRows=e.options.getSubRows(i[u],u),(l=c.originalSubRows)!=null&&l.length&&(c.subRows=n(c.originalSubRows,o+1,c))}}return s};return r.rows=n(t),r},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function US(e,t,r){return r.options.filterFromLeafRows?HS(e,t,r):VS(e,t,r)}function HS(e,t,r){var n;const i=[],o={},a=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){var f;let d=l[h];const m=Z0(r,d.id,d.original,d.index,d.depth);if(m.columnFilters=d.columnFilters,(f=d.subRows)!=null&&f.length&&u<a){if(m.subRows=s(d.subRows,u+1),d=m,t(d)&&!m.subRows.length){c.push(d),o[d.id]=d,o[h]=d;continue}if(t(d)||m.subRows.length){c.push(d),o[d.id]=d,o[h]=d;continue}}else d=m,t(d)&&(c.push(d),o[d.id]=d,o[h]=d)}return c};return{rows:s(e),flatRows:i,rowsById:o}}function VS(e,t,r){var n;const i=[],o={},a=(n=r.options.maxLeafRowFilterDepth)!=null?n:100,s=function(l,u){u===void 0&&(u=0);const c=[];for(let h=0;h<l.length;h++){let d=l[h];if(t(d)){var f;if((f=d.subRows)!=null&&f.length&&u<a){const p=Z0(r,d.id,d.original,d.index,d.depth);p.subRows=s(d.subRows,u+1),d=p}c.push(d),i.push(d),o[d.id]=d}}return c};return{rows:s(e),flatRows:i,rowsById:o}}function WS(){return e=>Ae(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,r,n)=>{if(!t.rows.length||!(r!=null&&r.length)&&!n){for(let h=0;h<t.flatRows.length;h++)t.flatRows[h].columnFilters={},t.flatRows[h].columnFiltersMeta={};return t}const i=[],o=[];(r??[]).forEach(h=>{var d;const m=e.getColumn(h.id);if(!m)return;const p=m.getFilterFn();p&&i.push({id:h.id,filterFn:p,resolvedValue:(d=p.resolveFilterValue==null?void 0:p.resolveFilterValue(h.value))!=null?d:h.value})});const a=r.map(h=>h.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(h=>h.getCanGlobalFilter());n&&s&&l.length&&(a.push("__global__"),l.forEach(h=>{var d;o.push({id:h.id,filterFn:s,resolvedValue:(d=s.resolveFilterValue==null?void 0:s.resolveFilterValue(n))!=null?d:n})}));let u,c;for(let h=0;h<t.flatRows.length;h++){const d=t.flatRows[h];if(d.columnFilters={},i.length)for(let m=0;m<i.length;m++){u=i[m];const p=u.id;d.columnFilters[p]=u.filterFn(d,p,u.resolvedValue,g=>{d.columnFiltersMeta[p]=g})}if(o.length){for(let m=0;m<o.length;m++){c=o[m];const p=c.id;if(c.filterFn(d,p,c.resolvedValue,g=>{d.columnFiltersMeta[p]=g})){d.columnFilters.__global__=!0;break}}d.columnFilters.__global__!==!0&&(d.columnFilters.__global__=!1)}}const f=h=>{for(let d=0;d<a.length;d++)if(h.columnFilters[a[d]]===!1)return!1;return!0};return US(t.rows,f,e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function zS(){return e=>Ae(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,r)=>{if(!r.rows.length||!(t!=null&&t.length))return r;const n=e.getState().sorting,i=[],o=n.filter(l=>{var u;return(u=e.getColumn(l.id))==null?void 0:u.getCanSort()}),a={};o.forEach(l=>{const u=e.getColumn(l.id);u&&(a[l.id]={sortUndefined:u.columnDef.sortUndefined,invertSorting:u.columnDef.invertSorting,sortingFn:u.getSortingFn()})});const s=l=>{const u=[...l];return u.sort((c,f)=>{for(let d=0;d<o.length;d+=1){var h;const m=o[d],p=a[m.id],g=(h=m==null?void 0:m.desc)!=null?h:!1;if(p.sortUndefined){const w=c.getValue(m.id),y=f.getValue(m.id),S=typeof w>"u",b=typeof y>"u";if(S||b)return S&&b?0:S?p.sortUndefined:-p.sortUndefined}let v=p.sortingFn(c,f,m.id);if(v!==0)return g&&(v*=-1),p.invertSorting&&(v*=-1),v}return c.index-f.index}),u.forEach(c=>{var f;i.push(c),(f=c.subRows)!=null&&f.length&&(c.subRows=s(c.subRows))}),u};return{rows:s(r.rows),flatRows:i,rowsById:r.rowsById}},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function GS(e){const t=[],r=n=>{var i;t.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(r)};return e.rows.forEach(r),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}function jS(e){return t=>Ae(()=>[t.getState().pagination,t.getPrePaginationRowModel(),t.options.paginateExpandedRows?void 0:t.getState().expanded],(r,n)=>{if(!n.rows.length)return n;const{pageSize:i,pageIndex:o}=r;let{rows:a,flatRows:s,rowsById:l}=n;const u=i*o,c=u+i;a=a.slice(u,c);let f;t.options.paginateExpandedRows?f={rows:a,flatRows:s,rowsById:l}:f=GS({rows:a,flatRows:s,rowsById:l}),f.flatRows=[];const h=d=>{f.flatRows.push(d),d.subRows.length&&d.subRows.forEach(h)};return f.rows.forEach(h),f},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}/**
  * react-table
  *
  * Copyright (c) TanStack
@@ -94,7 +94,7 @@
  * LICENSE.md file in the root directory of this source tree.
  *
  * @license MIT
- */function Rf(e,t){return e?XS(e)?x.createElement(e,t):e:null}function XS(e){return KS(e)||typeof e=="function"||YS(e)}function KS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function YS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function qS(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=x.useState(()=>({current:MS(t)})),[n,i]=x.useState(()=>r.current.initialState);return r.current.setOptions(o=>({...o,...e,state:{...n,...e.state},onStateChange:a=>{i(a),e.onStateChange==null||e.onStateChange(a)}})),r.current}function av(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=av(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function It(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=av(e))&&(n&&(n+=" "),n+=t);return n}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},he.apply(this,arguments)}function xp(e,[t,r]){return Math.min(r,Math.max(t,e))}function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function rn(e,t=[]){let r=[];function n(o,a){const s=x.createContext(a),l=r.length;r=[...r,a];function u(f){const{scope:h,children:d,...m}=f,p=(h==null?void 0:h[e][l])||s,g=x.useMemo(()=>m,Object.values(m));return x.createElement(p.Provider,{value:g},d)}function c(f,h){const d=(h==null?void 0:h[e][l])||s,m=x.useContext(d);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const i=()=>{const o=r.map(a=>x.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return x.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,QS(i,...t)]}function QS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=n.reduce((s,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...s,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function ZS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function J0(...e){return t=>e.forEach(r=>ZS(r,t))}function He(...e){return x.useCallback(J0(...e),e)}const no=x.forwardRef((e,t)=>{const{children:r,...n}=e,i=x.Children.toArray(r),o=i.find(e_);if(o){const a=o.props.children,s=i.map(l=>l===o?x.Children.count(a)>1?x.Children.only(null):x.isValidElement(a)?a.props.children:null:l);return x.createElement(Of,he({},n,{ref:t}),x.isValidElement(a)?x.cloneElement(a,void 0,s):null)}return x.createElement(Of,he({},n,{ref:t}),r)});no.displayName="Slot";const Of=x.forwardRef((e,t)=>{const{children:r,...n}=e;return x.isValidElement(r)?x.cloneElement(r,{...t_(n,r.props),ref:J0(t,r.ref)}):x.Children.count(r)>1?x.Children.only(null):null});Of.displayName="SlotClone";const JS=({children:e})=>x.createElement(x.Fragment,null,e);function e_(e){return x.isValidElement(e)&&e.type===JS}function t_(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...s)=>{o(...s),i(...s)}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function iu(e){const t=e+"CollectionProvider",[r,n]=rn(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=d=>{const{scope:m,children:p}=d,g=nr.useRef(null),v=nr.useRef(new Map).current;return nr.createElement(i,{scope:m,itemMap:v,collectionRef:g},p)},s=e+"CollectionSlot",l=nr.forwardRef((d,m)=>{const{scope:p,children:g}=d,v=o(s,p),w=He(m,v.collectionRef);return nr.createElement(no,{ref:w},g)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",f=nr.forwardRef((d,m)=>{const{scope:p,children:g,...v}=d,w=nr.useRef(null),y=He(m,w),S=o(u,p);return nr.useEffect(()=>(S.itemMap.set(w,{ref:w,...v}),()=>void S.itemMap.delete(w))),nr.createElement(no,{[c]:"",ref:y},g)});function h(d){const m=o(e+"CollectionConsumer",d);return nr.useCallback(()=>{const g=m.collectionRef.current;if(!g)return[];const v=Array.from(g.querySelectorAll(`[${c}]`));return Array.from(m.itemMap.values()).sort((S,N)=>v.indexOf(S.ref.current)-v.indexOf(N.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},h,n]}const r_=x.createContext(void 0);function ou(e){const t=x.useContext(r_);return e||t||"ltr"}const n_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],De=n_.reduce((e,t)=>{const r=x.forwardRef((n,i)=>{const{asChild:o,...a}=n,s=o?no:t;return x.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),x.createElement(s,he({},a,{ref:i}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ed(e,t){e&&Qr.flushSync(()=>e.dispatchEvent(t))}function Nt(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function i_(e,t=globalThis==null?void 0:globalThis.document){const r=Nt(e);x.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Ff="dismissableLayer.update",o_="dismissableLayer.pointerDownOutside",a_="dismissableLayer.focusOutside";let wp;const sv=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),td=x.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=x.useContext(sv),[f,h]=x.useState(null),d=(r=f==null?void 0:f.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=x.useState({}),p=He(t,C=>h(C)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(v),y=f?g.indexOf(f):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,N=y>=w,M=l_(C=>{const A=C.target,L=[...c.branches].some(U=>U.contains(A));!N||L||(o==null||o(C),s==null||s(C),C.defaultPrevented||l==null||l())},d),_=u_(C=>{const A=C.target;[...c.branches].some(U=>U.contains(A))||(a==null||a(C),s==null||s(C),C.defaultPrevented||l==null||l())},d);return i_(C=>{y===c.layers.size-1&&(i==null||i(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},d),x.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(wp=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),yp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=wp)}},[f,d,n,c]),x.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),yp())},[f,c]),x.useEffect(()=>{const C=()=>m({});return document.addEventListener(Ff,C),()=>document.removeEventListener(Ff,C)},[]),x.createElement(De.div,he({},u,{ref:p,style:{pointerEvents:S?N?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,M.onPointerDownCapture)}))}),s_=x.forwardRef((e,t)=>{const r=x.useContext(sv),n=x.useRef(null),i=He(t,n);return x.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),x.createElement(De.div,he({},e,{ref:i}))});function l_(e,t=globalThis==null?void 0:globalThis.document){const r=Nt(e),n=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const o=s=>{if(s.target&&!n.current){let c=function(){lv(o_,r,u,{discrete:!0})};var l=c;const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function u_(e,t=globalThis==null?void 0:globalThis.document){const r=Nt(e),n=x.useRef(!1);return x.useEffect(()=>{const i=o=>{o.target&&!n.current&&lv(a_,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function yp(){const e=new CustomEvent(Ff);document.dispatchEvent(e)}function lv(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?ed(i,o):i.dispatchEvent(o)}const c_=td,f_=s_;let fc=0;function uv(){x.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Ep()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Ep()),fc++,()=>{fc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),fc--}},[])}function Ep(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const dc="focusScope.autoFocusOnMount",hc="focusScope.autoFocusOnUnmount",Sp={bubbles:!1,cancelable:!0},cv=x.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=x.useState(null),u=Nt(i),c=Nt(o),f=x.useRef(null),h=He(t,p=>l(p)),d=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(n){let v=function(y){if(d.paused||!s)return;const S=y.target;s.contains(S)?f.current=S:Vn(f.current,{select:!0})},w=function(y){d.paused||!s||s.contains(y.relatedTarget)||Vn(f.current,{select:!0})};var p=v,g=w;return document.addEventListener("focusin",v),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w)}}},[n,s,d.paused]),x.useEffect(()=>{if(s){Tp.add(d);const p=document.activeElement;if(!s.contains(p)){const v=new CustomEvent(dc,Sp);s.addEventListener(dc,u),s.dispatchEvent(v),v.defaultPrevented||(d_(v_(fv(s)),{select:!0}),document.activeElement===p&&Vn(s))}return()=>{s.removeEventListener(dc,u),setTimeout(()=>{const v=new CustomEvent(hc,Sp);s.addEventListener(hc,c),s.dispatchEvent(v),v.defaultPrevented||Vn(p??document.body,{select:!0}),s.removeEventListener(hc,c),Tp.remove(d)},0)}}},[s,u,c,d]);const m=x.useCallback(p=>{if(!r&&!n||d.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(g&&v){const w=p.currentTarget,[y,S]=h_(w);y&&S?!p.shiftKey&&v===S?(p.preventDefault(),r&&Vn(y,{select:!0})):p.shiftKey&&v===y&&(p.preventDefault(),r&&Vn(S,{select:!0})):v===w&&p.preventDefault()}},[r,n,d.paused]);return x.createElement(De.div,he({tabIndex:-1},a,{ref:h,onKeyDown:m}))});function d_(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Vn(n,{select:t}),document.activeElement!==r)return}function h_(e){const t=fv(e),r=_p(t,e),n=_p(t.reverse(),e);return[r,n]}function fv(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _p(e,t){for(const r of e)if(!p_(r,{upTo:t}))return r}function p_(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function g_(e){return e instanceof HTMLInputElement&&"select"in e}function Vn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&g_(e)&&t&&e.select()}}const Tp=m_();function m_(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Cp(e,t),e.unshift(t)},remove(t){var r;e=Cp(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function Cp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function v_(e){return e.filter(t=>t.tagName!=="A")}const xt=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},x_=ay["useId".toString()]||(()=>{});let w_=0;function io(e){const[t,r]=x.useState(x_());return xt(()=>{e||r(n=>n??String(w_++))},[e]),e||(t?`radix-${t}`:"")}function ci(e){return e.split("-")[0]}function Ga(e){return e.split("-")[1]}function vo(e){return["top","bottom"].includes(ci(e))?"x":"y"}function rd(e){return e==="y"?"height":"width"}function Ap(e,t,r){let{reference:n,floating:i}=e;const o=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,s=vo(t),l=rd(s),u=n[l]/2-i[l]/2,c=s==="x";let f;switch(ci(t)){case"top":f={x:o,y:n.y-i.height};break;case"bottom":f={x:o,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:a};break;case"left":f={x:n.x-i.width,y:a};break;default:f={x:n.x,y:n.y}}switch(Ga(t)){case"start":f[s]-=u*(r&&c?-1:1);break;case"end":f[s]+=u*(r&&c?-1:1)}return f}const y_=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=Ap(l,n,s),f=n,h={},d=0;for(let m=0;m<o.length;m++){const{name:p,fn:g}=o[m],{x:v,y:w,data:y,reset:S}=await g({x:u,y:c,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:l,platform:a,elements:{reference:e,floating:t}});u=v??u,c=w??c,h={...h,[p]:{...h[p],...y}},S&&d<=50&&(d++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(l=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:c}=Ap(l,f,s)),m=-1)}return{x:u,y:c,placement:f,strategy:i,middlewareData:h}};function dv(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function _l(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Da(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=t,m=dv(d),p=s[h?f==="floating"?"reference":"floating":f],g=_l(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(p)))==null||r?p:p.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v=_l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...a.floating,x:n,y:i}:a.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),strategy:l}):a[f]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const E_=Math.min,Wn=Math.max;function Pf(e,t,r){return Wn(e,E_(t,r))}const Rp=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e??{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(r==null)return{};const u=dv(n),c={x:i,y:o},f=vo(a),h=Ga(a),d=rd(f),m=await l.getDimensions(r),p=f==="y"?"top":"left",g=f==="y"?"bottom":"right",v=s.reference[d]+s.reference[f]-c[f]-s.floating[d],w=c[f]-s.reference[f],y=await(l.getOffsetParent==null?void 0:l.getOffsetParent(r));let S=y?f==="y"?y.clientHeight||0:y.clientWidth||0:0;S===0&&(S=s.floating[d]);const N=v/2-w/2,M=u[p],_=S-m[d]-u[g],C=S/2-m[d]/2+N,A=Pf(M,C,_),L=(h==="start"?u[p]:u[g])>0&&C!==A&&s.reference[d]<=s.floating[d];return{[f]:c[f]-(L?C<M?M-C:_-C:0),data:{[f]:A,centerOffset:C-A}}}}),S_={left:"right",right:"left",bottom:"top",top:"bottom"};function Tl(e){return e.replace(/left|right|bottom|top/g,t=>S_[t])}function __(e,t,r){r===void 0&&(r=!1);const n=Ga(e),i=vo(e),o=rd(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Tl(a)),{main:a,cross:Tl(a)}}const T_={start:"end",end:"start"};function Op(e){return e.replace(/start|end/g,t=>T_[t])}const hv=["top","right","bottom","left"];hv.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const C_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",flipAlignment:d=!0,...m}=e,p=ci(n),g=f||(p===a||!d?[Tl(a)]:function(C){const A=Tl(C);return[Op(C),A,Op(A)]}(a)),v=[a,...g],w=await Da(t,m),y=[];let S=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&y.push(w[p]),c){const{main:C,cross:A}=__(n,o,await(s.isRTL==null?void 0:s.isRTL(l.floating)));y.push(w[C],w[A])}if(S=[...S,{placement:n,overflows:y}],!y.every(C=>C<=0)){var N,M;const C=((N=(M=i.flip)==null?void 0:M.index)!=null?N:0)+1,A=v[C];if(A)return{data:{index:C,overflows:S},reset:{placement:A}};let L="bottom";switch(h){case"bestFit":{var _;const U=(_=S.map(B=>[B,B.overflows.filter(V=>V>0).reduce((V,q)=>V+q,0)]).sort((B,V)=>B[1]-V[1])[0])==null?void 0:_[0].placement;U&&(L=U);break}case"initialPlacement":L=a}if(n!==L)return{reset:{placement:L}}}return{}}}};function Fp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pp(e){return hv.some(t=>e[t]>=0)}const A_=function(e){let{strategy:t="referenceHidden",...r}=e===void 0?{}:e;return{name:"hide",async fn(n){const{rects:i}=n;switch(t){case"referenceHidden":{const o=Fp(await Da(n,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Pp(o)}}}case"escaped":{const o=Fp(await Da(n,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:o,escaped:Pp(o)}}}default:return{}}}}},R_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,i=await async function(o,a){const{placement:s,platform:l,elements:u}=o,c=await(l.isRTL==null?void 0:l.isRTL(u.floating)),f=ci(s),h=Ga(s),d=vo(s)==="x",m=["left","top"].includes(f)?-1:1,p=c&&d?-1:1,g=typeof a=="function"?a(o):a;let{mainAxis:v,crossAxis:w,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return h&&typeof y=="number"&&(w=h==="end"?-1*y:y),d?{x:w*p,y:v*m}:{x:v*m,y:w*p}}(t,e);return{x:r+i.x,y:n+i.y,data:i}}}};function pv(e){return e==="x"?"y":"x"}const O_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x:v,y:w}=g;return{x:v,y:w}}},...l}=e,u={x:r,y:n},c=await Da(t,l),f=vo(ci(i)),h=pv(f);let d=u[f],m=u[h];if(o){const g=f==="y"?"bottom":"right";d=Pf(d+c[f==="y"?"top":"left"],d,d-c[g])}if(a){const g=h==="y"?"bottom":"right";m=Pf(m+c[h==="y"?"top":"left"],m,m-c[g])}const p=s.fn({...t,[f]:d,[h]:m});return{...p,data:{x:p.x-r,y:p.y-n}}}}},F_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:r,y:n},f=vo(i),h=pv(f);let d=c[f],m=c[h];const p=typeof s=="function"?s({...o,placement:i}):s,g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const N=f==="y"?"height":"width",M=o.reference[f]-o.floating[N]+g.mainAxis,_=o.reference[f]+o.reference[N]-g.mainAxis;d<M?d=M:d>_&&(d=_)}if(u){var v,w,y,S;const N=f==="y"?"width":"height",M=["top","left"].includes(ci(i)),_=o.reference[h]-o.floating[N]+(M&&(v=(w=a.offset)==null?void 0:w[h])!=null?v:0)+(M?0:g.crossAxis),C=o.reference[h]+o.reference[N]+(M?0:(y=(S=a.offset)==null?void 0:S[h])!=null?y:0)-(M?g.crossAxis:0);m<_?m=_:m>C&&(m=C)}return{[f]:d,[h]:m}}}},P_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:o}=t,{apply:a,...s}=e,l=await Da(t,s),u=ci(r),c=Ga(r);let f,h;u==="top"||u==="bottom"?(f=u,h=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(h=u,f=c==="end"?"top":"bottom");const d=Wn(l.left,0),m=Wn(l.right,0),p=Wn(l.top,0),g=Wn(l.bottom,0),v={availableHeight:n.floating.height-(["left","right"].includes(r)?2*(p!==0||g!==0?p+g:Wn(l.top,l.bottom)):l[f]),availableWidth:n.floating.width-(["top","bottom"].includes(r)?2*(d!==0||m!==0?d+m:Wn(l.left,l.right)):l[h])},w=await i.getDimensions(o.floating);a==null||a({...t,...v});const y=await i.getDimensions(o.floating);return w.width!==y.width||w.height!==y.height?{reset:{rects:!0}}:{}}}};function gv(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function nn(e){if(e==null)return window;if(!gv(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ja(e){return nn(e).getComputedStyle(e)}function jr(e){return gv(e)?"":e?(e.nodeName||"").toLowerCase():""}function mv(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Ir(e){return e instanceof nn(e).HTMLElement}function In(e){return e instanceof nn(e).Element}function nd(e){return typeof ShadowRoot>"u"?!1:e instanceof nn(e).ShadowRoot||e instanceof ShadowRoot}function au(e){const{overflow:t,overflowX:r,overflowY:n}=ja(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function D_(e){return["table","td","th"].includes(jr(e))}function Dp(e){const t=/firefox/i.test(mv()),r=ja(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"}function vv(){return!/^((?!chrome|android).)*safari/i.test(mv())}const Ip=Math.min,la=Math.max,Cl=Math.round;function Xr(e,t,r){var n,i,o,a;t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect();let l=1,u=1;t&&Ir(e)&&(l=e.offsetWidth>0&&Cl(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Cl(s.height)/e.offsetHeight||1);const c=In(e)?nn(e):window,f=!vv()&&r,h=(s.left+(f&&(n=(i=c.visualViewport)==null?void 0:i.offsetLeft)!=null?n:0))/l,d=(s.top+(f&&(o=(a=c.visualViewport)==null?void 0:a.offsetTop)!=null?o:0))/u,m=s.width/l,p=s.height/u;return{width:m,height:p,top:d,right:h+m,bottom:d+p,left:h,x:h,y:d}}function Tn(e){return(t=e,(t instanceof nn(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function su(e){return In(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xv(e){return Xr(Tn(e)).left+su(e).scrollLeft}function I_(e,t,r){const n=Ir(t),i=Tn(t),o=Xr(e,n&&function(l){const u=Xr(l);return Cl(u.width)!==l.offsetWidth||Cl(u.height)!==l.offsetHeight}(t),r==="fixed");let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&r!=="fixed")if((jr(t)!=="body"||au(i))&&(a=su(t)),Ir(t)){const l=Xr(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else i&&(s.x=xv(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function wv(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(nd(e)?e.host:null)||Tn(e)}function kp(e){return Ir(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function Df(e){const t=nn(e);let r=kp(e);for(;r&&D_(r)&&getComputedStyle(r).position==="static";)r=kp(r);return r&&(jr(r)==="html"||jr(r)==="body"&&getComputedStyle(r).position==="static"&&!Dp(r))?t:r||function(n){let i=wv(n);for(nd(i)&&(i=i.host);Ir(i)&&!["html","body"].includes(jr(i));){if(Dp(i))return i;i=i.parentNode}return null}(e)||t}function bp(e){if(Ir(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Xr(e);return{width:t.width,height:t.height}}function yv(e){const t=wv(e);return["html","body","#document"].includes(jr(t))?e.ownerDocument.body:Ir(t)&&au(t)?t:yv(t)}function Al(e,t){var r;t===void 0&&(t=[]);const n=yv(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=nn(n),a=i?[o].concat(o.visualViewport||[],au(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Al(a))}function Np(e,t,r){return t==="viewport"?_l(function(n,i){const o=nn(n),a=Tn(n),s=o.visualViewport;let l=a.clientWidth,u=a.clientHeight,c=0,f=0;if(s){l=s.width,u=s.height;const h=vv();(h||!h&&i==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:l,height:u,x:c,y:f}}(e,r)):In(t)?function(n,i){const o=Xr(n,!1,i==="fixed"),a=o.top+n.clientTop,s=o.left+n.clientLeft;return{top:a,left:s,x:s,y:a,right:s+n.clientWidth,bottom:a+n.clientHeight,width:n.clientWidth,height:n.clientHeight}}(t,r):_l(function(n){var i;const o=Tn(n),a=su(n),s=(i=n.ownerDocument)==null?void 0:i.body,l=la(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=la(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let c=-a.scrollLeft+xv(n);const f=-a.scrollTop;return ja(s||o).direction==="rtl"&&(c+=la(o.clientWidth,s?s.clientWidth:0)-l),{width:l,height:u,x:c,y:f}}(Tn(e)))}function k_(e){const t=Al(e),r=["absolute","fixed"].includes(ja(e).position)&&Ir(e)?Df(e):e;return In(r)?t.filter(n=>In(n)&&function(i,o){const a=o.getRootNode==null?void 0:o.getRootNode();if(i.contains(o))return!0;if(a&&nd(a)){let s=o;do{if(s&&i===s)return!0;s=s.parentNode||s.host}while(s)}return!1}(n,r)&&jr(n)!=="body"):[]}const b_={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?k_(t):[].concat(r),n],a=o[0],s=o.reduce((l,u)=>{const c=Np(t,u,i);return l.top=la(c.top,l.top),l.right=Ip(c.right,l.right),l.bottom=Ip(c.bottom,l.bottom),l.left=la(c.left,l.left),l},Np(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const i=Ir(r),o=Tn(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&n!=="fixed")&&((jr(r)!=="body"||au(o))&&(a=su(r)),Ir(r))){const l=Xr(r,!0);s.x=l.x+r.clientLeft,s.y=l.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:In,getDimensions:bp,getOffsetParent:Df,getDocumentElement:Tn,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:I_(t,Df(r),n),floating:{...bp(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ja(e).direction==="rtl"};function N_(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,u=o&&!s,c=l||u?[...In(e)?Al(e):[],...Al(t)]:[];c.forEach(m=>{l&&m.addEventListener("scroll",r,{passive:!0}),u&&m.addEventListener("resize",r)});let f,h=null;if(a){let m=!0;h=new ResizeObserver(()=>{m||r(),m=!1}),In(e)&&!s&&h.observe(e),h.observe(t)}let d=s?Xr(e):null;return s&&function m(){const p=Xr(e);!d||p.x===d.x&&p.y===d.y&&p.width===d.width&&p.height===d.height||r(),d=p,f=requestAnimationFrame(m)}(),r(),()=>{var m;c.forEach(p=>{l&&p.removeEventListener("scroll",r),u&&p.removeEventListener("resize",r)}),(m=h)==null||m.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const $_=(e,t,r)=>y_(e,t,{platform:b_,...r});var If=typeof document<"u"?x.useLayoutEffect:x.useEffect;function kf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!kf(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!kf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function M_(e){const t=x.useRef(e);return If(()=>{t.current=e}),t}function L_(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=e===void 0?{}:e;const o=x.useRef(null),a=x.useRef(null),s=M_(i),l=x.useRef(null),[u,c]=x.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[f,h]=x.useState(t);kf(f==null?void 0:f.map(y=>{let{options:S}=y;return S}),t==null?void 0:t.map(y=>{let{options:S}=y;return S}))||h(t);const d=x.useCallback(()=>{!o.current||!a.current||$_(o.current,a.current,{middleware:f,placement:r,strategy:n}).then(y=>{m.current&&Qr.flushSync(()=>{c(y)})})},[f,r,n]);If(()=>{m.current&&d()},[d]);const m=x.useRef(!1);If(()=>(m.current=!0,()=>{m.current=!1}),[]);const p=x.useCallback(()=>{if(typeof l.current=="function"&&(l.current(),l.current=null),o.current&&a.current)if(s.current){const y=s.current(o.current,a.current,d);l.current=y}else d()},[d,s]),g=x.useCallback(y=>{o.current=y,p()},[p]),v=x.useCallback(y=>{a.current=y,p()},[p]),w=x.useMemo(()=>({reference:o,floating:a}),[]);return x.useMemo(()=>({...u,update:d,refs:w,reference:g,floating:v}),[u,d,w,g,v])}const B_=e=>{const{element:t,padding:r}=e;function n(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return n(t)?t.current!=null?Rp({element:t.current,padding:r}).fn(i):{}:t?Rp({element:t,padding:r}).fn(i):{}}}};function Ev(e){const[t,r]=x.useState(void 0);return xt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const Sv="Popper",[id,lu]=rn(Sv),[U_,_v]=id(Sv),H_=e=>{const{__scopePopper:t,children:r}=e,[n,i]=x.useState(null);return x.createElement(U_,{scope:t,anchor:n,onAnchorChange:i},r)},V_="PopperAnchor",W_=x.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,o=_v(V_,r),a=x.useRef(null),s=He(t,a);return x.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:x.createElement(De.div,he({},i,{ref:s}))}),Rl="PopperContent",[z_,pI]=id(Rl),[G_,j_]=id(Rl,{hasParent:!1,positionUpdateFns:new Set}),X_=x.forwardRef((e,t)=>{var r,n,i,o,a,s,l,u;const{__scopePopper:c,side:f="bottom",sideOffset:h=0,align:d="center",alignOffset:m=0,arrowPadding:p=0,collisionBoundary:g=[],collisionPadding:v=0,sticky:w="partial",hideWhenDetached:y=!1,avoidCollisions:S=!0,onPlaced:N,...M}=e,_=_v(Rl,c),[C,A]=x.useState(null),L=He(t,$r=>A($r)),[U,B]=x.useState(null),V=Ev(U),q=(r=V==null?void 0:V.width)!==null&&r!==void 0?r:0,ne=(n=V==null?void 0:V.height)!==null&&n!==void 0?n:0,we=f+(d!=="center"?"-"+d:""),ve=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},_e=Array.isArray(g)?g:[g],J=_e.length>0,ce={padding:ve,boundary:_e.filter(Y_),altBoundary:J},{reference:K,floating:O,strategy:b,x:k,y:F,placement:H,middlewareData:G,update:Y}=L_({strategy:"fixed",placement:we,whileElementsMounted:N_,middleware:[q_(),R_({mainAxis:h+ne,alignmentAxis:m}),S?O_({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?F_():void 0,...ce}):void 0,U?B_({element:U,padding:p}):void 0,S?C_({...ce}):void 0,P_({...ce,apply:({elements:$r,availableWidth:To,availableHeight:er})=>{$r.floating.style.setProperty("--radix-popper-available-width",`${To}px`),$r.floating.style.setProperty("--radix-popper-available-height",`${er}px`)}}),Q_({arrowWidth:q,arrowHeight:ne}),y?A_({strategy:"referenceHidden"}):void 0].filter(K_)});xt(()=>{K(_.anchor)},[K,_.anchor]);const te=k!==null&&F!==null,[re,ye]=Tv(H),pe=Nt(N);xt(()=>{te&&(pe==null||pe())},[te,pe]);const Pe=(i=G.arrow)===null||i===void 0?void 0:i.x,Ee=(o=G.arrow)===null||o===void 0?void 0:o.y,et=((a=G.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Be,ge]=x.useState();xt(()=>{C&&ge(window.getComputedStyle(C).zIndex)},[C]);const{hasParent:Mt,positionUpdateFns:St}=j_(Rl,c),jt=!Mt;x.useLayoutEffect(()=>{if(!jt)return St.add(Y),()=>{St.delete(Y)}},[jt,St,Y]),xt(()=>{jt&&te&&Array.from(St).reverse().forEach($r=>requestAnimationFrame($r))},[jt,te,St]);const Nr={"data-side":re,"data-align":ye,...M,ref:L,style:{...M.style,animation:te?void 0:"none",opacity:(s=G.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0}};return x.createElement("div",{ref:O,"data-radix-popper-content-wrapper":"",style:{position:b,left:0,top:0,transform:te?`translate3d(${Math.round(k)}px, ${Math.round(F)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Be,["--radix-popper-transform-origin"]:[(l=G.transformOrigin)===null||l===void 0?void 0:l.x,(u=G.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},x.createElement(z_,{scope:c,placedSide:re,onArrowChange:B,arrowX:Pe,arrowY:Ee,shouldHideArrow:et},jt?x.createElement(G_,{scope:c,hasParent:!0,positionUpdateFns:St},x.createElement(De.div,Nr)):x.createElement(De.div,Nr)))});function K_(e){return e!==void 0}function Y_(e){return e!==null}const q_=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:r}=e,{width:n,height:i}=t.reference;return r.floating.style.setProperty("--radix-popper-anchor-width",`${n}px`),r.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),Q_=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;const{placement:s,rects:l,middlewareData:u}=t,f=((r=u.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,h=f?0:e.arrowWidth,d=f?0:e.arrowHeight,[m,p]=Tv(s),g={start:"0%",center:"50%",end:"100%"}[p],v=((n=(i=u.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+h/2,w=((o=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&o!==void 0?o:0)+d/2;let y="",S="";return m==="bottom"?(y=f?g:`${v}px`,S=`${-d}px`):m==="top"?(y=f?g:`${v}px`,S=`${l.floating.height+d}px`):m==="right"?(y=`${-d}px`,S=f?g:`${w}px`):m==="left"&&(y=`${l.floating.width+d}px`,S=f?g:`${w}px`),{data:{x:y,y:S}}}});function Tv(e){const[t,r="center"]=e.split("-");return[t,r]}const Cv=H_,Av=W_,Rv=X_,od=x.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=e;return n?qm.createPortal(x.createElement(De.div,he({},i,{ref:t})),n):null});function oo({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=Z_({defaultProp:t,onChange:r}),o=e!==void 0,a=o?e:n,s=Nt(r),l=x.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else i(u)},[o,e,i,s]);return[a,l]}function Z_({defaultProp:e,onChange:t}){const r=x.useState(e),[n]=r,i=x.useRef(n),o=Nt(t);return x.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}function Ov(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const ad=x.forwardRef((e,t)=>x.createElement(De.span,he({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var J_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Si=new WeakMap,ws=new WeakMap,ys={},pc=0,Fv=function(e){return e&&(e.host||Fv(e.parentNode))},eT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Fv(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},tT=function(e,t,r,n){var i=eT(t,Array.isArray(e)?e:[e]);ys[r]||(ys[r]=new WeakMap);var o=ys[r],a=[],s=new Set,l=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(s.has(h))c(h);else{var d=h.getAttribute(n),m=d!==null&&d!=="false",p=(Si.get(h)||0)+1,g=(o.get(h)||0)+1;Si.set(h,p),o.set(h,g),a.push(h),p===1&&m&&ws.set(h,!0),g===1&&h.setAttribute(r,"true"),m||h.setAttribute(n,"true")}})};return c(t),s.clear(),pc++,function(){a.forEach(function(f){var h=Si.get(f)-1,d=o.get(f)-1;Si.set(f,h),o.set(f,d),h||(ws.has(f)||f.removeAttribute(n),ws.delete(f)),d||f.removeAttribute(r)}),pc--,pc||(Si=new WeakMap,Si=new WeakMap,ws=new WeakMap,ys={})}},Pv=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||J_(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),tT(n,i,r,"aria-hidden")):function(){return null}},Ar=function(){return Ar=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ar.apply(this,arguments)};function Dv(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function rT(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Ys="right-scroll-bar-position",qs="width-before-scroll-bar",nT="with-scroll-bars-hidden",iT="--removed-body-scroll-bar-size";function oT(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function aT(e,t){var r=x.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}function sT(e,t){return aT(t||null,function(r){return e.forEach(function(n){return oT(n,r)})})}function lT(e){return e}function uT(e,t){t===void 0&&(t=lT);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var a=t(o,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(n=!0;r.length;){var a=r;r=[],a.forEach(o)}r={push:function(s){return o(s)},filter:function(){return r}}},assignMedium:function(o){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(o),a=r}var l=function(){var c=a;a=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(c){a.push(c),u()},filter:function(c){return a=a.filter(c),r}}}};return i}function cT(e){e===void 0&&(e={});var t=uT(null);return t.options=Ar({async:!0,ssr:!1},e),t}var Iv=function(e){var t=e.sideCar,r=Dv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return x.createElement(n,Ar({},r))};Iv.isSideCarExport=!0;function fT(e,t){return e.useMedium(t),Iv}var kv=cT(),gc=function(){},uu=x.forwardRef(function(e,t){var r=x.useRef(null),n=x.useState({onScrollCapture:gc,onWheelCapture:gc,onTouchMoveCapture:gc}),i=n[0],o=n[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,h=e.sideCar,d=e.noIsolation,m=e.inert,p=e.allowPinchZoom,g=e.as,v=g===void 0?"div":g,w=Dv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=h,S=sT([r,t]),N=Ar(Ar({},w),i);return x.createElement(x.Fragment,null,c&&x.createElement(y,{sideCar:kv,removeScrollBar:u,shards:f,noIsolation:d,inert:m,setCallbacks:o,allowPinchZoom:!!p,lockRef:r}),a?x.cloneElement(x.Children.only(s),Ar(Ar({},N),{ref:S})):x.createElement(v,Ar({},N,{className:l,ref:S}),s))});uu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uu.classNames={fullWidth:qs,zeroRight:Ys};var $p,dT=function(){if($p)return $p;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dT();return t&&e.setAttribute("nonce",t),e}function pT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=hT())&&(pT(t,r),gT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vT=function(){var e=mT();return function(t,r){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},bv=function(){var e=vT(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},xT={left:0,top:0,right:0,gap:0},mc=function(e){return parseInt(e||"",10)||0},wT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[mc(r),mc(n),mc(i)]},yT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xT;var t=wT(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ET=bv(),ST=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
+ */function Rf(e,t){return e?XS(e)?x.createElement(e,t):e:null}function XS(e){return KS(e)||typeof e=="function"||YS(e)}function KS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function YS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function qS(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=x.useState(()=>({current:MS(t)})),[n,i]=x.useState(()=>r.current.initialState);return r.current.setOptions(o=>({...o,...e,state:{...n,...e.state},onStateChange:a=>{i(a),e.onStateChange==null||e.onStateChange(a)}})),r.current}function av(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=av(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function It(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=av(e))&&(n&&(n+=" "),n+=t);return n}function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},he.apply(this,arguments)}function xp(e,[t,r]){return Math.min(r,Math.max(t,e))}function Se(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function rn(e,t=[]){let r=[];function n(o,a){const s=x.createContext(a),l=r.length;r=[...r,a];function u(f){const{scope:h,children:d,...m}=f,p=(h==null?void 0:h[e][l])||s,g=x.useMemo(()=>m,Object.values(m));return x.createElement(p.Provider,{value:g},d)}function c(f,h){const d=(h==null?void 0:h[e][l])||s,m=x.useContext(d);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${f}\` must be used within \`${o}\``)}return u.displayName=o+"Provider",[u,c]}const i=()=>{const o=r.map(a=>x.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return x.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,QS(i,...t)]}function QS(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const a=n.reduce((s,{useScope:l,scopeName:u})=>{const f=l(o)[`__scope${u}`];return{...s,...f}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function ZS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function J0(...e){return t=>e.forEach(r=>ZS(r,t))}function He(...e){return x.useCallback(J0(...e),e)}const no=x.forwardRef((e,t)=>{const{children:r,...n}=e,i=x.Children.toArray(r),o=i.find(e_);if(o){const a=o.props.children,s=i.map(l=>l===o?x.Children.count(a)>1?x.Children.only(null):x.isValidElement(a)?a.props.children:null:l);return x.createElement(Of,he({},n,{ref:t}),x.isValidElement(a)?x.cloneElement(a,void 0,s):null)}return x.createElement(Of,he({},n,{ref:t}),r)});no.displayName="Slot";const Of=x.forwardRef((e,t)=>{const{children:r,...n}=e;return x.isValidElement(r)?x.cloneElement(r,{...t_(n,r.props),ref:J0(t,r.ref)}):x.Children.count(r)>1?x.Children.only(null):null});Of.displayName="SlotClone";const JS=({children:e})=>x.createElement(x.Fragment,null,e);function e_(e){return x.isValidElement(e)&&e.type===JS}function t_(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...s)=>{o(...s),i(...s)}:i&&(r[n]=i):n==="style"?r[n]={...i,...o}:n==="className"&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}function iu(e){const t=e+"CollectionProvider",[r,n]=rn(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=d=>{const{scope:m,children:p}=d,g=nr.useRef(null),v=nr.useRef(new Map).current;return nr.createElement(i,{scope:m,itemMap:v,collectionRef:g},p)},s=e+"CollectionSlot",l=nr.forwardRef((d,m)=>{const{scope:p,children:g}=d,v=o(s,p),w=He(m,v.collectionRef);return nr.createElement(no,{ref:w},g)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",f=nr.forwardRef((d,m)=>{const{scope:p,children:g,...v}=d,w=nr.useRef(null),y=He(m,w),S=o(u,p);return nr.useEffect(()=>(S.itemMap.set(w,{ref:w,...v}),()=>void S.itemMap.delete(w))),nr.createElement(no,{[c]:"",ref:y},g)});function h(d){const m=o(e+"CollectionConsumer",d);return nr.useCallback(()=>{const g=m.collectionRef.current;if(!g)return[];const v=Array.from(g.querySelectorAll(`[${c}]`));return Array.from(m.itemMap.values()).sort((S,b)=>v.indexOf(S.ref.current)-v.indexOf(b.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},h,n]}const r_=x.createContext(void 0);function ou(e){const t=x.useContext(r_);return e||t||"ltr"}const n_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],De=n_.reduce((e,t)=>{const r=x.forwardRef((n,i)=>{const{asChild:o,...a}=n,s=o?no:t;return x.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),x.createElement(s,he({},a,{ref:i}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ed(e,t){e&&Qr.flushSync(()=>e.dispatchEvent(t))}function Nt(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function i_(e,t=globalThis==null?void 0:globalThis.document){const r=Nt(e);x.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Ff="dismissableLayer.update",o_="dismissableLayer.pointerDownOutside",a_="dismissableLayer.focusOutside";let wp;const sv=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),td=x.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=x.useContext(sv),[f,h]=x.useState(null),d=(r=f==null?void 0:f.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=x.useState({}),p=He(t,A=>h(A)),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(v),y=f?g.indexOf(f):-1,S=c.layersWithOutsidePointerEventsDisabled.size>0,b=y>=w,M=l_(A=>{const R=A.target,L=[...c.branches].some(U=>U.contains(R));!b||L||(o==null||o(A),s==null||s(A),A.defaultPrevented||l==null||l())},d),_=u_(A=>{const R=A.target;[...c.branches].some(U=>U.contains(R))||(a==null||a(A),s==null||s(A),A.defaultPrevented||l==null||l())},d);return i_(A=>{y===c.layers.size-1&&(i==null||i(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},d),x.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(wp=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),yp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=wp)}},[f,d,n,c]),x.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),yp())},[f,c]),x.useEffect(()=>{const A=()=>m({});return document.addEventListener(Ff,A),()=>document.removeEventListener(Ff,A)},[]),x.createElement(De.div,he({},u,{ref:p,style:{pointerEvents:S?b?"auto":"none":void 0,...e.style},onFocusCapture:Se(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Se(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Se(e.onPointerDownCapture,M.onPointerDownCapture)}))}),s_=x.forwardRef((e,t)=>{const r=x.useContext(sv),n=x.useRef(null),i=He(t,n);return x.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),x.createElement(De.div,he({},e,{ref:i}))});function l_(e,t=globalThis==null?void 0:globalThis.document){const r=Nt(e),n=x.useRef(!1),i=x.useRef(()=>{});return x.useEffect(()=>{const o=s=>{if(s.target&&!n.current){let c=function(){lv(o_,r,u,{discrete:!0})};var l=c;const u={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=c,t.addEventListener("click",i.current,{once:!0})):c()}n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function u_(e,t=globalThis==null?void 0:globalThis.document){const r=Nt(e),n=x.useRef(!1);return x.useEffect(()=>{const i=o=>{o.target&&!n.current&&lv(a_,r,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function yp(){const e=new CustomEvent(Ff);document.dispatchEvent(e)}function lv(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?ed(i,o):i.dispatchEvent(o)}const c_=td,f_=s_;let fc=0;function uv(){x.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:Ep()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Ep()),fc++,()=>{fc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),fc--}},[])}function Ep(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const dc="focusScope.autoFocusOnMount",hc="focusScope.autoFocusOnUnmount",Sp={bubbles:!1,cancelable:!0},cv=x.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=x.useState(null),u=Nt(i),c=Nt(o),f=x.useRef(null),h=He(t,p=>l(p)),d=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(n){let v=function(y){if(d.paused||!s)return;const S=y.target;s.contains(S)?f.current=S:Vn(f.current,{select:!0})},w=function(y){d.paused||!s||s.contains(y.relatedTarget)||Vn(f.current,{select:!0})};var p=v,g=w;return document.addEventListener("focusin",v),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",w)}}},[n,s,d.paused]),x.useEffect(()=>{if(s){Tp.add(d);const p=document.activeElement;if(!s.contains(p)){const v=new CustomEvent(dc,Sp);s.addEventListener(dc,u),s.dispatchEvent(v),v.defaultPrevented||(d_(v_(fv(s)),{select:!0}),document.activeElement===p&&Vn(s))}return()=>{s.removeEventListener(dc,u),setTimeout(()=>{const v=new CustomEvent(hc,Sp);s.addEventListener(hc,c),s.dispatchEvent(v),v.defaultPrevented||Vn(p??document.body,{select:!0}),s.removeEventListener(hc,c),Tp.remove(d)},0)}}},[s,u,c,d]);const m=x.useCallback(p=>{if(!r&&!n||d.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(g&&v){const w=p.currentTarget,[y,S]=h_(w);y&&S?!p.shiftKey&&v===S?(p.preventDefault(),r&&Vn(y,{select:!0})):p.shiftKey&&v===y&&(p.preventDefault(),r&&Vn(S,{select:!0})):v===w&&p.preventDefault()}},[r,n,d.paused]);return x.createElement(De.div,he({tabIndex:-1},a,{ref:h,onKeyDown:m}))});function d_(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Vn(n,{select:t}),document.activeElement!==r)return}function h_(e){const t=fv(e),r=_p(t,e),n=_p(t.reverse(),e);return[r,n]}function fv(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function _p(e,t){for(const r of e)if(!p_(r,{upTo:t}))return r}function p_(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function g_(e){return e instanceof HTMLInputElement&&"select"in e}function Vn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&g_(e)&&t&&e.select()}}const Tp=m_();function m_(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Cp(e,t),e.unshift(t)},remove(t){var r;e=Cp(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function Cp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function v_(e){return e.filter(t=>t.tagName!=="A")}const xt=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},x_=ay["useId".toString()]||(()=>{});let w_=0;function io(e){const[t,r]=x.useState(x_());return xt(()=>{e||r(n=>n??String(w_++))},[e]),e||(t?`radix-${t}`:"")}function ci(e){return e.split("-")[0]}function Ga(e){return e.split("-")[1]}function vo(e){return["top","bottom"].includes(ci(e))?"x":"y"}function rd(e){return e==="y"?"height":"width"}function Ap(e,t,r){let{reference:n,floating:i}=e;const o=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,s=vo(t),l=rd(s),u=n[l]/2-i[l]/2,c=s==="x";let f;switch(ci(t)){case"top":f={x:o,y:n.y-i.height};break;case"bottom":f={x:o,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:a};break;case"left":f={x:n.x-i.width,y:a};break;default:f={x:n.x,y:n.y}}switch(Ga(t)){case"start":f[s]-=u*(r&&c?-1:1);break;case"end":f[s]+=u*(r&&c?-1:1)}return f}const y_=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=await(a.isRTL==null?void 0:a.isRTL(t));let l=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=Ap(l,n,s),f=n,h={},d=0;for(let m=0;m<o.length;m++){const{name:p,fn:g}=o[m],{x:v,y:w,data:y,reset:S}=await g({x:u,y:c,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:l,platform:a,elements:{reference:e,floating:t}});u=v??u,c=w??c,h={...h,[p]:{...h[p],...y}},S&&d<=50&&(d++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(l=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:c}=Ap(l,f,s)),m=-1)}return{x:u,y:c,placement:f,strategy:i,middlewareData:h}};function dv(e){return typeof e!="number"?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(e):{top:e,right:e,bottom:e,left:e}}function _l(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function Da(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=t,m=dv(d),p=s[h?f==="floating"?"reference":"floating":f],g=_l(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(p)))==null||r?p:p.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v=_l(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:f==="floating"?{...a.floating,x:n,y:i}:a.reference,offsetParent:await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),strategy:l}):a[f]);return{top:g.top-v.top+m.top,bottom:v.bottom-g.bottom+m.bottom,left:g.left-v.left+m.left,right:v.right-g.right+m.right}}const E_=Math.min,Wn=Math.max;function Pf(e,t,r){return Wn(e,E_(t,r))}const Rp=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e??{},{x:i,y:o,placement:a,rects:s,platform:l}=t;if(r==null)return{};const u=dv(n),c={x:i,y:o},f=vo(a),h=Ga(a),d=rd(f),m=await l.getDimensions(r),p=f==="y"?"top":"left",g=f==="y"?"bottom":"right",v=s.reference[d]+s.reference[f]-c[f]-s.floating[d],w=c[f]-s.reference[f],y=await(l.getOffsetParent==null?void 0:l.getOffsetParent(r));let S=y?f==="y"?y.clientHeight||0:y.clientWidth||0:0;S===0&&(S=s.floating[d]);const b=v/2-w/2,M=u[p],_=S-m[d]-u[g],A=S/2-m[d]/2+b,R=Pf(M,A,_),L=(h==="start"?u[p]:u[g])>0&&A!==R&&s.reference[d]<=s.floating[d];return{[f]:c[f]-(L?A<M?M-A:_-A:0),data:{[f]:R,centerOffset:A-R}}}}),S_={left:"right",right:"left",bottom:"top",top:"bottom"};function Tl(e){return e.replace(/left|right|bottom|top/g,t=>S_[t])}function __(e,t,r){r===void 0&&(r=!1);const n=Ga(e),i=vo(e),o=rd(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Tl(a)),{main:a,cross:Tl(a)}}const T_={start:"end",end:"start"};function Op(e){return e.replace(/start|end/g,t=>T_[t])}const hv=["top","right","bottom","left"];hv.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const C_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:i,rects:o,initialPlacement:a,platform:s,elements:l}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",flipAlignment:d=!0,...m}=e,p=ci(n),g=f||(p===a||!d?[Tl(a)]:function(A){const R=Tl(A);return[Op(A),R,Op(R)]}(a)),v=[a,...g],w=await Da(t,m),y=[];let S=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&y.push(w[p]),c){const{main:A,cross:R}=__(n,o,await(s.isRTL==null?void 0:s.isRTL(l.floating)));y.push(w[A],w[R])}if(S=[...S,{placement:n,overflows:y}],!y.every(A=>A<=0)){var b,M;const A=((b=(M=i.flip)==null?void 0:M.index)!=null?b:0)+1,R=v[A];if(R)return{data:{index:A,overflows:S},reset:{placement:R}};let L="bottom";switch(h){case"bestFit":{var _;const U=(_=S.map(B=>[B,B.overflows.filter(V=>V>0).reduce((V,Y)=>V+Y,0)]).sort((B,V)=>B[1]-V[1])[0])==null?void 0:_[0].placement;U&&(L=U);break}case"initialPlacement":L=a}if(n!==L)return{reset:{placement:L}}}return{}}}};function Fp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Pp(e){return hv.some(t=>e[t]>=0)}const A_=function(e){let{strategy:t="referenceHidden",...r}=e===void 0?{}:e;return{name:"hide",async fn(n){const{rects:i}=n;switch(t){case"referenceHidden":{const o=Fp(await Da(n,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Pp(o)}}}case"escaped":{const o=Fp(await Da(n,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:o,escaped:Pp(o)}}}default:return{}}}}},R_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,i=await async function(o,a){const{placement:s,platform:l,elements:u}=o,c=await(l.isRTL==null?void 0:l.isRTL(u.floating)),f=ci(s),h=Ga(s),d=vo(s)==="x",m=["left","top"].includes(f)?-1:1,p=c&&d?-1:1,g=typeof a=="function"?a(o):a;let{mainAxis:v,crossAxis:w,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return h&&typeof y=="number"&&(w=h==="end"?-1*y:y),d?{x:w*p,y:v*m}:{x:v*m,y:w*p}}(t,e);return{x:r+i.x,y:n+i.y,data:i}}}};function pv(e){return e==="x"?"y":"x"}const O_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x:v,y:w}=g;return{x:v,y:w}}},...l}=e,u={x:r,y:n},c=await Da(t,l),f=vo(ci(i)),h=pv(f);let d=u[f],m=u[h];if(o){const g=f==="y"?"bottom":"right";d=Pf(d+c[f==="y"?"top":"left"],d,d-c[g])}if(a){const g=h==="y"?"bottom":"right";m=Pf(m+c[h==="y"?"top":"left"],m,m-c[g])}const p=s.fn({...t,[f]:d,[h]:m});return{...p,data:{x:p.x-r,y:p.y-n}}}}},F_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=e,c={x:r,y:n},f=vo(i),h=pv(f);let d=c[f],m=c[h];const p=typeof s=="function"?s({...o,placement:i}):s,g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const b=f==="y"?"height":"width",M=o.reference[f]-o.floating[b]+g.mainAxis,_=o.reference[f]+o.reference[b]-g.mainAxis;d<M?d=M:d>_&&(d=_)}if(u){var v,w,y,S;const b=f==="y"?"width":"height",M=["top","left"].includes(ci(i)),_=o.reference[h]-o.floating[b]+(M&&(v=(w=a.offset)==null?void 0:w[h])!=null?v:0)+(M?0:g.crossAxis),A=o.reference[h]+o.reference[b]+(M?0:(y=(S=a.offset)==null?void 0:S[h])!=null?y:0)-(M?g.crossAxis:0);m<_?m=_:m>A&&(m=A)}return{[f]:d,[h]:m}}}},P_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:o}=t,{apply:a,...s}=e,l=await Da(t,s),u=ci(r),c=Ga(r);let f,h;u==="top"||u==="bottom"?(f=u,h=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(h=u,f=c==="end"?"top":"bottom");const d=Wn(l.left,0),m=Wn(l.right,0),p=Wn(l.top,0),g=Wn(l.bottom,0),v={availableHeight:n.floating.height-(["left","right"].includes(r)?2*(p!==0||g!==0?p+g:Wn(l.top,l.bottom)):l[f]),availableWidth:n.floating.width-(["top","bottom"].includes(r)?2*(d!==0||m!==0?d+m:Wn(l.left,l.right)):l[h])},w=await i.getDimensions(o.floating);a==null||a({...t,...v});const y=await i.getDimensions(o.floating);return w.width!==y.width||w.height!==y.height?{reset:{rects:!0}}:{}}}};function gv(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function nn(e){if(e==null)return window;if(!gv(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ja(e){return nn(e).getComputedStyle(e)}function jr(e){return gv(e)?"":e?(e.nodeName||"").toLowerCase():""}function mv(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Ir(e){return e instanceof nn(e).HTMLElement}function In(e){return e instanceof nn(e).Element}function nd(e){return typeof ShadowRoot>"u"?!1:e instanceof nn(e).ShadowRoot||e instanceof ShadowRoot}function au(e){const{overflow:t,overflowX:r,overflowY:n}=ja(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function D_(e){return["table","td","th"].includes(jr(e))}function Dp(e){const t=/firefox/i.test(mv()),r=ja(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"}function vv(){return!/^((?!chrome|android).)*safari/i.test(mv())}const Ip=Math.min,la=Math.max,Cl=Math.round;function Xr(e,t,r){var n,i,o,a;t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect();let l=1,u=1;t&&Ir(e)&&(l=e.offsetWidth>0&&Cl(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Cl(s.height)/e.offsetHeight||1);const c=In(e)?nn(e):window,f=!vv()&&r,h=(s.left+(f&&(n=(i=c.visualViewport)==null?void 0:i.offsetLeft)!=null?n:0))/l,d=(s.top+(f&&(o=(a=c.visualViewport)==null?void 0:a.offsetTop)!=null?o:0))/u,m=s.width/l,p=s.height/u;return{width:m,height:p,top:d,right:h+m,bottom:d+p,left:h,x:h,y:d}}function Tn(e){return(t=e,(t instanceof nn(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function su(e){return In(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xv(e){return Xr(Tn(e)).left+su(e).scrollLeft}function I_(e,t,r){const n=Ir(t),i=Tn(t),o=Xr(e,n&&function(l){const u=Xr(l);return Cl(u.width)!==l.offsetWidth||Cl(u.height)!==l.offsetHeight}(t),r==="fixed");let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&r!=="fixed")if((jr(t)!=="body"||au(i))&&(a=su(t)),Ir(t)){const l=Xr(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else i&&(s.x=xv(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function wv(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(nd(e)?e.host:null)||Tn(e)}function kp(e){return Ir(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function Df(e){const t=nn(e);let r=kp(e);for(;r&&D_(r)&&getComputedStyle(r).position==="static";)r=kp(r);return r&&(jr(r)==="html"||jr(r)==="body"&&getComputedStyle(r).position==="static"&&!Dp(r))?t:r||function(n){let i=wv(n);for(nd(i)&&(i=i.host);Ir(i)&&!["html","body"].includes(jr(i));){if(Dp(i))return i;i=i.parentNode}return null}(e)||t}function bp(e){if(Ir(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Xr(e);return{width:t.width,height:t.height}}function yv(e){const t=wv(e);return["html","body","#document"].includes(jr(t))?e.ownerDocument.body:Ir(t)&&au(t)?t:yv(t)}function Al(e,t){var r;t===void 0&&(t=[]);const n=yv(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=nn(n),a=i?[o].concat(o.visualViewport||[],au(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Al(a))}function Np(e,t,r){return t==="viewport"?_l(function(n,i){const o=nn(n),a=Tn(n),s=o.visualViewport;let l=a.clientWidth,u=a.clientHeight,c=0,f=0;if(s){l=s.width,u=s.height;const h=vv();(h||!h&&i==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:l,height:u,x:c,y:f}}(e,r)):In(t)?function(n,i){const o=Xr(n,!1,i==="fixed"),a=o.top+n.clientTop,s=o.left+n.clientLeft;return{top:a,left:s,x:s,y:a,right:s+n.clientWidth,bottom:a+n.clientHeight,width:n.clientWidth,height:n.clientHeight}}(t,r):_l(function(n){var i;const o=Tn(n),a=su(n),s=(i=n.ownerDocument)==null?void 0:i.body,l=la(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=la(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let c=-a.scrollLeft+xv(n);const f=-a.scrollTop;return ja(s||o).direction==="rtl"&&(c+=la(o.clientWidth,s?s.clientWidth:0)-l),{width:l,height:u,x:c,y:f}}(Tn(e)))}function k_(e){const t=Al(e),r=["absolute","fixed"].includes(ja(e).position)&&Ir(e)?Df(e):e;return In(r)?t.filter(n=>In(n)&&function(i,o){const a=o.getRootNode==null?void 0:o.getRootNode();if(i.contains(o))return!0;if(a&&nd(a)){let s=o;do{if(s&&i===s)return!0;s=s.parentNode||s.host}while(s)}return!1}(n,r)&&jr(n)!=="body"):[]}const b_={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?k_(t):[].concat(r),n],a=o[0],s=o.reduce((l,u)=>{const c=Np(t,u,i);return l.top=la(c.top,l.top),l.right=Ip(c.right,l.right),l.bottom=Ip(c.bottom,l.bottom),l.left=la(c.left,l.left),l},Np(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:n}=e;const i=Ir(r),o=Tn(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&n!=="fixed")&&((jr(r)!=="body"||au(o))&&(a=su(r)),Ir(r))){const l=Xr(r,!0);s.x=l.x+r.clientLeft,s.y=l.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}},isElement:In,getDimensions:bp,getOffsetParent:Df,getDocumentElement:Tn,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:I_(t,Df(r),n),floating:{...bp(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ja(e).direction==="rtl"};function N_(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=!0,animationFrame:s=!1}=n,l=i&&!s,u=o&&!s,c=l||u?[...In(e)?Al(e):[],...Al(t)]:[];c.forEach(m=>{l&&m.addEventListener("scroll",r,{passive:!0}),u&&m.addEventListener("resize",r)});let f,h=null;if(a){let m=!0;h=new ResizeObserver(()=>{m||r(),m=!1}),In(e)&&!s&&h.observe(e),h.observe(t)}let d=s?Xr(e):null;return s&&function m(){const p=Xr(e);!d||p.x===d.x&&p.y===d.y&&p.width===d.width&&p.height===d.height||r(),d=p,f=requestAnimationFrame(m)}(),r(),()=>{var m;c.forEach(p=>{l&&p.removeEventListener("scroll",r),u&&p.removeEventListener("resize",r)}),(m=h)==null||m.disconnect(),h=null,s&&cancelAnimationFrame(f)}}const $_=(e,t,r)=>y_(e,t,{platform:b_,...r});var If=typeof document<"u"?x.useLayoutEffect:x.useEffect;function kf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!kf(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const o=i[n];if(!(o==="_owner"&&e.$$typeof)&&!kf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function M_(e){const t=x.useRef(e);return If(()=>{t.current=e}),t}function L_(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=e===void 0?{}:e;const o=x.useRef(null),a=x.useRef(null),s=M_(i),l=x.useRef(null),[u,c]=x.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[f,h]=x.useState(t);kf(f==null?void 0:f.map(y=>{let{options:S}=y;return S}),t==null?void 0:t.map(y=>{let{options:S}=y;return S}))||h(t);const d=x.useCallback(()=>{!o.current||!a.current||$_(o.current,a.current,{middleware:f,placement:r,strategy:n}).then(y=>{m.current&&Qr.flushSync(()=>{c(y)})})},[f,r,n]);If(()=>{m.current&&d()},[d]);const m=x.useRef(!1);If(()=>(m.current=!0,()=>{m.current=!1}),[]);const p=x.useCallback(()=>{if(typeof l.current=="function"&&(l.current(),l.current=null),o.current&&a.current)if(s.current){const y=s.current(o.current,a.current,d);l.current=y}else d()},[d,s]),g=x.useCallback(y=>{o.current=y,p()},[p]),v=x.useCallback(y=>{a.current=y,p()},[p]),w=x.useMemo(()=>({reference:o,floating:a}),[]);return x.useMemo(()=>({...u,update:d,refs:w,reference:g,floating:v}),[u,d,w,g,v])}const B_=e=>{const{element:t,padding:r}=e;function n(i){return Object.prototype.hasOwnProperty.call(i,"current")}return{name:"arrow",options:e,fn(i){return n(t)?t.current!=null?Rp({element:t.current,padding:r}).fn(i):{}:t?Rp({element:t,padding:r}).fn(i):{}}}};function Ev(e){const[t,r]=x.useState(void 0);return xt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let a,s;if("borderBoxSize"in o){const l=o.borderBoxSize,u=Array.isArray(l)?l[0]:l;a=u.inlineSize,s=u.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const Sv="Popper",[id,lu]=rn(Sv),[U_,_v]=id(Sv),H_=e=>{const{__scopePopper:t,children:r}=e,[n,i]=x.useState(null);return x.createElement(U_,{scope:t,anchor:n,onAnchorChange:i},r)},V_="PopperAnchor",W_=x.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,o=_v(V_,r),a=x.useRef(null),s=He(t,a);return x.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:x.createElement(De.div,he({},i,{ref:s}))}),Rl="PopperContent",[z_,pI]=id(Rl),[G_,j_]=id(Rl,{hasParent:!1,positionUpdateFns:new Set}),X_=x.forwardRef((e,t)=>{var r,n,i,o,a,s,l,u;const{__scopePopper:c,side:f="bottom",sideOffset:h=0,align:d="center",alignOffset:m=0,arrowPadding:p=0,collisionBoundary:g=[],collisionPadding:v=0,sticky:w="partial",hideWhenDetached:y=!1,avoidCollisions:S=!0,onPlaced:b,...M}=e,_=_v(Rl,c),[A,R]=x.useState(null),L=He(t,$r=>R($r)),[U,B]=x.useState(null),V=Ev(U),Y=(r=V==null?void 0:V.width)!==null&&r!==void 0?r:0,ne=(n=V==null?void 0:V.height)!==null&&n!==void 0?n:0,me=f+(d!=="center"?"-"+d:""),xe=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},_e=Array.isArray(g)?g:[g],ie=_e.length>0,ae={padding:xe,boundary:_e.filter(Y_),altBoundary:ie},{reference:K,floating:C,strategy:N,x:k,y:F,placement:H,middlewareData:z,update:J}=L_({strategy:"fixed",placement:me,whileElementsMounted:N_,middleware:[q_(),R_({mainAxis:h+ne,alignmentAxis:m}),S?O_({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?F_():void 0,...ae}):void 0,U?B_({element:U,padding:p}):void 0,S?C_({...ae}):void 0,P_({...ae,apply:({elements:$r,availableWidth:To,availableHeight:er})=>{$r.floating.style.setProperty("--radix-popper-available-width",`${To}px`),$r.floating.style.setProperty("--radix-popper-available-height",`${er}px`)}}),Q_({arrowWidth:Y,arrowHeight:ne}),y?A_({strategy:"referenceHidden"}):void 0].filter(K_)});xt(()=>{K(_.anchor)},[K,_.anchor]);const Z=k!==null&&F!==null,[te,ye]=Tv(H),pe=Nt(b);xt(()=>{Z&&(pe==null||pe())},[Z,pe]);const Pe=(i=z.arrow)===null||i===void 0?void 0:i.x,Ee=(o=z.arrow)===null||o===void 0?void 0:o.y,et=((a=z.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Be,ge]=x.useState();xt(()=>{A&&ge(window.getComputedStyle(A).zIndex)},[A]);const{hasParent:Mt,positionUpdateFns:St}=j_(Rl,c),jt=!Mt;x.useLayoutEffect(()=>{if(!jt)return St.add(J),()=>{St.delete(J)}},[jt,St,J]),xt(()=>{jt&&Z&&Array.from(St).reverse().forEach($r=>requestAnimationFrame($r))},[jt,Z,St]);const Nr={"data-side":te,"data-align":ye,...M,ref:L,style:{...M.style,animation:Z?void 0:"none",opacity:(s=z.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0}};return x.createElement("div",{ref:C,"data-radix-popper-content-wrapper":"",style:{position:N,left:0,top:0,transform:Z?`translate3d(${Math.round(k)}px, ${Math.round(F)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Be,["--radix-popper-transform-origin"]:[(l=z.transformOrigin)===null||l===void 0?void 0:l.x,(u=z.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},x.createElement(z_,{scope:c,placedSide:te,onArrowChange:B,arrowX:Pe,arrowY:Ee,shouldHideArrow:et},jt?x.createElement(G_,{scope:c,hasParent:!0,positionUpdateFns:St},x.createElement(De.div,Nr)):x.createElement(De.div,Nr)))});function K_(e){return e!==void 0}function Y_(e){return e!==null}const q_=()=>({name:"anchorCssProperties",fn(e){const{rects:t,elements:r}=e,{width:n,height:i}=t.reference;return r.floating.style.setProperty("--radix-popper-anchor-width",`${n}px`),r.floating.style.setProperty("--radix-popper-anchor-height",`${i}px`),{}}}),Q_=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,o,a;const{placement:s,rects:l,middlewareData:u}=t,f=((r=u.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,h=f?0:e.arrowWidth,d=f?0:e.arrowHeight,[m,p]=Tv(s),g={start:"0%",center:"50%",end:"100%"}[p],v=((n=(i=u.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+h/2,w=((o=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&o!==void 0?o:0)+d/2;let y="",S="";return m==="bottom"?(y=f?g:`${v}px`,S=`${-d}px`):m==="top"?(y=f?g:`${v}px`,S=`${l.floating.height+d}px`):m==="right"?(y=`${-d}px`,S=f?g:`${w}px`):m==="left"&&(y=`${l.floating.width+d}px`,S=f?g:`${w}px`),{data:{x:y,y:S}}}});function Tv(e){const[t,r="center"]=e.split("-");return[t,r]}const Cv=H_,Av=W_,Rv=X_,od=x.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=e;return n?qm.createPortal(x.createElement(De.div,he({},i,{ref:t})),n):null});function oo({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=Z_({defaultProp:t,onChange:r}),o=e!==void 0,a=o?e:n,s=Nt(r),l=x.useCallback(u=>{if(o){const f=typeof u=="function"?u(e):u;f!==e&&s(f)}else i(u)},[o,e,i,s]);return[a,l]}function Z_({defaultProp:e,onChange:t}){const r=x.useState(e),[n]=r,i=x.useRef(n),o=Nt(t);return x.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}function Ov(e){const t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const ad=x.forwardRef((e,t)=>x.createElement(De.span,he({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})));var J_=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Si=new WeakMap,ws=new WeakMap,ys={},pc=0,Fv=function(e){return e&&(e.host||Fv(e.parentNode))},eT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Fv(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},tT=function(e,t,r,n){var i=eT(t,Array.isArray(e)?e:[e]);ys[r]||(ys[r]=new WeakMap);var o=ys[r],a=[],s=new Set,l=new Set(i),u=function(f){!f||s.has(f)||(s.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(h){if(s.has(h))c(h);else{var d=h.getAttribute(n),m=d!==null&&d!=="false",p=(Si.get(h)||0)+1,g=(o.get(h)||0)+1;Si.set(h,p),o.set(h,g),a.push(h),p===1&&m&&ws.set(h,!0),g===1&&h.setAttribute(r,"true"),m||h.setAttribute(n,"true")}})};return c(t),s.clear(),pc++,function(){a.forEach(function(f){var h=Si.get(f)-1,d=o.get(f)-1;Si.set(f,h),o.set(f,d),h||(ws.has(f)||f.removeAttribute(n),ws.delete(f)),d||f.removeAttribute(r)}),pc--,pc||(Si=new WeakMap,Si=new WeakMap,ws=new WeakMap,ys={})}},Pv=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||J_(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),tT(n,i,r,"aria-hidden")):function(){return null}},Ar=function(){return Ar=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ar.apply(this,arguments)};function Dv(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function rT(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Ys="right-scroll-bar-position",qs="width-before-scroll-bar",nT="with-scroll-bars-hidden",iT="--removed-body-scroll-bar-size";function oT(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function aT(e,t){var r=x.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}function sT(e,t){return aT(t||null,function(r){return e.forEach(function(n){return oT(n,r)})})}function lT(e){return e}function uT(e,t){t===void 0&&(t=lT);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(o){var a=t(o,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(n=!0;r.length;){var a=r;r=[],a.forEach(o)}r={push:function(s){return o(s)},filter:function(){return r}}},assignMedium:function(o){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(o),a=r}var l=function(){var c=a;a=[],c.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),r={push:function(c){a.push(c),u()},filter:function(c){return a=a.filter(c),r}}}};return i}function cT(e){e===void 0&&(e={});var t=uT(null);return t.options=Ar({async:!0,ssr:!1},e),t}var Iv=function(e){var t=e.sideCar,r=Dv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return x.createElement(n,Ar({},r))};Iv.isSideCarExport=!0;function fT(e,t){return e.useMedium(t),Iv}var kv=cT(),gc=function(){},uu=x.forwardRef(function(e,t){var r=x.useRef(null),n=x.useState({onScrollCapture:gc,onWheelCapture:gc,onTouchMoveCapture:gc}),i=n[0],o=n[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,h=e.sideCar,d=e.noIsolation,m=e.inert,p=e.allowPinchZoom,g=e.as,v=g===void 0?"div":g,w=Dv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=h,S=sT([r,t]),b=Ar(Ar({},w),i);return x.createElement(x.Fragment,null,c&&x.createElement(y,{sideCar:kv,removeScrollBar:u,shards:f,noIsolation:d,inert:m,setCallbacks:o,allowPinchZoom:!!p,lockRef:r}),a?x.cloneElement(x.Children.only(s),Ar(Ar({},b),{ref:S})):x.createElement(v,Ar({},b,{className:l,ref:S}),s))});uu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uu.classNames={fullWidth:qs,zeroRight:Ys};var $p,dT=function(){if($p)return $p;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=dT();return t&&e.setAttribute("nonce",t),e}function pT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var mT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=hT())&&(pT(t,r),gT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vT=function(){var e=mT();return function(t,r){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},bv=function(){var e=vT(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},xT={left:0,top:0,right:0,gap:0},mc=function(e){return parseInt(e||"",10)||0},wT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[mc(r),mc(n),mc(i)]},yT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xT;var t=wT(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},ET=bv(),ST=function(e,t,r,n){var i=e.left,o=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
   .`.concat(nT,` {
    overflow: hidden `).concat(n,`;
    padding-right: `).concat(s,"px ").concat(n,`;
@@ -134,7 +134,7 @@
 `)},_T=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,o=x.useMemo(function(){return yT(i)},[i]);return x.createElement(ET,{styles:ST(o,!t,i,r?"":"!important")})},bf=!1;if(typeof window<"u")try{var Es=Object.defineProperty({},"passive",{get:function(){return bf=!0,!0}});window.addEventListener("test",Es,Es),window.removeEventListener("test",Es,Es)}catch{bf=!1}var _i=bf?{passive:!1}:!1,TT=function(e){return e.tagName==="TEXTAREA"},Nv=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!TT(e)&&r[t]==="visible")},CT=function(e){return Nv(e,"overflowY")},AT=function(e){return Nv(e,"overflowX")},Mp=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=$v(e,r);if(n){var i=Mv(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},RT=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},OT=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},$v=function(e,t){return e==="v"?CT(t):AT(t)},Mv=function(e,t){return e==="v"?RT(t):OT(t)},FT=function(e,t){return e==="h"&&t==="rtl"?-1:1},PT=function(e,t,r,n,i){var o=FT(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,l=t.contains(s),u=!1,c=a>0,f=0,h=0;do{var d=Mv(e,s),m=d[0],p=d[1],g=d[2],v=p-g-o*m;(m||v)&&$v(e,s)&&(f+=v,h+=m),s=s.parentNode}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(c&&(i&&f===0||!i&&a>f)||!c&&(i&&h===0||!i&&-a>h))&&(u=!0),u},Ss=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lp=function(e){return[e.deltaX,e.deltaY]},Bp=function(e){return e&&"current"in e?e.current:e},DT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},IT=function(e){return`
   .block-interactivity-`.concat(e,` {pointer-events: none;}
   .allow-interactivity-`).concat(e,` {pointer-events: all;}
-`)},kT=0,Ti=[];function bT(e){var t=x.useRef([]),r=x.useRef([0,0]),n=x.useRef(),i=x.useState(kT++)[0],o=x.useState(function(){return bv()})[0],a=x.useRef(e);x.useEffect(function(){a.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=rT([e.lockRef.current],(e.shards||[]).map(Bp),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(p,g){if("touches"in p&&p.touches.length===2)return!a.current.allowPinchZoom;var v=Ss(p),w=r.current,y="deltaX"in p?p.deltaX:w[0]-v[0],S="deltaY"in p?p.deltaY:w[1]-v[1],N,M=p.target,_=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in p&&_==="h"&&M.type==="range")return!1;var C=Mp(_,M);if(!C)return!0;if(C?N=_:(N=_==="v"?"h":"v",C=Mp(_,M)),!C)return!1;if(!n.current&&"changedTouches"in p&&(y||S)&&(n.current=N),!N)return!0;var A=n.current||N;return PT(A,g,p,A==="h"?y:S,!0)},[]),l=x.useCallback(function(p){var g=p;if(!(!Ti.length||Ti[Ti.length-1]!==o)){var v="deltaY"in g?Lp(g):Ss(g),w=t.current.filter(function(N){return N.name===g.type&&N.target===g.target&&DT(N.delta,v)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}if(!w){var y=(a.current.shards||[]).map(Bp).filter(Boolean).filter(function(N){return N.contains(g.target)}),S=y.length>0?s(g,y[0]):!a.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),u=x.useCallback(function(p,g,v,w){var y={name:p,delta:g,target:v,should:w};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),c=x.useCallback(function(p){r.current=Ss(p),n.current=void 0},[]),f=x.useCallback(function(p){u(p.type,Lp(p),p.target,s(p,e.lockRef.current))},[]),h=x.useCallback(function(p){u(p.type,Ss(p),p.target,s(p,e.lockRef.current))},[]);x.useEffect(function(){return Ti.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,_i),document.addEventListener("touchmove",l,_i),document.addEventListener("touchstart",c,_i),function(){Ti=Ti.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,_i),document.removeEventListener("touchmove",l,_i),document.removeEventListener("touchstart",c,_i)}},[]);var d=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(o,{styles:IT(i)}):null,d?x.createElement(_T,{gapMode:"margin"}):null)}const NT=fT(kv,bT);var Lv=x.forwardRef(function(e,t){return x.createElement(uu,Ar({},e,{ref:t,sideCar:NT}))});Lv.classNames=uu.classNames;const Bv=Lv,$T=[" ","Enter","ArrowUp","ArrowDown"],MT=[" ","Enter"],cu="Select",[fu,du,LT]=iu(cu),[xo,gI]=rn(cu,[LT,lu]),sd=lu(),[BT,fi]=xo(cu),[UT,HT]=xo(cu),VT=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:o,value:a,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:f,disabled:h,required:d}=e,m=sd(t),[p,g]=x.useState(null),[v,w]=x.useState(null),[y,S]=x.useState(!1),N=ou(u),[M=!1,_]=oo({prop:n,defaultProp:i,onChange:o}),[C,A]=oo({prop:a,defaultProp:s,onChange:l}),L=x.useRef(null),U=p?!!p.closest("form"):!0,[B,V]=x.useState(new Set),q=Array.from(B).map(ne=>ne.props.value).join(";");return x.createElement(Cv,m,x.createElement(BT,{required:d,scope:t,trigger:p,onTriggerChange:g,valueNode:v,onValueNodeChange:w,valueNodeHasChildren:y,onValueNodeHasChildrenChange:S,contentId:io(),value:C,onValueChange:A,open:M,onOpenChange:_,dir:N,triggerPointerDownPosRef:L,disabled:h},x.createElement(fu.Provider,{scope:t},x.createElement(UT,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(ne=>{V(we=>new Set(we).add(ne))},[]),onNativeOptionRemove:x.useCallback(ne=>{V(we=>{const ve=new Set(we);return ve.delete(ne),ve})},[])},r)),U?x.createElement(Wv,{key:q,"aria-hidden":!0,required:d,tabIndex:-1,name:c,autoComplete:f,value:C,onChange:ne=>A(ne.target.value),disabled:h},C===void 0?x.createElement("option",{value:""}):null,Array.from(B)):null))},WT="SelectTrigger",zT=x.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,o=sd(r),a=fi(WT,r),s=a.disabled||n,l=He(t,a.onTriggerChange),u=du(r),[c,f,h]=zv(m=>{const p=u().filter(w=>!w.disabled),g=p.find(w=>w.value===a.value),v=Gv(p,m,g);v!==void 0&&a.onValueChange(v.value)}),d=()=>{s||(a.onOpenChange(!0),h())};return x.createElement(Av,he({asChild:!0},o),x.createElement(De.button,he({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":a.value===void 0?"":void 0},i,{ref:l,onClick:Se(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:Se(i.onPointerDown,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(d(),a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:Se(i.onKeyDown,m=>{const p=c.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(p&&m.key===" ")&&$T.includes(m.key)&&(d(),m.preventDefault())})})))}),GT="SelectValue",jT=x.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:o,placeholder:a,...s}=e,l=fi(GT,r),{onValueNodeHasChildrenChange:u}=l,c=o!==void 0,f=He(t,l.onValueNodeChange);return xt(()=>{u(c)},[u,c]),x.createElement(De.span,he({},s,{ref:f,style:{pointerEvents:"none"}}),l.value===void 0&&a!==void 0?a:o)}),XT=x.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return x.createElement(De.span,he({"aria-hidden":!0},i,{ref:t}),n||"▼")}),KT=e=>x.createElement(od,he({asChild:!0},e)),ao="SelectContent",YT=x.forwardRef((e,t)=>{const r=fi(ao,e.__scopeSelect),[n,i]=x.useState();if(xt(()=>{i(new DocumentFragment)},[]),!r.open){const o=n;return o?Qr.createPortal(x.createElement(Uv,{scope:e.__scopeSelect},x.createElement(fu.Slot,{scope:e.__scopeSelect},x.createElement("div",null,e.children))),o):null}return x.createElement(qT,he({},e,{ref:t}))}),Br=10,[Uv,di]=xo(ao),qT=x.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:h,collisionPadding:d,sticky:m,hideWhenDetached:p,avoidCollisions:g,...v}=e,w=fi(ao,r),[y,S]=x.useState(null),[N,M]=x.useState(null),_=He(t,G=>S(G)),[C,A]=x.useState(null),[L,U]=x.useState(null),B=du(r),[V,q]=x.useState(!1),ne=x.useRef(!1);x.useEffect(()=>{if(y)return Pv(y)},[y]),uv();const we=x.useCallback(G=>{const[Y,...te]=B().map(pe=>pe.ref.current),[re]=te.slice(-1),ye=document.activeElement;for(const pe of G)if(pe===ye||(pe==null||pe.scrollIntoView({block:"nearest"}),pe===Y&&N&&(N.scrollTop=0),pe===re&&N&&(N.scrollTop=N.scrollHeight),pe==null||pe.focus(),document.activeElement!==ye))return},[B,N]),ve=x.useCallback(()=>we([C,y]),[we,C,y]);x.useEffect(()=>{V&&ve()},[V,ve]);const{onOpenChange:_e,triggerPointerDownPosRef:J}=w;x.useEffect(()=>{if(y){let G={x:0,y:0};const Y=re=>{var ye,pe,Pe,Ee;G={x:Math.abs(Math.round(re.pageX)-((ye=(pe=J.current)===null||pe===void 0?void 0:pe.x)!==null&&ye!==void 0?ye:0)),y:Math.abs(Math.round(re.pageY)-((Pe=(Ee=J.current)===null||Ee===void 0?void 0:Ee.y)!==null&&Pe!==void 0?Pe:0))}},te=re=>{G.x<=10&&G.y<=10?re.preventDefault():y.contains(re.target)||_e(!1),document.removeEventListener("pointermove",Y),J.current=null};return J.current!==null&&(document.addEventListener("pointermove",Y),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Y),document.removeEventListener("pointerup",te,{capture:!0})}}},[y,_e,J]),x.useEffect(()=>{const G=()=>_e(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[_e]);const[ce,K]=zv(G=>{const Y=B().filter(ye=>!ye.disabled),te=Y.find(ye=>ye.ref.current===document.activeElement),re=Gv(Y,G,te);re&&setTimeout(()=>re.ref.current.focus())}),O=x.useCallback((G,Y,te)=>{const re=!ne.current&&!te;(w.value!==void 0&&w.value===Y||re)&&(A(G),re&&(ne.current=!0))},[w.value]),b=x.useCallback(()=>y==null?void 0:y.focus(),[y]),k=x.useCallback((G,Y,te)=>{const re=!ne.current&&!te;(w.value!==void 0&&w.value===Y||re)&&U(G)},[w.value]),F=n==="popper"?Up:QT,H=F===Up?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:h,collisionPadding:d,sticky:m,hideWhenDetached:p,avoidCollisions:g}:{};return x.createElement(Uv,{scope:r,content:y,viewport:N,onViewportChange:M,itemRefCallback:O,selectedItem:C,onItemLeave:b,itemTextRefCallback:k,focusSelectedItem:ve,selectedItemText:L,position:n,isPositioned:V,searchRef:ce},x.createElement(Bv,{as:no,allowPinchZoom:!0},x.createElement(cv,{asChild:!0,trapped:w.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:Se(i,G=>{var Y;(Y=w.trigger)===null||Y===void 0||Y.focus({preventScroll:!0}),G.preventDefault()})},x.createElement(td,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},x.createElement(F,he({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:G=>G.preventDefault()},v,H,{onPlaced:()=>q(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Se(v.onKeyDown,G=>{const Y=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!Y&&G.key.length===1&&K(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let re=B().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(G.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ye=G.target,pe=re.indexOf(ye);re=re.slice(pe+1)}setTimeout(()=>we(re)),G.preventDefault()}})}))))))}),QT=x.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,o=fi(ao,r),a=di(ao,r),[s,l]=x.useState(null),[u,c]=x.useState(null),f=He(t,_=>c(_)),h=du(r),d=x.useRef(!1),m=x.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:v,focusSelectedItem:w}=a,y=x.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&p&&g&&v){const _=o.trigger.getBoundingClientRect(),C=u.getBoundingClientRect(),A=o.valueNode.getBoundingClientRect(),L=v.getBoundingClientRect();if(o.dir!=="rtl"){const ye=L.left-C.left,pe=A.left-ye,Pe=_.left-pe,Ee=_.width+Pe,et=Math.max(Ee,C.width),Be=window.innerWidth-Br,ge=xp(pe,[Br,Be-et]);s.style.minWidth=Ee+"px",s.style.left=ge+"px"}else{const ye=C.right-L.right,pe=window.innerWidth-A.right-ye,Pe=window.innerWidth-_.right-pe,Ee=_.width+Pe,et=Math.max(Ee,C.width),Be=window.innerWidth-Br,ge=xp(pe,[Br,Be-et]);s.style.minWidth=Ee+"px",s.style.right=ge+"px"}const U=h(),B=window.innerHeight-Br*2,V=p.scrollHeight,q=window.getComputedStyle(u),ne=parseInt(q.borderTopWidth,10),we=parseInt(q.paddingTop,10),ve=parseInt(q.borderBottomWidth,10),_e=parseInt(q.paddingBottom,10),J=ne+we+V+_e+ve,ce=Math.min(g.offsetHeight*5,J),K=window.getComputedStyle(p),O=parseInt(K.paddingTop,10),b=parseInt(K.paddingBottom,10),k=_.top+_.height/2-Br,F=B-k,H=g.offsetHeight/2,G=g.offsetTop+H,Y=ne+we+G,te=J-Y;if(Y<=k){const ye=g===U[U.length-1].ref.current;s.style.bottom="0px";const pe=u.clientHeight-p.offsetTop-p.offsetHeight,Pe=Math.max(F,H+(ye?b:0)+pe+ve),Ee=Y+Pe;s.style.height=Ee+"px"}else{const ye=g===U[0].ref.current;s.style.top="0px";const Pe=Math.max(k,ne+p.offsetTop+(ye?O:0)+H)+te;s.style.height=Pe+"px",p.scrollTop=Y-k+p.offsetTop}s.style.margin=`${Br}px 0`,s.style.minHeight=ce+"px",s.style.maxHeight=B+"px",n==null||n(),requestAnimationFrame(()=>d.current=!0)}},[h,o.trigger,o.valueNode,s,u,p,g,v,o.dir,n]);xt(()=>y(),[y]);const[S,N]=x.useState();xt(()=>{u&&N(window.getComputedStyle(u).zIndex)},[u]);const M=x.useCallback(_=>{_&&m.current===!0&&(y(),w==null||w(),m.current=!1)},[y,w]);return x.createElement(ZT,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:d,onScrollButtonChange:M},x.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S}},x.createElement(De.div,he({},i,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),Up=x.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Br,...o}=e,a=sd(r);return x.createElement(Rv,he({},a,o,{ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[ZT,ld]=xo(ao,{}),Hp="SelectViewport",JT=x.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=di(Hp,r),o=ld(Hp,r),a=He(t,i.onViewportChange),s=x.useRef(0);return x.createElement(x.Fragment,null,x.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),x.createElement(fu.Slot,{scope:r},x.createElement(De.div,he({"data-radix-select-viewport":"",role:"presentation"},n,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Se(n.onScroll,l=>{const u=l.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&c){const h=Math.abs(s.current-u.scrollTop);if(h>0){const d=window.innerHeight-Br*2,m=parseFloat(c.style.minHeight),p=parseFloat(c.style.height),g=Math.max(m,p);if(g<d){const v=g+h,w=Math.min(d,v),y=v-w;c.style.height=w+"px",c.style.bottom==="0px"&&(u.scrollTop=y>0?y:0,c.style.justifyContent="flex-end")}}}s.current=u.scrollTop})}))))}),eC="SelectGroup",[tC,rC]=xo(eC),nC=x.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=io();return x.createElement(tC,{scope:r,id:i},x.createElement(De.div,he({role:"group","aria-labelledby":i},n,{ref:t})))}),iC="SelectLabel",oC=x.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=rC(iC,r);return x.createElement(De.div,he({id:i.id},n,{ref:t}))}),Nf="SelectItem",[aC,Hv]=xo(Nf),sC=x.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:o,...a}=e,s=fi(Nf,r),l=di(Nf,r),u=s.value===n,[c,f]=x.useState(o??""),[h,d]=x.useState(!1),m=He(t,v=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,v,n,i)}),p=io(),g=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};return x.createElement(aC,{scope:r,value:n,disabled:i,textId:p,isSelected:u,onItemTextChange:x.useCallback(v=>{f(w=>{var y;return w||((y=v==null?void 0:v.textContent)!==null&&y!==void 0?y:"").trim()})},[])},x.createElement(fu.ItemSlot,{scope:r,value:n,disabled:i,textValue:c},x.createElement(De.div,he({role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},a,{ref:m,onFocus:Se(a.onFocus,()=>d(!0)),onBlur:Se(a.onBlur,()=>d(!1)),onPointerUp:Se(a.onPointerUp,g),onPointerMove:Se(a.onPointerMove,v=>{if(i){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(a.onPointerLeave,v=>{if(v.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:Se(a.onKeyDown,v=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&v.key===" "||(MT.includes(v.key)&&g(),v.key===" "&&v.preventDefault())})}))))}),_s="SelectItemText",lC=x.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...o}=e,a=fi(_s,r),s=di(_s,r),l=Hv(_s,r),u=HT(_s,r),[c,f]=x.useState(null),h=He(t,v=>f(v),l.onItemTextChange,v=>{var w;return(w=s.itemTextRefCallback)===null||w===void 0?void 0:w.call(s,v,l.value,l.disabled)}),d=c==null?void 0:c.textContent,m=x.useMemo(()=>x.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},d),[l.disabled,l.value,d]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return xt(()=>(p(m),()=>g(m)),[p,g,m]),x.createElement(x.Fragment,null,x.createElement(De.span,he({id:l.textId},o,{ref:h})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Qr.createPortal(o.children,a.valueNode):null)}),uC="SelectItemIndicator",cC=x.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Hv(uC,r).isSelected?x.createElement(De.span,he({"aria-hidden":!0},n,{ref:t})):null}),Vp="SelectScrollUpButton",fC=x.forwardRef((e,t)=>{const r=di(Vp,e.__scopeSelect),n=ld(Vp,e.__scopeSelect),[i,o]=x.useState(!1),a=He(t,n.onScrollButtonChange);return xt(()=>{if(r.viewport&&r.isPositioned){let u=function(){const c=l.scrollTop>0;o(c)};var s=u;const l=r.viewport;return u(),l.addEventListener("scroll",u),()=>l.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),i?x.createElement(Vv,he({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}})):null}),Wp="SelectScrollDownButton",dC=x.forwardRef((e,t)=>{const r=di(Wp,e.__scopeSelect),n=ld(Wp,e.__scopeSelect),[i,o]=x.useState(!1),a=He(t,n.onScrollButtonChange);return xt(()=>{if(r.viewport&&r.isPositioned){let u=function(){const c=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<c;o(f)};var s=u;const l=r.viewport;return u(),l.addEventListener("scroll",u),()=>l.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),i?x.createElement(Vv,he({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),Vv=x.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,o=di("SelectScrollButton",r),a=x.useRef(null),s=du(r),l=x.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return x.useEffect(()=>()=>l(),[l]),xt(()=>{var u;const c=s().find(f=>f.ref.current===document.activeElement);c==null||(u=c.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[s]),x.createElement(De.div,he({"aria-hidden":!0},i,{ref:t,style:{flexShrink:0,...i.style},onPointerMove:Se(i.onPointerMove,()=>{var u;(u=o.onItemLeave)===null||u===void 0||u.call(o),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:Se(i.onPointerLeave,()=>{l()})}))}),Wv=x.forwardRef((e,t)=>{const{value:r,...n}=e,i=x.useRef(null),o=He(t,i),a=Ov(r);return x.useEffect(()=>{const s=i.current,l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==r&&c){const f=new Event("change",{bubbles:!0});c.call(s,r),s.dispatchEvent(f)}},[a,r]),x.createElement(ad,{asChild:!0},x.createElement("select",he({},n,{ref:o,defaultValue:r})))});Wv.displayName="BubbleSelect";function zv(e){const t=Nt(e),r=x.useRef(""),n=x.useRef(0),i=x.useCallback(a=>{const s=r.current+a;t(s),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),o=x.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,o]}function Gv(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=hC(e,Math.max(o,0));i.length===1&&(a=a.filter(u=>u!==r));const l=a.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function hC(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const pC=VT,gC=zT,mC=jT,vC=XT,xC=KT,wC=YT,yC=JT,vc=nC,zp=oC,EC=sC,SC=lC,_C=cC,TC=fC,CC=dC;function Xa(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var AC=["color"],RC=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,AC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),OC=["color"],$f=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,OC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),FC=["color"],PC=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,FC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),DC=["color"],IC=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,DC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),kC=["color"],bC=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,kC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const jv=({value:e,onChange:t,label:r="Select",placeholder:n="Select a fruit…",groups:i,labelType:o="col"})=>{const a=i.length===1;return Te(pC,{value:e,onValueChange:t,children:[Te(vc,{className:It("flex gap-1 text-sm",{"flex-row items-center gap-2":o==="row","flex-col":o==="col"}),children:[Z(zp,{className:"whitespace-nowrap",children:r}),Te(gC,{className:"justify-between bg-white dark:bg-grey-900 whitespace-nowrap h-[36px] border-[1.5px] border-grey-700 rounded p-3 inline-flex items-center leading-none gap-[5px] shadow-[0_2px_10px] shadow-black/10 focus:shadow-[0_0_0_2px] focus:shadow-black data-[placeholder]:text-white outline-none","aria-label":r,children:[Z(mC,{placeholder:n}),Z(vC,{children:Z($f,{})})]})]}),Z(xC,{children:Te(wC,{className:"z-50 bg-white/80 dark:bg-grey-900/80 backdrop-filter backdrop-blur overflow-hidden border-[1.5px] border-grey-700 rounded p-3 shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)]",children:[Z(TC,{className:"flex items-center justify-center h-[25px] cursor-default",children:Z(PC,{})}),Z(yC,{className:"p-[5px]",children:a?Z(vc,{children:i[0].items.map(s=>Z(Gp,{value:s.value,disabled:s.disabled,children:s.label}))}):i.map((s,l)=>Te(vc,{children:[Z(zp,{className:"text-xs leading-[25px]",children:s.label}),s.items.map(u=>Z(Gp,{value:u.value,disabled:u.disabled,children:u.label},u.value))]},s.label))}),Z(CC,{className:"flex items-center justify-center h-[25px] cursor-default",children:Z($f,{})})]})})]})},Gp=x.forwardRef(({children:e,className:t,...r},n)=>Te(EC,{className:It("text-[13px] leading-none rounded-[3px] flex items-center h-[25px] pr-[35px] pl-[25px] relative select-none data-[disabled]:text-grey-400 data-[disabled]:pointer-events-none data-[highlighted]:outline-none data-[highlighted]:bg-grey-600 data-[highlighted]:text-white  text-black dark:text-white",t),...r,ref:n,children:[Z(SC,{children:e}),Z(_C,{className:"absolute left-0 w-[25px] inline-flex items-center justify-center",children:Z(RC,{})})]}));/**
+`)},kT=0,Ti=[];function bT(e){var t=x.useRef([]),r=x.useRef([0,0]),n=x.useRef(),i=x.useState(kT++)[0],o=x.useState(function(){return bv()})[0],a=x.useRef(e);x.useEffect(function(){a.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=rT([e.lockRef.current],(e.shards||[]).map(Bp),!0).filter(Boolean);return p.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(p,g){if("touches"in p&&p.touches.length===2)return!a.current.allowPinchZoom;var v=Ss(p),w=r.current,y="deltaX"in p?p.deltaX:w[0]-v[0],S="deltaY"in p?p.deltaY:w[1]-v[1],b,M=p.target,_=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in p&&_==="h"&&M.type==="range")return!1;var A=Mp(_,M);if(!A)return!0;if(A?b=_:(b=_==="v"?"h":"v",A=Mp(_,M)),!A)return!1;if(!n.current&&"changedTouches"in p&&(y||S)&&(n.current=b),!b)return!0;var R=n.current||b;return PT(R,g,p,R==="h"?y:S,!0)},[]),l=x.useCallback(function(p){var g=p;if(!(!Ti.length||Ti[Ti.length-1]!==o)){var v="deltaY"in g?Lp(g):Ss(g),w=t.current.filter(function(b){return b.name===g.type&&b.target===g.target&&DT(b.delta,v)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}if(!w){var y=(a.current.shards||[]).map(Bp).filter(Boolean).filter(function(b){return b.contains(g.target)}),S=y.length>0?s(g,y[0]):!a.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),u=x.useCallback(function(p,g,v,w){var y={name:p,delta:g,target:v,should:w};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),c=x.useCallback(function(p){r.current=Ss(p),n.current=void 0},[]),f=x.useCallback(function(p){u(p.type,Lp(p),p.target,s(p,e.lockRef.current))},[]),h=x.useCallback(function(p){u(p.type,Ss(p),p.target,s(p,e.lockRef.current))},[]);x.useEffect(function(){return Ti.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,_i),document.addEventListener("touchmove",l,_i),document.addEventListener("touchstart",c,_i),function(){Ti=Ti.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,_i),document.removeEventListener("touchmove",l,_i),document.removeEventListener("touchstart",c,_i)}},[]);var d=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(o,{styles:IT(i)}):null,d?x.createElement(_T,{gapMode:"margin"}):null)}const NT=fT(kv,bT);var Lv=x.forwardRef(function(e,t){return x.createElement(uu,Ar({},e,{ref:t,sideCar:NT}))});Lv.classNames=uu.classNames;const Bv=Lv,$T=[" ","Enter","ArrowUp","ArrowDown"],MT=[" ","Enter"],cu="Select",[fu,du,LT]=iu(cu),[xo,gI]=rn(cu,[LT,lu]),sd=lu(),[BT,fi]=xo(cu),[UT,HT]=xo(cu),VT=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:o,value:a,defaultValue:s,onValueChange:l,dir:u,name:c,autoComplete:f,disabled:h,required:d}=e,m=sd(t),[p,g]=x.useState(null),[v,w]=x.useState(null),[y,S]=x.useState(!1),b=ou(u),[M=!1,_]=oo({prop:n,defaultProp:i,onChange:o}),[A,R]=oo({prop:a,defaultProp:s,onChange:l}),L=x.useRef(null),U=p?!!p.closest("form"):!0,[B,V]=x.useState(new Set),Y=Array.from(B).map(ne=>ne.props.value).join(";");return x.createElement(Cv,m,x.createElement(BT,{required:d,scope:t,trigger:p,onTriggerChange:g,valueNode:v,onValueNodeChange:w,valueNodeHasChildren:y,onValueNodeHasChildrenChange:S,contentId:io(),value:A,onValueChange:R,open:M,onOpenChange:_,dir:b,triggerPointerDownPosRef:L,disabled:h},x.createElement(fu.Provider,{scope:t},x.createElement(UT,{scope:e.__scopeSelect,onNativeOptionAdd:x.useCallback(ne=>{V(me=>new Set(me).add(ne))},[]),onNativeOptionRemove:x.useCallback(ne=>{V(me=>{const xe=new Set(me);return xe.delete(ne),xe})},[])},r)),U?x.createElement(Wv,{key:Y,"aria-hidden":!0,required:d,tabIndex:-1,name:c,autoComplete:f,value:A,onChange:ne=>R(ne.target.value),disabled:h},A===void 0?x.createElement("option",{value:""}):null,Array.from(B)):null))},WT="SelectTrigger",zT=x.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,o=sd(r),a=fi(WT,r),s=a.disabled||n,l=He(t,a.onTriggerChange),u=du(r),[c,f,h]=zv(m=>{const p=u().filter(w=>!w.disabled),g=p.find(w=>w.value===a.value),v=Gv(p,m,g);v!==void 0&&a.onValueChange(v.value)}),d=()=>{s||(a.onOpenChange(!0),h())};return x.createElement(Av,he({asChild:!0},o),x.createElement(De.button,he({type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":a.value===void 0?"":void 0},i,{ref:l,onClick:Se(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:Se(i.onPointerDown,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(d(),a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:Se(i.onKeyDown,m=>{const p=c.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(p&&m.key===" ")&&$T.includes(m.key)&&(d(),m.preventDefault())})})))}),GT="SelectValue",jT=x.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:o,placeholder:a,...s}=e,l=fi(GT,r),{onValueNodeHasChildrenChange:u}=l,c=o!==void 0,f=He(t,l.onValueNodeChange);return xt(()=>{u(c)},[u,c]),x.createElement(De.span,he({},s,{ref:f,style:{pointerEvents:"none"}}),l.value===void 0&&a!==void 0?a:o)}),XT=x.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return x.createElement(De.span,he({"aria-hidden":!0},i,{ref:t}),n||"▼")}),KT=e=>x.createElement(od,he({asChild:!0},e)),ao="SelectContent",YT=x.forwardRef((e,t)=>{const r=fi(ao,e.__scopeSelect),[n,i]=x.useState();if(xt(()=>{i(new DocumentFragment)},[]),!r.open){const o=n;return o?Qr.createPortal(x.createElement(Uv,{scope:e.__scopeSelect},x.createElement(fu.Slot,{scope:e.__scopeSelect},x.createElement("div",null,e.children))),o):null}return x.createElement(qT,he({},e,{ref:t}))}),Br=10,[Uv,di]=xo(ao),qT=x.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:o,onPointerDownOutside:a,side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:h,collisionPadding:d,sticky:m,hideWhenDetached:p,avoidCollisions:g,...v}=e,w=fi(ao,r),[y,S]=x.useState(null),[b,M]=x.useState(null),_=He(t,z=>S(z)),[A,R]=x.useState(null),[L,U]=x.useState(null),B=du(r),[V,Y]=x.useState(!1),ne=x.useRef(!1);x.useEffect(()=>{if(y)return Pv(y)},[y]),uv();const me=x.useCallback(z=>{const[J,...Z]=B().map(pe=>pe.ref.current),[te]=Z.slice(-1),ye=document.activeElement;for(const pe of z)if(pe===ye||(pe==null||pe.scrollIntoView({block:"nearest"}),pe===J&&b&&(b.scrollTop=0),pe===te&&b&&(b.scrollTop=b.scrollHeight),pe==null||pe.focus(),document.activeElement!==ye))return},[B,b]),xe=x.useCallback(()=>me([A,y]),[me,A,y]);x.useEffect(()=>{V&&xe()},[V,xe]);const{onOpenChange:_e,triggerPointerDownPosRef:ie}=w;x.useEffect(()=>{if(y){let z={x:0,y:0};const J=te=>{var ye,pe,Pe,Ee;z={x:Math.abs(Math.round(te.pageX)-((ye=(pe=ie.current)===null||pe===void 0?void 0:pe.x)!==null&&ye!==void 0?ye:0)),y:Math.abs(Math.round(te.pageY)-((Pe=(Ee=ie.current)===null||Ee===void 0?void 0:Ee.y)!==null&&Pe!==void 0?Pe:0))}},Z=te=>{z.x<=10&&z.y<=10?te.preventDefault():y.contains(te.target)||_e(!1),document.removeEventListener("pointermove",J),ie.current=null};return ie.current!==null&&(document.addEventListener("pointermove",J),document.addEventListener("pointerup",Z,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",J),document.removeEventListener("pointerup",Z,{capture:!0})}}},[y,_e,ie]),x.useEffect(()=>{const z=()=>_e(!1);return window.addEventListener("blur",z),window.addEventListener("resize",z),()=>{window.removeEventListener("blur",z),window.removeEventListener("resize",z)}},[_e]);const[ae,K]=zv(z=>{const J=B().filter(ye=>!ye.disabled),Z=J.find(ye=>ye.ref.current===document.activeElement),te=Gv(J,z,Z);te&&setTimeout(()=>te.ref.current.focus())}),C=x.useCallback((z,J,Z)=>{const te=!ne.current&&!Z;(w.value!==void 0&&w.value===J||te)&&(R(z),te&&(ne.current=!0))},[w.value]),N=x.useCallback(()=>y==null?void 0:y.focus(),[y]),k=x.useCallback((z,J,Z)=>{const te=!ne.current&&!Z;(w.value!==void 0&&w.value===J||te)&&U(z)},[w.value]),F=n==="popper"?Up:QT,H=F===Up?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:h,collisionPadding:d,sticky:m,hideWhenDetached:p,avoidCollisions:g}:{};return x.createElement(Uv,{scope:r,content:y,viewport:b,onViewportChange:M,itemRefCallback:C,selectedItem:A,onItemLeave:N,itemTextRefCallback:k,focusSelectedItem:xe,selectedItemText:L,position:n,isPositioned:V,searchRef:ae},x.createElement(Bv,{as:no,allowPinchZoom:!0},x.createElement(cv,{asChild:!0,trapped:w.open,onMountAutoFocus:z=>{z.preventDefault()},onUnmountAutoFocus:Se(i,z=>{var J;(J=w.trigger)===null||J===void 0||J.focus({preventScroll:!0}),z.preventDefault()})},x.createElement(td,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:z=>z.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},x.createElement(F,he({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:z=>z.preventDefault()},v,H,{onPlaced:()=>Y(!0),ref:_,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:Se(v.onKeyDown,z=>{const J=z.ctrlKey||z.altKey||z.metaKey;if(z.key==="Tab"&&z.preventDefault(),!J&&z.key.length===1&&K(z.key),["ArrowUp","ArrowDown","Home","End"].includes(z.key)){let te=B().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(z.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(z.key)){const ye=z.target,pe=te.indexOf(ye);te=te.slice(pe+1)}setTimeout(()=>me(te)),z.preventDefault()}})}))))))}),QT=x.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,o=fi(ao,r),a=di(ao,r),[s,l]=x.useState(null),[u,c]=x.useState(null),f=He(t,_=>c(_)),h=du(r),d=x.useRef(!1),m=x.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:v,focusSelectedItem:w}=a,y=x.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&p&&g&&v){const _=o.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),R=o.valueNode.getBoundingClientRect(),L=v.getBoundingClientRect();if(o.dir!=="rtl"){const ye=L.left-A.left,pe=R.left-ye,Pe=_.left-pe,Ee=_.width+Pe,et=Math.max(Ee,A.width),Be=window.innerWidth-Br,ge=xp(pe,[Br,Be-et]);s.style.minWidth=Ee+"px",s.style.left=ge+"px"}else{const ye=A.right-L.right,pe=window.innerWidth-R.right-ye,Pe=window.innerWidth-_.right-pe,Ee=_.width+Pe,et=Math.max(Ee,A.width),Be=window.innerWidth-Br,ge=xp(pe,[Br,Be-et]);s.style.minWidth=Ee+"px",s.style.right=ge+"px"}const U=h(),B=window.innerHeight-Br*2,V=p.scrollHeight,Y=window.getComputedStyle(u),ne=parseInt(Y.borderTopWidth,10),me=parseInt(Y.paddingTop,10),xe=parseInt(Y.borderBottomWidth,10),_e=parseInt(Y.paddingBottom,10),ie=ne+me+V+_e+xe,ae=Math.min(g.offsetHeight*5,ie),K=window.getComputedStyle(p),C=parseInt(K.paddingTop,10),N=parseInt(K.paddingBottom,10),k=_.top+_.height/2-Br,F=B-k,H=g.offsetHeight/2,z=g.offsetTop+H,J=ne+me+z,Z=ie-J;if(J<=k){const ye=g===U[U.length-1].ref.current;s.style.bottom="0px";const pe=u.clientHeight-p.offsetTop-p.offsetHeight,Pe=Math.max(F,H+(ye?N:0)+pe+xe),Ee=J+Pe;s.style.height=Ee+"px"}else{const ye=g===U[0].ref.current;s.style.top="0px";const Pe=Math.max(k,ne+p.offsetTop+(ye?C:0)+H)+Z;s.style.height=Pe+"px",p.scrollTop=J-k+p.offsetTop}s.style.margin=`${Br}px 0`,s.style.minHeight=ae+"px",s.style.maxHeight=B+"px",n==null||n(),requestAnimationFrame(()=>d.current=!0)}},[h,o.trigger,o.valueNode,s,u,p,g,v,o.dir,n]);xt(()=>y(),[y]);const[S,b]=x.useState();xt(()=>{u&&b(window.getComputedStyle(u).zIndex)},[u]);const M=x.useCallback(_=>{_&&m.current===!0&&(y(),w==null||w(),m.current=!1)},[y,w]);return x.createElement(ZT,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:d,onScrollButtonChange:M},x.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S}},x.createElement(De.div,he({},i,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),Up=x.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Br,...o}=e,a=sd(r);return x.createElement(Rv,he({},a,o,{ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[ZT,ld]=xo(ao,{}),Hp="SelectViewport",JT=x.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=di(Hp,r),o=ld(Hp,r),a=He(t,i.onViewportChange),s=x.useRef(0);return x.createElement(x.Fragment,null,x.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),x.createElement(fu.Slot,{scope:r},x.createElement(De.div,he({"data-radix-select-viewport":"",role:"presentation"},n,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Se(n.onScroll,l=>{const u=l.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&c){const h=Math.abs(s.current-u.scrollTop);if(h>0){const d=window.innerHeight-Br*2,m=parseFloat(c.style.minHeight),p=parseFloat(c.style.height),g=Math.max(m,p);if(g<d){const v=g+h,w=Math.min(d,v),y=v-w;c.style.height=w+"px",c.style.bottom==="0px"&&(u.scrollTop=y>0?y:0,c.style.justifyContent="flex-end")}}}s.current=u.scrollTop})}))))}),eC="SelectGroup",[tC,rC]=xo(eC),nC=x.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=io();return x.createElement(tC,{scope:r,id:i},x.createElement(De.div,he({role:"group","aria-labelledby":i},n,{ref:t})))}),iC="SelectLabel",oC=x.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=rC(iC,r);return x.createElement(De.div,he({id:i.id},n,{ref:t}))}),Nf="SelectItem",[aC,Hv]=xo(Nf),sC=x.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:o,...a}=e,s=fi(Nf,r),l=di(Nf,r),u=s.value===n,[c,f]=x.useState(o??""),[h,d]=x.useState(!1),m=He(t,v=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,v,n,i)}),p=io(),g=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};return x.createElement(aC,{scope:r,value:n,disabled:i,textId:p,isSelected:u,onItemTextChange:x.useCallback(v=>{f(w=>{var y;return w||((y=v==null?void 0:v.textContent)!==null&&y!==void 0?y:"").trim()})},[])},x.createElement(fu.ItemSlot,{scope:r,value:n,disabled:i,textValue:c},x.createElement(De.div,he({role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":u&&h,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},a,{ref:m,onFocus:Se(a.onFocus,()=>d(!0)),onBlur:Se(a.onBlur,()=>d(!1)),onPointerUp:Se(a.onPointerUp,g),onPointerMove:Se(a.onPointerMove,v=>{if(i){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Se(a.onPointerLeave,v=>{if(v.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:Se(a.onKeyDown,v=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&v.key===" "||(MT.includes(v.key)&&g(),v.key===" "&&v.preventDefault())})}))))}),_s="SelectItemText",lC=x.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...o}=e,a=fi(_s,r),s=di(_s,r),l=Hv(_s,r),u=HT(_s,r),[c,f]=x.useState(null),h=He(t,v=>f(v),l.onItemTextChange,v=>{var w;return(w=s.itemTextRefCallback)===null||w===void 0?void 0:w.call(s,v,l.value,l.disabled)}),d=c==null?void 0:c.textContent,m=x.useMemo(()=>x.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},d),[l.disabled,l.value,d]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return xt(()=>(p(m),()=>g(m)),[p,g,m]),x.createElement(x.Fragment,null,x.createElement(De.span,he({id:l.textId},o,{ref:h})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Qr.createPortal(o.children,a.valueNode):null)}),uC="SelectItemIndicator",cC=x.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return Hv(uC,r).isSelected?x.createElement(De.span,he({"aria-hidden":!0},n,{ref:t})):null}),Vp="SelectScrollUpButton",fC=x.forwardRef((e,t)=>{const r=di(Vp,e.__scopeSelect),n=ld(Vp,e.__scopeSelect),[i,o]=x.useState(!1),a=He(t,n.onScrollButtonChange);return xt(()=>{if(r.viewport&&r.isPositioned){let u=function(){const c=l.scrollTop>0;o(c)};var s=u;const l=r.viewport;return u(),l.addEventListener("scroll",u),()=>l.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),i?x.createElement(Vv,he({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}})):null}),Wp="SelectScrollDownButton",dC=x.forwardRef((e,t)=>{const r=di(Wp,e.__scopeSelect),n=ld(Wp,e.__scopeSelect),[i,o]=x.useState(!1),a=He(t,n.onScrollButtonChange);return xt(()=>{if(r.viewport&&r.isPositioned){let u=function(){const c=l.scrollHeight-l.clientHeight,f=Math.ceil(l.scrollTop)<c;o(f)};var s=u;const l=r.viewport;return u(),l.addEventListener("scroll",u),()=>l.removeEventListener("scroll",u)}},[r.viewport,r.isPositioned]),i?x.createElement(Vv,he({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),Vv=x.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,o=di("SelectScrollButton",r),a=x.useRef(null),s=du(r),l=x.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return x.useEffect(()=>()=>l(),[l]),xt(()=>{var u;const c=s().find(f=>f.ref.current===document.activeElement);c==null||(u=c.ref.current)===null||u===void 0||u.scrollIntoView({block:"nearest"})},[s]),x.createElement(De.div,he({"aria-hidden":!0},i,{ref:t,style:{flexShrink:0,...i.style},onPointerMove:Se(i.onPointerMove,()=>{var u;(u=o.onItemLeave)===null||u===void 0||u.call(o),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:Se(i.onPointerLeave,()=>{l()})}))}),Wv=x.forwardRef((e,t)=>{const{value:r,...n}=e,i=x.useRef(null),o=He(t,i),a=Ov(r);return x.useEffect(()=>{const s=i.current,l=window.HTMLSelectElement.prototype,c=Object.getOwnPropertyDescriptor(l,"value").set;if(a!==r&&c){const f=new Event("change",{bubbles:!0});c.call(s,r),s.dispatchEvent(f)}},[a,r]),x.createElement(ad,{asChild:!0},x.createElement("select",he({},n,{ref:o,defaultValue:r})))});Wv.displayName="BubbleSelect";function zv(e){const t=Nt(e),r=x.useRef(""),n=x.useRef(0),i=x.useCallback(a=>{const s=r.current+a;t(s),function l(u){r.current=u,window.clearTimeout(n.current),u!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),o=x.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return x.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,o]}function Gv(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=hC(e,Math.max(o,0));i.length===1&&(a=a.filter(u=>u!==r));const l=a.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function hC(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const pC=VT,gC=zT,mC=jT,vC=XT,xC=KT,wC=YT,yC=JT,vc=nC,zp=oC,EC=sC,SC=lC,_C=cC,TC=fC,CC=dC;function Xa(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}var AC=["color"],RC=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,AC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),OC=["color"],$f=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,OC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),FC=["color"],PC=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,FC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),DC=["color"],IC=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,DC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M2.89998 0.499976C2.89998 0.279062 2.72089 0.0999756 2.49998 0.0999756C2.27906 0.0999756 2.09998 0.279062 2.09998 0.499976V1.09998H1.49998C1.27906 1.09998 1.09998 1.27906 1.09998 1.49998C1.09998 1.72089 1.27906 1.89998 1.49998 1.89998H2.09998V2.49998C2.09998 2.72089 2.27906 2.89998 2.49998 2.89998C2.72089 2.89998 2.89998 2.72089 2.89998 2.49998V1.89998H3.49998C3.72089 1.89998 3.89998 1.72089 3.89998 1.49998C3.89998 1.27906 3.72089 1.09998 3.49998 1.09998H2.89998V0.499976ZM5.89998 3.49998C5.89998 3.27906 5.72089 3.09998 5.49998 3.09998C5.27906 3.09998 5.09998 3.27906 5.09998 3.49998V4.09998H4.49998C4.27906 4.09998 4.09998 4.27906 4.09998 4.49998C4.09998 4.72089 4.27906 4.89998 4.49998 4.89998H5.09998V5.49998C5.09998 5.72089 5.27906 5.89998 5.49998 5.89998C5.72089 5.89998 5.89998 5.72089 5.89998 5.49998V4.89998H6.49998C6.72089 4.89998 6.89998 4.72089 6.89998 4.49998C6.89998 4.27906 6.72089 4.09998 6.49998 4.09998H5.89998V3.49998ZM1.89998 6.49998C1.89998 6.27906 1.72089 6.09998 1.49998 6.09998C1.27906 6.09998 1.09998 6.27906 1.09998 6.49998V7.09998H0.499976C0.279062 7.09998 0.0999756 7.27906 0.0999756 7.49998C0.0999756 7.72089 0.279062 7.89998 0.499976 7.89998H1.09998V8.49998C1.09998 8.72089 1.27906 8.89997 1.49998 8.89997C1.72089 8.89997 1.89998 8.72089 1.89998 8.49998V7.89998H2.49998C2.72089 7.89998 2.89998 7.72089 2.89998 7.49998C2.89998 7.27906 2.72089 7.09998 2.49998 7.09998H1.89998V6.49998ZM8.54406 0.98184L8.24618 0.941586C8.03275 0.917676 7.90692 1.1655 8.02936 1.34194C8.17013 1.54479 8.29981 1.75592 8.41754 1.97445C8.91878 2.90485 9.20322 3.96932 9.20322 5.10022C9.20322 8.37201 6.82247 11.0878 3.69887 11.6097C3.45736 11.65 3.20988 11.6772 2.96008 11.6906C2.74563 11.702 2.62729 11.9535 2.77721 12.1072C2.84551 12.1773 2.91535 12.2458 2.98667 12.3128L3.05883 12.3795L3.31883 12.6045L3.50684 12.7532L3.62796 12.8433L3.81491 12.9742L3.99079 13.089C4.11175 13.1651 4.23536 13.2375 4.36157 13.3059L4.62496 13.4412L4.88553 13.5607L5.18837 13.6828L5.43169 13.7686C5.56564 13.8128 5.70149 13.8529 5.83857 13.8885C5.94262 13.9155 6.04767 13.9401 6.15405 13.9622C6.27993 13.9883 6.40713 14.0109 6.53544 14.0298L6.85241 14.0685L7.11934 14.0892C7.24637 14.0965 7.37436 14.1002 7.50322 14.1002C11.1483 14.1002 14.1032 11.1453 14.1032 7.50023C14.1032 7.25044 14.0893 7.00389 14.0623 6.76131L14.0255 6.48407C13.991 6.26083 13.9453 6.04129 13.8891 5.82642C13.8213 5.56709 13.7382 5.31398 13.6409 5.06881L13.5279 4.80132L13.4507 4.63542L13.3766 4.48666C13.2178 4.17773 13.0353 3.88295 12.8312 3.60423L12.6782 3.40352L12.4793 3.16432L12.3157 2.98361L12.1961 2.85951L12.0355 2.70246L11.8134 2.50184L11.4925 2.24191L11.2483 2.06498L10.9562 1.87446L10.6346 1.68894L10.3073 1.52378L10.1938 1.47176L9.95488 1.3706L9.67791 1.2669L9.42566 1.1846L9.10075 1.09489L8.83599 1.03486L8.54406 0.98184ZM10.4032 5.30023C10.4032 4.27588 10.2002 3.29829 9.83244 2.40604C11.7623 3.28995 13.1032 5.23862 13.1032 7.50023C13.1032 10.593 10.596 13.1002 7.50322 13.1002C6.63646 13.1002 5.81597 12.9036 5.08355 12.5522C6.5419 12.0941 7.81081 11.2082 8.74322 10.0416C8.87963 10.2284 9.10028 10.3497 9.34928 10.3497C9.76349 10.3497 10.0993 10.0139 10.0993 9.59971C10.0993 9.24256 9.84965 8.94373 9.51535 8.86816C9.57741 8.75165 9.63653 8.63334 9.6926 8.51332C9.88358 8.63163 10.1088 8.69993 10.35 8.69993C11.0403 8.69993 11.6 8.14028 11.6 7.44993C11.6 6.75976 11.0406 6.20024 10.3505 6.19993C10.3853 5.90487 10.4032 5.60464 10.4032 5.30023Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))}),kC=["color"],bC=x.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=Xa(e,kC);return x.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i,{ref:t}),x.createElement("path",{d:"M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"}))});const jv=({value:e,onChange:t,label:r="Select",placeholder:n="Select a fruit…",groups:i,labelType:o="col"})=>{const a=i.length===1;return Te(pC,{value:e,onValueChange:t,children:[Te(vc,{className:It("flex gap-1 text-sm",{"flex-row items-center gap-2":o==="row","flex-col":o==="col"}),children:[Q(zp,{className:"whitespace-nowrap",children:r}),Te(gC,{className:"justify-between bg-white dark:bg-grey-900 whitespace-nowrap h-[36px] border-[1.5px] border-grey-700 rounded p-3 inline-flex items-center leading-none gap-[5px] shadow-[0_2px_10px] shadow-black/10 focus:shadow-[0_0_0_2px] focus:shadow-black data-[placeholder]:text-white outline-none","aria-label":r,children:[Q(mC,{placeholder:n}),Q(vC,{children:Q($f,{})})]})]}),Q(xC,{children:Te(wC,{className:"z-50 bg-white/80 dark:bg-grey-900/80 backdrop-filter backdrop-blur overflow-hidden border-[1.5px] border-grey-700 rounded p-3 shadow-[0px_10px_38px_-10px_rgba(22,_23,_24,_0.35),0px_10px_20px_-15px_rgba(22,_23,_24,_0.2)]",children:[Q(TC,{className:"flex items-center justify-center h-[25px] cursor-default",children:Q(PC,{})}),Q(yC,{className:"p-[5px]",children:a?Q(vc,{children:i[0].items.map(s=>Q(Gp,{value:s.value,disabled:s.disabled,children:s.label}))}):i.map((s,l)=>Te(vc,{children:[Q(zp,{className:"text-xs leading-[25px]",children:s.label}),s.items.map(u=>Q(Gp,{value:u.value,disabled:u.disabled,children:u.label},u.value))]},s.label))}),Q(CC,{className:"flex items-center justify-center h-[25px] cursor-default",children:Q($f,{})})]})})]})},Gp=x.forwardRef(({children:e,className:t,...r},n)=>Te(EC,{className:It("text-[13px] leading-none rounded-[3px] flex items-center h-[25px] pr-[35px] pl-[25px] relative select-none data-[disabled]:text-grey-400 data-[disabled]:pointer-events-none data-[highlighted]:outline-none data-[highlighted]:bg-grey-600 data-[highlighted]:text-white  text-black dark:text-white",t),...r,ref:n,children:[Q(SC,{children:e}),Q(_C,{className:"absolute left-0 w-[25px] inline-flex items-center justify-center",children:Q(RC,{})})]}));/**
  * match-sorter-utils
  *
  * Copyright (c) TanStack
@@ -148,20 +148,20 @@
  * @license MIT license.
  * @copyright (c) 2099 Kent C. Dodds
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
- */const Ut={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function LC(e,t,r){var n;if(r=r||{},r.threshold=(n=r.threshold)!=null?n:Ut.MATCHES,!r.accessors){const a=jp(e,t,r);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:r.threshold,passed:a>=r.threshold}}const i=VC(e,r.accessors),o={rankedValue:e,rank:Ut.NO_MATCH,accessorIndex:-1,accessorThreshold:r.threshold,passed:!1};for(let a=0;a<i.length;a++){const s=i[a];let l=jp(s.itemValue,t,r);const{minRanking:u,maxRanking:c,threshold:f=r.threshold}=s.attributes;l<u&&l>=Ut.MATCHES?l=u:l>c&&(l=c),l=Math.min(l,c),l>=f&&l>o.rank&&(o.rank=l,o.passed=!0,o.accessorIndex=a,o.accessorThreshold=f,o.rankedValue=s.itemValue)}return o}function jp(e,t,r){return e=Xp(e,r),t=Xp(t,r),t.length>e.length?Ut.NO_MATCH:e===t?Ut.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Ut.EQUAL:e.startsWith(t)?Ut.STARTS_WITH:e.includes(` ${t}`)?Ut.WORD_STARTS_WITH:e.includes(t)?Ut.CONTAINS:t.length===1?Ut.NO_MATCH:BC(e).includes(t)?Ut.ACRONYM:UC(e,t))}function BC(e){let t="";return e.split(" ").forEach(n=>{n.split("-").forEach(o=>{t+=o.substr(0,1)})}),t}function UC(e,t){let r=0,n=0;function i(l,u,c){for(let f=c,h=u.length;f<h;f++)if(u[f]===l)return r+=1,f+1;return-1}function o(l){const u=1/l,c=r/t.length;return Ut.MATCHES+c*u}const a=i(t[0],e,0);if(a<0)return Ut.NO_MATCH;n=a;for(let l=1,u=t.length;l<u;l++){const c=t[l];if(n=i(c,e,n),!(n>-1))return Ut.NO_MATCH}const s=n-a;return o(s)}function Xp(e,t){let{keepDiacritics:r}=t;return e=`${e}`,r||(e=MC(e)),e}function HC(e,t){let r=t;typeof t=="object"&&(r=t.accessor);const n=r(e);return n==null?[]:Array.isArray(n)?n:[String(n)]}function VC(e,t){const r=[];for(let n=0,i=t.length;n<i;n++){const o=t[n],a=WC(o),s=HC(e,o);for(let l=0,u=s.length;l<u;l++)r.push({itemValue:s[l],attributes:a})}return r}const Kp={maxRanking:1/0,minRanking:-1/0};function WC(e){return typeof e=="function"?Kp:{...Kp,...e}}var Mf={},zC={get exports(){return Mf},set exports(e){Mf=e}};(function(e){(function(t){var r=y(),n=S(),i=N(),o=M(),a={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:l,toPng:c,toJpeg:f,toBlob:h,toPixelData:u,impl:{fontFaces:i,images:o,util:r,inliner:n,options:{}}};e.exports=s;function l(_,C){return C=C||{},d(C),Promise.resolve(_).then(function(L){return p(L,C.filter,!0)}).then(g).then(v).then(A).then(function(L){return w(L,C.width||r.width(_),C.height||r.height(_))});function A(L){return C.bgcolor&&(L.style.backgroundColor=C.bgcolor),C.width&&(L.style.width=C.width+"px"),C.height&&(L.style.height=C.height+"px"),C.style&&Object.keys(C.style).forEach(function(U){L.style[U]=C.style[U]}),L}}function u(_,C){return m(_,C||{}).then(function(A){return A.getContext("2d").getImageData(0,0,r.width(_),r.height(_)).data})}function c(_,C){return m(_,C||{}).then(function(A){return A.toDataURL()})}function f(_,C){return C=C||{},m(_,C).then(function(A){return A.toDataURL("image/jpeg",C.quality||1)})}function h(_,C){return m(_,C||{}).then(r.canvasToBlob)}function d(_){typeof _.imagePlaceholder>"u"?s.impl.options.imagePlaceholder=a.imagePlaceholder:s.impl.options.imagePlaceholder=_.imagePlaceholder,typeof _.cacheBust>"u"?s.impl.options.cacheBust=a.cacheBust:s.impl.options.cacheBust=_.cacheBust}function m(_,C){return l(_,C).then(r.makeImage).then(r.delay(100)).then(function(L){var U=A(_);return U.getContext("2d").drawImage(L,0,0),U});function A(L){var U=document.createElement("canvas");if(U.width=C.width||r.width(L),U.height=C.height||r.height(L),C.bgcolor){var B=U.getContext("2d");B.fillStyle=C.bgcolor,B.fillRect(0,0,U.width,U.height)}return U}}function p(_,C,A){if(!A&&C&&!C(_))return Promise.resolve();return Promise.resolve(_).then(L).then(function(V){return U(_,V,C)}).then(function(V){return B(_,V)});function L(V){return V instanceof HTMLCanvasElement?r.makeImage(V.toDataURL()):V.cloneNode(!1)}function U(V,q,ne){var we=V.childNodes;if(we.length===0)return Promise.resolve(q);return ve(q,r.asArray(we),ne).then(function(){return q});function ve(_e,J,ce){var K=Promise.resolve();return J.forEach(function(O){K=K.then(function(){return p(O,ce)}).then(function(b){b&&_e.appendChild(b)})}),K}}function B(V,q){if(!(q instanceof Element))return q;return Promise.resolve().then(ne).then(we).then(ve).then(_e).then(function(){return q});function ne(){J(window.getComputedStyle(V),q.style);function J(ce,K){ce.cssText?K.cssText=ce.cssText:O(ce,K);function O(b,k){r.asArray(b).forEach(function(F){k.setProperty(F,b.getPropertyValue(F),b.getPropertyPriority(F))})}}}function we(){[":before",":after"].forEach(function(ce){J(ce)});function J(ce){var K=window.getComputedStyle(V,ce),O=K.getPropertyValue("content");if(O===""||O==="none")return;var b=r.uid();q.className=q.className+" "+b;var k=document.createElement("style");k.appendChild(F(b,ce,K)),q.appendChild(k);function F(H,G,Y){var te="."+H+":"+G,re=Y.cssText?ye(Y):pe(Y);return document.createTextNode(te+"{"+re+"}");function ye(Pe){var Ee=Pe.getPropertyValue("content");return Pe.cssText+" content: "+Ee+";"}function pe(Pe){return r.asArray(Pe).map(Ee).join("; ")+";";function Ee(et){return et+": "+Pe.getPropertyValue(et)+(Pe.getPropertyPriority(et)?" !important":"")}}}}}function ve(){V instanceof HTMLTextAreaElement&&(q.innerHTML=V.value),V instanceof HTMLInputElement&&q.setAttribute("value",V.value)}function _e(){q instanceof SVGElement&&(q.setAttribute("xmlns","http://www.w3.org/2000/svg"),q instanceof SVGRectElement&&["width","height"].forEach(function(J){var ce=q.getAttribute(J);ce&&q.style.setProperty(J,ce)}))}}}function g(_){return i.resolveAll().then(function(C){var A=document.createElement("style");return _.appendChild(A),A.appendChild(document.createTextNode(C)),_})}function v(_){return o.inlineAll(_).then(function(){return _})}function w(_,C,A){return Promise.resolve(_).then(function(L){return L.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(L)}).then(r.escapeXhtml).then(function(L){return'<foreignObject x="0" y="0" width="100%" height="100%">'+L+"</foreignObject>"}).then(function(L){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+C+'" height="'+A+'">'+L+"</svg>"}).then(function(L){return"data:image/svg+xml;charset=utf-8,"+L})}function y(){return{escape:_e,parseExtension:C,mimeType:A,dataAsUrl:ve,isDataUrl:L,canvasToBlob:B,resolveUrl:V,getAndEncode:we,uid:q(),delay:J,asArray:ce,escapeXhtml:K,makeImage:ne,width:O,height:b};function _(){var F="application/font-woff",H="image/jpeg";return{woff:F,woff2:F,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:H,jpeg:H,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function C(F){var H=/\.([^\.\/]*?)$/g.exec(F);return H?H[1]:""}function A(F){var H=C(F).toLowerCase();return _()[H]||""}function L(F){return F.search(/^(data:)/)!==-1}function U(F){return new Promise(function(H){for(var G=window.atob(F.toDataURL().split(",")[1]),Y=G.length,te=new Uint8Array(Y),re=0;re<Y;re++)te[re]=G.charCodeAt(re);H(new Blob([te],{type:"image/png"}))})}function B(F){return F.toBlob?new Promise(function(H){F.toBlob(H)}):U(F)}function V(F,H){var G=document.implementation.createHTMLDocument(),Y=G.createElement("base");G.head.appendChild(Y);var te=G.createElement("a");return G.body.appendChild(te),Y.href=H,te.href=F,te.href}function q(){var F=0;return function(){return"u"+H()+F++;function H(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function ne(F){return new Promise(function(H,G){var Y=new Image;Y.onload=function(){H(Y)},Y.onerror=G,Y.src=F})}function we(F){var H=3e4;return s.impl.options.cacheBust&&(F+=(/\?/.test(F)?"&":"?")+new Date().getTime()),new Promise(function(G){var Y=new XMLHttpRequest;Y.onreadystatechange=ye,Y.ontimeout=pe,Y.responseType="blob",Y.timeout=H,Y.open("GET",F,!0),Y.send();var te;if(s.impl.options.imagePlaceholder){var re=s.impl.options.imagePlaceholder.split(/,/);re&&re[1]&&(te=re[1])}function ye(){if(Y.readyState===4){if(Y.status!==200){te?G(te):Pe("cannot fetch resource: "+F+", status: "+Y.status);return}var Ee=new FileReader;Ee.onloadend=function(){var et=Ee.result.split(/,/)[1];G(et)},Ee.readAsDataURL(Y.response)}}function pe(){te?G(te):Pe("timeout of "+H+"ms occured while fetching resource: "+F)}function Pe(Ee){console.error(Ee),G("")}})}function ve(F,H){return"data:"+H+";base64,"+F}function _e(F){return F.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function J(F){return function(H){return new Promise(function(G){setTimeout(function(){G(H)},F)})}}function ce(F){for(var H=[],G=F.length,Y=0;Y<G;Y++)H.push(F[Y]);return H}function K(F){return F.replace(/#/g,"%23").replace(/\n/g,"%0A")}function O(F){var H=k(F,"border-left-width"),G=k(F,"border-right-width");return F.scrollWidth+H+G}function b(F){var H=k(F,"border-top-width"),G=k(F,"border-bottom-width");return F.scrollHeight+H+G}function k(F,H){var G=window.getComputedStyle(F).getPropertyValue(H);return parseFloat(G.replace("px",""))}}function S(){var _=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:U,shouldProcess:C,impl:{readUrls:A,inline:L}};function C(B){return B.search(_)!==-1}function A(B){for(var V=[],q;(q=_.exec(B))!==null;)V.push(q[1]);return V.filter(function(ne){return!r.isDataUrl(ne)})}function L(B,V,q,ne){return Promise.resolve(V).then(function(ve){return q?r.resolveUrl(ve,q):ve}).then(ne||r.getAndEncode).then(function(ve){return r.dataAsUrl(ve,r.mimeType(V))}).then(function(ve){return B.replace(we(V),"$1"+ve+"$3")});function we(ve){return new RegExp(`(url\\(['"]?)(`+r.escape(ve)+`)(['"]?\\))`,"g")}}function U(B,V,q){if(ne())return Promise.resolve(B);return Promise.resolve(B).then(A).then(function(we){var ve=Promise.resolve(B);return we.forEach(function(_e){ve=ve.then(function(J){return L(J,_e,V,q)})}),ve});function ne(){return!C(B)}}}function N(){return{resolveAll:_,impl:{readAll:C}};function _(){return C().then(function(A){return Promise.all(A.map(function(L){return L.resolve()}))}).then(function(A){return A.join(`
-`)})}function C(){return Promise.resolve(r.asArray(document.styleSheets)).then(L).then(A).then(function(B){return B.map(U)});function A(B){return B.filter(function(V){return V.type===CSSRule.FONT_FACE_RULE}).filter(function(V){return n.shouldProcess(V.style.getPropertyValue("src"))})}function L(B){var V=[];return B.forEach(function(q){try{r.asArray(q.cssRules||[]).forEach(V.push.bind(V))}catch(ne){console.log("Error while reading CSS rules from "+q.href,ne.toString())}}),V}function U(B){return{resolve:function(){var q=(B.parentStyleSheet||{}).href;return n.inlineAll(B.cssText,q)},src:function(){return B.style.getPropertyValue("src")}}}}}function M(){return{inlineAll:C,impl:{newImage:_}};function _(A){return{inline:L};function L(U){return r.isDataUrl(A.src)?Promise.resolve():Promise.resolve(A.src).then(U||r.getAndEncode).then(function(B){return r.dataAsUrl(B,r.mimeType(A.src))}).then(function(B){return new Promise(function(V,q){A.onload=V,A.onerror=q,A.src=B})})}}function C(A){if(!(A instanceof Element))return Promise.resolve(A);return L(A).then(function(){return A instanceof HTMLImageElement?_(A).inline():Promise.all(r.asArray(A.childNodes).map(function(U){return C(U)}))});function L(U){var B=U.style.getPropertyValue("background");return B?n.inlineAll(B).then(function(V){U.style.setProperty("background",V,U.style.getPropertyPriority("background"))}).then(function(){return U}):Promise.resolve(U)}}}})()})(zC);const GC=Mf;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Ol={};Ol.version="0.18.5";var Kv=1252,jC=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Yv=function(e){jC.indexOf(e)!=-1&&(Kv=e)};function XC(){Yv(1252)}var Ia=function(e){Yv(e)};function KC(){Ia(1200),XC()}function YC(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var Ts=function(t){return String.fromCharCode(t)},Yp=function(t){return String.fromCharCode(t)},zn,pn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ka(e){for(var t="",r=0,n=0,i=0,o=0,a=0,s=0,l=0,u=0;u<e.length;)r=e.charCodeAt(u++),o=r>>2,n=e.charCodeAt(u++),a=(r&3)<<4|n>>4,i=e.charCodeAt(u++),s=(n&15)<<2|i>>6,l=i&63,isNaN(n)?s=l=64:isNaN(i)&&(l=64),t+=pn.charAt(o)+pn.charAt(a)+pn.charAt(s)+pn.charAt(l);return t}function Jr(e){var t="",r=0,n=0,i=0,o=0,a=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<e.length;)o=pn.indexOf(e.charAt(u++)),a=pn.indexOf(e.charAt(u++)),r=o<<2|a>>4,t+=String.fromCharCode(r),s=pn.indexOf(e.charAt(u++)),n=(a&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=pn.indexOf(e.charAt(u++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var be=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),on=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function ri(e){return be?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function qp(e){return be?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var wr=function(t){return be?on(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function hu(e){if(typeof ArrayBuffer>"u")return wr(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Ka(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function qC(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var mt=be?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:on(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),i=0;for(t=0,r=0;t<e.length;r+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(o){return Array.isArray(o)?o:[].slice.call(o)}))};function QC(e){for(var t=[],r=0,n=e.length+250,i=ri(e.length+255),o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a<128)i[r++]=a;else if(a<2048)i[r++]=192|a>>6&31,i[r++]=128|a&63;else if(a>=55296&&a<57344){a=(a&1023)+64;var s=e.charCodeAt(++o)&1023;i[r++]=240|a>>8&7,i[r++]=128|a>>2&63,i[r++]=128|s>>6&15|(a&3)<<4,i[r++]=128|s&63}else i[r++]=224|a>>12&15,i[r++]=128|a>>6&63,i[r++]=128|a&63;r>n&&(t.push(i.slice(0,r)),r=0,i=ri(65535),n=65530)}return t.push(i.slice(0,r)),mt(t)}var ua=/\u0000/g,Cs=/[\u0001-\u0006]/g;function Yi(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Er(e,t){var r=""+e;return r.length>=t?r:qe("0",t-r.length)+r}function ud(e,t){var r=""+e;return r.length>=t?r:qe(" ",t-r.length)+r}function Fl(e,t){var r=""+e;return r.length>=t?r:r+qe(" ",t-r.length)}function ZC(e,t){var r=""+Math.round(e);return r.length>=t?r:qe("0",t-r.length)+r}function JC(e,t){var r=""+e;return r.length>=t?r:qe("0",t-r.length)+r}var Qp=Math.pow(2,32);function Ci(e,t){if(e>Qp||e<-Qp)return ZC(e,t);var r=Math.round(e);return JC(r,t)}function Pl(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var Zp=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],xc=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function e4(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Je={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Jp={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},t4={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Dl(e,t,r){for(var n=e<0?-1:1,i=e*n,o=0,a=1,s=0,l=1,u=0,c=0,f=Math.floor(i);u<t&&(f=Math.floor(i),s=f*a+o,c=f*u+l,!(i-f<5e-8));)i=1/(i-f),o=a,a=s,l=u,u=c;if(c>t&&(u>t?(c=l,s=o):(c=u,s=a)),!r)return[0,n*s,c];var h=Math.floor(n*s/c);return[h,n*s-h*c,c]}function As(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),o=0,a=[],s={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++i==86400&&(s.T=i=0,++n,++s.D)),n===60)a=r?[1317,10,29]:[1900,2,29],o=3;else if(n===0)a=r?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),n<60&&(o=(o+6)%7),r&&(o=l4(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}var qv=new Date(1899,11,31,0,0,0),r4=qv.getTime(),n4=new Date(1900,2,1,0,0,0);function Qv(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=n4&&(r+=24*60*60*1e3),(r-(r4+(e.getTimezoneOffset()-qv.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function cd(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function i4(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function o4(e){var t=e<0?12:11,r=cd(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function a4(e){var t=cd(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function s4(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=o4(e):t===10?r=e.toFixed(10).substr(0,12):r=a4(e),cd(i4(r.toUpperCase()))}function Lf(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):s4(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return kn(14,Qv(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function l4(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function u4(e,t,r,n){var i="",o=0,a=0,s=r.y,l,u=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,u=2;break;default:l=s%1e4,u=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,u=t.length;break;case 3:return xc[r.m-1][1];case 5:return xc[r.m-1][0];default:return xc[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,u=t.length;break;case 3:return Zp[r.q][0];default:return Zp[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Er(r.S,t.length):(n>=2?a=n===3?1e3:100:a=n===1?10:1,o=Math.round(a*(r.S+r.u)),o>=60*a&&(o=0),t==="s"?o===0?"0":""+o/a:(i=Er(o,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}u=t.length===3?1:2;break;case 101:l=s,u=1;break}var c=u>0?Er(l,u):"";return c}function gn(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var Zv=/%/g;function c4(e,t,r){var n=t.replace(Zv,""),i=t.length-n.length;return Kr(e,n,r*Math.pow(10,2*i))+qe("%",i)}function f4(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Kr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function Jv(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Jv(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),r=(t/Math.pow(10,o)).toPrecision(n+1+(i+o)%i),r.indexOf("e")===-1){var a=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+o):r+="E+"+(a-o);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+o)%i)+"."+c.substr(o)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var ex=/# (\?+)( ?)\/( ?)(\d+)/;function d4(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),o=Math.floor(i/n),a=i-o*n,s=n;return r+(o===0?"":""+o)+" "+(a===0?qe(" ",e[1].length+1+e[4].length):ud(a,e[1].length)+e[2]+"/"+e[3]+Er(s,e[4].length))}function h4(e,t,r){return r+(t===0?"":""+t)+qe(" ",e[1].length+2+e[4].length)}var tx=/^#*0*\.([0#]+)/,rx=/\).*[0#]/,nx=/\(###\) ###\\?-####/;function Pt(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function eg(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function tg(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function p4(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function g4(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function rr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(rx)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?rr("n",n,r):"("+rr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return f4(e,t,r);if(t.indexOf("%")!==-1)return c4(e,t,r);if(t.indexOf("E")!==-1)return Jv(t,r);if(t.charCodeAt(0)===36)return"$"+rr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,o,a,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Ci(l,t.length);if(t.match(/^[#?]+$/))return i=Ci(r,0),i==="0"&&(i=""),i.length>t.length?i:Pt(t.substr(0,t.length-i.length))+i;if(o=t.match(ex))return d4(o,l,u);if(t.match(/^#+0+$/))return u+Ci(l,t.length-t.indexOf("0"));if(o=t.match(tx))return i=eg(r,o[1].length).replace(/^([^\.]+)$/,"$1."+Pt(o[1])).replace(/\.$/,"."+Pt(o[1])).replace(/\.(\d*)$/,function(m,p){return"."+p+qe("0",Pt(o[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return u+eg(l,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return u+gn(Ci(l,0));if(o=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+rr(e,t,-r):gn(""+(Math.floor(r)+p4(r,o[1].length)))+"."+Er(tg(r,o[1].length),o[1].length);if(o=t.match(/^#,#*,#0/))return rr(e,t.replace(/^#,#*,/,""),r);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Yi(rr(e,t.replace(/[\\-]/g,""),r)),a=0,Yi(Yi(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a<i.length?i.charAt(a++):m==="0"?"0":""}));if(t.match(nx))return i=rr(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(o=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=Dl(l,Math.pow(10,a)-1,!1),i=""+u,c=Kr("n",o[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+o[2]+"/"+o[3],c=Fl(s[2],a),c.length<o[4].length&&(c=Pt(o[4].substr(o[4].length-c.length))+c),i+=c,i;if(o=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),s=Dl(l,Math.pow(10,a)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?ud(s[1],a)+o[2]+"/"+o[3]+Fl(s[2],a):qe(" ",2*a+1+o[2].length+o[3].length));if(o=t.match(/^[#0?]+$/))return i=Ci(r,0),t.length<=i.length?i:Pt(t.substr(0,t.length-i.length))+i;if(o=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),a=i.indexOf(".");var f=t.indexOf(".")-a,h=t.length-i.length-f;return Pt(t.substr(0,f)+i+t.substr(t.length-h))}if(o=t.match(/^00,000\.([#0]*0)$/))return a=tg(r,o[1].length),r<0?"-"+rr(e,t,-r):gn(g4(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Er(0,3-m.length):"")+m})+"."+Er(a,o[1].length);switch(t){case"###,##0.00":return rr(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=gn(Ci(l,0));return d!=="0"?u+d:"";case"###,###.00":return rr(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return rr(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function m4(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Kr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function v4(e,t,r){var n=t.replace(Zv,""),i=t.length-n.length;return Kr(e,n,r*Math.pow(10,2*i))+qe("%",i)}function ix(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+ix(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),r=(t/Math.pow(10,o)).toPrecision(n+1+(i+o)%i),!r.match(/[Ee]/)){var a=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+o):r+="E+"+(a-o),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+o)%i)+"."+c.substr(o)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Tr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(rx)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Tr("n",n,r):"("+Tr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return m4(e,t,r);if(t.indexOf("%")!==-1)return v4(e,t,r);if(t.indexOf("E")!==-1)return ix(t,r);if(t.charCodeAt(0)===36)return"$"+Tr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,o,a,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Er(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:Pt(t.substr(0,t.length-i.length))+i;if(o=t.match(ex))return h4(o,l,u);if(t.match(/^#+0+$/))return u+Er(l,t.length-t.indexOf("0"));if(o=t.match(tx))return i=(""+r).replace(/^([^\.]+)$/,"$1."+Pt(o[1])).replace(/\.$/,"."+Pt(o[1])),i=i.replace(/\.(\d*)$/,function(m,p){return"."+p+qe("0",Pt(o[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return u+gn(""+l);if(o=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Tr(e,t,-r):gn(""+r)+"."+qe("0",o[1].length);if(o=t.match(/^#,#*,#0/))return Tr(e,t.replace(/^#,#*,/,""),r);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Yi(Tr(e,t.replace(/[\\-]/g,""),r)),a=0,Yi(Yi(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a<i.length?i.charAt(a++):m==="0"?"0":""}));if(t.match(nx))return i=Tr(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(o=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=Dl(l,Math.pow(10,a)-1,!1),i=""+u,c=Kr("n",o[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+o[2]+"/"+o[3],c=Fl(s[2],a),c.length<o[4].length&&(c=Pt(o[4].substr(o[4].length-c.length))+c),i+=c,i;if(o=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),s=Dl(l,Math.pow(10,a)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?ud(s[1],a)+o[2]+"/"+o[3]+Fl(s[2],a):qe(" ",2*a+1+o[2].length+o[3].length));if(o=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:Pt(t.substr(0,t.length-i.length))+i;if(o=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),a=i.indexOf(".");var f=t.indexOf(".")-a,h=t.length-i.length-f;return Pt(t.substr(0,f)+i+t.substr(t.length-h))}if(o=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Tr(e,t,-r):gn(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Er(0,3-m.length):"")+m})+"."+Er(0,o[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=gn(""+l);return d!=="0"?u+d:"";default:if(t.match(/\.[0#?]*$/))return Tr(e,t.slice(0,t.lastIndexOf(".")),r)+Pt(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Kr(e,t,r){return(r|0)===r?Tr(e,t,r):rr(e,t,r)}function x4(e){for(var t=[],r=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(i,n-i),i=n+1}if(t[t.length]=e.substr(i),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var ox=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function ax(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Pl(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(ox))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function w4(e,t,r,n){for(var i=[],o="",a=0,s="",l="t",u,c,f,h="H";a<e.length;)switch(s=e.charAt(a)){case"G":if(!Pl(e,a))throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"G",v:"General"},a+=7;break;case'"':for(o="";(f=e.charCodeAt(++a))!==34&&a<e.length;)o+=String.fromCharCode(f);i[i.length]={t:"t",v:o},++a;break;case"\\":var d=e.charAt(++a),m=d==="("||d===")"?d:"t";i[i.length]={t:m,v:d},++a;break;case"_":i[i.length]={t:"t",v:" "},a+=2;break;case"@":i[i.length]={t:"T",v:t},++a;break;case"B":case"b":if(e.charAt(a+1)==="1"||e.charAt(a+1)==="2"){if(u==null&&(u=As(t,r,e.charAt(a+1)==="2"),u==null))return"";i[i.length]={t:"X",v:e.substr(a,2)},l=s,a+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||u==null&&(u=As(t,r),u==null))return"";for(o=s;++a<e.length&&e.charAt(a).toLowerCase()===s;)o+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=h),i[i.length]={t:s,v:o},l=s;break;case"A":case"a":case"上":var p={t:s,v:s};if(u==null&&(u=As(t,r)),e.substr(a,3).toUpperCase()==="A/P"?(u!=null&&(p.v=u.H>=12?"P":"A"),p.t="T",h="h",a+=3):e.substr(a,5).toUpperCase()==="AM/PM"?(u!=null&&(p.v=u.H>=12?"PM":"AM"),p.t="T",a+=5,h="h"):e.substr(a,5).toUpperCase()==="上午/下午"?(u!=null&&(p.v=u.H>=12?"下午":"上午"),p.t="T",a+=5,h="h"):(p.t="t",++a),u==null&&p.t==="T")return"";i[i.length]=p,l=s;break;case"[":for(o=s;e.charAt(a++)!=="]"&&a<e.length;)o+=e.charAt(a);if(o.slice(-1)!=="]")throw'unterminated "[" block: |'+o+"|";if(o.match(ox)){if(u==null&&(u=As(t,r),u==null))return"";i[i.length]={t:"Z",v:o.toLowerCase()},l=o.charAt(1)}else o.indexOf("$")>-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",ax(e)||(i[i.length]={t:"t",v:o}));break;case".":if(u!=null){for(o=s;++a<e.length&&(s=e.charAt(a))==="0";)o+=s;i[i.length]={t:"s",v:o};break}case"0":case"#":for(o=s;++a<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(a))>-1;)o+=s;i[i.length]={t:"n",v:o};break;case"?":for(o=s;e.charAt(++a)===s;)o+=s;i[i.length]={t:s,v:o},l=s;break;case"*":++a,(e.charAt(a)==" "||e.charAt(a)=="*")&&++a;break;case"(":case")":i[i.length]={t:n===1?"t":s,v:s},++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=s;a<e.length&&"0123456789".indexOf(e.charAt(++a))>-1;)o+=e.charAt(a);i[i.length]={t:"D",v:o};break;case" ":i[i.length]={t:s,v:s},++a;break;case"$":i[i.length]={t:"t",v:"$"},++a;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"t",v:s},++a;break}var g=0,v=0,w;for(a=i.length-1,l="t";a>=0;--a)switch(i[a].t){case"h":case"H":i[a].t=h,l="h",g<1&&(g=1);break;case"s":(w=i[a].v.match(/\.0+$/))&&(v=Math.max(v,w[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":l=i[a].t;break;case"m":l==="s"&&(i[a].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&i[a].v.match(/[Hh]/)&&(g=1),g<2&&i[a].v.match(/[Mm]/)&&(g=2),g<3&&i[a].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var y="",S;for(a=0;a<i.length;++a)switch(i[a].t){case"t":case"T":case" ":case"D":break;case"X":i[a].v="",i[a].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[a].v=u4(i[a].t.charCodeAt(0),i[a].v,u,v),i[a].t="t";break;case"n":case"?":for(S=a+1;i[S]!=null&&((s=i[S].t)==="?"||s==="D"||(s===" "||s==="t")&&i[S+1]!=null&&(i[S+1].t==="?"||i[S+1].t==="t"&&i[S+1].v==="/")||i[a].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(i[S].v==="/"||i[S].v===" "&&i[S+1]!=null&&i[S+1].t=="?"));)i[a].v+=i[S].v,i[S]={v:"",t:";"},++S;y+=i[a].v,a=S-1;break;case"G":i[a].t="t",i[a].v=Lf(t,r);break}var N="",M,_;if(y.length>0){y.charCodeAt(0)==40?(M=t<0&&y.charCodeAt(0)===45?-t:t,_=Kr("n",y,M)):(M=t<0&&n>1?-t:t,_=Kr("n",y,M),M<0&&i[0]&&i[0].t=="t"&&(_=_.substr(1),i[0].v="-"+i[0].v)),S=_.length-1;var C=i.length;for(a=0;a<i.length;++a)if(i[a]!=null&&i[a].t!="t"&&i[a].v.indexOf(".")>-1){C=a;break}var A=i.length;if(C===i.length&&_.indexOf("E")===-1){for(a=i.length-1;a>=0;--a)i[a]==null||"n?".indexOf(i[a].t)===-1||(S>=i[a].v.length-1?(S-=i[a].v.length,i[a].v=_.substr(S+1,i[a].v.length)):S<0?i[a].v="":(i[a].v=_.substr(0,S+1),S=-1),i[a].t="t",A=a);S>=0&&A<i.length&&(i[A].v=_.substr(0,S+1)+i[A].v)}else if(C!==i.length&&_.indexOf("E")===-1){for(S=_.indexOf(".")-1,a=C;a>=0;--a)if(!(i[a]==null||"n?".indexOf(i[a].t)===-1)){for(c=i[a].v.indexOf(".")>-1&&a===C?i[a].v.indexOf(".")-1:i[a].v.length-1,N=i[a].v.substr(c+1);c>=0;--c)S>=0&&(i[a].v.charAt(c)==="0"||i[a].v.charAt(c)==="#")&&(N=_.charAt(S--)+N);i[a].v=N,i[a].t="t",A=a}for(S>=0&&A<i.length&&(i[A].v=_.substr(0,S+1)+i[A].v),S=_.indexOf(".")+1,a=C;a<i.length;++a)if(!(i[a]==null||"n?(".indexOf(i[a].t)===-1&&a!==C)){for(c=i[a].v.indexOf(".")>-1&&a===C?i[a].v.indexOf(".")+1:0,N=i[a].v.substr(0,c);c<i[a].v.length;++c)S<_.length&&(N+=_.charAt(S++));i[a].v=N,i[a].t="t",A=a}}}for(a=0;a<i.length;++a)i[a]!=null&&"n?".indexOf(i[a].t)>-1&&(M=n>1&&t<0&&a>0&&i[a-1].v==="-"?-t:t,i[a].v=Kr(i[a].t,i[a].v,M),i[a].t="t");var L="";for(a=0;a!==i.length;++a)i[a]!=null&&(L+=i[a].v);return L}var rg=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ng(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function y4(e,t){var r=x4(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var o=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,o];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var a=r[0].match(rg),s=r[1].match(rg);return ng(t,a)?[n,r[0]]:ng(t,s)?[n,r[1]]:[n,r[a!=null&&s!=null?2:1]]}return[n,o]}function kn(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Je)[e],n==null&&(n=r.table&&r.table[Jp[e]]||Je[Jp[e]]),n==null&&(n=t4[e]||"General");break}if(Pl(n,0))return Lf(t,r);t instanceof Date&&(t=Qv(t,r.date1904));var i=y4(n,t);if(Pl(i[1]))return Lf(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return w4(i[1],t,r,i[0])}function sx(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Je[r]==null){t<0&&(t=r);continue}if(Je[r]==e){t=r;break}}t<0&&(t=391)}return Je[t]=e,t}function pu(e){for(var t=0;t!=392;++t)e[t]!==void 0&&sx(e[t],t)}function gu(){Je=e4()}var lx=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function E4(e){var t=typeof e=="number"?Je[e]:e;return t=t.replace(lx,"(\\d+)"),new RegExp("^"+t+"$")}function S4(e,t,r){var n=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(lx)||[]).forEach(function(f,h){var d=parseInt(r[h+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=d;break;case"d":o=d;break;case"h":a=d;break;case"s":l=d;break;case"m":a>=0?s=d:i=d;break}}),l>=0&&s==-1&&i>=0&&(s=i,i=-1);var u=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var c=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return a==-1&&s==-1&&l==-1?u:n==-1&&i==-1&&o==-1?c:u+"T"+c}var _4=function(){var e={};e.version="1.2.0";function t(){for(var _=0,C=new Array(256),A=0;A!=256;++A)_=A,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,C[A]=_;return typeof Int32Array<"u"?new Int32Array(C):C}var r=t();function n(_){var C=0,A=0,L=0,U=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(L=0;L!=256;++L)U[L]=_[L];for(L=0;L!=256;++L)for(A=_[L],C=256+L;C<4096;C+=256)A=U[C]=A>>>8^_[A&255];var B=[];for(L=1;L!=16;++L)B[L-1]=typeof Int32Array<"u"?U.subarray(L*256,L*256+256):U.slice(L*256,L*256+256);return B}var i=n(r),o=i[0],a=i[1],s=i[2],l=i[3],u=i[4],c=i[5],f=i[6],h=i[7],d=i[8],m=i[9],p=i[10],g=i[11],v=i[12],w=i[13],y=i[14];function S(_,C){for(var A=C^-1,L=0,U=_.length;L<U;)A=A>>>8^r[(A^_.charCodeAt(L++))&255];return~A}function N(_,C){for(var A=C^-1,L=_.length-15,U=0;U<L;)A=y[_[U++]^A&255]^w[_[U++]^A>>8&255]^v[_[U++]^A>>16&255]^g[_[U++]^A>>>24]^p[_[U++]]^m[_[U++]]^d[_[U++]]^h[_[U++]]^f[_[U++]]^c[_[U++]]^u[_[U++]]^l[_[U++]]^s[_[U++]]^a[_[U++]]^o[_[U++]]^r[_[U++]];for(L+=15;U<L;)A=A>>>8^r[(A^_[U++])&255];return~A}function M(_,C){for(var A=C^-1,L=0,U=_.length,B=0,V=0;L<U;)B=_.charCodeAt(L++),B<128?A=A>>>8^r[(A^B)&255]:B<2048?(A=A>>>8^r[(A^(192|B>>6&31))&255],A=A>>>8^r[(A^(128|B&63))&255]):B>=55296&&B<57344?(B=(B&1023)+64,V=_.charCodeAt(L++)&1023,A=A>>>8^r[(A^(240|B>>8&7))&255],A=A>>>8^r[(A^(128|B>>2&63))&255],A=A>>>8^r[(A^(128|V>>6&15|(B&3)<<4))&255],A=A>>>8^r[(A^(128|V&63))&255]):(A=A>>>8^r[(A^(224|B>>12&15))&255],A=A>>>8^r[(A^(128|B>>6&63))&255],A=A>>>8^r[(A^(128|B&63))&255]);return~A}return e.table=r,e.bstr=S,e.buf=N,e.str=M,e}(),Ue=function(){var t={};t.version="1.2.1";function r(E,P){for(var T=E.split("/"),R=P.split("/"),D=0,I=0,z=Math.min(T.length,R.length);D<z;++D){if(I=T[D].length-R[D].length)return I;if(T[D]!=R[D])return T[D]<R[D]?-1:1}return T.length-R.length}function n(E){if(E.charAt(E.length-1)=="/")return E.slice(0,-1).indexOf("/")===-1?E:n(E.slice(0,-1));var P=E.lastIndexOf("/");return P===-1?E:E.slice(0,P+1)}function i(E){if(E.charAt(E.length-1)=="/")return i(E.slice(0,-1));var P=E.lastIndexOf("/");return P===-1?E:E.slice(P+1)}function o(E,P){typeof P=="string"&&(P=new Date(P));var T=P.getHours();T=T<<6|P.getMinutes(),T=T<<5|P.getSeconds()>>>1,E.write_shift(2,T);var R=P.getFullYear()-1980;R=R<<4|P.getMonth()+1,R=R<<5|P.getDate(),E.write_shift(2,R)}function a(E){var P=E.read_shift(2)&65535,T=E.read_shift(2)&65535,R=new Date,D=T&31;T>>>=5;var I=T&15;T>>>=4,R.setMilliseconds(0),R.setFullYear(T+1980),R.setMonth(I-1),R.setDate(D);var z=P&31;P>>>=5;var ee=P&63;return P>>>=6,R.setHours(P),R.setMinutes(ee),R.setSeconds(z<<1),R}function s(E){Kt(E,0);for(var P={},T=0;E.l<=E.length-4;){var R=E.read_shift(2),D=E.read_shift(2),I=E.l+D,z={};switch(R){case 21589:T=E.read_shift(1),T&1&&(z.mtime=E.read_shift(4)),D>5&&(T&2&&(z.atime=E.read_shift(4)),T&4&&(z.ctime=E.read_shift(4))),z.mtime&&(z.mt=new Date(z.mtime*1e3));break}E.l=I,P[R]=z}return P}var l;function u(){return l||(l={})}function c(E,P){if(E[0]==80&&E[1]==75)return Yd(E,P);if((E[0]|32)==109&&(E[1]|32)==105)return Vw(E,P);if(E.length<512)throw new Error("CFB file size "+E.length+" < 512");var T=3,R=512,D=0,I=0,z=0,ee=0,W=0,j=[],X=E.slice(0,512);Kt(X,0);var oe=f(X);switch(T=oe[0],T){case 3:R=512;break;case 4:R=4096;break;case 0:if(oe[1]==0)return Yd(E,P);default:throw new Error("Major Version: Expected 3 or 4 saw "+T)}R!==512&&(X=E.slice(0,R),Kt(X,28));var fe=E.slice(0,R);h(X,T);var me=X.read_shift(4,"i");if(T===3&&me!==0)throw new Error("# Directory Sectors: Expected 0 saw "+me);X.l+=4,z=X.read_shift(4,"i"),X.l+=4,X.chk("00100000","Mini Stream Cutoff Size: "),ee=X.read_shift(4,"i"),D=X.read_shift(4,"i"),W=X.read_shift(4,"i"),I=X.read_shift(4,"i");for(var ae=-1,de=0;de<109&&(ae=X.read_shift(4,"i"),!(ae<0));++de)j[de]=ae;var Re=d(E,R);g(W,I,Re,R,j);var Xe=w(Re,z,j,R);Xe[z].name="!Directory",D>0&&ee!==V&&(Xe[ee].name="!MiniFAT"),Xe[j[0]].name="!FAT",Xe.fat_addrs=j,Xe.ssz=R;var Ke={},_t=[],Co=[],Ao=[];y(z,Xe,Re,_t,D,Ke,Co,ee),m(Co,Ao,_t),_t.shift();var Ro={FileIndex:Co,FullPaths:Ao};return P&&P.raw&&(Ro.raw={header:fe,sectors:Re}),Ro}function f(E){if(E[E.l]==80&&E[E.l+1]==75)return[0,0];E.chk(q,"Header Signature: "),E.l+=16;var P=E.read_shift(2,"u");return[E.read_shift(2,"u"),P]}function h(E,P){var T=9;switch(E.l+=2,T=E.read_shift(2)){case 9:if(P!=3)throw new Error("Sector Shift: Expected 9 saw "+T);break;case 12:if(P!=4)throw new Error("Sector Shift: Expected 12 saw "+T);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+T)}E.chk("0600","Mini Sector Shift: "),E.chk("000000000000","Reserved: ")}function d(E,P){for(var T=Math.ceil(E.length/P)-1,R=[],D=1;D<T;++D)R[D-1]=E.slice(D*P,(D+1)*P);return R[T-1]=E.slice(T*P),R}function m(E,P,T){for(var R=0,D=0,I=0,z=0,ee=0,W=T.length,j=[],X=[];R<W;++R)j[R]=X[R]=R,P[R]=T[R];for(;ee<X.length;++ee)R=X[ee],D=E[R].L,I=E[R].R,z=E[R].C,j[R]===R&&(D!==-1&&j[D]!==D&&(j[R]=j[D]),I!==-1&&j[I]!==I&&(j[R]=j[I])),z!==-1&&(j[z]=R),D!==-1&&R!=j[R]&&(j[D]=j[R],X.lastIndexOf(D)<ee&&X.push(D)),I!==-1&&R!=j[R]&&(j[I]=j[R],X.lastIndexOf(I)<ee&&X.push(I));for(R=1;R<W;++R)j[R]===R&&(I!==-1&&j[I]!==I?j[R]=j[I]:D!==-1&&j[D]!==D&&(j[R]=j[D]));for(R=1;R<W;++R)if(E[R].type!==0){if(ee=R,ee!=j[ee])do ee=j[ee],P[R]=P[ee]+"/"+P[R];while(ee!==0&&j[ee]!==-1&&ee!=j[ee]);j[R]=-1}for(P[0]+="/",R=1;R<W;++R)E[R].type!==2&&(P[R]+="/")}function p(E,P,T){for(var R=E.start,D=E.size,I=[],z=R;T&&D>0&&z>=0;)I.push(P.slice(z*B,z*B+B)),D-=B,z=Gn(T,z*4);return I.length===0?Q(0):mt(I).slice(0,E.size)}function g(E,P,T,R,D){var I=V;if(E===V){if(P!==0)throw new Error("DIFAT chain shorter than expected")}else if(E!==-1){var z=T[E],ee=(R>>>2)-1;if(!z)return;for(var W=0;W<ee&&(I=Gn(z,W*4))!==V;++W)D.push(I);g(Gn(z,R-4),P-1,T,R,D)}}function v(E,P,T,R,D){var I=[],z=[];D||(D=[]);var ee=R-1,W=0,j=0;for(W=P;W>=0;){D[W]=!0,I[I.length]=W,z.push(E[W]);var X=T[Math.floor(W*4/R)];if(j=W*4&ee,R<4+j)throw new Error("FAT boundary crossed: "+W+" 4 "+R);if(!E[X])break;W=Gn(E[X],j)}return{nodes:I,data:fg([z])}}function w(E,P,T,R){var D=E.length,I=[],z=[],ee=[],W=[],j=R-1,X=0,oe=0,fe=0,me=0;for(X=0;X<D;++X)if(ee=[],fe=X+P,fe>=D&&(fe-=D),!z[fe]){W=[];var ae=[];for(oe=fe;oe>=0;){ae[oe]=!0,z[oe]=!0,ee[ee.length]=oe,W.push(E[oe]);var de=T[Math.floor(oe*4/R)];if(me=oe*4&j,R<4+me)throw new Error("FAT boundary crossed: "+oe+" 4 "+R);if(!E[de]||(oe=Gn(E[de],me),ae[oe]))break}I[fe]={nodes:ee,data:fg([W])}}return I}function y(E,P,T,R,D,I,z,ee){for(var W=0,j=R.length?2:0,X=P[E].data,oe=0,fe=0,me;oe<X.length;oe+=128){var ae=X.slice(oe,oe+128);Kt(ae,64),fe=ae.read_shift(2),me=gd(ae,0,fe-j),R.push(me);var de={name:me,type:ae.read_shift(1),color:ae.read_shift(1),L:ae.read_shift(4,"i"),R:ae.read_shift(4,"i"),C:ae.read_shift(4,"i"),clsid:ae.read_shift(16),state:ae.read_shift(4,"i"),start:0,size:0},Re=ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2);Re!==0&&(de.ct=S(ae,ae.l-8));var Xe=ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2);Xe!==0&&(de.mt=S(ae,ae.l-8)),de.start=ae.read_shift(4,"i"),de.size=ae.read_shift(4,"i"),de.size<0&&de.start<0&&(de.size=de.type=0,de.start=V,de.name=""),de.type===5?(W=de.start,D>0&&W!==V&&(P[W].name="!StreamData")):de.size>=4096?(de.storage="fat",P[de.start]===void 0&&(P[de.start]=v(T,de.start,P.fat_addrs,P.ssz)),P[de.start].name=de.name,de.content=P[de.start].data.slice(0,de.size)):(de.storage="minifat",de.size<0?de.size=0:W!==V&&de.start!==V&&P[W]&&(de.content=p(de,P[W].data,(P[ee]||{}).data))),de.content&&Kt(de.content,0),I[me]=de,z.push(de)}}function S(E,P){return new Date((qt(E,P+4)/1e7*Math.pow(2,32)+qt(E,P)/1e7-11644473600)*1e3)}function N(E,P){return u(),c(l.readFileSync(E),P)}function M(E,P){var T=P&&P.type;switch(T||be&&Buffer.isBuffer(E)&&(T="buffer"),T||"base64"){case"file":return N(E,P);case"base64":return c(wr(Jr(E)),P);case"binary":return c(wr(E),P)}return c(E,P)}function _(E,P){var T=P||{},R=T.root||"Root Entry";if(E.FullPaths||(E.FullPaths=[]),E.FileIndex||(E.FileIndex=[]),E.FullPaths.length!==E.FileIndex.length)throw new Error("inconsistent CFB structure");E.FullPaths.length===0&&(E.FullPaths[0]=R+"/",E.FileIndex[0]={name:R,type:5}),T.CLSID&&(E.FileIndex[0].clsid=T.CLSID),C(E)}function C(E){var P="Sh33tJ5";if(!Ue.find(E,"/"+P)){var T=Q(4);T[0]=55,T[1]=T[3]=50,T[2]=54,E.FileIndex.push({name:P,type:2,content:T,size:4,L:69,R:69,C:69}),E.FullPaths.push(E.FullPaths[0]+P),A(E)}}function A(E,P){_(E);for(var T=!1,R=!1,D=E.FullPaths.length-1;D>=0;--D){var I=E.FileIndex[D];switch(I.type){case 0:R?T=!0:(E.FileIndex.pop(),E.FullPaths.pop());break;case 1:case 2:case 5:R=!0,isNaN(I.R*I.L*I.C)&&(T=!0),I.R>-1&&I.L>-1&&I.R==I.L&&(T=!0);break;default:T=!0;break}}if(!(!T&&!P)){var z=new Date(1987,1,19),ee=0,W=Object.create?Object.create(null):{},j=[];for(D=0;D<E.FullPaths.length;++D)W[E.FullPaths[D]]=!0,E.FileIndex[D].type!==0&&j.push([E.FullPaths[D],E.FileIndex[D]]);for(D=0;D<j.length;++D){var X=n(j[D][0]);R=W[X],R||(j.push([X,{name:i(X).replace("/",""),type:1,clsid:we,ct:z,mt:z,content:null}]),W[X]=!0)}for(j.sort(function(me,ae){return r(me[0],ae[0])}),E.FullPaths=[],E.FileIndex=[],D=0;D<j.length;++D)E.FullPaths[D]=j[D][0],E.FileIndex[D]=j[D][1];for(D=0;D<j.length;++D){var oe=E.FileIndex[D],fe=E.FullPaths[D];if(oe.name=i(fe).replace("/",""),oe.L=oe.R=oe.C=-(oe.color=1),oe.size=oe.content?oe.content.length:0,oe.start=0,oe.clsid=oe.clsid||we,D===0)oe.C=j.length>1?1:-1,oe.size=0,oe.type=5;else if(fe.slice(-1)=="/"){for(ee=D+1;ee<j.length&&n(E.FullPaths[ee])!=fe;++ee);for(oe.C=ee>=j.length?-1:ee,ee=D+1;ee<j.length&&n(E.FullPaths[ee])!=n(fe);++ee);oe.R=ee>=j.length?-1:ee,oe.type=1}else n(E.FullPaths[D+1]||"")==n(fe)&&(oe.R=D+1),oe.type=2}}}function L(E,P){var T=P||{};if(T.fileType=="mad")return Ww(E,T);switch(A(E),T.fileType){case"zip":return $w(E,T)}var R=function(me){for(var ae=0,de=0,Re=0;Re<me.FileIndex.length;++Re){var Xe=me.FileIndex[Re];if(Xe.content){var Ke=Xe.content.length;Ke>0&&(Ke<4096?ae+=Ke+63>>6:de+=Ke+511>>9)}}for(var _t=me.FullPaths.length+3>>2,Co=ae+7>>3,Ao=ae+127>>7,Ro=Co+de+_t+Ao,Un=Ro+127>>7,bu=Un<=109?0:Math.ceil((Un-109)/127);Ro+Un+bu+127>>7>Un;)bu=++Un<=109?0:Math.ceil((Un-109)/127);var Mr=[1,bu,Un,Ao,_t,de,ae,0];return me.FileIndex[0].size=ae<<6,Mr[7]=(me.FileIndex[0].start=Mr[0]+Mr[1]+Mr[2]+Mr[3]+Mr[4]+Mr[5])+(Mr[6]+7>>3),Mr}(E),D=Q(R[7]<<9),I=0,z=0;{for(I=0;I<8;++I)D.write_shift(1,ne[I]);for(I=0;I<8;++I)D.write_shift(2,0);for(D.write_shift(2,62),D.write_shift(2,3),D.write_shift(2,65534),D.write_shift(2,9),D.write_shift(2,6),I=0;I<3;++I)D.write_shift(2,0);for(D.write_shift(4,0),D.write_shift(4,R[2]),D.write_shift(4,R[0]+R[1]+R[2]+R[3]-1),D.write_shift(4,0),D.write_shift(4,1<<12),D.write_shift(4,R[3]?R[0]+R[1]+R[2]-1:V),D.write_shift(4,R[3]),D.write_shift(-4,R[1]?R[0]-1:V),D.write_shift(4,R[1]),I=0;I<109;++I)D.write_shift(-4,I<R[2]?R[1]+I:-1)}if(R[1])for(z=0;z<R[1];++z){for(;I<236+z*127;++I)D.write_shift(-4,I<R[2]?R[1]+I:-1);D.write_shift(-4,z===R[1]-1?V:z+1)}var ee=function(me){for(z+=me;I<z-1;++I)D.write_shift(-4,I+1);me&&(++I,D.write_shift(-4,V))};for(z=I=0,z+=R[1];I<z;++I)D.write_shift(-4,ve.DIFSECT);for(z+=R[2];I<z;++I)D.write_shift(-4,ve.FATSECT);ee(R[3]),ee(R[4]);for(var W=0,j=0,X=E.FileIndex[0];W<E.FileIndex.length;++W)X=E.FileIndex[W],X.content&&(j=X.content.length,!(j<4096)&&(X.start=z,ee(j+511>>9)));for(ee(R[6]+7>>3);D.l&511;)D.write_shift(-4,ve.ENDOFCHAIN);for(z=I=0,W=0;W<E.FileIndex.length;++W)X=E.FileIndex[W],X.content&&(j=X.content.length,!(!j||j>=4096)&&(X.start=z,ee(j+63>>6)));for(;D.l&511;)D.write_shift(-4,ve.ENDOFCHAIN);for(I=0;I<R[4]<<2;++I){var oe=E.FullPaths[I];if(!oe||oe.length===0){for(W=0;W<17;++W)D.write_shift(4,0);for(W=0;W<3;++W)D.write_shift(4,-1);for(W=0;W<12;++W)D.write_shift(4,0);continue}X=E.FileIndex[I],I===0&&(X.start=X.size?X.start-1:V);var fe=I===0&&T.root||X.name;if(j=2*(fe.length+1),D.write_shift(64,fe,"utf16le"),D.write_shift(2,j),D.write_shift(1,X.type),D.write_shift(1,X.color),D.write_shift(-4,X.L),D.write_shift(-4,X.R),D.write_shift(-4,X.C),X.clsid)D.write_shift(16,X.clsid,"hex");else for(W=0;W<4;++W)D.write_shift(4,0);D.write_shift(4,X.state||0),D.write_shift(4,0),D.write_shift(4,0),D.write_shift(4,0),D.write_shift(4,0),D.write_shift(4,X.start),D.write_shift(4,X.size),D.write_shift(4,0)}for(I=1;I<E.FileIndex.length;++I)if(X=E.FileIndex[I],X.size>=4096)if(D.l=X.start+1<<9,be&&Buffer.isBuffer(X.content))X.content.copy(D,D.l,0,X.size),D.l+=X.size+511&-512;else{for(W=0;W<X.size;++W)D.write_shift(1,X.content[W]);for(;W&511;++W)D.write_shift(1,0)}for(I=1;I<E.FileIndex.length;++I)if(X=E.FileIndex[I],X.size>0&&X.size<4096)if(be&&Buffer.isBuffer(X.content))X.content.copy(D,D.l,0,X.size),D.l+=X.size+63&-64;else{for(W=0;W<X.size;++W)D.write_shift(1,X.content[W]);for(;W&63;++W)D.write_shift(1,0)}if(be)D.l=D.length;else for(;D.l<D.length;)D.write_shift(1,0);return D}function U(E,P){var T=E.FullPaths.map(function(W){return W.toUpperCase()}),R=T.map(function(W){var j=W.split("/");return j[j.length-(W.slice(-1)=="/"?2:1)]}),D=!1;P.charCodeAt(0)===47?(D=!0,P=T[0].slice(0,-1)+P):D=P.indexOf("/")!==-1;var I=P.toUpperCase(),z=D===!0?T.indexOf(I):R.indexOf(I);if(z!==-1)return E.FileIndex[z];var ee=!I.match(Cs);for(I=I.replace(ua,""),ee&&(I=I.replace(Cs,"!")),z=0;z<T.length;++z)if((ee?T[z].replace(Cs,"!"):T[z]).replace(ua,"")==I||(ee?R[z].replace(Cs,"!"):R[z]).replace(ua,"")==I)return E.FileIndex[z];return null}var B=64,V=-2,q="d0cf11e0a1b11ae1",ne=[208,207,17,224,161,177,26,225],we="00000000000000000000000000000000",ve={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:V,FREESECT:-1,HEADER_SIGNATURE:q,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:we,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function _e(E,P,T){u();var R=L(E,T);l.writeFileSync(P,R)}function J(E){for(var P=new Array(E.length),T=0;T<E.length;++T)P[T]=String.fromCharCode(E[T]);return P.join("")}function ce(E,P){var T=L(E,P);switch(P&&P.type||"buffer"){case"file":return u(),l.writeFileSync(P.filename,T),T;case"binary":return typeof T=="string"?T:J(T);case"base64":return ka(typeof T=="string"?T:J(T));case"buffer":if(be)return Buffer.isBuffer(T)?T:on(T);case"array":return typeof T=="string"?wr(T):T}return T}var K;function O(E){try{var P=E.InflateRaw,T=new P;if(T._processChunk(new Uint8Array([3,0]),T._finishFlushFlag),T.bytesRead)K=E;else throw new Error("zlib does not expose bytesRead")}catch(R){console.error("cannot use native zlib: "+(R.message||R))}}function b(E,P){if(!K)return Xd(E,P);var T=K.InflateRaw,R=new T,D=R._processChunk(E.slice(E.l),R._finishFlushFlag);return E.l+=R.bytesRead,D}function k(E){return K?K.deflateRawSync(E):Hd(E)}var F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],G=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Y(E){var P=(E<<1|E<<11)&139536|(E<<5|E<<15)&558144;return(P>>16|P>>8|P)&255}for(var te=typeof Uint8Array<"u",re=te?new Uint8Array(1<<8):[],ye=0;ye<1<<8;++ye)re[ye]=Y(ye);function pe(E,P){var T=re[E&255];return P<=8?T>>>8-P:(T=T<<8|re[E>>8&255],P<=16?T>>>16-P:(T=T<<8|re[E>>16&255],T>>>24-P))}function Pe(E,P){var T=P&7,R=P>>>3;return(E[R]|(T<=6?0:E[R+1]<<8))>>>T&3}function Ee(E,P){var T=P&7,R=P>>>3;return(E[R]|(T<=5?0:E[R+1]<<8))>>>T&7}function et(E,P){var T=P&7,R=P>>>3;return(E[R]|(T<=4?0:E[R+1]<<8))>>>T&15}function Be(E,P){var T=P&7,R=P>>>3;return(E[R]|(T<=3?0:E[R+1]<<8))>>>T&31}function ge(E,P){var T=P&7,R=P>>>3;return(E[R]|(T<=1?0:E[R+1]<<8))>>>T&127}function Mt(E,P,T){var R=P&7,D=P>>>3,I=(1<<T)-1,z=E[D]>>>R;return T<8-R||(z|=E[D+1]<<8-R,T<16-R)||(z|=E[D+2]<<16-R,T<24-R)||(z|=E[D+3]<<24-R),z&I}function St(E,P,T){var R=P&7,D=P>>>3;return R<=5?E[D]|=(T&7)<<R:(E[D]|=T<<R&255,E[D+1]=(T&7)>>8-R),P+3}function jt(E,P,T){var R=P&7,D=P>>>3;return T=(T&1)<<R,E[D]|=T,P+1}function Nr(E,P,T){var R=P&7,D=P>>>3;return T<<=R,E[D]|=T&255,T>>>=8,E[D+1]=T,P+8}function $r(E,P,T){var R=P&7,D=P>>>3;return T<<=R,E[D]|=T&255,T>>>=8,E[D+1]=T&255,E[D+2]=T>>>8,P+16}function To(E,P){var T=E.length,R=2*T>P?2*T:P+5,D=0;if(T>=P)return E;if(be){var I=qp(R);if(E.copy)E.copy(I);else for(;D<E.length;++D)I[D]=E[D];return I}else if(te){var z=new Uint8Array(R);if(z.set)z.set(E);else for(;D<T;++D)z[D]=E[D];return z}return E.length=R,E}function er(E){for(var P=new Array(E),T=0;T<E;++T)P[T]=0;return P}function rs(E,P,T){var R=1,D=0,I=0,z=0,ee=0,W=E.length,j=te?new Uint16Array(32):er(32);for(I=0;I<32;++I)j[I]=0;for(I=W;I<T;++I)E[I]=0;W=E.length;var X=te?new Uint16Array(W):er(W);for(I=0;I<W;++I)j[D=E[I]]++,R<D&&(R=D),X[I]=0;for(j[0]=0,I=1;I<=R;++I)j[I+16]=ee=ee+j[I-1]<<1;for(I=0;I<W;++I)ee=E[I],ee!=0&&(X[I]=j[ee+16]++);var oe=0;for(I=0;I<W;++I)if(oe=E[I],oe!=0)for(ee=pe(X[I],R)>>R-oe,z=(1<<R+4-oe)-1;z>=0;--z)P[ee|z<<oe]=oe&15|I<<4;return R}var Du=te?new Uint16Array(512):er(512),Iu=te?new Uint16Array(32):er(32);if(!te){for(var Bn=0;Bn<512;++Bn)Du[Bn]=0;for(Bn=0;Bn<32;++Bn)Iu[Bn]=0}(function(){for(var E=[],P=0;P<32;P++)E.push(5);rs(E,Iu,32);var T=[];for(P=0;P<=143;P++)T.push(8);for(;P<=255;P++)T.push(9);for(;P<=279;P++)T.push(7);for(;P<=287;P++)T.push(8);rs(T,Du,288)})();var Iw=function(){for(var P=te?new Uint8Array(32768):[],T=0,R=0;T<G.length-1;++T)for(;R<G[T+1];++R)P[R]=T;for(;R<32768;++R)P[R]=29;var D=te?new Uint8Array(259):[];for(T=0,R=0;T<H.length-1;++T)for(;R<H[T+1];++R)D[R]=T;function I(ee,W){for(var j=0;j<ee.length;){var X=Math.min(65535,ee.length-j),oe=j+X==ee.length;for(W.write_shift(1,+oe),W.write_shift(2,X),W.write_shift(2,~X&65535);X-- >0;)W[W.l++]=ee[j++]}return W.l}function z(ee,W){for(var j=0,X=0,oe=te?new Uint16Array(32768):[];X<ee.length;){var fe=Math.min(65535,ee.length-X);if(fe<10){for(j=St(W,j,+(X+fe==ee.length)),j&7&&(j+=8-(j&7)),W.l=j/8|0,W.write_shift(2,fe),W.write_shift(2,~fe&65535);fe-- >0;)W[W.l++]=ee[X++];j=W.l*8;continue}j=St(W,j,+(X+fe==ee.length)+2);for(var me=0;fe-- >0;){var ae=ee[X];me=(me<<5^ae)&32767;var de=-1,Re=0;if((de=oe[me])&&(de|=X&-32768,de>X&&(de-=32768),de<X))for(;ee[de+Re]==ee[X+Re]&&Re<250;)++Re;if(Re>2){ae=D[Re],ae<=22?j=Nr(W,j,re[ae+1]>>1)-1:(Nr(W,j,3),j+=5,Nr(W,j,re[ae-23]>>5),j+=3);var Xe=ae<8?0:ae-4>>2;Xe>0&&($r(W,j,Re-H[ae]),j+=Xe),ae=P[X-de],j=Nr(W,j,re[ae]>>3),j-=3;var Ke=ae<4?0:ae-2>>1;Ke>0&&($r(W,j,X-de-G[ae]),j+=Ke);for(var _t=0;_t<Re;++_t)oe[me]=X&32767,me=(me<<5^ee[X])&32767,++X;fe-=Re-1}else ae<=143?ae=ae+48:j=jt(W,j,1),j=Nr(W,j,re[ae]),oe[me]=X&32767,++X}j=Nr(W,j,0)-1}return W.l=(j+7)/8|0,W.l}return function(W,j){return W.length<8?I(W,j):z(W,j)}}();function Hd(E){var P=Q(50+Math.floor(E.length*1.1)),T=Iw(E,P);return P.slice(0,T)}var Vd=te?new Uint16Array(32768):er(32768),Wd=te?new Uint16Array(32768):er(32768),zd=te?new Uint16Array(128):er(128),Gd=1,jd=1;function kw(E,P){var T=Be(E,P)+257;P+=5;var R=Be(E,P)+1;P+=5;var D=et(E,P)+4;P+=4;for(var I=0,z=te?new Uint8Array(19):er(19),ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],W=1,j=te?new Uint8Array(8):er(8),X=te?new Uint8Array(8):er(8),oe=z.length,fe=0;fe<D;++fe)z[F[fe]]=I=Ee(E,P),W<I&&(W=I),j[I]++,P+=3;var me=0;for(j[0]=0,fe=1;fe<=W;++fe)X[fe]=me=me+j[fe-1]<<1;for(fe=0;fe<oe;++fe)(me=z[fe])!=0&&(ee[fe]=X[me]++);var ae=0;for(fe=0;fe<oe;++fe)if(ae=z[fe],ae!=0){me=re[ee[fe]]>>8-ae;for(var de=(1<<7-ae)-1;de>=0;--de)zd[me|de<<ae]=ae&7|fe<<3}var Re=[];for(W=1;Re.length<T+R;)switch(me=zd[ge(E,P)],P+=me&7,me>>>=3){case 16:for(I=3+Pe(E,P),P+=2,me=Re[Re.length-1];I-- >0;)Re.push(me);break;case 17:for(I=3+Ee(E,P),P+=3;I-- >0;)Re.push(0);break;case 18:for(I=11+ge(E,P),P+=7;I-- >0;)Re.push(0);break;default:Re.push(me),W<me&&(W=me);break}var Xe=Re.slice(0,T),Ke=Re.slice(T);for(fe=T;fe<286;++fe)Xe[fe]=0;for(fe=R;fe<30;++fe)Ke[fe]=0;return Gd=rs(Xe,Vd,286),jd=rs(Ke,Wd,30),P}function bw(E,P){if(E[0]==3&&!(E[1]&3))return[ri(P),2];for(var T=0,R=0,D=qp(P||1<<18),I=0,z=D.length>>>0,ee=0,W=0;!(R&1);){if(R=Ee(E,T),T+=3,R>>>1)R>>1==1?(ee=9,W=5):(T=kw(E,T),ee=Gd,W=jd);else{T&7&&(T+=8-(T&7));var j=E[T>>>3]|E[(T>>>3)+1]<<8;if(T+=32,j>0)for(!P&&z<I+j&&(D=To(D,I+j),z=D.length);j-- >0;)D[I++]=E[T>>>3],T+=8;continue}for(;;){!P&&z<I+32767&&(D=To(D,I+32767),z=D.length);var X=Mt(E,T,ee),oe=R>>>1==1?Du[X]:Vd[X];if(T+=oe&15,oe>>>=4,!(oe>>>8&255))D[I++]=oe;else{if(oe==256)break;oe-=257;var fe=oe<8?0:oe-4>>2;fe>5&&(fe=0);var me=I+H[oe];fe>0&&(me+=Mt(E,T,fe),T+=fe),X=Mt(E,T,W),oe=R>>>1==1?Iu[X]:Wd[X],T+=oe&15,oe>>>=4;var ae=oe<4?0:oe-2>>1,de=G[oe];for(ae>0&&(de+=Mt(E,T,ae),T+=ae),!P&&z<me&&(D=To(D,me+100),z=D.length);I<me;)D[I]=D[I-de],++I}}}return P?[D,T+7>>>3]:[D.slice(0,I),T+7>>>3]}function Xd(E,P){var T=E.slice(E.l||0),R=bw(T,P);return E.l+=R[1],R[0]}function Kd(E,P){if(E)typeof console<"u"&&console.error(P);else throw new Error(P)}function Yd(E,P){var T=E;Kt(T,0);var R=[],D=[],I={FileIndex:R,FullPaths:D};_(I,{root:P.root});for(var z=T.length-4;(T[z]!=80||T[z+1]!=75||T[z+2]!=5||T[z+3]!=6)&&z>=0;)--z;T.l=z+4,T.l+=4;var ee=T.read_shift(2);T.l+=6;var W=T.read_shift(4);for(T.l=W,z=0;z<ee;++z){T.l+=20;var j=T.read_shift(4),X=T.read_shift(4),oe=T.read_shift(2),fe=T.read_shift(2),me=T.read_shift(2);T.l+=8;var ae=T.read_shift(4),de=s(T.slice(T.l+oe,T.l+oe+fe));T.l+=oe+fe+me;var Re=T.l;T.l=ae+4,Nw(T,j,X,I,de),T.l=Re}return I}function Nw(E,P,T,R,D){E.l+=2;var I=E.read_shift(2),z=E.read_shift(2),ee=a(E);if(I&8257)throw new Error("Unsupported ZIP encryption");for(var W=E.read_shift(4),j=E.read_shift(4),X=E.read_shift(4),oe=E.read_shift(2),fe=E.read_shift(2),me="",ae=0;ae<oe;++ae)me+=String.fromCharCode(E[E.l++]);if(fe){var de=s(E.slice(E.l,E.l+fe));(de[21589]||{}).mt&&(ee=de[21589].mt),((D||{})[21589]||{}).mt&&(ee=D[21589].mt)}E.l+=fe;var Re=E.slice(E.l,E.l+j);switch(z){case 8:Re=b(E,X);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+z)}var Xe=!1;I&8&&(W=E.read_shift(4),W==134695760&&(W=E.read_shift(4),Xe=!0),j=E.read_shift(4),X=E.read_shift(4)),j!=P&&Kd(Xe,"Bad compressed size: "+P+" != "+j),X!=T&&Kd(Xe,"Bad uncompressed size: "+T+" != "+X),ku(R,me,Re,{unsafe:!0,mt:ee})}function $w(E,P){var T=P||{},R=[],D=[],I=Q(1),z=T.compression?8:0,ee=0,W=0,j=0,X=0,oe=0,fe=E.FullPaths[0],me=fe,ae=E.FileIndex[0],de=[],Re=0;for(W=1;W<E.FullPaths.length;++W)if(me=E.FullPaths[W].slice(fe.length),ae=E.FileIndex[W],!(!ae.size||!ae.content||me=="Sh33tJ5")){var Xe=X,Ke=Q(me.length);for(j=0;j<me.length;++j)Ke.write_shift(1,me.charCodeAt(j)&127);Ke=Ke.slice(0,Ke.l),de[oe]=_4.buf(ae.content,0);var _t=ae.content;z==8&&(_t=k(_t)),I=Q(30),I.write_shift(4,67324752),I.write_shift(2,20),I.write_shift(2,ee),I.write_shift(2,z),ae.mt?o(I,ae.mt):I.write_shift(4,0),I.write_shift(-4,de[oe]),I.write_shift(4,_t.length),I.write_shift(4,ae.content.length),I.write_shift(2,Ke.length),I.write_shift(2,0),X+=I.length,R.push(I),X+=Ke.length,R.push(Ke),X+=_t.length,R.push(_t),I=Q(46),I.write_shift(4,33639248),I.write_shift(2,0),I.write_shift(2,20),I.write_shift(2,ee),I.write_shift(2,z),I.write_shift(4,0),I.write_shift(-4,de[oe]),I.write_shift(4,_t.length),I.write_shift(4,ae.content.length),I.write_shift(2,Ke.length),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(4,0),I.write_shift(4,Xe),Re+=I.l,D.push(I),Re+=Ke.length,D.push(Ke),++oe}return I=Q(22),I.write_shift(4,101010256),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,oe),I.write_shift(2,oe),I.write_shift(4,Re),I.write_shift(4,X),I.write_shift(2,0),mt([mt(R),mt(D),I])}var ns={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Mw(E,P){if(E.ctype)return E.ctype;var T=E.name||"",R=T.match(/\.([^\.]+)$/);return R&&ns[R[1]]||P&&(R=(T=P).match(/[\.\\]([^\.\\])+$/),R&&ns[R[1]])?ns[R[1]]:"application/octet-stream"}function Lw(E){for(var P=ka(E),T=[],R=0;R<P.length;R+=76)T.push(P.slice(R,R+76));return T.join(`\r
+ */const Ut={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function LC(e,t,r){var n;if(r=r||{},r.threshold=(n=r.threshold)!=null?n:Ut.MATCHES,!r.accessors){const a=jp(e,t,r);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:r.threshold,passed:a>=r.threshold}}const i=VC(e,r.accessors),o={rankedValue:e,rank:Ut.NO_MATCH,accessorIndex:-1,accessorThreshold:r.threshold,passed:!1};for(let a=0;a<i.length;a++){const s=i[a];let l=jp(s.itemValue,t,r);const{minRanking:u,maxRanking:c,threshold:f=r.threshold}=s.attributes;l<u&&l>=Ut.MATCHES?l=u:l>c&&(l=c),l=Math.min(l,c),l>=f&&l>o.rank&&(o.rank=l,o.passed=!0,o.accessorIndex=a,o.accessorThreshold=f,o.rankedValue=s.itemValue)}return o}function jp(e,t,r){return e=Xp(e,r),t=Xp(t,r),t.length>e.length?Ut.NO_MATCH:e===t?Ut.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Ut.EQUAL:e.startsWith(t)?Ut.STARTS_WITH:e.includes(` ${t}`)?Ut.WORD_STARTS_WITH:e.includes(t)?Ut.CONTAINS:t.length===1?Ut.NO_MATCH:BC(e).includes(t)?Ut.ACRONYM:UC(e,t))}function BC(e){let t="";return e.split(" ").forEach(n=>{n.split("-").forEach(o=>{t+=o.substr(0,1)})}),t}function UC(e,t){let r=0,n=0;function i(l,u,c){for(let f=c,h=u.length;f<h;f++)if(u[f]===l)return r+=1,f+1;return-1}function o(l){const u=1/l,c=r/t.length;return Ut.MATCHES+c*u}const a=i(t[0],e,0);if(a<0)return Ut.NO_MATCH;n=a;for(let l=1,u=t.length;l<u;l++){const c=t[l];if(n=i(c,e,n),!(n>-1))return Ut.NO_MATCH}const s=n-a;return o(s)}function Xp(e,t){let{keepDiacritics:r}=t;return e=`${e}`,r||(e=MC(e)),e}function HC(e,t){let r=t;typeof t=="object"&&(r=t.accessor);const n=r(e);return n==null?[]:Array.isArray(n)?n:[String(n)]}function VC(e,t){const r=[];for(let n=0,i=t.length;n<i;n++){const o=t[n],a=WC(o),s=HC(e,o);for(let l=0,u=s.length;l<u;l++)r.push({itemValue:s[l],attributes:a})}return r}const Kp={maxRanking:1/0,minRanking:-1/0};function WC(e){return typeof e=="function"?Kp:{...Kp,...e}}var Mf={},zC={get exports(){return Mf},set exports(e){Mf=e}};(function(e){(function(t){var r=y(),n=S(),i=b(),o=M(),a={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:l,toPng:c,toJpeg:f,toBlob:h,toPixelData:u,impl:{fontFaces:i,images:o,util:r,inliner:n,options:{}}};e.exports=s;function l(_,A){return A=A||{},d(A),Promise.resolve(_).then(function(L){return p(L,A.filter,!0)}).then(g).then(v).then(R).then(function(L){return w(L,A.width||r.width(_),A.height||r.height(_))});function R(L){return A.bgcolor&&(L.style.backgroundColor=A.bgcolor),A.width&&(L.style.width=A.width+"px"),A.height&&(L.style.height=A.height+"px"),A.style&&Object.keys(A.style).forEach(function(U){L.style[U]=A.style[U]}),L}}function u(_,A){return m(_,A||{}).then(function(R){return R.getContext("2d").getImageData(0,0,r.width(_),r.height(_)).data})}function c(_,A){return m(_,A||{}).then(function(R){return R.toDataURL()})}function f(_,A){return A=A||{},m(_,A).then(function(R){return R.toDataURL("image/jpeg",A.quality||1)})}function h(_,A){return m(_,A||{}).then(r.canvasToBlob)}function d(_){typeof _.imagePlaceholder>"u"?s.impl.options.imagePlaceholder=a.imagePlaceholder:s.impl.options.imagePlaceholder=_.imagePlaceholder,typeof _.cacheBust>"u"?s.impl.options.cacheBust=a.cacheBust:s.impl.options.cacheBust=_.cacheBust}function m(_,A){return l(_,A).then(r.makeImage).then(r.delay(100)).then(function(L){var U=R(_);return U.getContext("2d").drawImage(L,0,0),U});function R(L){var U=document.createElement("canvas");if(U.width=A.width||r.width(L),U.height=A.height||r.height(L),A.bgcolor){var B=U.getContext("2d");B.fillStyle=A.bgcolor,B.fillRect(0,0,U.width,U.height)}return U}}function p(_,A,R){if(!R&&A&&!A(_))return Promise.resolve();return Promise.resolve(_).then(L).then(function(V){return U(_,V,A)}).then(function(V){return B(_,V)});function L(V){return V instanceof HTMLCanvasElement?r.makeImage(V.toDataURL()):V.cloneNode(!1)}function U(V,Y,ne){var me=V.childNodes;if(me.length===0)return Promise.resolve(Y);return xe(Y,r.asArray(me),ne).then(function(){return Y});function xe(_e,ie,ae){var K=Promise.resolve();return ie.forEach(function(C){K=K.then(function(){return p(C,ae)}).then(function(N){N&&_e.appendChild(N)})}),K}}function B(V,Y){if(!(Y instanceof Element))return Y;return Promise.resolve().then(ne).then(me).then(xe).then(_e).then(function(){return Y});function ne(){ie(window.getComputedStyle(V),Y.style);function ie(ae,K){ae.cssText?K.cssText=ae.cssText:C(ae,K);function C(N,k){r.asArray(N).forEach(function(F){k.setProperty(F,N.getPropertyValue(F),N.getPropertyPriority(F))})}}}function me(){[":before",":after"].forEach(function(ae){ie(ae)});function ie(ae){var K=window.getComputedStyle(V,ae),C=K.getPropertyValue("content");if(C===""||C==="none")return;var N=r.uid();Y.className=Y.className+" "+N;var k=document.createElement("style");k.appendChild(F(N,ae,K)),Y.appendChild(k);function F(H,z,J){var Z="."+H+":"+z,te=J.cssText?ye(J):pe(J);return document.createTextNode(Z+"{"+te+"}");function ye(Pe){var Ee=Pe.getPropertyValue("content");return Pe.cssText+" content: "+Ee+";"}function pe(Pe){return r.asArray(Pe).map(Ee).join("; ")+";";function Ee(et){return et+": "+Pe.getPropertyValue(et)+(Pe.getPropertyPriority(et)?" !important":"")}}}}}function xe(){V instanceof HTMLTextAreaElement&&(Y.innerHTML=V.value),V instanceof HTMLInputElement&&Y.setAttribute("value",V.value)}function _e(){Y instanceof SVGElement&&(Y.setAttribute("xmlns","http://www.w3.org/2000/svg"),Y instanceof SVGRectElement&&["width","height"].forEach(function(ie){var ae=Y.getAttribute(ie);ae&&Y.style.setProperty(ie,ae)}))}}}function g(_){return i.resolveAll().then(function(A){var R=document.createElement("style");return _.appendChild(R),R.appendChild(document.createTextNode(A)),_})}function v(_){return o.inlineAll(_).then(function(){return _})}function w(_,A,R){return Promise.resolve(_).then(function(L){return L.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),new XMLSerializer().serializeToString(L)}).then(r.escapeXhtml).then(function(L){return'<foreignObject x="0" y="0" width="100%" height="100%">'+L+"</foreignObject>"}).then(function(L){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+A+'" height="'+R+'">'+L+"</svg>"}).then(function(L){return"data:image/svg+xml;charset=utf-8,"+L})}function y(){return{escape:_e,parseExtension:A,mimeType:R,dataAsUrl:xe,isDataUrl:L,canvasToBlob:B,resolveUrl:V,getAndEncode:me,uid:Y(),delay:ie,asArray:ae,escapeXhtml:K,makeImage:ne,width:C,height:N};function _(){var F="application/font-woff",H="image/jpeg";return{woff:F,woff2:F,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:H,jpeg:H,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function A(F){var H=/\.([^\.\/]*?)$/g.exec(F);return H?H[1]:""}function R(F){var H=A(F).toLowerCase();return _()[H]||""}function L(F){return F.search(/^(data:)/)!==-1}function U(F){return new Promise(function(H){for(var z=window.atob(F.toDataURL().split(",")[1]),J=z.length,Z=new Uint8Array(J),te=0;te<J;te++)Z[te]=z.charCodeAt(te);H(new Blob([Z],{type:"image/png"}))})}function B(F){return F.toBlob?new Promise(function(H){F.toBlob(H)}):U(F)}function V(F,H){var z=document.implementation.createHTMLDocument(),J=z.createElement("base");z.head.appendChild(J);var Z=z.createElement("a");return z.body.appendChild(Z),J.href=H,Z.href=F,Z.href}function Y(){var F=0;return function(){return"u"+H()+F++;function H(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function ne(F){return new Promise(function(H,z){var J=new Image;J.onload=function(){H(J)},J.onerror=z,J.src=F})}function me(F){var H=3e4;return s.impl.options.cacheBust&&(F+=(/\?/.test(F)?"&":"?")+new Date().getTime()),new Promise(function(z){var J=new XMLHttpRequest;J.onreadystatechange=ye,J.ontimeout=pe,J.responseType="blob",J.timeout=H,J.open("GET",F,!0),J.send();var Z;if(s.impl.options.imagePlaceholder){var te=s.impl.options.imagePlaceholder.split(/,/);te&&te[1]&&(Z=te[1])}function ye(){if(J.readyState===4){if(J.status!==200){Z?z(Z):Pe("cannot fetch resource: "+F+", status: "+J.status);return}var Ee=new FileReader;Ee.onloadend=function(){var et=Ee.result.split(/,/)[1];z(et)},Ee.readAsDataURL(J.response)}}function pe(){Z?z(Z):Pe("timeout of "+H+"ms occured while fetching resource: "+F)}function Pe(Ee){console.error(Ee),z("")}})}function xe(F,H){return"data:"+H+";base64,"+F}function _e(F){return F.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function ie(F){return function(H){return new Promise(function(z){setTimeout(function(){z(H)},F)})}}function ae(F){for(var H=[],z=F.length,J=0;J<z;J++)H.push(F[J]);return H}function K(F){return F.replace(/#/g,"%23").replace(/\n/g,"%0A")}function C(F){var H=k(F,"border-left-width"),z=k(F,"border-right-width");return F.scrollWidth+H+z}function N(F){var H=k(F,"border-top-width"),z=k(F,"border-bottom-width");return F.scrollHeight+H+z}function k(F,H){var z=window.getComputedStyle(F).getPropertyValue(H);return parseFloat(z.replace("px",""))}}function S(){var _=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:U,shouldProcess:A,impl:{readUrls:R,inline:L}};function A(B){return B.search(_)!==-1}function R(B){for(var V=[],Y;(Y=_.exec(B))!==null;)V.push(Y[1]);return V.filter(function(ne){return!r.isDataUrl(ne)})}function L(B,V,Y,ne){return Promise.resolve(V).then(function(xe){return Y?r.resolveUrl(xe,Y):xe}).then(ne||r.getAndEncode).then(function(xe){return r.dataAsUrl(xe,r.mimeType(V))}).then(function(xe){return B.replace(me(V),"$1"+xe+"$3")});function me(xe){return new RegExp(`(url\\(['"]?)(`+r.escape(xe)+`)(['"]?\\))`,"g")}}function U(B,V,Y){if(ne())return Promise.resolve(B);return Promise.resolve(B).then(R).then(function(me){var xe=Promise.resolve(B);return me.forEach(function(_e){xe=xe.then(function(ie){return L(ie,_e,V,Y)})}),xe});function ne(){return!A(B)}}}function b(){return{resolveAll:_,impl:{readAll:A}};function _(){return A().then(function(R){return Promise.all(R.map(function(L){return L.resolve()}))}).then(function(R){return R.join(`
+`)})}function A(){return Promise.resolve(r.asArray(document.styleSheets)).then(L).then(R).then(function(B){return B.map(U)});function R(B){return B.filter(function(V){return V.type===CSSRule.FONT_FACE_RULE}).filter(function(V){return n.shouldProcess(V.style.getPropertyValue("src"))})}function L(B){var V=[];return B.forEach(function(Y){try{r.asArray(Y.cssRules||[]).forEach(V.push.bind(V))}catch(ne){console.log("Error while reading CSS rules from "+Y.href,ne.toString())}}),V}function U(B){return{resolve:function(){var Y=(B.parentStyleSheet||{}).href;return n.inlineAll(B.cssText,Y)},src:function(){return B.style.getPropertyValue("src")}}}}}function M(){return{inlineAll:A,impl:{newImage:_}};function _(R){return{inline:L};function L(U){return r.isDataUrl(R.src)?Promise.resolve():Promise.resolve(R.src).then(U||r.getAndEncode).then(function(B){return r.dataAsUrl(B,r.mimeType(R.src))}).then(function(B){return new Promise(function(V,Y){R.onload=V,R.onerror=Y,R.src=B})})}}function A(R){if(!(R instanceof Element))return Promise.resolve(R);return L(R).then(function(){return R instanceof HTMLImageElement?_(R).inline():Promise.all(r.asArray(R.childNodes).map(function(U){return A(U)}))});function L(U){var B=U.style.getPropertyValue("background");return B?n.inlineAll(B).then(function(V){U.style.setProperty("background",V,U.style.getPropertyPriority("background"))}).then(function(){return U}):Promise.resolve(U)}}}})()})(zC);const GC=Mf;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Ol={};Ol.version="0.18.5";var Kv=1252,jC=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Yv=function(e){jC.indexOf(e)!=-1&&(Kv=e)};function XC(){Yv(1252)}var Ia=function(e){Yv(e)};function KC(){Ia(1200),XC()}function YC(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var Ts=function(t){return String.fromCharCode(t)},Yp=function(t){return String.fromCharCode(t)},zn,pn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ka(e){for(var t="",r=0,n=0,i=0,o=0,a=0,s=0,l=0,u=0;u<e.length;)r=e.charCodeAt(u++),o=r>>2,n=e.charCodeAt(u++),a=(r&3)<<4|n>>4,i=e.charCodeAt(u++),s=(n&15)<<2|i>>6,l=i&63,isNaN(n)?s=l=64:isNaN(i)&&(l=64),t+=pn.charAt(o)+pn.charAt(a)+pn.charAt(s)+pn.charAt(l);return t}function Jr(e){var t="",r=0,n=0,i=0,o=0,a=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<e.length;)o=pn.indexOf(e.charAt(u++)),a=pn.indexOf(e.charAt(u++)),r=o<<2|a>>4,t+=String.fromCharCode(r),s=pn.indexOf(e.charAt(u++)),n=(a&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=pn.indexOf(e.charAt(u++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var be=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),on=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function ri(e){return be?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function qp(e){return be?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var wr=function(t){return be?on(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function hu(e){if(typeof ArrayBuffer>"u")return wr(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Ka(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function qC(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var mt=be?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:on(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),i=0;for(t=0,r=0;t<e.length;r+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(o){return Array.isArray(o)?o:[].slice.call(o)}))};function QC(e){for(var t=[],r=0,n=e.length+250,i=ri(e.length+255),o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a<128)i[r++]=a;else if(a<2048)i[r++]=192|a>>6&31,i[r++]=128|a&63;else if(a>=55296&&a<57344){a=(a&1023)+64;var s=e.charCodeAt(++o)&1023;i[r++]=240|a>>8&7,i[r++]=128|a>>2&63,i[r++]=128|s>>6&15|(a&3)<<4,i[r++]=128|s&63}else i[r++]=224|a>>12&15,i[r++]=128|a>>6&63,i[r++]=128|a&63;r>n&&(t.push(i.slice(0,r)),r=0,i=ri(65535),n=65530)}return t.push(i.slice(0,r)),mt(t)}var ua=/\u0000/g,Cs=/[\u0001-\u0006]/g;function Yi(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Er(e,t){var r=""+e;return r.length>=t?r:qe("0",t-r.length)+r}function ud(e,t){var r=""+e;return r.length>=t?r:qe(" ",t-r.length)+r}function Fl(e,t){var r=""+e;return r.length>=t?r:r+qe(" ",t-r.length)}function ZC(e,t){var r=""+Math.round(e);return r.length>=t?r:qe("0",t-r.length)+r}function JC(e,t){var r=""+e;return r.length>=t?r:qe("0",t-r.length)+r}var Qp=Math.pow(2,32);function Ci(e,t){if(e>Qp||e<-Qp)return ZC(e,t);var r=Math.round(e);return JC(r,t)}function Pl(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var Zp=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],xc=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function e4(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Je={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},Jp={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},t4={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Dl(e,t,r){for(var n=e<0?-1:1,i=e*n,o=0,a=1,s=0,l=1,u=0,c=0,f=Math.floor(i);u<t&&(f=Math.floor(i),s=f*a+o,c=f*u+l,!(i-f<5e-8));)i=1/(i-f),o=a,a=s,l=u,u=c;if(c>t&&(u>t?(c=l,s=o):(c=u,s=a)),!r)return[0,n*s,c];var h=Math.floor(n*s/c);return[h,n*s-h*c,c]}function As(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),o=0,a=[],s={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++i==86400&&(s.T=i=0,++n,++s.D)),n===60)a=r?[1317,10,29]:[1900,2,29],o=3;else if(n===0)a=r?[1317,8,29]:[1900,1,0],o=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),n<60&&(o=(o+6)%7),r&&(o=l4(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}var qv=new Date(1899,11,31,0,0,0),r4=qv.getTime(),n4=new Date(1900,2,1,0,0,0);function Qv(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=n4&&(r+=24*60*60*1e3),(r-(r4+(e.getTimezoneOffset()-qv.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function cd(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function i4(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function o4(e){var t=e<0?12:11,r=cd(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function a4(e){var t=cd(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function s4(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=o4(e):t===10?r=e.toFixed(10).substr(0,12):r=a4(e),cd(i4(r.toUpperCase()))}function Lf(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):s4(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return kn(14,Qv(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function l4(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function u4(e,t,r,n){var i="",o=0,a=0,s=r.y,l,u=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,u=2;break;default:l=s%1e4,u=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,u=t.length;break;case 3:return xc[r.m-1][1];case 5:return xc[r.m-1][0];default:return xc[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,u=t.length;break;case 3:return Zp[r.q][0];default:return Zp[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?Er(r.S,t.length):(n>=2?a=n===3?1e3:100:a=n===1?10:1,o=Math.round(a*(r.S+r.u)),o>=60*a&&(o=0),t==="s"?o===0?"0":""+o/a:(i=Er(o,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}u=t.length===3?1:2;break;case 101:l=s,u=1;break}var c=u>0?Er(l,u):"";return c}function gn(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var Zv=/%/g;function c4(e,t,r){var n=t.replace(Zv,""),i=t.length-n.length;return Kr(e,n,r*Math.pow(10,2*i))+qe("%",i)}function f4(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Kr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function Jv(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+Jv(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),r=(t/Math.pow(10,o)).toPrecision(n+1+(i+o)%i),r.indexOf("e")===-1){var a=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+o):r+="E+"+(a-o);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+o)%i)+"."+c.substr(o)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var ex=/# (\?+)( ?)\/( ?)(\d+)/;function d4(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),o=Math.floor(i/n),a=i-o*n,s=n;return r+(o===0?"":""+o)+" "+(a===0?qe(" ",e[1].length+1+e[4].length):ud(a,e[1].length)+e[2]+"/"+e[3]+Er(s,e[4].length))}function h4(e,t,r){return r+(t===0?"":""+t)+qe(" ",e[1].length+2+e[4].length)}var tx=/^#*0*\.([0#]+)/,rx=/\).*[0#]/,nx=/\(###\) ###\\?-####/;function Pt(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function eg(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function tg(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function p4(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function g4(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function rr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(rx)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?rr("n",n,r):"("+rr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return f4(e,t,r);if(t.indexOf("%")!==-1)return c4(e,t,r);if(t.indexOf("E")!==-1)return Jv(t,r);if(t.charCodeAt(0)===36)return"$"+rr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,o,a,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Ci(l,t.length);if(t.match(/^[#?]+$/))return i=Ci(r,0),i==="0"&&(i=""),i.length>t.length?i:Pt(t.substr(0,t.length-i.length))+i;if(o=t.match(ex))return d4(o,l,u);if(t.match(/^#+0+$/))return u+Ci(l,t.length-t.indexOf("0"));if(o=t.match(tx))return i=eg(r,o[1].length).replace(/^([^\.]+)$/,"$1."+Pt(o[1])).replace(/\.$/,"."+Pt(o[1])).replace(/\.(\d*)$/,function(m,p){return"."+p+qe("0",Pt(o[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return u+eg(l,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return u+gn(Ci(l,0));if(o=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+rr(e,t,-r):gn(""+(Math.floor(r)+p4(r,o[1].length)))+"."+Er(tg(r,o[1].length),o[1].length);if(o=t.match(/^#,#*,#0/))return rr(e,t.replace(/^#,#*,/,""),r);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Yi(rr(e,t.replace(/[\\-]/g,""),r)),a=0,Yi(Yi(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a<i.length?i.charAt(a++):m==="0"?"0":""}));if(t.match(nx))return i=rr(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(o=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=Dl(l,Math.pow(10,a)-1,!1),i=""+u,c=Kr("n",o[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+o[2]+"/"+o[3],c=Fl(s[2],a),c.length<o[4].length&&(c=Pt(o[4].substr(o[4].length-c.length))+c),i+=c,i;if(o=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),s=Dl(l,Math.pow(10,a)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?ud(s[1],a)+o[2]+"/"+o[3]+Fl(s[2],a):qe(" ",2*a+1+o[2].length+o[3].length));if(o=t.match(/^[#0?]+$/))return i=Ci(r,0),t.length<=i.length?i:Pt(t.substr(0,t.length-i.length))+i;if(o=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),a=i.indexOf(".");var f=t.indexOf(".")-a,h=t.length-i.length-f;return Pt(t.substr(0,f)+i+t.substr(t.length-h))}if(o=t.match(/^00,000\.([#0]*0)$/))return a=tg(r,o[1].length),r<0?"-"+rr(e,t,-r):gn(g4(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Er(0,3-m.length):"")+m})+"."+Er(a,o[1].length);switch(t){case"###,##0.00":return rr(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=gn(Ci(l,0));return d!=="0"?u+d:"";case"###,###.00":return rr(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return rr(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function m4(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Kr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function v4(e,t,r){var n=t.replace(Zv,""),i=t.length-n.length;return Kr(e,n,r*Math.pow(10,2*i))+qe("%",i)}function ix(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+ix(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),r=(t/Math.pow(10,o)).toPrecision(n+1+(i+o)%i),!r.match(/[Ee]/)){var a=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(a-r.length+o):r+="E+"+(a-o),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+o)%i)+"."+c.substr(o)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function Tr(e,t,r){if(e.charCodeAt(0)===40&&!t.match(rx)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Tr("n",n,r):"("+Tr("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return m4(e,t,r);if(t.indexOf("%")!==-1)return v4(e,t,r);if(t.indexOf("E")!==-1)return ix(t,r);if(t.charCodeAt(0)===36)return"$"+Tr(e,t.substr(t.charAt(1)==" "?2:1),r);var i,o,a,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Er(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:Pt(t.substr(0,t.length-i.length))+i;if(o=t.match(ex))return h4(o,l,u);if(t.match(/^#+0+$/))return u+Er(l,t.length-t.indexOf("0"));if(o=t.match(tx))return i=(""+r).replace(/^([^\.]+)$/,"$1."+Pt(o[1])).replace(/\.$/,"."+Pt(o[1])),i=i.replace(/\.(\d*)$/,function(m,p){return"."+p+qe("0",Pt(o[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return u+gn(""+l);if(o=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Tr(e,t,-r):gn(""+r)+"."+qe("0",o[1].length);if(o=t.match(/^#,#*,#0/))return Tr(e,t.replace(/^#,#*,/,""),r);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Yi(Tr(e,t.replace(/[\\-]/g,""),r)),a=0,Yi(Yi(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a<i.length?i.charAt(a++):m==="0"?"0":""}));if(t.match(nx))return i=Tr(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(o=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(o[4].length,7),s=Dl(l,Math.pow(10,a)-1,!1),i=""+u,c=Kr("n",o[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+o[2]+"/"+o[3],c=Fl(s[2],a),c.length<o[4].length&&(c=Pt(o[4].substr(o[4].length-c.length))+c),i+=c,i;if(o=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return a=Math.min(Math.max(o[1].length,o[4].length),7),s=Dl(l,Math.pow(10,a)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?ud(s[1],a)+o[2]+"/"+o[3]+Fl(s[2],a):qe(" ",2*a+1+o[2].length+o[3].length));if(o=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:Pt(t.substr(0,t.length-i.length))+i;if(o=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(o[2].length,10)).replace(/([^0])0+$/,"$1"),a=i.indexOf(".");var f=t.indexOf(".")-a,h=t.length-i.length-f;return Pt(t.substr(0,f)+i+t.substr(t.length-h))}if(o=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Tr(e,t,-r):gn(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(m){return"00,"+(m.length<3?Er(0,3-m.length):"")+m})+"."+Er(0,o[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=gn(""+l);return d!=="0"?u+d:"";default:if(t.match(/\.[0#?]*$/))return Tr(e,t.slice(0,t.lastIndexOf(".")),r)+Pt(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Kr(e,t,r){return(r|0)===r?Tr(e,t,r):rr(e,t,r)}function x4(e){for(var t=[],r=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(i,n-i),i=n+1}if(t[t.length]=e.substr(i),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var ox=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function ax(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Pl(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(ox))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function w4(e,t,r,n){for(var i=[],o="",a=0,s="",l="t",u,c,f,h="H";a<e.length;)switch(s=e.charAt(a)){case"G":if(!Pl(e,a))throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"G",v:"General"},a+=7;break;case'"':for(o="";(f=e.charCodeAt(++a))!==34&&a<e.length;)o+=String.fromCharCode(f);i[i.length]={t:"t",v:o},++a;break;case"\\":var d=e.charAt(++a),m=d==="("||d===")"?d:"t";i[i.length]={t:m,v:d},++a;break;case"_":i[i.length]={t:"t",v:" "},a+=2;break;case"@":i[i.length]={t:"T",v:t},++a;break;case"B":case"b":if(e.charAt(a+1)==="1"||e.charAt(a+1)==="2"){if(u==null&&(u=As(t,r,e.charAt(a+1)==="2"),u==null))return"";i[i.length]={t:"X",v:e.substr(a,2)},l=s,a+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||u==null&&(u=As(t,r),u==null))return"";for(o=s;++a<e.length&&e.charAt(a).toLowerCase()===s;)o+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=h),i[i.length]={t:s,v:o},l=s;break;case"A":case"a":case"上":var p={t:s,v:s};if(u==null&&(u=As(t,r)),e.substr(a,3).toUpperCase()==="A/P"?(u!=null&&(p.v=u.H>=12?"P":"A"),p.t="T",h="h",a+=3):e.substr(a,5).toUpperCase()==="AM/PM"?(u!=null&&(p.v=u.H>=12?"PM":"AM"),p.t="T",a+=5,h="h"):e.substr(a,5).toUpperCase()==="上午/下午"?(u!=null&&(p.v=u.H>=12?"下午":"上午"),p.t="T",a+=5,h="h"):(p.t="t",++a),u==null&&p.t==="T")return"";i[i.length]=p,l=s;break;case"[":for(o=s;e.charAt(a++)!=="]"&&a<e.length;)o+=e.charAt(a);if(o.slice(-1)!=="]")throw'unterminated "[" block: |'+o+"|";if(o.match(ox)){if(u==null&&(u=As(t,r),u==null))return"";i[i.length]={t:"Z",v:o.toLowerCase()},l=o.charAt(1)}else o.indexOf("$")>-1&&(o=(o.match(/\$([^-\[\]]*)/)||[])[1]||"$",ax(e)||(i[i.length]={t:"t",v:o}));break;case".":if(u!=null){for(o=s;++a<e.length&&(s=e.charAt(a))==="0";)o+=s;i[i.length]={t:"s",v:o};break}case"0":case"#":for(o=s;++a<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(a))>-1;)o+=s;i[i.length]={t:"n",v:o};break;case"?":for(o=s;e.charAt(++a)===s;)o+=s;i[i.length]={t:s,v:o},l=s;break;case"*":++a,(e.charAt(a)==" "||e.charAt(a)=="*")&&++a;break;case"(":case")":i[i.length]={t:n===1?"t":s,v:s},++a;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(o=s;a<e.length&&"0123456789".indexOf(e.charAt(++a))>-1;)o+=e.charAt(a);i[i.length]={t:"D",v:o};break;case" ":i[i.length]={t:s,v:s},++a;break;case"$":i[i.length]={t:"t",v:"$"},++a;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"t",v:s},++a;break}var g=0,v=0,w;for(a=i.length-1,l="t";a>=0;--a)switch(i[a].t){case"h":case"H":i[a].t=h,l="h",g<1&&(g=1);break;case"s":(w=i[a].v.match(/\.0+$/))&&(v=Math.max(v,w[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":l=i[a].t;break;case"m":l==="s"&&(i[a].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&i[a].v.match(/[Hh]/)&&(g=1),g<2&&i[a].v.match(/[Mm]/)&&(g=2),g<3&&i[a].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var y="",S;for(a=0;a<i.length;++a)switch(i[a].t){case"t":case"T":case" ":case"D":break;case"X":i[a].v="",i[a].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[a].v=u4(i[a].t.charCodeAt(0),i[a].v,u,v),i[a].t="t";break;case"n":case"?":for(S=a+1;i[S]!=null&&((s=i[S].t)==="?"||s==="D"||(s===" "||s==="t")&&i[S+1]!=null&&(i[S+1].t==="?"||i[S+1].t==="t"&&i[S+1].v==="/")||i[a].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(i[S].v==="/"||i[S].v===" "&&i[S+1]!=null&&i[S+1].t=="?"));)i[a].v+=i[S].v,i[S]={v:"",t:";"},++S;y+=i[a].v,a=S-1;break;case"G":i[a].t="t",i[a].v=Lf(t,r);break}var b="",M,_;if(y.length>0){y.charCodeAt(0)==40?(M=t<0&&y.charCodeAt(0)===45?-t:t,_=Kr("n",y,M)):(M=t<0&&n>1?-t:t,_=Kr("n",y,M),M<0&&i[0]&&i[0].t=="t"&&(_=_.substr(1),i[0].v="-"+i[0].v)),S=_.length-1;var A=i.length;for(a=0;a<i.length;++a)if(i[a]!=null&&i[a].t!="t"&&i[a].v.indexOf(".")>-1){A=a;break}var R=i.length;if(A===i.length&&_.indexOf("E")===-1){for(a=i.length-1;a>=0;--a)i[a]==null||"n?".indexOf(i[a].t)===-1||(S>=i[a].v.length-1?(S-=i[a].v.length,i[a].v=_.substr(S+1,i[a].v.length)):S<0?i[a].v="":(i[a].v=_.substr(0,S+1),S=-1),i[a].t="t",R=a);S>=0&&R<i.length&&(i[R].v=_.substr(0,S+1)+i[R].v)}else if(A!==i.length&&_.indexOf("E")===-1){for(S=_.indexOf(".")-1,a=A;a>=0;--a)if(!(i[a]==null||"n?".indexOf(i[a].t)===-1)){for(c=i[a].v.indexOf(".")>-1&&a===A?i[a].v.indexOf(".")-1:i[a].v.length-1,b=i[a].v.substr(c+1);c>=0;--c)S>=0&&(i[a].v.charAt(c)==="0"||i[a].v.charAt(c)==="#")&&(b=_.charAt(S--)+b);i[a].v=b,i[a].t="t",R=a}for(S>=0&&R<i.length&&(i[R].v=_.substr(0,S+1)+i[R].v),S=_.indexOf(".")+1,a=A;a<i.length;++a)if(!(i[a]==null||"n?(".indexOf(i[a].t)===-1&&a!==A)){for(c=i[a].v.indexOf(".")>-1&&a===A?i[a].v.indexOf(".")+1:0,b=i[a].v.substr(0,c);c<i[a].v.length;++c)S<_.length&&(b+=_.charAt(S++));i[a].v=b,i[a].t="t",R=a}}}for(a=0;a<i.length;++a)i[a]!=null&&"n?".indexOf(i[a].t)>-1&&(M=n>1&&t<0&&a>0&&i[a-1].v==="-"?-t:t,i[a].v=Kr(i[a].t,i[a].v,M),i[a].t="t");var L="";for(a=0;a!==i.length;++a)i[a]!=null&&(L+=i[a].v);return L}var rg=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function ng(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function y4(e,t){var r=x4(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var o=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,o];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var a=r[0].match(rg),s=r[1].match(rg);return ng(t,a)?[n,r[0]]:ng(t,s)?[n,r[1]]:[n,r[a!=null&&s!=null?2:1]]}return[n,o]}function kn(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Je)[e],n==null&&(n=r.table&&r.table[Jp[e]]||Je[Jp[e]]),n==null&&(n=t4[e]||"General");break}if(Pl(n,0))return Lf(t,r);t instanceof Date&&(t=Qv(t,r.date1904));var i=y4(n,t);if(Pl(i[1]))return Lf(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return w4(i[1],t,r,i[0])}function sx(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Je[r]==null){t<0&&(t=r);continue}if(Je[r]==e){t=r;break}}t<0&&(t=391)}return Je[t]=e,t}function pu(e){for(var t=0;t!=392;++t)e[t]!==void 0&&sx(e[t],t)}function gu(){Je=e4()}var lx=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function E4(e){var t=typeof e=="number"?Je[e]:e;return t=t.replace(lx,"(\\d+)"),new RegExp("^"+t+"$")}function S4(e,t,r){var n=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(lx)||[]).forEach(function(f,h){var d=parseInt(r[h+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=d;break;case"d":o=d;break;case"h":a=d;break;case"s":l=d;break;case"m":a>=0?s=d:i=d;break}}),l>=0&&s==-1&&i>=0&&(s=i,i=-1);var u=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var c=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return a==-1&&s==-1&&l==-1?u:n==-1&&i==-1&&o==-1?c:u+"T"+c}var _4=function(){var e={};e.version="1.2.0";function t(){for(var _=0,A=new Array(256),R=0;R!=256;++R)_=R,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,A[R]=_;return typeof Int32Array<"u"?new Int32Array(A):A}var r=t();function n(_){var A=0,R=0,L=0,U=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(L=0;L!=256;++L)U[L]=_[L];for(L=0;L!=256;++L)for(R=_[L],A=256+L;A<4096;A+=256)R=U[A]=R>>>8^_[R&255];var B=[];for(L=1;L!=16;++L)B[L-1]=typeof Int32Array<"u"?U.subarray(L*256,L*256+256):U.slice(L*256,L*256+256);return B}var i=n(r),o=i[0],a=i[1],s=i[2],l=i[3],u=i[4],c=i[5],f=i[6],h=i[7],d=i[8],m=i[9],p=i[10],g=i[11],v=i[12],w=i[13],y=i[14];function S(_,A){for(var R=A^-1,L=0,U=_.length;L<U;)R=R>>>8^r[(R^_.charCodeAt(L++))&255];return~R}function b(_,A){for(var R=A^-1,L=_.length-15,U=0;U<L;)R=y[_[U++]^R&255]^w[_[U++]^R>>8&255]^v[_[U++]^R>>16&255]^g[_[U++]^R>>>24]^p[_[U++]]^m[_[U++]]^d[_[U++]]^h[_[U++]]^f[_[U++]]^c[_[U++]]^u[_[U++]]^l[_[U++]]^s[_[U++]]^a[_[U++]]^o[_[U++]]^r[_[U++]];for(L+=15;U<L;)R=R>>>8^r[(R^_[U++])&255];return~R}function M(_,A){for(var R=A^-1,L=0,U=_.length,B=0,V=0;L<U;)B=_.charCodeAt(L++),B<128?R=R>>>8^r[(R^B)&255]:B<2048?(R=R>>>8^r[(R^(192|B>>6&31))&255],R=R>>>8^r[(R^(128|B&63))&255]):B>=55296&&B<57344?(B=(B&1023)+64,V=_.charCodeAt(L++)&1023,R=R>>>8^r[(R^(240|B>>8&7))&255],R=R>>>8^r[(R^(128|B>>2&63))&255],R=R>>>8^r[(R^(128|V>>6&15|(B&3)<<4))&255],R=R>>>8^r[(R^(128|V&63))&255]):(R=R>>>8^r[(R^(224|B>>12&15))&255],R=R>>>8^r[(R^(128|B>>6&63))&255],R=R>>>8^r[(R^(128|B&63))&255]);return~R}return e.table=r,e.bstr=S,e.buf=b,e.str=M,e}(),Ue=function(){var t={};t.version="1.2.1";function r(E,P){for(var T=E.split("/"),O=P.split("/"),D=0,I=0,G=Math.min(T.length,O.length);D<G;++D){if(I=T[D].length-O[D].length)return I;if(T[D]!=O[D])return T[D]<O[D]?-1:1}return T.length-O.length}function n(E){if(E.charAt(E.length-1)=="/")return E.slice(0,-1).indexOf("/")===-1?E:n(E.slice(0,-1));var P=E.lastIndexOf("/");return P===-1?E:E.slice(0,P+1)}function i(E){if(E.charAt(E.length-1)=="/")return i(E.slice(0,-1));var P=E.lastIndexOf("/");return P===-1?E:E.slice(P+1)}function o(E,P){typeof P=="string"&&(P=new Date(P));var T=P.getHours();T=T<<6|P.getMinutes(),T=T<<5|P.getSeconds()>>>1,E.write_shift(2,T);var O=P.getFullYear()-1980;O=O<<4|P.getMonth()+1,O=O<<5|P.getDate(),E.write_shift(2,O)}function a(E){var P=E.read_shift(2)&65535,T=E.read_shift(2)&65535,O=new Date,D=T&31;T>>>=5;var I=T&15;T>>>=4,O.setMilliseconds(0),O.setFullYear(T+1980),O.setMonth(I-1),O.setDate(D);var G=P&31;P>>>=5;var ee=P&63;return P>>>=6,O.setHours(P),O.setMinutes(ee),O.setSeconds(G<<1),O}function s(E){Kt(E,0);for(var P={},T=0;E.l<=E.length-4;){var O=E.read_shift(2),D=E.read_shift(2),I=E.l+D,G={};switch(O){case 21589:T=E.read_shift(1),T&1&&(G.mtime=E.read_shift(4)),D>5&&(T&2&&(G.atime=E.read_shift(4)),T&4&&(G.ctime=E.read_shift(4))),G.mtime&&(G.mt=new Date(G.mtime*1e3));break}E.l=I,P[O]=G}return P}var l;function u(){return l||(l={})}function c(E,P){if(E[0]==80&&E[1]==75)return Yd(E,P);if((E[0]|32)==109&&(E[1]|32)==105)return Vw(E,P);if(E.length<512)throw new Error("CFB file size "+E.length+" < 512");var T=3,O=512,D=0,I=0,G=0,ee=0,W=0,j=[],X=E.slice(0,512);Kt(X,0);var oe=f(X);switch(T=oe[0],T){case 3:O=512;break;case 4:O=4096;break;case 0:if(oe[1]==0)return Yd(E,P);default:throw new Error("Major Version: Expected 3 or 4 saw "+T)}O!==512&&(X=E.slice(0,O),Kt(X,28));var fe=E.slice(0,O);h(X,T);var ve=X.read_shift(4,"i");if(T===3&&ve!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ve);X.l+=4,G=X.read_shift(4,"i"),X.l+=4,X.chk("00100000","Mini Stream Cutoff Size: "),ee=X.read_shift(4,"i"),D=X.read_shift(4,"i"),W=X.read_shift(4,"i"),I=X.read_shift(4,"i");for(var se=-1,de=0;de<109&&(se=X.read_shift(4,"i"),!(se<0));++de)j[de]=se;var Re=d(E,O);g(W,I,Re,O,j);var Xe=w(Re,G,j,O);Xe[G].name="!Directory",D>0&&ee!==V&&(Xe[ee].name="!MiniFAT"),Xe[j[0]].name="!FAT",Xe.fat_addrs=j,Xe.ssz=O;var Ke={},_t=[],Co=[],Ao=[];y(G,Xe,Re,_t,D,Ke,Co,ee),m(Co,Ao,_t),_t.shift();var Ro={FileIndex:Co,FullPaths:Ao};return P&&P.raw&&(Ro.raw={header:fe,sectors:Re}),Ro}function f(E){if(E[E.l]==80&&E[E.l+1]==75)return[0,0];E.chk(Y,"Header Signature: "),E.l+=16;var P=E.read_shift(2,"u");return[E.read_shift(2,"u"),P]}function h(E,P){var T=9;switch(E.l+=2,T=E.read_shift(2)){case 9:if(P!=3)throw new Error("Sector Shift: Expected 9 saw "+T);break;case 12:if(P!=4)throw new Error("Sector Shift: Expected 12 saw "+T);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+T)}E.chk("0600","Mini Sector Shift: "),E.chk("000000000000","Reserved: ")}function d(E,P){for(var T=Math.ceil(E.length/P)-1,O=[],D=1;D<T;++D)O[D-1]=E.slice(D*P,(D+1)*P);return O[T-1]=E.slice(T*P),O}function m(E,P,T){for(var O=0,D=0,I=0,G=0,ee=0,W=T.length,j=[],X=[];O<W;++O)j[O]=X[O]=O,P[O]=T[O];for(;ee<X.length;++ee)O=X[ee],D=E[O].L,I=E[O].R,G=E[O].C,j[O]===O&&(D!==-1&&j[D]!==D&&(j[O]=j[D]),I!==-1&&j[I]!==I&&(j[O]=j[I])),G!==-1&&(j[G]=O),D!==-1&&O!=j[O]&&(j[D]=j[O],X.lastIndexOf(D)<ee&&X.push(D)),I!==-1&&O!=j[O]&&(j[I]=j[O],X.lastIndexOf(I)<ee&&X.push(I));for(O=1;O<W;++O)j[O]===O&&(I!==-1&&j[I]!==I?j[O]=j[I]:D!==-1&&j[D]!==D&&(j[O]=j[D]));for(O=1;O<W;++O)if(E[O].type!==0){if(ee=O,ee!=j[ee])do ee=j[ee],P[O]=P[ee]+"/"+P[O];while(ee!==0&&j[ee]!==-1&&ee!=j[ee]);j[O]=-1}for(P[0]+="/",O=1;O<W;++O)E[O].type!==2&&(P[O]+="/")}function p(E,P,T){for(var O=E.start,D=E.size,I=[],G=O;T&&D>0&&G>=0;)I.push(P.slice(G*B,G*B+B)),D-=B,G=Gn(T,G*4);return I.length===0?q(0):mt(I).slice(0,E.size)}function g(E,P,T,O,D){var I=V;if(E===V){if(P!==0)throw new Error("DIFAT chain shorter than expected")}else if(E!==-1){var G=T[E],ee=(O>>>2)-1;if(!G)return;for(var W=0;W<ee&&(I=Gn(G,W*4))!==V;++W)D.push(I);g(Gn(G,O-4),P-1,T,O,D)}}function v(E,P,T,O,D){var I=[],G=[];D||(D=[]);var ee=O-1,W=0,j=0;for(W=P;W>=0;){D[W]=!0,I[I.length]=W,G.push(E[W]);var X=T[Math.floor(W*4/O)];if(j=W*4&ee,O<4+j)throw new Error("FAT boundary crossed: "+W+" 4 "+O);if(!E[X])break;W=Gn(E[X],j)}return{nodes:I,data:fg([G])}}function w(E,P,T,O){var D=E.length,I=[],G=[],ee=[],W=[],j=O-1,X=0,oe=0,fe=0,ve=0;for(X=0;X<D;++X)if(ee=[],fe=X+P,fe>=D&&(fe-=D),!G[fe]){W=[];var se=[];for(oe=fe;oe>=0;){se[oe]=!0,G[oe]=!0,ee[ee.length]=oe,W.push(E[oe]);var de=T[Math.floor(oe*4/O)];if(ve=oe*4&j,O<4+ve)throw new Error("FAT boundary crossed: "+oe+" 4 "+O);if(!E[de]||(oe=Gn(E[de],ve),se[oe]))break}I[fe]={nodes:ee,data:fg([W])}}return I}function y(E,P,T,O,D,I,G,ee){for(var W=0,j=O.length?2:0,X=P[E].data,oe=0,fe=0,ve;oe<X.length;oe+=128){var se=X.slice(oe,oe+128);Kt(se,64),fe=se.read_shift(2),ve=gd(se,0,fe-j),O.push(ve);var de={name:ve,type:se.read_shift(1),color:se.read_shift(1),L:se.read_shift(4,"i"),R:se.read_shift(4,"i"),C:se.read_shift(4,"i"),clsid:se.read_shift(16),state:se.read_shift(4,"i"),start:0,size:0},Re=se.read_shift(2)+se.read_shift(2)+se.read_shift(2)+se.read_shift(2);Re!==0&&(de.ct=S(se,se.l-8));var Xe=se.read_shift(2)+se.read_shift(2)+se.read_shift(2)+se.read_shift(2);Xe!==0&&(de.mt=S(se,se.l-8)),de.start=se.read_shift(4,"i"),de.size=se.read_shift(4,"i"),de.size<0&&de.start<0&&(de.size=de.type=0,de.start=V,de.name=""),de.type===5?(W=de.start,D>0&&W!==V&&(P[W].name="!StreamData")):de.size>=4096?(de.storage="fat",P[de.start]===void 0&&(P[de.start]=v(T,de.start,P.fat_addrs,P.ssz)),P[de.start].name=de.name,de.content=P[de.start].data.slice(0,de.size)):(de.storage="minifat",de.size<0?de.size=0:W!==V&&de.start!==V&&P[W]&&(de.content=p(de,P[W].data,(P[ee]||{}).data))),de.content&&Kt(de.content,0),I[ve]=de,G.push(de)}}function S(E,P){return new Date((qt(E,P+4)/1e7*Math.pow(2,32)+qt(E,P)/1e7-11644473600)*1e3)}function b(E,P){return u(),c(l.readFileSync(E),P)}function M(E,P){var T=P&&P.type;switch(T||be&&Buffer.isBuffer(E)&&(T="buffer"),T||"base64"){case"file":return b(E,P);case"base64":return c(wr(Jr(E)),P);case"binary":return c(wr(E),P)}return c(E,P)}function _(E,P){var T=P||{},O=T.root||"Root Entry";if(E.FullPaths||(E.FullPaths=[]),E.FileIndex||(E.FileIndex=[]),E.FullPaths.length!==E.FileIndex.length)throw new Error("inconsistent CFB structure");E.FullPaths.length===0&&(E.FullPaths[0]=O+"/",E.FileIndex[0]={name:O,type:5}),T.CLSID&&(E.FileIndex[0].clsid=T.CLSID),A(E)}function A(E){var P="Sh33tJ5";if(!Ue.find(E,"/"+P)){var T=q(4);T[0]=55,T[1]=T[3]=50,T[2]=54,E.FileIndex.push({name:P,type:2,content:T,size:4,L:69,R:69,C:69}),E.FullPaths.push(E.FullPaths[0]+P),R(E)}}function R(E,P){_(E);for(var T=!1,O=!1,D=E.FullPaths.length-1;D>=0;--D){var I=E.FileIndex[D];switch(I.type){case 0:O?T=!0:(E.FileIndex.pop(),E.FullPaths.pop());break;case 1:case 2:case 5:O=!0,isNaN(I.R*I.L*I.C)&&(T=!0),I.R>-1&&I.L>-1&&I.R==I.L&&(T=!0);break;default:T=!0;break}}if(!(!T&&!P)){var G=new Date(1987,1,19),ee=0,W=Object.create?Object.create(null):{},j=[];for(D=0;D<E.FullPaths.length;++D)W[E.FullPaths[D]]=!0,E.FileIndex[D].type!==0&&j.push([E.FullPaths[D],E.FileIndex[D]]);for(D=0;D<j.length;++D){var X=n(j[D][0]);O=W[X],O||(j.push([X,{name:i(X).replace("/",""),type:1,clsid:me,ct:G,mt:G,content:null}]),W[X]=!0)}for(j.sort(function(ve,se){return r(ve[0],se[0])}),E.FullPaths=[],E.FileIndex=[],D=0;D<j.length;++D)E.FullPaths[D]=j[D][0],E.FileIndex[D]=j[D][1];for(D=0;D<j.length;++D){var oe=E.FileIndex[D],fe=E.FullPaths[D];if(oe.name=i(fe).replace("/",""),oe.L=oe.R=oe.C=-(oe.color=1),oe.size=oe.content?oe.content.length:0,oe.start=0,oe.clsid=oe.clsid||me,D===0)oe.C=j.length>1?1:-1,oe.size=0,oe.type=5;else if(fe.slice(-1)=="/"){for(ee=D+1;ee<j.length&&n(E.FullPaths[ee])!=fe;++ee);for(oe.C=ee>=j.length?-1:ee,ee=D+1;ee<j.length&&n(E.FullPaths[ee])!=n(fe);++ee);oe.R=ee>=j.length?-1:ee,oe.type=1}else n(E.FullPaths[D+1]||"")==n(fe)&&(oe.R=D+1),oe.type=2}}}function L(E,P){var T=P||{};if(T.fileType=="mad")return Ww(E,T);switch(R(E),T.fileType){case"zip":return $w(E,T)}var O=function(ve){for(var se=0,de=0,Re=0;Re<ve.FileIndex.length;++Re){var Xe=ve.FileIndex[Re];if(Xe.content){var Ke=Xe.content.length;Ke>0&&(Ke<4096?se+=Ke+63>>6:de+=Ke+511>>9)}}for(var _t=ve.FullPaths.length+3>>2,Co=se+7>>3,Ao=se+127>>7,Ro=Co+de+_t+Ao,Un=Ro+127>>7,bu=Un<=109?0:Math.ceil((Un-109)/127);Ro+Un+bu+127>>7>Un;)bu=++Un<=109?0:Math.ceil((Un-109)/127);var Mr=[1,bu,Un,Ao,_t,de,se,0];return ve.FileIndex[0].size=se<<6,Mr[7]=(ve.FileIndex[0].start=Mr[0]+Mr[1]+Mr[2]+Mr[3]+Mr[4]+Mr[5])+(Mr[6]+7>>3),Mr}(E),D=q(O[7]<<9),I=0,G=0;{for(I=0;I<8;++I)D.write_shift(1,ne[I]);for(I=0;I<8;++I)D.write_shift(2,0);for(D.write_shift(2,62),D.write_shift(2,3),D.write_shift(2,65534),D.write_shift(2,9),D.write_shift(2,6),I=0;I<3;++I)D.write_shift(2,0);for(D.write_shift(4,0),D.write_shift(4,O[2]),D.write_shift(4,O[0]+O[1]+O[2]+O[3]-1),D.write_shift(4,0),D.write_shift(4,1<<12),D.write_shift(4,O[3]?O[0]+O[1]+O[2]-1:V),D.write_shift(4,O[3]),D.write_shift(-4,O[1]?O[0]-1:V),D.write_shift(4,O[1]),I=0;I<109;++I)D.write_shift(-4,I<O[2]?O[1]+I:-1)}if(O[1])for(G=0;G<O[1];++G){for(;I<236+G*127;++I)D.write_shift(-4,I<O[2]?O[1]+I:-1);D.write_shift(-4,G===O[1]-1?V:G+1)}var ee=function(ve){for(G+=ve;I<G-1;++I)D.write_shift(-4,I+1);ve&&(++I,D.write_shift(-4,V))};for(G=I=0,G+=O[1];I<G;++I)D.write_shift(-4,xe.DIFSECT);for(G+=O[2];I<G;++I)D.write_shift(-4,xe.FATSECT);ee(O[3]),ee(O[4]);for(var W=0,j=0,X=E.FileIndex[0];W<E.FileIndex.length;++W)X=E.FileIndex[W],X.content&&(j=X.content.length,!(j<4096)&&(X.start=G,ee(j+511>>9)));for(ee(O[6]+7>>3);D.l&511;)D.write_shift(-4,xe.ENDOFCHAIN);for(G=I=0,W=0;W<E.FileIndex.length;++W)X=E.FileIndex[W],X.content&&(j=X.content.length,!(!j||j>=4096)&&(X.start=G,ee(j+63>>6)));for(;D.l&511;)D.write_shift(-4,xe.ENDOFCHAIN);for(I=0;I<O[4]<<2;++I){var oe=E.FullPaths[I];if(!oe||oe.length===0){for(W=0;W<17;++W)D.write_shift(4,0);for(W=0;W<3;++W)D.write_shift(4,-1);for(W=0;W<12;++W)D.write_shift(4,0);continue}X=E.FileIndex[I],I===0&&(X.start=X.size?X.start-1:V);var fe=I===0&&T.root||X.name;if(j=2*(fe.length+1),D.write_shift(64,fe,"utf16le"),D.write_shift(2,j),D.write_shift(1,X.type),D.write_shift(1,X.color),D.write_shift(-4,X.L),D.write_shift(-4,X.R),D.write_shift(-4,X.C),X.clsid)D.write_shift(16,X.clsid,"hex");else for(W=0;W<4;++W)D.write_shift(4,0);D.write_shift(4,X.state||0),D.write_shift(4,0),D.write_shift(4,0),D.write_shift(4,0),D.write_shift(4,0),D.write_shift(4,X.start),D.write_shift(4,X.size),D.write_shift(4,0)}for(I=1;I<E.FileIndex.length;++I)if(X=E.FileIndex[I],X.size>=4096)if(D.l=X.start+1<<9,be&&Buffer.isBuffer(X.content))X.content.copy(D,D.l,0,X.size),D.l+=X.size+511&-512;else{for(W=0;W<X.size;++W)D.write_shift(1,X.content[W]);for(;W&511;++W)D.write_shift(1,0)}for(I=1;I<E.FileIndex.length;++I)if(X=E.FileIndex[I],X.size>0&&X.size<4096)if(be&&Buffer.isBuffer(X.content))X.content.copy(D,D.l,0,X.size),D.l+=X.size+63&-64;else{for(W=0;W<X.size;++W)D.write_shift(1,X.content[W]);for(;W&63;++W)D.write_shift(1,0)}if(be)D.l=D.length;else for(;D.l<D.length;)D.write_shift(1,0);return D}function U(E,P){var T=E.FullPaths.map(function(W){return W.toUpperCase()}),O=T.map(function(W){var j=W.split("/");return j[j.length-(W.slice(-1)=="/"?2:1)]}),D=!1;P.charCodeAt(0)===47?(D=!0,P=T[0].slice(0,-1)+P):D=P.indexOf("/")!==-1;var I=P.toUpperCase(),G=D===!0?T.indexOf(I):O.indexOf(I);if(G!==-1)return E.FileIndex[G];var ee=!I.match(Cs);for(I=I.replace(ua,""),ee&&(I=I.replace(Cs,"!")),G=0;G<T.length;++G)if((ee?T[G].replace(Cs,"!"):T[G]).replace(ua,"")==I||(ee?O[G].replace(Cs,"!"):O[G]).replace(ua,"")==I)return E.FileIndex[G];return null}var B=64,V=-2,Y="d0cf11e0a1b11ae1",ne=[208,207,17,224,161,177,26,225],me="00000000000000000000000000000000",xe={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:V,FREESECT:-1,HEADER_SIGNATURE:Y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:me,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function _e(E,P,T){u();var O=L(E,T);l.writeFileSync(P,O)}function ie(E){for(var P=new Array(E.length),T=0;T<E.length;++T)P[T]=String.fromCharCode(E[T]);return P.join("")}function ae(E,P){var T=L(E,P);switch(P&&P.type||"buffer"){case"file":return u(),l.writeFileSync(P.filename,T),T;case"binary":return typeof T=="string"?T:ie(T);case"base64":return ka(typeof T=="string"?T:ie(T));case"buffer":if(be)return Buffer.isBuffer(T)?T:on(T);case"array":return typeof T=="string"?wr(T):T}return T}var K;function C(E){try{var P=E.InflateRaw,T=new P;if(T._processChunk(new Uint8Array([3,0]),T._finishFlushFlag),T.bytesRead)K=E;else throw new Error("zlib does not expose bytesRead")}catch(O){console.error("cannot use native zlib: "+(O.message||O))}}function N(E,P){if(!K)return Xd(E,P);var T=K.InflateRaw,O=new T,D=O._processChunk(E.slice(E.l),O._finishFlushFlag);return E.l+=O.bytesRead,D}function k(E){return K?K.deflateRawSync(E):Hd(E)}var F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],H=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],z=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function J(E){var P=(E<<1|E<<11)&139536|(E<<5|E<<15)&558144;return(P>>16|P>>8|P)&255}for(var Z=typeof Uint8Array<"u",te=Z?new Uint8Array(1<<8):[],ye=0;ye<1<<8;++ye)te[ye]=J(ye);function pe(E,P){var T=te[E&255];return P<=8?T>>>8-P:(T=T<<8|te[E>>8&255],P<=16?T>>>16-P:(T=T<<8|te[E>>16&255],T>>>24-P))}function Pe(E,P){var T=P&7,O=P>>>3;return(E[O]|(T<=6?0:E[O+1]<<8))>>>T&3}function Ee(E,P){var T=P&7,O=P>>>3;return(E[O]|(T<=5?0:E[O+1]<<8))>>>T&7}function et(E,P){var T=P&7,O=P>>>3;return(E[O]|(T<=4?0:E[O+1]<<8))>>>T&15}function Be(E,P){var T=P&7,O=P>>>3;return(E[O]|(T<=3?0:E[O+1]<<8))>>>T&31}function ge(E,P){var T=P&7,O=P>>>3;return(E[O]|(T<=1?0:E[O+1]<<8))>>>T&127}function Mt(E,P,T){var O=P&7,D=P>>>3,I=(1<<T)-1,G=E[D]>>>O;return T<8-O||(G|=E[D+1]<<8-O,T<16-O)||(G|=E[D+2]<<16-O,T<24-O)||(G|=E[D+3]<<24-O),G&I}function St(E,P,T){var O=P&7,D=P>>>3;return O<=5?E[D]|=(T&7)<<O:(E[D]|=T<<O&255,E[D+1]=(T&7)>>8-O),P+3}function jt(E,P,T){var O=P&7,D=P>>>3;return T=(T&1)<<O,E[D]|=T,P+1}function Nr(E,P,T){var O=P&7,D=P>>>3;return T<<=O,E[D]|=T&255,T>>>=8,E[D+1]=T,P+8}function $r(E,P,T){var O=P&7,D=P>>>3;return T<<=O,E[D]|=T&255,T>>>=8,E[D+1]=T&255,E[D+2]=T>>>8,P+16}function To(E,P){var T=E.length,O=2*T>P?2*T:P+5,D=0;if(T>=P)return E;if(be){var I=qp(O);if(E.copy)E.copy(I);else for(;D<E.length;++D)I[D]=E[D];return I}else if(Z){var G=new Uint8Array(O);if(G.set)G.set(E);else for(;D<T;++D)G[D]=E[D];return G}return E.length=O,E}function er(E){for(var P=new Array(E),T=0;T<E;++T)P[T]=0;return P}function rs(E,P,T){var O=1,D=0,I=0,G=0,ee=0,W=E.length,j=Z?new Uint16Array(32):er(32);for(I=0;I<32;++I)j[I]=0;for(I=W;I<T;++I)E[I]=0;W=E.length;var X=Z?new Uint16Array(W):er(W);for(I=0;I<W;++I)j[D=E[I]]++,O<D&&(O=D),X[I]=0;for(j[0]=0,I=1;I<=O;++I)j[I+16]=ee=ee+j[I-1]<<1;for(I=0;I<W;++I)ee=E[I],ee!=0&&(X[I]=j[ee+16]++);var oe=0;for(I=0;I<W;++I)if(oe=E[I],oe!=0)for(ee=pe(X[I],O)>>O-oe,G=(1<<O+4-oe)-1;G>=0;--G)P[ee|G<<oe]=oe&15|I<<4;return O}var Du=Z?new Uint16Array(512):er(512),Iu=Z?new Uint16Array(32):er(32);if(!Z){for(var Bn=0;Bn<512;++Bn)Du[Bn]=0;for(Bn=0;Bn<32;++Bn)Iu[Bn]=0}(function(){for(var E=[],P=0;P<32;P++)E.push(5);rs(E,Iu,32);var T=[];for(P=0;P<=143;P++)T.push(8);for(;P<=255;P++)T.push(9);for(;P<=279;P++)T.push(7);for(;P<=287;P++)T.push(8);rs(T,Du,288)})();var Iw=function(){for(var P=Z?new Uint8Array(32768):[],T=0,O=0;T<z.length-1;++T)for(;O<z[T+1];++O)P[O]=T;for(;O<32768;++O)P[O]=29;var D=Z?new Uint8Array(259):[];for(T=0,O=0;T<H.length-1;++T)for(;O<H[T+1];++O)D[O]=T;function I(ee,W){for(var j=0;j<ee.length;){var X=Math.min(65535,ee.length-j),oe=j+X==ee.length;for(W.write_shift(1,+oe),W.write_shift(2,X),W.write_shift(2,~X&65535);X-- >0;)W[W.l++]=ee[j++]}return W.l}function G(ee,W){for(var j=0,X=0,oe=Z?new Uint16Array(32768):[];X<ee.length;){var fe=Math.min(65535,ee.length-X);if(fe<10){for(j=St(W,j,+(X+fe==ee.length)),j&7&&(j+=8-(j&7)),W.l=j/8|0,W.write_shift(2,fe),W.write_shift(2,~fe&65535);fe-- >0;)W[W.l++]=ee[X++];j=W.l*8;continue}j=St(W,j,+(X+fe==ee.length)+2);for(var ve=0;fe-- >0;){var se=ee[X];ve=(ve<<5^se)&32767;var de=-1,Re=0;if((de=oe[ve])&&(de|=X&-32768,de>X&&(de-=32768),de<X))for(;ee[de+Re]==ee[X+Re]&&Re<250;)++Re;if(Re>2){se=D[Re],se<=22?j=Nr(W,j,te[se+1]>>1)-1:(Nr(W,j,3),j+=5,Nr(W,j,te[se-23]>>5),j+=3);var Xe=se<8?0:se-4>>2;Xe>0&&($r(W,j,Re-H[se]),j+=Xe),se=P[X-de],j=Nr(W,j,te[se]>>3),j-=3;var Ke=se<4?0:se-2>>1;Ke>0&&($r(W,j,X-de-z[se]),j+=Ke);for(var _t=0;_t<Re;++_t)oe[ve]=X&32767,ve=(ve<<5^ee[X])&32767,++X;fe-=Re-1}else se<=143?se=se+48:j=jt(W,j,1),j=Nr(W,j,te[se]),oe[ve]=X&32767,++X}j=Nr(W,j,0)-1}return W.l=(j+7)/8|0,W.l}return function(W,j){return W.length<8?I(W,j):G(W,j)}}();function Hd(E){var P=q(50+Math.floor(E.length*1.1)),T=Iw(E,P);return P.slice(0,T)}var Vd=Z?new Uint16Array(32768):er(32768),Wd=Z?new Uint16Array(32768):er(32768),zd=Z?new Uint16Array(128):er(128),Gd=1,jd=1;function kw(E,P){var T=Be(E,P)+257;P+=5;var O=Be(E,P)+1;P+=5;var D=et(E,P)+4;P+=4;for(var I=0,G=Z?new Uint8Array(19):er(19),ee=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],W=1,j=Z?new Uint8Array(8):er(8),X=Z?new Uint8Array(8):er(8),oe=G.length,fe=0;fe<D;++fe)G[F[fe]]=I=Ee(E,P),W<I&&(W=I),j[I]++,P+=3;var ve=0;for(j[0]=0,fe=1;fe<=W;++fe)X[fe]=ve=ve+j[fe-1]<<1;for(fe=0;fe<oe;++fe)(ve=G[fe])!=0&&(ee[fe]=X[ve]++);var se=0;for(fe=0;fe<oe;++fe)if(se=G[fe],se!=0){ve=te[ee[fe]]>>8-se;for(var de=(1<<7-se)-1;de>=0;--de)zd[ve|de<<se]=se&7|fe<<3}var Re=[];for(W=1;Re.length<T+O;)switch(ve=zd[ge(E,P)],P+=ve&7,ve>>>=3){case 16:for(I=3+Pe(E,P),P+=2,ve=Re[Re.length-1];I-- >0;)Re.push(ve);break;case 17:for(I=3+Ee(E,P),P+=3;I-- >0;)Re.push(0);break;case 18:for(I=11+ge(E,P),P+=7;I-- >0;)Re.push(0);break;default:Re.push(ve),W<ve&&(W=ve);break}var Xe=Re.slice(0,T),Ke=Re.slice(T);for(fe=T;fe<286;++fe)Xe[fe]=0;for(fe=O;fe<30;++fe)Ke[fe]=0;return Gd=rs(Xe,Vd,286),jd=rs(Ke,Wd,30),P}function bw(E,P){if(E[0]==3&&!(E[1]&3))return[ri(P),2];for(var T=0,O=0,D=qp(P||1<<18),I=0,G=D.length>>>0,ee=0,W=0;!(O&1);){if(O=Ee(E,T),T+=3,O>>>1)O>>1==1?(ee=9,W=5):(T=kw(E,T),ee=Gd,W=jd);else{T&7&&(T+=8-(T&7));var j=E[T>>>3]|E[(T>>>3)+1]<<8;if(T+=32,j>0)for(!P&&G<I+j&&(D=To(D,I+j),G=D.length);j-- >0;)D[I++]=E[T>>>3],T+=8;continue}for(;;){!P&&G<I+32767&&(D=To(D,I+32767),G=D.length);var X=Mt(E,T,ee),oe=O>>>1==1?Du[X]:Vd[X];if(T+=oe&15,oe>>>=4,!(oe>>>8&255))D[I++]=oe;else{if(oe==256)break;oe-=257;var fe=oe<8?0:oe-4>>2;fe>5&&(fe=0);var ve=I+H[oe];fe>0&&(ve+=Mt(E,T,fe),T+=fe),X=Mt(E,T,W),oe=O>>>1==1?Iu[X]:Wd[X],T+=oe&15,oe>>>=4;var se=oe<4?0:oe-2>>1,de=z[oe];for(se>0&&(de+=Mt(E,T,se),T+=se),!P&&G<ve&&(D=To(D,ve+100),G=D.length);I<ve;)D[I]=D[I-de],++I}}}return P?[D,T+7>>>3]:[D.slice(0,I),T+7>>>3]}function Xd(E,P){var T=E.slice(E.l||0),O=bw(T,P);return E.l+=O[1],O[0]}function Kd(E,P){if(E)typeof console<"u"&&console.error(P);else throw new Error(P)}function Yd(E,P){var T=E;Kt(T,0);var O=[],D=[],I={FileIndex:O,FullPaths:D};_(I,{root:P.root});for(var G=T.length-4;(T[G]!=80||T[G+1]!=75||T[G+2]!=5||T[G+3]!=6)&&G>=0;)--G;T.l=G+4,T.l+=4;var ee=T.read_shift(2);T.l+=6;var W=T.read_shift(4);for(T.l=W,G=0;G<ee;++G){T.l+=20;var j=T.read_shift(4),X=T.read_shift(4),oe=T.read_shift(2),fe=T.read_shift(2),ve=T.read_shift(2);T.l+=8;var se=T.read_shift(4),de=s(T.slice(T.l+oe,T.l+oe+fe));T.l+=oe+fe+ve;var Re=T.l;T.l=se+4,Nw(T,j,X,I,de),T.l=Re}return I}function Nw(E,P,T,O,D){E.l+=2;var I=E.read_shift(2),G=E.read_shift(2),ee=a(E);if(I&8257)throw new Error("Unsupported ZIP encryption");for(var W=E.read_shift(4),j=E.read_shift(4),X=E.read_shift(4),oe=E.read_shift(2),fe=E.read_shift(2),ve="",se=0;se<oe;++se)ve+=String.fromCharCode(E[E.l++]);if(fe){var de=s(E.slice(E.l,E.l+fe));(de[21589]||{}).mt&&(ee=de[21589].mt),((D||{})[21589]||{}).mt&&(ee=D[21589].mt)}E.l+=fe;var Re=E.slice(E.l,E.l+j);switch(G){case 8:Re=N(E,X);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+G)}var Xe=!1;I&8&&(W=E.read_shift(4),W==134695760&&(W=E.read_shift(4),Xe=!0),j=E.read_shift(4),X=E.read_shift(4)),j!=P&&Kd(Xe,"Bad compressed size: "+P+" != "+j),X!=T&&Kd(Xe,"Bad uncompressed size: "+T+" != "+X),ku(O,ve,Re,{unsafe:!0,mt:ee})}function $w(E,P){var T=P||{},O=[],D=[],I=q(1),G=T.compression?8:0,ee=0,W=0,j=0,X=0,oe=0,fe=E.FullPaths[0],ve=fe,se=E.FileIndex[0],de=[],Re=0;for(W=1;W<E.FullPaths.length;++W)if(ve=E.FullPaths[W].slice(fe.length),se=E.FileIndex[W],!(!se.size||!se.content||ve=="Sh33tJ5")){var Xe=X,Ke=q(ve.length);for(j=0;j<ve.length;++j)Ke.write_shift(1,ve.charCodeAt(j)&127);Ke=Ke.slice(0,Ke.l),de[oe]=_4.buf(se.content,0);var _t=se.content;G==8&&(_t=k(_t)),I=q(30),I.write_shift(4,67324752),I.write_shift(2,20),I.write_shift(2,ee),I.write_shift(2,G),se.mt?o(I,se.mt):I.write_shift(4,0),I.write_shift(-4,de[oe]),I.write_shift(4,_t.length),I.write_shift(4,se.content.length),I.write_shift(2,Ke.length),I.write_shift(2,0),X+=I.length,O.push(I),X+=Ke.length,O.push(Ke),X+=_t.length,O.push(_t),I=q(46),I.write_shift(4,33639248),I.write_shift(2,0),I.write_shift(2,20),I.write_shift(2,ee),I.write_shift(2,G),I.write_shift(4,0),I.write_shift(-4,de[oe]),I.write_shift(4,_t.length),I.write_shift(4,se.content.length),I.write_shift(2,Ke.length),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(4,0),I.write_shift(4,Xe),Re+=I.l,D.push(I),Re+=Ke.length,D.push(Ke),++oe}return I=q(22),I.write_shift(4,101010256),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(2,oe),I.write_shift(2,oe),I.write_shift(4,Re),I.write_shift(4,X),I.write_shift(2,0),mt([mt(O),mt(D),I])}var ns={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Mw(E,P){if(E.ctype)return E.ctype;var T=E.name||"",O=T.match(/\.([^\.]+)$/);return O&&ns[O[1]]||P&&(O=(T=P).match(/[\.\\]([^\.\\])+$/),O&&ns[O[1]])?ns[O[1]]:"application/octet-stream"}function Lw(E){for(var P=ka(E),T=[],O=0;O<P.length;O+=76)T.push(P.slice(O,O+76));return T.join(`\r
 `)+`\r
 `}function Bw(E){var P=E.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(j){var X=j.charCodeAt(0).toString(16).toUpperCase();return"="+(X.length==1?"0"+X:X)});P=P.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),P.charAt(0)==`
 `&&(P="=0D"+P.slice(1)),P=P.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
-=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var T=[],R=P.split(`\r
-`),D=0;D<R.length;++D){var I=R[D];if(I.length==0){T.push("");continue}for(var z=0;z<I.length;){var ee=76,W=I.slice(z,z+ee);W.charAt(ee-1)=="="?ee--:W.charAt(ee-2)=="="?ee-=2:W.charAt(ee-3)=="="&&(ee-=3),W=I.slice(z,z+ee),z+=ee,z<I.length&&(W+="="),T.push(W)}}return T.join(`\r
-`)}function Uw(E){for(var P=[],T=0;T<E.length;++T){for(var R=E[T];T<=E.length&&R.charAt(R.length-1)=="=";)R=R.slice(0,R.length-1)+E[++T];P.push(R)}for(var D=0;D<P.length;++D)P[D]=P[D].replace(/[=][0-9A-Fa-f]{2}/g,function(I){return String.fromCharCode(parseInt(I.slice(1),16))});return wr(P.join(`\r
-`))}function Hw(E,P,T){for(var R="",D="",I="",z,ee=0;ee<10;++ee){var W=P[ee];if(!W||W.match(/^\s*$/))break;var j=W.match(/^(.*?):\s*([^\s].*)$/);if(j)switch(j[1].toLowerCase()){case"content-location":R=j[2].trim();break;case"content-type":I=j[2].trim();break;case"content-transfer-encoding":D=j[2].trim();break}}switch(++ee,D.toLowerCase()){case"base64":z=wr(Jr(P.slice(ee).join("")));break;case"quoted-printable":z=Uw(P.slice(ee));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+D)}var X=ku(E,R.slice(T.length),z,{unsafe:!0});I&&(X.ctype=I)}function Vw(E,P){if(J(E.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var T=P&&P.root||"",R=(be&&Buffer.isBuffer(E)?E.toString("binary"):J(E)).split(`\r
-`),D=0,I="";for(D=0;D<R.length;++D)if(I=R[D],!!/^Content-Location:/i.test(I)&&(I=I.slice(I.indexOf("file")),T||(T=I.slice(0,I.lastIndexOf("/")+1)),I.slice(0,T.length)!=T))for(;T.length>0&&(T=T.slice(0,T.length-1),T=T.slice(0,T.lastIndexOf("/")+1),I.slice(0,T.length)!=T););var z=(R[1]||"").match(/boundary="(.*?)"/);if(!z)throw new Error("MAD cannot find boundary");var ee="--"+(z[1]||""),W=[],j=[],X={FileIndex:W,FullPaths:j};_(X);var oe,fe=0;for(D=0;D<R.length;++D){var me=R[D];me!==ee&&me!==ee+"--"||(fe++&&Hw(X,R.slice(oe,D),T),oe=D)}return X}function Ww(E,P){var T=P||{},R=T.boundary||"SheetJS";R="------="+R;for(var D=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+R.slice(2)+'"',"","",""],I=E.FullPaths[0],z=I,ee=E.FileIndex[0],W=1;W<E.FullPaths.length;++W)if(z=E.FullPaths[W].slice(I.length),ee=E.FileIndex[W],!(!ee.size||!ee.content||z=="Sh33tJ5")){z=z.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Re){return"_x"+Re.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Re){return"_u"+Re.charCodeAt(0).toString(16)+"_"});for(var j=ee.content,X=be&&Buffer.isBuffer(j)?j.toString("binary"):J(j),oe=0,fe=Math.min(1024,X.length),me=0,ae=0;ae<=fe;++ae)(me=X.charCodeAt(ae))>=32&&me<128&&++oe;var de=oe>=fe*4/5;D.push(R),D.push("Content-Location: "+(T.root||"file:///C:/SheetJS/")+z),D.push("Content-Transfer-Encoding: "+(de?"quoted-printable":"base64")),D.push("Content-Type: "+Mw(ee,z)),D.push(""),D.push(de?Bw(X):Lw(X))}return D.push(R+`--\r
+=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var T=[],O=P.split(`\r
+`),D=0;D<O.length;++D){var I=O[D];if(I.length==0){T.push("");continue}for(var G=0;G<I.length;){var ee=76,W=I.slice(G,G+ee);W.charAt(ee-1)=="="?ee--:W.charAt(ee-2)=="="?ee-=2:W.charAt(ee-3)=="="&&(ee-=3),W=I.slice(G,G+ee),G+=ee,G<I.length&&(W+="="),T.push(W)}}return T.join(`\r
+`)}function Uw(E){for(var P=[],T=0;T<E.length;++T){for(var O=E[T];T<=E.length&&O.charAt(O.length-1)=="=";)O=O.slice(0,O.length-1)+E[++T];P.push(O)}for(var D=0;D<P.length;++D)P[D]=P[D].replace(/[=][0-9A-Fa-f]{2}/g,function(I){return String.fromCharCode(parseInt(I.slice(1),16))});return wr(P.join(`\r
+`))}function Hw(E,P,T){for(var O="",D="",I="",G,ee=0;ee<10;++ee){var W=P[ee];if(!W||W.match(/^\s*$/))break;var j=W.match(/^(.*?):\s*([^\s].*)$/);if(j)switch(j[1].toLowerCase()){case"content-location":O=j[2].trim();break;case"content-type":I=j[2].trim();break;case"content-transfer-encoding":D=j[2].trim();break}}switch(++ee,D.toLowerCase()){case"base64":G=wr(Jr(P.slice(ee).join("")));break;case"quoted-printable":G=Uw(P.slice(ee));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+D)}var X=ku(E,O.slice(T.length),G,{unsafe:!0});I&&(X.ctype=I)}function Vw(E,P){if(ie(E.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var T=P&&P.root||"",O=(be&&Buffer.isBuffer(E)?E.toString("binary"):ie(E)).split(`\r
+`),D=0,I="";for(D=0;D<O.length;++D)if(I=O[D],!!/^Content-Location:/i.test(I)&&(I=I.slice(I.indexOf("file")),T||(T=I.slice(0,I.lastIndexOf("/")+1)),I.slice(0,T.length)!=T))for(;T.length>0&&(T=T.slice(0,T.length-1),T=T.slice(0,T.lastIndexOf("/")+1),I.slice(0,T.length)!=T););var G=(O[1]||"").match(/boundary="(.*?)"/);if(!G)throw new Error("MAD cannot find boundary");var ee="--"+(G[1]||""),W=[],j=[],X={FileIndex:W,FullPaths:j};_(X);var oe,fe=0;for(D=0;D<O.length;++D){var ve=O[D];ve!==ee&&ve!==ee+"--"||(fe++&&Hw(X,O.slice(oe,D),T),oe=D)}return X}function Ww(E,P){var T=P||{},O=T.boundary||"SheetJS";O="------="+O;for(var D=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+O.slice(2)+'"',"","",""],I=E.FullPaths[0],G=I,ee=E.FileIndex[0],W=1;W<E.FullPaths.length;++W)if(G=E.FullPaths[W].slice(I.length),ee=E.FileIndex[W],!(!ee.size||!ee.content||G=="Sh33tJ5")){G=G.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Re){return"_x"+Re.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Re){return"_u"+Re.charCodeAt(0).toString(16)+"_"});for(var j=ee.content,X=be&&Buffer.isBuffer(j)?j.toString("binary"):ie(j),oe=0,fe=Math.min(1024,X.length),ve=0,se=0;se<=fe;++se)(ve=X.charCodeAt(se))>=32&&ve<128&&++oe;var de=oe>=fe*4/5;D.push(O),D.push("Content-Location: "+(T.root||"file:///C:/SheetJS/")+G),D.push("Content-Transfer-Encoding: "+(de?"quoted-printable":"base64")),D.push("Content-Type: "+Mw(ee,G)),D.push(""),D.push(de?Bw(X):Lw(X))}return D.push(O+`--\r
 `),D.join(`\r
-`)}function zw(E){var P={};return _(P,E),P}function ku(E,P,T,R){var D=R&&R.unsafe;D||_(E);var I=!D&&Ue.find(E,P);if(!I){var z=E.FullPaths[0];P.slice(0,z.length)==z?z=P:(z.slice(-1)!="/"&&(z+="/"),z=(z+P).replace("//","/")),I={name:i(P),type:2},E.FileIndex.push(I),E.FullPaths.push(z),D||Ue.utils.cfb_gc(E)}return I.content=T,I.size=T?T.length:0,R&&(R.CLSID&&(I.clsid=R.CLSID),R.mt&&(I.mt=R.mt),R.ct&&(I.ct=R.ct)),I}function Gw(E,P){_(E);var T=Ue.find(E,P);if(T){for(var R=0;R<E.FileIndex.length;++R)if(E.FileIndex[R]==T)return E.FileIndex.splice(R,1),E.FullPaths.splice(R,1),!0}return!1}function jw(E,P,T){_(E);var R=Ue.find(E,P);if(R){for(var D=0;D<E.FileIndex.length;++D)if(E.FileIndex[D]==R)return E.FileIndex[D].name=i(T),E.FullPaths[D]=T,!0}return!1}function Xw(E){A(E,!0)}return t.find=U,t.read=M,t.parse=c,t.write=ce,t.writeFile=_e,t.utils={cfb_new:zw,cfb_add:ku,cfb_del:Gw,cfb_mov:jw,cfb_gc:Xw,ReadShift:fa,CheckField:Ax,prep_blob:Kt,bconcat:mt,use_zlib:O,_deflateRaw:Hd,_inflateRaw:Xd,consts:ve},t}();function T4(e){return typeof e=="string"?hu(e):Array.isArray(e)?qC(e):e}function Ya(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=hu(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?zr(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([T4(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:e,saveAs:!0});var a=document.createElement("a");if(a.download!=null)return a.download=e,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=Ka(t)),s.write(t),s.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Et(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function ig(e,t){for(var r=[],n=Et(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function fd(e){for(var t=[],r=Et(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function mu(e){for(var t=[],r=Et(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function C4(e){for(var t=[],r=Et(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var Il=new Date(1899,11,30,0,0,0);function zt(e,t){var r=e.getTime();t&&(r-=1462*24*60*60*1e3);var n=Il.getTime()+(e.getTimezoneOffset()-Il.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var ux=new Date,A4=Il.getTime()+(ux.getTimezoneOffset()-Il.getTimezoneOffset())*6e4,og=ux.getTimezoneOffset();function cx(e){var t=new Date;return t.setTime(e*24*60*60*1e3+A4),t.getTimezoneOffset()!==og&&t.setTime(t.getTime()+(t.getTimezoneOffset()-og)*6e4),t}var ag=new Date("2017-02-19T19:06:09.000Z"),fx=isNaN(ag.getFullYear())?new Date("2/19/17"):ag,R4=fx.getFullYear()==2017;function bt(e,t){var r=new Date(e);if(R4)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(fx.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-o.getTimezoneOffset()*60*1e3)),o}function vu(e,t){if(be&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return zr(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return zr(YC(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return zr(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return zr(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(o){return r[o]||o})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function Gt(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Gt(e[r]));return t}function qe(e,t){for(var r="";r.length<t;)r+=e;return r}function Yr(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,o){return r=-r,o}),!isNaN(t=Number(n)))?t/r:t}var O4=["january","february","march","april","may","june","july","august","september","october","november","december"];function ba(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),i=t.getMonth(),o=t.getDate();if(isNaN(o))return r;var a=e.toLowerCase();if(a.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(a=a.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),a.length>3&&O4.indexOf(a)==-1)return r}else if(a.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||o>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function Fe(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return be?n=on(r):n=QC(r),Ue.utils.cfb_add(e,t,n)}Ue.utils.cfb_add(e,t,r)}else e.file(t,r)}function dd(){return Ue.utils.cfb_new()}var it=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
+`)}function zw(E){var P={};return _(P,E),P}function ku(E,P,T,O){var D=O&&O.unsafe;D||_(E);var I=!D&&Ue.find(E,P);if(!I){var G=E.FullPaths[0];P.slice(0,G.length)==G?G=P:(G.slice(-1)!="/"&&(G+="/"),G=(G+P).replace("//","/")),I={name:i(P),type:2},E.FileIndex.push(I),E.FullPaths.push(G),D||Ue.utils.cfb_gc(E)}return I.content=T,I.size=T?T.length:0,O&&(O.CLSID&&(I.clsid=O.CLSID),O.mt&&(I.mt=O.mt),O.ct&&(I.ct=O.ct)),I}function Gw(E,P){_(E);var T=Ue.find(E,P);if(T){for(var O=0;O<E.FileIndex.length;++O)if(E.FileIndex[O]==T)return E.FileIndex.splice(O,1),E.FullPaths.splice(O,1),!0}return!1}function jw(E,P,T){_(E);var O=Ue.find(E,P);if(O){for(var D=0;D<E.FileIndex.length;++D)if(E.FileIndex[D]==O)return E.FileIndex[D].name=i(T),E.FullPaths[D]=T,!0}return!1}function Xw(E){R(E,!0)}return t.find=U,t.read=M,t.parse=c,t.write=ae,t.writeFile=_e,t.utils={cfb_new:zw,cfb_add:ku,cfb_del:Gw,cfb_mov:jw,cfb_gc:Xw,ReadShift:fa,CheckField:Ax,prep_blob:Kt,bconcat:mt,use_zlib:C,_deflateRaw:Hd,_inflateRaw:Xd,consts:xe},t}();function T4(e){return typeof e=="string"?hu(e):Array.isArray(e)?qC(e):e}function Ya(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=hu(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?zr(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([T4(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var o=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),chrome.downloads.download({url:o,filename:e,saveAs:!0});var a=document.createElement("a");if(a.download!=null)return a.download=e,a.href=o,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(o)},6e4),o}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=Ka(t)),s.write(t),s.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Et(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function ig(e,t){for(var r=[],n=Et(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function fd(e){for(var t=[],r=Et(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function mu(e){for(var t=[],r=Et(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function C4(e){for(var t=[],r=Et(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var Il=new Date(1899,11,30,0,0,0);function zt(e,t){var r=e.getTime();t&&(r-=1462*24*60*60*1e3);var n=Il.getTime()+(e.getTimezoneOffset()-Il.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var ux=new Date,A4=Il.getTime()+(ux.getTimezoneOffset()-Il.getTimezoneOffset())*6e4,og=ux.getTimezoneOffset();function cx(e){var t=new Date;return t.setTime(e*24*60*60*1e3+A4),t.getTimezoneOffset()!==og&&t.setTime(t.getTime()+(t.getTimezoneOffset()-og)*6e4),t}var ag=new Date("2017-02-19T19:06:09.000Z"),fx=isNaN(ag.getFullYear())?new Date("2/19/17"):ag,R4=fx.getFullYear()==2017;function bt(e,t){var r=new Date(e);if(R4)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(fx.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-o.getTimezoneOffset()*60*1e3)),o}function vu(e,t){if(be&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return zr(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return zr(YC(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return zr(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return zr(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(o){return r[o]||o})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function Gt(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Gt(e[r]));return t}function qe(e,t){for(var r="";r.length<t;)r+=e;return r}function Yr(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,o){return r=-r,o}),!isNaN(t=Number(n)))?t/r:t}var O4=["january","february","march","april","may","june","july","august","september","october","november","december"];function ba(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),i=t.getMonth(),o=t.getDate();if(isNaN(o))return r;var a=e.toLowerCase();if(a.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(a=a.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),a.length>3&&O4.indexOf(a)==-1)return r}else if(a.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||o>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function Fe(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return be?n=on(r):n=QC(r),Ue.utils.cfb_add(e,t,n)}Ue.utils.cfb_add(e,t,r)}else e.file(t,r)}function dd(){return Ue.utils.cfb_new()}var it=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
 `,F4={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},hd=fd(F4),pd=/[&<>'"]/g,P4=/[\u0000-\u0008\u000b-\u001f]/g;function Me(e){var t=e+"";return t.replace(pd,function(r){return hd[r]}).replace(P4,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function sg(e){return Me(e).replace(/ /g,"_x0020_")}var dx=/[\u0000-\u001f]/g;function D4(e){var t=e+"";return t.replace(pd,function(r){return hd[r]}).replace(/\n/g,"<br/>").replace(dx,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function I4(e){var t=e+"";return t.replace(pd,function(r){return hd[r]}).replace(dx,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function k4(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function b4(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function wc(e){for(var t="",r=0,n=0,i=0,o=0,a=0,s=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(i=e.charCodeAt(r++),n>191&&n<224){a=(n&31)<<6,a|=i&63,t+=String.fromCharCode(a);continue}if(o=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|o&63);continue}a=e.charCodeAt(r++),s=((n&7)<<18|(i&63)<<12|(o&63)<<6|a&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function lg(e){var t=ri(2*e.length),r,n,i=1,o=0,a=0,s;for(n=0;n<e.length;n+=i)i=1,(s=e.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(e.charCodeAt(n+1)&63),i=2):s<240?(r=(s&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,r=(s&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,a=55296+(r>>>10&1023),r=56320+(r&1023)),a!==0&&(t[o++]=a&255,t[o++]=a>>>8,a=0),t[o++]=r%256,t[o++]=r>>>8;return t.slice(0,o).toString("ucs2")}function ug(e){return on(e,"binary").toString("utf8")}var Rs="foo bar baz☃🍣",ca=be&&(ug(Rs)==wc(Rs)&&ug||lg(Rs)==wc(Rs)&&lg)||wc,zr=be?function(e){return on(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},N4=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
-`).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),hx=/(^\s|\s$|\n)/;function vt(e,t){return"<"+e+(t.match(hx)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Na(e){return Et(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function le(e,t,r){return"<"+e+(r!=null?Na(r):"")+(t!=null?(t.match(hx)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function Bf(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function $4(e,t){switch(typeof e){case"string":var r=le("vt:lpwstr",Me(e));return t&&(r=r.replace(/&quot;/g,"_x0022_")),r;case"number":return le((e|0)==e?"vt:i4":"vt:r8",Me(String(e)));case"boolean":return le("vt:bool",e?"true":"false")}if(e instanceof Date)return le("vt:filetime",Bf(e));throw new Error("Unable to serialize "+e)}var lt={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},wo=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Yt={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function M4(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,o=5;o>=0;--o)i=i*256+e[t+o];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function L4(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,o=0,a=n?-t:t;isFinite(a)?a==0?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?i=-1022:(o-=Math.pow(2,52),i+=1023)):(i=2047,o=isNaN(t)?26985:0);for(var s=0;s<=5;++s,o/=256)e[r+s]=o&255;e[r+6]=(i&15)<<4|o&15,e[r+7]=i>>4|n}var cg=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,o=e[0][n].length;i<o;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},fg=be?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:on(t)})):cg(e)}:cg,dg=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(Ko(e,i)));return n.join("").replace(ua,"")},gd=be?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(ua,""):dg(e,t,r)}:dg,hg=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},px=be?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):hg(e,t,r)}:hg,pg=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(Di(e,i)));return n.join("")},qa=be?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):pg(t,r,n)}:pg,gx=function(e,t){var r=qt(e,t);return r>0?qa(e,t+4,t+4+r-1):""},mx=gx,vx=function(e,t){var r=qt(e,t);return r>0?qa(e,t+4,t+4+r-1):""},xx=vx,wx=function(e,t){var r=2*qt(e,t);return r>0?qa(e,t+4,t+4+r-1):""},yx=wx,Ex=function(t,r){var n=qt(t,r);return n>0?gd(t,r+4,r+4+n):""},Sx=Ex,_x=function(e,t){var r=qt(e,t);return r>0?qa(e,t+4,t+4+r):""},Tx=_x,Cx=function(e,t){return M4(e,t)},kl=Cx,md=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};be&&(mx=function(t,r){if(!Buffer.isBuffer(t))return gx(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},xx=function(t,r){if(!Buffer.isBuffer(t))return vx(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},yx=function(t,r){if(!Buffer.isBuffer(t))return wx(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Sx=function(t,r){if(!Buffer.isBuffer(t))return Ex(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Tx=function(t,r){if(!Buffer.isBuffer(t))return _x(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},kl=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Cx(t,r)},md=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Di=function(e,t){return e[t]},Ko=function(e,t){return e[t+1]*(1<<8)+e[t]},B4=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},qt=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Gn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},U4=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function fa(e,t){var r="",n,i,o=[],a,s,l,u;switch(t){case"dbcs":if(u=this.l,be&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(Ko(this,u)),u+=2;e*=2;break;case"utf8":r=qa(this,this.l,this.l+e);break;case"utf16le":e*=2,r=gd(this,this.l,this.l+e);break;case"wstr":return fa.call(this,e,"dbcs");case"lpstr-ansi":r=mx(this,this.l),e=4+qt(this,this.l);break;case"lpstr-cp":r=xx(this,this.l),e=4+qt(this,this.l);break;case"lpwstr":r=yx(this,this.l),e=4+2*qt(this,this.l);break;case"lpp4":e=4+qt(this,this.l),r=Sx(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+qt(this,this.l),r=Tx(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(a=Di(this,this.l+e++))!==0;)o.push(Ts(a));r=o.join("");break;case"_wstr":for(e=0,r="";(a=Ko(this,this.l+e))!==0;)o.push(Ts(a)),e+=2;e+=2,r=o.join("");break;case"dbcs-cont":for(r="",u=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return a=Di(this,u),this.l=u+1,s=fa.call(this,e-l,a?"dbcs-cont":"sbcs-cont"),o.join("")+s;o.push(Ts(Ko(this,u))),u+=2}r=o.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",u=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return a=Di(this,u),this.l=u+1,s=fa.call(this,e-l,a?"dbcs-cont":"sbcs-cont"),o.join("")+s;o.push(Ts(Di(this,u))),u+=1}r=o.join("");break;default:switch(e){case 1:return n=Di(this,this.l),this.l++,n;case 2:return n=(t==="i"?B4:Ko)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?Gn:U4)(this,this.l),this.l+=4,n):(i=qt(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=kl(this,this.l):i=kl([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:r=px(this,this.l,e);break}}return this.l+=e,r}var H4=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},V4=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},W4=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function z4(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)W4(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;n=t.length}else if(r==="hex"){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}else if(r==="utf16le"){var o=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var a=t.charCodeAt(i);this[this.l++]=a&255,this[this.l++]=a>>8}for(;this.l<o;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,H4(this,t,this.l);break;case 8:if(n=8,r==="f"){L4(this,t,this.l);break}case 16:break;case-4:n=4,V4(this,t,this.l);break}return this.l+=n,this}function Ax(e,t){var r=px(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Kt(e,t){e.l=t,e.read_shift=fa,e.chk=Ax,e.write_shift=z4}function kr(e,t){e.l+=t}function Q(e){var t=ri(e);return Kt(t,0),t}function Wt(){var e=[],t=be?256:2048,r=function(u){var c=Q(u);return Kt(c,0),c},n=r(t),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},o=function(u){return n&&u<n.length-n.l?n:(i(),n=r(Math.max(u+1,t)))},a=function(){return i(),mt(e)},s=function(u){i(),n=u,n.l==null&&(n.l=n.length),o(t)};return{next:o,push:s,end:a,_bufs:e}}function ie(e,t,r,n){var i=+t,o;if(!isNaN(i)){n||(n=M5[i].p||(r||[]).length||0),o=1+(i>=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var a=e.next(o);i<=127?a.write_shift(1,i):(a.write_shift(1,(i&127)+128),a.write_shift(1,i>>7));for(var s=0;s!=4;++s)if(n>=128)a.write_shift(1,(n&127)+128),n>>=7;else{a.write_shift(1,n);break}n>0&&md(r)&&e.push(r)}}function da(e,t,r){var n=Gt(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function gg(e,t,r){var n=Gt(e);return n.s=da(n.s,t.s,r),n.e=da(n.e,t.s,r),n}function ha(e,t){if(e.cRel&&e.c<0)for(e=Gt(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Gt(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Le(e);return!e.cRel&&e.cRel!=null&&(r=X4(r)),!e.rRel&&e.rRel!=null&&(r=G4(r)),r}function yc(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Rt(e.s.c)+":"+(e.e.cRel?"":"$")+Rt(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+wt(e.s.r)+":"+(e.e.rRel?"":"$")+wt(e.e.r):ha(e.s,t.biff)+":"+ha(e.e,t.biff)}function vd(e){return parseInt(j4(e),10)-1}function wt(e){return""+(e+1)}function G4(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function j4(e){return e.replace(/\$(\d+)$/,"$1")}function xd(e){for(var t=K4(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Rt(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function X4(e){return e.replace(/^([A-Z])/,"$$$1")}function K4(e){return e.replace(/^\$([A-Z])/,"$1")}function Y4(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function ut(e){for(var t=0,r=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function Le(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Zt(e){var t=e.indexOf(":");return t==-1?{s:ut(e),e:ut(e)}:{s:ut(e.slice(0,t)),e:ut(e.slice(t+1))}}function nt(e,t){return typeof t>"u"||typeof t=="number"?nt(e.s,e.e):(typeof e!="string"&&(e=Le(e)),typeof t!="string"&&(t=Le(t)),e==t?e:e+":"+t)}function Ge(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,o=e.length;for(r=0;n<o&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<o&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===o||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=o&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=o&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function mg(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=kn(e.z,r?zt(t):t)}catch{}try{return e.w=kn((e.XF||{}).numFmtId||(r?14:0),r?zt(t):t)}catch{return""+t}}function en(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?Qa[e.v]||e.v:t==null?mg(e,e.v):mg(e,t))}function hi(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Rx(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,o=e||(i?[]:{}),a=0,s=0;if(o&&n.origin!=null){if(typeof n.origin=="number")a=n.origin;else{var l=typeof n.origin=="string"?ut(n.origin):n.origin;a=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var c=Ge(o["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),a==-1&&(u.e.r=a=c.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[f].length;++h)if(!(typeof t[f][h]>"u")){var d={v:t[f][h]},m=a+f,p=s+h;if(u.s.r>m&&(u.s.r=m),u.s.c>p&&(u.s.c=p),u.e.r<m&&(u.e.r=m),u.e.c<p&&(u.e.c=p),t[f][h]&&typeof t[f][h]=="object"&&!Array.isArray(t[f][h])&&!(t[f][h]instanceof Date))d=t[f][h];else if(Array.isArray(d.v)&&(d.f=t[f][h][1],d.v=d.v[0]),d.v===null)if(d.f)d.t="n";else if(n.nullError)d.t="e",d.v=0;else if(n.sheetStubs)d.t="z";else continue;else typeof d.v=="number"?d.t="n":typeof d.v=="boolean"?d.t="b":d.v instanceof Date?(d.z=n.dateNF||Je[14],n.cellDates?(d.t="d",d.w=kn(d.z,zt(d.v))):(d.t="n",d.v=zt(d.v),d.w=kn(d.z,d.v))):d.t="s";if(i)o[m]||(o[m]=[]),o[m][p]&&o[m][p].z&&(d.z=o[m][p].z),o[m][p]=d;else{var g=Le({c:p,r:m});o[g]&&o[g].z&&(d.z=o[g].z),o[g]=d}}}return u.s.c<1e7&&(o["!ref"]=nt(u)),o}function yo(e,t){return Rx(null,e,t)}function q4(e){return e.read_shift(4,"i")}function _r(e,t){return t||(t=Q(4)),t.write_shift(4,e),t}function Ot(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function ct(e,t){var r=!1;return t==null&&(r=!0,t=Q(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function Q4(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Z4(e,t){return t||(t=Q(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function wd(e,t){var r=e.l,n=e.read_shift(1),i=Ot(e),o=[],a={t:i,h:i};if(n&1){for(var s=e.read_shift(4),l=0;l!=s;++l)o.push(Q4(e));a.r=o}else a.r=[{ich:0,ifnt:0}];return e.l=r+t,a}function J4(e,t){var r=!1;return t==null&&(r=!0,t=Q(15+4*e.t.length)),t.write_shift(1,0),ct(e.t,t),r?t.slice(0,t.l):t}var e3=wd;function t3(e,t){var r=!1;return t==null&&(r=!0,t=Q(23+4*e.t.length)),t.write_shift(1,1),ct(e.t,t),t.write_shift(4,1),Z4({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function hr(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function pi(e,t){return t==null&&(t=Q(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function gi(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function mi(e,t){return t==null&&(t=Q(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var r3=Ot,Ox=ct;function yd(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function bl(e,t){var r=!1;return t==null&&(r=!0,t=Q(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var n3=Ot,Uf=yd,Ed=bl;function Fx(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var i=n===0?kl([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Gn(t,0)>>2;return r?i/100:i}function Px(e,t){t==null&&(t=Q(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:i==(i|0)&&i>=-(1<<29)&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function Dx(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function i3(e,t){return t||(t=Q(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var vi=Dx,Eo=i3;function So(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function ni(e,t){return(t||Q(8)).write_shift(8,e,"f")}function o3(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=i;var u=p3[i];u&&(t.rgb=Rg(u));break;case 2:t.rgb=Rg([a,s,l]);break;case 3:t.theme=i;break}return o!=0&&(t.tint=o>0?o/32767:o/32768),t}function Nl(e,t){if(t||(t=Q(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function a3(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function s3(e,t){t||(t=Q(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var Ix=2,Xt=3,Os=11,$l=19,Fs=64,l3=65,u3=71,c3=4108,f3=4126,ht=80,vg={1:{n:"CodePage",t:Ix},2:{n:"Category",t:ht},3:{n:"PresentationFormat",t:ht},4:{n:"ByteCount",t:Xt},5:{n:"LineCount",t:Xt},6:{n:"ParagraphCount",t:Xt},7:{n:"SlideCount",t:Xt},8:{n:"NoteCount",t:Xt},9:{n:"HiddenCount",t:Xt},10:{n:"MultimediaClipCount",t:Xt},11:{n:"ScaleCrop",t:Os},12:{n:"HeadingPairs",t:c3},13:{n:"TitlesOfParts",t:f3},14:{n:"Manager",t:ht},15:{n:"Company",t:ht},16:{n:"LinksUpToDate",t:Os},17:{n:"CharacterCount",t:Xt},19:{n:"SharedDoc",t:Os},22:{n:"HyperlinksChanged",t:Os},23:{n:"AppVersion",t:Xt,p:"version"},24:{n:"DigSig",t:l3},26:{n:"ContentType",t:ht},27:{n:"ContentStatus",t:ht},28:{n:"Language",t:ht},29:{n:"Version",t:ht},255:{},2147483648:{n:"Locale",t:$l},2147483651:{n:"Behavior",t:$l},1919054434:{}},xg={1:{n:"CodePage",t:Ix},2:{n:"Title",t:ht},3:{n:"Subject",t:ht},4:{n:"Author",t:ht},5:{n:"Keywords",t:ht},6:{n:"Comments",t:ht},7:{n:"Template",t:ht},8:{n:"LastAuthor",t:ht},9:{n:"RevNumber",t:ht},10:{n:"EditTime",t:Fs},11:{n:"LastPrinted",t:Fs},12:{n:"CreatedDate",t:Fs},13:{n:"ModifiedDate",t:Fs},14:{n:"PageCount",t:Xt},15:{n:"WordCount",t:Xt},16:{n:"CharCount",t:Xt},17:{n:"Thumbnail",t:u3},18:{n:"Application",t:ht},19:{n:"DocSecurity",t:Xt},255:{},2147483648:{n:"Locale",t:$l},2147483651:{n:"Behavior",t:$l},1919054434:{}};function d3(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var h3=d3([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),p3=Gt(h3),Qa={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},g3={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Ps={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function kx(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function bx(e,t){var r=C4(g3),n=[],i;n[n.length]=it,n[n.length]=le("Types",null,{xmlns:lt.CT,"xmlns:xsd":lt.xsd,"xmlns:xsi":lt.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return le("Default",null,{Extension:l[0],ContentType:l[1]})}));var o=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=le("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:Ps[l][t.bookType]||Ps[l].xlsx}))},a=function(l){(e[l]||[]).forEach(function(u){n[n.length]=le("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:Ps[l][t.bookType]||Ps[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(u){n[n.length]=le("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:r[l][0]})})};return o("workbooks"),a("sheets"),a("charts"),s("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),a("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var ke={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Nx(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function qi(e){var t=[it,le("Relationships",null,{xmlns:lt.RELS})];return Et(e["!id"]).forEach(function(r){t[t.length]=le("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function $e(e,t,r,n,i,o){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,o?i.TargetMode=o:[ke.HLINK,ke.XPATH,ke.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function m3(e){var t=[it];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
+`).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),hx=/(^\s|\s$|\n)/;function vt(e,t){return"<"+e+(t.match(hx)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Na(e){return Et(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function ue(e,t,r){return"<"+e+(r!=null?Na(r):"")+(t!=null?(t.match(hx)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function Bf(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function $4(e,t){switch(typeof e){case"string":var r=ue("vt:lpwstr",Me(e));return t&&(r=r.replace(/&quot;/g,"_x0022_")),r;case"number":return ue((e|0)==e?"vt:i4":"vt:r8",Me(String(e)));case"boolean":return ue("vt:bool",e?"true":"false")}if(e instanceof Date)return ue("vt:filetime",Bf(e));throw new Error("Unable to serialize "+e)}var lt={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},wo=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Yt={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function M4(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,o=5;o>=0;--o)i=i*256+e[t+o];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function L4(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,o=0,a=n?-t:t;isFinite(a)?a==0?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o<Math.pow(2,52))?i=-1022:(o-=Math.pow(2,52),i+=1023)):(i=2047,o=isNaN(t)?26985:0);for(var s=0;s<=5;++s,o/=256)e[r+s]=o&255;e[r+6]=(i&15)<<4|o&15,e[r+7]=i>>4|n}var cg=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,o=e[0][n].length;i<o;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},fg=be?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:on(t)})):cg(e)}:cg,dg=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(Ko(e,i)));return n.join("").replace(ua,"")},gd=be?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(ua,""):dg(e,t,r)}:dg,hg=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},px=be?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):hg(e,t,r)}:hg,pg=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(Di(e,i)));return n.join("")},qa=be?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):pg(t,r,n)}:pg,gx=function(e,t){var r=qt(e,t);return r>0?qa(e,t+4,t+4+r-1):""},mx=gx,vx=function(e,t){var r=qt(e,t);return r>0?qa(e,t+4,t+4+r-1):""},xx=vx,wx=function(e,t){var r=2*qt(e,t);return r>0?qa(e,t+4,t+4+r-1):""},yx=wx,Ex=function(t,r){var n=qt(t,r);return n>0?gd(t,r+4,r+4+n):""},Sx=Ex,_x=function(e,t){var r=qt(e,t);return r>0?qa(e,t+4,t+4+r):""},Tx=_x,Cx=function(e,t){return M4(e,t)},kl=Cx,md=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};be&&(mx=function(t,r){if(!Buffer.isBuffer(t))return gx(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},xx=function(t,r){if(!Buffer.isBuffer(t))return vx(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},yx=function(t,r){if(!Buffer.isBuffer(t))return wx(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Sx=function(t,r){if(!Buffer.isBuffer(t))return Ex(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Tx=function(t,r){if(!Buffer.isBuffer(t))return _x(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},kl=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):Cx(t,r)},md=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Di=function(e,t){return e[t]},Ko=function(e,t){return e[t+1]*(1<<8)+e[t]},B4=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},qt=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Gn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},U4=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function fa(e,t){var r="",n,i,o=[],a,s,l,u;switch(t){case"dbcs":if(u=this.l,be&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(Ko(this,u)),u+=2;e*=2;break;case"utf8":r=qa(this,this.l,this.l+e);break;case"utf16le":e*=2,r=gd(this,this.l,this.l+e);break;case"wstr":return fa.call(this,e,"dbcs");case"lpstr-ansi":r=mx(this,this.l),e=4+qt(this,this.l);break;case"lpstr-cp":r=xx(this,this.l),e=4+qt(this,this.l);break;case"lpwstr":r=yx(this,this.l),e=4+2*qt(this,this.l);break;case"lpp4":e=4+qt(this,this.l),r=Sx(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+qt(this,this.l),r=Tx(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(a=Di(this,this.l+e++))!==0;)o.push(Ts(a));r=o.join("");break;case"_wstr":for(e=0,r="";(a=Ko(this,this.l+e))!==0;)o.push(Ts(a)),e+=2;e+=2,r=o.join("");break;case"dbcs-cont":for(r="",u=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return a=Di(this,u),this.l=u+1,s=fa.call(this,e-l,a?"dbcs-cont":"sbcs-cont"),o.join("")+s;o.push(Ts(Ko(this,u))),u+=2}r=o.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",u=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return a=Di(this,u),this.l=u+1,s=fa.call(this,e-l,a?"dbcs-cont":"sbcs-cont"),o.join("")+s;o.push(Ts(Di(this,u))),u+=1}r=o.join("");break;default:switch(e){case 1:return n=Di(this,this.l),this.l++,n;case 2:return n=(t==="i"?B4:Ko)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?Gn:U4)(this,this.l),this.l+=4,n):(i=qt(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=kl(this,this.l):i=kl([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:r=px(this,this.l,e);break}}return this.l+=e,r}var H4=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},V4=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},W4=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function z4(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)W4(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;n=t.length}else if(r==="hex"){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}else if(r==="utf16le"){var o=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var a=t.charCodeAt(i);this[this.l++]=a&255,this[this.l++]=a>>8}for(;this.l<o;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,H4(this,t,this.l);break;case 8:if(n=8,r==="f"){L4(this,t,this.l);break}case 16:break;case-4:n=4,V4(this,t,this.l);break}return this.l+=n,this}function Ax(e,t){var r=px(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Kt(e,t){e.l=t,e.read_shift=fa,e.chk=Ax,e.write_shift=z4}function kr(e,t){e.l+=t}function q(e){var t=ri(e);return Kt(t,0),t}function Wt(){var e=[],t=be?256:2048,r=function(u){var c=q(u);return Kt(c,0),c},n=r(t),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},o=function(u){return n&&u<n.length-n.l?n:(i(),n=r(Math.max(u+1,t)))},a=function(){return i(),mt(e)},s=function(u){i(),n=u,n.l==null&&(n.l=n.length),o(t)};return{next:o,push:s,end:a,_bufs:e}}function re(e,t,r,n){var i=+t,o;if(!isNaN(i)){n||(n=M5[i].p||(r||[]).length||0),o=1+(i>=128?1:0)+1,n>=128&&++o,n>=16384&&++o,n>=2097152&&++o;var a=e.next(o);i<=127?a.write_shift(1,i):(a.write_shift(1,(i&127)+128),a.write_shift(1,i>>7));for(var s=0;s!=4;++s)if(n>=128)a.write_shift(1,(n&127)+128),n>>=7;else{a.write_shift(1,n);break}n>0&&md(r)&&e.push(r)}}function da(e,t,r){var n=Gt(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function gg(e,t,r){var n=Gt(e);return n.s=da(n.s,t.s,r),n.e=da(n.e,t.s,r),n}function ha(e,t){if(e.cRel&&e.c<0)for(e=Gt(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Gt(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Le(e);return!e.cRel&&e.cRel!=null&&(r=X4(r)),!e.rRel&&e.rRel!=null&&(r=G4(r)),r}function yc(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Rt(e.s.c)+":"+(e.e.cRel?"":"$")+Rt(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+wt(e.s.r)+":"+(e.e.rRel?"":"$")+wt(e.e.r):ha(e.s,t.biff)+":"+ha(e.e,t.biff)}function vd(e){return parseInt(j4(e),10)-1}function wt(e){return""+(e+1)}function G4(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function j4(e){return e.replace(/\$(\d+)$/,"$1")}function xd(e){for(var t=K4(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Rt(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function X4(e){return e.replace(/^([A-Z])/,"$$$1")}function K4(e){return e.replace(/^\$([A-Z])/,"$1")}function Y4(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function ut(e){for(var t=0,r=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function Le(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Zt(e){var t=e.indexOf(":");return t==-1?{s:ut(e),e:ut(e)}:{s:ut(e.slice(0,t)),e:ut(e.slice(t+1))}}function nt(e,t){return typeof t>"u"||typeof t=="number"?nt(e.s,e.e):(typeof e!="string"&&(e=Le(e)),typeof t!="string"&&(t=Le(t)),e==t?e:e+":"+t)}function Ge(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,o=e.length;for(r=0;n<o&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<o&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===o||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=o&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=o&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function mg(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=kn(e.z,r?zt(t):t)}catch{}try{return e.w=kn((e.XF||{}).numFmtId||(r?14:0),r?zt(t):t)}catch{return""+t}}function en(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?Qa[e.v]||e.v:t==null?mg(e,e.v):mg(e,t))}function hi(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function Rx(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,o=e||(i?[]:{}),a=0,s=0;if(o&&n.origin!=null){if(typeof n.origin=="number")a=n.origin;else{var l=typeof n.origin=="string"?ut(n.origin):n.origin;a=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var c=Ge(o["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),a==-1&&(u.e.r=a=c.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var h=0;h!=t[f].length;++h)if(!(typeof t[f][h]>"u")){var d={v:t[f][h]},m=a+f,p=s+h;if(u.s.r>m&&(u.s.r=m),u.s.c>p&&(u.s.c=p),u.e.r<m&&(u.e.r=m),u.e.c<p&&(u.e.c=p),t[f][h]&&typeof t[f][h]=="object"&&!Array.isArray(t[f][h])&&!(t[f][h]instanceof Date))d=t[f][h];else if(Array.isArray(d.v)&&(d.f=t[f][h][1],d.v=d.v[0]),d.v===null)if(d.f)d.t="n";else if(n.nullError)d.t="e",d.v=0;else if(n.sheetStubs)d.t="z";else continue;else typeof d.v=="number"?d.t="n":typeof d.v=="boolean"?d.t="b":d.v instanceof Date?(d.z=n.dateNF||Je[14],n.cellDates?(d.t="d",d.w=kn(d.z,zt(d.v))):(d.t="n",d.v=zt(d.v),d.w=kn(d.z,d.v))):d.t="s";if(i)o[m]||(o[m]=[]),o[m][p]&&o[m][p].z&&(d.z=o[m][p].z),o[m][p]=d;else{var g=Le({c:p,r:m});o[g]&&o[g].z&&(d.z=o[g].z),o[g]=d}}}return u.s.c<1e7&&(o["!ref"]=nt(u)),o}function yo(e,t){return Rx(null,e,t)}function q4(e){return e.read_shift(4,"i")}function _r(e,t){return t||(t=q(4)),t.write_shift(4,e),t}function Ot(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function ct(e,t){var r=!1;return t==null&&(r=!0,t=q(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function Q4(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Z4(e,t){return t||(t=q(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function wd(e,t){var r=e.l,n=e.read_shift(1),i=Ot(e),o=[],a={t:i,h:i};if(n&1){for(var s=e.read_shift(4),l=0;l!=s;++l)o.push(Q4(e));a.r=o}else a.r=[{ich:0,ifnt:0}];return e.l=r+t,a}function J4(e,t){var r=!1;return t==null&&(r=!0,t=q(15+4*e.t.length)),t.write_shift(1,0),ct(e.t,t),r?t.slice(0,t.l):t}var e3=wd;function t3(e,t){var r=!1;return t==null&&(r=!0,t=q(23+4*e.t.length)),t.write_shift(1,1),ct(e.t,t),t.write_shift(4,1),Z4({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function hr(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function pi(e,t){return t==null&&(t=q(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function gi(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function mi(e,t){return t==null&&(t=q(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var r3=Ot,Ox=ct;function yd(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function bl(e,t){var r=!1;return t==null&&(r=!0,t=q(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var n3=Ot,Uf=yd,Ed=bl;function Fx(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var i=n===0?kl([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Gn(t,0)>>2;return r?i/100:i}function Px(e,t){t==null&&(t=q(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:i==(i|0)&&i>=-(1<<29)&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function Dx(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function i3(e,t){return t||(t=q(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var vi=Dx,Eo=i3;function So(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function ni(e,t){return(t||q(8)).write_shift(8,e,"f")}function o3(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=i;var u=p3[i];u&&(t.rgb=Rg(u));break;case 2:t.rgb=Rg([a,s,l]);break;case 3:t.theme=i;break}return o!=0&&(t.tint=o>0?o/32767:o/32768),t}function Nl(e,t){if(t||(t=q(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function a3(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function s3(e,t){t||(t=q(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var Ix=2,Xt=3,Os=11,$l=19,Fs=64,l3=65,u3=71,c3=4108,f3=4126,ht=80,vg={1:{n:"CodePage",t:Ix},2:{n:"Category",t:ht},3:{n:"PresentationFormat",t:ht},4:{n:"ByteCount",t:Xt},5:{n:"LineCount",t:Xt},6:{n:"ParagraphCount",t:Xt},7:{n:"SlideCount",t:Xt},8:{n:"NoteCount",t:Xt},9:{n:"HiddenCount",t:Xt},10:{n:"MultimediaClipCount",t:Xt},11:{n:"ScaleCrop",t:Os},12:{n:"HeadingPairs",t:c3},13:{n:"TitlesOfParts",t:f3},14:{n:"Manager",t:ht},15:{n:"Company",t:ht},16:{n:"LinksUpToDate",t:Os},17:{n:"CharacterCount",t:Xt},19:{n:"SharedDoc",t:Os},22:{n:"HyperlinksChanged",t:Os},23:{n:"AppVersion",t:Xt,p:"version"},24:{n:"DigSig",t:l3},26:{n:"ContentType",t:ht},27:{n:"ContentStatus",t:ht},28:{n:"Language",t:ht},29:{n:"Version",t:ht},255:{},2147483648:{n:"Locale",t:$l},2147483651:{n:"Behavior",t:$l},1919054434:{}},xg={1:{n:"CodePage",t:Ix},2:{n:"Title",t:ht},3:{n:"Subject",t:ht},4:{n:"Author",t:ht},5:{n:"Keywords",t:ht},6:{n:"Comments",t:ht},7:{n:"Template",t:ht},8:{n:"LastAuthor",t:ht},9:{n:"RevNumber",t:ht},10:{n:"EditTime",t:Fs},11:{n:"LastPrinted",t:Fs},12:{n:"CreatedDate",t:Fs},13:{n:"ModifiedDate",t:Fs},14:{n:"PageCount",t:Xt},15:{n:"WordCount",t:Xt},16:{n:"CharCount",t:Xt},17:{n:"Thumbnail",t:u3},18:{n:"Application",t:ht},19:{n:"DocSecurity",t:Xt},255:{},2147483648:{n:"Locale",t:$l},2147483651:{n:"Behavior",t:$l},1919054434:{}};function d3(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var h3=d3([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),p3=Gt(h3),Qa={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},g3={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Ps={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function kx(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function bx(e,t){var r=C4(g3),n=[],i;n[n.length]=it,n[n.length]=ue("Types",null,{xmlns:lt.CT,"xmlns:xsd":lt.xsd,"xmlns:xsi":lt.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return ue("Default",null,{Extension:l[0],ContentType:l[1]})}));var o=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=ue("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:Ps[l][t.bookType]||Ps[l].xlsx}))},a=function(l){(e[l]||[]).forEach(function(u){n[n.length]=ue("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:Ps[l][t.bookType]||Ps[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(u){n[n.length]=ue("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:r[l][0]})})};return o("workbooks"),a("sheets"),a("charts"),s("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),a("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var ke={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Nx(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function qi(e){var t=[it,ue("Relationships",null,{xmlns:lt.RELS})];return Et(e["!id"]).forEach(function(r){t[t.length]=ue("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function $e(e,t,r,n,i,o){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,o?i.TargetMode=o:[ke.HLINK,ke.XPATH,ke.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function m3(e){var t=[it];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
 `),t.push(`  <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
 `);for(var r=0;r<e.length;++r)t.push('  <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
 `);return t.push("</manifest:manifest>"),t.join("")}function wg(e,t,r){return['  <rdf:Description rdf:about="'+e+`">
@@ -171,8 +171,8 @@
 `,'    <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
 `,`  </rdf:Description>
 `].join("")}function x3(e){var t=[it];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
-`);for(var r=0;r!=e.length;++r)t.push(wg(e[r][0],e[r][1])),t.push(v3("",e[r][0]));return t.push(wg("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function $x(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Ol.version+"</meta:generator></office:meta></office:document-meta>"}var Zn=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Ec(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=Me(t),n[n.length]=r?le(e,t,r):vt(e,t))}function Mx(e,t){var r=t||{},n=[it,le("cp:coreProperties",null,{"xmlns:cp":lt.CORE_PROPS,"xmlns:dc":lt.dc,"xmlns:dcterms":lt.dcterms,"xmlns:dcmitype":lt.dcmitype,"xmlns:xsi":lt.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&Ec("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Bf(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&Ec("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Bf(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var o=0;o!=Zn.length;++o){var a=Zn[o],s=r.Props&&r.Props[a[1]]!=null?r.Props[a[1]]:e?e[a[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&Ec(a[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Qi=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Lx=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Bx(e){var t=[],r=le;return e||(e={}),e.Application="SheetJS",t[t.length]=it,t[t.length]=le("Properties",null,{xmlns:lt.EXT_PROPS,"xmlns:vt":lt.vt}),Qi.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Me(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+Me(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Ux(e){var t=[it,le("Properties",null,{xmlns:lt.CUST_PROPS,"xmlns:vt":lt.vt})];if(!e)return t.join("");var r=1;return Et(e).forEach(function(i){++r,t[t.length]=le("property",$4(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Me(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var yg={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function w3(e,t){var r=[];return Et(yg).map(function(n){for(var i=0;i<Zn.length;++i)if(Zn[i][1]==n)return Zn[i];for(i=0;i<Qi.length;++i)if(Qi[i][1]==n)return Qi[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(vt(yg[n[1]]||n[1],i))}}),le("DocumentProperties",r.join(""),{xmlns:Yt.o})}function y3(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Et(e).forEach(function(o){if(Object.prototype.hasOwnProperty.call(e,o)){for(var a=0;a<Zn.length;++a)if(o==Zn[a][1])return;for(a=0;a<Qi.length;++a)if(o==Qi[a][1])return;for(a=0;a<r.length;++a)if(o==r[a])return;var s=e[o],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),i.push(le(sg(o),s,{"dt:dt":l}))}}),t&&Et(t).forEach(function(o){if(Object.prototype.hasOwnProperty.call(t,o)&&!(e&&Object.prototype.hasOwnProperty.call(e,o))){var a=t[o],s="string";typeof a=="number"?(s="float",a=String(a)):a===!0||a===!1?(s="boolean",a=a?"1":"0"):a instanceof Date?(s="dateTime.tz",a=a.toISOString()):a=String(a),i.push(le(sg(o),a,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Yt.o+'">'+i.join("")+"</"+n+">"}function E3(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var o=n/Math.pow(2,32)|0;o>0&&(n=n%Math.pow(2,32),i+=o);var a=Q(8);return a.write_shift(4,n),a.write_shift(4,i),a}function Eg(e,t){var r=Q(4),n=Q(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Q(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=E3(t);break;case 31:case 80:for(n=Q(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return mt([r,n])}var Hx=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function S3(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Sg(e,t,r){var n=Q(8),i=[],o=[],a=8,s=0,l=Q(8),u=Q(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),o.push(l),i.push(u),a+=8+l.length,!t){u=Q(8),u.write_shift(4,0),i.unshift(u);var c=[Q(4)];for(c[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=Q(4+4+2*(f.length+1)+(f.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=mt(c),o.unshift(l),a+=8+l.length}for(s=0;s<e.length;++s)if(!(t&&!t[e[s][0]])&&!(Hx.indexOf(e[s][0])>-1||Lx.indexOf(e[s][0])>-1)&&e[s][1]!=null){var h=e[s][1],d=0;if(t){d=+t[e[s][0]];var m=r[d];if(m.p=="version"&&typeof h=="string"){var p=h.split(".");h=(+p[0]<<16)+(+p[1]||0)}l=Eg(m.t,h)}else{var g=S3(h);g==-1&&(g=31,h=String(h)),l=Eg(g,h)}o.push(l),u=Q(8),u.write_shift(4,t?d:2+s),i.push(u),a+=8+l.length}var v=8*(o.length+1);for(s=0;s<o.length;++s)i[s].write_shift(4,v),v+=o[s].length;return n.write_shift(4,a),n.write_shift(4,o.length),mt([n].concat(i).concat(o))}function _g(e,t,r,n,i,o){var a=Q(i?68:48),s=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,Ue.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,i?2:1),a.write_shift(16,t,"hex"),a.write_shift(4,i?68:48);var l=Sg(e,r,n);if(s.push(l),i){var u=Sg(i,null,null);a.write_shift(16,o,"hex"),a.write_shift(4,68+l.length),s.push(u)}return mt(s)}function _3(e,t){t||(t=Q(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function T3(e,t){return e.read_shift(t)===1}function Dt(e,t){return t||(t=Q(2)),t.write_shift(2,+!!e),t}function Vx(e){return e.read_shift(2,"u")}function ir(e,t){return t||(t=Q(2)),t.write_shift(2,e),t}function Wx(e,t,r){return r||(r=Q(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function zx(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var o=e.read_shift(1);o&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var a=n?e.read_shift(n,i):"";return a}function C3(e){var t=e.t||"",r=Q(3+0);r.write_shift(2,t.length),r.write_shift(1,1);var n=Q(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return mt(i)}function A3(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function R3(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):A3(e,n,r)}function O3(e,t,r){if(r.biff>5)return R3(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Gx(e,t,r){return r||(r=Q(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Tg(e,t){t||(t=Q(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function F3(e){var t=Q(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),o=i>-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3;break}t.write_shift(4,2),t.write_shift(4,o);var a=[8,6815827,6619237,4849780,83];for(r=0;r<a.length;++r)t.write_shift(4,a[r]);if(o==28)n=n.slice(1),Tg(n,t);else if(o&2){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<a.length;++r)t.write_shift(1,parseInt(a[r],16));var s=i>-1?n.slice(0,i):n;for(t.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)t.write_shift(2,s.charCodeAt(r));t.write_shift(2,0),o&8&&Tg(i>-1?n.slice(i+1):"",t)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<a.length;++r)t.write_shift(1,parseInt(a[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,n.charCodeAt(r+3*l)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function ii(e,t,r,n){return n||(n=Q(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function P3(e,t,r){var n=r.biff>8?4:2,i=e.read_shift(n),o=e.read_shift(n,"i"),a=e.read_shift(n,"i");return[i,o,a]}function D3(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r:t},e:{c:i,r}}}function jx(e,t){return t||(t=Q(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Sd(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var o=Q(i);return o.write_shift(2,n),o.write_shift(2,t),i>4&&o.write_shift(2,29282),i>6&&o.write_shift(2,1997),i>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function I3(e,t){var r=!t||t.biff==8,n=Q(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function k3(e,t){var r=!t||t.biff>=8?2:1,n=Q(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function b3(e,t){var r=Q(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=C3(e[i]);var o=mt([r].concat(n));return o.parts=[r.length].concat(n.map(function(a){return a.length})),o}function N3(){var e=Q(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function $3(e){var t=Q(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function M3(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,o=Q(i);return o.write_shift(2,(e.sz||12)*20),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,r.length),n||o.write_shift(1,1),o.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),o}function L3(e,t,r,n){var i=Q(10);return ii(e,t,n,i),i.write_shift(4,r),i}function B3(e,t,r,n,i){var o=!i||i.biff==8,a=Q(6+2+ +o+(1+o)*r.length);return ii(e,t,n,a),a.write_shift(2,r.length),o&&a.write_shift(1,1),a.write_shift((1+o)*r.length,r,o?"utf16le":"sbcs"),a}function U3(e,t,r,n){var i=r&&r.biff==5;n||(n=Q(i?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(i?1:2,t.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return o.l==null&&(o.l=o.length),o}function H3(e,t){var r=t.biff==8||!t.biff?4:2,n=Q(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Cg(e,t,r,n){var i=r&&r.biff==5;n||(n=Q(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var o=0;return e.numFmtId>0&&i&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function V3(e){var t=Q(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function W3(e,t,r,n,i,o){var a=Q(8);return ii(e,t,n,a),Wx(r,o,a),a}function z3(e,t,r,n){var i=Q(14);return ii(e,t,n,i),ni(r,i),i}function G3(e,t,r){if(r.biff<8)return j3(e,t,r);for(var n=[],i=e.l+t,o=e.read_shift(r.biff>8?4:2);o--!==0;)n.push(P3(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function j3(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=zx(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function X3(e){var t=Q(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)jx(e[r],t);return t}function K3(e){var t=Q(24),r=ut(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(n[i],16));return mt([t,F3(e[1])])}function Y3(e){var t=e[1].Tooltip,r=Q(10+2*(t.length+1));r.write_shift(2,2048);var n=ut(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var i=0;i<t.length;++i)r.write_shift(2,t.charCodeAt(i));return r.write_shift(2,0),r}function q3(e){return e||(e=Q(4)),e.write_shift(2,1),e.write_shift(2,1),e}function Q3(e,t,r){if(!r.cellStyles)return kr(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),o=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var u={s:i,e:o,w:a,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(u.level=l>>8&7),u}function Z3(e,t){var r=Q(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function J3(e){for(var t=Q(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function e8(e,t,r){var n=Q(15);return Ja(n,e,t),n.write_shift(8,r,"f"),n}function t8(e,t,r){var n=Q(9);return Ja(n,e,t),n.write_shift(2,r),n}var r8=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=fd({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,l){var u=[],c=ri(1);switch(l.type){case"base64":c=wr(Jr(s));break;case"binary":c=wr(s);break;case"buffer":case"array":c=s;break}Kt(c,0);var f=c.read_shift(1),h=!!(f&136),d=!1,m=!1;switch(f){case 2:break;case 3:break;case 48:d=!0,h=!0;break;case 49:d=!0,h=!0;break;case 131:break;case 139:break;case 140:m=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var p=0,g=521;f==2&&(p=c.read_shift(2)),c.l+=3,f!=2&&(p=c.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(g=c.read_shift(2));var v=c.read_shift(2),w=l.codepage||1252;f!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(w=e[c[c.l]]),c.l+=1,c.l+=2),m&&(c.l+=36);for(var y=[],S={},N=Math.min(c.length,f==2?521:g-10-(d?264:0)),M=m?32:11;c.l<N&&c[c.l]!=13;)switch(S={},S.name=zn.utils.decode(w,c.slice(c.l,c.l+M)).replace(/[\u0000\r\n].*$/g,""),c.l+=M,S.type=String.fromCharCode(c.read_shift(1)),f!=2&&!m&&(S.offset=c.read_shift(4)),S.len=c.read_shift(1),f==2&&(S.offset=c.read_shift(2)),S.dec=c.read_shift(1),S.name.length&&y.push(S),f!=2&&(c.l+=m?13:14),S.type){case"B":(!d||S.len!=8)&&l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+S.type)}if(c[c.l]!==13&&(c.l=g-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=g;var _=0,C=0;for(u[0]=[],C=0;C!=y.length;++C)u[0][C]=y[C].name;for(;p-- >0;){if(c[c.l]===42){c.l+=v;continue}for(++c.l,u[++_]=[],C=0,C=0;C!=y.length;++C){var A=c.slice(c.l,c.l+y[C].len);c.l+=y[C].len,Kt(A,0);var L=zn.utils.decode(w,A);switch(y[C].type){case"C":L.trim().length&&(u[_][C]=L.replace(/\s+$/,""));break;case"D":L.length===8?u[_][C]=new Date(+L.slice(0,4),+L.slice(4,6)-1,+L.slice(6,8)):u[_][C]=L;break;case"F":u[_][C]=parseFloat(L.trim());break;case"+":case"I":u[_][C]=m?A.read_shift(-4,"i")^2147483648:A.read_shift(4,"i");break;case"L":switch(L.trim().toUpperCase()){case"Y":case"T":u[_][C]=!0;break;case"N":case"F":u[_][C]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+L+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));u[_][C]="##MEMO##"+(m?parseInt(L.trim(),10):A.read_shift(4));break;case"N":L=L.replace(/\u0000/g,"").trim(),L&&L!="."&&(u[_][C]=+L||0);break;case"@":u[_][C]=new Date(A.read_shift(-8,"f")-621356832e5);break;case"T":u[_][C]=new Date((A.read_shift(4)-2440588)*864e5+A.read_shift(4));break;case"Y":u[_][C]=A.read_shift(4,"i")/1e4+A.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[_][C]=-A.read_shift(-8,"f");break;case"B":if(d&&y[C].len==8){u[_][C]=A.read_shift(8,"f");break}case"G":case"P":A.l+=y[C].len;break;case"0":if(y[C].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[C].type)}}}if(f!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return l&&l.sheetRows&&(u=u.slice(0,l.sheetRows)),l.DBF=y,u}function n(s,l){var u=l||{};u.dateNF||(u.dateNF="yyyymmdd");var c=yo(r(s,u),u);return c["!cols"]=u.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete u.DBF,c}function i(s,l){try{return hi(n(s,l),l)}catch(u){if(l&&l.WTF)throw u}return{SheetNames:[],Sheets:{}}}var o={B:8,C:250,L:1,D:8,"?":0,"":0};function a(s,l){var u=l||{};if(+u.codepage>=0&&Ia(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var c=Wt(),f=Hl(s,{header:1,raw:!0,cellDates:!0}),h=f[0],d=f.slice(1),m=s["!cols"]||[],p=0,g=0,v=0,w=1;for(p=0;p<h.length;++p){if(((m[p]||{}).DBF||{}).name){h[p]=m[p].DBF.name,++v;continue}if(h[p]!=null){if(++v,typeof h[p]=="number"&&(h[p]=h[p].toString(10)),typeof h[p]!="string")throw new Error("DBF Invalid column name "+h[p]+" |"+typeof h[p]+"|");if(h.indexOf(h[p])!==p){for(g=0;g<1024;++g)if(h.indexOf(h[p]+"_"+g)==-1){h[p]+="_"+g;break}}}}var y=Ge(s["!ref"]),S=[],N=[],M=[];for(p=0;p<=y.e.c-y.s.c;++p){var _="",C="",A=0,L=[];for(g=0;g<d.length;++g)d[g][p]!=null&&L.push(d[g][p]);if(L.length==0||h[p]==null){S[p]="?";continue}for(g=0;g<L.length;++g){switch(typeof L[g]){case"number":C="B";break;case"string":C="C";break;case"boolean":C="L";break;case"object":C=L[g]instanceof Date?"D":"C";break;default:C="C"}A=Math.max(A,String(L[g]).length),_=_&&_!=C?"C":C}A>250&&(A=250),C=((m[p]||{}).DBF||{}).type,C=="C"&&m[p].DBF.len>A&&(A=m[p].DBF.len),_=="B"&&C=="N"&&(_="N",M[p]=m[p].DBF.dec,A=m[p].DBF.len),N[p]=_=="C"||C=="N"?A:o[_]||0,w+=N[p],S[p]=_}var U=c.next(32);for(U.write_shift(4,318902576),U.write_shift(4,d.length),U.write_shift(2,296+32*v),U.write_shift(2,w),p=0;p<4;++p)U.write_shift(4,0);for(U.write_shift(4,0|(+t[Kv]||3)<<8),p=0,g=0;p<h.length;++p)if(h[p]!=null){var B=c.next(32),V=(h[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);B.write_shift(1,V,"sbcs"),B.write_shift(1,S[p]=="?"?"C":S[p],"sbcs"),B.write_shift(4,g),B.write_shift(1,N[p]||o[S[p]]||0),B.write_shift(1,M[p]||0),B.write_shift(1,2),B.write_shift(4,0),B.write_shift(1,0),B.write_shift(4,0),B.write_shift(4,0),g+=N[p]||o[S[p]]||0}var q=c.next(264);for(q.write_shift(4,13),p=0;p<65;++p)q.write_shift(4,0);for(p=0;p<d.length;++p){var ne=c.next(w);for(ne.write_shift(1,0),g=0;g<h.length;++g)if(h[g]!=null)switch(S[g]){case"L":ne.write_shift(1,d[p][g]==null?63:d[p][g]?84:70);break;case"B":ne.write_shift(8,d[p][g]||0,"f");break;case"N":var we="0";for(typeof d[p][g]=="number"&&(we=d[p][g].toFixed(M[g]||0)),v=0;v<N[g]-we.length;++v)ne.write_shift(1,32);ne.write_shift(1,we,"sbcs");break;case"D":d[p][g]?(ne.write_shift(4,("0000"+d[p][g].getFullYear()).slice(-4),"sbcs"),ne.write_shift(2,("00"+(d[p][g].getMonth()+1)).slice(-2),"sbcs"),ne.write_shift(2,("00"+d[p][g].getDate()).slice(-2),"sbcs")):ne.write_shift(8,"00000000","sbcs");break;case"C":var ve=String(d[p][g]!=null?d[p][g]:"").slice(0,N[g]);for(ne.write_shift(1,ve,"sbcs"),v=0;v<N[g]-ve.length;++v)ne.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:i,to_sheet:n,from_sheet:a}}(),n8=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Et(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(h,d){var m=e[d];return typeof m=="number"?Yp(m):m},n=function(h,d,m){var p=d.charCodeAt(0)-32<<4|m.charCodeAt(0)-48;return p==59?h:Yp(p)};e["|"]=254;function i(h,d){switch(d.type){case"base64":return o(Jr(h),d);case"binary":return o(h,d);case"buffer":return o(be&&Buffer.isBuffer(h)?h.toString("binary"):Ka(h),d);case"array":return o(vu(h),d)}throw new Error("Unrecognized type "+d.type)}function o(h,d){var m=h.split(/[\n\r]+/),p=-1,g=-1,v=0,w=0,y=[],S=[],N=null,M={},_=[],C=[],A=[],L=0,U;for(+d.codepage>=0&&Ia(+d.codepage);v!==m.length;++v){L=0;var B=m[v].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),V=B.replace(/;;/g,"\0").split(";").map(function(F){return F.replace(/\u0000/g,";")}),q=V[0],ne;if(B.length>0)switch(q){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":V[1].charAt(0)=="P"&&S.push(B.slice(3).replace(/;;/g,";"));break;case"C":var we=!1,ve=!1,_e=!1,J=!1,ce=-1,K=-1;for(w=1;w<V.length;++w)switch(V[w].charAt(0)){case"A":break;case"X":g=parseInt(V[w].slice(1))-1,ve=!0;break;case"Y":for(p=parseInt(V[w].slice(1))-1,ve||(g=0),U=y.length;U<=p;++U)y[U]=[];break;case"K":ne=V[w].slice(1),ne.charAt(0)==='"'?ne=ne.slice(1,ne.length-1):ne==="TRUE"?ne=!0:ne==="FALSE"?ne=!1:isNaN(Yr(ne))?isNaN(ba(ne).getDate())||(ne=bt(ne)):(ne=Yr(ne),N!==null&&ax(N)&&(ne=cx(ne))),we=!0;break;case"E":J=!0;var O=t6(V[w].slice(1),{r:p,c:g});y[p][g]=[y[p][g],O];break;case"S":_e=!0,y[p][g]=[y[p][g],"S5S"];break;case"G":break;case"R":ce=parseInt(V[w].slice(1))-1;break;case"C":K=parseInt(V[w].slice(1))-1;break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+B)}if(we&&(y[p][g]&&y[p][g].length==2?y[p][g][0]=ne:y[p][g]=ne,N=null),_e){if(J)throw new Error("SYLK shared formula cannot have own formula");var b=ce>-1&&y[ce][K];if(!b||!b[1])throw new Error("SYLK shared formula cannot find base");y[p][g][1]=r6(b[1],{r:p-ce,c:g-K})}break;case"F":var k=0;for(w=1;w<V.length;++w)switch(V[w].charAt(0)){case"X":g=parseInt(V[w].slice(1))-1,++k;break;case"Y":for(p=parseInt(V[w].slice(1))-1,U=y.length;U<=p;++U)y[U]=[];break;case"M":L=parseInt(V[w].slice(1))/20;break;case"F":break;case"G":break;case"P":N=S[parseInt(V[w].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(A=V[w].slice(1).split(" "),U=parseInt(A[0],10);U<=parseInt(A[1],10);++U)L=parseInt(A[2],10),C[U-1]=L===0?{hidden:!0}:{wch:L},_d(C[U-1]);break;case"C":g=parseInt(V[w].slice(1))-1,C[g]||(C[g]={});break;case"R":p=parseInt(V[w].slice(1))-1,_[p]||(_[p]={}),L>0?(_[p].hpt=L,_[p].hpx=Qx(L)):L===0&&(_[p].hidden=!0);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+B)}k<1&&(N=null);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+B)}}return _.length>0&&(M["!rows"]=_),C.length>0&&(M["!cols"]=C),d&&d.sheetRows&&(y=y.slice(0,d.sheetRows)),[y,M]}function a(h,d){var m=i(h,d),p=m[0],g=m[1],v=yo(p,d);return Et(g).forEach(function(w){v[w]=g[w]}),v}function s(h,d){return hi(a(h,d),d)}function l(h,d,m,p){var g="C;Y"+(m+1)+";X"+(p+1)+";K";switch(h.t){case"n":g+=h.v||0,h.f&&!h.F&&(g+=";E"+Cd(h.f,{r:m,c:p}));break;case"b":g+=h.v?"TRUE":"FALSE";break;case"e":g+=h.w||h.v;break;case"d":g+='"'+(h.w||h.v)+'"';break;case"s":g+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function u(h,d){d.forEach(function(m,p){var g="F;W"+(p+1)+" "+(p+1)+" ";m.hidden?g+="0":(typeof m.width=="number"&&!m.wpx&&(m.wpx=Ml(m.width)),typeof m.wpx=="number"&&!m.wch&&(m.wch=Ll(m.wpx)),typeof m.wch=="number"&&(g+=Math.round(m.wch))),g.charAt(g.length-1)!=" "&&h.push(g)})}function c(h,d){d.forEach(function(m,p){var g="F;";m.hidden?g+="M0;":m.hpt?g+="M"+20*m.hpt+";":m.hpx&&(g+="M"+20*Bl(m.hpx)+";"),g.length>2&&h.push(g+"R"+(p+1))})}function f(h,d){var m=["ID;PWXL;N;E"],p=[],g=Ge(h["!ref"]),v,w=Array.isArray(h),y=`\r
-`;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),h["!cols"]&&u(m,h["!cols"]),h["!rows"]&&c(m,h["!rows"]),m.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var S=g.s.r;S<=g.e.r;++S)for(var N=g.s.c;N<=g.e.c;++N){var M=Le({r:S,c:N});v=w?(h[S]||[])[N]:h[M],!(!v||v.v==null&&(!v.f||v.F))&&p.push(l(v,h,S,N))}return m.join(y)+y+p.join(y)+y+"E"+y}return{to_workbook:s,to_sheet:a,from_sheet:f}}(),i8=function(){function e(o,a){switch(a.type){case"base64":return t(Jr(o),a);case"binary":return t(o,a);case"buffer":return t(be&&Buffer.isBuffer(o)?o.toString("binary"):Ka(o),a);case"array":return t(vu(o),a)}throw new Error("Unrecognized type "+a.type)}function t(o,a){for(var s=o.split(`
+`);for(var r=0;r!=e.length;++r)t.push(wg(e[r][0],e[r][1])),t.push(v3("",e[r][0]));return t.push(wg("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function $x(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Ol.version+"</meta:generator></office:meta></office:document-meta>"}var Zn=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Ec(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=Me(t),n[n.length]=r?ue(e,t,r):vt(e,t))}function Mx(e,t){var r=t||{},n=[it,ue("cp:coreProperties",null,{"xmlns:cp":lt.CORE_PROPS,"xmlns:dc":lt.dc,"xmlns:dcterms":lt.dcterms,"xmlns:dcmitype":lt.dcmitype,"xmlns:xsi":lt.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&Ec("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Bf(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&Ec("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Bf(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var o=0;o!=Zn.length;++o){var a=Zn[o],s=r.Props&&r.Props[a[1]]!=null?r.Props[a[1]]:e?e[a[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&Ec(a[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Qi=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],Lx=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Bx(e){var t=[],r=ue;return e||(e={}),e.Application="SheetJS",t[t.length]=it,t[t.length]=ue("Properties",null,{xmlns:lt.EXT_PROPS,"xmlns:vt":lt.vt}),Qi.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Me(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+Me(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Ux(e){var t=[it,ue("Properties",null,{xmlns:lt.CUST_PROPS,"xmlns:vt":lt.vt})];if(!e)return t.join("");var r=1;return Et(e).forEach(function(i){++r,t[t.length]=ue("property",$4(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Me(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var yg={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function w3(e,t){var r=[];return Et(yg).map(function(n){for(var i=0;i<Zn.length;++i)if(Zn[i][1]==n)return Zn[i];for(i=0;i<Qi.length;++i)if(Qi[i][1]==n)return Qi[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(vt(yg[n[1]]||n[1],i))}}),ue("DocumentProperties",r.join(""),{xmlns:Yt.o})}function y3(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Et(e).forEach(function(o){if(Object.prototype.hasOwnProperty.call(e,o)){for(var a=0;a<Zn.length;++a)if(o==Zn[a][1])return;for(a=0;a<Qi.length;++a)if(o==Qi[a][1])return;for(a=0;a<r.length;++a)if(o==r[a])return;var s=e[o],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),i.push(ue(sg(o),s,{"dt:dt":l}))}}),t&&Et(t).forEach(function(o){if(Object.prototype.hasOwnProperty.call(t,o)&&!(e&&Object.prototype.hasOwnProperty.call(e,o))){var a=t[o],s="string";typeof a=="number"?(s="float",a=String(a)):a===!0||a===!1?(s="boolean",a=a?"1":"0"):a instanceof Date?(s="dateTime.tz",a=a.toISOString()):a=String(a),i.push(ue(sg(o),a,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Yt.o+'">'+i.join("")+"</"+n+">"}function E3(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var o=n/Math.pow(2,32)|0;o>0&&(n=n%Math.pow(2,32),i+=o);var a=q(8);return a.write_shift(4,n),a.write_shift(4,i),a}function Eg(e,t){var r=q(4),n=q(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=q(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=E3(t);break;case 31:case 80:for(n=q(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return mt([r,n])}var Hx=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function S3(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Sg(e,t,r){var n=q(8),i=[],o=[],a=8,s=0,l=q(8),u=q(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),o.push(l),i.push(u),a+=8+l.length,!t){u=q(8),u.write_shift(4,0),i.unshift(u);var c=[q(4)];for(c[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=q(4+4+2*(f.length+1)+(f.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=mt(c),o.unshift(l),a+=8+l.length}for(s=0;s<e.length;++s)if(!(t&&!t[e[s][0]])&&!(Hx.indexOf(e[s][0])>-1||Lx.indexOf(e[s][0])>-1)&&e[s][1]!=null){var h=e[s][1],d=0;if(t){d=+t[e[s][0]];var m=r[d];if(m.p=="version"&&typeof h=="string"){var p=h.split(".");h=(+p[0]<<16)+(+p[1]||0)}l=Eg(m.t,h)}else{var g=S3(h);g==-1&&(g=31,h=String(h)),l=Eg(g,h)}o.push(l),u=q(8),u.write_shift(4,t?d:2+s),i.push(u),a+=8+l.length}var v=8*(o.length+1);for(s=0;s<o.length;++s)i[s].write_shift(4,v),v+=o[s].length;return n.write_shift(4,a),n.write_shift(4,o.length),mt([n].concat(i).concat(o))}function _g(e,t,r,n,i,o){var a=q(i?68:48),s=[a];a.write_shift(2,65534),a.write_shift(2,0),a.write_shift(4,842412599),a.write_shift(16,Ue.utils.consts.HEADER_CLSID,"hex"),a.write_shift(4,i?2:1),a.write_shift(16,t,"hex"),a.write_shift(4,i?68:48);var l=Sg(e,r,n);if(s.push(l),i){var u=Sg(i,null,null);a.write_shift(16,o,"hex"),a.write_shift(4,68+l.length),s.push(u)}return mt(s)}function _3(e,t){t||(t=q(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function T3(e,t){return e.read_shift(t)===1}function Dt(e,t){return t||(t=q(2)),t.write_shift(2,+!!e),t}function Vx(e){return e.read_shift(2,"u")}function ir(e,t){return t||(t=q(2)),t.write_shift(2,e),t}function Wx(e,t,r){return r||(r=q(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function zx(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var o=e.read_shift(1);o&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var a=n?e.read_shift(n,i):"";return a}function C3(e){var t=e.t||"",r=q(3+0);r.write_shift(2,t.length),r.write_shift(1,1);var n=q(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return mt(i)}function A3(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function R3(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):A3(e,n,r)}function O3(e,t,r){if(r.biff>5)return R3(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function Gx(e,t,r){return r||(r=q(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Tg(e,t){t||(t=q(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function F3(e){var t=q(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),o=i>-1?31:23;switch(n.charAt(0)){case"#":o=28;break;case".":o&=-3;break}t.write_shift(4,2),t.write_shift(4,o);var a=[8,6815827,6619237,4849780,83];for(r=0;r<a.length;++r)t.write_shift(4,a[r]);if(o==28)n=n.slice(1),Tg(n,t);else if(o&2){for(a="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<a.length;++r)t.write_shift(1,parseInt(a[r],16));var s=i>-1?n.slice(0,i):n;for(t.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)t.write_shift(2,s.charCodeAt(r));t.write_shift(2,0),o&8&&Tg(i>-1?n.slice(i+1):"",t)}else{for(a="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<a.length;++r)t.write_shift(1,parseInt(a[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,n.charCodeAt(r+3*l)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function ii(e,t,r,n){return n||(n=q(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function P3(e,t,r){var n=r.biff>8?4:2,i=e.read_shift(n),o=e.read_shift(n,"i"),a=e.read_shift(n,"i");return[i,o,a]}function D3(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r:t},e:{c:i,r}}}function jx(e,t){return t||(t=q(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function Sd(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var o=q(i);return o.write_shift(2,n),o.write_shift(2,t),i>4&&o.write_shift(2,29282),i>6&&o.write_shift(2,1997),i>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function I3(e,t){var r=!t||t.biff==8,n=q(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function k3(e,t){var r=!t||t.biff>=8?2:1,n=q(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function b3(e,t){var r=q(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=C3(e[i]);var o=mt([r].concat(n));return o.parts=[r.length].concat(n.map(function(a){return a.length})),o}function N3(){var e=q(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function $3(e){var t=q(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function M3(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,o=q(i);return o.write_shift(2,(e.sz||12)*20),o.write_shift(4,0),o.write_shift(2,400),o.write_shift(4,0),o.write_shift(2,0),o.write_shift(1,r.length),n||o.write_shift(1,1),o.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),o}function L3(e,t,r,n){var i=q(10);return ii(e,t,n,i),i.write_shift(4,r),i}function B3(e,t,r,n,i){var o=!i||i.biff==8,a=q(6+2+ +o+(1+o)*r.length);return ii(e,t,n,a),a.write_shift(2,r.length),o&&a.write_shift(1,1),a.write_shift((1+o)*r.length,r,o?"utf16le":"sbcs"),a}function U3(e,t,r,n){var i=r&&r.biff==5;n||(n=q(i?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(i?1:2,t.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var o=n.length>n.l?n.slice(0,n.l):n;return o.l==null&&(o.l=o.length),o}function H3(e,t){var r=t.biff==8||!t.biff?4:2,n=q(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Cg(e,t,r,n){var i=r&&r.biff==5;n||(n=q(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var o=0;return e.numFmtId>0&&i&&(o|=1024),n.write_shift(4,o),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function V3(e){var t=q(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function W3(e,t,r,n,i,o){var a=q(8);return ii(e,t,n,a),Wx(r,o,a),a}function z3(e,t,r,n){var i=q(14);return ii(e,t,n,i),ni(r,i),i}function G3(e,t,r){if(r.biff<8)return j3(e,t,r);for(var n=[],i=e.l+t,o=e.read_shift(r.biff>8?4:2);o--!==0;)n.push(P3(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function j3(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=zx(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function X3(e){var t=q(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)jx(e[r],t);return t}function K3(e){var t=q(24),r=ut(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(n[i],16));return mt([t,F3(e[1])])}function Y3(e){var t=e[1].Tooltip,r=q(10+2*(t.length+1));r.write_shift(2,2048);var n=ut(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var i=0;i<t.length;++i)r.write_shift(2,t.charCodeAt(i));return r.write_shift(2,0),r}function q3(e){return e||(e=q(4)),e.write_shift(2,1),e.write_shift(2,1),e}function Q3(e,t,r){if(!r.cellStyles)return kr(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),o=e.read_shift(n),a=e.read_shift(n),s=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var u={s:i,e:o,w:a,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(u.level=l>>8&7),u}function Z3(e,t){var r=q(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function J3(e){for(var t=q(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function e8(e,t,r){var n=q(15);return Ja(n,e,t),n.write_shift(8,r,"f"),n}function t8(e,t,r){var n=q(9);return Ja(n,e,t),n.write_shift(2,r),n}var r8=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=fd({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,l){var u=[],c=ri(1);switch(l.type){case"base64":c=wr(Jr(s));break;case"binary":c=wr(s);break;case"buffer":case"array":c=s;break}Kt(c,0);var f=c.read_shift(1),h=!!(f&136),d=!1,m=!1;switch(f){case 2:break;case 3:break;case 48:d=!0,h=!0;break;case 49:d=!0,h=!0;break;case 131:break;case 139:break;case 140:m=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var p=0,g=521;f==2&&(p=c.read_shift(2)),c.l+=3,f!=2&&(p=c.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(g=c.read_shift(2));var v=c.read_shift(2),w=l.codepage||1252;f!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(w=e[c[c.l]]),c.l+=1,c.l+=2),m&&(c.l+=36);for(var y=[],S={},b=Math.min(c.length,f==2?521:g-10-(d?264:0)),M=m?32:11;c.l<b&&c[c.l]!=13;)switch(S={},S.name=zn.utils.decode(w,c.slice(c.l,c.l+M)).replace(/[\u0000\r\n].*$/g,""),c.l+=M,S.type=String.fromCharCode(c.read_shift(1)),f!=2&&!m&&(S.offset=c.read_shift(4)),S.len=c.read_shift(1),f==2&&(S.offset=c.read_shift(2)),S.dec=c.read_shift(1),S.name.length&&y.push(S),f!=2&&(c.l+=m?13:14),S.type){case"B":(!d||S.len!=8)&&l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+S.type)}if(c[c.l]!==13&&(c.l=g-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=g;var _=0,A=0;for(u[0]=[],A=0;A!=y.length;++A)u[0][A]=y[A].name;for(;p-- >0;){if(c[c.l]===42){c.l+=v;continue}for(++c.l,u[++_]=[],A=0,A=0;A!=y.length;++A){var R=c.slice(c.l,c.l+y[A].len);c.l+=y[A].len,Kt(R,0);var L=zn.utils.decode(w,R);switch(y[A].type){case"C":L.trim().length&&(u[_][A]=L.replace(/\s+$/,""));break;case"D":L.length===8?u[_][A]=new Date(+L.slice(0,4),+L.slice(4,6)-1,+L.slice(6,8)):u[_][A]=L;break;case"F":u[_][A]=parseFloat(L.trim());break;case"+":case"I":u[_][A]=m?R.read_shift(-4,"i")^2147483648:R.read_shift(4,"i");break;case"L":switch(L.trim().toUpperCase()){case"Y":case"T":u[_][A]=!0;break;case"N":case"F":u[_][A]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+L+"|")}break;case"M":if(!h)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));u[_][A]="##MEMO##"+(m?parseInt(L.trim(),10):R.read_shift(4));break;case"N":L=L.replace(/\u0000/g,"").trim(),L&&L!="."&&(u[_][A]=+L||0);break;case"@":u[_][A]=new Date(R.read_shift(-8,"f")-621356832e5);break;case"T":u[_][A]=new Date((R.read_shift(4)-2440588)*864e5+R.read_shift(4));break;case"Y":u[_][A]=R.read_shift(4,"i")/1e4+R.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[_][A]=-R.read_shift(-8,"f");break;case"B":if(d&&y[A].len==8){u[_][A]=R.read_shift(8,"f");break}case"G":case"P":R.l+=y[A].len;break;case"0":if(y[A].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+y[A].type)}}}if(f!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return l&&l.sheetRows&&(u=u.slice(0,l.sheetRows)),l.DBF=y,u}function n(s,l){var u=l||{};u.dateNF||(u.dateNF="yyyymmdd");var c=yo(r(s,u),u);return c["!cols"]=u.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete u.DBF,c}function i(s,l){try{return hi(n(s,l),l)}catch(u){if(l&&l.WTF)throw u}return{SheetNames:[],Sheets:{}}}var o={B:8,C:250,L:1,D:8,"?":0,"":0};function a(s,l){var u=l||{};if(+u.codepage>=0&&Ia(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var c=Wt(),f=Hl(s,{header:1,raw:!0,cellDates:!0}),h=f[0],d=f.slice(1),m=s["!cols"]||[],p=0,g=0,v=0,w=1;for(p=0;p<h.length;++p){if(((m[p]||{}).DBF||{}).name){h[p]=m[p].DBF.name,++v;continue}if(h[p]!=null){if(++v,typeof h[p]=="number"&&(h[p]=h[p].toString(10)),typeof h[p]!="string")throw new Error("DBF Invalid column name "+h[p]+" |"+typeof h[p]+"|");if(h.indexOf(h[p])!==p){for(g=0;g<1024;++g)if(h.indexOf(h[p]+"_"+g)==-1){h[p]+="_"+g;break}}}}var y=Ge(s["!ref"]),S=[],b=[],M=[];for(p=0;p<=y.e.c-y.s.c;++p){var _="",A="",R=0,L=[];for(g=0;g<d.length;++g)d[g][p]!=null&&L.push(d[g][p]);if(L.length==0||h[p]==null){S[p]="?";continue}for(g=0;g<L.length;++g){switch(typeof L[g]){case"number":A="B";break;case"string":A="C";break;case"boolean":A="L";break;case"object":A=L[g]instanceof Date?"D":"C";break;default:A="C"}R=Math.max(R,String(L[g]).length),_=_&&_!=A?"C":A}R>250&&(R=250),A=((m[p]||{}).DBF||{}).type,A=="C"&&m[p].DBF.len>R&&(R=m[p].DBF.len),_=="B"&&A=="N"&&(_="N",M[p]=m[p].DBF.dec,R=m[p].DBF.len),b[p]=_=="C"||A=="N"?R:o[_]||0,w+=b[p],S[p]=_}var U=c.next(32);for(U.write_shift(4,318902576),U.write_shift(4,d.length),U.write_shift(2,296+32*v),U.write_shift(2,w),p=0;p<4;++p)U.write_shift(4,0);for(U.write_shift(4,0|(+t[Kv]||3)<<8),p=0,g=0;p<h.length;++p)if(h[p]!=null){var B=c.next(32),V=(h[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);B.write_shift(1,V,"sbcs"),B.write_shift(1,S[p]=="?"?"C":S[p],"sbcs"),B.write_shift(4,g),B.write_shift(1,b[p]||o[S[p]]||0),B.write_shift(1,M[p]||0),B.write_shift(1,2),B.write_shift(4,0),B.write_shift(1,0),B.write_shift(4,0),B.write_shift(4,0),g+=b[p]||o[S[p]]||0}var Y=c.next(264);for(Y.write_shift(4,13),p=0;p<65;++p)Y.write_shift(4,0);for(p=0;p<d.length;++p){var ne=c.next(w);for(ne.write_shift(1,0),g=0;g<h.length;++g)if(h[g]!=null)switch(S[g]){case"L":ne.write_shift(1,d[p][g]==null?63:d[p][g]?84:70);break;case"B":ne.write_shift(8,d[p][g]||0,"f");break;case"N":var me="0";for(typeof d[p][g]=="number"&&(me=d[p][g].toFixed(M[g]||0)),v=0;v<b[g]-me.length;++v)ne.write_shift(1,32);ne.write_shift(1,me,"sbcs");break;case"D":d[p][g]?(ne.write_shift(4,("0000"+d[p][g].getFullYear()).slice(-4),"sbcs"),ne.write_shift(2,("00"+(d[p][g].getMonth()+1)).slice(-2),"sbcs"),ne.write_shift(2,("00"+d[p][g].getDate()).slice(-2),"sbcs")):ne.write_shift(8,"00000000","sbcs");break;case"C":var xe=String(d[p][g]!=null?d[p][g]:"").slice(0,b[g]);for(ne.write_shift(1,xe,"sbcs"),v=0;v<b[g]-xe.length;++v)ne.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:i,to_sheet:n,from_sheet:a}}(),n8=function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Et(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(h,d){var m=e[d];return typeof m=="number"?Yp(m):m},n=function(h,d,m){var p=d.charCodeAt(0)-32<<4|m.charCodeAt(0)-48;return p==59?h:Yp(p)};e["|"]=254;function i(h,d){switch(d.type){case"base64":return o(Jr(h),d);case"binary":return o(h,d);case"buffer":return o(be&&Buffer.isBuffer(h)?h.toString("binary"):Ka(h),d);case"array":return o(vu(h),d)}throw new Error("Unrecognized type "+d.type)}function o(h,d){var m=h.split(/[\n\r]+/),p=-1,g=-1,v=0,w=0,y=[],S=[],b=null,M={},_=[],A=[],R=[],L=0,U;for(+d.codepage>=0&&Ia(+d.codepage);v!==m.length;++v){L=0;var B=m[v].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),V=B.replace(/;;/g,"\0").split(";").map(function(F){return F.replace(/\u0000/g,";")}),Y=V[0],ne;if(B.length>0)switch(Y){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":V[1].charAt(0)=="P"&&S.push(B.slice(3).replace(/;;/g,";"));break;case"C":var me=!1,xe=!1,_e=!1,ie=!1,ae=-1,K=-1;for(w=1;w<V.length;++w)switch(V[w].charAt(0)){case"A":break;case"X":g=parseInt(V[w].slice(1))-1,xe=!0;break;case"Y":for(p=parseInt(V[w].slice(1))-1,xe||(g=0),U=y.length;U<=p;++U)y[U]=[];break;case"K":ne=V[w].slice(1),ne.charAt(0)==='"'?ne=ne.slice(1,ne.length-1):ne==="TRUE"?ne=!0:ne==="FALSE"?ne=!1:isNaN(Yr(ne))?isNaN(ba(ne).getDate())||(ne=bt(ne)):(ne=Yr(ne),b!==null&&ax(b)&&(ne=cx(ne))),me=!0;break;case"E":ie=!0;var C=t6(V[w].slice(1),{r:p,c:g});y[p][g]=[y[p][g],C];break;case"S":_e=!0,y[p][g]=[y[p][g],"S5S"];break;case"G":break;case"R":ae=parseInt(V[w].slice(1))-1;break;case"C":K=parseInt(V[w].slice(1))-1;break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+B)}if(me&&(y[p][g]&&y[p][g].length==2?y[p][g][0]=ne:y[p][g]=ne,b=null),_e){if(ie)throw new Error("SYLK shared formula cannot have own formula");var N=ae>-1&&y[ae][K];if(!N||!N[1])throw new Error("SYLK shared formula cannot find base");y[p][g][1]=r6(N[1],{r:p-ae,c:g-K})}break;case"F":var k=0;for(w=1;w<V.length;++w)switch(V[w].charAt(0)){case"X":g=parseInt(V[w].slice(1))-1,++k;break;case"Y":for(p=parseInt(V[w].slice(1))-1,U=y.length;U<=p;++U)y[U]=[];break;case"M":L=parseInt(V[w].slice(1))/20;break;case"F":break;case"G":break;case"P":b=S[parseInt(V[w].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(R=V[w].slice(1).split(" "),U=parseInt(R[0],10);U<=parseInt(R[1],10);++U)L=parseInt(R[2],10),A[U-1]=L===0?{hidden:!0}:{wch:L},_d(A[U-1]);break;case"C":g=parseInt(V[w].slice(1))-1,A[g]||(A[g]={});break;case"R":p=parseInt(V[w].slice(1))-1,_[p]||(_[p]={}),L>0?(_[p].hpt=L,_[p].hpx=Qx(L)):L===0&&(_[p].hidden=!0);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+B)}k<1&&(b=null);break;default:if(d&&d.WTF)throw new Error("SYLK bad record "+B)}}return _.length>0&&(M["!rows"]=_),A.length>0&&(M["!cols"]=A),d&&d.sheetRows&&(y=y.slice(0,d.sheetRows)),[y,M]}function a(h,d){var m=i(h,d),p=m[0],g=m[1],v=yo(p,d);return Et(g).forEach(function(w){v[w]=g[w]}),v}function s(h,d){return hi(a(h,d),d)}function l(h,d,m,p){var g="C;Y"+(m+1)+";X"+(p+1)+";K";switch(h.t){case"n":g+=h.v||0,h.f&&!h.F&&(g+=";E"+Cd(h.f,{r:m,c:p}));break;case"b":g+=h.v?"TRUE":"FALSE";break;case"e":g+=h.w||h.v;break;case"d":g+='"'+(h.w||h.v)+'"';break;case"s":g+='"'+h.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function u(h,d){d.forEach(function(m,p){var g="F;W"+(p+1)+" "+(p+1)+" ";m.hidden?g+="0":(typeof m.width=="number"&&!m.wpx&&(m.wpx=Ml(m.width)),typeof m.wpx=="number"&&!m.wch&&(m.wch=Ll(m.wpx)),typeof m.wch=="number"&&(g+=Math.round(m.wch))),g.charAt(g.length-1)!=" "&&h.push(g)})}function c(h,d){d.forEach(function(m,p){var g="F;";m.hidden?g+="M0;":m.hpt?g+="M"+20*m.hpt+";":m.hpx&&(g+="M"+20*Bl(m.hpx)+";"),g.length>2&&h.push(g+"R"+(p+1))})}function f(h,d){var m=["ID;PWXL;N;E"],p=[],g=Ge(h["!ref"]),v,w=Array.isArray(h),y=`\r
+`;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),h["!cols"]&&u(m,h["!cols"]),h["!rows"]&&c(m,h["!rows"]),m.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var S=g.s.r;S<=g.e.r;++S)for(var b=g.s.c;b<=g.e.c;++b){var M=Le({r:S,c:b});v=w?(h[S]||[])[b]:h[M],!(!v||v.v==null&&(!v.f||v.F))&&p.push(l(v,h,S,b))}return m.join(y)+y+p.join(y)+y+"E"+y}return{to_workbook:s,to_sheet:a,from_sheet:f}}(),i8=function(){function e(o,a){switch(a.type){case"base64":return t(Jr(o),a);case"binary":return t(o,a);case"buffer":return t(be&&Buffer.isBuffer(o)?o.toString("binary"):Ka(o),a);case"array":return t(vu(o),a)}throw new Error("Unrecognized type "+a.type)}function t(o,a){for(var s=o.split(`
 `),l=-1,u=-1,c=0,f=[];c!==s.length;++c){if(s[c].trim()==="BOT"){f[++l]=[],u=0;continue}if(!(l<0)){var h=s[c].trim().split(","),d=h[0],m=h[1];++c;for(var p=s[c]||"";(p.match(/["]/g)||[]).length&1&&c<s.length-1;)p+=`
 `+s[++c];switch(p=p.trim(),+d){case-1:if(p==="BOT"){f[++l]=[],u=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?f[l][u]=!0:p==="FALSE"?f[l][u]=!1:isNaN(Yr(m))?isNaN(ba(m).getDate())?f[l][u]=m:f[l][u]=bt(m):f[l][u]=Yr(m),++u;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),f[l][u++]=p!==""?p:null;break}if(p==="EOD")break}}return a&&a.sheetRows&&(f=f.slice(0,a.sheetRows)),f}function r(o,a){return yo(e(o,a),a)}function n(o,a){return hi(r(o,a),a)}var i=function(){var o=function(l,u,c,f,h){l.push(u),l.push(c+","+f),l.push('"'+h.replace(/"/g,'""')+'"')},a=function(l,u,c,f){l.push(u+","+c),l.push(u==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var u=[],c=Ge(l["!ref"]),f,h=Array.isArray(l);o(u,"TABLE",0,1,"sheetjs"),o(u,"VECTORS",0,c.e.r-c.s.r+1,""),o(u,"TUPLES",0,c.e.c-c.s.c+1,""),o(u,"DATA",0,0,"");for(var d=c.s.r;d<=c.e.r;++d){a(u,-1,0,"BOT");for(var m=c.s.c;m<=c.e.c;++m){var p=Le({r:d,c:m});if(f=h?(l[d]||[])[m]:l[p],!f){a(u,1,0,"");continue}switch(f.t){case"n":var g=f.w;!g&&f.v!=null&&(g=f.v),g==null?f.f&&!f.F?a(u,1,0,"="+f.f):a(u,1,0,""):a(u,0,g,"V");break;case"b":a(u,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":a(u,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=kn(f.z||Je[14],zt(bt(f.v)))),a(u,0,f.w,"V");break;default:a(u,1,0,"")}}}a(u,-1,0,"EOD");var v=`\r
 `,w=u.join(v);return w}}();return{to_workbook:n,to_sheet:r,from_sheet:i}}(),Xx=function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
@@ -183,9 +183,9 @@
 `,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
 `),l="--SocialCalcSpreadsheetControlSave--";function u(f){if(!f||!f["!ref"])return"";for(var h=[],d=[],m,p="",g=Zt(f["!ref"]),v=Array.isArray(f),w=g.s.r;w<=g.e.r;++w)for(var y=g.s.c;y<=g.e.c;++y)if(p=Le({r:w,c:y}),m=v?(f[w]||[])[y]:f[p],!(!m||m.v==null||m.t==="z")){switch(d=["cell",p,"t"],m.t){case"s":case"str":d.push(t(m.v));break;case"n":m.f?(d[2]="vtf",d[3]="n",d[4]=m.v,d[5]=t(m.f)):(d[2]="v",d[3]=m.v);break;case"b":d[2]="vt"+(m.f?"f":"c"),d[3]="nl",d[4]=m.v?"1":"0",d[5]=t(m.f||(m.v?"TRUE":"FALSE"));break;case"d":var S=zt(bt(m.v));d[2]="vtc",d[3]="nd",d[4]=""+S,d[5]=m.w||kn(m.z||Je[14],S);break;case"e":continue}h.push(d.join(":"))}return h.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),h.push("valueformat:1:text-wiki"),h.join(`
 `)}function c(f){return[o,a,s,a,u(f),l].join(`
-`)}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),o8=function(){function e(c,f,h,d,m){m.raw?f[h][d]=c:c===""||(c==="TRUE"?f[h][d]=!0:c==="FALSE"?f[h][d]=!1:isNaN(Yr(c))?isNaN(ba(c).getDate())?f[h][d]=c:f[h][d]=bt(c):f[h][d]=Yr(c))}function t(c,f){var h=f||{},d=[];if(!c||c.length===0)return d;for(var m=c.split(/[\r\n]/),p=m.length-1;p>=0&&m[p].length===0;)--p;for(var g=10,v=0,w=0;w<=p;++w)v=m[w].indexOf(" "),v==-1?v=m[w].length:v++,g=Math.max(g,v);for(w=0;w<=p;++w){d[w]=[];var y=0;for(e(m[w].slice(0,g).trim(),d,w,y,h),y=1;y<=(m[w].length-g)/10+1;++y)e(m[w].slice(g+(y-1)*10,g+y*10).trim(),d,w,y,h)}return h.sheetRows&&(d=d.slice(0,h.sheetRows)),d}var r={44:",",9:"	",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var f={},h=!1,d=0,m=0;d<c.length;++d)(m=c.charCodeAt(d))==34?h=!h:!h&&m in r&&(f[m]=(f[m]||0)+1);m=[];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&m.push([f[d],d]);if(!m.length){f=n;for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&m.push([f[d],d])}return m.sort(function(p,g){return p[0]-g[0]||n[p[1]]-n[g[1]]}),r[m.pop()[1]]||44}function o(c,f){var h=f||{},d="",m=h.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(d=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(d=c.charAt(4),c=c.slice(6)):d=i(c.slice(0,1024)):h&&h.FS?d=h.FS:d=i(c.slice(0,1024));var g=0,v=0,w=0,y=0,S=0,N=d.charCodeAt(0),M=!1,_=0,C=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
-`);var A=h.dateNF!=null?E4(h.dateNF):null;function L(){var U=c.slice(y,S),B={};if(U.charAt(0)=='"'&&U.charAt(U.length-1)=='"'&&(U=U.slice(1,-1).replace(/""/g,'"')),U.length===0)B.t="z";else if(h.raw)B.t="s",B.v=U;else if(U.trim().length===0)B.t="s",B.v=U;else if(U.charCodeAt(0)==61)U.charCodeAt(1)==34&&U.charCodeAt(U.length-1)==34?(B.t="s",B.v=U.slice(2,-1).replace(/""/g,'"')):n6(U)?(B.t="n",B.f=U.slice(1)):(B.t="s",B.v=U);else if(U=="TRUE")B.t="b",B.v=!0;else if(U=="FALSE")B.t="b",B.v=!1;else if(!isNaN(w=Yr(U)))B.t="n",h.cellText!==!1&&(B.w=U),B.v=w;else if(!isNaN(ba(U).getDate())||A&&U.match(A)){B.z=h.dateNF||Je[14];var V=0;A&&U.match(A)&&(U=S4(U,h.dateNF,U.match(A)||[]),V=1),h.cellDates?(B.t="d",B.v=bt(U,V)):(B.t="n",B.v=zt(bt(U,V))),h.cellText!==!1&&(B.w=kn(B.z,B.v instanceof Date?zt(B.v):B.v)),h.cellNF||delete B.z}else B.t="s",B.v=U;if(B.t=="z"||(h.dense?(m[g]||(m[g]=[]),m[g][v]=B):m[Le({c:v,r:g})]=B),y=S+1,C=c.charCodeAt(y),p.e.c<v&&(p.e.c=v),p.e.r<g&&(p.e.r=g),_==N)++v;else if(v=0,++g,h.sheetRows&&h.sheetRows<=g)return!0}e:for(;S<c.length;++S)switch(_=c.charCodeAt(S)){case 34:C===34&&(M=!M);break;case N:case 10:case 13:if(!M&&L())break e;break}return S-y>0&&L(),m["!ref"]=nt(p),m}function a(c,f){return!(f&&f.PRN)||f.FS||c.slice(0,4)=="sep="||c.indexOf("	")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?o(c,f):yo(t(c,f),f)}function s(c,f){var h="",d=f.type=="string"?[0,0,0,0]:vR(c,f);switch(f.type){case"base64":h=Jr(c);break;case"binary":h=c;break;case"buffer":f.codepage==65001?h=c.toString("utf8"):f.codepage&&typeof zn<"u"?h=zn.utils.decode(f.codepage,c):h=be&&Buffer.isBuffer(c)?c.toString("binary"):Ka(c);break;case"array":h=vu(c);break;case"string":h=c;break;default:throw new Error("Unrecognized type "+f.type)}return d[0]==239&&d[1]==187&&d[2]==191?h=ca(h.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?h=ca(h):f.type=="binary"&&typeof zn<"u"&&f.codepage&&(h=zn.utils.decode(f.codepage,zn.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?Xx.to_sheet(f.type=="string"?h:ca(h),f):a(h,f)}function l(c,f){return hi(s(c,f),f)}function u(c){for(var f=[],h=Ge(c["!ref"]),d,m=Array.isArray(c),p=h.s.r;p<=h.e.r;++p){for(var g=[],v=h.s.c;v<=h.e.c;++v){var w=Le({r:p,c:v});if(d=m?(c[p]||[])[v]:c[w],!d||d.v==null){g.push("          ");continue}for(var y=(d.w||(en(d),d.w)||"").slice(0,10);y.length<10;)y+=" ";g.push(y+(v===0?" ":""))}f.push(g.join(""))}return f.join(`
-`)}return{to_workbook:l,to_sheet:s,from_sheet:u}}(),Ag=function(){function e(O,b,k){if(O){Kt(O,O.l||0);for(var F=k.Enum||ce;O.l<O.length;){var H=O.read_shift(2),G=F[H]||F[65535],Y=O.read_shift(2),te=O.l+Y,re=G.f&&G.f(O,Y,k);if(O.l=te,b(re,G,H))return}}}function t(O,b){switch(b.type){case"base64":return r(wr(Jr(O)),b);case"binary":return r(wr(O),b);case"buffer":case"array":return r(O,b)}throw"Unsupported type "+b.type}function r(O,b){if(!O)return O;var k=b||{},F=k.dense?[]:{},H="Sheet1",G="",Y=0,te={},re=[],ye=[],pe={s:{r:0,c:0},e:{r:0,c:0}},Pe=k.sheetRows||0;if(O[2]==0&&(O[3]==8||O[3]==9)&&O.length>=16&&O[14]==5&&O[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(O[2]==2)k.Enum=ce,e(O,function(ge,Mt,St){switch(St){case 0:k.vers=ge,ge>=4096&&(k.qpro=!0);break;case 6:pe=ge;break;case 204:ge&&(G=ge);break;case 222:G=ge;break;case 15:case 51:k.qpro||(ge[1].v=ge[1].v.slice(1));case 13:case 14:case 16:St==14&&(ge[2]&112)==112&&(ge[2]&15)>1&&(ge[2]&15)<15&&(ge[1].z=k.dateNF||Je[14],k.cellDates&&(ge[1].t="d",ge[1].v=cx(ge[1].v))),k.qpro&&ge[3]>Y&&(F["!ref"]=nt(pe),te[H]=F,re.push(H),F=k.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},Y=ge[3],H=G||"Sheet"+(Y+1),G="");var jt=k.dense?(F[ge[0].r]||[])[ge[0].c]:F[Le(ge[0])];if(jt){jt.t=ge[1].t,jt.v=ge[1].v,ge[1].z!=null&&(jt.z=ge[1].z),ge[1].f!=null&&(jt.f=ge[1].f);break}k.dense?(F[ge[0].r]||(F[ge[0].r]=[]),F[ge[0].r][ge[0].c]=ge[1]):F[Le(ge[0])]=ge[1];break}},k);else if(O[2]==26||O[2]==14)k.Enum=K,O[2]==14&&(k.qpro=!0,O.l=0),e(O,function(ge,Mt,St){switch(St){case 204:H=ge;break;case 22:ge[1].v=ge[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ge[3]>Y&&(F["!ref"]=nt(pe),te[H]=F,re.push(H),F=k.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},Y=ge[3],H="Sheet"+(Y+1)),Pe>0&&ge[0].r>=Pe)break;k.dense?(F[ge[0].r]||(F[ge[0].r]=[]),F[ge[0].r][ge[0].c]=ge[1]):F[Le(ge[0])]=ge[1],pe.e.c<ge[0].c&&(pe.e.c=ge[0].c),pe.e.r<ge[0].r&&(pe.e.r=ge[0].r);break;case 27:ge[14e3]&&(ye[ge[14e3][0]]=ge[14e3][1]);break;case 1537:ye[ge[0]]=ge[1],ge[0]==Y&&(H=ge[1]);break}},k);else throw new Error("Unrecognized LOTUS BOF "+O[2]);if(F["!ref"]=nt(pe),te[G||H]=F,re.push(G||H),!ye.length)return{SheetNames:re,Sheets:te};for(var Ee={},et=[],Be=0;Be<ye.length;++Be)te[re[Be]]?(et.push(ye[Be]||re[Be]),Ee[ye[Be]]=te[ye[Be]]||te[re[Be]]):(et.push(ye[Be]),Ee[ye[Be]]={"!ref":"A1"});return{SheetNames:et,Sheets:Ee}}function n(O,b){var k=b||{};if(+k.codepage>=0&&Ia(+k.codepage),k.type=="string")throw new Error("Cannot write WK1 to JS string");var F=Wt(),H=Ge(O["!ref"]),G=Array.isArray(O),Y=[];ue(F,0,o(1030)),ue(F,6,l(H));for(var te=Math.min(H.e.r,8191),re=H.s.r;re<=te;++re)for(var ye=wt(re),pe=H.s.c;pe<=H.e.c;++pe){re===H.s.r&&(Y[pe]=Rt(pe));var Pe=Y[pe]+ye,Ee=G?(O[re]||[])[pe]:O[Pe];if(!(!Ee||Ee.t=="z"))if(Ee.t=="n")(Ee.v|0)==Ee.v&&Ee.v>=-32768&&Ee.v<=32767?ue(F,13,d(re,pe,Ee.v)):ue(F,14,p(re,pe,Ee.v));else{var et=en(Ee);ue(F,15,f(re,pe,et.slice(0,239)))}}return ue(F,1),F.end()}function i(O,b){var k=b||{};if(+k.codepage>=0&&Ia(+k.codepage),k.type=="string")throw new Error("Cannot write WK3 to JS string");var F=Wt();ue(F,0,a(O));for(var H=0,G=0;H<O.SheetNames.length;++H)(O.Sheets[O.SheetNames[H]]||{})["!ref"]&&ue(F,27,J(O.SheetNames[H],G++));var Y=0;for(H=0;H<O.SheetNames.length;++H){var te=O.Sheets[O.SheetNames[H]];if(!(!te||!te["!ref"])){for(var re=Ge(te["!ref"]),ye=Array.isArray(te),pe=[],Pe=Math.min(re.e.r,8191),Ee=re.s.r;Ee<=Pe;++Ee)for(var et=wt(Ee),Be=re.s.c;Be<=re.e.c;++Be){Ee===re.s.r&&(pe[Be]=Rt(Be));var ge=pe[Be]+et,Mt=ye?(te[Ee]||[])[Be]:te[ge];if(!(!Mt||Mt.t=="z"))if(Mt.t=="n")ue(F,23,L(Ee,Be,Y,Mt.v));else{var St=en(Mt);ue(F,22,_(Ee,Be,Y,St.slice(0,239)))}}++Y}}return ue(F,1),F.end()}function o(O){var b=Q(2);return b.write_shift(2,O),b}function a(O){var b=Q(26);b.write_shift(2,4096),b.write_shift(2,4),b.write_shift(4,0);for(var k=0,F=0,H=0,G=0;G<O.SheetNames.length;++G){var Y=O.SheetNames[G],te=O.Sheets[Y];if(!(!te||!te["!ref"])){++H;var re=Zt(te["!ref"]);k<re.e.r&&(k=re.e.r),F<re.e.c&&(F=re.e.c)}}return k>8191&&(k=8191),b.write_shift(2,k),b.write_shift(1,H),b.write_shift(1,F),b.write_shift(2,0),b.write_shift(2,0),b.write_shift(1,1),b.write_shift(1,2),b.write_shift(4,0),b.write_shift(4,0),b}function s(O,b,k){var F={s:{c:0,r:0},e:{c:0,r:0}};return b==8&&k.qpro?(F.s.c=O.read_shift(1),O.l++,F.s.r=O.read_shift(2),F.e.c=O.read_shift(1),O.l++,F.e.r=O.read_shift(2),F):(F.s.c=O.read_shift(2),F.s.r=O.read_shift(2),b==12&&k.qpro&&(O.l+=2),F.e.c=O.read_shift(2),F.e.r=O.read_shift(2),b==12&&k.qpro&&(O.l+=2),F.s.c==65535&&(F.s.c=F.e.c=F.s.r=F.e.r=0),F)}function l(O){var b=Q(8);return b.write_shift(2,O.s.c),b.write_shift(2,O.s.r),b.write_shift(2,O.e.c),b.write_shift(2,O.e.r),b}function u(O,b,k){var F=[{c:0,r:0},{t:"n",v:0},0,0];return k.qpro&&k.vers!=20768?(F[0].c=O.read_shift(1),F[3]=O.read_shift(1),F[0].r=O.read_shift(2),O.l+=2):(F[2]=O.read_shift(1),F[0].c=O.read_shift(2),F[0].r=O.read_shift(2)),F}function c(O,b,k){var F=O.l+b,H=u(O,b,k);if(H[1].t="s",k.vers==20768){O.l++;var G=O.read_shift(1);return H[1].v=O.read_shift(G,"utf8"),H}return k.qpro&&O.l++,H[1].v=O.read_shift(F-O.l,"cstr"),H}function f(O,b,k){var F=Q(7+k.length);F.write_shift(1,255),F.write_shift(2,b),F.write_shift(2,O),F.write_shift(1,39);for(var H=0;H<F.length;++H){var G=k.charCodeAt(H);F.write_shift(1,G>=128?95:G)}return F.write_shift(1,0),F}function h(O,b,k){var F=u(O,b,k);return F[1].v=O.read_shift(2,"i"),F}function d(O,b,k){var F=Q(7);return F.write_shift(1,255),F.write_shift(2,b),F.write_shift(2,O),F.write_shift(2,k,"i"),F}function m(O,b,k){var F=u(O,b,k);return F[1].v=O.read_shift(8,"f"),F}function p(O,b,k){var F=Q(13);return F.write_shift(1,255),F.write_shift(2,b),F.write_shift(2,O),F.write_shift(8,k,"f"),F}function g(O,b,k){var F=O.l+b,H=u(O,b,k);if(H[1].v=O.read_shift(8,"f"),k.qpro)O.l=F;else{var G=O.read_shift(2);S(O.slice(O.l,O.l+G),H),O.l+=G}return H}function v(O,b,k){var F=b&32768;return b&=-32769,b=(F?O:0)+(b>=8192?b-16384:b),(F?"":"$")+(k?Rt(b):wt(b))}var w={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(O,b){Kt(O,0);for(var k=[],F=0,H="",G="",Y="",te="";O.l<O.length;){var re=O[O.l++];switch(re){case 0:k.push(O.read_shift(8,"f"));break;case 1:G=v(b[0].c,O.read_shift(2),!0),H=v(b[0].r,O.read_shift(2),!1),k.push(G+H);break;case 2:{var ye=v(b[0].c,O.read_shift(2),!0),pe=v(b[0].r,O.read_shift(2),!1);G=v(b[0].c,O.read_shift(2),!0),H=v(b[0].r,O.read_shift(2),!1),k.push(ye+pe+":"+G+H)}break;case 3:if(O.l<O.length){console.error("WK1 premature formula end");return}break;case 4:k.push("("+k.pop()+")");break;case 5:k.push(O.read_shift(2));break;case 6:{for(var Pe="";re=O[O.l++];)Pe+=String.fromCharCode(re);k.push('"'+Pe.replace(/"/g,'""')+'"')}break;case 8:k.push("-"+k.pop());break;case 23:k.push("+"+k.pop());break;case 22:k.push("NOT("+k.pop()+")");break;case 20:case 21:te=k.pop(),Y=k.pop(),k.push(["AND","OR"][re-20]+"("+Y+","+te+")");break;default:if(re<32&&y[re])te=k.pop(),Y=k.pop(),k.push(Y+y[re]+te);else if(w[re]){if(F=w[re][1],F==69&&(F=O[O.l++]),F>k.length){console.error("WK1 bad formula parse 0x"+re.toString(16)+":|"+k.join("|")+"|");return}var Ee=k.slice(-F);k.length-=F,k.push(w[re][0]+"("+Ee.join(",")+")")}else return re<=7?console.error("WK1 invalid opcode "+re.toString(16)):re<=24?console.error("WK1 unsupported op "+re.toString(16)):re<=30?console.error("WK1 invalid opcode "+re.toString(16)):re<=115?console.error("WK1 unsupported function opcode "+re.toString(16)):console.error("WK1 unrecognized opcode "+re.toString(16))}}k.length==1?b[1].f=""+k[0]:console.error("WK1 bad formula parse |"+k.join("|")+"|")}function N(O){var b=[{c:0,r:0},{t:"n",v:0},0];return b[0].r=O.read_shift(2),b[3]=O[O.l++],b[0].c=O[O.l++],b}function M(O,b){var k=N(O);return k[1].t="s",k[1].v=O.read_shift(b-4,"cstr"),k}function _(O,b,k,F){var H=Q(6+F.length);H.write_shift(2,O),H.write_shift(1,k),H.write_shift(1,b),H.write_shift(1,39);for(var G=0;G<F.length;++G){var Y=F.charCodeAt(G);H.write_shift(1,Y>=128?95:Y)}return H.write_shift(1,0),H}function C(O,b){var k=N(O);k[1].v=O.read_shift(2);var F=k[1].v>>1;if(k[1].v&1)switch(F&7){case 0:F=(F>>3)*5e3;break;case 1:F=(F>>3)*500;break;case 2:F=(F>>3)/20;break;case 3:F=(F>>3)/200;break;case 4:F=(F>>3)/2e3;break;case 5:F=(F>>3)/2e4;break;case 6:F=(F>>3)/16;break;case 7:F=(F>>3)/64;break}return k[1].v=F,k}function A(O,b){var k=N(O),F=O.read_shift(4),H=O.read_shift(4),G=O.read_shift(2);if(G==65535)return F===0&&H===3221225472?(k[1].t="e",k[1].v=15):F===0&&H===3489660928?(k[1].t="e",k[1].v=42):k[1].v=0,k;var Y=G&32768;return G=(G&32767)-16446,k[1].v=(1-Y*2)*(H*Math.pow(2,G+32)+F*Math.pow(2,G)),k}function L(O,b,k,F){var H=Q(14);if(H.write_shift(2,O),H.write_shift(1,k),H.write_shift(1,b),F==0)return H.write_shift(4,0),H.write_shift(4,0),H.write_shift(2,65535),H;var G=0,Y=0,te=0,re=0;return F<0&&(G=1,F=-F),Y=Math.log2(F)|0,F/=Math.pow(2,Y-31),re=F>>>0,re&2147483648||(F/=2,++Y,re=F>>>0),F-=re,re|=2147483648,re>>>=0,F*=Math.pow(2,32),te=F>>>0,H.write_shift(4,te),H.write_shift(4,re),Y+=16383+(G?32768:0),H.write_shift(2,Y),H}function U(O,b){var k=A(O);return O.l+=b-14,k}function B(O,b){var k=N(O),F=O.read_shift(4);return k[1].v=F>>6,k}function V(O,b){var k=N(O),F=O.read_shift(8,"f");return k[1].v=F,k}function q(O,b){var k=V(O);return O.l+=b-10,k}function ne(O,b){return O[O.l+b-1]==0?O.read_shift(b,"cstr"):""}function we(O,b){var k=O[O.l++];k>b-1&&(k=b-1);for(var F="";F.length<k;)F+=String.fromCharCode(O[O.l++]);return F}function ve(O,b,k){if(!(!k.qpro||b<21)){var F=O.read_shift(1);O.l+=17,O.l+=1,O.l+=2;var H=O.read_shift(b-21,"cstr");return[F,H]}}function _e(O,b){for(var k={},F=O.l+b;O.l<F;){var H=O.read_shift(2);if(H==14e3){for(k[H]=[0,""],k[H][0]=O.read_shift(2);O[O.l];)k[H][1]+=String.fromCharCode(O[O.l]),O.l++;O.l++}}return k}function J(O,b){var k=Q(5+O.length);k.write_shift(2,14e3),k.write_shift(2,b);for(var F=0;F<O.length;++F){var H=O.charCodeAt(F);k[k.l++]=H>127?95:H}return k[k.l++]=0,k}var ce={0:{n:"BOF",f:Vx},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ne},222:{n:"SHEETNAMELP",f:we},65535:{n:""}},K={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:M},23:{n:"NUMBER17",f:A},24:{n:"NUMBER18",f:C},25:{n:"FORMULA19",f:U},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:_e},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:B},38:{n:"??"},39:{n:"NUMBER27",f:V},40:{n:"FORMULA28",f:q},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ne},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:ve},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:t}}(),a8=/^\s|\s$|[\t\n\r]/;function Kx(e,t){if(!t.bookSST)return"";var r=[it];r[r.length]=le("sst",null,{xmlns:wo[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],o="<si>";i.r?o+=i.r:(o+="<t",i.t||(i.t=""),i.t.match(a8)&&(o+=' xml:space="preserve"'),o+=">"+Me(i.t)+"</t>"),o+="</si>",r[r.length]=o}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function s8(e){return[e.read_shift(4),e.read_shift(4)]}function l8(e,t){return t||(t=Q(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var u8=J4;function c8(e){var t=Wt();ie(t,159,l8(e));for(var r=0;r<e.length;++r)ie(t,19,u8(e[r]));return ie(t,160),t.end()}function f8(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function Yx(e){var t=0,r,n=f8(e),i=n.length+1,o,a,s,l,u;for(r=ri(i),r[0]=n.length,o=1;o!=i;++o)r[o]=n[o-1];for(o=i-1;o>=0;--o)a=r[o],s=t&16384?1:0,l=t<<1&32767,u=s|l,t=u^a;return t^52811}var d8=function(){function e(i,o){switch(o.type){case"base64":return t(Jr(i),o);case"binary":return t(i,o);case"buffer":return t(be&&Buffer.isBuffer(i)?i.toString("binary"):Ka(i),o);case"array":return t(vu(i),o)}throw new Error("Unrecognized type "+o.type)}function t(i,o){var a=o||{},s=a.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var u={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(c,f){Array.isArray(s)&&(s[f]=[]);for(var h=/\\\w+\b/g,d=0,m,p=-1;m=h.exec(c);){switch(m[0]){case"\\cell":var g=c.slice(d,h.lastIndex-m[0].length);if(g[0]==" "&&(g=g.slice(1)),++p,g.length){var v={v:g,t:"s"};Array.isArray(s)?s[f][p]=v:s[Le({r:f,c:p})]=v}break}d=h.lastIndex}p>u.e.c&&(u.e.c=p)}),s["!ref"]=nt(u),s}function r(i,o){return hi(e(i,o),o)}function n(i){for(var o=["{\\rtf1\\ansi"],a=Ge(i["!ref"]),s,l=Array.isArray(i),u=a.s.r;u<=a.e.r;++u){o.push("\\trowd\\trautofit1");for(var c=a.s.c;c<=a.e.c;++c)o.push("\\cellx"+(c+1));for(o.push("\\pard\\intbl"),c=a.s.c;c<=a.e.c;++c){var f=Le({r:u,c});s=l?(i[u]||[])[c]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(o.push(" "+(s.w||(en(s),s.w))),o.push("\\cell"))}o.push("\\pard\\intbl\\row")}return o.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Rg(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var h8=6,qr=h8;function Ml(e){return Math.floor((e+Math.round(128/qr)/256)*qr)}function Ll(e){return Math.floor((e-5)/qr*100+.5)/100}function Hf(e){return Math.round((e*qr+5)/qr*256)/256}function _d(e){e.width?(e.wpx=Ml(e.width),e.wch=Ll(e.wpx),e.MDW=qr):e.wpx?(e.wch=Ll(e.wpx),e.width=Hf(e.wch),e.MDW=qr):typeof e.wch=="number"&&(e.width=Hf(e.wch),e.wpx=Ml(e.width),e.MDW=qr),e.customWidth&&delete e.customWidth}var p8=96,qx=p8;function Bl(e){return e*96/qx}function Qx(e){return e*qx/96}function g8(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=le("numFmt",null,{numFmtId:n,formatCode:Me(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=le("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function m8(e){var t=[];return t[t.length]=le("cellXfs",null),e.forEach(function(r){t[t.length]=le("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=le("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function Zx(e,t){var r=[it,le("styleSheet",null,{xmlns:wo[0],"xmlns:vt":lt.vt})],n;return e.SSF&&(n=g8(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=m8(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function v8(e,t){var r=e.read_shift(2),n=Ot(e);return[r,n]}function x8(e,t,r){r||(r=Q(6+4*t.length)),r.write_shift(2,e),ct(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function w8(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=a3(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var o=e.read_shift(2);switch(o===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var a=e.read_shift(1);a!=0&&(n.underline=a);var s=e.read_shift(1);s>0&&(n.family=s);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=o3(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Ot(e),n}function y8(e,t){t||(t=Q(25+4*32)),t.write_shift(2,e.sz*20),s3(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Nl(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),ct(e.name,t),t.length>t.l?t.slice(0,t.l):t}var E8=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Sc,S8=kr;function Og(e,t){t||(t=Q(4*3+8*7+16*1)),Sc||(Sc=fd(E8));var r=Sc[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Nl({auto:1},t),Nl({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function _8(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function Jx(e,t,r){r||(r=Q(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Ho(e,t){return t||(t=Q(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var T8=kr;function C8(e,t){return t||(t=Q(51)),t.write_shift(1,0),Ho(null,t),Ho(null,t),Ho(null,t),Ho(null,t),Ho(null,t),t.length>t.l?t.slice(0,t.l):t}function A8(e,t){return t||(t=Q(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),bl(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function R8(e,t,r){var n=Q(2052);return n.write_shift(4,e),bl(t,n),bl(r,n),n.length>n.l?n.slice(0,n.l):n}function O8(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(ie(e,615,_r(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&ie(e,44,x8(i,t[i]))}),ie(e,616))}}function F8(e){var t=1;ie(e,611,_r(t)),ie(e,43,y8({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ie(e,612)}function P8(e){var t=2;ie(e,603,_r(t)),ie(e,45,Og({patternType:"none"})),ie(e,45,Og({patternType:"gray125"})),ie(e,604)}function D8(e){var t=1;ie(e,613,_r(t)),ie(e,46,C8()),ie(e,614)}function I8(e){var t=1;ie(e,626,_r(t)),ie(e,47,Jx({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ie(e,627)}function k8(e,t){ie(e,617,_r(t.length)),t.forEach(function(r){ie(e,47,Jx(r,0))}),ie(e,618)}function b8(e){var t=1;ie(e,619,_r(t)),ie(e,48,A8({xfId:0,builtinId:0,name:"Normal"})),ie(e,620)}function N8(e){var t=0;ie(e,505,_r(t)),ie(e,506)}function $8(e){var t=0;ie(e,508,R8(t,"TableStyleMedium9","PivotStyleMedium4")),ie(e,509)}function M8(e,t){var r=Wt();return ie(r,278),O8(r,e.SSF),F8(r),P8(r),D8(r),I8(r),k8(r,t.cellXfs),b8(r),N8(r),$8(r),ie(r,279),r.end()}function e2(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[it];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function L8(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ot(e)}}function B8(e){var t=Q(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),ct(e.name,t),t.slice(0,t.l)}function U8(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function H8(e){var t=Q(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function V8(e,t){var r=Q(8+2*t.length);return r.write_shift(4,e),ct(t,r),r.slice(0,r.l)}function W8(e){return e.l+=4,e.read_shift(4)!=0}function z8(e,t){var r=Q(8);return r.write_shift(4,e),r.write_shift(4,t?1:0),r}function G8(){var e=Wt();return ie(e,332),ie(e,334,_r(1)),ie(e,335,B8({name:"XLDAPR",version:12e4,flags:3496657072})),ie(e,336),ie(e,339,V8(1,"XLDAPR")),ie(e,52),ie(e,35,_r(514)),ie(e,4096,_r(0)),ie(e,4097,ir(1)),ie(e,36),ie(e,53),ie(e,340),ie(e,337,z8(1,!0)),ie(e,51,H8([[1,0]])),ie(e,338),ie(e,333),e.end()}function t2(){var e=[it];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
+`)}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),o8=function(){function e(c,f,h,d,m){m.raw?f[h][d]=c:c===""||(c==="TRUE"?f[h][d]=!0:c==="FALSE"?f[h][d]=!1:isNaN(Yr(c))?isNaN(ba(c).getDate())?f[h][d]=c:f[h][d]=bt(c):f[h][d]=Yr(c))}function t(c,f){var h=f||{},d=[];if(!c||c.length===0)return d;for(var m=c.split(/[\r\n]/),p=m.length-1;p>=0&&m[p].length===0;)--p;for(var g=10,v=0,w=0;w<=p;++w)v=m[w].indexOf(" "),v==-1?v=m[w].length:v++,g=Math.max(g,v);for(w=0;w<=p;++w){d[w]=[];var y=0;for(e(m[w].slice(0,g).trim(),d,w,y,h),y=1;y<=(m[w].length-g)/10+1;++y)e(m[w].slice(g+(y-1)*10,g+y*10).trim(),d,w,y,h)}return h.sheetRows&&(d=d.slice(0,h.sheetRows)),d}var r={44:",",9:"	",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var f={},h=!1,d=0,m=0;d<c.length;++d)(m=c.charCodeAt(d))==34?h=!h:!h&&m in r&&(f[m]=(f[m]||0)+1);m=[];for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&m.push([f[d],d]);if(!m.length){f=n;for(d in f)Object.prototype.hasOwnProperty.call(f,d)&&m.push([f[d],d])}return m.sort(function(p,g){return p[0]-g[0]||n[p[1]]-n[g[1]]}),r[m.pop()[1]]||44}function o(c,f){var h=f||{},d="",m=h.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(d=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(d=c.charAt(4),c=c.slice(6)):d=i(c.slice(0,1024)):h&&h.FS?d=h.FS:d=i(c.slice(0,1024));var g=0,v=0,w=0,y=0,S=0,b=d.charCodeAt(0),M=!1,_=0,A=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
+`);var R=h.dateNF!=null?E4(h.dateNF):null;function L(){var U=c.slice(y,S),B={};if(U.charAt(0)=='"'&&U.charAt(U.length-1)=='"'&&(U=U.slice(1,-1).replace(/""/g,'"')),U.length===0)B.t="z";else if(h.raw)B.t="s",B.v=U;else if(U.trim().length===0)B.t="s",B.v=U;else if(U.charCodeAt(0)==61)U.charCodeAt(1)==34&&U.charCodeAt(U.length-1)==34?(B.t="s",B.v=U.slice(2,-1).replace(/""/g,'"')):n6(U)?(B.t="n",B.f=U.slice(1)):(B.t="s",B.v=U);else if(U=="TRUE")B.t="b",B.v=!0;else if(U=="FALSE")B.t="b",B.v=!1;else if(!isNaN(w=Yr(U)))B.t="n",h.cellText!==!1&&(B.w=U),B.v=w;else if(!isNaN(ba(U).getDate())||R&&U.match(R)){B.z=h.dateNF||Je[14];var V=0;R&&U.match(R)&&(U=S4(U,h.dateNF,U.match(R)||[]),V=1),h.cellDates?(B.t="d",B.v=bt(U,V)):(B.t="n",B.v=zt(bt(U,V))),h.cellText!==!1&&(B.w=kn(B.z,B.v instanceof Date?zt(B.v):B.v)),h.cellNF||delete B.z}else B.t="s",B.v=U;if(B.t=="z"||(h.dense?(m[g]||(m[g]=[]),m[g][v]=B):m[Le({c:v,r:g})]=B),y=S+1,A=c.charCodeAt(y),p.e.c<v&&(p.e.c=v),p.e.r<g&&(p.e.r=g),_==b)++v;else if(v=0,++g,h.sheetRows&&h.sheetRows<=g)return!0}e:for(;S<c.length;++S)switch(_=c.charCodeAt(S)){case 34:A===34&&(M=!M);break;case b:case 10:case 13:if(!M&&L())break e;break}return S-y>0&&L(),m["!ref"]=nt(p),m}function a(c,f){return!(f&&f.PRN)||f.FS||c.slice(0,4)=="sep="||c.indexOf("	")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?o(c,f):yo(t(c,f),f)}function s(c,f){var h="",d=f.type=="string"?[0,0,0,0]:vR(c,f);switch(f.type){case"base64":h=Jr(c);break;case"binary":h=c;break;case"buffer":f.codepage==65001?h=c.toString("utf8"):f.codepage&&typeof zn<"u"?h=zn.utils.decode(f.codepage,c):h=be&&Buffer.isBuffer(c)?c.toString("binary"):Ka(c);break;case"array":h=vu(c);break;case"string":h=c;break;default:throw new Error("Unrecognized type "+f.type)}return d[0]==239&&d[1]==187&&d[2]==191?h=ca(h.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?h=ca(h):f.type=="binary"&&typeof zn<"u"&&f.codepage&&(h=zn.utils.decode(f.codepage,zn.utils.encode(28591,h))),h.slice(0,19)=="socialcalc:version:"?Xx.to_sheet(f.type=="string"?h:ca(h),f):a(h,f)}function l(c,f){return hi(s(c,f),f)}function u(c){for(var f=[],h=Ge(c["!ref"]),d,m=Array.isArray(c),p=h.s.r;p<=h.e.r;++p){for(var g=[],v=h.s.c;v<=h.e.c;++v){var w=Le({r:p,c:v});if(d=m?(c[p]||[])[v]:c[w],!d||d.v==null){g.push("          ");continue}for(var y=(d.w||(en(d),d.w)||"").slice(0,10);y.length<10;)y+=" ";g.push(y+(v===0?" ":""))}f.push(g.join(""))}return f.join(`
+`)}return{to_workbook:l,to_sheet:s,from_sheet:u}}(),Ag=function(){function e(C,N,k){if(C){Kt(C,C.l||0);for(var F=k.Enum||ae;C.l<C.length;){var H=C.read_shift(2),z=F[H]||F[65535],J=C.read_shift(2),Z=C.l+J,te=z.f&&z.f(C,J,k);if(C.l=Z,N(te,z,H))return}}}function t(C,N){switch(N.type){case"base64":return r(wr(Jr(C)),N);case"binary":return r(wr(C),N);case"buffer":case"array":return r(C,N)}throw"Unsupported type "+N.type}function r(C,N){if(!C)return C;var k=N||{},F=k.dense?[]:{},H="Sheet1",z="",J=0,Z={},te=[],ye=[],pe={s:{r:0,c:0},e:{r:0,c:0}},Pe=k.sheetRows||0;if(C[2]==0&&(C[3]==8||C[3]==9)&&C.length>=16&&C[14]==5&&C[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(C[2]==2)k.Enum=ae,e(C,function(ge,Mt,St){switch(St){case 0:k.vers=ge,ge>=4096&&(k.qpro=!0);break;case 6:pe=ge;break;case 204:ge&&(z=ge);break;case 222:z=ge;break;case 15:case 51:k.qpro||(ge[1].v=ge[1].v.slice(1));case 13:case 14:case 16:St==14&&(ge[2]&112)==112&&(ge[2]&15)>1&&(ge[2]&15)<15&&(ge[1].z=k.dateNF||Je[14],k.cellDates&&(ge[1].t="d",ge[1].v=cx(ge[1].v))),k.qpro&&ge[3]>J&&(F["!ref"]=nt(pe),Z[H]=F,te.push(H),F=k.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},J=ge[3],H=z||"Sheet"+(J+1),z="");var jt=k.dense?(F[ge[0].r]||[])[ge[0].c]:F[Le(ge[0])];if(jt){jt.t=ge[1].t,jt.v=ge[1].v,ge[1].z!=null&&(jt.z=ge[1].z),ge[1].f!=null&&(jt.f=ge[1].f);break}k.dense?(F[ge[0].r]||(F[ge[0].r]=[]),F[ge[0].r][ge[0].c]=ge[1]):F[Le(ge[0])]=ge[1];break}},k);else if(C[2]==26||C[2]==14)k.Enum=K,C[2]==14&&(k.qpro=!0,C.l=0),e(C,function(ge,Mt,St){switch(St){case 204:H=ge;break;case 22:ge[1].v=ge[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ge[3]>J&&(F["!ref"]=nt(pe),Z[H]=F,te.push(H),F=k.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},J=ge[3],H="Sheet"+(J+1)),Pe>0&&ge[0].r>=Pe)break;k.dense?(F[ge[0].r]||(F[ge[0].r]=[]),F[ge[0].r][ge[0].c]=ge[1]):F[Le(ge[0])]=ge[1],pe.e.c<ge[0].c&&(pe.e.c=ge[0].c),pe.e.r<ge[0].r&&(pe.e.r=ge[0].r);break;case 27:ge[14e3]&&(ye[ge[14e3][0]]=ge[14e3][1]);break;case 1537:ye[ge[0]]=ge[1],ge[0]==J&&(H=ge[1]);break}},k);else throw new Error("Unrecognized LOTUS BOF "+C[2]);if(F["!ref"]=nt(pe),Z[z||H]=F,te.push(z||H),!ye.length)return{SheetNames:te,Sheets:Z};for(var Ee={},et=[],Be=0;Be<ye.length;++Be)Z[te[Be]]?(et.push(ye[Be]||te[Be]),Ee[ye[Be]]=Z[ye[Be]]||Z[te[Be]]):(et.push(ye[Be]),Ee[ye[Be]]={"!ref":"A1"});return{SheetNames:et,Sheets:Ee}}function n(C,N){var k=N||{};if(+k.codepage>=0&&Ia(+k.codepage),k.type=="string")throw new Error("Cannot write WK1 to JS string");var F=Wt(),H=Ge(C["!ref"]),z=Array.isArray(C),J=[];ce(F,0,o(1030)),ce(F,6,l(H));for(var Z=Math.min(H.e.r,8191),te=H.s.r;te<=Z;++te)for(var ye=wt(te),pe=H.s.c;pe<=H.e.c;++pe){te===H.s.r&&(J[pe]=Rt(pe));var Pe=J[pe]+ye,Ee=z?(C[te]||[])[pe]:C[Pe];if(!(!Ee||Ee.t=="z"))if(Ee.t=="n")(Ee.v|0)==Ee.v&&Ee.v>=-32768&&Ee.v<=32767?ce(F,13,d(te,pe,Ee.v)):ce(F,14,p(te,pe,Ee.v));else{var et=en(Ee);ce(F,15,f(te,pe,et.slice(0,239)))}}return ce(F,1),F.end()}function i(C,N){var k=N||{};if(+k.codepage>=0&&Ia(+k.codepage),k.type=="string")throw new Error("Cannot write WK3 to JS string");var F=Wt();ce(F,0,a(C));for(var H=0,z=0;H<C.SheetNames.length;++H)(C.Sheets[C.SheetNames[H]]||{})["!ref"]&&ce(F,27,ie(C.SheetNames[H],z++));var J=0;for(H=0;H<C.SheetNames.length;++H){var Z=C.Sheets[C.SheetNames[H]];if(!(!Z||!Z["!ref"])){for(var te=Ge(Z["!ref"]),ye=Array.isArray(Z),pe=[],Pe=Math.min(te.e.r,8191),Ee=te.s.r;Ee<=Pe;++Ee)for(var et=wt(Ee),Be=te.s.c;Be<=te.e.c;++Be){Ee===te.s.r&&(pe[Be]=Rt(Be));var ge=pe[Be]+et,Mt=ye?(Z[Ee]||[])[Be]:Z[ge];if(!(!Mt||Mt.t=="z"))if(Mt.t=="n")ce(F,23,L(Ee,Be,J,Mt.v));else{var St=en(Mt);ce(F,22,_(Ee,Be,J,St.slice(0,239)))}}++J}}return ce(F,1),F.end()}function o(C){var N=q(2);return N.write_shift(2,C),N}function a(C){var N=q(26);N.write_shift(2,4096),N.write_shift(2,4),N.write_shift(4,0);for(var k=0,F=0,H=0,z=0;z<C.SheetNames.length;++z){var J=C.SheetNames[z],Z=C.Sheets[J];if(!(!Z||!Z["!ref"])){++H;var te=Zt(Z["!ref"]);k<te.e.r&&(k=te.e.r),F<te.e.c&&(F=te.e.c)}}return k>8191&&(k=8191),N.write_shift(2,k),N.write_shift(1,H),N.write_shift(1,F),N.write_shift(2,0),N.write_shift(2,0),N.write_shift(1,1),N.write_shift(1,2),N.write_shift(4,0),N.write_shift(4,0),N}function s(C,N,k){var F={s:{c:0,r:0},e:{c:0,r:0}};return N==8&&k.qpro?(F.s.c=C.read_shift(1),C.l++,F.s.r=C.read_shift(2),F.e.c=C.read_shift(1),C.l++,F.e.r=C.read_shift(2),F):(F.s.c=C.read_shift(2),F.s.r=C.read_shift(2),N==12&&k.qpro&&(C.l+=2),F.e.c=C.read_shift(2),F.e.r=C.read_shift(2),N==12&&k.qpro&&(C.l+=2),F.s.c==65535&&(F.s.c=F.e.c=F.s.r=F.e.r=0),F)}function l(C){var N=q(8);return N.write_shift(2,C.s.c),N.write_shift(2,C.s.r),N.write_shift(2,C.e.c),N.write_shift(2,C.e.r),N}function u(C,N,k){var F=[{c:0,r:0},{t:"n",v:0},0,0];return k.qpro&&k.vers!=20768?(F[0].c=C.read_shift(1),F[3]=C.read_shift(1),F[0].r=C.read_shift(2),C.l+=2):(F[2]=C.read_shift(1),F[0].c=C.read_shift(2),F[0].r=C.read_shift(2)),F}function c(C,N,k){var F=C.l+N,H=u(C,N,k);if(H[1].t="s",k.vers==20768){C.l++;var z=C.read_shift(1);return H[1].v=C.read_shift(z,"utf8"),H}return k.qpro&&C.l++,H[1].v=C.read_shift(F-C.l,"cstr"),H}function f(C,N,k){var F=q(7+k.length);F.write_shift(1,255),F.write_shift(2,N),F.write_shift(2,C),F.write_shift(1,39);for(var H=0;H<F.length;++H){var z=k.charCodeAt(H);F.write_shift(1,z>=128?95:z)}return F.write_shift(1,0),F}function h(C,N,k){var F=u(C,N,k);return F[1].v=C.read_shift(2,"i"),F}function d(C,N,k){var F=q(7);return F.write_shift(1,255),F.write_shift(2,N),F.write_shift(2,C),F.write_shift(2,k,"i"),F}function m(C,N,k){var F=u(C,N,k);return F[1].v=C.read_shift(8,"f"),F}function p(C,N,k){var F=q(13);return F.write_shift(1,255),F.write_shift(2,N),F.write_shift(2,C),F.write_shift(8,k,"f"),F}function g(C,N,k){var F=C.l+N,H=u(C,N,k);if(H[1].v=C.read_shift(8,"f"),k.qpro)C.l=F;else{var z=C.read_shift(2);S(C.slice(C.l,C.l+z),H),C.l+=z}return H}function v(C,N,k){var F=N&32768;return N&=-32769,N=(F?C:0)+(N>=8192?N-16384:N),(F?"":"$")+(k?Rt(N):wt(N))}var w={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},y=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(C,N){Kt(C,0);for(var k=[],F=0,H="",z="",J="",Z="";C.l<C.length;){var te=C[C.l++];switch(te){case 0:k.push(C.read_shift(8,"f"));break;case 1:z=v(N[0].c,C.read_shift(2),!0),H=v(N[0].r,C.read_shift(2),!1),k.push(z+H);break;case 2:{var ye=v(N[0].c,C.read_shift(2),!0),pe=v(N[0].r,C.read_shift(2),!1);z=v(N[0].c,C.read_shift(2),!0),H=v(N[0].r,C.read_shift(2),!1),k.push(ye+pe+":"+z+H)}break;case 3:if(C.l<C.length){console.error("WK1 premature formula end");return}break;case 4:k.push("("+k.pop()+")");break;case 5:k.push(C.read_shift(2));break;case 6:{for(var Pe="";te=C[C.l++];)Pe+=String.fromCharCode(te);k.push('"'+Pe.replace(/"/g,'""')+'"')}break;case 8:k.push("-"+k.pop());break;case 23:k.push("+"+k.pop());break;case 22:k.push("NOT("+k.pop()+")");break;case 20:case 21:Z=k.pop(),J=k.pop(),k.push(["AND","OR"][te-20]+"("+J+","+Z+")");break;default:if(te<32&&y[te])Z=k.pop(),J=k.pop(),k.push(J+y[te]+Z);else if(w[te]){if(F=w[te][1],F==69&&(F=C[C.l++]),F>k.length){console.error("WK1 bad formula parse 0x"+te.toString(16)+":|"+k.join("|")+"|");return}var Ee=k.slice(-F);k.length-=F,k.push(w[te][0]+"("+Ee.join(",")+")")}else return te<=7?console.error("WK1 invalid opcode "+te.toString(16)):te<=24?console.error("WK1 unsupported op "+te.toString(16)):te<=30?console.error("WK1 invalid opcode "+te.toString(16)):te<=115?console.error("WK1 unsupported function opcode "+te.toString(16)):console.error("WK1 unrecognized opcode "+te.toString(16))}}k.length==1?N[1].f=""+k[0]:console.error("WK1 bad formula parse |"+k.join("|")+"|")}function b(C){var N=[{c:0,r:0},{t:"n",v:0},0];return N[0].r=C.read_shift(2),N[3]=C[C.l++],N[0].c=C[C.l++],N}function M(C,N){var k=b(C);return k[1].t="s",k[1].v=C.read_shift(N-4,"cstr"),k}function _(C,N,k,F){var H=q(6+F.length);H.write_shift(2,C),H.write_shift(1,k),H.write_shift(1,N),H.write_shift(1,39);for(var z=0;z<F.length;++z){var J=F.charCodeAt(z);H.write_shift(1,J>=128?95:J)}return H.write_shift(1,0),H}function A(C,N){var k=b(C);k[1].v=C.read_shift(2);var F=k[1].v>>1;if(k[1].v&1)switch(F&7){case 0:F=(F>>3)*5e3;break;case 1:F=(F>>3)*500;break;case 2:F=(F>>3)/20;break;case 3:F=(F>>3)/200;break;case 4:F=(F>>3)/2e3;break;case 5:F=(F>>3)/2e4;break;case 6:F=(F>>3)/16;break;case 7:F=(F>>3)/64;break}return k[1].v=F,k}function R(C,N){var k=b(C),F=C.read_shift(4),H=C.read_shift(4),z=C.read_shift(2);if(z==65535)return F===0&&H===3221225472?(k[1].t="e",k[1].v=15):F===0&&H===3489660928?(k[1].t="e",k[1].v=42):k[1].v=0,k;var J=z&32768;return z=(z&32767)-16446,k[1].v=(1-J*2)*(H*Math.pow(2,z+32)+F*Math.pow(2,z)),k}function L(C,N,k,F){var H=q(14);if(H.write_shift(2,C),H.write_shift(1,k),H.write_shift(1,N),F==0)return H.write_shift(4,0),H.write_shift(4,0),H.write_shift(2,65535),H;var z=0,J=0,Z=0,te=0;return F<0&&(z=1,F=-F),J=Math.log2(F)|0,F/=Math.pow(2,J-31),te=F>>>0,te&2147483648||(F/=2,++J,te=F>>>0),F-=te,te|=2147483648,te>>>=0,F*=Math.pow(2,32),Z=F>>>0,H.write_shift(4,Z),H.write_shift(4,te),J+=16383+(z?32768:0),H.write_shift(2,J),H}function U(C,N){var k=R(C);return C.l+=N-14,k}function B(C,N){var k=b(C),F=C.read_shift(4);return k[1].v=F>>6,k}function V(C,N){var k=b(C),F=C.read_shift(8,"f");return k[1].v=F,k}function Y(C,N){var k=V(C);return C.l+=N-10,k}function ne(C,N){return C[C.l+N-1]==0?C.read_shift(N,"cstr"):""}function me(C,N){var k=C[C.l++];k>N-1&&(k=N-1);for(var F="";F.length<k;)F+=String.fromCharCode(C[C.l++]);return F}function xe(C,N,k){if(!(!k.qpro||N<21)){var F=C.read_shift(1);C.l+=17,C.l+=1,C.l+=2;var H=C.read_shift(N-21,"cstr");return[F,H]}}function _e(C,N){for(var k={},F=C.l+N;C.l<F;){var H=C.read_shift(2);if(H==14e3){for(k[H]=[0,""],k[H][0]=C.read_shift(2);C[C.l];)k[H][1]+=String.fromCharCode(C[C.l]),C.l++;C.l++}}return k}function ie(C,N){var k=q(5+C.length);k.write_shift(2,14e3),k.write_shift(2,N);for(var F=0;F<C.length;++F){var H=C.charCodeAt(F);k[k.l++]=H>127?95:H}return k[k.l++]=0,k}var ae={0:{n:"BOF",f:Vx},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:h},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ne},222:{n:"SHEETNAMELP",f:me},65535:{n:""}},K={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:M},23:{n:"NUMBER17",f:R},24:{n:"NUMBER18",f:A},25:{n:"FORMULA19",f:U},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:_e},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:B},38:{n:"??"},39:{n:"NUMBER27",f:V},40:{n:"FORMULA28",f:Y},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ne},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:xe},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:t}}(),a8=/^\s|\s$|[\t\n\r]/;function Kx(e,t){if(!t.bookSST)return"";var r=[it];r[r.length]=ue("sst",null,{xmlns:wo[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],o="<si>";i.r?o+=i.r:(o+="<t",i.t||(i.t=""),i.t.match(a8)&&(o+=' xml:space="preserve"'),o+=">"+Me(i.t)+"</t>"),o+="</si>",r[r.length]=o}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function s8(e){return[e.read_shift(4),e.read_shift(4)]}function l8(e,t){return t||(t=q(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var u8=J4;function c8(e){var t=Wt();re(t,159,l8(e));for(var r=0;r<e.length;++r)re(t,19,u8(e[r]));return re(t,160),t.end()}function f8(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function Yx(e){var t=0,r,n=f8(e),i=n.length+1,o,a,s,l,u;for(r=ri(i),r[0]=n.length,o=1;o!=i;++o)r[o]=n[o-1];for(o=i-1;o>=0;--o)a=r[o],s=t&16384?1:0,l=t<<1&32767,u=s|l,t=u^a;return t^52811}var d8=function(){function e(i,o){switch(o.type){case"base64":return t(Jr(i),o);case"binary":return t(i,o);case"buffer":return t(be&&Buffer.isBuffer(i)?i.toString("binary"):Ka(i),o);case"array":return t(vu(i),o)}throw new Error("Unrecognized type "+o.type)}function t(i,o){var a=o||{},s=a.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var u={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(c,f){Array.isArray(s)&&(s[f]=[]);for(var h=/\\\w+\b/g,d=0,m,p=-1;m=h.exec(c);){switch(m[0]){case"\\cell":var g=c.slice(d,h.lastIndex-m[0].length);if(g[0]==" "&&(g=g.slice(1)),++p,g.length){var v={v:g,t:"s"};Array.isArray(s)?s[f][p]=v:s[Le({r:f,c:p})]=v}break}d=h.lastIndex}p>u.e.c&&(u.e.c=p)}),s["!ref"]=nt(u),s}function r(i,o){return hi(e(i,o),o)}function n(i){for(var o=["{\\rtf1\\ansi"],a=Ge(i["!ref"]),s,l=Array.isArray(i),u=a.s.r;u<=a.e.r;++u){o.push("\\trowd\\trautofit1");for(var c=a.s.c;c<=a.e.c;++c)o.push("\\cellx"+(c+1));for(o.push("\\pard\\intbl"),c=a.s.c;c<=a.e.c;++c){var f=Le({r:u,c});s=l?(i[u]||[])[c]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(o.push(" "+(s.w||(en(s),s.w))),o.push("\\cell"))}o.push("\\pard\\intbl\\row")}return o.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Rg(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var h8=6,qr=h8;function Ml(e){return Math.floor((e+Math.round(128/qr)/256)*qr)}function Ll(e){return Math.floor((e-5)/qr*100+.5)/100}function Hf(e){return Math.round((e*qr+5)/qr*256)/256}function _d(e){e.width?(e.wpx=Ml(e.width),e.wch=Ll(e.wpx),e.MDW=qr):e.wpx?(e.wch=Ll(e.wpx),e.width=Hf(e.wch),e.MDW=qr):typeof e.wch=="number"&&(e.width=Hf(e.wch),e.wpx=Ml(e.width),e.MDW=qr),e.customWidth&&delete e.customWidth}var p8=96,qx=p8;function Bl(e){return e*96/qx}function Qx(e){return e*qx/96}function g8(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=ue("numFmt",null,{numFmtId:n,formatCode:Me(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=ue("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function m8(e){var t=[];return t[t.length]=ue("cellXfs",null),e.forEach(function(r){t[t.length]=ue("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=ue("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function Zx(e,t){var r=[it,ue("styleSheet",null,{xmlns:wo[0],"xmlns:vt":lt.vt})],n;return e.SSF&&(n=g8(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=m8(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function v8(e,t){var r=e.read_shift(2),n=Ot(e);return[r,n]}function x8(e,t,r){r||(r=q(6+4*t.length)),r.write_shift(2,e),ct(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function w8(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=a3(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var o=e.read_shift(2);switch(o===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var a=e.read_shift(1);a!=0&&(n.underline=a);var s=e.read_shift(1);s>0&&(n.family=s);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=o3(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Ot(e),n}function y8(e,t){t||(t=q(25+4*32)),t.write_shift(2,e.sz*20),s3(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Nl(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),ct(e.name,t),t.length>t.l?t.slice(0,t.l):t}var E8=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Sc,S8=kr;function Og(e,t){t||(t=q(4*3+8*7+16*1)),Sc||(Sc=fd(E8));var r=Sc[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Nl({auto:1},t),Nl({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function _8(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function Jx(e,t,r){r||(r=q(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Ho(e,t){return t||(t=q(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var T8=kr;function C8(e,t){return t||(t=q(51)),t.write_shift(1,0),Ho(null,t),Ho(null,t),Ho(null,t),Ho(null,t),Ho(null,t),t.length>t.l?t.slice(0,t.l):t}function A8(e,t){return t||(t=q(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),bl(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function R8(e,t,r){var n=q(2052);return n.write_shift(4,e),bl(t,n),bl(r,n),n.length>n.l?n.slice(0,n.l):n}function O8(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(re(e,615,_r(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&re(e,44,x8(i,t[i]))}),re(e,616))}}function F8(e){var t=1;re(e,611,_r(t)),re(e,43,y8({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),re(e,612)}function P8(e){var t=2;re(e,603,_r(t)),re(e,45,Og({patternType:"none"})),re(e,45,Og({patternType:"gray125"})),re(e,604)}function D8(e){var t=1;re(e,613,_r(t)),re(e,46,C8()),re(e,614)}function I8(e){var t=1;re(e,626,_r(t)),re(e,47,Jx({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),re(e,627)}function k8(e,t){re(e,617,_r(t.length)),t.forEach(function(r){re(e,47,Jx(r,0))}),re(e,618)}function b8(e){var t=1;re(e,619,_r(t)),re(e,48,A8({xfId:0,builtinId:0,name:"Normal"})),re(e,620)}function N8(e){var t=0;re(e,505,_r(t)),re(e,506)}function $8(e){var t=0;re(e,508,R8(t,"TableStyleMedium9","PivotStyleMedium4")),re(e,509)}function M8(e,t){var r=Wt();return re(r,278),O8(r,e.SSF),F8(r),P8(r),D8(r),I8(r),k8(r,t.cellXfs),b8(r),N8(r),$8(r),re(r,279),r.end()}function e2(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[it];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function L8(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ot(e)}}function B8(e){var t=q(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),ct(e.name,t),t.slice(0,t.l)}function U8(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function H8(e){var t=q(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function V8(e,t){var r=q(8+2*t.length);return r.write_shift(4,e),ct(t,r),r.slice(0,r.l)}function W8(e){return e.l+=4,e.read_shift(4)!=0}function z8(e,t){var r=q(8);return r.write_shift(4,e),r.write_shift(4,t?1:0),r}function G8(){var e=Wt();return re(e,332),re(e,334,_r(1)),re(e,335,B8({name:"XLDAPR",version:12e4,flags:3496657072})),re(e,336),re(e,339,V8(1,"XLDAPR")),re(e,52),re(e,35,_r(514)),re(e,4096,_r(0)),re(e,4097,ir(1)),re(e,36),re(e,53),re(e,340),re(e,337,z8(1,!0)),re(e,51,H8([[1,0]])),re(e,338),re(e,333),e.end()}function t2(){var e=[it];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
   <metadataTypes count="1">
     <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
   </metadataTypes>
@@ -203,17 +203,17 @@
       <rc t="1" v="0"/>
     </bk>
   </cellMetadata>
-</metadata>`),e.join("")}function j8(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=Le(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Li=1024;function r2(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[le("xml",null,{"xmlns:v":Yt.v,"xmlns:o":Yt.o,"xmlns:x":Yt.x,"xmlns:mv":Yt.mv}).replace(/\/>/,">"),le("o:shapelayout",le("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),le("v:shapetype",[le("v:stroke",null,{joinstyle:"miter"}),le("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Li<e*1e3;)Li+=1e3;return t.forEach(function(o){var a=ut(o[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?le("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=le("v:fill",l,s),c={on:"t",obscured:"t"};++Li,i=i.concat(["<v:shape"+Na({id:"_x0000_s"+Li,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(o[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",u,le("v:shadow",null,c),le("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",vt("x:Anchor",[a.c+1,0,a.r+1,0,a.c+3,20,a.r+5,20].join(",")),vt("x:AutoFill","False"),vt("x:Row",String(a.r)),vt("x:Column",String(a.c)),o[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function n2(e){var t=[it,le("comments",null,{xmlns:wo[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var o=Me(i.a);r.indexOf(o)==-1&&(r.push(o),t.push("<author>"+o+"</author>")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("<author>tc="+i.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var i=0,o=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=r.indexOf(Me(l.a))),o.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),o.length<=1)t.push(vt("t",Me(o[0]||"")));else{for(var a=`Comment:
+</metadata>`),e.join("")}function j8(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=Le(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Li=1024;function r2(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[ue("xml",null,{"xmlns:v":Yt.v,"xmlns:o":Yt.o,"xmlns:x":Yt.x,"xmlns:mv":Yt.mv}).replace(/\/>/,">"),ue("o:shapelayout",ue("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),ue("v:shapetype",[ue("v:stroke",null,{joinstyle:"miter"}),ue("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Li<e*1e3;)Li+=1e3;return t.forEach(function(o){var a=ut(o[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?ue("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=ue("v:fill",l,s),c={on:"t",obscured:"t"};++Li,i=i.concat(["<v:shape"+Na({id:"_x0000_s"+Li,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(o[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",u,ue("v:shadow",null,c),ue("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",vt("x:Anchor",[a.c+1,0,a.r+1,0,a.c+3,20,a.r+5,20].join(",")),vt("x:AutoFill","False"),vt("x:Row",String(a.r)),vt("x:Column",String(a.c)),o[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function n2(e){var t=[it,ue("comments",null,{xmlns:wo[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var o=Me(i.a);r.indexOf(o)==-1&&(r.push(o),t.push("<author>"+o+"</author>")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("<author>tc="+i.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var i=0,o=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=r.indexOf(Me(l.a))),o.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),o.length<=1)t.push(vt("t",Me(o[0]||"")));else{for(var a=`Comment:
     `+o[0]+`
 `,s=1;s<o.length;++s)a+=`Reply:
     `+o[s]+`
-`;t.push(vt("t",Me(a)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function X8(e,t,r){var n=[it,le("ThreadedComments",null,{xmlns:lt.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var o="";(i[1]||[]).forEach(function(a,s){if(!a.T){delete a.ID;return}a.a&&t.indexOf(a.a)==-1&&t.push(a.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?o=l.id:l.parentId=o,a.ID=l.id,a.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(a.a)).slice(-12)+"}"),n.push(le("threadedComment",vt("text",a.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function K8(e){var t=[it,le("personList",null,{xmlns:lt.TCMNT,"xmlns:x":wo[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(le("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function Y8(e){var t={};t.iauthor=e.read_shift(4);var r=vi(e);return t.rfx=r.s,t.ref=Le(r.s),e.l+=16,t}function q8(e,t){return t==null&&(t=Q(36)),t.write_shift(4,e[1].iauthor),Eo(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var Q8=Ot;function Z8(e){return ct(e.slice(0,54))}function J8(e){var t=Wt(),r=[];return ie(t,628),ie(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),ie(t,632,Z8(i.a)))})}),ie(t,631),ie(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var o={s:ut(n[0]),e:ut(n[0])};ie(t,635,q8([o,i])),i.t&&i.t.length>0&&ie(t,637,t3(i)),ie(t,636),delete i.iauthor})}),ie(t,634),ie(t,629),t.end()}function e6(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Ue.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var i2=["xlsb","xlsm","xlam","biff8","xla"],t6=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,i,o,a){var s=!1,l=!1;o.length==0?l=!0:o.charAt(0)=="["&&(l=!0,o=o.slice(1,-1)),a.length==0?s=!0:a.charAt(0)=="["&&(s=!0,a=a.slice(1,-1));var u=o.length>0?parseInt(o,10)|0:0,c=a.length>0?parseInt(a,10)|0:0;return s?c+=t.c:--c,l?u+=t.r:--u,i+(s?"":"$")+Rt(c)+(l?"":"$")+wt(u)}return function(i,o){return t=o,i.replace(e,r)}}(),Td=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Cd=function(){return function(t,r){return t.replace(Td,function(n,i,o,a,s,l){var u=xd(a)-(o?0:r.c),c=vd(l)-(s?0:r.r),f=c==0?"":s?c+1:"["+c+"]",h=u==0?"":o?u+1:"["+u+"]";return i+"R"+f+"C"+h})}}();function r6(e,t){return e.replace(Td,function(r,n,i,o,a,s){return n+(i=="$"?i+o:Rt(xd(o)+t.c))+(a=="$"?a+s:wt(vd(s)+t.r))})}function n6(e){return e.length!=1}function rt(e){e.l+=1}function bn(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function o2(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return a2(e);r.biff==12&&(n=4)}var i=e.read_shift(n),o=e.read_shift(n),a=bn(e,2),s=bn(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function a2(e){var t=bn(e,2),r=bn(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function i6(e,t,r){if(r.biff<8)return a2(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),o=bn(e,2),a=bn(e,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function s2(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return o6(e);var n=e.read_shift(r&&r.biff==12?4:2),i=bn(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function o6(e){var t=bn(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function a6(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function s6(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return l6(e);var i=e.read_shift(n>=12?4:2),o=e.read_shift(2),a=(o&16384)>>14,s=(o&32768)>>15;if(o&=16383,s==1)for(;i>524287;)i-=1048576;if(a==1)for(;o>8191;)o=o-16384;return{r:i,c:o,cRel:a,rRel:s}}function l6(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),i==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:i,rRel:n}}function u6(e,t,r){var n=(e[e.l++]&96)>>5,i=o2(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function c6(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),o=8;if(r)switch(r.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var a=o2(e,o,r);return[n,i,a]}function f6(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function d6(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),o=8;if(r)switch(r.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[n,i]}function h6(e,t,r){var n=(e[e.l++]&96)>>5,i=i6(e,t-1,r);return[n,i]}function p6(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Fg(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function g6(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],o=0;o<=n;++o)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function m6(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function v6(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function x6(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function w6(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function l2(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function y6(e){return e.read_shift(2),l2(e)}function E6(e){return e.read_shift(2),l2(e)}function S6(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=s2(e,0,r);return[n,i]}function _6(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=s6(e,0,r);return[n,i]}function T6(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var o=s2(e,0,r);return[n,i,o]}function C6(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[CA[i],f2[i],n]}function A6(e,t,r){var n=e[e.l++],i=e.read_shift(1),o=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:R6(e);return[i,(o[0]===0?f2:TA)[o[1]]]}function R6(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function O6(e,t,r){e.l+=r&&r.biff==2?3:4}function F6(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function P6(e){return e.l++,Qa[e.read_shift(1)]}function D6(e){return e.l++,e.read_shift(2)}function I6(e){return e.l++,e.read_shift(1)!==0}function k6(e){return e.l++,So(e)}function b6(e,t,r){return e.l++,zx(e,t-1,r)}function N6(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=T3(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Qa[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=So(e);break;case 2:r[1]=O3(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function $6(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],o=0;o!=n;++o)i.push((r.biff==12?vi:D3)(e));return i}function M6(e,t,r){var n=0,i=0;r.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var o=0,a=[];o!=n&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=N6(e,r.biff);return a}function L6(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,o=e.read_shift(i);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,o]}function B6(e,t,r){if(r.biff==5)return U6(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[n,i,o]}function U6(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function H6(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function V6(e,t,r){var n=e.read_shift(1)>>>5&3,i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function W6(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function z6(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),o=4;if(r)switch(r.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[n,i]}var G6=kr,j6=kr,X6=kr;function Za(e,t,r){return e.l+=2,[a6(e)]}function Ad(e){return e.l+=6,[]}var K6=Za,Y6=Ad,q6=Ad,Q6=Za;function u2(e){return e.l+=2,[Vx(e),e.read_shift(2)&1]}var Z6=Za,J6=u2,eA=Ad,tA=Za,rA=Za,nA=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function iA(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2),a=nA[r>>2&31];return{ixti:t,coltype:r&3,rt:a,idx:n,c:i,C:o}}function oA(e){return e.l+=2,[e.read_shift(4)]}function aA(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function sA(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function lA(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function uA(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function cA(e){return e.l+=4,[0,0]}var Pg={1:{n:"PtgExp",f:F6},2:{n:"PtgTbl",f:X6},3:{n:"PtgAdd",f:rt},4:{n:"PtgSub",f:rt},5:{n:"PtgMul",f:rt},6:{n:"PtgDiv",f:rt},7:{n:"PtgPower",f:rt},8:{n:"PtgConcat",f:rt},9:{n:"PtgLt",f:rt},10:{n:"PtgLe",f:rt},11:{n:"PtgEq",f:rt},12:{n:"PtgGe",f:rt},13:{n:"PtgGt",f:rt},14:{n:"PtgNe",f:rt},15:{n:"PtgIsect",f:rt},16:{n:"PtgUnion",f:rt},17:{n:"PtgRange",f:rt},18:{n:"PtgUplus",f:rt},19:{n:"PtgUminus",f:rt},20:{n:"PtgPercent",f:rt},21:{n:"PtgParen",f:rt},22:{n:"PtgMissArg",f:rt},23:{n:"PtgStr",f:b6},26:{n:"PtgSheet",f:aA},27:{n:"PtgEndSheet",f:sA},28:{n:"PtgErr",f:P6},29:{n:"PtgBool",f:I6},30:{n:"PtgInt",f:D6},31:{n:"PtgNum",f:k6},32:{n:"PtgArray",f:p6},33:{n:"PtgFunc",f:C6},34:{n:"PtgFuncVar",f:A6},35:{n:"PtgName",f:L6},36:{n:"PtgRef",f:S6},37:{n:"PtgArea",f:u6},38:{n:"PtgMemArea",f:H6},39:{n:"PtgMemErr",f:G6},40:{n:"PtgMemNoMem",f:j6},41:{n:"PtgMemFunc",f:V6},42:{n:"PtgRefErr",f:W6},43:{n:"PtgAreaErr",f:f6},44:{n:"PtgRefN",f:_6},45:{n:"PtgAreaN",f:h6},46:{n:"PtgMemAreaN",f:lA},47:{n:"PtgMemNoMemN",f:uA},57:{n:"PtgNameX",f:B6},58:{n:"PtgRef3d",f:T6},59:{n:"PtgArea3d",f:c6},60:{n:"PtgRefErr3d",f:z6},61:{n:"PtgAreaErr3d",f:d6},255:{}},fA={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},dA={1:{n:"PtgElfLel",f:u2},2:{n:"PtgElfRw",f:tA},3:{n:"PtgElfCol",f:K6},6:{n:"PtgElfRwV",f:rA},7:{n:"PtgElfColV",f:Q6},10:{n:"PtgElfRadical",f:Z6},11:{n:"PtgElfRadicalS",f:eA},13:{n:"PtgElfColS",f:Y6},15:{n:"PtgElfColSV",f:q6},16:{n:"PtgElfRadicalLel",f:J6},25:{n:"PtgList",f:iA},29:{n:"PtgSxName",f:oA},255:{}},hA={0:{n:"PtgAttrNoop",f:cA},1:{n:"PtgAttrSemi",f:w6},2:{n:"PtgAttrIf",f:v6},4:{n:"PtgAttrChoose",f:g6},8:{n:"PtgAttrGoto",f:m6},16:{n:"PtgAttrSum",f:O6},32:{n:"PtgAttrBaxcel",f:Fg},33:{n:"PtgAttrBaxcel",f:Fg},64:{n:"PtgAttrSpace",f:y6},65:{n:"PtgAttrSpaceSemi",f:E6},128:{n:"PtgAttrIfError",f:x6},255:{}};function pA(e,t,r,n){if(n.biff<8)return kr(e,t);for(var i=e.l+t,o=[],a=0;a!==r.length;++a)switch(r[a][0]){case"PtgArray":r[a][1]=M6(e,0,n),o.push(r[a][1]);break;case"PtgMemArea":r[a][2]=$6(e,r[a][1],n),o.push(r[a][2]);break;case"PtgExp":n&&n.biff==12&&(r[a][1][1]=e.read_shift(4),o.push(r[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[a][0]}return t=i-e.l,t!==0&&o.push(kr(e,t)),o}function gA(e,t,r){for(var n=e.l+t,i,o,a=[];n!=e.l;)t=n-e.l,o=e[e.l],i=Pg[o]||Pg[fA[o]],(o===24||o===25)&&(i=(o===24?dA:hA)[e[e.l+1]]),!i||!i.f?kr(e,t):a.push([i.n,i.f(e,t,r)]);return a}function mA(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],o=0;o<n.length;++o){var a=n[o];if(a)switch(a[0]){case 2:i.push('"'+a[1].replace(/"/g,'""')+'"');break;default:i.push(a[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var vA={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function xA(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function c2(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Dg(e,t,r){var n=c2(e,t,r);return n=="#REF"?n:xA(n,r)}function so(e,t,r,n,i){var o=i&&i.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},s=[],l,u,c,f=0,h=0,d,m="";if(!e[0]||!e[0][0])return"";for(var p=-1,g="",v=0,w=e[0].length;v<w;++v){var y=e[0][v];switch(y[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=s.pop(),u=s.pop(),p>=0){switch(e[0][p][1][0]){case 0:g=qe(" ",e[0][p][1][1]);break;case 1:g=qe("\r",e[0][p][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}u=u+g,p=-1}s.push(u+vA[y[0]]+l);break;case"PtgIsect":l=s.pop(),u=s.pop(),s.push(u+" "+l);break;case"PtgUnion":l=s.pop(),u=s.pop(),s.push(u+","+l);break;case"PtgRange":l=s.pop(),u=s.pop(),s.push(u+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=da(y[1][1],a,i),s.push(ha(c,o));break;case"PtgRefN":c=r?da(y[1][1],r,i):y[1][1],s.push(ha(c,o));break;case"PtgRef3d":f=y[1][1],c=da(y[1][2],a,i),m=Dg(n,f,i),s.push(m+"!"+ha(c,o));break;case"PtgFunc":case"PtgFuncVar":var S=y[1][0],N=y[1][1];S||(S=0),S&=127;var M=S==0?[]:s.slice(-S);s.length-=S,N==="User"&&(N=M.shift()),s.push(N+"("+M.join(",")+")");break;case"PtgBool":s.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(y[1]);break;case"PtgNum":s.push(String(y[1]));break;case"PtgStr":s.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(y[1]);break;case"PtgAreaN":d=gg(y[1][1],r?{s:r}:a,i),s.push(yc(d,i));break;case"PtgArea":d=gg(y[1][1],a,i),s.push(yc(d,i));break;case"PtgArea3d":f=y[1][1],d=y[1][2],m=Dg(n,f,i),s.push(m+"!"+yc(d,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=y[1][2];var _=(n.names||[])[h-1]||(n[0]||[])[h],C=_?_.Name:"SH33TJSNAME"+String(h);C&&C.slice(0,6)=="_xlfn."&&!i.xlfn&&(C=C.slice(6)),s.push(C);break;case"PtgNameX":var A=y[1][1];h=y[1][2];var L;if(i.biff<=5)A<0&&(A=-A),n[A]&&(L=n[A][h]);else{var U="";if(((n[A]||[])[0]||[])[0]==14849||(((n[A]||[])[0]||[])[0]==1025?n[A][h]&&n[A][h].itab>0&&(U=n.SheetNames[n[A][h].itab-1]+"!"):U=n.SheetNames[h-1]+"!"),n[A]&&n[A][h])U+=n[A][h].Name;else if(n[0]&&n[0][h])U+=n[0][h].Name;else{var B=(c2(n,A,i)||"").split(";;");B[h-1]?U=B[h-1]:U+="SH33TJSERRX"}s.push(U);break}L||(L={Name:"SH33TJSERRY"}),s.push(L.Name);break;case"PtgParen":var V="(",q=")";if(p>=0){switch(g="",e[0][p][1][0]){case 2:V=qe(" ",e[0][p][1][1])+V;break;case 3:V=qe("\r",e[0][p][1][1])+V;break;case 4:q=qe(" ",e[0][p][1][1])+q;break;case 5:q=qe("\r",e[0][p][1][1])+q;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(V+s.pop()+q);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:y[1][1],r:y[1][0]};var ne={c:r.c,r:r.r};if(n.sharedf[Le(c)]){var we=n.sharedf[Le(c)];s.push(so(we,a,ne,n,i))}else{var ve=!1;for(l=0;l!=n.arrayf.length;++l)if(u=n.arrayf[l],!(c.c<u[0].s.c||c.c>u[0].e.c)&&!(c.r<u[0].s.r||c.r>u[0].e.r)){s.push(so(u[1],a,ne,n,i)),ve=!0;break}ve||s.push(y[1])}break;case"PtgArray":s.push("{"+mA(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var _e=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&_e.indexOf(e[0][v][0])==-1){y=e[0][p];var J=!0;switch(y[1][0]){case 4:J=!1;case 0:g=qe(" ",y[1][1]);break;case 5:J=!1;case 1:g=qe("\r",y[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}s.push((J?g:"")+s.pop()+(J?"":g)),p=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]}function wA(e){if(e==null){var t=Q(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return ni(e);return ni(0)}function yA(e,t,r,n,i){var o=ii(t,r,i),a=wA(e.v),s=Q(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var u=Q(e.bf.length),c=0;c<e.bf.length;++c)u[c]=e.bf[c];var f=mt([o,a,s,u]);return f}function xu(e,t,r){var n=e.read_shift(4),i=gA(e,n,r),o=e.read_shift(4),a=o>0?pA(e,o,i,r):null;return[i,a]}var EA=xu,wu=xu,SA=xu,_A=xu,TA={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},f2={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},CA={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function AA(e){var t="of:="+e.replace(Td,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function RA(e){return e.replace(/\./,"!")}var pa=typeof Map<"u";function Rd(e,t,r){var n=0,i=e.length;if(r){if(pa?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var o=pa?r.get(t):r[t];n<o.length;++n)if(e[o[n]].t===t)return e.Count++,o[n]}}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t},e.Count++,e.Unique++,r&&(pa?(r.has(t)||r.set(t,[]),r.get(t).push(i)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(i))),i}function yu(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(qr=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=Ll(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=Hf(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function d2(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Ln(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,o=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){sx(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=o;++i)if(e[i].numFmtId===n)return i;return e[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function OA(e,t,r){if(e&&e["!ref"]){var n=Ge(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function FA(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+nt(e[r])+'"/>';return t+"</mergeCells>"}function PA(e,t,r,n,i){var o=!1,a={},s=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}o=!0,a.codeName=zr(Me(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),s=(s||"")+le("outlinePr",null,u)}!o&&!s||(i[i.length]=le("sheetPr",s,a))}var DA=["objects","scenarios","selectLockedCells","selectUnlockedCells"],IA=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function kA(e){var t={sheet:1};return DA.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),IA.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=Yx(e.password).toString(16).toUpperCase()),le("sheetProtection",null,t)}function bA(e){return d2(e),le("pageMargins",null,e)}function NA(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=le("col",null,yu(i,n)));return r[r.length]="</cols>",r.join("")}function $A(e,t,r,n){var i=typeof e.ref=="string"?e.ref:nt(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,a=Zt(i);a.s.r==a.e.r&&(a.e.r=Zt(t["!ref"]).e.r,i=nt(a));for(var s=0;s<o.length;++s){var l=o[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return s==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),le("autoFilter",null,{ref:i})}function MA(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),le("sheetViews",le("sheetView",null,i),{})}function LA(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",o=e.t,a=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=Qa[e.v];break;case"d":n&&n.cellDates?i=bt(e.v,-1).toISOString():(e=Gt(e),e.t="n",i=""+(e.v=zt(bt(e.v)))),typeof e.z>"u"&&(e.z=Je[14]);break;default:i=e.v;break}var s=vt("v",Me(i)),l={r:t},u=Ln(n.cellXfs,e,n);switch(u!==0&&(l.s=u),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=vt("v",""+Rd(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=o&&(e.t=o,e.v=a),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=le("f",Me(e.f),c)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),le("c",s,l)}function BA(e,t,r,n){var i=[],o=[],a=Ge(e["!ref"]),s="",l,u="",c=[],f=0,h=0,d=e["!rows"],m=Array.isArray(e),p={r:u},g,v=-1;for(h=a.s.c;h<=a.e.c;++h)c[h]=Rt(h);for(f=a.s.r;f<=a.e.r;++f){for(o=[],u=wt(f),h=a.s.c;h<=a.e.c;++h){l=c[h]+u;var w=m?(e[f]||[])[h]:e[l];w!==void 0&&(s=LA(w,l,e,t))!=null&&o.push(s)}(o.length>0||d&&d[f])&&(p={r:u},d&&d[f]&&(g=d[f],g.hidden&&(p.hidden=1),v=-1,g.hpx?v=Bl(g.hpx):g.hpt&&(v=g.hpt),v>-1&&(p.ht=v,p.customHeight=1),g.level&&(p.outlineLevel=g.level)),i[i.length]=le("row",o.join(""),p))}if(d)for(;f<d.length;++f)d&&d[f]&&(p={r:f+1},g=d[f],g.hidden&&(p.hidden=1),v=-1,g.hpx?v=Bl(g.hpx):g.hpt&&(v=g.hpt),v>-1&&(p.ht=v,p.customHeight=1),g.level&&(p.outlineLevel=g.level),i[i.length]=le("row","",p));return i.join("")}function h2(e,t,r,n){var i=[it,le("worksheet",null,{xmlns:wo[0],"xmlns:r":lt.r})],o=r.SheetNames[e],a=0,s="",l=r.Sheets[o];l==null&&(l={});var u=l["!ref"]||"A1",c=Ge(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=nt(c)}n||(n={}),l["!comments"]=[];var f=[];PA(l,r,e,t,i),i[i.length]=le("dimension",null,{ref:u}),i[i.length]=MA(l,t,e,r),t.sheetFormat&&(i[i.length]=le("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=NA(l,l["!cols"])),i[a=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=BA(l,t),s.length>0&&(i[i.length]=s)),i.length>a+1&&(i[i.length]="</sheetData>",i[a]=i[a].replace("/>",">")),l["!protect"]&&(i[i.length]=kA(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=$A(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=FA(l["!merges"]));var h=-1,d,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(d={ref:p[0]},p[1].Target.charAt(0)!="#"&&(m=$e(n,-1,Me(p[1].Target).replace(/#.*$/,""),ke.HLINK),d["r:id"]="rId"+m),(h=p[1].Target.indexOf("#"))>-1&&(d.location=Me(p[1].Target.slice(h+1))),p[1].Tooltip&&(d.tooltip=Me(p[1].Tooltip)),i[i.length]=le("hyperlink",null,d))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=bA(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=vt("ignoredErrors",le("ignoredError",null,{numberStoredAsText:1,sqref:u}))),f.length>0&&(m=$e(n,-1,"../drawings/drawing"+(e+1)+".xml",ke.DRAW),i[i.length]=le("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=f),l["!comments"].length>0&&(m=$e(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ke.VML),i[i.length]=le("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function UA(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=n,o&7&&(r.level=o&7),o&16&&(r.hidden=!0),o&32&&(r.hpt=i/20),r}function HA(e,t,r){var n=Q(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var o=320;i.hpx?o=Bl(i.hpx)*20:i.hpt&&(o=i.hpt*20),n.write_shift(2,o),n.write_shift(1,0);var a=0;i.level&&(a|=i.level),i.hidden&&(a|=16),(i.hpx||i.hpt)&&(a|=32),n.write_shift(1,a),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var f=-1,h=-1,d=c<<10;d<c+1<<10;++d){u.c=d;var m=Array.isArray(r)?(r[u.r]||[])[u.c]:r[Le(u)];m&&(f<0&&(f=d),h=d)}f<0||(++s,n.write_shift(4,f),n.write_shift(4,h))}var p=n.l;return n.l=l,n.write_shift(4,s),n.l=p,n.length>n.l?n.slice(0,n.l):n}function VA(e,t,r,n){var i=HA(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&ie(e,0,i)}var WA=vi,zA=Eo;function GA(){}function jA(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=r3(e),r}function XA(e,t,r){r==null&&(r=Q(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return Nl({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Ox(e,r),r.slice(0,r.l)}function KA(e){var t=hr(e);return[t]}function YA(e,t,r){return r==null&&(r=Q(8)),pi(t,r)}function qA(e){var t=gi(e);return[t]}function QA(e,t,r){return r==null&&(r=Q(4)),mi(t,r)}function ZA(e){var t=hr(e),r=e.read_shift(1);return[t,r,"b"]}function JA(e,t,r){return r==null&&(r=Q(9)),pi(t,r),r.write_shift(1,e.v?1:0),r}function e9(e){var t=gi(e),r=e.read_shift(1);return[t,r,"b"]}function t9(e,t,r){return r==null&&(r=Q(5)),mi(t,r),r.write_shift(1,e.v?1:0),r}function r9(e){var t=hr(e),r=e.read_shift(1);return[t,r,"e"]}function n9(e,t,r){return r==null&&(r=Q(9)),pi(t,r),r.write_shift(1,e.v),r}function i9(e){var t=gi(e),r=e.read_shift(1);return[t,r,"e"]}function o9(e,t,r){return r==null&&(r=Q(8)),mi(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function a9(e){var t=hr(e),r=e.read_shift(4);return[t,r,"s"]}function s9(e,t,r){return r==null&&(r=Q(12)),pi(t,r),r.write_shift(4,t.v),r}function l9(e){var t=gi(e),r=e.read_shift(4);return[t,r,"s"]}function u9(e,t,r){return r==null&&(r=Q(8)),mi(t,r),r.write_shift(4,t.v),r}function c9(e){var t=hr(e),r=So(e);return[t,r,"n"]}function f9(e,t,r){return r==null&&(r=Q(16)),pi(t,r),ni(e.v,r),r}function d9(e){var t=gi(e),r=So(e);return[t,r,"n"]}function h9(e,t,r){return r==null&&(r=Q(12)),mi(t,r),ni(e.v,r),r}function p9(e){var t=hr(e),r=Fx(e);return[t,r,"n"]}function g9(e,t,r){return r==null&&(r=Q(12)),pi(t,r),Px(e.v,r),r}function m9(e){var t=gi(e),r=Fx(e);return[t,r,"n"]}function v9(e,t,r){return r==null&&(r=Q(8)),mi(t,r),Px(e.v,r),r}function x9(e){var t=hr(e),r=wd(e);return[t,r,"is"]}function w9(e){var t=hr(e),r=Ot(e);return[t,r,"str"]}function y9(e,t,r){return r==null&&(r=Q(12+4*e.v.length)),pi(t,r),ct(e.v,r),r.length>r.l?r.slice(0,r.l):r}function E9(e){var t=gi(e),r=Ot(e);return[t,r,"str"]}function S9(e,t,r){return r==null&&(r=Q(8+4*e.v.length)),mi(t,r),ct(e.v,r),r.length>r.l?r.slice(0,r.l):r}function _9(e,t,r){var n=e.l+t,i=hr(e);i.r=r["!row"];var o=e.read_shift(1),a=[i,o,"b"];if(r.cellFormula){e.l+=2;var s=wu(e,n-e.l,r);a[3]=so(s,null,i,r.supbooks,r)}else e.l=n;return a}function T9(e,t,r){var n=e.l+t,i=hr(e);i.r=r["!row"];var o=e.read_shift(1),a=[i,o,"e"];if(r.cellFormula){e.l+=2;var s=wu(e,n-e.l,r);a[3]=so(s,null,i,r.supbooks,r)}else e.l=n;return a}function C9(e,t,r){var n=e.l+t,i=hr(e);i.r=r["!row"];var o=So(e),a=[i,o,"n"];if(r.cellFormula){e.l+=2;var s=wu(e,n-e.l,r);a[3]=so(s,null,i,r.supbooks,r)}else e.l=n;return a}function A9(e,t,r){var n=e.l+t,i=hr(e);i.r=r["!row"];var o=Ot(e),a=[i,o,"str"];if(r.cellFormula){e.l+=2;var s=wu(e,n-e.l,r);a[3]=so(s,null,i,r.supbooks,r)}else e.l=n;return a}var R9=vi,O9=Eo;function F9(e,t){return t==null&&(t=Q(4)),t.write_shift(4,e),t}function P9(e,t){var r=e.l+t,n=vi(e),i=yd(e),o=Ot(e),a=Ot(e),s=Ot(e);e.l=r;var l={rfx:n,relId:i,loc:o,display:s};return a&&(l.Tooltip=a),l}function D9(e,t){var r=Q(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Eo({s:ut(e[0]),e:ut(e[0])},r),Ed("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return ct(i||"",r),ct(e[1].Tooltip||"",r),ct("",r),r.slice(0,r.l)}function I9(){}function k9(e,t,r){var n=e.l+t,i=Dx(e),o=e.read_shift(1),a=[i];if(a[2]=o,r.cellFormula){var s=EA(e,n-e.l,r);a[1]=s}else e.l=n;return a}function b9(e,t,r){var n=e.l+t,i=vi(e),o=[i];if(r.cellFormula){var a=_A(e,n-e.l,r);o[1]=a,e.l=n}else e.l=n;return o}function N9(e,t,r){r==null&&(r=Q(18));var n=yu(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var p2=["left","right","top","bottom","header","footer"];function $9(e){var t={};return p2.forEach(function(r){t[r]=So(e)}),t}function M9(e,t){return t==null&&(t=Q(6*8)),d2(e),p2.forEach(function(r){ni(e[r],t)}),t}function L9(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function B9(e,t,r){r==null&&(r=Q(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function U9(e){var t=Q(24);return t.write_shift(4,4),t.write_shift(4,1),Eo(e,t),t}function H9(e,t){return t==null&&(t=Q(16*4+2)),t.write_shift(2,e.password?Yx(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function V9(){}function W9(){}function z9(e,t,r,n,i,o,a){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=Gt(t),t.z=t.z||Je[14],t.v=zt(bt(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r,c:n};switch(l.s=Ln(i.cellXfs,t,i),t.l&&o["!links"].push([Le(l),t.l]),t.c&&o["!comments"].push([Le(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=Rd(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,a?ie(e,18,u9(t,l)):ie(e,7,s9(t,l))):(l.t="str",a?ie(e,17,S9(t,l)):ie(e,6,y9(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?a?ie(e,13,v9(t,l)):ie(e,2,g9(t,l)):a?ie(e,16,h9(t,l)):ie(e,5,f9(t,l)),!0;case"b":return l.t="b",a?ie(e,15,t9(t,l)):ie(e,4,JA(t,l)),!0;case"e":return l.t="e",a?ie(e,14,o9(t,l)):ie(e,3,n9(t,l)),!0}return a?ie(e,12,QA(t,l)):ie(e,1,YA(t,l)),!0}function G9(e,t,r,n){var i=Ge(t["!ref"]||"A1"),o,a="",s=[];ie(e,145);var l=Array.isArray(t),u=i.e.r;t["!rows"]&&(u=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=u;++c){a=wt(c),VA(e,t,i,c);var f=!1;if(c<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){c===i.s.r&&(s[h]=Rt(h)),o=s[h]+a;var d=l?(t[c]||[])[h]:t[o];if(!d){f=!1;continue}f=z9(e,d,c,h,n,t,f)}}ie(e,146)}function j9(e,t){!t||!t["!merges"]||(ie(e,177,F9(t["!merges"].length)),t["!merges"].forEach(function(r){ie(e,176,O9(r))}),ie(e,178))}function X9(e,t){!t||!t["!cols"]||(ie(e,390),t["!cols"].forEach(function(r,n){r&&ie(e,60,N9(n,r))}),ie(e,391))}function K9(e,t){!t||!t["!ref"]||(ie(e,648),ie(e,649,U9(Ge(t["!ref"]))),ie(e,650))}function Y9(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=$e(r,-1,n[1].Target.replace(/#.*$/,""),ke.HLINK);ie(e,494,D9(n,i))}}),delete t["!links"]}function q9(e,t,r,n){if(t["!comments"].length>0){var i=$e(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",ke.VML);ie(e,551,Ed("rId"+i)),t["!legacy"]=i}}function Q9(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],o=typeof i.ref=="string"?i.ref:nt(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=Zt(o);s.s.r==s.e.r&&(s.e.r=Zt(t["!ref"]).e.r,o=nt(s));for(var l=0;l<a.length;++l){var u=a[l];if(u.Name=="_xlnm._FilterDatabase"&&u.Sheet==n){u.Ref="'"+r.SheetNames[n]+"'!"+o;break}}l==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+o}),ie(e,161,Eo(Ge(o))),ie(e,162)}}function Z9(e,t,r){ie(e,133),ie(e,137,B9(t,r)),ie(e,138),ie(e,134)}function J9(e,t){t["!protect"]&&ie(e,535,H9(t["!protect"]))}function e5(e,t,r,n){var i=Wt(),o=r.SheetNames[e],a=r.Sheets[o]||{},s=o;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch{}var l=Ge(a["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],ie(i,129),(r.vbaraw||a["!outline"])&&ie(i,147,XA(s,a["!outline"])),ie(i,148,zA(l)),Z9(i,a,r.Workbook),X9(i,a),G9(i,a,e,t),J9(i,a),Q9(i,a,r,e),j9(i,a),Y9(i,a,n),a["!margins"]&&ie(i,476,M9(a["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&K9(i,a),q9(i,a,e,n),ie(i,130),i.end()}function t5(e,t){e.l+=10;var r=Ot(e);return{name:r}}var r5=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function n5(e){return!e.Workbook||!e.Workbook.WBProps?"false":b4(e.Workbook.WBProps.date1904)?"true":"false"}var i5="][*?/\\".split("");function g2(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return i5.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function o5(e,t,r){e.forEach(function(n,i){g2(n);for(var o=0;o<i;++o)if(n==e[o])throw new Error("Duplicate Sheet Name: "+n);if(r){var a=t&&t[i]&&t[i].CodeName||n;if(a.charCodeAt(0)==95&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}})}function a5(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];o5(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)OA(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function m2(e){var t=[it];t[t.length]=le("workbook",null,{xmlns:wo[0],"xmlns:r":lt.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(r5.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=le("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],o=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",o=0;o!=e.SheetNames.length&&!(!i[o]||!i[o].Hidden);++o);o==e.SheetNames.length&&(o=0),t[t.length]='<workbookView firstSheet="'+o+'" activeTab="'+o+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",o=0;o!=e.SheetNames.length;++o){var a={name:Me(e.SheetNames[o].slice(0,31))};if(a.sheetId=""+(o+1),a["r:id"]="rId"+(o+1),i[o])switch(i[o].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden";break}t[t.length]=le("sheet",null,a)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(t[t.length]=le("definedName",Me(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function s5(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=Uf(e),r.name=Ot(e),r}function l5(e,t){return t||(t=Q(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Ed(e.strRelID,t),ct(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function u5(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Ot(e):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function c5(e,t){t||(t=Q(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Ox(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function f5(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=n3(e),a=SA(e,0,r),s=yd(e);e.l=n;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function d5(e,t){ie(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};ie(e,156,l5(i))}ie(e,144)}function h5(e,t){t||(t=Q(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return ct("SheetJS",t),ct(Ol.version,t),ct(Ol.version,t),ct("7262",t),t.length>t.l?t.slice(0,t.l):t}function p5(e,t){t||(t=Q(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function g5(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,o=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&o==-1&&(o=n);o>i||(ie(e,135),ie(e,158,p5(i)),ie(e,136))}}function m5(e,t){var r=Wt();return ie(r,131),ie(r,128,h5()),ie(r,153,c5(e.Workbook&&e.Workbook.WBProps||null)),g5(r,e),d5(r,e),ie(r,132),r.end()}function v5(e,t,r){return(t.slice(-4)===".bin"?m5:m2)(e)}function x5(e,t,r,n,i){return(t.slice(-4)===".bin"?e5:h2)(e,r,n,i)}function w5(e,t,r){return(t.slice(-4)===".bin"?M8:Zx)(e,r)}function y5(e,t,r){return(t.slice(-4)===".bin"?c8:Kx)(e,r)}function E5(e,t,r){return(t.slice(-4)===".bin"?J8:n2)(e)}function S5(e){return(e.slice(-4)===".bin"?G8:t2)()}function _5(e,t){var r=[];return e.Props&&r.push(w3(e.Props,t)),e.Custprops&&r.push(y3(e.Props,e.Custprops)),r.join("")}function T5(){return""}function C5(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var o=[];o.push(le("NumberFormat",null,{"ss:Format":Me(Je[n.numFmtId])}));var a={"ss:ID":"s"+(21+i)};r.push(le("Style",o.join(""),a))}),le("Styles",r.join(""))}function v2(e){return le("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Cd(e.Ref,{r:0,c:0})})}function A5(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var i=t[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||r.push(v2(i)))}return le("Names",r.join(""))}function R5(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,o=[],a=0;a<i.length;++a){var s=i[a];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||o.push(v2(s)))}return o.join("")}function O5(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(le("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(le("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(le("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(le("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o<r&&!(n.Workbook.Sheets[o]&&!n.Workbook.Sheets[o].Hidden);++o);o==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(vt("ProtectContents","True")),e["!protect"].objects&&i.push(vt("ProtectObjects","True")),e["!protect"].scenarios&&i.push(vt("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(vt("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(vt("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(a){e["!protect"][a[0]]&&i.push("<"+a[1]+"/>")})),i.length==0?"":le("WorksheetOptions",i.join(""),{xmlns:Yt.x})}function F5(e){return e.map(function(t){var r=k4(t.t||""),n=le("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return le("Comment",n,{"ss:Author":t.a})}).join("")}function P5(e,t,r,n,i,o,a){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+Me(Cd(e.f,a))),e.F&&e.F.slice(0,t.length)==t){var l=ut(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==a.r?"":"["+(l.r-a.r)+"]")+"C"+(l.c==a.c?"":"["+(l.c-a.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=Me(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=Me(e.l.Tooltip))),r["!merges"])for(var u=r["!merges"],c=0;c!=u.length;++c)u[c].s.c!=a.c||u[c].s.r!=a.r||(u[c].e.c>u[c].s.c&&(s["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(s["ss:MergeDown"]=u[c].e.r-u[c].s.r));var f="",h="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",h=String(e.v);break;case"b":f="Boolean",h=e.v?"1":"0";break;case"e":f="Error",h=Qa[e.v];break;case"d":f="DateTime",h=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Je[14]);break;case"s":f="String",h=I4(e.v||"");break}var d=Ln(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+d),s["ss:Index"]=a.c+1;var m=e.v!=null?h:"",p=e.t=="z"?"":'<Data ss:Type="'+f+'">'+m+"</Data>";return(e.c||[]).length>0&&(p+=F5(e.c)),le("Cell",p,s)}function D5(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Qx(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function I5(e,t,r,n){if(!e["!ref"])return"";var i=Ge(e["!ref"]),o=e["!merges"]||[],a=0,s=[];e["!cols"]&&e["!cols"].forEach(function(g,v){_d(g);var w=!!g.width,y=yu(v,g),S={"ss:Index":v+1};w&&(S["ss:Width"]=Ml(y.width)),g.hidden&&(S["ss:Hidden"]="1"),s.push(le("Column",null,S))});for(var l=Array.isArray(e),u=i.s.r;u<=i.e.r;++u){for(var c=[D5(u,(e["!rows"]||[])[u])],f=i.s.c;f<=i.e.c;++f){var h=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>f)&&!(o[a].s.r>u)&&!(o[a].e.c<f)&&!(o[a].e.r<u)){(o[a].s.c!=f||o[a].s.r!=u)&&(h=!0);break}if(!h){var d={r:u,c:f},m=Le(d),p=l?(e[u]||[])[f]:e[m];c.push(P5(p,m,e,t,r,n,d))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function k5(e,t,r){var n=[],i=r.SheetNames[e],o=r.Sheets[i],a=o?R5(o,t,e,r):"";return a.length>0&&n.push("<Names>"+a+"</Names>"),a=o?I5(o,t,e,r):"",a.length>0&&n.push("<Table>"+a+"</Table>"),n.push(O5(o,t,e,r)),n.join("")}function b5(e,t){t||(t={}),e.SSF||(e.SSF=Gt(Je)),e.SSF&&(gu(),pu(e.SSF),t.revssf=mu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Ln(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(_5(e,t)),r.push(T5()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(le("Worksheet",k5(n,t,e),{"ss:Name":Me(e.SheetNames[n])}));return r[2]=C5(e,t),r[3]=A5(e),it+le("Workbook",r.join(""),{xmlns:Yt.ss,"xmlns:o":Yt.o,"xmlns:x":Yt.x,"xmlns:ss":Yt.ss,"xmlns:dt":Yt.dt,"xmlns:html":Yt.html})}var _c={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function N5(e,t){var r=[],n=[],i=[],o=0,a,s=ig(vg,"n"),l=ig(xg,"n");if(e.Props)for(a=Et(e.Props),o=0;o<a.length;++o)(Object.prototype.hasOwnProperty.call(s,a[o])?r:Object.prototype.hasOwnProperty.call(l,a[o])?n:i).push([a[o],e.Props[a[o]]]);if(e.Custprops)for(a=Et(e.Custprops),o=0;o<a.length;++o)Object.prototype.hasOwnProperty.call(e.Props||{},a[o])||(Object.prototype.hasOwnProperty.call(s,a[o])?r:Object.prototype.hasOwnProperty.call(l,a[o])?n:i).push([a[o],e.Custprops[a[o]]]);var u=[];for(o=0;o<i.length;++o)Hx.indexOf(i[o][0])>-1||Lx.indexOf(i[o][0])>-1||i[o][1]!=null&&u.push(i[o]);n.length&&Ue.utils.cfb_add(t,"/SummaryInformation",_g(n,_c.SI,l,xg)),(r.length||u.length)&&Ue.utils.cfb_add(t,"/DocumentSummaryInformation",_g(r,_c.DSI,s,vg,u.length?u:null,_c.UDI))}function $5(e,t){var r=t||{},n=Ue.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Ue.utils.cfb_add(n,i,x2(e,r)),r.biff==8&&(e.Props||e.Custprops)&&N5(e,n),r.biff==8&&e.vbaraw&&e6(n,Ue.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var M5={0:{f:UA},1:{f:KA},2:{f:p9},3:{f:r9},4:{f:ZA},5:{f:c9},6:{f:w9},7:{f:a9},8:{f:A9},9:{f:C9},10:{f:_9},11:{f:T9},12:{f:qA},13:{f:m9},14:{f:i9},15:{f:e9},16:{f:d9},17:{f:E9},18:{f:l9},19:{f:wd},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:f5},40:{},42:{},43:{f:w8},44:{f:v8},45:{f:S8},46:{f:T8},47:{f:_8},48:{},49:{f:q4},50:{},51:{f:U8},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Q3},62:{f:x9},63:{f:j8},64:{f:V9},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:kr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:L9},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:jA},148:{f:WA,p:16},151:{f:I9},152:{},153:{f:u5},154:{},155:{},156:{f:s5},157:{},158:{},159:{T:1,f:s8},160:{T:-1},161:{T:1,f:vi},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:R9},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:L8},336:{T:-1},337:{f:W8,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Uf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:G3},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:k9},427:{f:b9},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:$9},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:GA},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:P9},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Uf},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Q8},633:{T:1},634:{T:-1},635:{T:1,f:Y8},636:{T:-1},637:{f:e3},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:t5},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:W9},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function ue(e,t,r,n){var i=t;if(!isNaN(i)){var o=n||(r||[]).length||0,a=e.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&md(r)&&e.push(r)}}function L5(e,t,r,n){var i=n||(r||[]).length||0;if(i<=8224)return ue(e,t,r,i);var o=t;if(!isNaN(o)){for(var a=r.parts||[],s=0,l=0,u=0;u+(a[s]||8224)<=8224;)u+=a[s]||8224,s++;var c=e.next(4);for(c.write_shift(2,o),c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u;l<i;){for(c=e.next(4),c.write_shift(2,60),u=0;u+(a[s]||8224)<=8224;)u+=a[s]||8224,s++;c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u}}}function Ja(e,t,r){return e||(e=Q(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function B5(e,t,r,n){var i=Q(9);return Ja(i,e,t),Wx(r,n||"b",i),i}function U5(e,t,r){var n=Q(8+2*r.length);return Ja(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function H5(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?zt(bt(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?ue(e,2,t8(r,n,i)):ue(e,3,e8(r,n,i));return;case"b":case"e":ue(e,5,B5(r,n,t.v,t.t));return;case"s":case"str":ue(e,4,U5(r,n,(t.v||"").slice(0,255)));return}ue(e,1,Ja(null,r,n))}function V5(e,t,r,n){var i=Array.isArray(t),o=Ge(t["!ref"]||"A1"),a,s="",l=[];if(o.e.c>255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),a=nt(o)}for(var u=o.s.r;u<=o.e.r;++u){s=wt(u);for(var c=o.s.c;c<=o.e.c;++c){u===o.s.r&&(l[c]=Rt(c)),a=l[c]+s;var f=i?(t[u]||[])[c]:t[a];f&&H5(e,f,u,c)}}}function W5(e,t){for(var r=t||{},n=Wt(),i=0,o=0;o<e.SheetNames.length;++o)e.SheetNames[o]==r.sheet&&(i=o);if(i==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return ue(n,r.biff==4?1033:r.biff==3?521:9,Sd(e,16,r)),V5(n,e.Sheets[e.SheetNames[i]],i,r),ue(n,10),n.end()}function z5(e,t,r){ue(e,49,M3({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function G5(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&ue(e,1054,U3(i,t[i],r))})}function j5(e,t){var r=Q(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),ue(e,2151,r),r=Q(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),jx(Ge(t["!ref"]||"A1"),r),r.write_shift(4,4),ue(e,2152,r)}function X5(e,t){for(var r=0;r<16;++r)ue(e,224,Cg({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){ue(e,224,Cg(n,0,t))})}function K5(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];ue(e,440,K3(n)),n[1].Tooltip&&ue(e,2048,Y3(n))}delete t["!links"]}function Y5(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&ue(e,125,Z3(yu(i,n),i))})}}function q5(e,t,r,n,i){var o=16+Ln(i.cellXfs,t,i);if(t.v==null&&!t.bf){ue(e,513,ii(r,n,o));return}if(t.bf)ue(e,6,yA(t,r,n,i,o));else switch(t.t){case"d":case"n":var a=t.t=="d"?zt(bt(t.v)):t.v;ue(e,515,z3(r,n,a,o));break;case"b":case"e":ue(e,517,W3(r,n,t.v,o,i,t.t));break;case"s":case"str":if(i.bookSST){var s=Rd(i.Strings,t.v,i.revStrings);ue(e,253,L3(r,n,s,o))}else ue(e,516,B3(r,n,(t.v||"").slice(0,255),o,i));break;default:ue(e,513,ii(r,n,o))}}function Q5(e,t,r){var n=Wt(),i=r.SheetNames[e],o=r.Sheets[i]||{},a=(r||{}).Workbook||{},s=(a.Sheets||[])[e]||{},l=Array.isArray(o),u=t.biff==8,c,f="",h=[],d=Ge(o["!ref"]||"A1"),m=u?65536:16384;if(d.e.c>255||d.e.r>=m){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255),d.e.r=Math.min(d.e.c,m-1)}ue(n,2057,Sd(r,16,t)),ue(n,13,ir(1)),ue(n,12,ir(100)),ue(n,15,Dt(!0)),ue(n,17,Dt(!1)),ue(n,16,ni(.001)),ue(n,95,Dt(!0)),ue(n,42,Dt(!1)),ue(n,43,Dt(!1)),ue(n,130,ir(1)),ue(n,128,V3([0,0])),ue(n,131,Dt(!1)),ue(n,132,Dt(!1)),u&&Y5(n,o["!cols"]),ue(n,512,H3(d,t)),u&&(o["!links"]=[]);for(var p=d.s.r;p<=d.e.r;++p){f=wt(p);for(var g=d.s.c;g<=d.e.c;++g){p===d.s.r&&(h[g]=Rt(g)),c=h[g]+f;var v=l?(o[p]||[])[g]:o[c];v&&(q5(n,v,p,g,t),u&&v.l&&o["!links"].push([c,v.l]))}}var w=s.CodeName||s.name||i;return u&&ue(n,574,$3((a.Views||[])[0])),u&&(o["!merges"]||[]).length&&ue(n,229,X3(o["!merges"])),u&&K5(n,o),ue(n,442,Gx(w)),u&&j5(n,o),ue(n,10),n.end()}function Z5(e,t,r){var n=Wt(),i=(e||{}).Workbook||{},o=i.Sheets||[],a=i.WBProps||{},s=r.biff==8,l=r.biff==5;if(ue(n,2057,Sd(e,5,r)),r.bookType=="xla"&&ue(n,135),ue(n,225,s?ir(1200):null),ue(n,193,_3(2)),l&&ue(n,191),l&&ue(n,192),ue(n,226),ue(n,92,I3("SheetJS",r)),ue(n,66,ir(s?1200:1252)),s&&ue(n,353,ir(0)),s&&ue(n,448),ue(n,317,J3(e.SheetNames.length)),s&&e.vbaraw&&ue(n,211),s&&e.vbaraw){var u=a.CodeName||"ThisWorkbook";ue(n,442,Gx(u))}ue(n,156,ir(17)),ue(n,25,Dt(!1)),ue(n,18,Dt(!1)),ue(n,19,ir(0)),s&&ue(n,431,Dt(!1)),s&&ue(n,444,ir(0)),ue(n,61,N3()),ue(n,64,Dt(!1)),ue(n,141,ir(0)),ue(n,34,Dt(n5(e)=="true")),ue(n,14,Dt(!0)),s&&ue(n,439,Dt(!1)),ue(n,218,ir(0)),z5(n,e,r),G5(n,e.SSF,r),X5(n,r),s&&ue(n,352,Dt(!1));var c=n.end(),f=Wt();s&&ue(f,140,q3()),s&&r.Strings&&L5(f,252,b3(r.Strings)),ue(f,10);var h=f.end(),d=Wt(),m=0,p=0;for(p=0;p<e.SheetNames.length;++p)m+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var g=c.length+m+h.length;for(p=0;p<e.SheetNames.length;++p){var v=o[p]||{};ue(d,133,k3({pos:g,hs:v.Hidden||0,dt:0,name:e.SheetNames[p]},r)),g+=t[p].length}var w=d.end();if(m!=w.length)throw new Error("BS8 "+m+" != "+w.length);var y=[];return c.length&&y.push(c),w.length&&y.push(w),h.length&&y.push(h),mt(y)}function J5(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=Gt(Je)),e&&e.SSF&&(gu(),pu(e.SSF),r.revssf=mu(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Od(r),r.cellXfs=[],Ln(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=Q5(i,r,e);return n.unshift(Z5(e,n,r)),mt(n)}function x2(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=Zt(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var o=t||{};switch(o.biff||2){case 8:case 5:return J5(e,t);case 4:case 3:case 2:return W5(e,t)}throw new Error("invalid type "+o.bookType+" for BIFF")}function eR(e,t,r,n){for(var i=e["!merges"]||[],o=[],a=t.s.c;a<=t.e.c;++a){for(var s=0,l=0,u=0;u<i.length;++u)if(!(i[u].s.r>r||i[u].s.c>a)&&!(i[u].e.r<r||i[u].e.c<a)){if(i[u].s.r<r||i[u].s.c<a){s=-1;break}s=i[u].e.r-i[u].s.r+1,l=i[u].e.c-i[u].s.c+1;break}if(!(s<0)){var c=Le({r,c:a}),f=n.dense?(e[r]||[])[a]:e[c],h=f&&f.v!=null&&(f.h||D4(f.w||(en(f),f.w)||""))||"",d={};s>1&&(d.rowspan=s),l>1&&(d.colspan=l),n.editable?h='<span contenteditable="true">'+h+"</span>":f&&(d["data-t"]=f&&f.t||"z",f.v!=null&&(d["data-v"]=f.v),f.z!=null&&(d["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+f.l.Target+'">'+h+"</a>")),d.id=(n.id||"sjs")+"-"+c,o.push(le("td",h,d))}}var m="<tr>";return m+o.join("")+"</tr>"}var tR='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',rR="</body></html>";function nR(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function w2(e,t){var r=t||{},n=r.header!=null?r.header:tR,i=r.footer!=null?r.footer:rR,o=[n],a=Zt(e["!ref"]);r.dense=Array.isArray(e),o.push(nR(e,a,r));for(var s=a.s.r;s<=a.e.r;++s)o.push(eR(e,a,s,r));return o.push("</table>"+i),o.join("")}function y2(e,t,r){var n=r||{},i=0,o=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var a=typeof n.origin=="string"?ut(n.origin):n.origin;i=a.r,o=a.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:i,c:o}};if(e["!ref"]){var c=Zt(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),i==-1&&(u.e.r=i=c.e.r+1)}var f=[],h=0,d=e["!rows"]||(e["!rows"]=[]),m=0,p=0,g=0,v=0,w=0,y=0;for(e["!cols"]||(e["!cols"]=[]);m<s.length&&p<l;++m){var S=s[m];if(Ig(S)){if(n.display)continue;d[p]={hidden:!0}}var N=S.children;for(g=v=0;g<N.length;++g){var M=N[g];if(!(n.display&&Ig(M))){var _=M.hasAttribute("data-v")?M.getAttribute("data-v"):M.hasAttribute("v")?M.getAttribute("v"):N4(M.innerHTML),C=M.getAttribute("data-z")||M.getAttribute("z");for(h=0;h<f.length;++h){var A=f[h];A.s.c==v+o&&A.s.r<p+i&&p+i<=A.e.r&&(v=A.e.c+1-o,h=-1)}y=+M.getAttribute("colspan")||1,((w=+M.getAttribute("rowspan")||1)>1||y>1)&&f.push({s:{r:p+i,c:v+o},e:{r:p+i+(w||1)-1,c:v+o+(y||1)-1}});var L={t:"s",v:_},U=M.getAttribute("data-t")||M.getAttribute("t")||"";_!=null&&(_.length==0?L.t=U||"z":n.raw||_.trim().length==0||U=="s"||(_==="TRUE"?L={t:"b",v:!0}:_==="FALSE"?L={t:"b",v:!1}:isNaN(Yr(_))?isNaN(ba(_).getDate())||(L={t:"d",v:bt(_)},n.cellDates||(L={t:"n",v:zt(L.v)}),L.z=n.dateNF||Je[14]):L={t:"n",v:Yr(_)})),L.z===void 0&&C!=null&&(L.z=C);var B="",V=M.getElementsByTagName("A");if(V&&V.length)for(var q=0;q<V.length&&!(V[q].hasAttribute("href")&&(B=V[q].getAttribute("href"),B.charAt(0)!="#"));++q);B&&B.charAt(0)!="#"&&(L.l={Target:B}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][v+o]=L):e[Le({c:v+o,r:p+i})]=L,u.e.c<v+o&&(u.e.c=v+o),v+=y}}++p}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),u.e.r=Math.max(u.e.r,p-1+i),e["!ref"]=nt(u),p>=l&&(e["!fullref"]=nt((u.e.r=s.length-m+p-1+i,u))),e}function E2(e,t){var r=t||{},n=r.dense?[]:{};return y2(n,e,t)}function iR(e,t){return hi(E2(e,t),t)}function Ig(e){var t="",r=oR(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function oR(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var aR=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Na({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return it+t}}(),kg=function(){var e=function(o){return Me(o).replace(/  +/g,function(a){return'<text:s text:c="'+a.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=`          <table:table-cell />
+`;t.push(vt("t",Me(a)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function X8(e,t,r){var n=[it,ue("ThreadedComments",null,{xmlns:lt.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var o="";(i[1]||[]).forEach(function(a,s){if(!a.T){delete a.ID;return}a.a&&t.indexOf(a.a)==-1&&t.push(a.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?o=l.id:l.parentId=o,a.ID=l.id,a.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(a.a)).slice(-12)+"}"),n.push(ue("threadedComment",vt("text",a.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function K8(e){var t=[it,ue("personList",null,{xmlns:lt.TCMNT,"xmlns:x":wo[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(ue("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function Y8(e){var t={};t.iauthor=e.read_shift(4);var r=vi(e);return t.rfx=r.s,t.ref=Le(r.s),e.l+=16,t}function q8(e,t){return t==null&&(t=q(36)),t.write_shift(4,e[1].iauthor),Eo(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var Q8=Ot;function Z8(e){return ct(e.slice(0,54))}function J8(e){var t=Wt(),r=[];return re(t,628),re(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),re(t,632,Z8(i.a)))})}),re(t,631),re(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var o={s:ut(n[0]),e:ut(n[0])};re(t,635,q8([o,i])),i.t&&i.t.length>0&&re(t,637,t3(i)),re(t,636),delete i.iauthor})}),re(t,634),re(t,629),t.end()}function e6(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Ue.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var i2=["xlsb","xlsm","xlam","biff8","xla"],t6=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,i,o,a){var s=!1,l=!1;o.length==0?l=!0:o.charAt(0)=="["&&(l=!0,o=o.slice(1,-1)),a.length==0?s=!0:a.charAt(0)=="["&&(s=!0,a=a.slice(1,-1));var u=o.length>0?parseInt(o,10)|0:0,c=a.length>0?parseInt(a,10)|0:0;return s?c+=t.c:--c,l?u+=t.r:--u,i+(s?"":"$")+Rt(c)+(l?"":"$")+wt(u)}return function(i,o){return t=o,i.replace(e,r)}}(),Td=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,Cd=function(){return function(t,r){return t.replace(Td,function(n,i,o,a,s,l){var u=xd(a)-(o?0:r.c),c=vd(l)-(s?0:r.r),f=c==0?"":s?c+1:"["+c+"]",h=u==0?"":o?u+1:"["+u+"]";return i+"R"+f+"C"+h})}}();function r6(e,t){return e.replace(Td,function(r,n,i,o,a,s){return n+(i=="$"?i+o:Rt(xd(o)+t.c))+(a=="$"?a+s:wt(vd(s)+t.r))})}function n6(e){return e.length!=1}function rt(e){e.l+=1}function bn(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function o2(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return a2(e);r.biff==12&&(n=4)}var i=e.read_shift(n),o=e.read_shift(n),a=bn(e,2),s=bn(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function a2(e){var t=bn(e,2),r=bn(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function i6(e,t,r){if(r.biff<8)return a2(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),o=bn(e,2),a=bn(e,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function s2(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return o6(e);var n=e.read_shift(r&&r.biff==12?4:2),i=bn(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function o6(e){var t=bn(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function a6(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function s6(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return l6(e);var i=e.read_shift(n>=12?4:2),o=e.read_shift(2),a=(o&16384)>>14,s=(o&32768)>>15;if(o&=16383,s==1)for(;i>524287;)i-=1048576;if(a==1)for(;o>8191;)o=o-16384;return{r:i,c:o,cRel:a,rRel:s}}function l6(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),i==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:i,rRel:n}}function u6(e,t,r){var n=(e[e.l++]&96)>>5,i=o2(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function c6(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),o=8;if(r)switch(r.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var a=o2(e,o,r);return[n,i,a]}function f6(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function d6(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),o=8;if(r)switch(r.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[n,i]}function h6(e,t,r){var n=(e[e.l++]&96)>>5,i=i6(e,t-1,r);return[n,i]}function p6(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Fg(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function g6(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],o=0;o<=n;++o)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function m6(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function v6(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function x6(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function w6(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function l2(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function y6(e){return e.read_shift(2),l2(e)}function E6(e){return e.read_shift(2),l2(e)}function S6(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=s2(e,0,r);return[n,i]}function _6(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=s6(e,0,r);return[n,i]}function T6(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var o=s2(e,0,r);return[n,i,o]}function C6(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[CA[i],f2[i],n]}function A6(e,t,r){var n=e[e.l++],i=e.read_shift(1),o=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:R6(e);return[i,(o[0]===0?f2:TA)[o[1]]]}function R6(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function O6(e,t,r){e.l+=r&&r.biff==2?3:4}function F6(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function P6(e){return e.l++,Qa[e.read_shift(1)]}function D6(e){return e.l++,e.read_shift(2)}function I6(e){return e.l++,e.read_shift(1)!==0}function k6(e){return e.l++,So(e)}function b6(e,t,r){return e.l++,zx(e,t-1,r)}function N6(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=T3(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Qa[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=So(e);break;case 2:r[1]=O3(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function $6(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],o=0;o!=n;++o)i.push((r.biff==12?vi:D3)(e));return i}function M6(e,t,r){var n=0,i=0;r.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var o=0,a=[];o!=n&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=N6(e,r.biff);return a}function L6(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,o=e.read_shift(i);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,o]}function B6(e,t,r){if(r.biff==5)return U6(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[n,i,o]}function U6(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function H6(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function V6(e,t,r){var n=e.read_shift(1)>>>5&3,i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function W6(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function z6(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),o=4;if(r)switch(r.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[n,i]}var G6=kr,j6=kr,X6=kr;function Za(e,t,r){return e.l+=2,[a6(e)]}function Ad(e){return e.l+=6,[]}var K6=Za,Y6=Ad,q6=Ad,Q6=Za;function u2(e){return e.l+=2,[Vx(e),e.read_shift(2)&1]}var Z6=Za,J6=u2,eA=Ad,tA=Za,rA=Za,nA=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function iA(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2),a=nA[r>>2&31];return{ixti:t,coltype:r&3,rt:a,idx:n,c:i,C:o}}function oA(e){return e.l+=2,[e.read_shift(4)]}function aA(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function sA(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function lA(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function uA(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function cA(e){return e.l+=4,[0,0]}var Pg={1:{n:"PtgExp",f:F6},2:{n:"PtgTbl",f:X6},3:{n:"PtgAdd",f:rt},4:{n:"PtgSub",f:rt},5:{n:"PtgMul",f:rt},6:{n:"PtgDiv",f:rt},7:{n:"PtgPower",f:rt},8:{n:"PtgConcat",f:rt},9:{n:"PtgLt",f:rt},10:{n:"PtgLe",f:rt},11:{n:"PtgEq",f:rt},12:{n:"PtgGe",f:rt},13:{n:"PtgGt",f:rt},14:{n:"PtgNe",f:rt},15:{n:"PtgIsect",f:rt},16:{n:"PtgUnion",f:rt},17:{n:"PtgRange",f:rt},18:{n:"PtgUplus",f:rt},19:{n:"PtgUminus",f:rt},20:{n:"PtgPercent",f:rt},21:{n:"PtgParen",f:rt},22:{n:"PtgMissArg",f:rt},23:{n:"PtgStr",f:b6},26:{n:"PtgSheet",f:aA},27:{n:"PtgEndSheet",f:sA},28:{n:"PtgErr",f:P6},29:{n:"PtgBool",f:I6},30:{n:"PtgInt",f:D6},31:{n:"PtgNum",f:k6},32:{n:"PtgArray",f:p6},33:{n:"PtgFunc",f:C6},34:{n:"PtgFuncVar",f:A6},35:{n:"PtgName",f:L6},36:{n:"PtgRef",f:S6},37:{n:"PtgArea",f:u6},38:{n:"PtgMemArea",f:H6},39:{n:"PtgMemErr",f:G6},40:{n:"PtgMemNoMem",f:j6},41:{n:"PtgMemFunc",f:V6},42:{n:"PtgRefErr",f:W6},43:{n:"PtgAreaErr",f:f6},44:{n:"PtgRefN",f:_6},45:{n:"PtgAreaN",f:h6},46:{n:"PtgMemAreaN",f:lA},47:{n:"PtgMemNoMemN",f:uA},57:{n:"PtgNameX",f:B6},58:{n:"PtgRef3d",f:T6},59:{n:"PtgArea3d",f:c6},60:{n:"PtgRefErr3d",f:z6},61:{n:"PtgAreaErr3d",f:d6},255:{}},fA={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},dA={1:{n:"PtgElfLel",f:u2},2:{n:"PtgElfRw",f:tA},3:{n:"PtgElfCol",f:K6},6:{n:"PtgElfRwV",f:rA},7:{n:"PtgElfColV",f:Q6},10:{n:"PtgElfRadical",f:Z6},11:{n:"PtgElfRadicalS",f:eA},13:{n:"PtgElfColS",f:Y6},15:{n:"PtgElfColSV",f:q6},16:{n:"PtgElfRadicalLel",f:J6},25:{n:"PtgList",f:iA},29:{n:"PtgSxName",f:oA},255:{}},hA={0:{n:"PtgAttrNoop",f:cA},1:{n:"PtgAttrSemi",f:w6},2:{n:"PtgAttrIf",f:v6},4:{n:"PtgAttrChoose",f:g6},8:{n:"PtgAttrGoto",f:m6},16:{n:"PtgAttrSum",f:O6},32:{n:"PtgAttrBaxcel",f:Fg},33:{n:"PtgAttrBaxcel",f:Fg},64:{n:"PtgAttrSpace",f:y6},65:{n:"PtgAttrSpaceSemi",f:E6},128:{n:"PtgAttrIfError",f:x6},255:{}};function pA(e,t,r,n){if(n.biff<8)return kr(e,t);for(var i=e.l+t,o=[],a=0;a!==r.length;++a)switch(r[a][0]){case"PtgArray":r[a][1]=M6(e,0,n),o.push(r[a][1]);break;case"PtgMemArea":r[a][2]=$6(e,r[a][1],n),o.push(r[a][2]);break;case"PtgExp":n&&n.biff==12&&(r[a][1][1]=e.read_shift(4),o.push(r[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[a][0]}return t=i-e.l,t!==0&&o.push(kr(e,t)),o}function gA(e,t,r){for(var n=e.l+t,i,o,a=[];n!=e.l;)t=n-e.l,o=e[e.l],i=Pg[o]||Pg[fA[o]],(o===24||o===25)&&(i=(o===24?dA:hA)[e[e.l+1]]),!i||!i.f?kr(e,t):a.push([i.n,i.f(e,t,r)]);return a}function mA(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],o=0;o<n.length;++o){var a=n[o];if(a)switch(a[0]){case 2:i.push('"'+a[1].replace(/"/g,'""')+'"');break;default:i.push(a[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var vA={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function xA(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function c2(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(o){return o.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Dg(e,t,r){var n=c2(e,t,r);return n=="#REF"?n:xA(n,r)}function so(e,t,r,n,i){var o=i&&i.biff||8,a={s:{c:0,r:0},e:{c:0,r:0}},s=[],l,u,c,f=0,h=0,d,m="";if(!e[0]||!e[0][0])return"";for(var p=-1,g="",v=0,w=e[0].length;v<w;++v){var y=e[0][v];switch(y[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=s.pop(),u=s.pop(),p>=0){switch(e[0][p][1][0]){case 0:g=qe(" ",e[0][p][1][1]);break;case 1:g=qe("\r",e[0][p][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}u=u+g,p=-1}s.push(u+vA[y[0]]+l);break;case"PtgIsect":l=s.pop(),u=s.pop(),s.push(u+" "+l);break;case"PtgUnion":l=s.pop(),u=s.pop(),s.push(u+","+l);break;case"PtgRange":l=s.pop(),u=s.pop(),s.push(u+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=da(y[1][1],a,i),s.push(ha(c,o));break;case"PtgRefN":c=r?da(y[1][1],r,i):y[1][1],s.push(ha(c,o));break;case"PtgRef3d":f=y[1][1],c=da(y[1][2],a,i),m=Dg(n,f,i),s.push(m+"!"+ha(c,o));break;case"PtgFunc":case"PtgFuncVar":var S=y[1][0],b=y[1][1];S||(S=0),S&=127;var M=S==0?[]:s.slice(-S);s.length-=S,b==="User"&&(b=M.shift()),s.push(b+"("+M.join(",")+")");break;case"PtgBool":s.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(y[1]);break;case"PtgNum":s.push(String(y[1]));break;case"PtgStr":s.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(y[1]);break;case"PtgAreaN":d=gg(y[1][1],r?{s:r}:a,i),s.push(yc(d,i));break;case"PtgArea":d=gg(y[1][1],a,i),s.push(yc(d,i));break;case"PtgArea3d":f=y[1][1],d=y[1][2],m=Dg(n,f,i),s.push(m+"!"+yc(d,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":h=y[1][2];var _=(n.names||[])[h-1]||(n[0]||[])[h],A=_?_.Name:"SH33TJSNAME"+String(h);A&&A.slice(0,6)=="_xlfn."&&!i.xlfn&&(A=A.slice(6)),s.push(A);break;case"PtgNameX":var R=y[1][1];h=y[1][2];var L;if(i.biff<=5)R<0&&(R=-R),n[R]&&(L=n[R][h]);else{var U="";if(((n[R]||[])[0]||[])[0]==14849||(((n[R]||[])[0]||[])[0]==1025?n[R][h]&&n[R][h].itab>0&&(U=n.SheetNames[n[R][h].itab-1]+"!"):U=n.SheetNames[h-1]+"!"),n[R]&&n[R][h])U+=n[R][h].Name;else if(n[0]&&n[0][h])U+=n[0][h].Name;else{var B=(c2(n,R,i)||"").split(";;");B[h-1]?U=B[h-1]:U+="SH33TJSERRX"}s.push(U);break}L||(L={Name:"SH33TJSERRY"}),s.push(L.Name);break;case"PtgParen":var V="(",Y=")";if(p>=0){switch(g="",e[0][p][1][0]){case 2:V=qe(" ",e[0][p][1][1])+V;break;case 3:V=qe("\r",e[0][p][1][1])+V;break;case 4:Y=qe(" ",e[0][p][1][1])+Y;break;case 5:Y=qe("\r",e[0][p][1][1])+Y;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(V+s.pop()+Y);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:y[1][1],r:y[1][0]};var ne={c:r.c,r:r.r};if(n.sharedf[Le(c)]){var me=n.sharedf[Le(c)];s.push(so(me,a,ne,n,i))}else{var xe=!1;for(l=0;l!=n.arrayf.length;++l)if(u=n.arrayf[l],!(c.c<u[0].s.c||c.c>u[0].e.c)&&!(c.r<u[0].s.r||c.r>u[0].e.r)){s.push(so(u[1],a,ne,n,i)),xe=!0;break}xe||s.push(y[1])}break;case"PtgArray":s.push("{"+mA(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var _e=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&_e.indexOf(e[0][v][0])==-1){y=e[0][p];var ie=!0;switch(y[1][0]){case 4:ie=!1;case 0:g=qe(" ",y[1][1]);break;case 5:ie=!1;case 1:g=qe("\r",y[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}s.push((ie?g:"")+s.pop()+(ie?"":g)),p=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]}function wA(e){if(e==null){var t=q(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return ni(e);return ni(0)}function yA(e,t,r,n,i){var o=ii(t,r,i),a=wA(e.v),s=q(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var u=q(e.bf.length),c=0;c<e.bf.length;++c)u[c]=e.bf[c];var f=mt([o,a,s,u]);return f}function xu(e,t,r){var n=e.read_shift(4),i=gA(e,n,r),o=e.read_shift(4),a=o>0?pA(e,o,i,r):null;return[i,a]}var EA=xu,wu=xu,SA=xu,_A=xu,TA={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},f2={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},CA={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function AA(e){var t="of:="+e.replace(Td,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function RA(e){return e.replace(/\./,"!")}var pa=typeof Map<"u";function Rd(e,t,r){var n=0,i=e.length;if(r){if(pa?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var o=pa?r.get(t):r[t];n<o.length;++n)if(e[o[n]].t===t)return e.Count++,o[n]}}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t},e.Count++,e.Unique++,r&&(pa?(r.has(t)||r.set(t,[]),r.get(t).push(i)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(i))),i}function yu(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(qr=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=Ll(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=Hf(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function d2(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Ln(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,o=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){sx(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=o;++i)if(e[i].numFmtId===n)return i;return e[o]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function OA(e,t,r){if(e&&e["!ref"]){var n=Ge(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function FA(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+nt(e[r])+'"/>';return t+"</mergeCells>"}function PA(e,t,r,n,i){var o=!1,a={},s=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}o=!0,a.codeName=zr(Me(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),s=(s||"")+ue("outlinePr",null,u)}!o&&!s||(i[i.length]=ue("sheetPr",s,a))}var DA=["objects","scenarios","selectLockedCells","selectUnlockedCells"],IA=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function kA(e){var t={sheet:1};return DA.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),IA.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=Yx(e.password).toString(16).toUpperCase()),ue("sheetProtection",null,t)}function bA(e){return d2(e),ue("pageMargins",null,e)}function NA(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=ue("col",null,yu(i,n)));return r[r.length]="</cols>",r.join("")}function $A(e,t,r,n){var i=typeof e.ref=="string"?e.ref:nt(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,a=Zt(i);a.s.r==a.e.r&&(a.e.r=Zt(t["!ref"]).e.r,i=nt(a));for(var s=0;s<o.length;++s){var l=o[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return s==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),ue("autoFilter",null,{ref:i})}function MA(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),ue("sheetViews",ue("sheetView",null,i),{})}function LA(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",o=e.t,a=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=Qa[e.v];break;case"d":n&&n.cellDates?i=bt(e.v,-1).toISOString():(e=Gt(e),e.t="n",i=""+(e.v=zt(bt(e.v)))),typeof e.z>"u"&&(e.z=Je[14]);break;default:i=e.v;break}var s=vt("v",Me(i)),l={r:t},u=Ln(n.cellXfs,e,n);switch(u!==0&&(l.s=u),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=vt("v",""+Rd(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=o&&(e.t=o,e.v=a),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=ue("f",Me(e.f),c)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),ue("c",s,l)}function BA(e,t,r,n){var i=[],o=[],a=Ge(e["!ref"]),s="",l,u="",c=[],f=0,h=0,d=e["!rows"],m=Array.isArray(e),p={r:u},g,v=-1;for(h=a.s.c;h<=a.e.c;++h)c[h]=Rt(h);for(f=a.s.r;f<=a.e.r;++f){for(o=[],u=wt(f),h=a.s.c;h<=a.e.c;++h){l=c[h]+u;var w=m?(e[f]||[])[h]:e[l];w!==void 0&&(s=LA(w,l,e,t))!=null&&o.push(s)}(o.length>0||d&&d[f])&&(p={r:u},d&&d[f]&&(g=d[f],g.hidden&&(p.hidden=1),v=-1,g.hpx?v=Bl(g.hpx):g.hpt&&(v=g.hpt),v>-1&&(p.ht=v,p.customHeight=1),g.level&&(p.outlineLevel=g.level)),i[i.length]=ue("row",o.join(""),p))}if(d)for(;f<d.length;++f)d&&d[f]&&(p={r:f+1},g=d[f],g.hidden&&(p.hidden=1),v=-1,g.hpx?v=Bl(g.hpx):g.hpt&&(v=g.hpt),v>-1&&(p.ht=v,p.customHeight=1),g.level&&(p.outlineLevel=g.level),i[i.length]=ue("row","",p));return i.join("")}function h2(e,t,r,n){var i=[it,ue("worksheet",null,{xmlns:wo[0],"xmlns:r":lt.r})],o=r.SheetNames[e],a=0,s="",l=r.Sheets[o];l==null&&(l={});var u=l["!ref"]||"A1",c=Ge(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=nt(c)}n||(n={}),l["!comments"]=[];var f=[];PA(l,r,e,t,i),i[i.length]=ue("dimension",null,{ref:u}),i[i.length]=MA(l,t,e,r),t.sheetFormat&&(i[i.length]=ue("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=NA(l,l["!cols"])),i[a=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=BA(l,t),s.length>0&&(i[i.length]=s)),i.length>a+1&&(i[i.length]="</sheetData>",i[a]=i[a].replace("/>",">")),l["!protect"]&&(i[i.length]=kA(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=$A(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=FA(l["!merges"]));var h=-1,d,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(d={ref:p[0]},p[1].Target.charAt(0)!="#"&&(m=$e(n,-1,Me(p[1].Target).replace(/#.*$/,""),ke.HLINK),d["r:id"]="rId"+m),(h=p[1].Target.indexOf("#"))>-1&&(d.location=Me(p[1].Target.slice(h+1))),p[1].Tooltip&&(d.tooltip=Me(p[1].Tooltip)),i[i.length]=ue("hyperlink",null,d))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=bA(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=vt("ignoredErrors",ue("ignoredError",null,{numberStoredAsText:1,sqref:u}))),f.length>0&&(m=$e(n,-1,"../drawings/drawing"+(e+1)+".xml",ke.DRAW),i[i.length]=ue("drawing",null,{"r:id":"rId"+m}),l["!drawing"]=f),l["!comments"].length>0&&(m=$e(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",ke.VML),i[i.length]=ue("legacyDrawing",null,{"r:id":"rId"+m}),l["!legacy"]=m),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function UA(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=n,o&7&&(r.level=o&7),o&16&&(r.hidden=!0),o&32&&(r.hpt=i/20),r}function HA(e,t,r){var n=q(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var o=320;i.hpx?o=Bl(i.hpx)*20:i.hpt&&(o=i.hpt*20),n.write_shift(2,o),n.write_shift(1,0);var a=0;i.level&&(a|=i.level),i.hidden&&(a|=16),(i.hpx||i.hpt)&&(a|=32),n.write_shift(1,a),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var f=-1,h=-1,d=c<<10;d<c+1<<10;++d){u.c=d;var m=Array.isArray(r)?(r[u.r]||[])[u.c]:r[Le(u)];m&&(f<0&&(f=d),h=d)}f<0||(++s,n.write_shift(4,f),n.write_shift(4,h))}var p=n.l;return n.l=l,n.write_shift(4,s),n.l=p,n.length>n.l?n.slice(0,n.l):n}function VA(e,t,r,n){var i=HA(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&re(e,0,i)}var WA=vi,zA=Eo;function GA(){}function jA(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=r3(e),r}function XA(e,t,r){r==null&&(r=q(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return Nl({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Ox(e,r),r.slice(0,r.l)}function KA(e){var t=hr(e);return[t]}function YA(e,t,r){return r==null&&(r=q(8)),pi(t,r)}function qA(e){var t=gi(e);return[t]}function QA(e,t,r){return r==null&&(r=q(4)),mi(t,r)}function ZA(e){var t=hr(e),r=e.read_shift(1);return[t,r,"b"]}function JA(e,t,r){return r==null&&(r=q(9)),pi(t,r),r.write_shift(1,e.v?1:0),r}function e9(e){var t=gi(e),r=e.read_shift(1);return[t,r,"b"]}function t9(e,t,r){return r==null&&(r=q(5)),mi(t,r),r.write_shift(1,e.v?1:0),r}function r9(e){var t=hr(e),r=e.read_shift(1);return[t,r,"e"]}function n9(e,t,r){return r==null&&(r=q(9)),pi(t,r),r.write_shift(1,e.v),r}function i9(e){var t=gi(e),r=e.read_shift(1);return[t,r,"e"]}function o9(e,t,r){return r==null&&(r=q(8)),mi(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function a9(e){var t=hr(e),r=e.read_shift(4);return[t,r,"s"]}function s9(e,t,r){return r==null&&(r=q(12)),pi(t,r),r.write_shift(4,t.v),r}function l9(e){var t=gi(e),r=e.read_shift(4);return[t,r,"s"]}function u9(e,t,r){return r==null&&(r=q(8)),mi(t,r),r.write_shift(4,t.v),r}function c9(e){var t=hr(e),r=So(e);return[t,r,"n"]}function f9(e,t,r){return r==null&&(r=q(16)),pi(t,r),ni(e.v,r),r}function d9(e){var t=gi(e),r=So(e);return[t,r,"n"]}function h9(e,t,r){return r==null&&(r=q(12)),mi(t,r),ni(e.v,r),r}function p9(e){var t=hr(e),r=Fx(e);return[t,r,"n"]}function g9(e,t,r){return r==null&&(r=q(12)),pi(t,r),Px(e.v,r),r}function m9(e){var t=gi(e),r=Fx(e);return[t,r,"n"]}function v9(e,t,r){return r==null&&(r=q(8)),mi(t,r),Px(e.v,r),r}function x9(e){var t=hr(e),r=wd(e);return[t,r,"is"]}function w9(e){var t=hr(e),r=Ot(e);return[t,r,"str"]}function y9(e,t,r){return r==null&&(r=q(12+4*e.v.length)),pi(t,r),ct(e.v,r),r.length>r.l?r.slice(0,r.l):r}function E9(e){var t=gi(e),r=Ot(e);return[t,r,"str"]}function S9(e,t,r){return r==null&&(r=q(8+4*e.v.length)),mi(t,r),ct(e.v,r),r.length>r.l?r.slice(0,r.l):r}function _9(e,t,r){var n=e.l+t,i=hr(e);i.r=r["!row"];var o=e.read_shift(1),a=[i,o,"b"];if(r.cellFormula){e.l+=2;var s=wu(e,n-e.l,r);a[3]=so(s,null,i,r.supbooks,r)}else e.l=n;return a}function T9(e,t,r){var n=e.l+t,i=hr(e);i.r=r["!row"];var o=e.read_shift(1),a=[i,o,"e"];if(r.cellFormula){e.l+=2;var s=wu(e,n-e.l,r);a[3]=so(s,null,i,r.supbooks,r)}else e.l=n;return a}function C9(e,t,r){var n=e.l+t,i=hr(e);i.r=r["!row"];var o=So(e),a=[i,o,"n"];if(r.cellFormula){e.l+=2;var s=wu(e,n-e.l,r);a[3]=so(s,null,i,r.supbooks,r)}else e.l=n;return a}function A9(e,t,r){var n=e.l+t,i=hr(e);i.r=r["!row"];var o=Ot(e),a=[i,o,"str"];if(r.cellFormula){e.l+=2;var s=wu(e,n-e.l,r);a[3]=so(s,null,i,r.supbooks,r)}else e.l=n;return a}var R9=vi,O9=Eo;function F9(e,t){return t==null&&(t=q(4)),t.write_shift(4,e),t}function P9(e,t){var r=e.l+t,n=vi(e),i=yd(e),o=Ot(e),a=Ot(e),s=Ot(e);e.l=r;var l={rfx:n,relId:i,loc:o,display:s};return a&&(l.Tooltip=a),l}function D9(e,t){var r=q(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Eo({s:ut(e[0]),e:ut(e[0])},r),Ed("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return ct(i||"",r),ct(e[1].Tooltip||"",r),ct("",r),r.slice(0,r.l)}function I9(){}function k9(e,t,r){var n=e.l+t,i=Dx(e),o=e.read_shift(1),a=[i];if(a[2]=o,r.cellFormula){var s=EA(e,n-e.l,r);a[1]=s}else e.l=n;return a}function b9(e,t,r){var n=e.l+t,i=vi(e),o=[i];if(r.cellFormula){var a=_A(e,n-e.l,r);o[1]=a,e.l=n}else e.l=n;return o}function N9(e,t,r){r==null&&(r=q(18));var n=yu(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var p2=["left","right","top","bottom","header","footer"];function $9(e){var t={};return p2.forEach(function(r){t[r]=So(e)}),t}function M9(e,t){return t==null&&(t=q(6*8)),d2(e),p2.forEach(function(r){ni(e[r],t)}),t}function L9(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function B9(e,t,r){r==null&&(r=q(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function U9(e){var t=q(24);return t.write_shift(4,4),t.write_shift(4,1),Eo(e,t),t}function H9(e,t){return t==null&&(t=q(16*4+2)),t.write_shift(2,e.password?Yx(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function V9(){}function W9(){}function z9(e,t,r,n,i,o,a){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=Gt(t),t.z=t.z||Je[14],t.v=zt(bt(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r,c:n};switch(l.s=Ln(i.cellXfs,t,i),t.l&&o["!links"].push([Le(l),t.l]),t.c&&o["!comments"].push([Le(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=Rd(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,a?re(e,18,u9(t,l)):re(e,7,s9(t,l))):(l.t="str",a?re(e,17,S9(t,l)):re(e,6,y9(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?a?re(e,13,v9(t,l)):re(e,2,g9(t,l)):a?re(e,16,h9(t,l)):re(e,5,f9(t,l)),!0;case"b":return l.t="b",a?re(e,15,t9(t,l)):re(e,4,JA(t,l)),!0;case"e":return l.t="e",a?re(e,14,o9(t,l)):re(e,3,n9(t,l)),!0}return a?re(e,12,QA(t,l)):re(e,1,YA(t,l)),!0}function G9(e,t,r,n){var i=Ge(t["!ref"]||"A1"),o,a="",s=[];re(e,145);var l=Array.isArray(t),u=i.e.r;t["!rows"]&&(u=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=u;++c){a=wt(c),VA(e,t,i,c);var f=!1;if(c<=i.e.r)for(var h=i.s.c;h<=i.e.c;++h){c===i.s.r&&(s[h]=Rt(h)),o=s[h]+a;var d=l?(t[c]||[])[h]:t[o];if(!d){f=!1;continue}f=z9(e,d,c,h,n,t,f)}}re(e,146)}function j9(e,t){!t||!t["!merges"]||(re(e,177,F9(t["!merges"].length)),t["!merges"].forEach(function(r){re(e,176,O9(r))}),re(e,178))}function X9(e,t){!t||!t["!cols"]||(re(e,390),t["!cols"].forEach(function(r,n){r&&re(e,60,N9(n,r))}),re(e,391))}function K9(e,t){!t||!t["!ref"]||(re(e,648),re(e,649,U9(Ge(t["!ref"]))),re(e,650))}function Y9(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=$e(r,-1,n[1].Target.replace(/#.*$/,""),ke.HLINK);re(e,494,D9(n,i))}}),delete t["!links"]}function q9(e,t,r,n){if(t["!comments"].length>0){var i=$e(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",ke.VML);re(e,551,Ed("rId"+i)),t["!legacy"]=i}}function Q9(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],o=typeof i.ref=="string"?i.ref:nt(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,s=Zt(o);s.s.r==s.e.r&&(s.e.r=Zt(t["!ref"]).e.r,o=nt(s));for(var l=0;l<a.length;++l){var u=a[l];if(u.Name=="_xlnm._FilterDatabase"&&u.Sheet==n){u.Ref="'"+r.SheetNames[n]+"'!"+o;break}}l==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+o}),re(e,161,Eo(Ge(o))),re(e,162)}}function Z9(e,t,r){re(e,133),re(e,137,B9(t,r)),re(e,138),re(e,134)}function J9(e,t){t["!protect"]&&re(e,535,H9(t["!protect"]))}function e5(e,t,r,n){var i=Wt(),o=r.SheetNames[e],a=r.Sheets[o]||{},s=o;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch{}var l=Ge(a["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return a["!links"]=[],a["!comments"]=[],re(i,129),(r.vbaraw||a["!outline"])&&re(i,147,XA(s,a["!outline"])),re(i,148,zA(l)),Z9(i,a,r.Workbook),X9(i,a),G9(i,a,e,t),J9(i,a),Q9(i,a,r,e),j9(i,a),Y9(i,a,n),a["!margins"]&&re(i,476,M9(a["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&K9(i,a),q9(i,a,e,n),re(i,130),i.end()}function t5(e,t){e.l+=10;var r=Ot(e);return{name:r}}var r5=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function n5(e){return!e.Workbook||!e.Workbook.WBProps?"false":b4(e.Workbook.WBProps.date1904)?"true":"false"}var i5="][*?/\\".split("");function g2(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return i5.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function o5(e,t,r){e.forEach(function(n,i){g2(n);for(var o=0;o<i;++o)if(n==e[o])throw new Error("Duplicate Sheet Name: "+n);if(r){var a=t&&t[i]&&t[i].CodeName||n;if(a.charCodeAt(0)==95&&a.length>22)throw new Error("Bad Code Name: Worksheet"+a)}})}function a5(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];o5(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)OA(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function m2(e){var t=[it];t[t.length]=ue("workbook",null,{xmlns:wo[0],"xmlns:r":lt.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(r5.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=ue("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],o=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",o=0;o!=e.SheetNames.length&&!(!i[o]||!i[o].Hidden);++o);o==e.SheetNames.length&&(o=0),t[t.length]='<workbookView firstSheet="'+o+'" activeTab="'+o+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",o=0;o!=e.SheetNames.length;++o){var a={name:Me(e.SheetNames[o].slice(0,31))};if(a.sheetId=""+(o+1),a["r:id"]="rId"+(o+1),i[o])switch(i[o].Hidden){case 1:a.state="hidden";break;case 2:a.state="veryHidden";break}t[t.length]=ue("sheet",null,a)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(t[t.length]=ue("definedName",Me(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function s5(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=Uf(e),r.name=Ot(e),r}function l5(e,t){return t||(t=q(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),Ed(e.strRelID,t),ct(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function u5(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Ot(e):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function c5(e,t){t||(t=q(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Ox(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function f5(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=n3(e),a=SA(e,0,r),s=yd(e);e.l=n;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function d5(e,t){re(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};re(e,156,l5(i))}re(e,144)}function h5(e,t){t||(t=q(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return ct("SheetJS",t),ct(Ol.version,t),ct(Ol.version,t),ct("7262",t),t.length>t.l?t.slice(0,t.l):t}function p5(e,t){t||(t=q(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function g5(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,o=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&o==-1&&(o=n);o>i||(re(e,135),re(e,158,p5(i)),re(e,136))}}function m5(e,t){var r=Wt();return re(r,131),re(r,128,h5()),re(r,153,c5(e.Workbook&&e.Workbook.WBProps||null)),g5(r,e),d5(r,e),re(r,132),r.end()}function v5(e,t,r){return(t.slice(-4)===".bin"?m5:m2)(e)}function x5(e,t,r,n,i){return(t.slice(-4)===".bin"?e5:h2)(e,r,n,i)}function w5(e,t,r){return(t.slice(-4)===".bin"?M8:Zx)(e,r)}function y5(e,t,r){return(t.slice(-4)===".bin"?c8:Kx)(e,r)}function E5(e,t,r){return(t.slice(-4)===".bin"?J8:n2)(e)}function S5(e){return(e.slice(-4)===".bin"?G8:t2)()}function _5(e,t){var r=[];return e.Props&&r.push(w3(e.Props,t)),e.Custprops&&r.push(y3(e.Props,e.Custprops)),r.join("")}function T5(){return""}function C5(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var o=[];o.push(ue("NumberFormat",null,{"ss:Format":Me(Je[n.numFmtId])}));var a={"ss:ID":"s"+(21+i)};r.push(ue("Style",o.join(""),a))}),ue("Styles",r.join(""))}function v2(e){return ue("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Cd(e.Ref,{r:0,c:0})})}function A5(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var i=t[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||r.push(v2(i)))}return ue("Names",r.join(""))}function R5(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,o=[],a=0;a<i.length;++a){var s=i[a];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||o.push(v2(s)))}return o.join("")}function O5(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(ue("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(ue("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(ue("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(ue("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o<r&&!(n.Workbook.Sheets[o]&&!n.Workbook.Sheets[o].Hidden);++o);o==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(vt("ProtectContents","True")),e["!protect"].objects&&i.push(vt("ProtectObjects","True")),e["!protect"].scenarios&&i.push(vt("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(vt("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(vt("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(a){e["!protect"][a[0]]&&i.push("<"+a[1]+"/>")})),i.length==0?"":ue("WorksheetOptions",i.join(""),{xmlns:Yt.x})}function F5(e){return e.map(function(t){var r=k4(t.t||""),n=ue("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return ue("Comment",n,{"ss:Author":t.a})}).join("")}function P5(e,t,r,n,i,o,a){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+Me(Cd(e.f,a))),e.F&&e.F.slice(0,t.length)==t){var l=ut(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==a.r?"":"["+(l.r-a.r)+"]")+"C"+(l.c==a.c?"":"["+(l.c-a.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=Me(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=Me(e.l.Tooltip))),r["!merges"])for(var u=r["!merges"],c=0;c!=u.length;++c)u[c].s.c!=a.c||u[c].s.r!=a.r||(u[c].e.c>u[c].s.c&&(s["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(s["ss:MergeDown"]=u[c].e.r-u[c].s.r));var f="",h="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",h=String(e.v);break;case"b":f="Boolean",h=e.v?"1":"0";break;case"e":f="Error",h=Qa[e.v];break;case"d":f="DateTime",h=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Je[14]);break;case"s":f="String",h=I4(e.v||"");break}var d=Ln(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+d),s["ss:Index"]=a.c+1;var m=e.v!=null?h:"",p=e.t=="z"?"":'<Data ss:Type="'+f+'">'+m+"</Data>";return(e.c||[]).length>0&&(p+=F5(e.c)),ue("Cell",p,s)}function D5(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Qx(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function I5(e,t,r,n){if(!e["!ref"])return"";var i=Ge(e["!ref"]),o=e["!merges"]||[],a=0,s=[];e["!cols"]&&e["!cols"].forEach(function(g,v){_d(g);var w=!!g.width,y=yu(v,g),S={"ss:Index":v+1};w&&(S["ss:Width"]=Ml(y.width)),g.hidden&&(S["ss:Hidden"]="1"),s.push(ue("Column",null,S))});for(var l=Array.isArray(e),u=i.s.r;u<=i.e.r;++u){for(var c=[D5(u,(e["!rows"]||[])[u])],f=i.s.c;f<=i.e.c;++f){var h=!1;for(a=0;a!=o.length;++a)if(!(o[a].s.c>f)&&!(o[a].s.r>u)&&!(o[a].e.c<f)&&!(o[a].e.r<u)){(o[a].s.c!=f||o[a].s.r!=u)&&(h=!0);break}if(!h){var d={r:u,c:f},m=Le(d),p=l?(e[u]||[])[f]:e[m];c.push(P5(p,m,e,t,r,n,d))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function k5(e,t,r){var n=[],i=r.SheetNames[e],o=r.Sheets[i],a=o?R5(o,t,e,r):"";return a.length>0&&n.push("<Names>"+a+"</Names>"),a=o?I5(o,t,e,r):"",a.length>0&&n.push("<Table>"+a+"</Table>"),n.push(O5(o,t,e,r)),n.join("")}function b5(e,t){t||(t={}),e.SSF||(e.SSF=Gt(Je)),e.SSF&&(gu(),pu(e.SSF),t.revssf=mu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Ln(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(_5(e,t)),r.push(T5()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(ue("Worksheet",k5(n,t,e),{"ss:Name":Me(e.SheetNames[n])}));return r[2]=C5(e,t),r[3]=A5(e),it+ue("Workbook",r.join(""),{xmlns:Yt.ss,"xmlns:o":Yt.o,"xmlns:x":Yt.x,"xmlns:ss":Yt.ss,"xmlns:dt":Yt.dt,"xmlns:html":Yt.html})}var _c={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function N5(e,t){var r=[],n=[],i=[],o=0,a,s=ig(vg,"n"),l=ig(xg,"n");if(e.Props)for(a=Et(e.Props),o=0;o<a.length;++o)(Object.prototype.hasOwnProperty.call(s,a[o])?r:Object.prototype.hasOwnProperty.call(l,a[o])?n:i).push([a[o],e.Props[a[o]]]);if(e.Custprops)for(a=Et(e.Custprops),o=0;o<a.length;++o)Object.prototype.hasOwnProperty.call(e.Props||{},a[o])||(Object.prototype.hasOwnProperty.call(s,a[o])?r:Object.prototype.hasOwnProperty.call(l,a[o])?n:i).push([a[o],e.Custprops[a[o]]]);var u=[];for(o=0;o<i.length;++o)Hx.indexOf(i[o][0])>-1||Lx.indexOf(i[o][0])>-1||i[o][1]!=null&&u.push(i[o]);n.length&&Ue.utils.cfb_add(t,"/SummaryInformation",_g(n,_c.SI,l,xg)),(r.length||u.length)&&Ue.utils.cfb_add(t,"/DocumentSummaryInformation",_g(r,_c.DSI,s,vg,u.length?u:null,_c.UDI))}function $5(e,t){var r=t||{},n=Ue.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Ue.utils.cfb_add(n,i,x2(e,r)),r.biff==8&&(e.Props||e.Custprops)&&N5(e,n),r.biff==8&&e.vbaraw&&e6(n,Ue.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var M5={0:{f:UA},1:{f:KA},2:{f:p9},3:{f:r9},4:{f:ZA},5:{f:c9},6:{f:w9},7:{f:a9},8:{f:A9},9:{f:C9},10:{f:_9},11:{f:T9},12:{f:qA},13:{f:m9},14:{f:i9},15:{f:e9},16:{f:d9},17:{f:E9},18:{f:l9},19:{f:wd},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:f5},40:{},42:{},43:{f:w8},44:{f:v8},45:{f:S8},46:{f:T8},47:{f:_8},48:{},49:{f:q4},50:{},51:{f:U8},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Q3},62:{f:x9},63:{f:j8},64:{f:V9},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:kr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:L9},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:jA},148:{f:WA,p:16},151:{f:I9},152:{},153:{f:u5},154:{},155:{},156:{f:s5},157:{},158:{},159:{T:1,f:s8},160:{T:-1},161:{T:1,f:vi},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:R9},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:L8},336:{T:-1},337:{f:W8,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Uf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:G3},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:k9},427:{f:b9},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:$9},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:GA},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:P9},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Uf},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Q8},633:{T:1},634:{T:-1},635:{T:1,f:Y8},636:{T:-1},637:{f:e3},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:t5},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:W9},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function ce(e,t,r,n){var i=t;if(!isNaN(i)){var o=n||(r||[]).length||0,a=e.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&md(r)&&e.push(r)}}function L5(e,t,r,n){var i=n||(r||[]).length||0;if(i<=8224)return ce(e,t,r,i);var o=t;if(!isNaN(o)){for(var a=r.parts||[],s=0,l=0,u=0;u+(a[s]||8224)<=8224;)u+=a[s]||8224,s++;var c=e.next(4);for(c.write_shift(2,o),c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u;l<i;){for(c=e.next(4),c.write_shift(2,60),u=0;u+(a[s]||8224)<=8224;)u+=a[s]||8224,s++;c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u}}}function Ja(e,t,r){return e||(e=q(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function B5(e,t,r,n){var i=q(9);return Ja(i,e,t),Wx(r,n||"b",i),i}function U5(e,t,r){var n=q(8+2*r.length);return Ja(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function H5(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?zt(bt(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?ce(e,2,t8(r,n,i)):ce(e,3,e8(r,n,i));return;case"b":case"e":ce(e,5,B5(r,n,t.v,t.t));return;case"s":case"str":ce(e,4,U5(r,n,(t.v||"").slice(0,255)));return}ce(e,1,Ja(null,r,n))}function V5(e,t,r,n){var i=Array.isArray(t),o=Ge(t["!ref"]||"A1"),a,s="",l=[];if(o.e.c>255||o.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");o.e.c=Math.min(o.e.c,255),o.e.r=Math.min(o.e.c,16383),a=nt(o)}for(var u=o.s.r;u<=o.e.r;++u){s=wt(u);for(var c=o.s.c;c<=o.e.c;++c){u===o.s.r&&(l[c]=Rt(c)),a=l[c]+s;var f=i?(t[u]||[])[c]:t[a];f&&H5(e,f,u,c)}}}function W5(e,t){for(var r=t||{},n=Wt(),i=0,o=0;o<e.SheetNames.length;++o)e.SheetNames[o]==r.sheet&&(i=o);if(i==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return ce(n,r.biff==4?1033:r.biff==3?521:9,Sd(e,16,r)),V5(n,e.Sheets[e.SheetNames[i]],i,r),ce(n,10),n.end()}function z5(e,t,r){ce(e,49,M3({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function G5(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&ce(e,1054,U3(i,t[i],r))})}function j5(e,t){var r=q(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),ce(e,2151,r),r=q(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),jx(Ge(t["!ref"]||"A1"),r),r.write_shift(4,4),ce(e,2152,r)}function X5(e,t){for(var r=0;r<16;++r)ce(e,224,Cg({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){ce(e,224,Cg(n,0,t))})}function K5(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];ce(e,440,K3(n)),n[1].Tooltip&&ce(e,2048,Y3(n))}delete t["!links"]}function Y5(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&ce(e,125,Z3(yu(i,n),i))})}}function q5(e,t,r,n,i){var o=16+Ln(i.cellXfs,t,i);if(t.v==null&&!t.bf){ce(e,513,ii(r,n,o));return}if(t.bf)ce(e,6,yA(t,r,n,i,o));else switch(t.t){case"d":case"n":var a=t.t=="d"?zt(bt(t.v)):t.v;ce(e,515,z3(r,n,a,o));break;case"b":case"e":ce(e,517,W3(r,n,t.v,o,i,t.t));break;case"s":case"str":if(i.bookSST){var s=Rd(i.Strings,t.v,i.revStrings);ce(e,253,L3(r,n,s,o))}else ce(e,516,B3(r,n,(t.v||"").slice(0,255),o,i));break;default:ce(e,513,ii(r,n,o))}}function Q5(e,t,r){var n=Wt(),i=r.SheetNames[e],o=r.Sheets[i]||{},a=(r||{}).Workbook||{},s=(a.Sheets||[])[e]||{},l=Array.isArray(o),u=t.biff==8,c,f="",h=[],d=Ge(o["!ref"]||"A1"),m=u?65536:16384;if(d.e.c>255||d.e.r>=m){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255),d.e.r=Math.min(d.e.c,m-1)}ce(n,2057,Sd(r,16,t)),ce(n,13,ir(1)),ce(n,12,ir(100)),ce(n,15,Dt(!0)),ce(n,17,Dt(!1)),ce(n,16,ni(.001)),ce(n,95,Dt(!0)),ce(n,42,Dt(!1)),ce(n,43,Dt(!1)),ce(n,130,ir(1)),ce(n,128,V3([0,0])),ce(n,131,Dt(!1)),ce(n,132,Dt(!1)),u&&Y5(n,o["!cols"]),ce(n,512,H3(d,t)),u&&(o["!links"]=[]);for(var p=d.s.r;p<=d.e.r;++p){f=wt(p);for(var g=d.s.c;g<=d.e.c;++g){p===d.s.r&&(h[g]=Rt(g)),c=h[g]+f;var v=l?(o[p]||[])[g]:o[c];v&&(q5(n,v,p,g,t),u&&v.l&&o["!links"].push([c,v.l]))}}var w=s.CodeName||s.name||i;return u&&ce(n,574,$3((a.Views||[])[0])),u&&(o["!merges"]||[]).length&&ce(n,229,X3(o["!merges"])),u&&K5(n,o),ce(n,442,Gx(w)),u&&j5(n,o),ce(n,10),n.end()}function Z5(e,t,r){var n=Wt(),i=(e||{}).Workbook||{},o=i.Sheets||[],a=i.WBProps||{},s=r.biff==8,l=r.biff==5;if(ce(n,2057,Sd(e,5,r)),r.bookType=="xla"&&ce(n,135),ce(n,225,s?ir(1200):null),ce(n,193,_3(2)),l&&ce(n,191),l&&ce(n,192),ce(n,226),ce(n,92,I3("SheetJS",r)),ce(n,66,ir(s?1200:1252)),s&&ce(n,353,ir(0)),s&&ce(n,448),ce(n,317,J3(e.SheetNames.length)),s&&e.vbaraw&&ce(n,211),s&&e.vbaraw){var u=a.CodeName||"ThisWorkbook";ce(n,442,Gx(u))}ce(n,156,ir(17)),ce(n,25,Dt(!1)),ce(n,18,Dt(!1)),ce(n,19,ir(0)),s&&ce(n,431,Dt(!1)),s&&ce(n,444,ir(0)),ce(n,61,N3()),ce(n,64,Dt(!1)),ce(n,141,ir(0)),ce(n,34,Dt(n5(e)=="true")),ce(n,14,Dt(!0)),s&&ce(n,439,Dt(!1)),ce(n,218,ir(0)),z5(n,e,r),G5(n,e.SSF,r),X5(n,r),s&&ce(n,352,Dt(!1));var c=n.end(),f=Wt();s&&ce(f,140,q3()),s&&r.Strings&&L5(f,252,b3(r.Strings)),ce(f,10);var h=f.end(),d=Wt(),m=0,p=0;for(p=0;p<e.SheetNames.length;++p)m+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var g=c.length+m+h.length;for(p=0;p<e.SheetNames.length;++p){var v=o[p]||{};ce(d,133,k3({pos:g,hs:v.Hidden||0,dt:0,name:e.SheetNames[p]},r)),g+=t[p].length}var w=d.end();if(m!=w.length)throw new Error("BS8 "+m+" != "+w.length);var y=[];return c.length&&y.push(c),w.length&&y.push(w),h.length&&y.push(h),mt(y)}function J5(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=Gt(Je)),e&&e.SSF&&(gu(),pu(e.SSF),r.revssf=mu(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Od(r),r.cellXfs=[],Ln(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=Q5(i,r,e);return n.unshift(Z5(e,n,r)),mt(n)}function x2(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=Zt(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255).  Data may be lost.")}}var o=t||{};switch(o.biff||2){case 8:case 5:return J5(e,t);case 4:case 3:case 2:return W5(e,t)}throw new Error("invalid type "+o.bookType+" for BIFF")}function eR(e,t,r,n){for(var i=e["!merges"]||[],o=[],a=t.s.c;a<=t.e.c;++a){for(var s=0,l=0,u=0;u<i.length;++u)if(!(i[u].s.r>r||i[u].s.c>a)&&!(i[u].e.r<r||i[u].e.c<a)){if(i[u].s.r<r||i[u].s.c<a){s=-1;break}s=i[u].e.r-i[u].s.r+1,l=i[u].e.c-i[u].s.c+1;break}if(!(s<0)){var c=Le({r,c:a}),f=n.dense?(e[r]||[])[a]:e[c],h=f&&f.v!=null&&(f.h||D4(f.w||(en(f),f.w)||""))||"",d={};s>1&&(d.rowspan=s),l>1&&(d.colspan=l),n.editable?h='<span contenteditable="true">'+h+"</span>":f&&(d["data-t"]=f&&f.t||"z",f.v!=null&&(d["data-v"]=f.v),f.z!=null&&(d["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(h='<a href="'+f.l.Target+'">'+h+"</a>")),d.id=(n.id||"sjs")+"-"+c,o.push(ue("td",h,d))}}var m="<tr>";return m+o.join("")+"</tr>"}var tR='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',rR="</body></html>";function nR(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function w2(e,t){var r=t||{},n=r.header!=null?r.header:tR,i=r.footer!=null?r.footer:rR,o=[n],a=Zt(e["!ref"]);r.dense=Array.isArray(e),o.push(nR(e,a,r));for(var s=a.s.r;s<=a.e.r;++s)o.push(eR(e,a,s,r));return o.push("</table>"+i),o.join("")}function y2(e,t,r){var n=r||{},i=0,o=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var a=typeof n.origin=="string"?ut(n.origin):n.origin;i=a.r,o=a.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:i,c:o}};if(e["!ref"]){var c=Zt(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),i==-1&&(u.e.r=i=c.e.r+1)}var f=[],h=0,d=e["!rows"]||(e["!rows"]=[]),m=0,p=0,g=0,v=0,w=0,y=0;for(e["!cols"]||(e["!cols"]=[]);m<s.length&&p<l;++m){var S=s[m];if(Ig(S)){if(n.display)continue;d[p]={hidden:!0}}var b=S.children;for(g=v=0;g<b.length;++g){var M=b[g];if(!(n.display&&Ig(M))){var _=M.hasAttribute("data-v")?M.getAttribute("data-v"):M.hasAttribute("v")?M.getAttribute("v"):N4(M.innerHTML),A=M.getAttribute("data-z")||M.getAttribute("z");for(h=0;h<f.length;++h){var R=f[h];R.s.c==v+o&&R.s.r<p+i&&p+i<=R.e.r&&(v=R.e.c+1-o,h=-1)}y=+M.getAttribute("colspan")||1,((w=+M.getAttribute("rowspan")||1)>1||y>1)&&f.push({s:{r:p+i,c:v+o},e:{r:p+i+(w||1)-1,c:v+o+(y||1)-1}});var L={t:"s",v:_},U=M.getAttribute("data-t")||M.getAttribute("t")||"";_!=null&&(_.length==0?L.t=U||"z":n.raw||_.trim().length==0||U=="s"||(_==="TRUE"?L={t:"b",v:!0}:_==="FALSE"?L={t:"b",v:!1}:isNaN(Yr(_))?isNaN(ba(_).getDate())||(L={t:"d",v:bt(_)},n.cellDates||(L={t:"n",v:zt(L.v)}),L.z=n.dateNF||Je[14]):L={t:"n",v:Yr(_)})),L.z===void 0&&A!=null&&(L.z=A);var B="",V=M.getElementsByTagName("A");if(V&&V.length)for(var Y=0;Y<V.length&&!(V[Y].hasAttribute("href")&&(B=V[Y].getAttribute("href"),B.charAt(0)!="#"));++Y);B&&B.charAt(0)!="#"&&(L.l={Target:B}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][v+o]=L):e[Le({c:v+o,r:p+i})]=L,u.e.c<v+o&&(u.e.c=v+o),v+=y}}++p}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),u.e.r=Math.max(u.e.r,p-1+i),e["!ref"]=nt(u),p>=l&&(e["!fullref"]=nt((u.e.r=s.length-m+p-1+i,u))),e}function E2(e,t){var r=t||{},n=r.dense?[]:{};return y2(n,e,t)}function iR(e,t){return hi(E2(e,t),t)}function Ig(e){var t="",r=oR(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function oR(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var aR=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Na({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return it+t}}(),kg=function(){var e=function(o){return Me(o).replace(/  +/g,function(a){return'<text:s text:c="'+a.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=`          <table:table-cell />
 `,r=`          <table:covered-table-cell/>
 `,n=function(o,a,s){var l=[];l.push('      <table:table table:name="'+Me(a.SheetNames[s])+`" table:style-name="ta1">
 `);var u=0,c=0,f=Zt(o["!ref"]||"A1"),h=o["!merges"]||[],d=0,m=Array.isArray(o);if(o["!cols"])for(c=0;c<=f.e.c;++c)l.push("        <table:table-column"+(o["!cols"][c]?' table:style-name="co'+o["!cols"][c].ods+'"':"")+`></table:table-column>
 `);var p="",g=o["!rows"]||[];for(u=0;u<f.s.r;++u)p=g[u]?' table:style-name="ro'+g[u].ods+'"':"",l.push("        <table:table-row"+p+`></table:table-row>
 `);for(;u<=f.e.r;++u){for(p=g[u]?' table:style-name="ro'+g[u].ods+'"':"",l.push("        <table:table-row"+p+`>
-`),c=0;c<f.s.c;++c)l.push(t);for(;c<=f.e.c;++c){var v=!1,w={},y="";for(d=0;d!=h.length;++d)if(!(h[d].s.c>c)&&!(h[d].s.r>u)&&!(h[d].e.c<c)&&!(h[d].e.r<u)){(h[d].s.c!=c||h[d].s.r!=u)&&(v=!0),w["table:number-columns-spanned"]=h[d].e.c-h[d].s.c+1,w["table:number-rows-spanned"]=h[d].e.r-h[d].s.r+1;break}if(v){l.push(r);continue}var S=Le({r:u,c}),N=m?(o[u]||[])[c]:o[S];if(N&&N.f&&(w["table:formula"]=Me(AA(N.f)),N.F&&N.F.slice(0,S.length)==S)){var M=Zt(N.F);w["table:number-matrix-columns-spanned"]=M.e.c-M.s.c+1,w["table:number-matrix-rows-spanned"]=M.e.r-M.s.r+1}if(!N){l.push(t);continue}switch(N.t){case"b":y=N.v?"TRUE":"FALSE",w["office:value-type"]="boolean",w["office:boolean-value"]=N.v?"true":"false";break;case"n":y=N.w||String(N.v||0),w["office:value-type"]="float",w["office:value"]=N.v||0;break;case"s":case"str":y=N.v==null?"":N.v,w["office:value-type"]="string";break;case"d":y=N.w||bt(N.v).toISOString(),w["office:value-type"]="date",w["office:date-value"]=bt(N.v).toISOString(),w["table:style-name"]="ce1";break;default:l.push(t);continue}var _=e(y);if(N.l&&N.l.Target){var C=N.l.Target;C=C.charAt(0)=="#"?"#"+RA(C.slice(1)):C,C.charAt(0)!="#"&&!C.match(/^\w+:/)&&(C="../"+C),_=le("text:a",_,{"xlink:href":C.replace(/&/g,"&amp;")})}l.push("          "+le("table:table-cell",le("text:p",_,{}),w)+`
+`),c=0;c<f.s.c;++c)l.push(t);for(;c<=f.e.c;++c){var v=!1,w={},y="";for(d=0;d!=h.length;++d)if(!(h[d].s.c>c)&&!(h[d].s.r>u)&&!(h[d].e.c<c)&&!(h[d].e.r<u)){(h[d].s.c!=c||h[d].s.r!=u)&&(v=!0),w["table:number-columns-spanned"]=h[d].e.c-h[d].s.c+1,w["table:number-rows-spanned"]=h[d].e.r-h[d].s.r+1;break}if(v){l.push(r);continue}var S=Le({r:u,c}),b=m?(o[u]||[])[c]:o[S];if(b&&b.f&&(w["table:formula"]=Me(AA(b.f)),b.F&&b.F.slice(0,S.length)==S)){var M=Zt(b.F);w["table:number-matrix-columns-spanned"]=M.e.c-M.s.c+1,w["table:number-matrix-rows-spanned"]=M.e.r-M.s.r+1}if(!b){l.push(t);continue}switch(b.t){case"b":y=b.v?"TRUE":"FALSE",w["office:value-type"]="boolean",w["office:boolean-value"]=b.v?"true":"false";break;case"n":y=b.w||String(b.v||0),w["office:value-type"]="float",w["office:value"]=b.v||0;break;case"s":case"str":y=b.v==null?"":b.v,w["office:value-type"]="string";break;case"d":y=b.w||bt(b.v).toISOString(),w["office:value-type"]="date",w["office:date-value"]=bt(b.v).toISOString(),w["table:style-name"]="ce1";break;default:l.push(t);continue}var _=e(y);if(b.l&&b.l.Target){var A=b.l.Target;A=A.charAt(0)=="#"?"#"+RA(A.slice(1)):A,A.charAt(0)!="#"&&!A.match(/^\w+:/)&&(A="../"+A),_=ue("text:a",_,{"xlink:href":A.replace(/&/g,"&amp;")})}l.push("          "+ue("table:table-cell",ue("text:p",_,{}),w)+`
 `)}l.push(`        </table:table-row>
 `)}return l.push(`      </table:table>
 `),l.join("")},i=function(o,a){o.push(` <office:automatic-styles>
@@ -241,16 +241,16 @@
 `),l.push(`    <office:spreadsheet>
 `);for(var f=0;f!=a.SheetNames.length;++f)l.push(n(a.Sheets[a.SheetNames[f]],a,f));return l.push(`    </office:spreadsheet>
 `),l.push(`  </office:body>
-`),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function S2(e,t){if(t.bookType=="fods")return kg(e,t);var r=dd(),n="",i=[],o=[];return n="mimetype",Fe(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Fe(r,n,kg(e,t)),i.push([n,"text/xml"]),o.push([n,"ContentFile"]),n="styles.xml",Fe(r,n,aR(e,t)),i.push([n,"text/xml"]),o.push([n,"StylesFile"]),n="meta.xml",Fe(r,n,it+$x()),i.push([n,"text/xml"]),o.push([n,"MetadataFile"]),n="manifest.rdf",Fe(r,n,x3(o)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Fe(r,n,m3(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Ul(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function sR(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):wr(zr(e))}function lR(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Nn(e){var t=e.reduce(function(i,o){return i+o.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function uR(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var o=0;i>=1;++o,i/=256)e[t+o]=i&255;e[t+15]|=r>=0?0:128}function $a(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function Ne(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Zi(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function ot(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=$a(e,r),o=i&7;i=Math.floor(i/8);var a=0,s;if(i==0)break;switch(o){case 0:{for(var l=r[0];e[r[0]++]>=128;);s=e.slice(l,r[0])}break;case 5:a=4,s=e.slice(r[0],r[0]+a),r[0]+=a;break;case 1:a=8,s=e.slice(r[0],r[0]+a),r[0]+=a;break;case 2:a=$a(e,r),s=e.slice(r[0],r[0]+a),r[0]+=a;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(n))}var u={data:s,type:o};t[i]==null?t[i]=[u]:t[i].push(u)}return t}function dt(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(Ne(n*8+i.type)),i.type==2&&t.push(Ne(i.data.length)),t.push(i.data))})}),Nn(t)}function gr(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=$a(e,n),o=ot(e.slice(n[0],n[0]+i));n[0]+=i;var a={id:Zi(o[1][0].data),messages:[]};o[2].forEach(function(s){var l=ot(s.data),u=Zi(l[3][0].data);a.messages.push({meta:l,data:e.slice(n[0],n[0]+u)}),n[0]+=u}),(t=o[3])!=null&&t[0]&&(a.merge=Zi(o[3][0].data)>>>0>0),r.push(a)}return r}function Ai(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:Ne(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Ne(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(a){i.push(a.data),a.meta[3]=[{type:0,data:Ne(a.data.length)}],n[2].push({data:dt(a.meta),type:2})});var o=dt(n);t.push(Ne(o.length)),t.push(o),i.forEach(function(a){return t.push(a)})}),Nn(t)}function cR(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=$a(t,r),i=[];r[0]<t.length;){var o=t[r[0]]&3;if(o==0){var a=t[r[0]++]>>2;if(a<60)++a;else{var s=a-59;a=t[r[0]],s>1&&(a|=t[r[0]+1]<<8),s>2&&(a|=t[r[0]+2]<<16),s>3&&(a|=t[r[0]+3]<<24),a>>>=0,a++,r[0]+=s}i.push(t.slice(r[0],r[0]+a)),r[0]+=a;continue}else{var l=0,u=0;if(o==1?(u=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(u=(t[r[0]++]>>2)+1,o==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[Nn(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(u>=l)for(i.push(i[0].slice(-l)),u-=l;u>=i[i.length-1].length;)i.push(i[i.length-1]),u-=i[i.length-1].length;i.push(i[0].slice(-l,-l+u))}}var c=Nn(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function mr(e){for(var t=[],r=0;r<e.length;){var n=e[r++],i=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(cR(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Nn(t)}function Ri(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),i=new Uint8Array(4);t.push(i);var o=Ne(n),a=o.length;t.push(o),n<=60?(a++,t.push(new Uint8Array([n-1<<2]))):n<=256?(a+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(a+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(a+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(a+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),a+=n,i[0]=0,i[1]=a&255,i[2]=a>>8&255,i[3]=a>>16&255,r+=n}return Nn(t)}function Tc(e,t){var r=new Uint8Array(32),n=Ul(r),i=12,o=0;switch(r[0]=5,e.t){case"n":r[1]=2,uR(r,i,e.v),o|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),o|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),o|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,o,!0),r.slice(0,i)}function Cc(e,t){var r=new Uint8Array(32),n=Ul(r),i=12,o=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),o|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),o|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),o|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,o,!0),r.slice(0,i)}function an(e){var t=ot(e);return $a(t[1][0].data)}function fR(e,t,r){var n,i,o,a;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var s=((a=(o=e[8])==null?void 0:o[0])==null?void 0:a.data)&&Zi(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,u=Ul(e[7][0].data),c=0,f=[],h=Ul(e[4][0].data),d=0,m=[],p=0;p<t.length;++p){if(t[p]==null){u.setUint16(p*2,65535,!0),h.setUint16(p*2,65535);continue}u.setUint16(p*2,c,!0),h.setUint16(p*2,d,!0);var g,v;switch(typeof t[p]){case"string":g=Tc({t:"s",v:t[p]},r),v=Cc({t:"s",v:t[p]},r);break;case"number":g=Tc({t:"n",v:t[p]},r),v=Cc({t:"n",v:t[p]},r);break;case"boolean":g=Tc({t:"b",v:t[p]},r),v=Cc({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(g),c+=g.length,m.push(v),d+=v.length,++l}for(e[2][0].data=Ne(l);p<e[7][0].data.length/2;++p)u.setUint16(p*2,65535,!0),h.setUint16(p*2,65535,!0);return e[6][0].data=Nn(f),e[3][0].data=Nn(m),l}function dR(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Zt(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(nt(n)));var o=Hl(r,{range:n,header:1}),a=["~Sh33tJ5~"];o.forEach(function(b){return b.forEach(function(k){typeof k=="string"&&a.push(k)})});var s={},l=[],u=Ue.read(t.numbers,{type:"base64"});u.FileIndex.map(function(b,k){return[b,u.FullPaths[k]]}).forEach(function(b){var k=b[0],F=b[1];if(k.type==2&&k.name.match(/\.iwa/)){var H=k.content,G=mr(H),Y=gr(G);Y.forEach(function(te){l.push(te.id),s[te.id]={deps:[],location:F,type:Zi(te.messages[0].meta[1][0].data)}})}}),l.sort(function(b,k){return b-k});var c=l.filter(function(b){return b>1}).map(function(b){return[b,Ne(b)]});u.FileIndex.map(function(b,k){return[b,u.FullPaths[k]]}).forEach(function(b){var k=b[0];if(b[1],!!k.name.match(/\.iwa/)){var F=gr(mr(k.content));F.forEach(function(H){H.messages.forEach(function(G){c.forEach(function(Y){H.messages.some(function(te){return Zi(te.meta[1][0].data)!=11006&&lR(te.data,Y[1])})&&s[Y[0]].deps.push(H.id)})})})}});for(var f=Ue.find(u,s[1].location),h=gr(mr(f.content)),d,m=0;m<h.length;++m){var p=h[m];p.id==1&&(d=p)}var g=an(ot(d.messages[0].data)[1][0].data);for(f=Ue.find(u,s[g].location),h=gr(mr(f.content)),m=0;m<h.length;++m)p=h[m],p.id==g&&(d=p);for(g=an(ot(d.messages[0].data)[2][0].data),f=Ue.find(u,s[g].location),h=gr(mr(f.content)),m=0;m<h.length;++m)p=h[m],p.id==g&&(d=p);for(g=an(ot(d.messages[0].data)[2][0].data),f=Ue.find(u,s[g].location),h=gr(mr(f.content)),m=0;m<h.length;++m)p=h[m],p.id==g&&(d=p);var v=ot(d.messages[0].data);{v[6][0].data=Ne(n.e.r+1),v[7][0].data=Ne(n.e.c+1);var w=an(v[46][0].data),y=Ue.find(u,s[w].location),S=gr(mr(y.content));{for(var N=0;N<S.length&&S[N].id!=w;++N);if(S[N].id!=w)throw"Bad ColumnRowUIDMapArchive";var M=ot(S[N].messages[0].data);M[1]=[],M[2]=[],M[3]=[];for(var _=0;_<=n.e.c;++_){var C=[];C[1]=C[2]=[{type:0,data:Ne(_+420690)}],M[1].push({type:2,data:dt(C)}),M[2].push({type:0,data:Ne(_)}),M[3].push({type:0,data:Ne(_)})}M[4]=[],M[5]=[],M[6]=[];for(var A=0;A<=n.e.r;++A)C=[],C[1]=C[2]=[{type:0,data:Ne(A+726270)}],M[4].push({type:2,data:dt(C)}),M[5].push({type:0,data:Ne(A)}),M[6].push({type:0,data:Ne(A)});S[N].messages[0].data=dt(M)}y.content=Ri(Ai(S)),y.size=y.content.length,delete v[46];var L=ot(v[4][0].data);{L[7][0].data=Ne(n.e.r+1);var U=ot(L[1][0].data),B=an(U[2][0].data);y=Ue.find(u,s[B].location),S=gr(mr(y.content));{if(S[0].id!=B)throw"Bad HeaderStorageBucket";var V=ot(S[0].messages[0].data);for(A=0;A<o.length;++A){var q=ot(V[2][0].data);q[1][0].data=Ne(A),q[4][0].data=Ne(o[A].length),V[2][A]={type:V[2][0].type,data:dt(q)}}S[0].messages[0].data=dt(V)}y.content=Ri(Ai(S)),y.size=y.content.length;var ne=an(L[2][0].data);y=Ue.find(u,s[ne].location),S=gr(mr(y.content));{if(S[0].id!=ne)throw"Bad HeaderStorageBucket";for(V=ot(S[0].messages[0].data),_=0;_<=n.e.c;++_)q=ot(V[2][0].data),q[1][0].data=Ne(_),q[4][0].data=Ne(n.e.r+1),V[2][_]={type:V[2][0].type,data:dt(q)};S[0].messages[0].data=dt(V)}y.content=Ri(Ai(S)),y.size=y.content.length;var we=an(L[4][0].data);(function(){for(var b=Ue.find(u,s[we].location),k=gr(mr(b.content)),F,H=0;H<k.length;++H){var G=k[H];G.id==we&&(F=G)}var Y=ot(F.messages[0].data);{Y[3]=[];var te=[];a.forEach(function(pe,Pe){te[1]=[{type:0,data:Ne(Pe)}],te[2]=[{type:0,data:Ne(1)}],te[3]=[{type:2,data:sR(pe)}],Y[3].push({type:2,data:dt(te)})})}F.messages[0].data=dt(Y);var re=Ai(k),ye=Ri(re);b.content=ye,b.size=b.content.length})();var ve=ot(L[3][0].data);{var _e=ve[1][0];delete ve[2];var J=ot(_e.data);{var ce=an(J[2][0].data);(function(){for(var b=Ue.find(u,s[ce].location),k=gr(mr(b.content)),F,H=0;H<k.length;++H){var G=k[H];G.id==ce&&(F=G)}var Y=ot(F.messages[0].data);{delete Y[6],delete ve[7];var te=new Uint8Array(Y[5][0].data);Y[5]=[];for(var re=0,ye=0;ye<=n.e.r;++ye){var pe=ot(te);re+=fR(pe,o[ye],a),pe[1][0].data=Ne(ye),Y[5].push({data:dt(pe),type:2})}Y[1]=[{type:0,data:Ne(n.e.c+1)}],Y[2]=[{type:0,data:Ne(n.e.r+1)}],Y[3]=[{type:0,data:Ne(re)}],Y[4]=[{type:0,data:Ne(n.e.r+1)}]}F.messages[0].data=dt(Y);var Pe=Ai(k),Ee=Ri(Pe);b.content=Ee,b.size=b.content.length})()}_e.data=dt(J)}L[3][0].data=dt(ve)}v[4][0].data=dt(L)}d.messages[0].data=dt(v);var K=Ai(h),O=Ri(K);return f.content=O,f.size=f.content.length,u}function hR(e){return function(r){for(var n=0;n!=e.length;++n){var i=e[n];r[i[0]]===void 0&&(r[i[0]]=i[1]),i[2]==="n"&&(r[i[0]]=Number(r[i[0]]))}}}function Od(e){hR([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function pR(e,t){return t.bookType=="ods"?S2(e,t):t.bookType=="numbers"?dR(e,t):t.bookType=="xlsb"?gR(e,t):mR(e,t)}function gR(e,t){Li=1024,e&&!e.SSF&&(e.SSF=Gt(Je)),e&&e.SSF&&(gu(),pu(e.SSF),t.revssf=mu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,pa?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=i2.indexOf(t.bookType)>-1,i=kx();Od(t=t||{});var o=dd(),a="",s=0;if(t.cellXfs=[],Ln(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",Fe(o,a,Mx(e.Props,t)),i.coreprops.push(a),$e(t.rels,2,a,ke.CORE_PROPS),a="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,Fe(o,a,Bx(e.Props)),i.extprops.push(a),$e(t.rels,3,a,ke.EXT_PROPS),e.Custprops!==e.Props&&Et(e.Custprops||{}).length>0&&(a="docProps/custom.xml",Fe(o,a,Ux(e.Custprops)),i.custprops.push(a),$e(t.rels,4,a,ke.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var c={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],h=(f||{})["!type"]||"sheet";switch(h){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Fe(o,a,x5(s-1,a,t,e,c)),i.sheets.push(a),$e(t.wbrels,-1,"worksheets/sheet"+s+"."+r,ke.WS[0])}if(f){var d=f["!comments"],m=!1,p="";d&&d.length>0&&(p="xl/comments"+s+"."+r,Fe(o,p,E5(d,p)),i.comments.push(p),$e(c,-1,"../comments"+s+"."+r,ke.CMNT),m=!0),f["!legacy"]&&m&&Fe(o,"xl/drawings/vmlDrawing"+s+".vml",r2(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}c["!id"].rId1&&Fe(o,Nx(a),qi(c))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,Fe(o,a,y5(t.Strings,a,t)),i.strs.push(a),$e(t.wbrels,-1,"sharedStrings."+r,ke.SST)),a="xl/workbook."+r,Fe(o,a,v5(e,a)),i.workbooks.push(a),$e(t.rels,1,a,ke.WB),a="xl/theme/theme1.xml",Fe(o,a,e2(e.Themes,t)),i.themes.push(a),$e(t.wbrels,-1,"theme/theme1.xml",ke.THEME),a="xl/styles."+r,Fe(o,a,w5(e,a,t)),i.styles.push(a),$e(t.wbrels,-1,"styles."+r,ke.STY),e.vbaraw&&n&&(a="xl/vbaProject.bin",Fe(o,a,e.vbaraw),i.vba.push(a),$e(t.wbrels,-1,"vbaProject.bin",ke.VBA)),a="xl/metadata."+r,Fe(o,a,S5(a)),i.metadata.push(a),$e(t.wbrels,-1,"metadata."+r,ke.XLMETA),Fe(o,"[Content_Types].xml",bx(i,t)),Fe(o,"_rels/.rels",qi(t.rels)),Fe(o,"xl/_rels/workbook."+r+".rels",qi(t.wbrels)),delete t.revssf,delete t.ssf,o}function mR(e,t){Li=1024,e&&!e.SSF&&(e.SSF=Gt(Je)),e&&e.SSF&&(gu(),pu(e.SSF),t.revssf=mu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,pa?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=i2.indexOf(t.bookType)>-1,i=kx();Od(t=t||{});var o=dd(),a="",s=0;if(t.cellXfs=[],Ln(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",Fe(o,a,Mx(e.Props,t)),i.coreprops.push(a),$e(t.rels,2,a,ke.CORE_PROPS),a="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,Fe(o,a,Bx(e.Props)),i.extprops.push(a),$e(t.rels,3,a,ke.EXT_PROPS),e.Custprops!==e.Props&&Et(e.Custprops||{}).length>0&&(a="docProps/custom.xml",Fe(o,a,Ux(e.Custprops)),i.custprops.push(a),$e(t.rels,4,a,ke.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},h=e.Sheets[e.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Fe(o,a,h2(s-1,t,e,f)),i.sheets.push(a),$e(t.wbrels,-1,"worksheets/sheet"+s+"."+r,ke.WS[0])}if(h){var m=h["!comments"],p=!1,g="";if(m&&m.length>0){var v=!1;m.forEach(function(w){w[1].forEach(function(y){y.T==!0&&(v=!0)})}),v&&(g="xl/threadedComments/threadedComment"+s+"."+r,Fe(o,g,X8(m,c,t)),i.threadedcomments.push(g),$e(f,-1,"../threadedComments/threadedComment"+s+"."+r,ke.TCMNT)),g="xl/comments"+s+"."+r,Fe(o,g,n2(m)),i.comments.push(g),$e(f,-1,"../comments"+s+"."+r,ke.CMNT),p=!0}h["!legacy"]&&p&&Fe(o,"xl/drawings/vmlDrawing"+s+".vml",r2(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&Fe(o,Nx(a),qi(f))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,Fe(o,a,Kx(t.Strings,t)),i.strs.push(a),$e(t.wbrels,-1,"sharedStrings."+r,ke.SST)),a="xl/workbook."+r,Fe(o,a,m2(e)),i.workbooks.push(a),$e(t.rels,1,a,ke.WB),a="xl/theme/theme1.xml",Fe(o,a,e2(e.Themes,t)),i.themes.push(a),$e(t.wbrels,-1,"theme/theme1.xml",ke.THEME),a="xl/styles."+r,Fe(o,a,Zx(e,t)),i.styles.push(a),$e(t.wbrels,-1,"styles."+r,ke.STY),e.vbaraw&&n&&(a="xl/vbaProject.bin",Fe(o,a,e.vbaraw),i.vba.push(a),$e(t.wbrels,-1,"vbaProject.bin",ke.VBA)),a="xl/metadata."+r,Fe(o,a,t2()),i.metadata.push(a),$e(t.wbrels,-1,"metadata."+r,ke.XLMETA),c.length>1&&(a="xl/persons/person.xml",Fe(o,a,K8(c)),i.people.push(a),$e(t.wbrels,-1,"persons/person.xml",ke.PEOPLE)),Fe(o,"[Content_Types].xml",bx(i,t)),Fe(o,"_rels/.rels",qi(t.rels)),Fe(o,"xl/_rels/workbook."+r+".rels",qi(t.wbrels)),delete t.revssf,delete t.ssf,o}function vR(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Jr(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function _2(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Ya(t.file,Ue.write(e,{type:be?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Ue.write(e,t)}function xR(e,t){var r=Gt(t||{}),n=pR(e,r);return wR(n,r)}function wR(e,t){var r={},n=be?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?Ue.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(hu(i))}return t.password&&typeof encrypt_agile<"u"?_2(encrypt_agile(i,t.password),t):t.type==="file"?Ya(t.file,i):t.type=="string"?ca(i):i}function yR(e,t){var r=t||{},n=$5(e,r);return _2(n,r)}function Cr(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return ka(zr(n));case"binary":return zr(n);case"string":return e;case"file":return Ya(t.file,n,"utf8");case"buffer":return be?on(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Cr(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function ER(e,t){switch(t.type){case"base64":return ka(e);case"binary":return e;case"string":return e;case"file":return Ya(t.file,e,"binary");case"buffer":return be?on(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Ds(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?ka(r):t.type=="string"?ca(r):r;case"file":return Ya(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function T2(e,t){KC(),a5(e);var r=Gt(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=T2(e,r);return r.type="array",hu(n)}var i=0;if(r.sheet&&(typeof r.sheet=="number"?i=r.sheet:i=e.SheetNames.indexOf(r.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Cr(b5(e,r),r);case"slk":case"sylk":return Cr(n8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return Cr(w2(e.Sheets[e.SheetNames[i]],r),r);case"txt":return ER(C2(e.Sheets[e.SheetNames[i]],r),r);case"csv":return Cr(Fd(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return Cr(i8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return Ds(r8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return Cr(o8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return Cr(d8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return Cr(Xx.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return Cr(S2(e,r),r);case"wk1":return Ds(Ag.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return Ds(Ag.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Ds(x2(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),yR(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return xR(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function SR(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function _R(e,t,r){var n=r||{};return n.type="file",n.file=t,SR(n),T2(e,n)}function TR(e,t,r,n,i,o,a,s){var l=wt(r),u=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,h=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch{h.__rowNum__=r}else h.__rowNum__=r;if(!a||e[r])for(var d=t.s.c;d<=t.e.c;++d){var m=a?e[r][d]:e[n[d]+l];if(m===void 0||m.t===void 0){if(u===void 0)continue;o[d]!=null&&(h[o[d]]=u);continue}var p=m.v;switch(m.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(o[d]!=null){if(p==null)if(m.t=="e"&&p===null)h[o[d]]=null;else if(u!==void 0)h[o[d]]=u;else if(c&&p===null)h[o[d]]=null;else continue;else h[o[d]]=c&&(m.t!=="n"||m.t==="n"&&s.rawNumbers!==!1)?p:en(m,p,s);p!=null&&(f=!1)}}return{row:h,isempty:f}}function Hl(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,i=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=u.range!=null?u.range:e["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof c){case"string":l=Ge(c);break;case"number":l=Ge(e["!ref"]),l.s.r=c;break;default:l=c}n>0&&(i=0);var f=wt(l.s.r),h=[],d=[],m=0,p=0,g=Array.isArray(e),v=l.s.r,w=0,y={};g&&!e[v]&&(e[v]=[]);var S=u.skipHidden&&e["!cols"]||[],N=u.skipHidden&&e["!rows"]||[];for(w=l.s.c;w<=l.e.c;++w)if(!(S[w]||{}).hidden)switch(h[w]=Rt(w),r=g?e[v][w]:e[h[w]+f],n){case 1:o[w]=w-l.s.c;break;case 2:o[w]=h[w];break;case 3:o[w]=u.header[w-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=a=en(r,null,u),p=y[a]||0,!p)y[a]=1;else{do s=a+"_"+p++;while(y[s]);y[a]=p,y[s]=1}o[w]=s}for(v=l.s.r+i;v<=l.e.r;++v)if(!(N[v]||{}).hidden){var M=TR(e,l,v,h,n,o,g,u);(M.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(d[m++]=M.row)}return d.length=m,d}var bg=/"/g;function CR(e,t,r,n,i,o,a,s){for(var l=!0,u=[],c="",f=wt(r),h=t.s.c;h<=t.e.c;++h)if(n[h]){var d=s.dense?(e[r]||[])[h]:e[n[h]+f];if(d==null)c="";else if(d.v!=null){l=!1,c=""+(s.rawNumbers&&d.t=="n"?d.v:en(d,null,s));for(var m=0,p=0;m!==c.length;++m)if((p=c.charCodeAt(m))===i||p===o||p===34||s.forceQuotes){c='"'+c.replace(bg,'""')+'"';break}c=="ID"&&(c='"ID"')}else d.f!=null&&!d.F?(l=!1,c="="+d.f,c.indexOf(",")>=0&&(c='"'+c.replace(bg,'""')+'"')):c="";u.push(c)}return s.blankrows===!1&&l?null:u.join(a)}function Fd(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Ge(e["!ref"]),o=n.FS!==void 0?n.FS:",",a=o.charCodeAt(0),s=n.RS!==void 0?n.RS:`
+`),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function S2(e,t){if(t.bookType=="fods")return kg(e,t);var r=dd(),n="",i=[],o=[];return n="mimetype",Fe(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Fe(r,n,kg(e,t)),i.push([n,"text/xml"]),o.push([n,"ContentFile"]),n="styles.xml",Fe(r,n,aR(e,t)),i.push([n,"text/xml"]),o.push([n,"StylesFile"]),n="meta.xml",Fe(r,n,it+$x()),i.push([n,"text/xml"]),o.push([n,"MetadataFile"]),n="manifest.rdf",Fe(r,n,x3(o)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Fe(r,n,m3(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Ul(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function sR(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):wr(zr(e))}function lR(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Nn(e){var t=e.reduce(function(i,o){return i+o.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function uR(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var o=0;i>=1;++o,i/=256)e[t+o]=i&255;e[t+15]|=r>=0?0:128}function $a(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function Ne(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Zi(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function ot(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=$a(e,r),o=i&7;i=Math.floor(i/8);var a=0,s;if(i==0)break;switch(o){case 0:{for(var l=r[0];e[r[0]++]>=128;);s=e.slice(l,r[0])}break;case 5:a=4,s=e.slice(r[0],r[0]+a),r[0]+=a;break;case 1:a=8,s=e.slice(r[0],r[0]+a),r[0]+=a;break;case 2:a=$a(e,r),s=e.slice(r[0],r[0]+a),r[0]+=a;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(n))}var u={data:s,type:o};t[i]==null?t[i]=[u]:t[i].push(u)}return t}function dt(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(Ne(n*8+i.type)),i.type==2&&t.push(Ne(i.data.length)),t.push(i.data))})}),Nn(t)}function gr(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=$a(e,n),o=ot(e.slice(n[0],n[0]+i));n[0]+=i;var a={id:Zi(o[1][0].data),messages:[]};o[2].forEach(function(s){var l=ot(s.data),u=Zi(l[3][0].data);a.messages.push({meta:l,data:e.slice(n[0],n[0]+u)}),n[0]+=u}),(t=o[3])!=null&&t[0]&&(a.merge=Zi(o[3][0].data)>>>0>0),r.push(a)}return r}function Ai(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:Ne(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Ne(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(a){i.push(a.data),a.meta[3]=[{type:0,data:Ne(a.data.length)}],n[2].push({data:dt(a.meta),type:2})});var o=dt(n);t.push(Ne(o.length)),t.push(o),i.forEach(function(a){return t.push(a)})}),Nn(t)}function cR(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=$a(t,r),i=[];r[0]<t.length;){var o=t[r[0]]&3;if(o==0){var a=t[r[0]++]>>2;if(a<60)++a;else{var s=a-59;a=t[r[0]],s>1&&(a|=t[r[0]+1]<<8),s>2&&(a|=t[r[0]+2]<<16),s>3&&(a|=t[r[0]+3]<<24),a>>>=0,a++,r[0]+=s}i.push(t.slice(r[0],r[0]+a)),r[0]+=a;continue}else{var l=0,u=0;if(o==1?(u=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(u=(t[r[0]++]>>2)+1,o==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[Nn(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(u>=l)for(i.push(i[0].slice(-l)),u-=l;u>=i[i.length-1].length;)i.push(i[i.length-1]),u-=i[i.length-1].length;i.push(i[0].slice(-l,-l+u))}}var c=Nn(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function mr(e){for(var t=[],r=0;r<e.length;){var n=e[r++],i=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(cR(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Nn(t)}function Ri(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),i=new Uint8Array(4);t.push(i);var o=Ne(n),a=o.length;t.push(o),n<=60?(a++,t.push(new Uint8Array([n-1<<2]))):n<=256?(a+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(a+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(a+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(a+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),a+=n,i[0]=0,i[1]=a&255,i[2]=a>>8&255,i[3]=a>>16&255,r+=n}return Nn(t)}function Tc(e,t){var r=new Uint8Array(32),n=Ul(r),i=12,o=0;switch(r[0]=5,e.t){case"n":r[1]=2,uR(r,i,e.v),o|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),o|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),o|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,o,!0),r.slice(0,i)}function Cc(e,t){var r=new Uint8Array(32),n=Ul(r),i=12,o=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),o|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),o|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),o|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,o,!0),r.slice(0,i)}function an(e){var t=ot(e);return $a(t[1][0].data)}function fR(e,t,r){var n,i,o,a;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var s=((a=(o=e[8])==null?void 0:o[0])==null?void 0:a.data)&&Zi(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,u=Ul(e[7][0].data),c=0,f=[],h=Ul(e[4][0].data),d=0,m=[],p=0;p<t.length;++p){if(t[p]==null){u.setUint16(p*2,65535,!0),h.setUint16(p*2,65535);continue}u.setUint16(p*2,c,!0),h.setUint16(p*2,d,!0);var g,v;switch(typeof t[p]){case"string":g=Tc({t:"s",v:t[p]},r),v=Cc({t:"s",v:t[p]},r);break;case"number":g=Tc({t:"n",v:t[p]},r),v=Cc({t:"n",v:t[p]},r);break;case"boolean":g=Tc({t:"b",v:t[p]},r),v=Cc({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(g),c+=g.length,m.push(v),d+=v.length,++l}for(e[2][0].data=Ne(l);p<e[7][0].data.length/2;++p)u.setUint16(p*2,65535,!0),h.setUint16(p*2,65535,!0);return e[6][0].data=Nn(f),e[3][0].data=Nn(m),l}function dR(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Zt(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(nt(n)));var o=Hl(r,{range:n,header:1}),a=["~Sh33tJ5~"];o.forEach(function(N){return N.forEach(function(k){typeof k=="string"&&a.push(k)})});var s={},l=[],u=Ue.read(t.numbers,{type:"base64"});u.FileIndex.map(function(N,k){return[N,u.FullPaths[k]]}).forEach(function(N){var k=N[0],F=N[1];if(k.type==2&&k.name.match(/\.iwa/)){var H=k.content,z=mr(H),J=gr(z);J.forEach(function(Z){l.push(Z.id),s[Z.id]={deps:[],location:F,type:Zi(Z.messages[0].meta[1][0].data)}})}}),l.sort(function(N,k){return N-k});var c=l.filter(function(N){return N>1}).map(function(N){return[N,Ne(N)]});u.FileIndex.map(function(N,k){return[N,u.FullPaths[k]]}).forEach(function(N){var k=N[0];if(N[1],!!k.name.match(/\.iwa/)){var F=gr(mr(k.content));F.forEach(function(H){H.messages.forEach(function(z){c.forEach(function(J){H.messages.some(function(Z){return Zi(Z.meta[1][0].data)!=11006&&lR(Z.data,J[1])})&&s[J[0]].deps.push(H.id)})})})}});for(var f=Ue.find(u,s[1].location),h=gr(mr(f.content)),d,m=0;m<h.length;++m){var p=h[m];p.id==1&&(d=p)}var g=an(ot(d.messages[0].data)[1][0].data);for(f=Ue.find(u,s[g].location),h=gr(mr(f.content)),m=0;m<h.length;++m)p=h[m],p.id==g&&(d=p);for(g=an(ot(d.messages[0].data)[2][0].data),f=Ue.find(u,s[g].location),h=gr(mr(f.content)),m=0;m<h.length;++m)p=h[m],p.id==g&&(d=p);for(g=an(ot(d.messages[0].data)[2][0].data),f=Ue.find(u,s[g].location),h=gr(mr(f.content)),m=0;m<h.length;++m)p=h[m],p.id==g&&(d=p);var v=ot(d.messages[0].data);{v[6][0].data=Ne(n.e.r+1),v[7][0].data=Ne(n.e.c+1);var w=an(v[46][0].data),y=Ue.find(u,s[w].location),S=gr(mr(y.content));{for(var b=0;b<S.length&&S[b].id!=w;++b);if(S[b].id!=w)throw"Bad ColumnRowUIDMapArchive";var M=ot(S[b].messages[0].data);M[1]=[],M[2]=[],M[3]=[];for(var _=0;_<=n.e.c;++_){var A=[];A[1]=A[2]=[{type:0,data:Ne(_+420690)}],M[1].push({type:2,data:dt(A)}),M[2].push({type:0,data:Ne(_)}),M[3].push({type:0,data:Ne(_)})}M[4]=[],M[5]=[],M[6]=[];for(var R=0;R<=n.e.r;++R)A=[],A[1]=A[2]=[{type:0,data:Ne(R+726270)}],M[4].push({type:2,data:dt(A)}),M[5].push({type:0,data:Ne(R)}),M[6].push({type:0,data:Ne(R)});S[b].messages[0].data=dt(M)}y.content=Ri(Ai(S)),y.size=y.content.length,delete v[46];var L=ot(v[4][0].data);{L[7][0].data=Ne(n.e.r+1);var U=ot(L[1][0].data),B=an(U[2][0].data);y=Ue.find(u,s[B].location),S=gr(mr(y.content));{if(S[0].id!=B)throw"Bad HeaderStorageBucket";var V=ot(S[0].messages[0].data);for(R=0;R<o.length;++R){var Y=ot(V[2][0].data);Y[1][0].data=Ne(R),Y[4][0].data=Ne(o[R].length),V[2][R]={type:V[2][0].type,data:dt(Y)}}S[0].messages[0].data=dt(V)}y.content=Ri(Ai(S)),y.size=y.content.length;var ne=an(L[2][0].data);y=Ue.find(u,s[ne].location),S=gr(mr(y.content));{if(S[0].id!=ne)throw"Bad HeaderStorageBucket";for(V=ot(S[0].messages[0].data),_=0;_<=n.e.c;++_)Y=ot(V[2][0].data),Y[1][0].data=Ne(_),Y[4][0].data=Ne(n.e.r+1),V[2][_]={type:V[2][0].type,data:dt(Y)};S[0].messages[0].data=dt(V)}y.content=Ri(Ai(S)),y.size=y.content.length;var me=an(L[4][0].data);(function(){for(var N=Ue.find(u,s[me].location),k=gr(mr(N.content)),F,H=0;H<k.length;++H){var z=k[H];z.id==me&&(F=z)}var J=ot(F.messages[0].data);{J[3]=[];var Z=[];a.forEach(function(pe,Pe){Z[1]=[{type:0,data:Ne(Pe)}],Z[2]=[{type:0,data:Ne(1)}],Z[3]=[{type:2,data:sR(pe)}],J[3].push({type:2,data:dt(Z)})})}F.messages[0].data=dt(J);var te=Ai(k),ye=Ri(te);N.content=ye,N.size=N.content.length})();var xe=ot(L[3][0].data);{var _e=xe[1][0];delete xe[2];var ie=ot(_e.data);{var ae=an(ie[2][0].data);(function(){for(var N=Ue.find(u,s[ae].location),k=gr(mr(N.content)),F,H=0;H<k.length;++H){var z=k[H];z.id==ae&&(F=z)}var J=ot(F.messages[0].data);{delete J[6],delete xe[7];var Z=new Uint8Array(J[5][0].data);J[5]=[];for(var te=0,ye=0;ye<=n.e.r;++ye){var pe=ot(Z);te+=fR(pe,o[ye],a),pe[1][0].data=Ne(ye),J[5].push({data:dt(pe),type:2})}J[1]=[{type:0,data:Ne(n.e.c+1)}],J[2]=[{type:0,data:Ne(n.e.r+1)}],J[3]=[{type:0,data:Ne(te)}],J[4]=[{type:0,data:Ne(n.e.r+1)}]}F.messages[0].data=dt(J);var Pe=Ai(k),Ee=Ri(Pe);N.content=Ee,N.size=N.content.length})()}_e.data=dt(ie)}L[3][0].data=dt(xe)}v[4][0].data=dt(L)}d.messages[0].data=dt(v);var K=Ai(h),C=Ri(K);return f.content=C,f.size=f.content.length,u}function hR(e){return function(r){for(var n=0;n!=e.length;++n){var i=e[n];r[i[0]]===void 0&&(r[i[0]]=i[1]),i[2]==="n"&&(r[i[0]]=Number(r[i[0]]))}}}function Od(e){hR([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function pR(e,t){return t.bookType=="ods"?S2(e,t):t.bookType=="numbers"?dR(e,t):t.bookType=="xlsb"?gR(e,t):mR(e,t)}function gR(e,t){Li=1024,e&&!e.SSF&&(e.SSF=Gt(Je)),e&&e.SSF&&(gu(),pu(e.SSF),t.revssf=mu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,pa?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=i2.indexOf(t.bookType)>-1,i=kx();Od(t=t||{});var o=dd(),a="",s=0;if(t.cellXfs=[],Ln(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",Fe(o,a,Mx(e.Props,t)),i.coreprops.push(a),$e(t.rels,2,a,ke.CORE_PROPS),a="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,Fe(o,a,Bx(e.Props)),i.extprops.push(a),$e(t.rels,3,a,ke.EXT_PROPS),e.Custprops!==e.Props&&Et(e.Custprops||{}).length>0&&(a="docProps/custom.xml",Fe(o,a,Ux(e.Custprops)),i.custprops.push(a),$e(t.rels,4,a,ke.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var c={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],h=(f||{})["!type"]||"sheet";switch(h){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Fe(o,a,x5(s-1,a,t,e,c)),i.sheets.push(a),$e(t.wbrels,-1,"worksheets/sheet"+s+"."+r,ke.WS[0])}if(f){var d=f["!comments"],m=!1,p="";d&&d.length>0&&(p="xl/comments"+s+"."+r,Fe(o,p,E5(d,p)),i.comments.push(p),$e(c,-1,"../comments"+s+"."+r,ke.CMNT),m=!0),f["!legacy"]&&m&&Fe(o,"xl/drawings/vmlDrawing"+s+".vml",r2(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}c["!id"].rId1&&Fe(o,Nx(a),qi(c))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,Fe(o,a,y5(t.Strings,a,t)),i.strs.push(a),$e(t.wbrels,-1,"sharedStrings."+r,ke.SST)),a="xl/workbook."+r,Fe(o,a,v5(e,a)),i.workbooks.push(a),$e(t.rels,1,a,ke.WB),a="xl/theme/theme1.xml",Fe(o,a,e2(e.Themes,t)),i.themes.push(a),$e(t.wbrels,-1,"theme/theme1.xml",ke.THEME),a="xl/styles."+r,Fe(o,a,w5(e,a,t)),i.styles.push(a),$e(t.wbrels,-1,"styles."+r,ke.STY),e.vbaraw&&n&&(a="xl/vbaProject.bin",Fe(o,a,e.vbaraw),i.vba.push(a),$e(t.wbrels,-1,"vbaProject.bin",ke.VBA)),a="xl/metadata."+r,Fe(o,a,S5(a)),i.metadata.push(a),$e(t.wbrels,-1,"metadata."+r,ke.XLMETA),Fe(o,"[Content_Types].xml",bx(i,t)),Fe(o,"_rels/.rels",qi(t.rels)),Fe(o,"xl/_rels/workbook."+r+".rels",qi(t.wbrels)),delete t.revssf,delete t.ssf,o}function mR(e,t){Li=1024,e&&!e.SSF&&(e.SSF=Gt(Je)),e&&e.SSF&&(gu(),pu(e.SSF),t.revssf=mu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,pa?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=i2.indexOf(t.bookType)>-1,i=kx();Od(t=t||{});var o=dd(),a="",s=0;if(t.cellXfs=[],Ln(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",Fe(o,a,Mx(e.Props,t)),i.coreprops.push(a),$e(t.rels,2,a,ke.CORE_PROPS),a="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,Fe(o,a,Bx(e.Props)),i.extprops.push(a),$e(t.rels,3,a,ke.EXT_PROPS),e.Custprops!==e.Props&&Et(e.Custprops||{}).length>0&&(a="docProps/custom.xml",Fe(o,a,Ux(e.Custprops)),i.custprops.push(a),$e(t.rels,4,a,ke.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},h=e.Sheets[e.SheetNames[s-1]],d=(h||{})["!type"]||"sheet";switch(d){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Fe(o,a,h2(s-1,t,e,f)),i.sheets.push(a),$e(t.wbrels,-1,"worksheets/sheet"+s+"."+r,ke.WS[0])}if(h){var m=h["!comments"],p=!1,g="";if(m&&m.length>0){var v=!1;m.forEach(function(w){w[1].forEach(function(y){y.T==!0&&(v=!0)})}),v&&(g="xl/threadedComments/threadedComment"+s+"."+r,Fe(o,g,X8(m,c,t)),i.threadedcomments.push(g),$e(f,-1,"../threadedComments/threadedComment"+s+"."+r,ke.TCMNT)),g="xl/comments"+s+"."+r,Fe(o,g,n2(m)),i.comments.push(g),$e(f,-1,"../comments"+s+"."+r,ke.CMNT),p=!0}h["!legacy"]&&p&&Fe(o,"xl/drawings/vmlDrawing"+s+".vml",r2(s,h["!comments"])),delete h["!comments"],delete h["!legacy"]}f["!id"].rId1&&Fe(o,Nx(a),qi(f))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,Fe(o,a,Kx(t.Strings,t)),i.strs.push(a),$e(t.wbrels,-1,"sharedStrings."+r,ke.SST)),a="xl/workbook."+r,Fe(o,a,m2(e)),i.workbooks.push(a),$e(t.rels,1,a,ke.WB),a="xl/theme/theme1.xml",Fe(o,a,e2(e.Themes,t)),i.themes.push(a),$e(t.wbrels,-1,"theme/theme1.xml",ke.THEME),a="xl/styles."+r,Fe(o,a,Zx(e,t)),i.styles.push(a),$e(t.wbrels,-1,"styles."+r,ke.STY),e.vbaraw&&n&&(a="xl/vbaProject.bin",Fe(o,a,e.vbaraw),i.vba.push(a),$e(t.wbrels,-1,"vbaProject.bin",ke.VBA)),a="xl/metadata."+r,Fe(o,a,t2()),i.metadata.push(a),$e(t.wbrels,-1,"metadata."+r,ke.XLMETA),c.length>1&&(a="xl/persons/person.xml",Fe(o,a,K8(c)),i.people.push(a),$e(t.wbrels,-1,"persons/person.xml",ke.PEOPLE)),Fe(o,"[Content_Types].xml",bx(i,t)),Fe(o,"_rels/.rels",qi(t.rels)),Fe(o,"xl/_rels/workbook."+r+".rels",qi(t.wbrels)),delete t.revssf,delete t.ssf,o}function vR(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=Jr(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function _2(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Ya(t.file,Ue.write(e,{type:be?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Ue.write(e,t)}function xR(e,t){var r=Gt(t||{}),n=pR(e,r);return wR(n,r)}function wR(e,t){var r={},n=be?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?Ue.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(hu(i))}return t.password&&typeof encrypt_agile<"u"?_2(encrypt_agile(i,t.password),t):t.type==="file"?Ya(t.file,i):t.type=="string"?ca(i):i}function yR(e,t){var r=t||{},n=$5(e,r);return _2(n,r)}function Cr(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return ka(zr(n));case"binary":return zr(n);case"string":return e;case"file":return Ya(t.file,n,"utf8");case"buffer":return be?on(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Cr(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function ER(e,t){switch(t.type){case"base64":return ka(e);case"binary":return e;case"string":return e;case"file":return Ya(t.file,e,"binary");case"buffer":return be?on(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Ds(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?ka(r):t.type=="string"?ca(r):r;case"file":return Ya(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function T2(e,t){KC(),a5(e);var r=Gt(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=T2(e,r);return r.type="array",hu(n)}var i=0;if(r.sheet&&(typeof r.sheet=="number"?i=r.sheet:i=e.SheetNames.indexOf(r.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return Cr(b5(e,r),r);case"slk":case"sylk":return Cr(n8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return Cr(w2(e.Sheets[e.SheetNames[i]],r),r);case"txt":return ER(C2(e.Sheets[e.SheetNames[i]],r),r);case"csv":return Cr(Fd(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return Cr(i8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return Ds(r8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return Cr(o8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return Cr(d8.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return Cr(Xx.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return Cr(S2(e,r),r);case"wk1":return Ds(Ag.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return Ds(Ag.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Ds(x2(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),yR(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return xR(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function SR(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function _R(e,t,r){var n=r||{};return n.type="file",n.file=t,SR(n),T2(e,n)}function TR(e,t,r,n,i,o,a,s){var l=wt(r),u=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,h=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(h,"__rowNum__",{value:r,enumerable:!1})}catch{h.__rowNum__=r}else h.__rowNum__=r;if(!a||e[r])for(var d=t.s.c;d<=t.e.c;++d){var m=a?e[r][d]:e[n[d]+l];if(m===void 0||m.t===void 0){if(u===void 0)continue;o[d]!=null&&(h[o[d]]=u);continue}var p=m.v;switch(m.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(o[d]!=null){if(p==null)if(m.t=="e"&&p===null)h[o[d]]=null;else if(u!==void 0)h[o[d]]=u;else if(c&&p===null)h[o[d]]=null;else continue;else h[o[d]]=c&&(m.t!=="n"||m.t==="n"&&s.rawNumbers!==!1)?p:en(m,p,s);p!=null&&(f=!1)}}return{row:h,isempty:f}}function Hl(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,i=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=u.range!=null?u.range:e["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof c){case"string":l=Ge(c);break;case"number":l=Ge(e["!ref"]),l.s.r=c;break;default:l=c}n>0&&(i=0);var f=wt(l.s.r),h=[],d=[],m=0,p=0,g=Array.isArray(e),v=l.s.r,w=0,y={};g&&!e[v]&&(e[v]=[]);var S=u.skipHidden&&e["!cols"]||[],b=u.skipHidden&&e["!rows"]||[];for(w=l.s.c;w<=l.e.c;++w)if(!(S[w]||{}).hidden)switch(h[w]=Rt(w),r=g?e[v][w]:e[h[w]+f],n){case 1:o[w]=w-l.s.c;break;case 2:o[w]=h[w];break;case 3:o[w]=u.header[w-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=a=en(r,null,u),p=y[a]||0,!p)y[a]=1;else{do s=a+"_"+p++;while(y[s]);y[a]=p,y[s]=1}o[w]=s}for(v=l.s.r+i;v<=l.e.r;++v)if(!(b[v]||{}).hidden){var M=TR(e,l,v,h,n,o,g,u);(M.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(d[m++]=M.row)}return d.length=m,d}var bg=/"/g;function CR(e,t,r,n,i,o,a,s){for(var l=!0,u=[],c="",f=wt(r),h=t.s.c;h<=t.e.c;++h)if(n[h]){var d=s.dense?(e[r]||[])[h]:e[n[h]+f];if(d==null)c="";else if(d.v!=null){l=!1,c=""+(s.rawNumbers&&d.t=="n"?d.v:en(d,null,s));for(var m=0,p=0;m!==c.length;++m)if((p=c.charCodeAt(m))===i||p===o||p===34||s.forceQuotes){c='"'+c.replace(bg,'""')+'"';break}c=="ID"&&(c='"ID"')}else d.f!=null&&!d.F?(l=!1,c="="+d.f,c.indexOf(",")>=0&&(c='"'+c.replace(bg,'""')+'"')):c="";u.push(c)}return s.blankrows===!1&&l?null:u.join(a)}function Fd(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Ge(e["!ref"]),o=n.FS!==void 0?n.FS:",",a=o.charCodeAt(0),s=n.RS!==void 0?n.RS:`
 `,l=s.charCodeAt(0),u=new RegExp((o=="|"?"\\|":o)+"+$"),c="",f=[];n.dense=Array.isArray(e);for(var h=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],m=i.s.c;m<=i.e.c;++m)(h[m]||{}).hidden||(f[m]=Rt(m));for(var p=0,g=i.s.r;g<=i.e.r;++g)(d[g]||{}).hidden||(c=CR(e,i,g,f,a,l,o,n),c!=null&&(n.strip&&(c=c.replace(u,"")),(c||n.blankrows!==!1)&&r.push((p++?s:"")+c)));return delete n.dense,r.join("")}function C2(e,t){t||(t={}),t.FS="	",t.RS=`
-`;var r=Fd(e,t);return r}function AR(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Ge(e["!ref"]),o="",a=[],s,l=[],u=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)a[s]=Rt(s);for(var c=i.s.r;c<=i.e.r;++c)for(o=wt(c),s=i.s.c;s<=i.e.c;++s)if(t=a[s]+o,r=u?(e[c]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function A2(e,t,r){var n=r||{},i=+!n.skipHeader,o=e||{},a=0,s=0;if(o&&n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var l=typeof n.origin=="string"?ut(n.origin):n.origin;a=l.r,s=l.c}var u,c={s:{c:0,r:0},e:{c:s,r:a+t.length-1+i}};if(o["!ref"]){var f=Ge(o["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),a==-1&&(a=f.e.r+1,c.e.r=a+t.length-1+i)}else a==-1&&(a=0,c.e.r=t.length-1+i);var h=n.header||[],d=0;t.forEach(function(p,g){Et(p).forEach(function(v){(d=h.indexOf(v))==-1&&(h[d=h.length]=v);var w=p[v],y="z",S="",N=Le({c:s+d,r:a+g+i});u=Ma(o,N),w&&typeof w=="object"&&!(w instanceof Date)?o[N]=w:(typeof w=="number"?y="n":typeof w=="boolean"?y="b":typeof w=="string"?y="s":w instanceof Date?(y="d",n.cellDates||(y="n",w=zt(w)),S=n.dateNF||Je[14]):w===null&&n.nullError&&(y="e",w=0),u?(u.t=y,u.v=w,delete u.w,delete u.R,S&&(u.z=S)):o[N]=u={t:y,v:w},S&&(u.z=S))})}),c.e.c=Math.max(c.e.c,s+h.length-1);var m=wt(a);if(i)for(d=0;d<h.length;++d)o[Rt(d+s)+m]={t:"s",v:h[d]};return o["!ref"]=nt(c),o}function RR(e,t){return A2(null,e,t)}function Ma(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=ut(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Ma(e,Le(t)):Ma(e,Le({r:t,c:r||0}))}function OR(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function FR(){return{SheetNames:[],Sheets:{}}}function PR(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var o=r.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var a=o&&o[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=a+i)!=-1;++i);}if(g2(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function DR(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=OR(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function IR(e,t){return e.z=t,e}function R2(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function kR(e,t,r){return R2(e,"#"+t,r)}function bR(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function NR(e,t,r,n){for(var i=typeof t!="string"?t:Ge(t),o=typeof t=="string"?t:nt(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=Ma(e,a,s);l.t="n",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=r,n&&(l.D=!0))}return e}var Ac={encode_col:Rt,encode_row:wt,encode_cell:Le,encode_range:nt,decode_col:xd,decode_row:vd,split_cell:Y4,decode_cell:ut,decode_range:Zt,format_cell:en,sheet_add_aoa:Rx,sheet_add_json:A2,sheet_add_dom:y2,aoa_to_sheet:yo,json_to_sheet:RR,table_to_sheet:E2,table_to_book:iR,sheet_to_csv:Fd,sheet_to_txt:C2,sheet_to_json:Hl,sheet_to_html:w2,sheet_to_formulae:AR,sheet_to_row_object_array:Hl,sheet_get_cell:Ma,book_new:FR,book_append_sheet:PR,book_set_sheet_visibility:DR,cell_set_number_format:IR,cell_set_hyperlink:R2,cell_set_internal_link:kR,cell_add_comment:bR,sheet_set_array_formula:NR,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function $R(e){if(e<10)return e.toFixed(4);if(e<100)return e.toFixed(3);if(e<1e3)return e.toFixed(2);const t=Math.abs(e);return t>=1e12?`${(e/1e9).toFixed(2)}T`:t>=1e9?`${(e/1e9).toFixed(2)}B`:t>=1e6?`${(e/1e6).toFixed(2)}M`:t>=1e3?`${(e/1e3).toFixed(2)}K`:e.toFixed(2)}function MR(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}const LR=(e,t,r,n)=>{const i=LC(e.getValue(t),r);return n(i),i},O2=(e,t)=>{const r=URL.createObjectURL(e),n=document.createElement("a");n.setAttribute("href",r),n.setAttribute("download",t),n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)},Ng=(e,t,r)=>{const n=t,i=r.map(a=>n.map(s=>a[s])),o=[n,...i];if(e==="csv"){const a=o.map(l=>l.join(",")).join(`
-`),s=new Blob([a],{type:"text/csv;charset=utf-8;"});O2(s,`${window.title}.csv`)}else{const a=Ac.book_new(),s=Ac.aoa_to_sheet(o);Ac.book_append_sheet(a,s,"Sheet1"),_R(a,`${window.title}.xlsx`)}},BR=e=>{const t=document.getElementById(e);GC.toBlob(t).then(function(r){O2(r,`${window.title}.png`)})},F2=x.createContext({dragDropManager:void 0});function tr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $g=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Rc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mg={INIT:"@@redux/INIT"+Rc(),REPLACE:"@@redux/REPLACE"+Rc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Rc()}};function UR(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function P2(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(tr(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(tr(1));return r(P2)(e,t)}if(typeof e!="function")throw new Error(tr(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(tr(3));return o}function f(p){if(typeof p!="function")throw new Error(tr(4));if(l)throw new Error(tr(5));var g=!0;return u(),s.push(p),function(){if(g){if(l)throw new Error(tr(6));g=!1,u();var w=s.indexOf(p);s.splice(w,1),a=null}}}function h(p){if(!UR(p))throw new Error(tr(7));if(typeof p.type>"u")throw new Error(tr(8));if(l)throw new Error(tr(9));try{l=!0,o=i(o,p)}finally{l=!1}for(var g=a=s,v=0;v<g.length;v++){var w=g[v];w()}return p}function d(p){if(typeof p!="function")throw new Error(tr(10));i=p,h({type:Mg.REPLACE})}function m(){var p,g=f;return p={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(tr(11));function y(){w.next&&w.next(c())}y();var S=g(y);return{unsubscribe:S}}},p[$g]=function(){return this},p}return h({type:Mg.INIT}),n={dispatch:h,subscribe:f,getState:c,replaceReducer:d},n[$g]=m,n}function Oe(e,t,...r){if(HR()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function HR(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function VR(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function WR(e,t){return e.filter(r=>r!==t)}function D2(e){return typeof e=="object"}function zR(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function GR(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Pd="dnd-core/INIT_COORDS",Eu="dnd-core/BEGIN_DRAG",Dd="dnd-core/PUBLISH_DRAG_SOURCE",Su="dnd-core/HOVER",_u="dnd-core/DROP",Tu="dnd-core/END_DRAG";function Lg(e,t){return{type:Pd,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const jR={type:Pd,payload:{clientOffset:null,sourceClientOffset:null}};function XR(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Lg(o)),KR(r,s,l);const u=QR(r,s);if(u==null){e.dispatch(jR);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");YR(a),c=a(u)}e.dispatch(Lg(o,c));const h=l.getSource(u).beginDrag(s,u);if(h==null)return;qR(h),l.pinSource(u);const d=l.getSourceType(u);return{type:Eu,payload:{itemType:d,item:h,sourceId:u,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function KR(e,t,r){Oe(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){Oe(r.getSource(n),"Expected sourceIds to be registered.")})}function YR(e){Oe(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function qR(e){Oe(D2(e),"Item must be an object.")}function QR(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ZR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){ZR(e,i,r[i])})}return e}function eO(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();tO(n),iO(n).forEach((a,s)=>{const l=rO(a,s,i,n),u={type:_u,payload:{dropResult:JR({},r,l)}};e.dispatch(u)})}}function tO(e){Oe(e.isDragging(),"Cannot call drop while not dragging."),Oe(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function rO(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return nO(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function nO(e){Oe(typeof e>"u"||D2(e),"Drop result must either be an object or undefined.")}function iO(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function oO(e){return function(){const r=e.getMonitor(),n=e.getRegistry();aO(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Tu}}}function aO(e){Oe(e.isDragging(),"Cannot call endDrag while not dragging.")}function Vf(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function sO(e){return function(r,{clientOffset:n}={}){lO(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return cO(i,a,s),uO(i,o,a),fO(i,o,a),{type:Su,payload:{targetIds:i,clientOffset:n||null}}}}function lO(e){Oe(Array.isArray(e),"Expected targetIds to be an array.")}function uO(e,t,r){Oe(t.isDragging(),"Cannot call hover while not dragging."),Oe(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];Oe(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);Oe(o,"Expected targetIds to be registered.")}}function cO(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);Vf(o,r)||e.splice(n,1)}}function fO(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function dO(e){return function(){if(e.getMonitor().isDragging())return{type:Dd}}}function hO(e){return{beginDrag:XR(e),publishDragSource:dO(e),hover:sO(e),drop:eO(e),endDrag:oO(e)}}class pO{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&r(s)}}const i=hO(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=n(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function gO(e,t){return{x:e.x+t.x,y:e.y+t.y}}function I2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mO(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:I2(gO(t,n),r)}function vO(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:I2(t,r)}const ga=[],Id=[];ga.__IS_NONE__=!0;Id.__IS_ALL__=!0;function xO(e,t){return e===ga?!1:e===Id||typeof t>"u"?!0:GR(t,e).length>0}class wO{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;Oe(typeof t=="function","listener must be a function."),Oe(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!xO(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Oe(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return Oe(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(Oe(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return Vf(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(Oe(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!Vf(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return n?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return mO(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return vO(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const Bg=typeof global<"u"?global:self,k2=Bg.MutationObserver||Bg.WebKitMutationObserver;function b2(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function yO(e){let t=1;const r=new k2(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const EO=typeof k2=="function"?yO:b2;class SO{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=EO(this.flush),this.requestErrorThrow=b2(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class _O{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class TO{create(t){const r=this.freeTasks,n=r.length?r.pop():new _O(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const N2=new SO,CO=new TO(N2.registerPendingError);function AO(e){N2.enqueueTask(CO.create(e))}const kd="dnd-core/ADD_SOURCE",bd="dnd-core/ADD_TARGET",Nd="dnd-core/REMOVE_SOURCE",Cu="dnd-core/REMOVE_TARGET";function RO(e){return{type:kd,payload:{sourceId:e}}}function OO(e){return{type:bd,payload:{targetId:e}}}function FO(e){return{type:Nd,payload:{sourceId:e}}}function PO(e){return{type:Cu,payload:{targetId:e}}}function DO(e){Oe(typeof e.canDrag=="function","Expected canDrag to be a function."),Oe(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Oe(typeof e.endDrag=="function","Expected endDrag to be a function.")}function IO(e){Oe(typeof e.canDrop=="function","Expected canDrop to be a function."),Oe(typeof e.hover=="function","Expected hover to be a function."),Oe(typeof e.drop=="function","Expected beginDrag to be a function.")}function Wf(e,t){if(t&&Array.isArray(e)){e.forEach(r=>Wf(r,!1));return}Oe(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var or;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(or||(or={}));let kO=0;function bO(){return kO++}function NO(e){const t=bO().toString();switch(e){case or.SOURCE:return`S${t}`;case or.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Ug(e){switch(e[0]){case"S":return or.SOURCE;case"T":return or.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Hg(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class $O{addSource(t,r){Wf(t),DO(r);const n=this.addHandler(or.SOURCE,t,r);return this.store.dispatch(RO(n)),n}addTarget(t,r){Wf(t,!0),IO(r);const n=this.addHandler(or.TARGET,t,r);return this.store.dispatch(OO(n)),n}containsHandler(t){return Hg(this.dragSources,t)||Hg(this.dropTargets,t)}getSource(t,r=!1){return Oe(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Oe(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Oe(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Oe(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Ug(t)===or.SOURCE}isTargetId(t){return Ug(t)===or.TARGET}removeSource(t){Oe(this.getSource(t),"Expected an existing source."),this.store.dispatch(FO(t)),AO(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Oe(this.getTarget(t),"Expected an existing target."),this.store.dispatch(PO(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);Oe(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){Oe(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=NO(t);return this.types.set(i,r),t===or.SOURCE?this.dragSources.set(i,n):t===or.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const MO=(e,t)=>e===t;function LO(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function BO(e,t,r=MO){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function UO(e=ga,t){switch(t.type){case Su:break;case kd:case bd:case Cu:case Nd:return ga;case Eu:case Dd:case Tu:case _u:default:return Id}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=zR(r,n);if(!(i.length>0||!BO(r,n)))return ga;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function HO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){HO(e,i,r[i])})}return e}const Vg={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function WO(e=Vg,t){const{payload:r}=t;switch(t.type){case Pd:case Eu:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Su:return LO(e.clientOffset,r.clientOffset)?e:VO({},e,{clientOffset:r.clientOffset});case Tu:case _u:return Vg;default:return e}}function zO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){zO(e,i,r[i])})}return e}const GO={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function jO(e=GO,t){const{payload:r}=t;switch(t.type){case Eu:return Oi({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Dd:return Oi({},e,{isSourcePublic:!0});case Su:return Oi({},e,{targetIds:r.targetIds});case Cu:return e.targetIds.indexOf(r.targetId)===-1?e:Oi({},e,{targetIds:WR(e.targetIds,r.targetId)});case _u:return Oi({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Tu:return Oi({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function XO(e=0,t){switch(t.type){case kd:case bd:return e+1;case Nd:case Cu:return e-1;default:return e}}function KO(e=0){return e+1}function YO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){YO(e,i,r[i])})}return e}function QO(e={},t){return{dirtyHandlerIds:UO(e.dirtyHandlerIds,{type:t.type,payload:qO({},t.payload,{prevTargetIds:VR(e,"dragOperation.targetIds",[])})}),dragOffset:WO(e.dragOffset,t),refCount:XO(e.refCount,t),dragOperation:jO(e.dragOperation,t),stateId:KO(e.stateId)}}function ZO(e,t=void 0,r={},n=!1){const i=JO(n),o=new wO(i,new $O(i)),a=new pO(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function JO(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return P2(QO,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function eF(e,t){if(e==null)return{};var r=tF(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tF(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let Wg=0;const Qs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var rF=x.memo(function(t){var{children:r}=t,n=eF(t,["children"]);const[i,o]=nF(n);return x.useEffect(()=>{if(o){const a=$2();return++Wg,()=>{--Wg===0&&(a[Qs]=null)}}},[]),Z(F2.Provider,{value:i,children:r})});function nF(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=iF(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function iF(e,t=$2(),r,n){const i=t;return i[Qs]||(i[Qs]={dragDropManager:ZO(e,t,r,n)}),i[Qs]}function $2(){return typeof global<"u"?global:window}var oF=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r};const oi=typeof window<"u"?x.useLayoutEffect:x.useEffect;function aF(e,t,r){const[n,i]=x.useState(()=>t(e)),o=x.useCallback(()=>{const a=t(e);oF(n,a)||(i(a),r&&r())},[n,e,r]);return oi(o),[n,o]}function sF(e,t,r){const[n,i]=aF(e,t,r);return oi(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function M2(e,t,r){return sF(t,e||(()=>({})),()=>r.reconnect())}function L2(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),x.useMemo(()=>typeof e=="function"?e():e,r)}function lF(e){return x.useMemo(()=>e.hooks.dragSource(),[e])}function uF(e){return x.useMemo(()=>e.hooks.dragPreview(),[e])}let Oc=!1,Fc=!1;class cF{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Oe(!Oc,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Oc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Oc=!1}}isDragging(){if(!this.sourceId)return!1;Oe(!Fc,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Fc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Fc=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Pc=!1;class fF{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;Oe(!Pc,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Pc=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Pc=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function dF(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function hF(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function zf(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<o.length;l++){const u=o[l];if(!s(u))return!1;const c=e[u],f=t[u];if(i=r?r.call(n,c,f,u):void 0,i===!1||i===void 0&&c!==f)return!1}return!0}function Gf(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pF(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function gF(e){return(t=null,r=null)=>{if(!x.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return pF(n),mF(n,r?o=>e(o,r):e)}}function B2(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=gF(n);t[r]=()=>i}}),t}function zg(e,t){typeof e=="function"?e(t):e.current=t}function mF(e,t){const r=e.ref;return Oe(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?x.cloneElement(e,{ref:n=>{zg(r,n),zg(t,n)}}):x.cloneElement(e,{ref:t})}class vF{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!zf(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!zf(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=B2({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,Gf(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,Gf(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class xF{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!zf(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=B2({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,Gf(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function _o(){const{dragDropManager:e}=x.useContext(F2);return Oe(e!=null,"Expected drag drop context"),e}function wF(e,t){const r=_o(),n=x.useMemo(()=>new vF(r.getBackend()),[r]);return oi(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),oi(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function yF(){const e=_o();return x.useMemo(()=>new cF(e),[e])}class EF{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function SF(e,t,r){const n=x.useMemo(()=>new EF(e,t,r),[t,r]);return x.useEffect(()=>{n.spec=e},[e]),n}function _F(e){return x.useMemo(()=>{const t=e.type;return Oe(t!=null,"spec.type must be defined"),t},[e])}function TF(e,t,r){const n=_o(),i=SF(e,t,r),o=_F(e);oi(function(){if(o!=null){const[s,l]=hF(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),l}},[n,t,r,i,o])}function CF(e,t){const r=L2(e,t);Oe(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=yF(),i=wF(r.options,r.previewOptions);return TF(r,n,i),[M2(r.collect,n,i),lF(i),uF(i)]}function AF(e){return x.useMemo(()=>e.hooks.dropTarget(),[e])}function RF(e){const t=_o(),r=x.useMemo(()=>new xF(t.getBackend()),[t]);return oi(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function OF(){const e=_o();return x.useMemo(()=>new fF(e),[e])}function FF(e){const{accept:t}=e;return x.useMemo(()=>(Oe(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class PF{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function DF(e,t){const r=x.useMemo(()=>new PF(e,t),[t]);return x.useEffect(()=>{r.spec=e},[e]),r}function IF(e,t,r){const n=_o(),i=DF(e,t),o=FF(e);oi(function(){const[s,l]=dF(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),l},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function kF(e,t){const r=L2(e,t),n=OF(),i=RF(r.options);return IF(r,n,i),[M2(r.collect,n,i),AF(i)]}function bF({column:e,table:t,numberOfColumns:r}){const n=t.getPreFilteredRowModel().flatRows.map(u=>u.getValue(e.id)),i=n.every(u=>typeof u=="string"||u===null),o=n.every(u=>typeof u=="number"||u===null),a=n.some(u=>typeof u=="string"&&u.includes(" ")),s=e.getFilterValue();if(e.id.toLowerCase().includes("date")||e.id.toLowerCase()==="index"&&!a){let u=function(c){if(!c)return null;const f=new Date(c),h=f.getFullYear(),d=f.getMonth()+1>9?f.getMonth()+1:`0${f.getMonth()+1}`,m=f.getDate()>9?f.getDate():`0${f.getDate()}`;return`${h}-${d}-${m}`};return Te("div",{className:"flex gap-2 h-10",children:[Z("input",{type:"datetime-local",value:u(s==null?void 0:s[0])??"",onChange:c=>{const f=new Date(c.target.value).getTime();e.setFilterValue(h=>[f,h==null?void 0:h[1]])},placeholder:"Start date",className:"_input"}),Z("input",{type:"datetime-local",value:u(s==null?void 0:s[1])??"",onChange:c=>{const f=new Date(c.target.value).getTime();e.setFilterValue(h=>[h==null?void 0:h[0],f])},placeholder:"End date",className:"_input"})]})}return o?Te("div",{className:"flex gap-0.5 h-10",children:[Z("input",{type:"number",value:(s==null?void 0:s[0])??"",onChange:u=>e.setFilterValue(c=>[u.target.value,c==null?void 0:c[1]]),placeholder:"Min",className:"_input p-0.5"}),Z("input",{type:"number",value:(s==null?void 0:s[1])??"",onChange:u=>e.setFilterValue(c=>[c==null?void 0:c[0],u.target.value]),placeholder:"Max",className:"_input p-0.5"})]}):i?Z("div",{className:"h-10",children:Z("input",{type:"text",value:s??"",onChange:u=>e.setFilterValue(u.target.value),placeholder:"Search...",className:"_input"})}):Z("div",{className:"h-10"})}const NF=(e,t,r)=>(r.splice(r.indexOf(t),0,r.splice(r.indexOf(e),1)[0]),[...r]),$F=({header:e,table:t,advanced:r})=>{const{getState:n,setColumnOrder:i}=t,{columnOrder:o}=n(),{column:a}=e,[,s]=kF({accept:"column",drop:f=>{const h=NF(f.id,a.id,o);i(h)}}),[{isDragging:l},u,c]=CF({collect:f=>({isDragging:f.isDragging()}),item:()=>a,type:"column"});return Te("th",{className:"h-[70px] relative p-4",colSpan:e.colSpan,style:{width:e.getSize(),opacity:l?.5:1},ref:s,children:[Z("div",{ref:c,className:"flex gap-1 flex-col",children:e.isPlaceholder?null:Te(E1,{children:[Te("div",{className:"font-bold uppercase text-grey-700 dark:text-white tracking-widest flex gap-2 whitespace-nowrap justify-between",children:[Te("div",{onClick:e.column.getToggleSortingHandler(),className:It("flex gap-1",{"cursor-pointer select-none":e.column.getCanSort()}),children:[Rf(e.column.columnDef.header,e.getContext()),e.column.getCanSort()&&Te("div",{className:"flex flex-col gap-0.5 items-center justify-center",children:[Z("button",{className:It({"text-[#669DCB]":e.column.getIsSorted()==="asc","text-grey-600":e.column.getIsSorted()!=="asc"}),children:Z("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"4",fill:"none",viewBox:"0 0 11 5",children:Z("path",{fill:"currentColor",d:"M10.333 5l-5-5-5 5"})})}),Z("button",{className:It({"text-[#669DCB]":e.column.getIsSorted()==="desc","text-grey-600":e.column.getIsSorted()!=="desc"}),children:Z("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"4",fill:"none",viewBox:"0 0 11 5",children:Z("path",{fill:"currentColor",d:"M.333 0l5 5 5-5"})})})]})]}),r&&a.id!=="select"&&Z("button",{ref:u,className:"text-grey-600 hover:text-grey-800 dark:hover:text-white",children:Z("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none",viewBox:"0 0 17 16",children:Z("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3.667 6l-2 2 2 2M6.333 3.333l2-2 2 2M10.333 12.667l-2 2-2-2M13 6l2 2-2 2M1.667 8H15M8.333 1.333v13.334"})})})]}),r&&e.column.getCanFilter()?Z("div",{children:Z(bF,{column:e.column,table:t,numberOfColumns:o.length})}):null]})}),Z("button",{className:"resizer bg-grey-300/20 dark:hover:bg-white absolute top-0 right-0 w-0.5 h-full",onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler()})]})};function MF({table:e,currentPage:t,setCurrentPage:r}){const n=e.getFilteredRowModel().rows.length;return Te("div",{className:"flex items-center gap-8",children:[Z(jv,{value:t,onChange:i=>{r(i),i===`All (${n})`?e.setPageSize(n):e.setPageSize(i)},labelType:"row",label:"Rows per page",placeholder:"Select rows per page",groups:[{label:"Rows per page",items:[10,20,30,40,50,`All (${n})`].map(i=>({label:`${i}`,value:i}))}]}),Te("span",{className:"flex items-center gap-1",children:[Z("strong",{children:e.getState().pagination.pageIndex+1}),"of",Z("strong",{children:e.getPageCount()})]}),Te("div",{children:[Z("button",{className:It("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanPreviousPage(),"dark:text-white":e.getCanPreviousPage()}),onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:"<<"}),Z("button",{className:It("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanPreviousPage(),"dark:text-white":e.getCanPreviousPage()}),onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:"<"}),Z("button",{className:It("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanNextPage(),"dark:text-white":e.getCanNextPage()}),onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:">"}),Z("button",{className:It("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanNextPage(),"dark:text-white":e.getCanNextPage()}),onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage(),children:">>"})]})]})}const Dc="rovingFocusGroup.onEntryFocus",LF={bubbles:!1,cancelable:!0},$d="RovingFocusGroup",[jf,U2,BF]=iu($d),[UF,Au]=rn($d,[BF]),[HF,VF]=UF($d),WF=x.forwardRef((e,t)=>x.createElement(jf.Provider,{scope:e.__scopeRovingFocusGroup},x.createElement(jf.Slot,{scope:e.__scopeRovingFocusGroup},x.createElement(zF,he({},e,{ref:t}))))),zF=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,f=x.useRef(null),h=He(t,f),d=ou(o),[m=null,p]=oo({prop:a,defaultProp:s,onChange:l}),[g,v]=x.useState(!1),w=Nt(u),y=U2(r),S=x.useRef(!1),[N,M]=x.useState(0);return x.useEffect(()=>{const _=f.current;if(_)return _.addEventListener(Dc,w),()=>_.removeEventListener(Dc,w)},[w]),x.createElement(HF,{scope:r,orientation:n,dir:d,loop:i,currentTabStopId:m,onItemFocus:x.useCallback(_=>p(_),[p]),onItemShiftTab:x.useCallback(()=>v(!0),[]),onFocusableItemAdd:x.useCallback(()=>M(_=>_+1),[]),onFocusableItemRemove:x.useCallback(()=>M(_=>_-1),[])},x.createElement(De.div,he({tabIndex:g||N===0?-1:0,"data-orientation":n},c,{ref:h,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{S.current=!0}),onFocus:Se(e.onFocus,_=>{const C=!S.current;if(_.target===_.currentTarget&&C&&!g){const A=new CustomEvent(Dc,LF);if(_.currentTarget.dispatchEvent(A),!A.defaultPrevented){const L=y().filter(ne=>ne.focusable),U=L.find(ne=>ne.active),B=L.find(ne=>ne.id===m),q=[U,B,...L].filter(Boolean).map(ne=>ne.ref.current);H2(q)}}S.current=!1}),onBlur:Se(e.onBlur,()=>v(!1))})))}),GF="RovingFocusGroupItem",jF=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:o,...a}=e,s=io(),l=o||s,u=VF(GF,r),c=u.currentTabStopId===l,f=U2(r),{onFocusableItemAdd:h,onFocusableItemRemove:d}=u;return x.useEffect(()=>{if(n)return h(),()=>d()},[n,h,d]),x.createElement(jf.ItemSlot,{scope:r,id:l,focusable:n,active:i},x.createElement(De.span,he({tabIndex:c?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:Se(e.onMouseDown,m=>{n?u.onItemFocus(l):m.preventDefault()}),onFocus:Se(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Se(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const p=YF(m,u.orientation,u.dir);if(p!==void 0){m.preventDefault();let v=f().filter(w=>w.focusable).map(w=>w.ref.current);if(p==="last")v.reverse();else if(p==="prev"||p==="next"){p==="prev"&&v.reverse();const w=v.indexOf(m.currentTarget);v=u.loop?qF(v,w+1):v.slice(w+1)}setTimeout(()=>H2(v))}})})))}),XF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function YF(e,t,r){const n=KF(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return XF[n]}function H2(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function qF(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const V2=WF,W2=jF;function QF(e,t){return x.useReducer((r,n)=>{const i=t[r][n];return i??r},e)}const es=e=>{const{present:t,children:r}=e,n=ZF(t),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),o=He(n.ref,i.ref);return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:o}):null};es.displayName="Presence";function ZF(e){const[t,r]=x.useState(),n=x.useRef({}),i=x.useRef(e),o=x.useRef("none"),a=e?"mounted":"unmounted",[s,l]=QF(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Is(n.current);o.current=s==="mounted"?u:"none"},[s]),xt(()=>{const u=n.current,c=i.current;if(c!==e){const h=o.current,d=Is(u);e?l("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==d?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),xt(()=>{if(t){const u=f=>{const d=Is(n.current).includes(f.animationName);f.target===t&&d&&Qr.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(o.current=Is(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:x.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Is(e){return(e==null?void 0:e.animationName)||"none"}const z2="Radio",[JF,G2]=rn(z2),[e7,t7]=JF(z2),r7=x.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:o,disabled:a,value:s="on",onCheck:l,...u}=e,[c,f]=x.useState(null),h=He(t,p=>f(p)),d=x.useRef(!1),m=c?!!c.closest("form"):!0;return x.createElement(e7,{scope:r,checked:i,disabled:a},x.createElement(De.button,he({type:"button",role:"radio","aria-checked":i,"data-state":j2(i),"data-disabled":a?"":void 0,disabled:a,value:s},u,{ref:h,onClick:Se(e.onClick,p=>{i||l==null||l(),m&&(d.current=p.isPropagationStopped(),d.current||p.stopPropagation())})})),m&&x.createElement(o7,{control:c,bubbles:!d.current,name:n,value:s,checked:i,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),n7="RadioIndicator",i7=x.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...i}=e,o=t7(n7,r);return x.createElement(es,{present:n||o.checked},x.createElement(De.span,he({"data-state":j2(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),o7=e=>{const{control:t,checked:r,bubbles:n=!0,...i}=e,o=x.useRef(null),a=Ov(r),s=Ev(t);return x.useEffect(()=>{const l=o.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==r&&f){const h=new Event("click",{bubbles:n});f.call(l,r),l.dispatchEvent(h)}},[a,r,n]),x.createElement("input",he({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function j2(e){return e?"checked":"unchecked"}const a7=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],X2="RadioGroup",[s7,mI]=rn(X2,[Au,G2]),K2=Au(),Y2=G2(),[l7,u7]=s7(X2),c7=x.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:o,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:f,...h}=e,d=K2(r),m=ou(u),[p,g]=oo({prop:o,defaultProp:i,onChange:f});return x.createElement(l7,{scope:r,name:n,required:a,disabled:s,value:p,onValueChange:g},x.createElement(V2,he({asChild:!0},d,{orientation:l,dir:m,loop:c}),x.createElement(De.div,he({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m},h,{ref:t}))))}),f7="RadioGroupItem",d7=x.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...i}=e,o=u7(f7,r),a=o.disabled||n,s=K2(r),l=Y2(r),u=x.useRef(null),c=He(t,u),f=o.value===i.value,h=x.useRef(!1);return x.useEffect(()=>{const d=p=>{a7.includes(p.key)&&(h.current=!0)},m=()=>h.current=!1;return document.addEventListener("keydown",d),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",d),document.removeEventListener("keyup",m)}},[]),x.createElement(W2,he({asChild:!0},s,{focusable:!a,active:f}),x.createElement(r7,he({disabled:a,required:o.required,checked:f},l,i,{name:o.name,ref:c,onCheck:()=>o.onValueChange(i.value),onKeyDown:Se(d=>{d.key==="Enter"&&d.preventDefault()}),onFocus:Se(i.onFocus,()=>{var d;h.current&&((d=u.current)===null||d===void 0||d.click())})})))}),h7=x.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,i=Y2(r);return x.createElement(i7,he({},i,n,{ref:t}))}),p7=c7,g7=d7,m7=h7;function Yo(e,t){const[r,n]=x.useState(()=>{if(typeof window>"u")return t;try{const o=window.localStorage.getItem(e);return o?JSON.parse(o):t}catch(o){return console.log(o),t}});return[r,o=>{try{const a=o instanceof Function?o(r):o;n(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch(a){console.log(a)}}]}const Gg=["csv","xlsx","png"];function v7({columns:e,data:t}){const[r,n]=Yo("exportType",Gg[0]),i=()=>{switch(r){case"csv":Ng("csv",e,t);break;case"xlsx":Ng("xlsx",e,t);break;case"png":BR("table");break}};return Te("div",{className:"flex gap-6 items-center",children:[Z("p",{children:"Export:"}),Z(p7,{onValueChange:n,defaultValue:r,className:"flex gap-4","aria-label":"Export",children:Gg.map(o=>Te("div",{className:"flex items-center gap-2 cursor-pointer",children:[Z(g7,{className:"bg-white border-black dark:bg-black dark:border-white border-2 w-5 h-5 rounded-full outline-none",value:o,id:o,children:Z(m7,{className:"flex items-center justify-center w-full h-full relative after:content-[''] after:block after:w-[11px] after:h-[11px] after:rounded-[50%] dark:after:bg-white after:bg-black"})}),Z("label",{className:"text-black dark:text-white text-sm leading-none uppercase",htmlFor:o,children:o})]},o))}),Z("button",{onClick:i,className:"_btn",children:"Export"})]})}function x7(){const[e,t]=x.useState(0);x.useEffect(()=>{const n=setInterval(()=>{t(i=>i+10)},1e4);return()=>clearInterval(n)},[]);const r=Math.floor(e/60);return Te("div",{className:"flex gap-2 items-center bg-grey-200 dark:bg-grey-800 rounded p-2 text-xs",children:[Te("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[Te("g",{strokeLinecap:"round",strokeLinejoin:"round",clipPath:"url(#clip0_106_4278)",children:[Z("path",{stroke:"currentColor",d:"M7.646 1.28a6.667 6.667 0 11-4.311 1.94M8 4.333V8l2 1.333"}),Z("path",{stroke:"currentColor",d:"M.701 3.693l3.22-.863.776 2.898"})]}),Z("defs",{children:Z("clipPath",{id:"clip0_106_4278",children:Z("path",{fill:"currentColor",d:"M0 0H16V16H0z"})})})]}),Z("span",{children:r>0?`${r} minutes ago`:"Just now"})]})}const w7=["Enter"," "],y7=["ArrowDown","PageUp","Home"],q2=["ArrowUp","PageDown","End"],E7=[...y7,...q2],Ru="Menu",[Xf,S7,_7]=iu(Ru),[xi,Q2]=rn(Ru,[_7,lu,Au]),Md=lu(),Z2=Au(),[T7,ts]=xi(Ru),[C7,Ld]=xi(Ru),A7=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:o,modal:a=!0}=e,s=Md(t),[l,u]=x.useState(null),c=x.useRef(!1),f=Nt(o),h=ou(i);return x.useEffect(()=>{const d=()=>{c.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>c.current=!1;return document.addEventListener("keydown",d,{capture:!0}),()=>{document.removeEventListener("keydown",d,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),x.createElement(Cv,s,x.createElement(T7,{scope:t,open:r,onOpenChange:f,content:l,onContentChange:u},x.createElement(C7,{scope:t,onClose:x.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:h,modal:a},n)))},R7=x.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=Md(r);return x.createElement(Av,he({},i,n,{ref:t}))}),J2="MenuPortal",[O7,F7]=xi(J2,{forceMount:void 0}),P7=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=ts(J2,t);return x.createElement(O7,{scope:t,forceMount:r},x.createElement(es,{present:r||o.open},x.createElement(od,{asChild:!0,container:i},n)))},Cn="MenuContent",[D7,ew]=xi(Cn),I7=x.forwardRef((e,t)=>{const r=F7(Cn,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=ts(Cn,e.__scopeMenu),a=Ld(Cn,e.__scopeMenu);return x.createElement(Xf.Provider,{scope:e.__scopeMenu},x.createElement(es,{present:n||o.open},x.createElement(Xf.Slot,{scope:e.__scopeMenu},a.modal?x.createElement(k7,he({},i,{ref:t})):x.createElement(b7,he({},i,{ref:t})))))}),k7=x.forwardRef((e,t)=>{const r=ts(Cn,e.__scopeMenu),n=x.useRef(null),i=He(t,n);return x.useEffect(()=>{const o=n.current;if(o)return Pv(o)},[]),x.createElement(tw,he({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Se(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),b7=x.forwardRef((e,t)=>{const r=ts(Cn,e.__scopeMenu);return x.createElement(tw,he({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),tw=x.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:d,disableOutsideScroll:m,...p}=e,g=ts(Cn,r),v=Ld(Cn,r),w=Md(r),y=Z2(r),S=S7(r),[N,M]=x.useState(null),_=x.useRef(null),C=He(t,_,g.onContentChange),A=x.useRef(0),L=x.useRef(""),U=x.useRef(0),B=x.useRef(null),V=x.useRef("right"),q=x.useRef(0),ne=m?Bv:x.Fragment,we=m?{as:no,allowPinchZoom:!0}:void 0,ve=J=>{var ce,K;const O=L.current+J,b=S().filter(te=>!te.disabled),k=document.activeElement,F=(ce=b.find(te=>te.ref.current===k))===null||ce===void 0?void 0:ce.textValue,H=b.map(te=>te.textValue),G=G7(H,O,F),Y=(K=b.find(te=>te.textValue===G))===null||K===void 0?void 0:K.ref.current;(function te(re){L.current=re,window.clearTimeout(A.current),re!==""&&(A.current=window.setTimeout(()=>te(""),1e3))})(O),Y&&setTimeout(()=>Y.focus())};x.useEffect(()=>()=>window.clearTimeout(A.current),[]),uv();const _e=x.useCallback(J=>{var ce,K;return V.current===((ce=B.current)===null||ce===void 0?void 0:ce.side)&&X7(J,(K=B.current)===null||K===void 0?void 0:K.area)},[]);return x.createElement(D7,{scope:r,searchRef:L,onItemEnter:x.useCallback(J=>{_e(J)&&J.preventDefault()},[_e]),onItemLeave:x.useCallback(J=>{var ce;_e(J)||((ce=_.current)===null||ce===void 0||ce.focus(),M(null))},[_e]),onTriggerLeave:x.useCallback(J=>{_e(J)&&J.preventDefault()},[_e]),pointerGraceTimerRef:U,onPointerGraceIntentChange:x.useCallback(J=>{B.current=J},[])},x.createElement(ne,we,x.createElement(cv,{asChild:!0,trapped:i,onMountAutoFocus:Se(o,J=>{var ce;J.preventDefault(),(ce=_.current)===null||ce===void 0||ce.focus()}),onUnmountAutoFocus:a},x.createElement(td,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:d},x.createElement(V2,he({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:N,onCurrentTabStopIdChange:M,onEntryFocus:Se(l,J=>{v.isUsingKeyboardRef.current||J.preventDefault()})}),x.createElement(Rv,he({role:"menu","aria-orientation":"vertical","data-state":V7(g.open),"data-radix-menu-content":"",dir:v.dir},w,p,{ref:C,style:{outline:"none",...p.style},onKeyDown:Se(p.onKeyDown,J=>{const K=J.target.closest("[data-radix-menu-content]")===J.currentTarget,O=J.ctrlKey||J.altKey||J.metaKey,b=J.key.length===1;K&&(J.key==="Tab"&&J.preventDefault(),!O&&b&&ve(J.key));const k=_.current;if(J.target!==k||!E7.includes(J.key))return;J.preventDefault();const H=S().filter(G=>!G.disabled).map(G=>G.ref.current);q2.includes(J.key)&&H.reverse(),W7(H)}),onBlur:Se(e.onBlur,J=>{J.currentTarget.contains(J.target)||(window.clearTimeout(A.current),L.current="")}),onPointerMove:Se(e.onPointerMove,Yf(J=>{const ce=J.target,K=q.current!==J.clientX;if(J.currentTarget.contains(ce)&&K){const O=J.clientX>q.current?"right":"left";V.current=O,q.current=J.clientX}}))})))))))}),N7=x.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return x.createElement(De.div,he({role:"group"},n,{ref:t}))}),$7=x.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return x.createElement(De.div,he({},n,{ref:t}))}),Kf="MenuItem",jg="menu.itemSelect",M7=x.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...i}=e,o=x.useRef(null),a=Ld(Kf,e.__scopeMenu),s=ew(Kf,e.__scopeMenu),l=He(t,o),u=x.useRef(!1),c=()=>{const f=o.current;if(!r&&f){const h=new CustomEvent(jg,{bubbles:!0,cancelable:!0});f.addEventListener(jg,d=>n==null?void 0:n(d),{once:!0}),ed(f,h),h.defaultPrevented?u.current=!1:a.onClose()}};return x.createElement(L7,he({},i,{ref:l,disabled:r,onClick:Se(e.onClick,c),onPointerDown:f=>{var h;(h=e.onPointerDown)===null||h===void 0||h.call(e,f),u.current=!0},onPointerUp:Se(e.onPointerUp,f=>{var h;u.current||(h=f.currentTarget)===null||h===void 0||h.click()}),onKeyDown:Se(e.onKeyDown,f=>{const h=s.searchRef.current!=="";r||h&&f.key===" "||w7.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),L7=x.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...o}=e,a=ew(Kf,r),s=Z2(r),l=x.useRef(null),u=He(t,l),[c,f]=x.useState(!1),[h,d]=x.useState("");return x.useEffect(()=>{const m=l.current;if(m){var p;d(((p=m.textContent)!==null&&p!==void 0?p:"").trim())}},[o.children]),x.createElement(Xf.ItemSlot,{scope:r,disabled:n,textValue:i??h},x.createElement(W2,he({asChild:!0},s,{focusable:!n}),x.createElement(De.div,he({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:u,onPointerMove:Se(e.onPointerMove,Yf(m=>{n?a.onItemLeave(m):(a.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Se(e.onPointerLeave,Yf(m=>a.onItemLeave(m))),onFocus:Se(e.onFocus,()=>f(!0)),onBlur:Se(e.onBlur,()=>f(!1))}))))}),B7="MenuRadioGroup";xi(B7,{value:void 0,onValueChange:()=>{}});const U7="MenuItemIndicator";xi(U7,{checked:!1});const H7="MenuSub";xi(H7);function V7(e){return e?"open":"closed"}function W7(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function z7(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function G7(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=z7(e,Math.max(o,0));i.length===1&&(a=a.filter(u=>u!==r));const l=a.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function j7(e,t){const{x:r,y:n}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const s=t[o].x,l=t[o].y,u=t[a].x,c=t[a].y;l>n!=c>n&&r<(u-s)*(n-l)/(c-l)+s&&(i=!i)}return i}function X7(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return j7(r,t)}function Yf(e){return t=>t.pointerType==="mouse"?e(t):void 0}const K7=A7,Y7=R7,q7=P7,Q7=I7,Z7=N7,J7=$7,eP=M7,rw="DropdownMenu",[tP,vI]=rn(rw,[Q2]),wi=Q2(),[rP,nw]=tP(rw),nP=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=wi(t),u=x.useRef(null),[c=!1,f]=oo({prop:i,defaultProp:o,onChange:a});return x.createElement(rP,{scope:t,triggerId:io(),triggerRef:u,contentId:io(),open:c,onOpenChange:f,onOpenToggle:x.useCallback(()=>f(h=>!h),[f]),modal:s},x.createElement(K7,he({},l,{open:c,onOpenChange:f,dir:n,modal:s}),r))},iP="DropdownMenuTrigger",oP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,o=nw(iP,r),a=wi(r);return x.createElement(Y7,he({asChild:!0},a),x.createElement(De.button,he({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},i,{ref:J0(t,o.triggerRef),onPointerDown:Se(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(o.onOpenToggle(),o.open||s.preventDefault())}),onKeyDown:Se(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&o.onOpenToggle(),s.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),aP=e=>{const{__scopeDropdownMenu:t,...r}=e,n=wi(t);return x.createElement(q7,he({},n,r))},sP="DropdownMenuContent",lP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nw(sP,r),o=wi(r),a=x.useRef(!1);return x.createElement(Q7,he({id:i.contentId,"aria-labelledby":i.triggerId},o,n,{ref:t,onCloseAutoFocus:Se(e.onCloseAutoFocus,s=>{var l;a.current||(l=i.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:Se(e.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;(!i.modal||c)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),uP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=wi(r);return x.createElement(Z7,he({},i,n,{ref:t}))}),cP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=wi(r);return x.createElement(J7,he({},i,n,{ref:t}))}),fP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=wi(r);return x.createElement(eP,he({},i,n,{ref:t}))}),dP=nP,hP=oP,pP=aP,gP=lP,mP=uP,vP=cP,Xg=fP;function xP(e,t){x.useEffect(()=>{const r=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}function wP({label:e,table:t}){const[r,n]=x.useState(!1),i=x.useRef(null);return xP(i,()=>n(!1)),x.useEffect(()=>{const o=a=>{a.key==="Escape"&&n(!1)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[]),Te(dP,{open:r,children:[Te(mP,{className:"flex flex-row items-center gap-2 text-sm",children:[Z(vP,{className:"whitespace-nowrap",children:e}),Te(hP,{onClick:()=>n(!r),className:"bg-white dark:bg-grey-900 whitespace-nowrap h-[36px] border-[1.5px] border-grey-700 rounded p-3 inline-flex items-center justify-center leading-none gap-[5px] shadow-[0_2px_10px] shadow-black/10 focus:shadow-[0_0_0_2px] focus:shadow-black data-[placeholder]:text-white outline-none","aria-label":e,children:[Z("span",{children:"Filter columns"}),Z($f,{className:It({"transform rotate-180 duration-200 transition":r})})]})]}),Z(pP,{children:Te(gP,{sideOffset:10,ref:i,className:"z-50 bg-white/80 dark:bg-grey-900/80 backdrop-filter backdrop-blur flex flex-col gap-4 overflow-auto border-[1.5px] border-grey-700 rounded p-3 max-h-[500px]  text-black dark:text-white",children:[Z(Xg,{children:Te("label",{className:"flex items-center gap-2",children:[Z("input",{type:"checkbox",checked:t.getIsAllColumnsVisible(),onChange:t.getToggleAllColumnsVisibilityHandler()}),"Toggle All"]})}),t.getAllLeafColumns().filter(o=>o.id!=="select").map(o=>Z(Xg,{children:Te("label",{className:"flex items-center gap-2",children:[Z("input",{type:"checkbox",checked:o.getIsVisible(),onChange:o.getToggleVisibilityHandler()}),o.id]})},o.id))]})})]})}var Vl={},yP={get exports(){return Vl},set exports(e){Vl=e}},Ye={},lo={},EP={get exports(){return lo},set exports(e){lo=e}},yi={};function iw(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function SP(e,t,r){}function _P(e,t,r){}var TP=/javascript\s*\:/img;function CP(e,t){return TP.test(t)?"":t}yi.whiteList=iw();yi.getDefaultWhiteList=iw;yi.onAttr=SP;yi.onIgnoreAttr=_P;yi.safeAttrValue=CP;var AP={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Vo=AP;function RP(e,t){e=Vo.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,a="";function s(){if(!n){var c=Vo.trim(e.slice(i,o)),f=c.indexOf(":");if(f!==-1){var h=Vo.trim(c.slice(0,f)),d=Vo.trim(c.slice(f+1));if(h){var m=t(i,a.length,h,d,c);m&&(a+=m+"; ")}}}i=o+1}for(;o<r;o++){var l=e[o];if(l==="/"&&e[o+1]==="*"){var u=e.indexOf("*/",o+2);if(u===-1)break;o=u+1,i=o+1,n=!1}else l==="("?n=!0:l===")"?n=!1:l===";"?n||s():l===`
-`&&s()}return Vo.trim(a)}var OP=RP,ks=yi,FP=OP;function Kg(e){return e==null}function PP(e){var t={};for(var r in e)t[r]=e[r];return t}function ow(e){e=PP(e||{}),e.whiteList=e.whiteList||ks.whiteList,e.onAttr=e.onAttr||ks.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||ks.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||ks.safeAttrValue,this.options=e}ow.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,a=r.safeAttrValue,s=FP(e,function(l,u,c,f,h){var d=n[c],m=!1;if(d===!0?m=d:typeof d=="function"?m=d(f):d instanceof RegExp&&(m=d.test(f)),m!==!0&&(m=!1),f=a(c,f),!!f){var p={position:u,sourcePosition:l,source:h,isWhite:m};if(m){var g=i(c,f,p);return Kg(g)?c+":"+f:g}else{var g=o(c,f,p);if(!Kg(g))return g}}});return s};var DP=ow;(function(e,t){var r=yi,n=DP;function i(a,s){var l=new n(s);return l.process(a)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o];typeof window<"u"&&(window.filterCSS=e.exports)})(EP,lo);var Bd={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},IP=lo.FilterCSS,kP=lo.getDefaultWhiteList,Wl=Bd;function aw(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var sw=new IP;function bP(e,t,r){}function NP(e,t,r){}function $P(e,t,r){}function MP(e,t,r){}function lw(e){return e.replace(BP,"&lt;").replace(UP,"&gt;")}function LP(e,t,r,n){if(r=pw(r),t==="href"||t==="src"){if(r=Wl.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(bs.lastIndex=0,bs.test(r))return""}else if(t==="style"){if(Yg.lastIndex=0,Yg.test(r)||(qg.lastIndex=0,qg.test(r)&&(bs.lastIndex=0,bs.test(r))))return"";n!==!1&&(n=n||sw,r=n.process(r))}return r=gw(r),r}var BP=/</g,UP=/>/g,HP=/"/g,VP=/&quot;/g,WP=/&#([a-zA-Z0-9]*);?/gim,zP=/&colon;?/gim,GP=/&newline;?/gim,bs=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Yg=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,qg=/u\s*r\s*l\s*\(.*/gi;function uw(e){return e.replace(HP,"&quot;")}function cw(e){return e.replace(VP,'"')}function fw(e){return e.replace(WP,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function dw(e){return e.replace(zP,":").replace(GP," ")}function hw(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Wl.trim(t)}function pw(e){return e=cw(e),e=fw(e),e=dw(e),e=hw(e),e}function gw(e){return e=uw(e),e=lw(e),e}function jP(){return""}function XP(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(a){return r?!0:Wl.indexOf(e,a)!==-1}var i=[],o=!1;return{onIgnoreTag:function(a,s,l){if(n(a))if(l.isClosing){var u="[/removed]",c=l.position+u.length;return i.push([o!==!1?o:l.position,c]),o=!1,u}else return o||(o=l.position),"[removed]";else return t(a,s,l)},remove:function(a){var s="",l=0;return Wl.forEach(i,function(u){s+=a.slice(l,u[0]),l=u[1]}),s+=a.slice(l),s}}}function KP(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function YP(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}Ye.whiteList=aw();Ye.getDefaultWhiteList=aw;Ye.onTag=bP;Ye.onIgnoreTag=NP;Ye.onTagAttr=$P;Ye.onIgnoreTagAttr=MP;Ye.safeAttrValue=LP;Ye.escapeHtml=lw;Ye.escapeQuote=uw;Ye.unescapeQuote=cw;Ye.escapeHtmlEntities=fw;Ye.escapeDangerHtml5Entities=dw;Ye.clearNonPrintableCharacter=hw;Ye.friendlyAttrValue=pw;Ye.escapeAttrValue=gw;Ye.onIgnoreTagStripAll=jP;Ye.StripTagBody=XP;Ye.stripCommentTag=KP;Ye.stripBlankChar=YP;Ye.cssFilter=sw;Ye.getDefaultCSSWhiteList=kP;var Ou={},ln=Bd;function qP(e){var t=ln.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=ln.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function QP(e){return e.slice(0,2)==="</"}function ZP(e,t,r){var n="",i=0,o=!1,a=!1,s=0,l=e.length,u="",c="";e:for(s=0;s<l;s++){var f=e.charAt(s);if(o===!1){if(f==="<"){o=s;continue}}else if(a===!1){if(f==="<"){n+=r(e.slice(i,s)),o=s,i=s;continue}if(f===">"||s===l-1){n+=r(e.slice(i,o)),c=e.slice(o,s+1),u=qP(c),n+=t(o,n.length,u,c,QP(c)),i=s+1,o=!1;continue}if(f==='"'||f==="'")for(var h=1,d=e.charAt(s-h);d.trim()===""||d==="=";){if(d==="="){a=f;continue e}d=e.charAt(s-++h)}}else if(f===a){a=!1;continue}}return i<l&&(n+=r(e.substr(i))),n}var JP=/[^a-zA-Z0-9\\_:.-]/gim;function eD(e,t){var r=0,n=0,i=[],o=!1,a=e.length;function s(h,d){if(h=ln.trim(h),h=h.replace(JP,"").toLowerCase(),!(h.length<1)){var m=t(h,d||"");m&&i.push(m)}}for(var l=0;l<a;l++){var u=e.charAt(l),c,f;if(o===!1&&u==="="){o=e.slice(r,l),r=l+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:rD(e,l+1);continue}if(o!==!1&&l===n){if(f=e.indexOf(u,l+1),f===-1)break;c=ln.trim(e.slice(n+1,f)),s(o,c),o=!1,l=f,r=l+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(f=tD(e,l),f===-1){c=ln.trim(e.slice(r,l)),s(c),o=!1,r=l+1;continue}else{l=f-1;continue}else if(f=nD(e,l-1),f===-1){c=ln.trim(e.slice(r,l)),c=Qg(c),s(o,c),o=!1,r=l+1;continue}else continue}return r<e.length&&(o===!1?s(e.slice(r)):s(o,Qg(ln.trim(e.slice(r))))),ln.trim(i.join(" "))}function tD(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function rD(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function nD(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function iD(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Qg(e){return iD(e)?e.substr(1,e.length-2):e}Ou.parseTag=ZP;Ou.parseAttr=eD;var oD=lo.FilterCSS,xr=Ye,mw=Ou,aD=mw.parseTag,sD=mw.parseAttr,Zs=Bd;function Ns(e){return e==null}function lD(e){var t=Zs.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Zs.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=Zs.trim(e.slice(0,-1))),{html:e,closing:r}}function uD(e){var t={};for(var r in e)t[r]=e[r];return t}function cD(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function vw(e){e=uD(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=xr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=cD(e.whiteList||e.allowList):e.whiteList=xr.whiteList,e.onTag=e.onTag||xr.onTag,e.onTagAttr=e.onTagAttr||xr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||xr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||xr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||xr.safeAttrValue,e.escapeHtml=e.escapeHtml||xr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new oD(e.css))}vw.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,a=r.onTagAttr,s=r.onIgnoreTagAttr,l=r.safeAttrValue,u=r.escapeHtml,c=t.cssFilter;r.stripBlankChar&&(e=xr.stripBlankChar(e)),r.allowCommentTag||(e=xr.stripCommentTag(e));var f=!1;r.stripIgnoreTagBody&&(f=xr.StripTagBody(r.stripIgnoreTagBody,o),o=f.onIgnoreTag);var h=aD(e,function(d,m,p,g,v){var w={sourcePosition:d,position:m,isClosing:v,isWhite:Object.prototype.hasOwnProperty.call(n,p)},y=i(p,g,w);if(!Ns(y))return y;if(w.isWhite){if(w.isClosing)return"</"+p+">";var S=lD(g),N=n[p],M=sD(S.html,function(_,C){var A=Zs.indexOf(N,_)!==-1,L=a(p,_,C,A);return Ns(L)?A?(C=l(p,_,C,c),C?_+'="'+C+'"':_):(L=s(p,_,C,A),Ns(L)?void 0:L):L});return g="<"+p,M&&(g+=" "+M),S.closing&&(g+=" /"),g+=">",g}else return y=o(p,g,w),Ns(y)?u(g):y},u);return f&&(h=f.remove(h)),h};var fD=vw;(function(e,t){var r=Ye,n=Ou,i=fD;function o(s,l){var u=new i(l);return u.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var s in r)t[s]=r[s];for(var l in n)t[l]=n[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)})(yP,Vl);const dD=Vl,xw="ToastProvider",[Ud,hD,pD]=iu("Toast"),[ww,xI]=rn("Toast",[pD]),[gD,Fu]=ww(xw),yw=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[s,l]=x.useState(null),[u,c]=x.useState(0),f=x.useRef(!1),h=x.useRef(!1);return x.createElement(Ud.Provider,{scope:t},x.createElement(gD,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:s,onViewportChange:l,onToastAdd:x.useCallback(()=>c(d=>d+1),[]),onToastRemove:x.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h},a))};yw.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${xw}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const mD="ToastViewport",vD=["F8"],qf="toast.viewportPause",Qf="toast.viewportResume",xD=x.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=vD,label:i="Notifications ({hotkey})",...o}=e,a=Fu(mD,r),s=hD(r),l=x.useRef(null),u=x.useRef(null),c=x.useRef(null),f=x.useRef(null),h=He(t,f,a.onViewportChange),d=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=a.toastCount>0;x.useEffect(()=>{const g=v=>{var w;n.every(S=>v[S]||v.code===S)&&((w=f.current)===null||w===void 0||w.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[n]),x.useEffect(()=>{const g=l.current,v=f.current;if(m&&g&&v){const w=()=>{if(!a.isClosePausedRef.current){const M=new CustomEvent(qf);v.dispatchEvent(M),a.isClosePausedRef.current=!0}},y=()=>{if(a.isClosePausedRef.current){const M=new CustomEvent(Qf);v.dispatchEvent(M),a.isClosePausedRef.current=!1}},S=M=>{!g.contains(M.relatedTarget)&&y()},N=()=>{g.contains(document.activeElement)||y()};return g.addEventListener("focusin",w),g.addEventListener("focusout",S),g.addEventListener("pointermove",w),g.addEventListener("pointerleave",N),window.addEventListener("blur",w),window.addEventListener("focus",y),()=>{g.removeEventListener("focusin",w),g.removeEventListener("focusout",S),g.removeEventListener("pointermove",w),g.removeEventListener("pointerleave",N),window.removeEventListener("blur",w),window.removeEventListener("focus",y)}}},[m,a.isClosePausedRef]);const p=x.useCallback(({tabbingDirection:g})=>{const w=s().map(y=>{const S=y.ref.current,N=[S,...ND(S)];return g==="forwards"?N:N.reverse()});return(g==="forwards"?w.reverse():w).flat()},[s]);return x.useEffect(()=>{const g=f.current;if(g){const v=w=>{const y=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!y){const C=document.activeElement,A=w.shiftKey;if(w.target===g&&A){var N;(N=u.current)===null||N===void 0||N.focus();return}const B=p({tabbingDirection:A?"backwards":"forwards"}),V=B.findIndex(q=>q===C);if(Ic(B.slice(V+1)))w.preventDefault();else{var M,_;A?(M=u.current)===null||M===void 0||M.focus():(_=c.current)===null||_===void 0||_.focus()}}};return g.addEventListener("keydown",v),()=>g.removeEventListener("keydown",v)}},[s,p]),x.createElement(f_,{ref:l,role:"region","aria-label":i.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:m?void 0:"none"}},m&&x.createElement(Zg,{ref:u,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"forwards"});Ic(g)}}),x.createElement(Ud.Slot,{scope:r},x.createElement(De.ol,he({tabIndex:-1},o,{ref:h}))),m&&x.createElement(Zg,{ref:c,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"backwards"});Ic(g)}}))}),wD="ToastFocusProxy",Zg=x.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,o=Fu(wD,r);return x.createElement(ad,he({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:a=>{var s;const l=a.relatedTarget;!((s=o.viewport)!==null&&s!==void 0&&s.contains(l))&&n()}}))}),Pu="Toast",yD="toast.swipeStart",ED="toast.swipeMove",SD="toast.swipeCancel",_D="toast.swipeEnd",TD=x.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:o,...a}=e,[s=!0,l]=oo({prop:n,defaultProp:i,onChange:o});return x.createElement(es,{present:r||s},x.createElement(Ew,he({open:s},a,{ref:t,onClose:()=>l(!1),onPause:Nt(e.onPause),onResume:Nt(e.onResume),onSwipeStart:Se(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Se(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Se(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Se(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})))}),[CD,AD]=ww(Pu,{onClose(){}}),Ew=x.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:o,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:d,...m}=e,p=Fu(Pu,r),[g,v]=x.useState(null),w=He(t,q=>v(q)),y=x.useRef(null),S=x.useRef(null),N=i||p.duration,M=x.useRef(0),_=x.useRef(N),C=x.useRef(0),{onToastAdd:A,onToastRemove:L}=p,U=Nt(()=>{var q;(g==null?void 0:g.contains(document.activeElement))&&((q=p.viewport)===null||q===void 0||q.focus()),a()}),B=x.useCallback(q=>{!q||q===1/0||(window.clearTimeout(C.current),M.current=new Date().getTime(),C.current=window.setTimeout(U,q))},[U]);x.useEffect(()=>{const q=p.viewport;if(q){const ne=()=>{B(_.current),u==null||u()},we=()=>{const ve=new Date().getTime()-M.current;_.current=_.current-ve,window.clearTimeout(C.current),l==null||l()};return q.addEventListener(qf,we),q.addEventListener(Qf,ne),()=>{q.removeEventListener(qf,we),q.removeEventListener(Qf,ne)}}},[p.viewport,N,l,u,B]),x.useEffect(()=>{o&&!p.isClosePausedRef.current&&B(N)},[o,N,p.isClosePausedRef,B]),x.useEffect(()=>(A(),()=>L()),[A,L]);const V=x.useMemo(()=>g?Tw(g):null,[g]);return p.viewport?x.createElement(x.Fragment,null,V&&x.createElement(RD,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},V),x.createElement(CD,{scope:r,onClose:U},Qr.createPortal(x.createElement(Ud.ItemSlot,{scope:r},x.createElement(c_,{asChild:!0,onEscapeKeyDown:Se(s,()=>{p.isFocusedToastEscapeKeyDownRef.current||U(),p.isFocusedToastEscapeKeyDownRef.current=!1})},x.createElement(De.li,he({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":p.swipeDirection},m,{ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Se(e.onKeyDown,q=>{q.key==="Escape"&&(s==null||s(q.nativeEvent),q.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:Se(e.onPointerDown,q=>{q.button===0&&(y.current={x:q.clientX,y:q.clientY})}),onPointerMove:Se(e.onPointerMove,q=>{if(!y.current)return;const ne=q.clientX-y.current.x,we=q.clientY-y.current.y,ve=!!S.current,_e=["left","right"].includes(p.swipeDirection),J=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,ce=_e?J(0,ne):0,K=_e?0:J(0,we),O=q.pointerType==="touch"?10:2,b={x:ce,y:K},k={originalEvent:q,delta:b};ve?(S.current=b,$s(ED,f,k,{discrete:!1})):Jg(b,p.swipeDirection,O)?(S.current=b,$s(yD,c,k,{discrete:!1}),q.target.setPointerCapture(q.pointerId)):(Math.abs(ne)>O||Math.abs(we)>O)&&(y.current=null)}),onPointerUp:Se(e.onPointerUp,q=>{const ne=S.current,we=q.target;if(we.hasPointerCapture(q.pointerId)&&we.releasePointerCapture(q.pointerId),S.current=null,y.current=null,ne){const ve=q.currentTarget,_e={originalEvent:q,delta:ne};Jg(ne,p.swipeDirection,p.swipeThreshold)?$s(_D,d,_e,{discrete:!0}):$s(SD,h,_e,{discrete:!0}),ve.addEventListener("click",J=>J.preventDefault(),{once:!0})}})})))),p.viewport))):null});Ew.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${Pu}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const RD=e=>{const{__scopeToast:t,children:r,...n}=e,i=Fu(Pu,t),[o,a]=x.useState(!1),[s,l]=x.useState(!1);return kD(()=>a(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:x.createElement(od,{asChild:!0},x.createElement(ad,n,o&&x.createElement(x.Fragment,null,i.label," ",r)))},OD=x.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return x.createElement(De.div,he({},n,{ref:t}))}),FD=x.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return x.createElement(De.div,he({},n,{ref:t}))}),PD="ToastAction",DD=x.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?x.createElement(_w,{altText:r,asChild:!0},x.createElement(Sw,he({},n,{ref:t}))):null});DD.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${PD}\``)}};const ID="ToastClose",Sw=x.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=AD(ID,r);return x.createElement(_w,{asChild:!0},x.createElement(De.button,he({type:"button"},n,{ref:t,onClick:Se(e.onClick,i.onClose)})))}),_w=x.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return x.createElement(De.div,he({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function Tw(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),bD(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Tw(n))}}),t}function $s(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?ed(i,o):i.dispatchEvent(o)}const Jg=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),o=n>i;return t==="left"||t==="right"?o&&n>r:!o&&i>r};function kD(e=()=>{}){const t=Nt(e);xt(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function bD(e){return e.nodeType===e.ELEMENT_NODE}function ND(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ic(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const $D=yw,MD=xD,LD=TD,BD=OD,UD=FD,HD=Sw,VD=({title:e,titleId:t,...r})=>Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,...r,children:Z("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),WD=({title:e,titleId:t,...r})=>Te("svg",{viewBox:"0 0 18 18",width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?Z("title",{id:t,children:e}):null,Z("path",{d:"M9 16.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15ZM11.25 6.75l-4.5 4.5M6.75 6.75l4.5 4.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),zD=({title:e,titleId:t,...r})=>Te("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?Z("title",{id:t,children:e}):null,Z("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM12 16v-4M12 8h.01",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),GD=({title:e,titleId:t,...r})=>Te("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?Z("title",{id:t,children:e}):null,Z("path",{d:"M16.5 8.31V9a7.5 7.5 0 1 1-4.447-6.855",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Z("path",{d:"M16.5 3 9 10.508l-2.25-2.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),jD=({title:e,titleId:t,...r})=>Te("svg",{viewBox:"0 0 18 18",width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?Z("title",{id:t,children:e}):null,Z("path",{d:"M7.718 2.895 1.366 13.5a1.5 1.5 0 0 0 1.282 2.25h12.705a1.5 1.5 0 0 0 1.283-2.25L10.283 2.895a1.5 1.5 0 0 0-2.565 0v0ZM9 6.75v3M9 12.75h.008",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),XD=({toast:e,open:t,setOpen:r})=>Te($D,{children:[Te(LD,{open:t,onOpenChange:n=>{e.preventClose||r(n)},className:It("z-50 fixed bottom-4 md:left-1/2 md:-translate-x-[50%] inset-x-4 w-auto shadow-lg md:max-w-[658px] duration-300","radix-state-open:animate-fade-in","radix-state-closed:animate-toast-hide","radix-swipe-end:animate-toast-swipe-out","translate-x-radix-toast-swipe-move-x","radix-swipe-cancel:translate-x-0 radix-swipe-cancel:duration-200 radix-swipe-cancel:ease-[ease]","px-[40px] md:px-[58px] py-6 flex flex-col border rounded-[4px]",{"bg-green-100 text-green-600 border-green-600":e.status==="success","bg-red-200 text-red-600 border-red-600":e.status==="error","bg-blue-100 text-blue-700 border-blue-600":e.status==="info","bg-orange-200 text-orange-600 border-orange-600":e.status==="warning"},{"h-[72px]":!e.description}),children:[e.status==="success"?Z(GD,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="warning"?Z(jD,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="error"?Z(WD,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):Z(zD,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}),Z(BD,{className:"text-grey-900 font-bold text-sm",children:e.title}),e.description&&Z(UD,{className:"mt-2 text-[10px] md:text-xs text-grey-800",children:e.description}),Z(HD,{className:"absolute top-7 right-5 md:right-7",children:Z(VD,{className:"w-4 h-4 text-grey-900"})})]}),Z(MD,{})]});function KD(){const[e,t]=x.useState(localStorage.theme),r=e==="dark"?"light":"dark";return x.useEffect(()=>{const n=window.document.documentElement;n.classList.remove(r),n.classList.add(e),localStorage.setItem("theme",e)},[e,r]),[r,t]}const YD=new Date,e1=50,qD=30;function QD(e,t){try{const r=e.hasOwnProperty("index")?"index":e.hasOwnProperty("Index")?"Index":null,n=r?e[r]:null,i=e[t],o=typeof i,a=t.toLowerCase().includes("date")||t.toLowerCase()==="index"||n&&typeof n=="string"&&(n.toLowerCase().includes("date")||n.toLowerCase().includes("day")||n.toLowerCase().includes("time")||n.toLowerCase().includes("timestamp")||n.toLowerCase().includes("year")||n.toLowerCase().includes("month")||n.toLowerCase().includes("week")||n.toLowerCase().includes("hour")||n.toLowerCase().includes("minute"));if(o==="string"&&i.startsWith("http"))return(i==null?void 0:i.toString().length)??0;if(a){if(typeof i=="string")return(i==null?void 0:i.toString().length)??0;try{const l=new Date(i);let u="";return l.getUTCHours()===0&&l.getUTCMinutes()===0&&l.getUTCSeconds()===0&&l.getMilliseconds()===0?u=l.toISOString().split("T")[0]:(u=l.toISOString(),u=u.split("T")[0]+" "+u.split("T")[1].split(".")[0]),(u==null?void 0:u.toString().length)??0}catch{return(i==null?void 0:i.toString().length)??0}}return(i==null?void 0:i.toString().length)??0}catch{return 0}}function ZD({data:e,columns:t,title:r}){const[n,i]=KD(),[o,a]=x.useState(n==="light"),s=J=>{i(n),a(J)},[l,u]=Yo("rowsPerPage",qD),[c,f]=Yo("advanced",!1),[h,d]=Yo("colors",!1),[m,p]=x.useState([]),[g,v]=x.useState(""),[w,y]=Yo("fontSize","1"),[S,N]=x.useState(t.length>e1),M=t.reduce((J,ce,K)=>(J[ce]=K<e1,J),{}),[_,C]=x.useState(M),A=(J,ce,K)=>{const k=Math.max(...J.map(F=>QD(F,ce)),K.length+8);return Math.min(400,k*12)},L=x.useMemo(()=>[...t.map((J,ce)=>({accessorKey:J,id:J,header:J,size:A(e,J,J),footer:J,cell:({row:K})=>{const O=K.original.hasOwnProperty("index")?"index":K.original.hasOwnProperty("Index")?"Index":null,b=O?K.original[O]:null,k=K.original[J],F=typeof k,H=J.toLowerCase().includes("date")||J.toLowerCase()==="index"||b&&typeof b=="string"&&(b.toLowerCase().includes("date")||b.toLowerCase().includes("day")||b.toLowerCase().includes("time")||b.toLowerCase().includes("timestamp")||b.toLowerCase().includes("year")||b.toLowerCase().includes("month")||b.toLowerCase().includes("week")||b.toLowerCase().includes("hour")||b.toLowerCase().includes("minute"));if(F==="string"&&k.startsWith("http"))return Z("a",{className:"_hyper-link",href:k,target:"_blank",rel:"noreferrer",children:k});if(H){if(typeof k=="string")return Z("p",{children:k});try{const Y=new Date(k);let te="";return Y.getUTCHours()===0&&Y.getUTCMinutes()===0&&Y.getUTCSeconds()===0&&Y.getMilliseconds()===0?te=Y.toISOString().split("T")[0]:(te=Y.toISOString(),te=te.split("T")[0]+" "+te.split("T")[1].split(".")[0]),Z("p",{children:te})}catch{return Z("p",{children:k})}}if(F==="number"){const Y=$R(k);return Z("p",{className:It("whitespace-nowrap",{"text-black dark:text-white":!h,"text-[#16A34A]":k>0&&h,"text-[#F87171]":k<0&&h,"text-[#404040]":k===0&&h}),children:k!==0?k>0?`${Y}`:`${Y}`:Y})}else if(F==="string")return Z("div",{dangerouslySetInnerHTML:{__html:dD(k)}});return Z("p",{children:k})}}))],[c,h]),[U,B]=x.useState(L.map(J=>J.id)),V=()=>B(t.map(J=>J.id)),q=x.useMemo(()=>{const J=U.map(K=>K),ce=L.map(K=>K.id);return!MR(J,ce)},[U,L]),ne=qS({data:e,columns:L,getCoreRowModel:BS(),getSortedRowModel:zS(),getFilteredRowModel:WS(),getPaginationRowModel:jS(),columnResizeMode:"onChange",onColumnVisibilityChange:C,onColumnOrderChange:B,onSortingChange:p,onGlobalFilterChange:v,globalFilterFn:LR,state:{sorting:m,globalFilter:g,columnOrder:U,columnVisibility:_},initialState:{pagination:{pageIndex:0,pageSize:l}}}),we=x.useRef(null),{rows:ve}=ne.getRowModel(),_e=ne.getVisibleFlatColumns();return Te(E1,{children:[Z(XD,{toast:{id:"max-columns",title:"Max 12 columns are visible by default",description:"You can change this by clicking on advanced and then top right 'Filter' button",status:"info"},open:S,setOpen:N}),Te("div",{ref:we,className:It("overflow-x-hidden h-screen"),children:[Te("div",{className:"bg-white/70 dark:bg-grey-900/70 backdrop-filter backdrop-blur flex gap-2 px-6 items-center justify-between pt-4 ",children:[Te("div",{className:"flex gap-10 items-center",children:[Te("div",{className:"flex gap-[14px]",children:[Z("input",{id:"advanced",type:"checkbox",checked:c,onChange:()=>f(!c)}),Z("label",{htmlFor:"advanced",children:"Advanced"})]}),c&&Te("div",{className:"flex gap-[14px]",children:[Z("input",{id:"colors",type:"checkbox",checked:h,onChange:()=>d(!h)}),Z("label",{htmlFor:"colors",children:"Colors"})]})]}),c&&Te("div",{className:"flex gap-10 items-center",children:[q&&Z("button",{onClick:()=>V(),className:"_btn h-9",children:"Reset Order"}),Z("button",{onClick:()=>{s(!o)},children:o?Z(IC,{className:"w-4 h-4"}):Z(bC,{className:"w-4 h-4"})}),Z(jv,{labelType:"row",value:w,onChange:y,label:"Font size",placeholder:"Select font size",groups:[{label:"Font size",items:[{label:"50%",value:"0.5"},{label:"75%",value:"0.75"},{label:"100%",value:"1"},{label:"125%",value:"1.25"},{label:"150%",value:"1.5"},{label:"175%",value:"1.75"},{label:"200%",value:"2"}]}]}),Z(wP,{table:ne,label:"Filter"})]})]}),Te("div",{className:"relative p-6 mb-20",id:"table",children:[Z("div",{className:"absolute -inset-0.5 bg-gradient-to-r rounded-md blur-md from-[#072e49]/30 via-[#0d345f]/30 to-[#0d3362]/30"}),Te("div",{className:"border border-grey-500/60 dark:border-grey-200/60 bg-white dark:bg-grey-900 rounded overflow-hidden relative z-20",children:[Te("div",{className:"_header relative gap-4 py-2 text-center text-xs flex items-center justify-between px-4 text-white",style:{fontSize:`${Number(w)*100}%`},children:[Z("div",{className:"w-1/3",children:Z("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"40",fill:"none",viewBox:"0 0 64 40",children:Z("path",{fill:"#fff",d:"M61.283 3.965H33.608v27.757h25.699V19.826H37.561v-3.965H63.26V3.965h-1.977zM39.538 23.792h15.815v3.965H37.561v-3.965h1.977zM59.306 9.913v1.983H37.561V7.931h21.745v1.982zM33.606 0h-3.954v3.965H33.606V0zM25.7 3.966H0V15.86h25.7v3.965H3.953v11.896h25.7V3.966h-3.955zm0 21.808v1.983H7.907v-3.965h17.791v1.982zm0-15.86v1.982H3.953V7.931h21.745v1.982zM37.039 35.693v2.952l-.246-.246-.245-.245-.245-.247-.245-.246-.246-.246-.245-.245-.245-.247-.247-.246-.245-.246-.245-.246-.245-.246-.246-.246h-.49v3.936h.49v-3.198l.246.246.245.246.245.246.245.246.246.246.246.246.245.247.246.245.245.246.245.247.245.246.246.245.245.246h.245v-3.936h-.49zM44.938 37.17h-.491v-1.477h-2.944v3.937h3.93v-2.46h-.495zm-2.944-.246v-.739h1.962v.984h-1.962v-.245zm2.944.984v1.23h-2.944V37.66h2.944v.247zM52.835 37.17h-.49v-1.477h-2.946v3.937h3.925v-2.46h-.489zm-2.944-.246v-.739h1.963v.984h-1.965l.002-.245zm2.944.984v1.23H49.89V37.66h2.946v.247zM29.174 35.693H25.739v3.936H29.663v-.491H26.229v-.984h2.943v-.493H26.229v-1.476h3.434v-.492h-.489zM13.37 35.693H9.934v3.937h3.925v-3.937h-.49zm0 .738v2.709h-2.945v-2.955h2.943l.001.246zM21.276 35.693h-3.435v3.937h.491v-1.476h3.434v-2.461h-.49zm0 .738v1.23h-2.944v-1.476h2.944v.246z"})})}),Z("p",{className:"font-bold w-1/3 flex flex-col gap-0.5 items-center",children:r}),Z("p",{className:"w-1/3 text-right text-xs",children:new Intl.DateTimeFormat("en-GB",{dateStyle:"full",timeStyle:"long"}).format(YD).replace(/:\d\d /," ")})]}),Z("div",{className:"overflow-x-auto",children:Te("table",{className:"text-sm",style:{fontSize:`${Number(w)*100}%`},children:[Z("thead",{children:ne.getHeaderGroups().map(J=>Z("tr",{className:It("!h-10 text-left"),children:J.headers.map(ce=>Z($F,{advanced:c,header:ce,table:ne},ce.id))},J.id))}),Z("tbody",{children:ne.getRowModel().rows.map((J,ce)=>Z("tr",{className:"!h-[64px] border-b border-grey-400",children:J.getVisibleCells().map(K=>Z("td",{className:It("whitespace-nowrap overflow-auto p-4",{"bg-grey-100 dark:bg-grey-850":ce%2===0,"bg-grey-200 dark:bg-[#202020]":ce%2===1}),style:{width:K.column.getSize()},children:Rf(K.column.columnDef.cell,K.getContext())},K.id))},J.id))}),ve.length>30&&_e.length>4&&Z("tfoot",{children:ne.getFooterGroups().map(J=>Z("tr",{children:J.headers.map(ce=>Z("th",{colSpan:ce.colSpan,className:"text-grey-500 bg-grey-100 dark:bg-grey-850 font-normal text-left text-sm h-10",children:ce.isPlaceholder?null:Rf(ce.column.columnDef.footer,ce.getContext())},ce.id))},J.id))})]})})]})]}),Te("div",{className:"fixed bg-white/70 dark:bg-grey-900/70 backdrop-filter backdrop-blur z-20 bottom-0 left-0 w-full flex gap-10 justify-between py-4 px-6",children:[Z(v7,{columns:t,data:e}),Te("div",{className:"flex items-center gap-10",children:[Z(MF,{currentPage:l,setCurrentPage:u,table:ne}),Z(x7,{})]})]})]})]})}function Cw(e){let t=null;return()=>(t==null&&(t=e()),t)}function JD(e,t){return e.filter(r=>r!==t)}function eI(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const i=[];return r.forEach(o=>i.push(o)),i}class tI{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=eI(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=JD(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class rI{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const i=this.config.exposeProperties[n];i!=null&&(r[n]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Aw="__NATIVE_FILE__",Rw="__NATIVE_URL__",Ow="__NATIVE_TEXT__",Fw="__NATIVE_HTML__",t1=Object.freeze(Object.defineProperty({__proto__:null,FILE:Aw,HTML:Fw,TEXT:Ow,URL:Rw},Symbol.toStringTag,{value:"Module"}));function kc(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const Zf={[Aw]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Fw]:{exposeProperties:{html:(e,t)=>kc(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Rw]:{exposeProperties:{urls:(e,t)=>kc(e,t,"").split(`
-`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Ow]:{exposeProperties:{text:(e,t)=>kc(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function nI(e,t){const r=Zf[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new rI(r);return n.loadDataTransfer(t),n}function bc(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Zf).filter(r=>{const n=Zf[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const iI=Cw(()=>/firefox/i.test(navigator.userAgent)),Pw=Cw(()=>!!window.safari);class r1{interpolate(t){const{xs:r,ys:n,c1s:i,c2s:o,c3s:a}=this;let s=r.length-1;if(t===r[s])return n[s];let l=0,u=a.length-1,c;for(;l<=u;){c=Math.floor(.5*(l+u));const d=r[c];if(d<t)l=c+1;else if(d>t)u=c-1;else return n[c]}s=Math.max(0,u);const f=t-r[s],h=f*f;return n[s]+i[s]*f+o[s]*h+a[s]*f*h}constructor(t,r){const{length:n}=t,i=[];for(let d=0;d<n;d++)i.push(d);i.sort((d,m)=>t[d]<t[m]?-1:1);const o=[],a=[];let s,l;for(let d=0;d<n-1;d++)s=t[d+1]-t[d],l=r[d+1]-r[d],o.push(s),a.push(l/s);const u=[a[0]];for(let d=0;d<o.length-1;d++){const m=a[d],p=a[d+1];if(m*p<=0)u.push(0);else{s=o[d];const g=o[d+1],v=s+g;u.push(3*v/((v+g)/m+(v+s)/p))}}u.push(a[a.length-1]);const c=[],f=[];let h;for(let d=0;d<u.length-1;d++){h=a[d];const m=u[d],p=1/o[d],g=m+u[d+1]-h-h;c.push((h-m-g)*p),f.push(g*p*p)}this.xs=t,this.ys=r,this.c1s=u,this.c2s=c,this.c3s=f}}const oI=1;function Dw(e){const t=e.nodeType===oI?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function Ms(e){return{x:e.clientX,y:e.clientY}}function aI(e){var t;return e.nodeName==="IMG"&&(iI()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function sI(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return Pw()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function lI(e,t,r,n,i){const o=aI(t),s=Dw(o?e:t),l={x:r.x-s.x,y:r.y-s.y},{offsetWidth:u,offsetHeight:c}=e,{anchorX:f,anchorY:h}=n,{dragPreviewWidth:d,dragPreviewHeight:m}=sI(o,t,u,c),p=()=>{let M=new r1([0,.5,1],[l.y,l.y/c*m,l.y+m-c]).interpolate(h);return Pw()&&o&&(M+=(window.devicePixelRatio-1)*m),M},g=()=>new r1([0,.5,1],[l.x,l.x/u*d,l.x+d-u]).interpolate(f),{offsetX:v,offsetY:w}=i,y=v===0||v,S=w===0||w;return{x:y?v:g(),y:S?w:p()}}class uI{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,r){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}}function cI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){cI(e,i,r[i])})}return e}class fI{profile(){var t,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,r,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,r,n){this.sourceNodes.set(t,r),this.sourceNodeOptions.set(t,n);const i=a=>this.handleDragStart(a,t),o=a=>this.handleSelectStart(a);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",i),r.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),r.removeEventListener("dragstart",i),r.removeEventListener("selectstart",o),r.setAttribute("draggable","false")}}connectDropTarget(t,r){const n=a=>this.handleDragEnter(a,t),i=a=>this.handleDragOver(a,t),o=a=>this.handleDrop(a,t);return r.addEventListener("dragenter",n),r.addEventListener("dragover",i),r.addEventListener("drop",o),()=>{r.removeEventListener("dragenter",n),r.removeEventListener("dragover",i),r.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(t);return n1({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(t);return n1({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(t1).some(r=>t1[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=nI(t,r),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var n;return(n=this.rootElement)===null||n===void 0?void 0:n.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,r){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(t,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(t,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(t,r){this.dropTargetIds.unshift(r)}constructor(t,r,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&Dw(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=Ms(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:s}=i,l=bc(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const c=this.monitor.getSourceId(),f=this.sourceNodes.get(c),h=this.sourcePreviewNodes.get(c)||f;if(h){const{anchorX:d,anchorY:m,offsetX:p,offsetY:g}=this.getCurrentSourcePreviewNodeOptions(),y=lI(f,h,a,{anchorX:d,anchorY:m},{offsetX:p,offsetY:g});s.setDragImage(h,y.x,y.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:s}=i,l=bc(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:Ms(i)}),o.some(s=>this.monitor.canDropOnTarget(s))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=Ms(i),this.scheduleHover(o),(o||[]).some(s=>this.monitor.canDropOnTarget(s))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else bc(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:Ms(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new uI(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new tI(this.isNodeInDocument)}}const dI=function(t,r,n){return new fI(t,r,n)};function hI(){const[e,t]=x.useState(null),[r,n]=x.useState("Interactive Table");x.useState(""),x.useEffect(()=>{const a=setInterval(()=>{if(window.json_data){const s=JSON.parse(window.json_data);console.log(s),t(s),s.title&&typeof s.title=="string"&&n(s.title),clearInterval(a)}},100);return()=>clearInterval(a)},[]);const o=(a=>{var d;if(!a)return null;let s=(d=a.title)==null?void 0:d.replace(/<b>|<\/b>/g,"").replace(/ /g,"_"),l=new Date().toISOString().slice(0,10).replace(/-/g,""),u=new Date().toISOString().slice(11,19).replace(/:/g,"");window.title=`openbb_${s}_${l}_${u}`;const c=a.columns;a.index;const h=a.data.map((m,p)=>{const g={};return m.forEach((v,w)=>{g[c[w]]=v}),g});return{columns:c,data:h}})(e);return Z("div",{className:"relative h-full bg-white dark:bg-black text-black dark:text-white",children:Z(rF,{backend:dI,children:o&&Z(ZD,{title:r,data:o.data,columns:o.columns})})})}qm.render(Z(nr.StrictMode,{children:Z(hI,{})}),document.getElementById("root"));
+`;var r=Fd(e,t);return r}function AR(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Ge(e["!ref"]),o="",a=[],s,l=[],u=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)a[s]=Rt(s);for(var c=i.s.r;c<=i.e.r;++c)for(o=wt(c),s=i.s.c;s<=i.e.c;++s)if(t=a[s]+o,r=u?(e[c]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function A2(e,t,r){var n=r||{},i=+!n.skipHeader,o=e||{},a=0,s=0;if(o&&n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var l=typeof n.origin=="string"?ut(n.origin):n.origin;a=l.r,s=l.c}var u,c={s:{c:0,r:0},e:{c:s,r:a+t.length-1+i}};if(o["!ref"]){var f=Ge(o["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),a==-1&&(a=f.e.r+1,c.e.r=a+t.length-1+i)}else a==-1&&(a=0,c.e.r=t.length-1+i);var h=n.header||[],d=0;t.forEach(function(p,g){Et(p).forEach(function(v){(d=h.indexOf(v))==-1&&(h[d=h.length]=v);var w=p[v],y="z",S="",b=Le({c:s+d,r:a+g+i});u=Ma(o,b),w&&typeof w=="object"&&!(w instanceof Date)?o[b]=w:(typeof w=="number"?y="n":typeof w=="boolean"?y="b":typeof w=="string"?y="s":w instanceof Date?(y="d",n.cellDates||(y="n",w=zt(w)),S=n.dateNF||Je[14]):w===null&&n.nullError&&(y="e",w=0),u?(u.t=y,u.v=w,delete u.w,delete u.R,S&&(u.z=S)):o[b]=u={t:y,v:w},S&&(u.z=S))})}),c.e.c=Math.max(c.e.c,s+h.length-1);var m=wt(a);if(i)for(d=0;d<h.length;++d)o[Rt(d+s)+m]={t:"s",v:h[d]};return o["!ref"]=nt(c),o}function RR(e,t){return A2(null,e,t)}function Ma(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=ut(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Ma(e,Le(t)):Ma(e,Le({r:t,c:r||0}))}function OR(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function FR(){return{SheetNames:[],Sheets:{}}}function PR(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var o=r.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var a=o&&o[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=a+i)!=-1;++i);}if(g2(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function DR(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=OR(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function IR(e,t){return e.z=t,e}function R2(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function kR(e,t,r){return R2(e,"#"+t,r)}function bR(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function NR(e,t,r,n){for(var i=typeof t!="string"?t:Ge(t),o=typeof t=="string"?t:nt(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=Ma(e,a,s);l.t="n",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=r,n&&(l.D=!0))}return e}var Ac={encode_col:Rt,encode_row:wt,encode_cell:Le,encode_range:nt,decode_col:xd,decode_row:vd,split_cell:Y4,decode_cell:ut,decode_range:Zt,format_cell:en,sheet_add_aoa:Rx,sheet_add_json:A2,sheet_add_dom:y2,aoa_to_sheet:yo,json_to_sheet:RR,table_to_sheet:E2,table_to_book:iR,sheet_to_csv:Fd,sheet_to_txt:C2,sheet_to_json:Hl,sheet_to_html:w2,sheet_to_formulae:AR,sheet_to_row_object_array:Hl,sheet_get_cell:Ma,book_new:FR,book_append_sheet:PR,book_set_sheet_visibility:DR,cell_set_number_format:IR,cell_set_hyperlink:R2,cell_set_internal_link:kR,cell_add_comment:bR,sheet_set_array_formula:NR,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function $R(e){if(e<10)return e.toFixed(4);if(e<100)return e.toFixed(3);if(e<1e3)return e.toFixed(2);const t=Math.abs(e);return t>=1e12?`${(e/1e9).toFixed(2)}T`:t>=1e9?`${(e/1e9).toFixed(2)}B`:t>=1e6?`${(e/1e6).toFixed(2)}M`:t>=1e3?`${(e/1e3).toFixed(2)}K`:e.toFixed(2)}function MR(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}const LR=(e,t,r,n)=>{const i=LC(e.getValue(t),r);return n(i),i},O2=(e,t)=>{const r=URL.createObjectURL(e),n=document.createElement("a");n.setAttribute("href",r),n.setAttribute("download",t),n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)},Ng=(e,t,r)=>{const n=t,i=r.map(a=>n.map(s=>a[s])),o=[n,...i];if(e==="csv"){const a=o.map(l=>l.join(",")).join(`
+`),s=new Blob([a],{type:"text/csv;charset=utf-8;"});O2(s,`${window.title}.csv`)}else{const a=Ac.book_new(),s=Ac.aoa_to_sheet(o);Ac.book_append_sheet(a,s,"Sheet1"),_R(a,`${window.title}.xlsx`)}},BR=e=>{const t=document.getElementById(e);GC.toBlob(t).then(function(r){O2(r,`${window.title}.png`)})},F2=x.createContext({dragDropManager:void 0});function tr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var $g=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Rc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mg={INIT:"@@redux/INIT"+Rc(),REPLACE:"@@redux/REPLACE"+Rc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Rc()}};function UR(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function P2(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(tr(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(tr(1));return r(P2)(e,t)}if(typeof e!="function")throw new Error(tr(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(tr(3));return o}function f(p){if(typeof p!="function")throw new Error(tr(4));if(l)throw new Error(tr(5));var g=!0;return u(),s.push(p),function(){if(g){if(l)throw new Error(tr(6));g=!1,u();var w=s.indexOf(p);s.splice(w,1),a=null}}}function h(p){if(!UR(p))throw new Error(tr(7));if(typeof p.type>"u")throw new Error(tr(8));if(l)throw new Error(tr(9));try{l=!0,o=i(o,p)}finally{l=!1}for(var g=a=s,v=0;v<g.length;v++){var w=g[v];w()}return p}function d(p){if(typeof p!="function")throw new Error(tr(10));i=p,h({type:Mg.REPLACE})}function m(){var p,g=f;return p={subscribe:function(w){if(typeof w!="object"||w===null)throw new Error(tr(11));function y(){w.next&&w.next(c())}y();var S=g(y);return{unsubscribe:S}}},p[$g]=function(){return this},p}return h({type:Mg.INIT}),n={dispatch:h,subscribe:f,getState:c,replaceReducer:d},n[$g]=m,n}function Oe(e,t,...r){if(HR()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function HR(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function VR(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function WR(e,t){return e.filter(r=>r!==t)}function D2(e){return typeof e=="object"}function zR(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function GR(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Pd="dnd-core/INIT_COORDS",Eu="dnd-core/BEGIN_DRAG",Dd="dnd-core/PUBLISH_DRAG_SOURCE",Su="dnd-core/HOVER",_u="dnd-core/DROP",Tu="dnd-core/END_DRAG";function Lg(e,t){return{type:Pd,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const jR={type:Pd,payload:{clientOffset:null,sourceClientOffset:null}};function XR(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Lg(o)),KR(r,s,l);const u=QR(r,s);if(u==null){e.dispatch(jR);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");YR(a),c=a(u)}e.dispatch(Lg(o,c));const h=l.getSource(u).beginDrag(s,u);if(h==null)return;qR(h),l.pinSource(u);const d=l.getSourceType(u);return{type:Eu,payload:{itemType:d,item:h,sourceId:u,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function KR(e,t,r){Oe(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){Oe(r.getSource(n),"Expected sourceIds to be registered.")})}function YR(e){Oe(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function qR(e){Oe(D2(e),"Item must be an object.")}function QR(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ZR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){ZR(e,i,r[i])})}return e}function eO(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();tO(n),iO(n).forEach((a,s)=>{const l=rO(a,s,i,n),u={type:_u,payload:{dropResult:JR({},r,l)}};e.dispatch(u)})}}function tO(e){Oe(e.isDragging(),"Cannot call drop while not dragging."),Oe(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function rO(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return nO(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function nO(e){Oe(typeof e>"u"||D2(e),"Drop result must either be an object or undefined.")}function iO(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function oO(e){return function(){const r=e.getMonitor(),n=e.getRegistry();aO(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Tu}}}function aO(e){Oe(e.isDragging(),"Cannot call endDrag while not dragging.")}function Vf(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function sO(e){return function(r,{clientOffset:n}={}){lO(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return cO(i,a,s),uO(i,o,a),fO(i,o,a),{type:Su,payload:{targetIds:i,clientOffset:n||null}}}}function lO(e){Oe(Array.isArray(e),"Expected targetIds to be an array.")}function uO(e,t,r){Oe(t.isDragging(),"Cannot call hover while not dragging."),Oe(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];Oe(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);Oe(o,"Expected targetIds to be registered.")}}function cO(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);Vf(o,r)||e.splice(n,1)}}function fO(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function dO(e){return function(){if(e.getMonitor().isDragging())return{type:Dd}}}function hO(e){return{beginDrag:XR(e),publishDragSource:dO(e),hover:sO(e),drop:eO(e),endDrag:oO(e)}}class pO{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&r(s)}}const i=hO(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=n(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function gO(e,t){return{x:e.x+t.x,y:e.y+t.y}}function I2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mO(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:I2(gO(t,n),r)}function vO(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:I2(t,r)}const ga=[],Id=[];ga.__IS_NONE__=!0;Id.__IS_ALL__=!0;function xO(e,t){return e===ga?!1:e===Id||typeof t>"u"?!0:GR(t,e).length>0}class wO{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;Oe(typeof t=="function","listener must be a function."),Oe(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!xO(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Oe(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return Oe(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(Oe(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return Vf(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(Oe(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!Vf(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return n?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return mO(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return vO(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const Bg=typeof global<"u"?global:self,k2=Bg.MutationObserver||Bg.WebKitMutationObserver;function b2(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function yO(e){let t=1;const r=new k2(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const EO=typeof k2=="function"?yO:b2;class SO{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=EO(this.flush),this.requestErrorThrow=b2(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class _O{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class TO{create(t){const r=this.freeTasks,n=r.length?r.pop():new _O(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const N2=new SO,CO=new TO(N2.registerPendingError);function AO(e){N2.enqueueTask(CO.create(e))}const kd="dnd-core/ADD_SOURCE",bd="dnd-core/ADD_TARGET",Nd="dnd-core/REMOVE_SOURCE",Cu="dnd-core/REMOVE_TARGET";function RO(e){return{type:kd,payload:{sourceId:e}}}function OO(e){return{type:bd,payload:{targetId:e}}}function FO(e){return{type:Nd,payload:{sourceId:e}}}function PO(e){return{type:Cu,payload:{targetId:e}}}function DO(e){Oe(typeof e.canDrag=="function","Expected canDrag to be a function."),Oe(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Oe(typeof e.endDrag=="function","Expected endDrag to be a function.")}function IO(e){Oe(typeof e.canDrop=="function","Expected canDrop to be a function."),Oe(typeof e.hover=="function","Expected hover to be a function."),Oe(typeof e.drop=="function","Expected beginDrag to be a function.")}function Wf(e,t){if(t&&Array.isArray(e)){e.forEach(r=>Wf(r,!1));return}Oe(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var or;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(or||(or={}));let kO=0;function bO(){return kO++}function NO(e){const t=bO().toString();switch(e){case or.SOURCE:return`S${t}`;case or.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function Ug(e){switch(e[0]){case"S":return or.SOURCE;case"T":return or.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function Hg(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class $O{addSource(t,r){Wf(t),DO(r);const n=this.addHandler(or.SOURCE,t,r);return this.store.dispatch(RO(n)),n}addTarget(t,r){Wf(t,!0),IO(r);const n=this.addHandler(or.TARGET,t,r);return this.store.dispatch(OO(n)),n}containsHandler(t){return Hg(this.dragSources,t)||Hg(this.dropTargets,t)}getSource(t,r=!1){return Oe(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Oe(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Oe(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Oe(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return Ug(t)===or.SOURCE}isTargetId(t){return Ug(t)===or.TARGET}removeSource(t){Oe(this.getSource(t),"Expected an existing source."),this.store.dispatch(FO(t)),AO(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Oe(this.getTarget(t),"Expected an existing target."),this.store.dispatch(PO(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);Oe(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){Oe(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=NO(t);return this.types.set(i,r),t===or.SOURCE?this.dragSources.set(i,n):t===or.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const MO=(e,t)=>e===t;function LO(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function BO(e,t,r=MO){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function UO(e=ga,t){switch(t.type){case Su:break;case kd:case bd:case Cu:case Nd:return ga;case Eu:case Dd:case Tu:case _u:default:return Id}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=zR(r,n);if(!(i.length>0||!BO(r,n)))return ga;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function HO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){HO(e,i,r[i])})}return e}const Vg={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function WO(e=Vg,t){const{payload:r}=t;switch(t.type){case Pd:case Eu:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Su:return LO(e.clientOffset,r.clientOffset)?e:VO({},e,{clientOffset:r.clientOffset});case Tu:case _u:return Vg;default:return e}}function zO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){zO(e,i,r[i])})}return e}const GO={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function jO(e=GO,t){const{payload:r}=t;switch(t.type){case Eu:return Oi({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case Dd:return Oi({},e,{isSourcePublic:!0});case Su:return Oi({},e,{targetIds:r.targetIds});case Cu:return e.targetIds.indexOf(r.targetId)===-1?e:Oi({},e,{targetIds:WR(e.targetIds,r.targetId)});case _u:return Oi({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Tu:return Oi({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function XO(e=0,t){switch(t.type){case kd:case bd:return e+1;case Nd:case Cu:return e-1;default:return e}}function KO(e=0){return e+1}function YO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){YO(e,i,r[i])})}return e}function QO(e={},t){return{dirtyHandlerIds:UO(e.dirtyHandlerIds,{type:t.type,payload:qO({},t.payload,{prevTargetIds:VR(e,"dragOperation.targetIds",[])})}),dragOffset:WO(e.dragOffset,t),refCount:XO(e.refCount,t),dragOperation:jO(e.dragOperation,t),stateId:KO(e.stateId)}}function ZO(e,t=void 0,r={},n=!1){const i=JO(n),o=new wO(i,new $O(i)),a=new pO(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function JO(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return P2(QO,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function eF(e,t){if(e==null)return{};var r=tF(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tF(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let Wg=0;const Qs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var rF=x.memo(function(t){var{children:r}=t,n=eF(t,["children"]);const[i,o]=nF(n);return x.useEffect(()=>{if(o){const a=$2();return++Wg,()=>{--Wg===0&&(a[Qs]=null)}}},[]),Q(F2.Provider,{value:i,children:r})});function nF(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=iF(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function iF(e,t=$2(),r,n){const i=t;return i[Qs]||(i[Qs]={dragDropManager:ZO(e,t,r,n)}),i[Qs]}function $2(){return typeof global<"u"?global:window}var oF=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var a=o[i];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r};const oi=typeof window<"u"?x.useLayoutEffect:x.useEffect;function aF(e,t,r){const[n,i]=x.useState(()=>t(e)),o=x.useCallback(()=>{const a=t(e);oF(n,a)||(i(a),r&&r())},[n,e,r]);return oi(o),[n,o]}function sF(e,t,r){const[n,i]=aF(e,t,r);return oi(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function M2(e,t,r){return sF(t,e||(()=>({})),()=>r.reconnect())}function L2(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),x.useMemo(()=>typeof e=="function"?e():e,r)}function lF(e){return x.useMemo(()=>e.hooks.dragSource(),[e])}function uF(e){return x.useMemo(()=>e.hooks.dragPreview(),[e])}let Oc=!1,Fc=!1;class cF{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Oe(!Oc,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Oc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Oc=!1}}isDragging(){if(!this.sourceId)return!1;Oe(!Fc,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Fc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Fc=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let Pc=!1;class fF{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;Oe(!Pc,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return Pc=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{Pc=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function dF(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function hF(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function zf(e,t,r,n){let i=r?r.call(n,e,t):void 0;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l<o.length;l++){const u=o[l];if(!s(u))return!1;const c=e[u],f=t[u];if(i=r?r.call(n,c,f,u):void 0,i===!1||i===void 0&&c!==f)return!1}return!0}function Gf(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function pF(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function gF(e){return(t=null,r=null)=>{if(!x.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return pF(n),mF(n,r?o=>e(o,r):e)}}function B2(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=gF(n);t[r]=()=>i}}),t}function zg(e,t){typeof e=="function"?e(t):e.current=t}function mF(e,t){const r=e.ref;return Oe(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?x.cloneElement(e,{ref:n=>{zg(r,n),zg(t,n)}}):x.cloneElement(e,{ref:t})}class vF{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!zf(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!zf(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=B2({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,Gf(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,Gf(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class xF{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!zf(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=B2({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,Gf(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function _o(){const{dragDropManager:e}=x.useContext(F2);return Oe(e!=null,"Expected drag drop context"),e}function wF(e,t){const r=_o(),n=x.useMemo(()=>new vF(r.getBackend()),[r]);return oi(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),oi(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function yF(){const e=_o();return x.useMemo(()=>new cF(e),[e])}class EF{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function SF(e,t,r){const n=x.useMemo(()=>new EF(e,t,r),[t,r]);return x.useEffect(()=>{n.spec=e},[e]),n}function _F(e){return x.useMemo(()=>{const t=e.type;return Oe(t!=null,"spec.type must be defined"),t},[e])}function TF(e,t,r){const n=_o(),i=SF(e,t,r),o=_F(e);oi(function(){if(o!=null){const[s,l]=hF(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),l}},[n,t,r,i,o])}function CF(e,t){const r=L2(e,t);Oe(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=yF(),i=wF(r.options,r.previewOptions);return TF(r,n,i),[M2(r.collect,n,i),lF(i),uF(i)]}function AF(e){return x.useMemo(()=>e.hooks.dropTarget(),[e])}function RF(e){const t=_o(),r=x.useMemo(()=>new xF(t.getBackend()),[t]);return oi(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function OF(){const e=_o();return x.useMemo(()=>new fF(e),[e])}function FF(e){const{accept:t}=e;return x.useMemo(()=>(Oe(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class PF{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function DF(e,t){const r=x.useMemo(()=>new PF(e,t),[t]);return x.useEffect(()=>{r.spec=e},[e]),r}function IF(e,t,r){const n=_o(),i=DF(e,t),o=FF(e);oi(function(){const[s,l]=dF(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),l},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function kF(e,t){const r=L2(e,t),n=OF(),i=RF(r.options);return IF(r,n,i),[M2(r.collect,n,i),AF(i)]}function bF({column:e,table:t,numberOfColumns:r}){const n=t.getPreFilteredRowModel().flatRows.map(u=>u.getValue(e.id)),i=n.every(u=>typeof u=="string"||u===null),o=n.every(u=>typeof u=="number"||u===null),a=n.some(u=>typeof u=="string"&&u.includes(" ")),s=e.getFilterValue();if(e.id.toLowerCase().includes("date")||e.id.toLowerCase()==="index"&&!a){let u=function(c){if(!c)return null;const f=new Date(c),h=f.getFullYear(),d=f.getMonth()+1>9?f.getMonth()+1:`0${f.getMonth()+1}`,m=f.getDate()>9?f.getDate():`0${f.getDate()}`;return`${h}-${d}-${m}`};return Te("div",{className:"flex gap-2 h-10",children:[Q("input",{type:"datetime-local",value:u(s==null?void 0:s[0])??"",onChange:c=>{const f=new Date(c.target.value).getTime();e.setFilterValue(h=>[f,h==null?void 0:h[1]])},placeholder:"Start date",className:"_input"}),Q("input",{type:"datetime-local",value:u(s==null?void 0:s[1])??"",onChange:c=>{const f=new Date(c.target.value).getTime();e.setFilterValue(h=>[h==null?void 0:h[0],f])},placeholder:"End date",className:"_input"})]})}return o?Te("div",{className:"flex gap-0.5 h-10",children:[Q("input",{type:"number",value:(s==null?void 0:s[0])??"",onChange:u=>e.setFilterValue(c=>[u.target.value,c==null?void 0:c[1]]),placeholder:"Min",className:"_input p-0.5"}),Q("input",{type:"number",value:(s==null?void 0:s[1])??"",onChange:u=>e.setFilterValue(c=>[c==null?void 0:c[0],u.target.value]),placeholder:"Max",className:"_input p-0.5"})]}):i?Q("div",{className:"h-10",children:Q("input",{type:"text",value:s??"",onChange:u=>e.setFilterValue(u.target.value),placeholder:"Search...",className:"_input"})}):Q("div",{className:"h-10"})}const NF=(e,t,r)=>(r.splice(r.indexOf(t),0,r.splice(r.indexOf(e),1)[0]),[...r]),$F=({header:e,table:t,advanced:r})=>{const{getState:n,setColumnOrder:i}=t,{columnOrder:o}=n(),{column:a}=e,[,s]=kF({accept:"column",drop:f=>{const h=NF(f.id,a.id,o);i(h)}}),[{isDragging:l},u,c]=CF({collect:f=>({isDragging:f.isDragging()}),item:()=>a,type:"column"});return Te("th",{className:"h-[70px] relative p-4",colSpan:e.colSpan,style:{width:e.getSize(),opacity:l?.5:1},ref:s,children:[Q("div",{ref:c,className:"flex gap-1 flex-col",children:e.isPlaceholder?null:Te(E1,{children:[Te("div",{className:"font-bold uppercase text-grey-700 dark:text-white tracking-widest flex gap-2 whitespace-nowrap justify-between",children:[Te("div",{onClick:e.column.getToggleSortingHandler(),className:It("flex gap-1",{"cursor-pointer select-none":e.column.getCanSort()}),children:[Rf(e.column.columnDef.header,e.getContext()),e.column.getCanSort()&&Te("div",{className:"flex flex-col gap-0.5 items-center justify-center",children:[Q("button",{className:It({"text-[#669DCB]":e.column.getIsSorted()==="asc","text-grey-600":e.column.getIsSorted()!=="asc"}),children:Q("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"4",fill:"none",viewBox:"0 0 11 5",children:Q("path",{fill:"currentColor",d:"M10.333 5l-5-5-5 5"})})}),Q("button",{className:It({"text-[#669DCB]":e.column.getIsSorted()==="desc","text-grey-600":e.column.getIsSorted()!=="desc"}),children:Q("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"4",fill:"none",viewBox:"0 0 11 5",children:Q("path",{fill:"currentColor",d:"M.333 0l5 5 5-5"})})})]})]}),r&&a.id!=="select"&&Q("button",{ref:u,className:"text-grey-600 hover:text-grey-800 dark:hover:text-white",children:Q("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",fill:"none",viewBox:"0 0 17 16",children:Q("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M3.667 6l-2 2 2 2M6.333 3.333l2-2 2 2M10.333 12.667l-2 2-2-2M13 6l2 2-2 2M1.667 8H15M8.333 1.333v13.334"})})})]}),r&&e.column.getCanFilter()?Q("div",{children:Q(bF,{column:e.column,table:t,numberOfColumns:o.length})}):null]})}),Q("button",{className:"resizer bg-grey-300/20 dark:hover:bg-white absolute top-0 right-0 w-0.5 h-full",onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler()})]})};function MF({table:e,currentPage:t,setCurrentPage:r}){const n=e.getFilteredRowModel().rows.length;return Te("div",{className:"flex items-center gap-8",children:[Q(jv,{value:t,onChange:i=>{r(i),i===`All (${n})`?e.setPageSize(n):e.setPageSize(i)},labelType:"row",label:"Rows per page",placeholder:"Select rows per page",groups:[{label:"Rows per page",items:[10,20,30,40,50,`All (${n})`].map(i=>({label:`${i}`,value:i}))}]}),Te("span",{className:"flex items-center gap-1",children:[Q("strong",{children:e.getState().pagination.pageIndex+1}),"of",Q("strong",{children:e.getPageCount()})]}),Te("div",{children:[Q("button",{className:It("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanPreviousPage(),"dark:text-white":e.getCanPreviousPage()}),onClick:()=>e.setPageIndex(0),disabled:!e.getCanPreviousPage(),children:"<<"}),Q("button",{className:It("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanPreviousPage(),"dark:text-white":e.getCanPreviousPage()}),onClick:()=>e.previousPage(),disabled:!e.getCanPreviousPage(),children:"<"}),Q("button",{className:It("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanNextPage(),"dark:text-white":e.getCanNextPage()}),onClick:()=>e.nextPage(),disabled:!e.getCanNextPage(),children:">"}),Q("button",{className:It("px-2",{"text-grey-400 dark:text-grey-700":!e.getCanNextPage(),"dark:text-white":e.getCanNextPage()}),onClick:()=>e.setPageIndex(e.getPageCount()-1),disabled:!e.getCanNextPage(),children:">>"})]})]})}const Dc="rovingFocusGroup.onEntryFocus",LF={bubbles:!1,cancelable:!0},$d="RovingFocusGroup",[jf,U2,BF]=iu($d),[UF,Au]=rn($d,[BF]),[HF,VF]=UF($d),WF=x.forwardRef((e,t)=>x.createElement(jf.Provider,{scope:e.__scopeRovingFocusGroup},x.createElement(jf.Slot,{scope:e.__scopeRovingFocusGroup},x.createElement(zF,he({},e,{ref:t}))))),zF=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,f=x.useRef(null),h=He(t,f),d=ou(o),[m=null,p]=oo({prop:a,defaultProp:s,onChange:l}),[g,v]=x.useState(!1),w=Nt(u),y=U2(r),S=x.useRef(!1),[b,M]=x.useState(0);return x.useEffect(()=>{const _=f.current;if(_)return _.addEventListener(Dc,w),()=>_.removeEventListener(Dc,w)},[w]),x.createElement(HF,{scope:r,orientation:n,dir:d,loop:i,currentTabStopId:m,onItemFocus:x.useCallback(_=>p(_),[p]),onItemShiftTab:x.useCallback(()=>v(!0),[]),onFocusableItemAdd:x.useCallback(()=>M(_=>_+1),[]),onFocusableItemRemove:x.useCallback(()=>M(_=>_-1),[])},x.createElement(De.div,he({tabIndex:g||b===0?-1:0,"data-orientation":n},c,{ref:h,style:{outline:"none",...e.style},onMouseDown:Se(e.onMouseDown,()=>{S.current=!0}),onFocus:Se(e.onFocus,_=>{const A=!S.current;if(_.target===_.currentTarget&&A&&!g){const R=new CustomEvent(Dc,LF);if(_.currentTarget.dispatchEvent(R),!R.defaultPrevented){const L=y().filter(ne=>ne.focusable),U=L.find(ne=>ne.active),B=L.find(ne=>ne.id===m),Y=[U,B,...L].filter(Boolean).map(ne=>ne.ref.current);H2(Y)}}S.current=!1}),onBlur:Se(e.onBlur,()=>v(!1))})))}),GF="RovingFocusGroupItem",jF=x.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:o,...a}=e,s=io(),l=o||s,u=VF(GF,r),c=u.currentTabStopId===l,f=U2(r),{onFocusableItemAdd:h,onFocusableItemRemove:d}=u;return x.useEffect(()=>{if(n)return h(),()=>d()},[n,h,d]),x.createElement(jf.ItemSlot,{scope:r,id:l,focusable:n,active:i},x.createElement(De.span,he({tabIndex:c?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:Se(e.onMouseDown,m=>{n?u.onItemFocus(l):m.preventDefault()}),onFocus:Se(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Se(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const p=YF(m,u.orientation,u.dir);if(p!==void 0){m.preventDefault();let v=f().filter(w=>w.focusable).map(w=>w.ref.current);if(p==="last")v.reverse();else if(p==="prev"||p==="next"){p==="prev"&&v.reverse();const w=v.indexOf(m.currentTarget);v=u.loop?qF(v,w+1):v.slice(w+1)}setTimeout(()=>H2(v))}})})))}),XF={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KF(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function YF(e,t,r){const n=KF(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return XF[n]}function H2(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function qF(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const V2=WF,W2=jF;function QF(e,t){return x.useReducer((r,n)=>{const i=t[r][n];return i??r},e)}const es=e=>{const{present:t,children:r}=e,n=ZF(t),i=typeof r=="function"?r({present:n.isPresent}):x.Children.only(r),o=He(n.ref,i.ref);return typeof r=="function"||n.isPresent?x.cloneElement(i,{ref:o}):null};es.displayName="Presence";function ZF(e){const[t,r]=x.useState(),n=x.useRef({}),i=x.useRef(e),o=x.useRef("none"),a=e?"mounted":"unmounted",[s,l]=QF(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=Is(n.current);o.current=s==="mounted"?u:"none"},[s]),xt(()=>{const u=n.current,c=i.current;if(c!==e){const h=o.current,d=Is(u);e?l("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&h!==d?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),xt(()=>{if(t){const u=f=>{const d=Is(n.current).includes(f.animationName);f.target===t&&d&&Qr.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(o.current=Is(n.current))};return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:x.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function Is(e){return(e==null?void 0:e.animationName)||"none"}const z2="Radio",[JF,G2]=rn(z2),[e7,t7]=JF(z2),r7=x.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:o,disabled:a,value:s="on",onCheck:l,...u}=e,[c,f]=x.useState(null),h=He(t,p=>f(p)),d=x.useRef(!1),m=c?!!c.closest("form"):!0;return x.createElement(e7,{scope:r,checked:i,disabled:a},x.createElement(De.button,he({type:"button",role:"radio","aria-checked":i,"data-state":j2(i),"data-disabled":a?"":void 0,disabled:a,value:s},u,{ref:h,onClick:Se(e.onClick,p=>{i||l==null||l(),m&&(d.current=p.isPropagationStopped(),d.current||p.stopPropagation())})})),m&&x.createElement(o7,{control:c,bubbles:!d.current,name:n,value:s,checked:i,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),n7="RadioIndicator",i7=x.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...i}=e,o=t7(n7,r);return x.createElement(es,{present:n||o.checked},x.createElement(De.span,he({"data-state":j2(o.checked),"data-disabled":o.disabled?"":void 0},i,{ref:t})))}),o7=e=>{const{control:t,checked:r,bubbles:n=!0,...i}=e,o=x.useRef(null),a=Ov(r),s=Ev(t);return x.useEffect(()=>{const l=o.current,u=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(u,"checked").set;if(a!==r&&f){const h=new Event("click",{bubbles:n});f.call(l,r),l.dispatchEvent(h)}},[a,r,n]),x.createElement("input",he({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:o,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function j2(e){return e?"checked":"unchecked"}const a7=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],X2="RadioGroup",[s7,mI]=rn(X2,[Au,G2]),K2=Au(),Y2=G2(),[l7,u7]=s7(X2),c7=x.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:o,required:a=!1,disabled:s=!1,orientation:l,dir:u,loop:c=!0,onValueChange:f,...h}=e,d=K2(r),m=ou(u),[p,g]=oo({prop:o,defaultProp:i,onChange:f});return x.createElement(l7,{scope:r,name:n,required:a,disabled:s,value:p,onValueChange:g},x.createElement(V2,he({asChild:!0},d,{orientation:l,dir:m,loop:c}),x.createElement(De.div,he({role:"radiogroup","aria-required":a,"aria-orientation":l,"data-disabled":s?"":void 0,dir:m},h,{ref:t}))))}),f7="RadioGroupItem",d7=x.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...i}=e,o=u7(f7,r),a=o.disabled||n,s=K2(r),l=Y2(r),u=x.useRef(null),c=He(t,u),f=o.value===i.value,h=x.useRef(!1);return x.useEffect(()=>{const d=p=>{a7.includes(p.key)&&(h.current=!0)},m=()=>h.current=!1;return document.addEventListener("keydown",d),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",d),document.removeEventListener("keyup",m)}},[]),x.createElement(W2,he({asChild:!0},s,{focusable:!a,active:f}),x.createElement(r7,he({disabled:a,required:o.required,checked:f},l,i,{name:o.name,ref:c,onCheck:()=>o.onValueChange(i.value),onKeyDown:Se(d=>{d.key==="Enter"&&d.preventDefault()}),onFocus:Se(i.onFocus,()=>{var d;h.current&&((d=u.current)===null||d===void 0||d.click())})})))}),h7=x.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,i=Y2(r);return x.createElement(i7,he({},i,n,{ref:t}))}),p7=c7,g7=d7,m7=h7;function Yo(e,t){const[r,n]=x.useState(()=>{if(typeof window>"u")return t;try{const o=window.localStorage.getItem(e);return o?JSON.parse(o):t}catch(o){return console.log(o),t}});return[r,o=>{try{const a=o instanceof Function?o(r):o;n(a),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(a))}catch(a){console.log(a)}}]}const Gg=["csv","xlsx","png"];function v7({columns:e,data:t}){const[r,n]=Yo("exportType",Gg[0]),i=()=>{switch(r){case"csv":Ng("csv",e,t);break;case"xlsx":Ng("xlsx",e,t);break;case"png":BR("table");break}};return Te("div",{className:"flex gap-6 items-center",children:[Q("p",{children:"Export:"}),Q(p7,{onValueChange:n,defaultValue:r,className:"flex gap-4","aria-label":"Export",children:Gg.map(o=>Te("div",{className:"flex items-center gap-2 cursor-pointer",children:[Q(g7,{className:"bg-white border-black dark:bg-black dark:border-white border-2 w-5 h-5 rounded-full outline-none",value:o,id:o,children:Q(m7,{className:"flex items-center justify-center w-full h-full relative after:content-[''] after:block after:w-[11px] after:h-[11px] after:rounded-[50%] dark:after:bg-white after:bg-black"})}),Q("label",{className:"text-black dark:text-white text-sm leading-none uppercase",htmlFor:o,children:o})]},o))}),Q("button",{onClick:i,className:"_btn",children:"Export"})]})}function x7(){const[e,t]=x.useState(0);x.useEffect(()=>{const n=setInterval(()=>{t(i=>i+10)},1e4);return()=>clearInterval(n)},[]);const r=Math.floor(e/60);return Te("div",{className:"flex gap-2 items-center bg-grey-200 dark:bg-grey-800 rounded p-2 text-xs",children:[Te("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16",children:[Te("g",{strokeLinecap:"round",strokeLinejoin:"round",clipPath:"url(#clip0_106_4278)",children:[Q("path",{stroke:"currentColor",d:"M7.646 1.28a6.667 6.667 0 11-4.311 1.94M8 4.333V8l2 1.333"}),Q("path",{stroke:"currentColor",d:"M.701 3.693l3.22-.863.776 2.898"})]}),Q("defs",{children:Q("clipPath",{id:"clip0_106_4278",children:Q("path",{fill:"currentColor",d:"M0 0H16V16H0z"})})})]}),Q("span",{children:r>0?`${r} minutes ago`:"Just now"})]})}const w7=["Enter"," "],y7=["ArrowDown","PageUp","Home"],q2=["ArrowUp","PageDown","End"],E7=[...y7,...q2],Ru="Menu",[Xf,S7,_7]=iu(Ru),[xi,Q2]=rn(Ru,[_7,lu,Au]),Md=lu(),Z2=Au(),[T7,ts]=xi(Ru),[C7,Ld]=xi(Ru),A7=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:o,modal:a=!0}=e,s=Md(t),[l,u]=x.useState(null),c=x.useRef(!1),f=Nt(o),h=ou(i);return x.useEffect(()=>{const d=()=>{c.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>c.current=!1;return document.addEventListener("keydown",d,{capture:!0}),()=>{document.removeEventListener("keydown",d,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),x.createElement(Cv,s,x.createElement(T7,{scope:t,open:r,onOpenChange:f,content:l,onContentChange:u},x.createElement(C7,{scope:t,onClose:x.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:h,modal:a},n)))},R7=x.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=Md(r);return x.createElement(Av,he({},i,n,{ref:t}))}),J2="MenuPortal",[O7,F7]=xi(J2,{forceMount:void 0}),P7=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=ts(J2,t);return x.createElement(O7,{scope:t,forceMount:r},x.createElement(es,{present:r||o.open},x.createElement(od,{asChild:!0,container:i},n)))},Cn="MenuContent",[D7,ew]=xi(Cn),I7=x.forwardRef((e,t)=>{const r=F7(Cn,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=ts(Cn,e.__scopeMenu),a=Ld(Cn,e.__scopeMenu);return x.createElement(Xf.Provider,{scope:e.__scopeMenu},x.createElement(es,{present:n||o.open},x.createElement(Xf.Slot,{scope:e.__scopeMenu},a.modal?x.createElement(k7,he({},i,{ref:t})):x.createElement(b7,he({},i,{ref:t})))))}),k7=x.forwardRef((e,t)=>{const r=ts(Cn,e.__scopeMenu),n=x.useRef(null),i=He(t,n);return x.useEffect(()=>{const o=n.current;if(o)return Pv(o)},[]),x.createElement(tw,he({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Se(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),b7=x.forwardRef((e,t)=>{const r=ts(Cn,e.__scopeMenu);return x.createElement(tw,he({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),tw=x.forwardRef((e,t)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:d,disableOutsideScroll:m,...p}=e,g=ts(Cn,r),v=Ld(Cn,r),w=Md(r),y=Z2(r),S=S7(r),[b,M]=x.useState(null),_=x.useRef(null),A=He(t,_,g.onContentChange),R=x.useRef(0),L=x.useRef(""),U=x.useRef(0),B=x.useRef(null),V=x.useRef("right"),Y=x.useRef(0),ne=m?Bv:x.Fragment,me=m?{as:no,allowPinchZoom:!0}:void 0,xe=ie=>{var ae,K;const C=L.current+ie,N=S().filter(Z=>!Z.disabled),k=document.activeElement,F=(ae=N.find(Z=>Z.ref.current===k))===null||ae===void 0?void 0:ae.textValue,H=N.map(Z=>Z.textValue),z=G7(H,C,F),J=(K=N.find(Z=>Z.textValue===z))===null||K===void 0?void 0:K.ref.current;(function Z(te){L.current=te,window.clearTimeout(R.current),te!==""&&(R.current=window.setTimeout(()=>Z(""),1e3))})(C),J&&setTimeout(()=>J.focus())};x.useEffect(()=>()=>window.clearTimeout(R.current),[]),uv();const _e=x.useCallback(ie=>{var ae,K;return V.current===((ae=B.current)===null||ae===void 0?void 0:ae.side)&&X7(ie,(K=B.current)===null||K===void 0?void 0:K.area)},[]);return x.createElement(D7,{scope:r,searchRef:L,onItemEnter:x.useCallback(ie=>{_e(ie)&&ie.preventDefault()},[_e]),onItemLeave:x.useCallback(ie=>{var ae;_e(ie)||((ae=_.current)===null||ae===void 0||ae.focus(),M(null))},[_e]),onTriggerLeave:x.useCallback(ie=>{_e(ie)&&ie.preventDefault()},[_e]),pointerGraceTimerRef:U,onPointerGraceIntentChange:x.useCallback(ie=>{B.current=ie},[])},x.createElement(ne,me,x.createElement(cv,{asChild:!0,trapped:i,onMountAutoFocus:Se(o,ie=>{var ae;ie.preventDefault(),(ae=_.current)===null||ae===void 0||ae.focus()}),onUnmountAutoFocus:a},x.createElement(td,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:h,onDismiss:d},x.createElement(V2,he({asChild:!0},y,{dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:b,onCurrentTabStopIdChange:M,onEntryFocus:Se(l,ie=>{v.isUsingKeyboardRef.current||ie.preventDefault()})}),x.createElement(Rv,he({role:"menu","aria-orientation":"vertical","data-state":V7(g.open),"data-radix-menu-content":"",dir:v.dir},w,p,{ref:A,style:{outline:"none",...p.style},onKeyDown:Se(p.onKeyDown,ie=>{const K=ie.target.closest("[data-radix-menu-content]")===ie.currentTarget,C=ie.ctrlKey||ie.altKey||ie.metaKey,N=ie.key.length===1;K&&(ie.key==="Tab"&&ie.preventDefault(),!C&&N&&xe(ie.key));const k=_.current;if(ie.target!==k||!E7.includes(ie.key))return;ie.preventDefault();const H=S().filter(z=>!z.disabled).map(z=>z.ref.current);q2.includes(ie.key)&&H.reverse(),W7(H)}),onBlur:Se(e.onBlur,ie=>{ie.currentTarget.contains(ie.target)||(window.clearTimeout(R.current),L.current="")}),onPointerMove:Se(e.onPointerMove,Yf(ie=>{const ae=ie.target,K=Y.current!==ie.clientX;if(ie.currentTarget.contains(ae)&&K){const C=ie.clientX>Y.current?"right":"left";V.current=C,Y.current=ie.clientX}}))})))))))}),N7=x.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return x.createElement(De.div,he({role:"group"},n,{ref:t}))}),$7=x.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return x.createElement(De.div,he({},n,{ref:t}))}),Kf="MenuItem",jg="menu.itemSelect",M7=x.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...i}=e,o=x.useRef(null),a=Ld(Kf,e.__scopeMenu),s=ew(Kf,e.__scopeMenu),l=He(t,o),u=x.useRef(!1),c=()=>{const f=o.current;if(!r&&f){const h=new CustomEvent(jg,{bubbles:!0,cancelable:!0});f.addEventListener(jg,d=>n==null?void 0:n(d),{once:!0}),ed(f,h),h.defaultPrevented?u.current=!1:a.onClose()}};return x.createElement(L7,he({},i,{ref:l,disabled:r,onClick:Se(e.onClick,c),onPointerDown:f=>{var h;(h=e.onPointerDown)===null||h===void 0||h.call(e,f),u.current=!0},onPointerUp:Se(e.onPointerUp,f=>{var h;u.current||(h=f.currentTarget)===null||h===void 0||h.click()}),onKeyDown:Se(e.onKeyDown,f=>{const h=s.searchRef.current!=="";r||h&&f.key===" "||w7.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),L7=x.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...o}=e,a=ew(Kf,r),s=Z2(r),l=x.useRef(null),u=He(t,l),[c,f]=x.useState(!1),[h,d]=x.useState("");return x.useEffect(()=>{const m=l.current;if(m){var p;d(((p=m.textContent)!==null&&p!==void 0?p:"").trim())}},[o.children]),x.createElement(Xf.ItemSlot,{scope:r,disabled:n,textValue:i??h},x.createElement(W2,he({asChild:!0},s,{focusable:!n}),x.createElement(De.div,he({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:u,onPointerMove:Se(e.onPointerMove,Yf(m=>{n?a.onItemLeave(m):(a.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Se(e.onPointerLeave,Yf(m=>a.onItemLeave(m))),onFocus:Se(e.onFocus,()=>f(!0)),onBlur:Se(e.onBlur,()=>f(!1))}))))}),B7="MenuRadioGroup";xi(B7,{value:void 0,onValueChange:()=>{}});const U7="MenuItemIndicator";xi(U7,{checked:!1});const H7="MenuSub";xi(H7);function V7(e){return e?"open":"closed"}function W7(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function z7(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function G7(e,t,r){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=r?e.indexOf(r):-1;let a=z7(e,Math.max(o,0));i.length===1&&(a=a.filter(u=>u!==r));const l=a.find(u=>u.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function j7(e,t){const{x:r,y:n}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const s=t[o].x,l=t[o].y,u=t[a].x,c=t[a].y;l>n!=c>n&&r<(u-s)*(n-l)/(c-l)+s&&(i=!i)}return i}function X7(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return j7(r,t)}function Yf(e){return t=>t.pointerType==="mouse"?e(t):void 0}const K7=A7,Y7=R7,q7=P7,Q7=I7,Z7=N7,J7=$7,eP=M7,rw="DropdownMenu",[tP,vI]=rn(rw,[Q2]),wi=Q2(),[rP,nw]=tP(rw),nP=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=wi(t),u=x.useRef(null),[c=!1,f]=oo({prop:i,defaultProp:o,onChange:a});return x.createElement(rP,{scope:t,triggerId:io(),triggerRef:u,contentId:io(),open:c,onOpenChange:f,onOpenToggle:x.useCallback(()=>f(h=>!h),[f]),modal:s},x.createElement(K7,he({},l,{open:c,onOpenChange:f,dir:n,modal:s}),r))},iP="DropdownMenuTrigger",oP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,o=nw(iP,r),a=wi(r);return x.createElement(Y7,he({asChild:!0},a),x.createElement(De.button,he({type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},i,{ref:J0(t,o.triggerRef),onPointerDown:Se(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(o.onOpenToggle(),o.open||s.preventDefault())}),onKeyDown:Se(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&o.onOpenToggle(),s.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),aP=e=>{const{__scopeDropdownMenu:t,...r}=e,n=wi(t);return x.createElement(q7,he({},n,r))},sP="DropdownMenuContent",lP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=nw(sP,r),o=wi(r),a=x.useRef(!1);return x.createElement(Q7,he({id:i.contentId,"aria-labelledby":i.triggerId},o,n,{ref:t,onCloseAutoFocus:Se(e.onCloseAutoFocus,s=>{var l;a.current||(l=i.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:Se(e.onInteractOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0,c=l.button===2||u;(!i.modal||c)&&(a.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),uP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=wi(r);return x.createElement(Z7,he({},i,n,{ref:t}))}),cP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=wi(r);return x.createElement(J7,he({},i,n,{ref:t}))}),fP=x.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=wi(r);return x.createElement(eP,he({},i,n,{ref:t}))}),dP=nP,hP=oP,pP=aP,gP=lP,mP=uP,vP=cP,Xg=fP;function xP(e,t){x.useEffect(()=>{const r=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])}function wP({label:e,table:t}){const[r,n]=x.useState(!1),i=x.useRef(null);return xP(i,()=>n(!1)),x.useEffect(()=>{const o=a=>{a.key==="Escape"&&n(!1)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[]),Te(dP,{open:r,children:[Te(mP,{className:"flex flex-row items-center gap-2 text-sm",children:[Q(vP,{className:"whitespace-nowrap",children:e}),Te(hP,{onClick:()=>n(!r),className:"bg-white dark:bg-grey-900 whitespace-nowrap h-[36px] border-[1.5px] border-grey-700 rounded p-3 inline-flex items-center justify-center leading-none gap-[5px] shadow-[0_2px_10px] shadow-black/10 focus:shadow-[0_0_0_2px] focus:shadow-black data-[placeholder]:text-white outline-none","aria-label":e,children:[Q("span",{children:"Filter columns"}),Q($f,{className:It({"transform rotate-180 duration-200 transition":r})})]})]}),Q(pP,{children:Te(gP,{sideOffset:10,ref:i,className:"z-50 bg-white/80 dark:bg-grey-900/80 backdrop-filter backdrop-blur flex flex-col gap-4 overflow-auto border-[1.5px] border-grey-700 rounded p-3 max-h-[500px]  text-black dark:text-white",children:[Q(Xg,{children:Te("label",{className:"flex items-center gap-2",children:[Q("input",{type:"checkbox",checked:t.getIsAllColumnsVisible(),onChange:t.getToggleAllColumnsVisibilityHandler()}),"Toggle All"]})}),t.getAllLeafColumns().filter(o=>o.id!=="select").map(o=>Q(Xg,{children:Te("label",{className:"flex items-center gap-2",children:[Q("input",{type:"checkbox",checked:o.getIsVisible(),onChange:o.getToggleVisibilityHandler()}),o.id]})},o.id))]})})]})}var Vl={},yP={get exports(){return Vl},set exports(e){Vl=e}},Ye={},lo={},EP={get exports(){return lo},set exports(e){lo=e}},yi={};function iw(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function SP(e,t,r){}function _P(e,t,r){}var TP=/javascript\s*\:/img;function CP(e,t){return TP.test(t)?"":t}yi.whiteList=iw();yi.getDefaultWhiteList=iw;yi.onAttr=SP;yi.onIgnoreAttr=_P;yi.safeAttrValue=CP;var AP={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Vo=AP;function RP(e,t){e=Vo.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,a="";function s(){if(!n){var c=Vo.trim(e.slice(i,o)),f=c.indexOf(":");if(f!==-1){var h=Vo.trim(c.slice(0,f)),d=Vo.trim(c.slice(f+1));if(h){var m=t(i,a.length,h,d,c);m&&(a+=m+"; ")}}}i=o+1}for(;o<r;o++){var l=e[o];if(l==="/"&&e[o+1]==="*"){var u=e.indexOf("*/",o+2);if(u===-1)break;o=u+1,i=o+1,n=!1}else l==="("?n=!0:l===")"?n=!1:l===";"?n||s():l===`
+`&&s()}return Vo.trim(a)}var OP=RP,ks=yi,FP=OP;function Kg(e){return e==null}function PP(e){var t={};for(var r in e)t[r]=e[r];return t}function ow(e){e=PP(e||{}),e.whiteList=e.whiteList||ks.whiteList,e.onAttr=e.onAttr||ks.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||ks.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||ks.safeAttrValue,this.options=e}ow.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,a=r.safeAttrValue,s=FP(e,function(l,u,c,f,h){var d=n[c],m=!1;if(d===!0?m=d:typeof d=="function"?m=d(f):d instanceof RegExp&&(m=d.test(f)),m!==!0&&(m=!1),f=a(c,f),!!f){var p={position:u,sourcePosition:l,source:h,isWhite:m};if(m){var g=i(c,f,p);return Kg(g)?c+":"+f:g}else{var g=o(c,f,p);if(!Kg(g))return g}}});return s};var DP=ow;(function(e,t){var r=yi,n=DP;function i(a,s){var l=new n(s);return l.process(a)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o];typeof window<"u"&&(window.filterCSS=e.exports)})(EP,lo);var Bd={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},IP=lo.FilterCSS,kP=lo.getDefaultWhiteList,Wl=Bd;function aw(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var sw=new IP;function bP(e,t,r){}function NP(e,t,r){}function $P(e,t,r){}function MP(e,t,r){}function lw(e){return e.replace(BP,"&lt;").replace(UP,"&gt;")}function LP(e,t,r,n){if(r=pw(r),t==="href"||t==="src"){if(r=Wl.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(bs.lastIndex=0,bs.test(r))return""}else if(t==="style"){if(Yg.lastIndex=0,Yg.test(r)||(qg.lastIndex=0,qg.test(r)&&(bs.lastIndex=0,bs.test(r))))return"";n!==!1&&(n=n||sw,r=n.process(r))}return r=gw(r),r}var BP=/</g,UP=/>/g,HP=/"/g,VP=/&quot;/g,WP=/&#([a-zA-Z0-9]*);?/gim,zP=/&colon;?/gim,GP=/&newline;?/gim,bs=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Yg=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,qg=/u\s*r\s*l\s*\(.*/gi;function uw(e){return e.replace(HP,"&quot;")}function cw(e){return e.replace(VP,'"')}function fw(e){return e.replace(WP,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function dw(e){return e.replace(zP,":").replace(GP," ")}function hw(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Wl.trim(t)}function pw(e){return e=cw(e),e=fw(e),e=dw(e),e=hw(e),e}function gw(e){return e=uw(e),e=lw(e),e}function jP(){return""}function XP(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(a){return r?!0:Wl.indexOf(e,a)!==-1}var i=[],o=!1;return{onIgnoreTag:function(a,s,l){if(n(a))if(l.isClosing){var u="[/removed]",c=l.position+u.length;return i.push([o!==!1?o:l.position,c]),o=!1,u}else return o||(o=l.position),"[removed]";else return t(a,s,l)},remove:function(a){var s="",l=0;return Wl.forEach(i,function(u){s+=a.slice(l,u[0]),l=u[1]}),s+=a.slice(l),s}}}function KP(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function YP(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}Ye.whiteList=aw();Ye.getDefaultWhiteList=aw;Ye.onTag=bP;Ye.onIgnoreTag=NP;Ye.onTagAttr=$P;Ye.onIgnoreTagAttr=MP;Ye.safeAttrValue=LP;Ye.escapeHtml=lw;Ye.escapeQuote=uw;Ye.unescapeQuote=cw;Ye.escapeHtmlEntities=fw;Ye.escapeDangerHtml5Entities=dw;Ye.clearNonPrintableCharacter=hw;Ye.friendlyAttrValue=pw;Ye.escapeAttrValue=gw;Ye.onIgnoreTagStripAll=jP;Ye.StripTagBody=XP;Ye.stripCommentTag=KP;Ye.stripBlankChar=YP;Ye.cssFilter=sw;Ye.getDefaultCSSWhiteList=kP;var Ou={},ln=Bd;function qP(e){var t=ln.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=ln.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function QP(e){return e.slice(0,2)==="</"}function ZP(e,t,r){var n="",i=0,o=!1,a=!1,s=0,l=e.length,u="",c="";e:for(s=0;s<l;s++){var f=e.charAt(s);if(o===!1){if(f==="<"){o=s;continue}}else if(a===!1){if(f==="<"){n+=r(e.slice(i,s)),o=s,i=s;continue}if(f===">"||s===l-1){n+=r(e.slice(i,o)),c=e.slice(o,s+1),u=qP(c),n+=t(o,n.length,u,c,QP(c)),i=s+1,o=!1;continue}if(f==='"'||f==="'")for(var h=1,d=e.charAt(s-h);d.trim()===""||d==="=";){if(d==="="){a=f;continue e}d=e.charAt(s-++h)}}else if(f===a){a=!1;continue}}return i<l&&(n+=r(e.substr(i))),n}var JP=/[^a-zA-Z0-9\\_:.-]/gim;function eD(e,t){var r=0,n=0,i=[],o=!1,a=e.length;function s(h,d){if(h=ln.trim(h),h=h.replace(JP,"").toLowerCase(),!(h.length<1)){var m=t(h,d||"");m&&i.push(m)}}for(var l=0;l<a;l++){var u=e.charAt(l),c,f;if(o===!1&&u==="="){o=e.slice(r,l),r=l+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:rD(e,l+1);continue}if(o!==!1&&l===n){if(f=e.indexOf(u,l+1),f===-1)break;c=ln.trim(e.slice(n+1,f)),s(o,c),o=!1,l=f,r=l+1;continue}if(/\s|\n|\t/.test(u))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(f=tD(e,l),f===-1){c=ln.trim(e.slice(r,l)),s(c),o=!1,r=l+1;continue}else{l=f-1;continue}else if(f=nD(e,l-1),f===-1){c=ln.trim(e.slice(r,l)),c=Qg(c),s(o,c),o=!1,r=l+1;continue}else continue}return r<e.length&&(o===!1?s(e.slice(r)):s(o,Qg(ln.trim(e.slice(r))))),ln.trim(i.join(" "))}function tD(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function rD(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function nD(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function iD(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function Qg(e){return iD(e)?e.substr(1,e.length-2):e}Ou.parseTag=ZP;Ou.parseAttr=eD;var oD=lo.FilterCSS,xr=Ye,mw=Ou,aD=mw.parseTag,sD=mw.parseAttr,Zs=Bd;function Ns(e){return e==null}function lD(e){var t=Zs.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Zs.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=Zs.trim(e.slice(0,-1))),{html:e,closing:r}}function uD(e){var t={};for(var r in e)t[r]=e[r];return t}function cD(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function vw(e){e=uD(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=xr.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=cD(e.whiteList||e.allowList):e.whiteList=xr.whiteList,e.onTag=e.onTag||xr.onTag,e.onTagAttr=e.onTagAttr||xr.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||xr.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||xr.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||xr.safeAttrValue,e.escapeHtml=e.escapeHtml||xr.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new oD(e.css))}vw.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,a=r.onTagAttr,s=r.onIgnoreTagAttr,l=r.safeAttrValue,u=r.escapeHtml,c=t.cssFilter;r.stripBlankChar&&(e=xr.stripBlankChar(e)),r.allowCommentTag||(e=xr.stripCommentTag(e));var f=!1;r.stripIgnoreTagBody&&(f=xr.StripTagBody(r.stripIgnoreTagBody,o),o=f.onIgnoreTag);var h=aD(e,function(d,m,p,g,v){var w={sourcePosition:d,position:m,isClosing:v,isWhite:Object.prototype.hasOwnProperty.call(n,p)},y=i(p,g,w);if(!Ns(y))return y;if(w.isWhite){if(w.isClosing)return"</"+p+">";var S=lD(g),b=n[p],M=sD(S.html,function(_,A){var R=Zs.indexOf(b,_)!==-1,L=a(p,_,A,R);return Ns(L)?R?(A=l(p,_,A,c),A?_+'="'+A+'"':_):(L=s(p,_,A,R),Ns(L)?void 0:L):L});return g="<"+p,M&&(g+=" "+M),S.closing&&(g+=" /"),g+=">",g}else return y=o(p,g,w),Ns(y)?u(g):y},u);return f&&(h=f.remove(h)),h};var fD=vw;(function(e,t){var r=Ye,n=Ou,i=fD;function o(s,l){var u=new i(l);return u.process(s)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var s in r)t[s]=r[s];for(var l in n)t[l]=n[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function a(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}a()&&(self.filterXSS=e.exports)})(yP,Vl);const dD=Vl,xw="ToastProvider",[Ud,hD,pD]=iu("Toast"),[ww,xI]=rn("Toast",[pD]),[gD,Fu]=ww(xw),yw=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[s,l]=x.useState(null),[u,c]=x.useState(0),f=x.useRef(!1),h=x.useRef(!1);return x.createElement(Ud.Provider,{scope:t},x.createElement(gD,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:s,onViewportChange:l,onToastAdd:x.useCallback(()=>c(d=>d+1),[]),onToastRemove:x.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h},a))};yw.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${xw}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const mD="ToastViewport",vD=["F8"],qf="toast.viewportPause",Qf="toast.viewportResume",xD=x.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=vD,label:i="Notifications ({hotkey})",...o}=e,a=Fu(mD,r),s=hD(r),l=x.useRef(null),u=x.useRef(null),c=x.useRef(null),f=x.useRef(null),h=He(t,f,a.onViewportChange),d=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=a.toastCount>0;x.useEffect(()=>{const g=v=>{var w;n.every(S=>v[S]||v.code===S)&&((w=f.current)===null||w===void 0||w.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[n]),x.useEffect(()=>{const g=l.current,v=f.current;if(m&&g&&v){const w=()=>{if(!a.isClosePausedRef.current){const M=new CustomEvent(qf);v.dispatchEvent(M),a.isClosePausedRef.current=!0}},y=()=>{if(a.isClosePausedRef.current){const M=new CustomEvent(Qf);v.dispatchEvent(M),a.isClosePausedRef.current=!1}},S=M=>{!g.contains(M.relatedTarget)&&y()},b=()=>{g.contains(document.activeElement)||y()};return g.addEventListener("focusin",w),g.addEventListener("focusout",S),g.addEventListener("pointermove",w),g.addEventListener("pointerleave",b),window.addEventListener("blur",w),window.addEventListener("focus",y),()=>{g.removeEventListener("focusin",w),g.removeEventListener("focusout",S),g.removeEventListener("pointermove",w),g.removeEventListener("pointerleave",b),window.removeEventListener("blur",w),window.removeEventListener("focus",y)}}},[m,a.isClosePausedRef]);const p=x.useCallback(({tabbingDirection:g})=>{const w=s().map(y=>{const S=y.ref.current,b=[S,...ND(S)];return g==="forwards"?b:b.reverse()});return(g==="forwards"?w.reverse():w).flat()},[s]);return x.useEffect(()=>{const g=f.current;if(g){const v=w=>{const y=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!y){const A=document.activeElement,R=w.shiftKey;if(w.target===g&&R){var b;(b=u.current)===null||b===void 0||b.focus();return}const B=p({tabbingDirection:R?"backwards":"forwards"}),V=B.findIndex(Y=>Y===A);if(Ic(B.slice(V+1)))w.preventDefault();else{var M,_;R?(M=u.current)===null||M===void 0||M.focus():(_=c.current)===null||_===void 0||_.focus()}}};return g.addEventListener("keydown",v),()=>g.removeEventListener("keydown",v)}},[s,p]),x.createElement(f_,{ref:l,role:"region","aria-label":i.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:m?void 0:"none"}},m&&x.createElement(Zg,{ref:u,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"forwards"});Ic(g)}}),x.createElement(Ud.Slot,{scope:r},x.createElement(De.ol,he({tabIndex:-1},o,{ref:h}))),m&&x.createElement(Zg,{ref:c,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"backwards"});Ic(g)}}))}),wD="ToastFocusProxy",Zg=x.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,o=Fu(wD,r);return x.createElement(ad,he({"aria-hidden":!0,tabIndex:0},i,{ref:t,style:{position:"fixed"},onFocus:a=>{var s;const l=a.relatedTarget;!((s=o.viewport)!==null&&s!==void 0&&s.contains(l))&&n()}}))}),Pu="Toast",yD="toast.swipeStart",ED="toast.swipeMove",SD="toast.swipeCancel",_D="toast.swipeEnd",TD=x.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:o,...a}=e,[s=!0,l]=oo({prop:n,defaultProp:i,onChange:o});return x.createElement(es,{present:r||s},x.createElement(Ew,he({open:s},a,{ref:t,onClose:()=>l(!1),onPause:Nt(e.onPause),onResume:Nt(e.onResume),onSwipeStart:Se(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Se(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:Se(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Se(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),l(!1)})})))}),[CD,AD]=ww(Pu,{onClose(){}}),Ew=x.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:o,onClose:a,onEscapeKeyDown:s,onPause:l,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:d,...m}=e,p=Fu(Pu,r),[g,v]=x.useState(null),w=He(t,Y=>v(Y)),y=x.useRef(null),S=x.useRef(null),b=i||p.duration,M=x.useRef(0),_=x.useRef(b),A=x.useRef(0),{onToastAdd:R,onToastRemove:L}=p,U=Nt(()=>{var Y;(g==null?void 0:g.contains(document.activeElement))&&((Y=p.viewport)===null||Y===void 0||Y.focus()),a()}),B=x.useCallback(Y=>{!Y||Y===1/0||(window.clearTimeout(A.current),M.current=new Date().getTime(),A.current=window.setTimeout(U,Y))},[U]);x.useEffect(()=>{const Y=p.viewport;if(Y){const ne=()=>{B(_.current),u==null||u()},me=()=>{const xe=new Date().getTime()-M.current;_.current=_.current-xe,window.clearTimeout(A.current),l==null||l()};return Y.addEventListener(qf,me),Y.addEventListener(Qf,ne),()=>{Y.removeEventListener(qf,me),Y.removeEventListener(Qf,ne)}}},[p.viewport,b,l,u,B]),x.useEffect(()=>{o&&!p.isClosePausedRef.current&&B(b)},[o,b,p.isClosePausedRef,B]),x.useEffect(()=>(R(),()=>L()),[R,L]);const V=x.useMemo(()=>g?Tw(g):null,[g]);return p.viewport?x.createElement(x.Fragment,null,V&&x.createElement(RD,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},V),x.createElement(CD,{scope:r,onClose:U},Qr.createPortal(x.createElement(Ud.ItemSlot,{scope:r},x.createElement(c_,{asChild:!0,onEscapeKeyDown:Se(s,()=>{p.isFocusedToastEscapeKeyDownRef.current||U(),p.isFocusedToastEscapeKeyDownRef.current=!1})},x.createElement(De.li,he({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":p.swipeDirection},m,{ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Se(e.onKeyDown,Y=>{Y.key==="Escape"&&(s==null||s(Y.nativeEvent),Y.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:Se(e.onPointerDown,Y=>{Y.button===0&&(y.current={x:Y.clientX,y:Y.clientY})}),onPointerMove:Se(e.onPointerMove,Y=>{if(!y.current)return;const ne=Y.clientX-y.current.x,me=Y.clientY-y.current.y,xe=!!S.current,_e=["left","right"].includes(p.swipeDirection),ie=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,ae=_e?ie(0,ne):0,K=_e?0:ie(0,me),C=Y.pointerType==="touch"?10:2,N={x:ae,y:K},k={originalEvent:Y,delta:N};xe?(S.current=N,$s(ED,f,k,{discrete:!1})):Jg(N,p.swipeDirection,C)?(S.current=N,$s(yD,c,k,{discrete:!1}),Y.target.setPointerCapture(Y.pointerId)):(Math.abs(ne)>C||Math.abs(me)>C)&&(y.current=null)}),onPointerUp:Se(e.onPointerUp,Y=>{const ne=S.current,me=Y.target;if(me.hasPointerCapture(Y.pointerId)&&me.releasePointerCapture(Y.pointerId),S.current=null,y.current=null,ne){const xe=Y.currentTarget,_e={originalEvent:Y,delta:ne};Jg(ne,p.swipeDirection,p.swipeThreshold)?$s(_D,d,_e,{discrete:!0}):$s(SD,h,_e,{discrete:!0}),xe.addEventListener("click",ie=>ie.preventDefault(),{once:!0})}})})))),p.viewport))):null});Ew.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${Pu}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const RD=e=>{const{__scopeToast:t,children:r,...n}=e,i=Fu(Pu,t),[o,a]=x.useState(!1),[s,l]=x.useState(!1);return kD(()=>a(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:x.createElement(od,{asChild:!0},x.createElement(ad,n,o&&x.createElement(x.Fragment,null,i.label," ",r)))},OD=x.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return x.createElement(De.div,he({},n,{ref:t}))}),FD=x.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return x.createElement(De.div,he({},n,{ref:t}))}),PD="ToastAction",DD=x.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?x.createElement(_w,{altText:r,asChild:!0},x.createElement(Sw,he({},n,{ref:t}))):null});DD.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${PD}\``)}};const ID="ToastClose",Sw=x.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=AD(ID,r);return x.createElement(_w,{asChild:!0},x.createElement(De.button,he({type:"button"},n,{ref:t,onClick:Se(e.onClick,i.onClose)})))}),_w=x.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return x.createElement(De.div,he({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function Tw(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),bD(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",o=n.dataset.radixToastAnnounceExclude==="";if(!i)if(o){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Tw(n))}}),t}function $s(e,t,r,{discrete:n}){const i=r.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?ed(i,o):i.dispatchEvent(o)}const Jg=(e,t,r=0)=>{const n=Math.abs(e.x),i=Math.abs(e.y),o=n>i;return t==="left"||t==="right"?o&&n>r:!o&&i>r};function kD(e=()=>{}){const t=Nt(e);xt(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function bD(e){return e.nodeType===e.ELEMENT_NODE}function ND(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ic(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const $D=yw,MD=xD,LD=TD,BD=OD,UD=FD,HD=Sw,VD=({title:e,titleId:t,...r})=>Q("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.5,...r,children:Q("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}),WD=({title:e,titleId:t,...r})=>Te("svg",{viewBox:"0 0 18 18",width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?Q("title",{id:t,children:e}):null,Q("path",{d:"M9 16.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15ZM11.25 6.75l-4.5 4.5M6.75 6.75l4.5 4.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),zD=({title:e,titleId:t,...r})=>Te("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?Q("title",{id:t,children:e}):null,Q("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM12 16v-4M12 8h.01",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),GD=({title:e,titleId:t,...r})=>Te("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?Q("title",{id:t,children:e}):null,Q("path",{d:"M16.5 8.31V9a7.5 7.5 0 1 1-4.447-6.855",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),Q("path",{d:"M16.5 3 9 10.508l-2.25-2.25",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),jD=({title:e,titleId:t,...r})=>Te("svg",{viewBox:"0 0 18 18",width:18,height:18,fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...r,children:[e?Q("title",{id:t,children:e}):null,Q("path",{d:"M7.718 2.895 1.366 13.5a1.5 1.5 0 0 0 1.282 2.25h12.705a1.5 1.5 0 0 0 1.283-2.25L10.283 2.895a1.5 1.5 0 0 0-2.565 0v0ZM9 6.75v3M9 12.75h.008",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})]}),XD=({toast:e,open:t,setOpen:r})=>Te($D,{children:[Te(LD,{open:t,onOpenChange:n=>{e.preventClose||r(n)},className:It("z-50 fixed bottom-4 md:left-1/2 md:-translate-x-[50%] inset-x-4 w-auto shadow-lg md:max-w-[658px] duration-300","radix-state-open:animate-fade-in","radix-state-closed:animate-toast-hide","radix-swipe-end:animate-toast-swipe-out","translate-x-radix-toast-swipe-move-x","radix-swipe-cancel:translate-x-0 radix-swipe-cancel:duration-200 radix-swipe-cancel:ease-[ease]","px-[40px] md:px-[58px] py-6 flex flex-col border rounded-[4px]",{"bg-green-100 text-green-600 border-green-600":e.status==="success","bg-red-200 text-red-600 border-red-600":e.status==="error","bg-blue-100 text-blue-700 border-blue-600":e.status==="info","bg-orange-200 text-orange-600 border-orange-600":e.status==="warning"},{"h-[72px]":!e.description}),children:[e.status==="success"?Q(GD,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="warning"?Q(jD,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="error"?Q(WD,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):Q(zD,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}),Q(BD,{className:"text-grey-900 font-bold text-sm",children:e.title}),e.description&&Q(UD,{className:"mt-2 text-[10px] md:text-xs text-grey-800",children:e.description}),Q(HD,{className:"absolute top-7 right-5 md:right-7",children:Q(VD,{className:"w-4 h-4 text-grey-900"})})]}),Q(MD,{})]});function KD(e){const[t,r]=x.useState(e),n=t==="dark"?"light":"dark";return x.useEffect(()=>{const i=window.document.documentElement;i.classList.remove(n),i.classList.add(t)},[t,n]),[n,r]}const YD=new Date,e1=50,qD=30;function QD(e,t){try{const r=e.hasOwnProperty("index")?"index":e.hasOwnProperty("Index")?"Index":null,n=r?e[r]:null,i=e[t],o=typeof i,a=t.toLowerCase().includes("date")||t.toLowerCase()==="index"||n&&typeof n=="string"&&(n.toLowerCase().includes("date")||n.toLowerCase().includes("day")||n.toLowerCase().includes("time")||n.toLowerCase().includes("timestamp")||n.toLowerCase().includes("year")||n.toLowerCase().includes("month")||n.toLowerCase().includes("week")||n.toLowerCase().includes("hour")||n.toLowerCase().includes("minute"));if(o==="string"&&i.startsWith("http"))return(i==null?void 0:i.toString().length)??0;if(a){if(typeof i=="string")return(i==null?void 0:i.toString().length)??0;try{const l=new Date(i);let u="";return l.getUTCHours()===0&&l.getUTCMinutes()===0&&l.getUTCSeconds()===0&&l.getMilliseconds()===0?u=l.toISOString().split("T")[0]:(u=l.toISOString(),u=u.split("T")[0]+" "+u.split("T")[1].split(".")[0]),(u==null?void 0:u.toString().length)??0}catch{return(i==null?void 0:i.toString().length)??0}}return(i==null?void 0:i.toString().length)??0}catch{return 0}}function ZD({data:e,columns:t,title:r,initialTheme:n}){const[i,o]=KD(n),[a,s]=x.useState(i==="dark"),l=ae=>{o(i),s(ae)},[u,c]=Yo("rowsPerPage",qD),[f,h]=Yo("advanced",!1),[d,m]=Yo("colors",!1),[p,g]=x.useState([]),[v,w]=x.useState(""),[y,S]=Yo("fontSize","1"),[b,M]=x.useState(t.length>e1),_=t.reduce((ae,K,C)=>(ae[K]=C<e1,ae),{}),[A,R]=x.useState(_),L=(ae,K,C)=>{const F=Math.max(...ae.map(H=>QD(H,K)),C.length+8);return Math.min(400,F*12)},U=x.useMemo(()=>[...t.map((ae,K)=>({accessorKey:ae,id:ae,header:ae,size:L(e,ae,ae),footer:ae,cell:({row:C})=>{const N=C.original.hasOwnProperty("index")?"index":C.original.hasOwnProperty("Index")?"Index":null,k=N?C.original[N]:null,F=C.original[ae],H=typeof F,z=ae.toLowerCase().includes("date")||ae.toLowerCase()==="index"||k&&typeof k=="string"&&(k.toLowerCase().includes("date")||k.toLowerCase().includes("day")||k.toLowerCase().includes("time")||k.toLowerCase().includes("timestamp")||k.toLowerCase().includes("year")||k.toLowerCase().includes("month")||k.toLowerCase().includes("week")||k.toLowerCase().includes("hour")||k.toLowerCase().includes("minute"));if(H==="string"&&F.startsWith("http"))return Q("a",{className:"_hyper-link",href:F,target:"_blank",rel:"noreferrer",children:F});if(z){if(typeof F=="string")return Q("p",{children:F});try{const Z=new Date(F);let te="";return Z.getUTCHours()===0&&Z.getUTCMinutes()===0&&Z.getUTCSeconds()===0&&Z.getMilliseconds()===0?te=Z.toISOString().split("T")[0]:(te=Z.toISOString(),te=te.split("T")[0]+" "+te.split("T")[1].split(".")[0]),Q("p",{children:te})}catch{return Q("p",{children:F})}}if(H==="number"){const Z=$R(F);return Q("p",{className:It("whitespace-nowrap",{"text-black dark:text-white":!d,"text-[#16A34A]":F>0&&d,"text-[#F87171]":F<0&&d,"text-[#404040]":F===0&&d}),children:F!==0?F>0?`${Z}`:`${Z}`:Z})}else if(H==="string")return Q("div",{dangerouslySetInnerHTML:{__html:dD(F)}});return Q("p",{children:F})}}))],[f,d]),[B,V]=x.useState(U.map(ae=>ae.id)),Y=()=>V(t.map(ae=>ae.id)),ne=x.useMemo(()=>{const ae=B.map(C=>C),K=U.map(C=>C.id);return!MR(ae,K)},[B,U]),me=qS({data:e,columns:U,getCoreRowModel:BS(),getSortedRowModel:zS(),getFilteredRowModel:WS(),getPaginationRowModel:jS(),columnResizeMode:"onChange",onColumnVisibilityChange:R,onColumnOrderChange:V,onSortingChange:g,onGlobalFilterChange:w,globalFilterFn:LR,state:{sorting:p,globalFilter:v,columnOrder:B,columnVisibility:A},initialState:{pagination:{pageIndex:0,pageSize:u}}}),xe=x.useRef(null),{rows:_e}=me.getRowModel(),ie=me.getVisibleFlatColumns();return Te(E1,{children:[Q(XD,{toast:{id:"max-columns",title:"Max 12 columns are visible by default",description:"You can change this by clicking on advanced and then top right 'Filter' button",status:"info"},open:b,setOpen:M}),Te("div",{ref:xe,className:It("overflow-x-hidden h-screen"),children:[Te("div",{className:"bg-white/70 dark:bg-grey-900/70 backdrop-filter backdrop-blur flex gap-2 px-6 items-center justify-between pt-4 ",children:[Te("div",{className:"flex gap-10 items-center",children:[Te("div",{className:"flex gap-[14px]",children:[Q("input",{id:"advanced",type:"checkbox",checked:f,onChange:()=>h(!f)}),Q("label",{htmlFor:"advanced",children:"Advanced"})]}),f&&Te("div",{className:"flex gap-[14px]",children:[Q("input",{id:"colors",type:"checkbox",checked:d,onChange:()=>m(!d)}),Q("label",{htmlFor:"colors",children:"Colors"})]})]}),f&&Te("div",{className:"flex gap-10 items-center",children:[ne&&Q("button",{onClick:()=>Y(),className:"_btn h-9",children:"Reset Order"}),Q("button",{onClick:()=>{l(!a)},children:a?Q(IC,{className:"w-4 h-4"}):Q(bC,{className:"w-4 h-4"})}),Q(jv,{labelType:"row",value:y,onChange:S,label:"Font size",placeholder:"Select font size",groups:[{label:"Font size",items:[{label:"50%",value:"0.5"},{label:"75%",value:"0.75"},{label:"100%",value:"1"},{label:"125%",value:"1.25"},{label:"150%",value:"1.5"},{label:"175%",value:"1.75"},{label:"200%",value:"2"}]}]}),Q(wP,{table:me,label:"Filter"})]})]}),Te("div",{className:"relative p-6 mb-20",id:"table",children:[Q("div",{className:"absolute -inset-0.5 bg-gradient-to-r rounded-md blur-md from-[#072e49]/30 via-[#0d345f]/30 to-[#0d3362]/30"}),Te("div",{className:"border border-grey-500/60 dark:border-grey-200/60 bg-white dark:bg-grey-900 rounded overflow-hidden relative z-20",children:[Te("div",{className:"_header relative gap-4 py-2 text-center text-xs flex items-center justify-between px-4 text-white",style:{fontSize:`${Number(y)*100}%`},children:[Q("div",{className:"w-1/3",children:Q("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"40",fill:"none",viewBox:"0 0 64 40",children:Q("path",{fill:"#fff",d:"M61.283 3.965H33.608v27.757h25.699V19.826H37.561v-3.965H63.26V3.965h-1.977zM39.538 23.792h15.815v3.965H37.561v-3.965h1.977zM59.306 9.913v1.983H37.561V7.931h21.745v1.982zM33.606 0h-3.954v3.965H33.606V0zM25.7 3.966H0V15.86h25.7v3.965H3.953v11.896h25.7V3.966h-3.955zm0 21.808v1.983H7.907v-3.965h17.791v1.982zm0-15.86v1.982H3.953V7.931h21.745v1.982zM37.039 35.693v2.952l-.246-.246-.245-.245-.245-.247-.245-.246-.246-.246-.245-.245-.245-.247-.247-.246-.245-.246-.245-.246-.245-.246-.246-.246h-.49v3.936h.49v-3.198l.246.246.245.246.245.246.245.246.246.246.246.246.245.247.246.245.245.246.245.247.245.246.246.245.245.246h.245v-3.936h-.49zM44.938 37.17h-.491v-1.477h-2.944v3.937h3.93v-2.46h-.495zm-2.944-.246v-.739h1.962v.984h-1.962v-.245zm2.944.984v1.23h-2.944V37.66h2.944v.247zM52.835 37.17h-.49v-1.477h-2.946v3.937h3.925v-2.46h-.489zm-2.944-.246v-.739h1.963v.984h-1.965l.002-.245zm2.944.984v1.23H49.89V37.66h2.946v.247zM29.174 35.693H25.739v3.936H29.663v-.491H26.229v-.984h2.943v-.493H26.229v-1.476h3.434v-.492h-.489zM13.37 35.693H9.934v3.937h3.925v-3.937h-.49zm0 .738v2.709h-2.945v-2.955h2.943l.001.246zM21.276 35.693h-3.435v3.937h.491v-1.476h3.434v-2.461h-.49zm0 .738v1.23h-2.944v-1.476h2.944v.246z"})})}),Q("p",{className:"font-bold w-1/3 flex flex-col gap-0.5 items-center",children:r}),Q("p",{className:"w-1/3 text-right text-xs",children:new Intl.DateTimeFormat("en-GB",{dateStyle:"full",timeStyle:"long"}).format(YD).replace(/:\d\d /," ")})]}),Q("div",{className:"overflow-x-auto",children:Te("table",{className:"text-sm",style:{fontSize:`${Number(y)*100}%`},children:[Q("thead",{children:me.getHeaderGroups().map(ae=>Q("tr",{className:It("!h-10 text-left"),children:ae.headers.map(K=>Q($F,{advanced:f,header:K,table:me},K.id))},ae.id))}),Q("tbody",{children:me.getRowModel().rows.map((ae,K)=>Q("tr",{className:"!h-[64px] border-b border-grey-400",children:ae.getVisibleCells().map(C=>Q("td",{className:It("whitespace-nowrap overflow-auto p-4",{"bg-grey-100 dark:bg-grey-850":K%2===0,"bg-grey-200 dark:bg-[#202020]":K%2===1}),style:{width:C.column.getSize()},children:Rf(C.column.columnDef.cell,C.getContext())},C.id))},ae.id))}),_e.length>30&&ie.length>4&&Q("tfoot",{children:me.getFooterGroups().map(ae=>Q("tr",{children:ae.headers.map(K=>Q("th",{colSpan:K.colSpan,className:"text-grey-500 bg-grey-100 dark:bg-grey-850 font-normal text-left text-sm h-10 p-4",style:{width:K.getSize()},children:K.isPlaceholder?null:Rf(K.column.columnDef.footer,K.getContext())},K.id))},ae.id))})]})})]})]}),Te("div",{className:"fixed bg-white/70 dark:bg-grey-900/70 backdrop-filter backdrop-blur z-20 bottom-0 left-0 w-full flex gap-10 justify-between py-4 px-6",children:[Q(v7,{columns:t,data:e}),Te("div",{className:"flex items-center gap-10",children:[Q(MF,{currentPage:u,setCurrentPage:c,table:me}),Q(x7,{})]})]})]})]})}function Cw(e){let t=null;return()=>(t==null&&(t=e()),t)}function JD(e,t){return e.filter(r=>r!==t)}function eI(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const i=[];return r.forEach(o=>i.push(o)),i}class tI{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=eI(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=JD(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class rI{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const i=this.config.exposeProperties[n];i!=null&&(r[n]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const Aw="__NATIVE_FILE__",Rw="__NATIVE_URL__",Ow="__NATIVE_TEXT__",Fw="__NATIVE_HTML__",t1=Object.freeze(Object.defineProperty({__proto__:null,FILE:Aw,HTML:Fw,TEXT:Ow,URL:Rw},Symbol.toStringTag,{value:"Module"}));function kc(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const Zf={[Aw]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Fw]:{exposeProperties:{html:(e,t)=>kc(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Rw]:{exposeProperties:{urls:(e,t)=>kc(e,t,"").split(`
+`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[Ow]:{exposeProperties:{text:(e,t)=>kc(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function nI(e,t){const r=Zf[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new rI(r);return n.loadDataTransfer(t),n}function bc(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(Zf).filter(r=>{const n=Zf[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const iI=Cw(()=>/firefox/i.test(navigator.userAgent)),Pw=Cw(()=>!!window.safari);class r1{interpolate(t){const{xs:r,ys:n,c1s:i,c2s:o,c3s:a}=this;let s=r.length-1;if(t===r[s])return n[s];let l=0,u=a.length-1,c;for(;l<=u;){c=Math.floor(.5*(l+u));const d=r[c];if(d<t)l=c+1;else if(d>t)u=c-1;else return n[c]}s=Math.max(0,u);const f=t-r[s],h=f*f;return n[s]+i[s]*f+o[s]*h+a[s]*f*h}constructor(t,r){const{length:n}=t,i=[];for(let d=0;d<n;d++)i.push(d);i.sort((d,m)=>t[d]<t[m]?-1:1);const o=[],a=[];let s,l;for(let d=0;d<n-1;d++)s=t[d+1]-t[d],l=r[d+1]-r[d],o.push(s),a.push(l/s);const u=[a[0]];for(let d=0;d<o.length-1;d++){const m=a[d],p=a[d+1];if(m*p<=0)u.push(0);else{s=o[d];const g=o[d+1],v=s+g;u.push(3*v/((v+g)/m+(v+s)/p))}}u.push(a[a.length-1]);const c=[],f=[];let h;for(let d=0;d<u.length-1;d++){h=a[d];const m=u[d],p=1/o[d],g=m+u[d+1]-h-h;c.push((h-m-g)*p),f.push(g*p*p)}this.xs=t,this.ys=r,this.c1s=u,this.c2s=c,this.c3s=f}}const oI=1;function Dw(e){const t=e.nodeType===oI?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function Ms(e){return{x:e.clientX,y:e.clientY}}function aI(e){var t;return e.nodeName==="IMG"&&(iI()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function sI(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return Pw()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function lI(e,t,r,n,i){const o=aI(t),s=Dw(o?e:t),l={x:r.x-s.x,y:r.y-s.y},{offsetWidth:u,offsetHeight:c}=e,{anchorX:f,anchorY:h}=n,{dragPreviewWidth:d,dragPreviewHeight:m}=sI(o,t,u,c),p=()=>{let M=new r1([0,.5,1],[l.y,l.y/c*m,l.y+m-c]).interpolate(h);return Pw()&&o&&(M+=(window.devicePixelRatio-1)*m),M},g=()=>new r1([0,.5,1],[l.x,l.x/u*d,l.x+d-u]).interpolate(f),{offsetX:v,offsetY:w}=i,y=v===0||v,S=w===0||w;return{x:y?v:g(),y:S?w:p()}}class uI{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,r){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}}function cI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){cI(e,i,r[i])})}return e}class fI{profile(){var t,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,r,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,r,n){this.sourceNodes.set(t,r),this.sourceNodeOptions.set(t,n);const i=a=>this.handleDragStart(a,t),o=a=>this.handleSelectStart(a);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",i),r.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),r.removeEventListener("dragstart",i),r.removeEventListener("selectstart",o),r.setAttribute("draggable","false")}}connectDropTarget(t,r){const n=a=>this.handleDragEnter(a,t),i=a=>this.handleDragOver(a,t),o=a=>this.handleDrop(a,t);return r.addEventListener("dragenter",n),r.addEventListener("dragover",i),r.addEventListener("drop",o),()=>{r.removeEventListener("dragenter",n),r.removeEventListener("dragover",i),r.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(t);return n1({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(t);return n1({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(t1).some(r=>t1[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=nI(t,r),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var n;return(n=this.rootElement)===null||n===void 0?void 0:n.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,r){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(t,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(t,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(t,r){this.dropTargetIds.unshift(r)}constructor(t,r,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&Dw(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=Ms(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:s}=i,l=bc(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const c=this.monitor.getSourceId(),f=this.sourceNodes.get(c),h=this.sourcePreviewNodes.get(c)||f;if(h){const{anchorX:d,anchorY:m,offsetX:p,offsetY:g}=this.getCurrentSourcePreviewNodeOptions(),y=lI(f,h,a,{anchorX:d,anchorY:m},{offsetX:p,offsetY:g});s.setDragImage(h,y.x,y.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:u}=this.getCurrentSourcePreviewNodeOptions();u?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(l)this.beginDragNativeItem(l);else{if(s&&!s.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:s}=i,l=bc(s);l&&this.beginDragNativeItem(l,s)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:Ms(i)}),o.some(s=>this.monitor.canDropOnTarget(s))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=Ms(i),this.scheduleHover(o),(o||[]).some(s=>this.monitor.canDropOnTarget(s))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else bc(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:Ms(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new uI(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new tI(this.isNodeInDocument)}}const dI=function(t,r,n){return new fI(t,r,n)};function hI(){const[e,t]=x.useState(null),[r,n]=x.useState("Interactive Table");x.useEffect(()=>{const a=setInterval(()=>{if(window.json_data){const s=JSON.parse(window.json_data);console.log(s),t(s),s.title&&typeof s.title=="string"&&n(s.title),clearInterval(a)}},100);return()=>clearInterval(a)},[]);const o=(a=>{var d;if(!a)return null;let s=(d=a.title)==null?void 0:d.replace(/<b>|<\/b>/g,"").replace(/ /g,"_"),l=new Date().toISOString().slice(0,10).replace(/-/g,""),u=new Date().toISOString().slice(11,19).replace(/:/g,"");window.title=`openbb_${s}_${l}_${u}`;const c=a.columns;a.index;const h=a.data.map((m,p)=>{const g={};return m.forEach((v,w)=>{g[c[w]]=v}),g});return{columns:c,data:h}})(e);return Q("div",{className:"relative h-full bg-white dark:bg-black text-black dark:text-white",children:Q(rF,{backend:dI,children:o&&Q(ZD,{title:r,data:o.data,columns:o.columns,initialTheme:e.theme&&typeof e.theme=="string"&&e.theme==="dark"?"dark":"light"})})})}qm.render(Q(nr.StrictMode,{children:Q(hI,{})}),document.getElementById("root"));
 
 </script>
     <style>
-@import"https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }._input{height:36px;width:100%;border-radius:.25rem;border-width:1.5px;border-color:#c8c8c8;background-color:#f6f6f6;padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._input:focus{border-color:gray}._input:active{border-color:gray}._input:disabled{border-color:#5a5a5a}.dark ._input{border-color:#474747;background-color:#070707;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline-width:1px}.dark ._input:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.dark ._input:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark ._input:active{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._btn{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.25rem;padding:.5rem 1.5rem;text-align:center;text-decoration-line:none!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width: 768px){._btn{width:-moz-fit-content;width:fit-content}}._btn{background-color:#2a2a2a;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._btn:hover{background-color:#5a5a5a}._btn:focus{outline-style:solid;outline-width:2px;outline-color:gray}._btn:disabled{background-color:#c8c8c8;color:gray}._btn:disabled:active{background-color:#c8c8c8;color:gray}.dark ._btn{background-color:#eaeaea;color:#2a2a2a}.dark ._btn:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark ._btn:active{background-color:#dcdcdc}.dark ._btn:active:hover{color:#070707}._btn-tertiary{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.25rem;padding:.5rem 1.5rem;text-align:center;text-decoration-line:none!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width: 768px){._btn-tertiary{width:-moz-fit-content;width:fit-content}}._btn-tertiary{background-color:#070707;color:#f6f6f6}._btn-tertiary:hover{background-color:#2a2a2a;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._btn-tertiary:focus{background-color:#070707;outline-style:solid;outline-width:2px;outline-color:gray}._btn-tertiary:active{background-color:#474747;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._btn-tertiary:disabled{background-color:gray;color:#474747}._hyper-link{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity));text-decoration-line:underline}._hyper-link:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}._hyper-link:active{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}._hyper-link:disabled{color:#5a5a5a}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-inset-0{top:-0px;right:-0px;bottom:-0px;left:-0px}.-inset-0\.5{top:-.125rem;right:-.125rem;bottom:-.125rem;left:-.125rem}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.inset-x-4{left:1rem;right:1rem}.inset-y-0{top:0px;bottom:0px}.bottom-0{bottom:0px}.bottom-4{bottom:1rem}.left-0{left:0px}.left-1\/2{left:50%}.left-\[8px\]{left:8px}.right-0{right:0px}.right-5{right:1.25rem}.top-0{top:0px}.top-1\/2{top:50%}.top-7{top:1.75rem}.top-\[25px\]{top:25px}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.mb-20{margin-bottom:5rem}.mr-1{margin-right:.25rem}.mt-2{margin-top:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.\!h-10{height:2.5rem!important}.\!h-\[64px\]{height:64px!important}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[25px\]{height:25px}.h-\[36px\]{height:36px}.h-\[70px\]{height:70px}.h-\[72px\]{height:72px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[500px\]{max-height:500px}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1\/3{width:33.333333%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[25px\]{width:25px}.w-auto{width:auto}.w-full{width:100%}.max-w-\[216px\]{max-width:216px}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[14px\]{gap:14px}.gap-\[5px\]{gap:5px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[3px\]{border-radius:3px}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity))}.border-grey-400{border-color:#a2a2a2}.border-grey-500\/60{border-color:#80808099}.border-grey-700{border-color:#474747}.border-orange-600{--tw-border-opacity: 1;border-color:rgb(234 88 12 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-grey-100{background-color:#eaeaea}.bg-grey-200{background-color:#dcdcdc}.bg-grey-300\/20{background-color:#c8c8c833}.bg-grey-500{background-color:gray}.bg-grey-850{background-color:#131313}.bg-grey-900{background-color:#070707}.bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(254 215 170 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/70{background-color:#ffffffb3}.bg-white\/80{background-color:#fffc}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#072e49\]\/30{--tw-gradient-from: rgb(7 46 73 / .3);--tw-gradient-to: rgb(7 46 73 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-\[\#0d345f\]\/30{--tw-gradient-to: rgb(13 52 95 / 0);--tw-gradient-stops: var(--tw-gradient-from), rgb(13 52 95 / .3), var(--tw-gradient-to)}.to-\[\#0d3362\]\/30{--tw-gradient-to: rgb(13 51 98 / .3)}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[5px\]{padding:5px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[40px\]{padding-left:40px;padding-right:40px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pl-\[25px\]{padding-left:25px}.pr-\[35px\]{padding-right:35px}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.leading-\[25px\]{line-height:25px}.leading-none{line-height:1}.tracking-widest{letter-spacing:.1em}.text-\[\#16A34A\]{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-\[\#404040\]{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-\[\#669DCB\]{--tw-text-opacity: 1;color:rgb(102 157 203 / var(--tw-text-opacity))}.text-\[\#F87171\]{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-grey-400{color:#a2a2a2}.text-grey-500{color:gray}.text-grey-600{color:#5a5a5a}.text-grey-700{color:#474747}.text-grey-800{color:#2a2a2a}.text-grey-900{color:#070707}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_2px_10px\]{--tw-shadow: 0 2px 10px;--tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0px_10px_38px_-10px_rgba\(22\,_23\,_24\,_0\.35\)\,0px_10px_20px_-15px_rgba\(22\,_23\,_24\,_0\.2\)\]{--tw-shadow: 0px 10px 38px -10px rgba(22, 23, 24, .35),0px 10px 20px -15px rgba(22, 23, 24, .2);--tw-shadow-colored: 0px 10px 38px -10px var(--tw-shadow-color), 0px 10px 20px -15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-black\/10{--tw-shadow-color: rgb(0 0 0 / .1);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-md{--tw-blur: blur(12px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}._header{background:#062d48;background:linear-gradient(90deg,#062d48,#0b3054 15%,#0e386c 45%,#0b203d 64%,#06101a 82%,#060709)}body{font-family:Fira Code,monospace}table thead,table tfoot,table tbody tr{display:table;width:100%;table-layout:fixed}.resizer{cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none}tr{width:-moz-fit-content;width:fit-content}.resizer.isResizing{background:white;opacity:1}@media (hover: hover){.resizer{opacity:0}*:hover>.resizer{opacity:1}}.after\:block:after{content:var(--tw-content);display:block}.after\:h-\[11px\]:after{content:var(--tw-content);height:11px}.after\:w-\[11px\]:after{content:var(--tw-content);width:11px}.after\:rounded-\[50\%\]:after{content:var(--tw-content);border-radius:50%}.after\:bg-black:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.hover\:text-grey-800:hover{color:#2a2a2a}.focus\:shadow-\[0_0_0_2px\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:shadow-black:focus{--tw-shadow-color: #000;--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-purple-500:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(168 85 247 / var(--tw-ring-opacity))}.focus-visible\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[highlighted\]\:bg-grey-600[data-highlighted]{background-color:#5a5a5a}.data-\[disabled\]\:text-grey-400[data-disabled]{color:#a2a2a2}.data-\[highlighted\]\:text-white[data-highlighted],.data-\[placeholder\]\:text-white[data-placeholder]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.data-\[highlighted\]\:outline-none[data-highlighted]{outline:2px solid transparent;outline-offset:2px}.dark .dark\:border-grey-200\/60{border-color:#dcdcdc99}.dark .dark\:border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.dark .dark\:bg-\[\#202020\]{--tw-bg-opacity: 1;background-color:rgb(32 32 32 / var(--tw-bg-opacity))}.dark .dark\:bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark .dark\:bg-grey-800{background-color:#2a2a2a}.dark .dark\:bg-grey-850{background-color:#131313}.dark .dark\:bg-grey-900{background-color:#070707}.dark .dark\:bg-grey-900\/70{background-color:#070707b3}.dark .dark\:bg-grey-900\/80{background-color:#070707cc}.dark .dark\:text-grey-700{color:#474747}.dark .dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark .dark\:after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark .dark\:hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark .dark\:hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:left-\[25px\]{left:25px}.md\:right-7{right:1.75rem}.md\:max-w-\[658px\]{max-width:658px}.md\:-translate-x-\[50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:px-\[58px\]{padding-left:58px;padding-right:58px}.md\:text-xs{font-size:.75rem;line-height:1rem}}
+@import"https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }._input{height:36px;width:100%;border-radius:.25rem;border-width:1.5px;border-color:#c8c8c8;background-color:#f6f6f6;padding:.25rem .5rem;font-size:.75rem;line-height:1rem;font-weight:400;outline:2px solid transparent;outline-offset:2px}._input:focus{border-color:gray}._input:active{border-color:gray}._input:disabled{border-color:#5a5a5a}.dark ._input{border-color:#474747;background-color:#070707;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline-width:1px}.dark ._input:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.dark ._input:focus{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark ._input:active{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}._btn{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.25rem;padding:.5rem 1.5rem;text-align:center;text-decoration-line:none!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width: 768px){._btn{width:-moz-fit-content;width:fit-content}}._btn{background-color:#2a2a2a;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._btn:hover{background-color:#5a5a5a}._btn:focus{outline-style:solid;outline-width:2px;outline-color:gray}._btn:disabled{background-color:#c8c8c8;color:gray}._btn:disabled:active{background-color:#c8c8c8;color:gray}.dark ._btn{background-color:#eaeaea;color:#2a2a2a}.dark ._btn:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark ._btn:active{background-color:#dcdcdc}.dark ._btn:active:hover{color:#070707}._btn-tertiary{display:inline-flex;width:100%;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;border-radius:.25rem;padding:.5rem 1.5rem;text-align:center;text-decoration-line:none!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s;transition-timing-function:cubic-bezier(0,0,.2,1)}@media (min-width: 768px){._btn-tertiary{width:-moz-fit-content;width:fit-content}}._btn-tertiary{background-color:#070707;color:#f6f6f6}._btn-tertiary:hover{background-color:#2a2a2a;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._btn-tertiary:focus{background-color:#070707;outline-style:solid;outline-width:2px;outline-color:gray}._btn-tertiary:active{background-color:#474747;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._btn-tertiary:disabled{background-color:gray;color:#474747}._hyper-link{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity));text-decoration-line:underline}._hyper-link:hover{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity))}._hyper-link:active{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}._hyper-link:disabled{color:#5a5a5a}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.-inset-0{top:-0px;right:-0px;bottom:-0px;left:-0px}.-inset-0\.5{top:-.125rem;right:-.125rem;bottom:-.125rem;left:-.125rem}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.inset-x-4{left:1rem;right:1rem}.inset-y-0{top:0px;bottom:0px}.bottom-0{bottom:0px}.bottom-4{bottom:1rem}.left-0{left:0px}.left-1\/2{left:50%}.left-\[8px\]{left:8px}.right-0{right:0px}.right-4{right:1rem}.right-5{right:1.25rem}.top-0{top:0px}.top-1\/2{top:50%}.top-7{top:1.75rem}.top-\[25px\]{top:25px}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.mb-20{margin-bottom:5rem}.mr-1{margin-right:.25rem}.mt-2{margin-top:.5rem}.flex{display:flex}.inline-flex{display:inline-flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.\!h-10{height:2.5rem!important}.\!h-\[64px\]{height:64px!important}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[25px\]{height:25px}.h-\[36px\]{height:36px}.h-\[70px\]{height:70px}.h-\[72px\]{height:72px}.h-full{height:100%}.h-screen{height:100vh}.max-h-\[500px\]{max-height:500px}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1\/3{width:33.333333%}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-\[25px\]{width:25px}.w-auto{width:auto}.w-full{width:100%}.max-w-\[216px\]{max-width:216px}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-10{gap:2.5rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[14px\]{gap:14px}.gap-\[5px\]{gap:5px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[3px\]{border-radius:3px}.rounded-\[4px\]{border-radius:4px}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-b{border-bottom-width:1px}.border-black{--tw-border-opacity: 1;border-color:rgb(0 0 0 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(22 163 74 / var(--tw-border-opacity))}.border-grey-400{border-color:#a2a2a2}.border-grey-500\/60{border-color:#80808099}.border-grey-700{border-color:#474747}.border-orange-600{--tw-border-opacity: 1;border-color:rgb(234 88 12 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity))}.bg-grey-100{background-color:#eaeaea}.bg-grey-200{background-color:#dcdcdc}.bg-grey-300\/20{background-color:#c8c8c833}.bg-grey-500{background-color:gray}.bg-grey-850{background-color:#131313}.bg-grey-900{background-color:#070707}.bg-orange-200{--tw-bg-opacity: 1;background-color:rgb(254 215 170 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(254 202 202 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/70{background-color:#ffffffb3}.bg-white\/80{background-color:#fffc}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\[\#072e49\]\/30{--tw-gradient-from: rgb(7 46 73 / .3);--tw-gradient-to: rgb(7 46 73 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-\[\#0d345f\]\/30{--tw-gradient-to: rgb(13 52 95 / 0);--tw-gradient-stops: var(--tw-gradient-from), rgb(13 52 95 / .3), var(--tw-gradient-to)}.to-\[\#0d3362\]\/30{--tw-gradient-to: rgb(13 51 98 / .3)}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\[5px\]{padding:5px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[40px\]{padding-left:40px;padding-right:40px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pl-\[25px\]{padding-left:25px}.pr-\[35px\]{padding-right:35px}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-\[10px\]{font-size:10px}.text-\[13px\]{font-size:13px}.text-\[8px\]{font-size:8px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-normal{font-weight:400}.uppercase{text-transform:uppercase}.leading-\[25px\]{line-height:25px}.leading-none{line-height:1}.tracking-widest{letter-spacing:.1em}.text-\[\#16A34A\]{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-\[\#404040\]{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-\[\#669DCB\]{--tw-text-opacity: 1;color:rgb(102 157 203 / var(--tw-text-opacity))}.text-\[\#F87171\]{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-grey-400{color:#a2a2a2}.text-grey-500{color:gray}.text-grey-600{color:#5a5a5a}.text-grey-700{color:#474747}.text-grey-800{color:#2a2a2a}.text-grey-900{color:#070707}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_2px_10px\]{--tw-shadow: 0 2px 10px;--tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0px_10px_38px_-10px_rgba\(22\,_23\,_24\,_0\.35\)\,0px_10px_20px_-15px_rgba\(22\,_23\,_24\,_0\.2\)\]{--tw-shadow: 0px 10px 38px -10px rgba(22, 23, 24, .35),0px 10px 20px -15px rgba(22, 23, 24, .2);--tw-shadow-colored: 0px 10px 38px -10px var(--tw-shadow-color), 0px 10px 20px -15px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-black\/10{--tw-shadow-color: rgb(0 0 0 / .1);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-md{--tw-blur: blur(12px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}._header{background:#062d48;background:linear-gradient(90deg,#062d48,#0b3054 15%,#0e386c 45%,#0b203d 64%,#06101a 82%,#060709)}body{font-family:Fira Code,monospace}table thead,table tfoot,table tbody tr{display:table;width:100%;table-layout:fixed}.resizer{cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:none}tr{width:-moz-fit-content;width:fit-content}.resizer.isResizing{background:white;opacity:1}@media (hover: hover){.resizer{opacity:0}*:hover>.resizer{opacity:1}}.after\:block:after{content:var(--tw-content);display:block}.after\:h-\[11px\]:after{content:var(--tw-content);height:11px}.after\:w-\[11px\]:after{content:var(--tw-content);width:11px}.after\:rounded-\[50\%\]:after{content:var(--tw-content);border-radius:50%}.after\:bg-black:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.hover\:text-grey-800:hover{color:#2a2a2a}.focus\:shadow-\[0_0_0_2px\]:focus{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:shadow-black:focus{--tw-shadow-color: #000;--tw-shadow: var(--tw-shadow-colored)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-purple-500:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(168 85 247 / var(--tw-ring-opacity))}.focus-visible\:ring-opacity-75:focus-visible{--tw-ring-opacity: .75}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[highlighted\]\:bg-grey-600[data-highlighted]{background-color:#5a5a5a}.data-\[disabled\]\:text-grey-400[data-disabled]{color:#a2a2a2}.data-\[highlighted\]\:text-white[data-highlighted],.data-\[placeholder\]\:text-white[data-placeholder]{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.data-\[highlighted\]\:outline-none[data-highlighted]{outline:2px solid transparent;outline-offset:2px}.dark .dark\:border-grey-200\/60{border-color:#dcdcdc99}.dark .dark\:border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.dark .dark\:bg-\[\#202020\]{--tw-bg-opacity: 1;background-color:rgb(32 32 32 / var(--tw-bg-opacity))}.dark .dark\:bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.dark .dark\:bg-grey-800{background-color:#2a2a2a}.dark .dark\:bg-grey-850{background-color:#131313}.dark .dark\:bg-grey-900{background-color:#070707}.dark .dark\:bg-grey-900\/70{background-color:#070707b3}.dark .dark\:bg-grey-900\/80{background-color:#070707cc}.dark .dark\:text-grey-700{color:#474747}.dark .dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark .dark\:after\:bg-white:after{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark .dark\:hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.dark .dark\:hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media (min-width: 768px){.md\:left-1\/2{left:50%}.md\:left-\[25px\]{left:25px}.md\:right-7{right:1.75rem}.md\:max-w-\[658px\]{max-width:658px}.md\:-translate-x-\[50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:px-\[58px\]{padding-left:58px;padding-right:58px}.md\:text-xs{font-size:.75rem;line-height:1rem}}
 
 </style>
   </head>
diff --git a/openbb_terminal/core/session/constants.py b/openbb_terminal/core/session/constants.py
index a027f354cd7c..fad23187882d 100644
--- a/openbb_terminal/core/session/constants.py
+++ b/openbb_terminal/core/session/constants.py
@@ -1,8 +1,13 @@
 BASE_URL = "https://payments.openbb.dev/"
-REGISTER_URL = "https://my.openbb.dev/register"
-SOURCES_URL = "https://my.openbb.dev/app/terminal/datasources"
-KEYS_URL = "https://my.openbb.dev/app/terminal/apikeys"
 # BASE_URL = "http://127.0.0.1:8000/"
+
+HUB_URL = "https://my.openbb.dev/"
+REGISTER_URL = HUB_URL + "register"
+SOURCES_URL = HUB_URL + "app/terminal/datasources"
+KEYS_URL = HUB_URL + "app/terminal/apikeys"
+COLORS_URL = HUB_URL + "app/terminal/theme"
+CHARTS_TABLES_URL = HUB_URL + "app/terminal/theme/charts-tables"
+
 TIMEOUT = 15
 
 CONNECTION_ERROR_MSG = "[red]Connection error.[/red]"
diff --git a/openbb_terminal/core/session/hub_model.py b/openbb_terminal/core/session/hub_model.py
index a8df4464ca3a..34df5892b5f7 100644
--- a/openbb_terminal/core/session/hub_model.py
+++ b/openbb_terminal/core/session/hub_model.py
@@ -235,7 +235,7 @@ def fetch_user_configs(
 def upload_config(
     key: str,
     value: str,
-    type_: Literal["keys", "settings", "sources"],
+    type_: Literal["keys", "settings", "sources", "terminal_style"],
     auth_header: str,
     base_url: str = BASE_URL,
     timeout: int = TIMEOUT,
@@ -248,7 +248,7 @@ def upload_config(
         The key to patch.
     value : str
         The value to patch.
-    type_ : Literal["keys", "settings", "sources"]
+    type_ : Literal["keys", "settings", "sources", "terminal_style"]
         The type of the patch.
     auth_header : str
         The authorization header, e.g. "Bearer <token>".
@@ -262,7 +262,7 @@ def upload_config(
     Optional[requests.Response]
         The response from the patch request.
     """
-    if type_ not in ["keys", "settings", "sources"]:
+    if type_ not in ["keys", "settings", "sources", "terminal_style"]:
         console.print("[red]\nInvalid patch type.[/red]")
         return None
 
diff --git a/openbb_terminal/core/session/local_model.py b/openbb_terminal/core/session/local_model.py
index ad8ab57ccf77..ad660e49348a 100644
--- a/openbb_terminal/core/session/local_model.py
+++ b/openbb_terminal/core/session/local_model.py
@@ -115,9 +115,11 @@ def apply_configs(configs: dict):
     configs : dict
         The configurations.
     """
+    # Saving the RICH_STYLE state allows user to change from hub rich style to local
     set_credentials_from_hub(configs)
-    set_preferences_from_hub(configs, ["RICH_STYLE", "PLOT_STYLE"])
-    save_theme_from_hub(configs)
+    set_preferences_from_hub(configs, fields=["RICH_STYLE"])
+    set_rich_style_from_hub(configs)
+    set_chart_table_style_from_hub(configs)
     set_sources_from_hub(configs)
 
 
@@ -154,8 +156,8 @@ def set_preferences_from_hub(configs: dict, fields: Optional[List[str]] = None):
                 set_preference(k, v)
 
 
-def save_theme_from_hub(configs: dict):
-    """Set theme.
+def set_rich_style_from_hub(configs: dict):
+    """Set rich style from hub.
 
     Parameters
     ----------
@@ -165,9 +167,9 @@ def save_theme_from_hub(configs: dict):
     if configs:
         terminal_style = configs.get("features_terminal_style", {}) or {}
         if terminal_style:
-            user_style = terminal_style.get("theme", None)
-            if user_style:
-                user_style = {k: v.replace(" ", "") for k, v in user_style.items()}
+            rich_style = terminal_style.get("theme", None)
+            if rich_style:
+                rich_style = {k: v.replace(" ", "") for k, v in rich_style.items()}
                 try:
                     with open(
                         MISCELLANEOUS_DIRECTORY
@@ -176,14 +178,31 @@ def save_theme_from_hub(configs: dict):
                         / "hub.richstyle.json",
                         "w",
                     ) as f:
-                        json.dump(user_style, f)
+                        json.dump(rich_style, f)
 
+                    # Default to hub theme
                     preferences = configs.get("features_settings", {}) or {}
                     if "RICH_STYLE" not in preferences:
                         set_preference("RICH_STYLE", "hub")
 
                 except Exception:
-                    console.print("[red]Failed to save theme.[/red]")
+                    console.print("[red]Failed to set rich style.[/red]")
+
+
+def set_chart_table_style_from_hub(configs: dict):
+    """Set chart and table style from hub.
+
+    Parameters
+    ----------
+    configs : dict
+        The configurations.
+    """
+    if configs:
+        terminal_style = configs.get("features_terminal_style", {}) or {}
+        if terminal_style:
+            chart_table = terminal_style.get("chart_table", None)
+            if chart_table:
+                set_preference("THEME", chart_table)
 
 
 def set_sources_from_hub(configs: dict):
diff --git a/openbb_terminal/helper_funcs.py b/openbb_terminal/helper_funcs.py
index 7bd3ca8dfe36..fa188beb6caa 100644
--- a/openbb_terminal/helper_funcs.py
+++ b/openbb_terminal/helper_funcs.py
@@ -350,8 +350,14 @@ def _get_headers(_headers: Union[List[str], pd.Index]) -> List[str]:
             if col == "":
                 df_outgoing = df_outgoing.rename(columns={col: "  "})
 
+        theme = current_user.preferences.THEME
+        table_theme = "white" if theme == "light" else theme
+
         plots_backend().send_table(
-            df_table=df_outgoing, title=title, source=source  # type: ignore
+            df_table=df_outgoing,
+            title=title,
+            source=source,  # type: ignore
+            theme=table_theme,
         )
         return
 
diff --git a/openbb_terminal/miscellaneous/i18n/en.yml b/openbb_terminal/miscellaneous/i18n/en.yml
index 14fbcf8bfc82..f6b3c89c2a31 100644
--- a/openbb_terminal/miscellaneous/i18n/en.yml
+++ b/openbb_terminal/miscellaneous/i18n/en.yml
@@ -70,8 +70,8 @@ en:
   settings/_cmds_: Change settings
   settings/colors: set your own terminal colors
   settings/_colors: Colors
-  settings/plotstyle: set your own plot style
-  settings/_plotstyle: Plot style
+  settings/theme: set plots and tables theme
+  settings/_theme: Theme
   settings/autoscaling: plot autoscaling
   settings/dt: add or remove datetime from flair
   settings/flair: set the flair emoji to be used
diff --git a/openbb_terminal/settings_controller.py b/openbb_terminal/settings_controller.py
index 0ab3ed31dc91..bad2f351140b 100644
--- a/openbb_terminal/settings_controller.py
+++ b/openbb_terminal/settings_controller.py
@@ -24,6 +24,7 @@
     STYLES_DIRECTORY_REPO,
     USER_DATA_SOURCES_DEFAULT_FILE,
 )
+from openbb_terminal.core.session.constants import CHARTS_TABLES_URL, COLORS_URL
 from openbb_terminal.core.session.current_user import (
     get_current_user,
     is_local,
@@ -62,9 +63,9 @@ class SettingsController(BaseController):
         "lang",
         "monitor",
         "pheight",
-        "plotstyle",
         "pwidth",
         "tbnews",
+        "theme",
         "tweetnews",
         "tz",
         "userdata",
@@ -138,9 +139,9 @@ def print_help(self):
         mt.add_raw("\n")
         mt.add_setting("dt", current_user.preferences.USE_DATETIME)
         mt.add_raw("\n")
-        mt.add_cmd("plotstyle")
+        mt.add_cmd("theme")
         mt.add_raw("\n")
-        mt.add_param("_plotstyle", current_user.preferences.PLOT_STYLE)
+        mt.add_param("_theme", current_user.preferences.THEME)
         mt.add_raw("\n")
         mt.add_cmd("colors")
         mt.add_raw("\n")
@@ -277,7 +278,8 @@ def call_colors(self, other_args: List[str]):
             help="To use 'custom' option, go to https://openbb.co/customize and create your theme."
             " Then, place the downloaded file 'openbb_config.richstyle.json'"
             f" inside {get_current_user().preferences.USER_STYLES_DIRECTORY} or "
-            f"{STYLES_DIRECTORY_REPO}.",
+            f"{STYLES_DIRECTORY_REPO}. If you have a hub account you can change colors "
+            f"here {COLORS_URL}.",
         )
         if other_args and "-" not in other_args[0][0]:
             other_args.insert(0, "-s")
@@ -285,7 +287,7 @@ def call_colors(self, other_args: List[str]):
         if ns_parser:
             if is_local():
                 self.set_and_save_preference("RICH_STYLE", ns_parser.style)
-                console.print("Theme updated.")
+                console.print("Rich style updated.")
             else:
                 set_preference("RICH_STYLE", ns_parser.style)
                 Hub.upload_config(
@@ -300,45 +302,43 @@ def call_colors(self, other_args: List[str]):
                     )
                     if response:
                         configs = json.loads(response.content)
-                        Local.save_theme_from_hub(configs)
-                console.print("Theme updated.")
+                        Local.set_rich_style_from_hub(configs)
+                console.print("Rich style updated.")
 
     @log_start_end(log=logger)
-    def call_plotstyle(self, other_args: List[str]):
-        """Process plotstyle command"""
-        # TODO: Add support for any style like in colors command. Choices should be
-        #  theme.plt_styles_available. Don't forget to theme.load_available_styles(),
-        #  to allow for files in user's styles directory created after the app started.
+    def call_theme(self, other_args: List[str]):
+        """Process theme command"""
         parser = argparse.ArgumentParser(
             add_help=False,
             formatter_class=argparse.ArgumentDefaultsHelpFormatter,
-            prog="plotstyle",
-            description="Choose plot style.",
+            prog="theme",
+            description="Choose theme style.",
         )
         parser.add_argument(
             "-s",
             "--style",
             type=str,
             dest="style",
-            help="Choose plot style.",
+            choices=["dark", "light"],
+            help="Choose theme style. If you have a hub account you can change theme "
+            f"here {CHARTS_TABLES_URL}.",
             required="-h" not in other_args and "--help" not in other_args,
         )
         if other_args and "-" not in other_args[0][0]:
             other_args.insert(0, "-s")
         ns_parser = self.parse_simple_args(parser, other_args)
         if ns_parser and ns_parser.style:
-            self.set_and_save_preference("PLOT_STYLE", ns_parser.style)
-            # if is_local():
-            #     self.set_and_save_preference("PLOT_STYLE", ns_parser.style)
-            # else:
-            #     set_preference("PLOT_STYLE", ns_parser.style)
-            #     Hub.upload_config(
-            #         key="PLOT_STYLE",
-            #         value=ns_parser.style,
-            #         type_="settings",
-            #         auth_header=get_current_user().profile.get_auth_header(),
-            #     )
-            # console.print("Plot style updated.")
+            if is_local():
+                self.set_and_save_preference("THEME", ns_parser.style)
+            else:
+                set_preference("THEME", ns_parser.style)
+                Hub.upload_config(
+                    key="chart_table",
+                    value=ns_parser.style,
+                    type_="terminal_style",
+                    auth_header=get_current_user().profile.get_auth_header(),
+                )
+            console.print("Theme updated.")
 
     @log_start_end(log=logger)
     def call_source(self, other_args: List[str]):

From af8cfac18f9387a96c98653e675a32b62e691d40 Mon Sep 17 00:00:00 2001
From: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Date: Mon, 3 Apr 2023 12:14:27 +0100
Subject: [PATCH 3/4] filter system credentials from logs (#4663)

---
 .../core/log/generation/settings_logger.py            |  5 ++++-
 openbb_terminal/core/models/system_model.py           | 11 ++++++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/openbb_terminal/core/log/generation/settings_logger.py b/openbb_terminal/core/log/generation/settings_logger.py
index ee5ec8ed1354..6d4a70c38706 100644
--- a/openbb_terminal/core/log/generation/settings_logger.py
+++ b/openbb_terminal/core/log/generation/settings_logger.py
@@ -34,7 +34,10 @@ def log_all_settings(with_rollover: bool = True) -> None:
 
 def log_system() -> None:
     """Log system"""
-    logger.info("SYSTEM: %s ", json.dumps(get_current_system().to_dict()))
+    system_dict = get_current_system().to_dict()
+    system_dict.pop("LOGGING_AWS_ACCESS_KEY_ID", None)
+    system_dict.pop("LOGGING_AWS_SECRET_ACCESS_KEY", None)
+    logger.info("SYSTEM: %s ", json.dumps(system_dict))
 
 
 def log_credentials() -> None:
diff --git a/openbb_terminal/core/models/system_model.py b/openbb_terminal/core/models/system_model.py
index f5ea9de6e199..50844bed5e8f 100644
--- a/openbb_terminal/core/models/system_model.py
+++ b/openbb_terminal/core/models/system_model.py
@@ -11,7 +11,16 @@
 
 @dataclass(config=dict(validate_assignment=True, frozen=True))
 class SystemModel(BaseModel):
-    """Data model for system variables and configurations."""
+    """
+    Data model for system variables and configurations.
+
+    Disclaimer:
+        If you need to have a system related variable that is a credential like
+        `LOGGING_AWS_ACCESS_KEY_ID` and `LOGGING_AWS_SECRET_ACCESS_KEY`, you need
+        refer to the following function
+        `openbb_terminal.core.log.generation.settings_logger.log_system`,
+        in order to filter it from the logs.
+    """
 
     # System section
     OS: str = str(platform.system())

From f4c48dc8d448bd6fd989ddab8d550a36816c3fb6 Mon Sep 17 00:00:00 2001
From: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
Date: Mon, 3 Apr 2023 05:07:36 -0700
Subject: [PATCH 4/4] Improves `economy/fred` command (#4634)

* Fixed

* Started the switch

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
---
 openbb_terminal/economy/economy_controller.py | 13 ++++--
 openbb_terminal/economy/fred_view.py          | 42 ++++++++++++++-----
 .../economy/test_economy_controller.py        |  4 +-
 3 files changed, 44 insertions(+), 15 deletions(-)

diff --git a/openbb_terminal/economy/economy_controller.py b/openbb_terminal/economy/economy_controller.py
index 45ac42386a7e..0fcd3e795cc1 100644
--- a/openbb_terminal/economy/economy_controller.py
+++ b/openbb_terminal/economy/economy_controller.py
@@ -1389,8 +1389,13 @@ def call_fred(self, other_args: List[str]):
                 query = " ".join(ns_parser.query)
                 df_search = fred_model.get_series_notes(search_query=query)
 
-                if not df_search.empty:
-                    fred_view.notes(search_query=query, limit=ns_parser.limit)
+                if isinstance(df_search, pd.DataFrame) and not df_search.empty:
+                    fred_view.notes(
+                        search_query=query,
+                        limit=ns_parser.limit,
+                        export=ns_parser.export,
+                        sheet_name=ns_parser.sheet_name,
+                    )
 
                     self.fred_query = df_search["id"].head(ns_parser.limit)
                     self.update_runtime_choices()
@@ -1431,7 +1436,7 @@ def call_fred(self, other_args: List[str]):
                     get_data=True,
                 )
 
-                if not df.empty:
+                if isinstance(df, pd.DataFrame) and not df.empty:
                     for series_id, data in detail.items():
                         self.FRED_TITLES[
                             series_id
@@ -1448,7 +1453,7 @@ def call_fred(self, other_args: List[str]):
                     if get_current_user().preferences.ENABLE_EXIT_AUTO_HELP:
                         self.print_help()
 
-                else:
+                elif not ns_parser.export and not ns_parser.raw:
                     console.print("[red]No data found for the given Series ID[/red]")
 
             elif not parameters and ns_parser.raw:
diff --git a/openbb_terminal/economy/fred_view.py b/openbb_terminal/economy/fred_view.py
index d1b5d85f3de9..9cddc52fa0f7 100644
--- a/openbb_terminal/economy/fred_view.py
+++ b/openbb_terminal/economy/fred_view.py
@@ -40,7 +40,12 @@ def format_units(num: int) -> str:
 
 @log_start_end(log=logger)
 @check_api_key(["API_FRED_KEY"])
-def notes(search_query: str, limit: int = 10):
+def notes(
+    search_query: str,
+    limit: int = 10,
+    export: str = "",
+    sheet_name: Optional[str] = None,
+):
     """Display series notes. [Source: FRED]
 
     Parameters
@@ -49,6 +54,10 @@ def notes(search_query: str, limit: int = 10):
         Text query to search on fred series notes database
     limit : int
         Maximum number of series notes to display
+    export : str
+        Export data to csv,json,xlsx or png,jpg,pdf,svg file
+    sheet_name : Optional[str]
+        The name of the sheet
     """
     df_search = fred_model.get_series_notes(search_query)
 
@@ -61,6 +70,14 @@ def notes(search_query: str, limit: int = 10):
         show_index=False,
         headers=["Series ID", "Title", "Description"],
         limit=limit,
+        export=bool(export),
+    )
+    export_data(
+        export,
+        os.path.dirname(os.path.abspath(__file__)),
+        "fred",
+        df_search,
+        sheet_name,
     )
 
 
@@ -93,6 +110,8 @@ def display_fred_series(
         Output only raw data
     export : str
         Export data to csv,json,xlsx or png,jpg,pdf,svg file
+    sheet_name : Optional[str]
+        The name of the sheet
     external_axes : bool, optional
         Whether to return the figure object or not, by default False
     """
@@ -132,6 +151,17 @@ def display_fred_series(
     )
     data.index = [x.strftime("%Y-%m-%d") for x in data.index]
 
+    if export:
+        export_data(
+            export,
+            os.path.dirname(os.path.abspath(__file__)),
+            "fred",
+            data,
+            sheet_name,
+            fig,
+        )
+        return None, None
+
     if raw:
         data = data.sort_index(ascending=False)
         print_rich_table(
@@ -142,15 +172,7 @@ def display_fred_series(
             export=bool(export),
             limit=limit,
         )
-
-    export_data(
-        export,
-        os.path.dirname(os.path.abspath(__file__)),
-        "fred",
-        data,
-        sheet_name,
-        fig,
-    )
+        return None, None
 
     if get_data:
         fig.show(external=external_axes)
diff --git a/tests/openbb_terminal/economy/test_economy_controller.py b/tests/openbb_terminal/economy/test_economy_controller.py
index 46f19263c86c..52e62de55207 100644
--- a/tests/openbb_terminal/economy/test_economy_controller.py
+++ b/tests/openbb_terminal/economy/test_economy_controller.py
@@ -1040,7 +1040,9 @@ def test_call_fred_query(mocker):
     controller = economy_controller.EconomyController(queue=None)
     controller.choices = {}
     controller.call_fred(["--query", "MOCK_QUERY", "--limit", "1"])
-    mock.assert_called_once_with(**dict(search_query="MOCK_QUERY", limit=1))
+    mock.assert_called_once_with(
+        **dict(search_query="MOCK_QUERY", limit=1, export="", sheet_name=None)
+    )
 
 
 @pytest.mark.vcr(record_mode="none")