Files
OpenBB/openbb_terminal/core/plots/table.html
teh_coderer ea393dcfa8 Feature/ pywry posthog (#4860)
* posthog

* Update index.html

* remove console logs

* fix feature flag getting sent

* adding to frontend-components

* updates

* Update main.js

* alias

* Update backend.py

* Update backend.py

* tables handle null

* Update helper_funcs.py

* Update volatility_view.py

---------

Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-04-24 19:36:46 +00:00

317 lines
690 KiB
HTML
Vendored
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenBB Interactive Tables</title>
<script>
if (window.json_data?.posthog?.collect_logs) {
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init("phc_vhssDAMod5qIplznQ75Kdgz4aB1qPFmeVmfEOZ4hkRw", {
api_host: "https://app.posthog.com",
autocapture: {
css_selector_allowlist: [".ph-capture"],
},
capture_pageview: false,
loaded: function (posthog) {
if (window.json_data) {
const data = JSON.parse(window.json_data);
const log_id = data?.log_id || "";
const posthog_obj = data?.posthog || {};
if (log_id != "" && log_id != "REPLACE_ME") {
if (posthog_obj?.user_id) {
posthog.identify(posthog_obj.user_id, {
email: posthog_obj.email,
});
posthog.alias(posthog_obj.user_id, log_id);
} else {
posthog.identify(log_id);
}
}
posthog.capture("table", {
INFO: {
command: data.command_location,
title: data.title,
python_version: data.python_version,
pywry_version: data.pywry_version,
terminal_version: data.terminal_version,
},
});
}
posthog.onFeatureFlags(function () {
if (
!posthog.isFeatureEnabled("record-pywry", { send_event: false })
) {
posthog.stopSessionRecording();
}
if (
!posthog.isFeatureEnabled("collect-logs-pywry", {
send_event: false,
})
) {
posthog.opt_out_capturing();
} else if (posthog.has_opted_out_capturing()) {
posthog.opt_in_capturing();
}
});
},
});
}
if (
// check if user had saved dark as their
// theme when accessing page before
localStorage.theme === "dark" ||
// or user's requesting dark color
// scheme through operating system
(!("theme" in localStorage) &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
// then if we have access to the document and the element
// we add the dark class to the html element and
// store the dark value in the localStorage
if (document && document.documentElement) {
document.documentElement.classList.add("dark");
localStorage.setItem("theme", "dark");
}
} else {
// else if we have access to the document and the element
// we remove the dark class to the html element and
// store the value light in the localStorage
if (document && document.documentElement) {
document.documentElement.classList.remove("dark");
localStorage.setItem("theme", "light");
}
}
</script>
<script type="module" crossorigin>
function ly(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function w1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wa={},uy={get exports(){return wa},set exports(e){wa=e}},Va={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var ch=Object.getOwnPropertySymbols,cy=Object.prototype.hasOwnProperty,fy=Object.prototype.propertyIsEnumerable;function dy(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function hy(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var y1=hy()?Object.assign:function(e,t){for(var r,n=dy(e),i,o=1;o<arguments.length;o++){r=Object(arguments[o]);for(var a in r)cy.call(r,a)&&(n[a]=r[a]);if(ch){i=ch(r);for(var s=0;s<i.length;s++)fy.call(r,i[s])&&(n[i[s]]=r[i[s]])}}return n},v={},py={get exports(){return v},set exports(e){v=e}},be={};/** @license React v17.0.2
* react.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 s0=y1,ho=60103,E1=60106;be.Fragment=60107;be.StrictMode=60108;be.Profiler=60114;var _1=60109,S1=60110,T1=60112;be.Suspense=60113;var C1=60115,A1=60116;if(typeof Symbol=="function"&&Symbol.for){var pr=Symbol.for;ho=pr("react.element"),E1=pr("react.portal"),be.Fragment=pr("react.fragment"),be.StrictMode=pr("react.strict_mode"),be.Profiler=pr("react.profiler"),_1=pr("react.provider"),S1=pr("react.context"),T1=pr("react.forward_ref"),be.Suspense=pr("react.suspense"),C1=pr("react.memo"),A1=pr("react.lazy")}var fh=typeof Symbol=="function"&&Symbol.iterator;function gy(e){return e===null||typeof e!="object"?null:(e=fh&&e[fh]||e["@@iterator"],typeof e=="function"?e:null)}function Wa(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."}var R1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O1={};function po(e,t,r){this.props=e,this.context=t,this.refs=O1,this.updater=r||R1}po.prototype.isReactComponent={};po.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Wa(85));this.updater.enqueueSetState(this,e,t,"setState")};po.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function F1(){}F1.prototype=po.prototype;function l0(e,t,r){this.props=e,this.context=t,this.refs=O1,this.updater=r||R1}var u0=l0.prototype=new F1;u0.constructor=l0;s0(u0,po.prototype);u0.isPureReactComponent=!0;var c0={current:null},D1=Object.prototype.hasOwnProperty,P1={key:!0,ref:!0,__self:!0,__source:!0};function I1(e,t,r){var n,i={},o=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)D1.call(t,n)&&!P1.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:ho,type:e,key:o,ref:a,props:i,_owner:c0.current}}function my(e,t){return{$$typeof:ho,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function f0(e){return typeof e=="object"&&e!==null&&e.$$typeof===ho}function vy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var dh=/\/+/g;function Uu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?vy(""+e.key):t.toString(36)}function Hs(e,t,r,n,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case ho:case E1:a=!0}}if(a)return a=e,i=i(a),e=n===""?"."+Uu(a,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(dh,"$&/")+"/"),Hs(i,t,r,"",function(u){return u})):i!=null&&(f0(i)&&(i=my(i,r+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(dh,"$&/")+"/")+e)),t.push(i)),1;if(a=0,n=n===""?".":n+":",Array.isArray(e))for(var s=0;s<e.length;s++){o=e[s];var l=n+Uu(o,s);a+=Hs(o,t,r,l,i)}else if(l=gy(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=n+Uu(o,s++),a+=Hs(o,t,r,l,i);else if(o==="object")throw t=""+e,Error(Wa(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function as(e,t,r){if(e==null)return e;var n=[],i=0;return Hs(e,n,"","",function(o){return t.call(r,o,i++)}),n}function xy(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var b1={current:null};function nn(){var e=b1.current;if(e===null)throw Error(Wa(321));return e}var wy={ReactCurrentDispatcher:b1,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:c0,IsSomeRendererActing:{current:!1},assign:s0};be.Children={map:as,forEach:function(e,t,r){as(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return as(e,function(){t++}),t},toArray:function(e){return as(e,function(t){return t})||[]},only:function(e){if(!f0(e))throw Error(Wa(143));return e}};be.Component=po;be.PureComponent=l0;be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wy;be.cloneElement=function(e,t,r){if(e==null)throw Error(Wa(267,e));var n=s0({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=c0.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)D1.call(t,l)&&!P1.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:ho,type:e.type,key:i,ref:o,props:n,_owner:a}};be.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:S1,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:_1,_context:e},e.Consumer=e};be.createElement=I1;be.createFactory=function(e){var t=I1.bind(null,e);return t.type=e,t};be.createRef=function(){return{current:null}};be.forwardRef=function(e){return{$$typeof:T1,render:e}};be.isValidElement=f0;be.lazy=function(e){return{$$typeof:A1,_payload:{_status:-1,_result:e},_init:xy}};be.memo=function(e,t){return{$$typeof:C1,type:e,compare:t===void 0?null:t}};be.useCallback=function(e,t){return nn().useCallback(e,t)};be.useContext=function(e,t){return nn().useContext(e,t)};be.useDebugValue=function(){};be.useEffect=function(e,t){return nn().useEffect(e,t)};be.useImperativeHandle=function(e,t,r){return nn().useImperativeHandle(e,t,r)};be.useLayoutEffect=function(e,t){return nn().useLayoutEffect(e,t)};be.useMemo=function(e,t){return nn().useMemo(e,t)};be.useReducer=function(e,t,r){return nn().useReducer(e,t,r)};be.useRef=function(e){return nn().useRef(e)};be.useState=function(e){return nn().useState(e)};be.version="17.0.2";(function(e){e.exports=be})(py);const nr=w1(v),yy=ly({__proto__:null,default:nr},[v]);/** @license React v17.0.2
* react-jsx-runtime.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 Ey=v,k1=60103;Va.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var hh=Symbol.for;k1=hh("react.element"),Va.Fragment=hh("react.fragment")}var _y=Ey.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Sy=Object.prototype.hasOwnProperty,Ty={key:!0,ref:!0,__self:!0,__source:!0};function $1(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)Sy.call(t,n)&&!Ty.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:k1,type:e,key:o,ref:a,props:i,_owner:_y.current}}Va.jsx=$1;Va.jsxs=$1;(function(e){e.exports=Va})(uy);const N1=wa.Fragment,Z=wa.jsx,Te=wa.jsxs;var Jr={},Cy={get exports(){return Jr},set exports(e){Jr=e}},dr={},Uc={},Ay={get exports(){return Uc},set exports(e){Uc=e}},M1={};/** @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 Q=e.unstable_now();l(!0,Q),l=null}catch(F){throw setTimeout(c,0),F}};t=function(Q){l!==null?setTimeout(t,0,Q):(l=Q,setTimeout(c,0))},r=function(Q,F){u=setTimeout(Q,F)},n=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if(typeof console<"u"){var h=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 h!="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,x=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},i=function(){},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<Q?Math.floor(1e3/Q):5};var y=new MessageChannel,_=y.port2;y.port1.onmessage=function(){if(p!==null){var Q=e.unstable_now();w=Q+x;try{p(!0,Q)?_.postMessage(null):(m=!1,p=null)}catch(F){throw _.postMessage(null),F}}else m=!1},t=function(Q){p=Q,m||(m=!0,_.postMessage(null))},r=function(Q,F){g=f(function(){Q(e.unstable_now())},F)},n=function(){d(g),g=-1}}function k(Q,F){var M=Q.length;Q.push(F);e:for(;;){var b=M-1>>>1,T=Q[b];if(T!==void 0&&0<A(T,F))Q[b]=F,Q[M]=T,M=b;else break e}}function N(Q){return Q=Q[0],Q===void 0?null:Q}function S(Q){var F=Q[0];if(F!==void 0){var M=Q.pop();if(M!==F){Q[0]=M;e:for(var b=0,T=Q.length;b<T;){var B=2*(b+1)-1,H=Q[B],q=B+1,ee=Q[q];if(H!==void 0&&0>A(H,M))ee!==void 0&&0>A(ee,H)?(Q[b]=ee,Q[q]=M,b=q):(Q[b]=H,Q[B]=M,b=B);else if(ee!==void 0&&0>A(ee,M))Q[b]=ee,Q[q]=M,b=q;else break e}}return F}return null}function A(Q,F){var M=Q.sortIndex-F.sortIndex;return M!==0?M:Q.id-F.id}var R=[],L=[],V=1,U=null,W=3,Y=!1,re=!1,ye=!1;function ge(Q){for(var F=N(L);F!==null;){if(F.callback===null)S(L);else if(F.startTime<=Q)S(L),F.sortIndex=F.expirationTime,k(R,F);else break;F=N(L)}}function Se(Q){if(ye=!1,ge(Q),!re)if(N(R)!==null)re=!0,t(ie);else{var F=N(L);F!==null&&r(Se,F.startTime-Q)}}function ie(Q,F){re=!1,ye&&(ye=!1,n()),Y=!0;var M=W;try{for(ge(F),U=N(R);U!==null&&(!(U.expirationTime>F)||Q&&!e.unstable_shouldYield());){var b=U.callback;if(typeof b=="function"){U.callback=null,W=U.priorityLevel;var T=b(U.expirationTime<=F);F=e.unstable_now(),typeof T=="function"?U.callback=T:U===N(R)&&S(R),ge(F)}else S(R);U=N(R)}if(U!==null)var B=!0;else{var H=N(L);H!==null&&r(Se,H.startTime-F),B=!1}return B}finally{U=null,W=M,Y=!1}}var we=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(Q){Q.callback=null},e.unstable_continueExecution=function(){re||Y||(re=!0,t(ie))},e.unstable_getCurrentPriorityLevel=function(){return W},e.unstable_getFirstCallbackNode=function(){return N(R)},e.unstable_next=function(Q){switch(W){case 1:case 2:case 3:var F=3;break;default:F=W}var M=W;W=F;try{return Q()}finally{W=M}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=we,e.unstable_runWithPriority=function(Q,F){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var M=W;W=Q;try{return F()}finally{W=M}},e.unstable_scheduleCallback=function(Q,F,M){var b=e.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?b+M:b):M=b,Q){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=M+T,Q={id:V++,callback:F,priorityLevel:Q,startTime:M,expirationTime:T,sortIndex:-1},M>b?(Q.sortIndex=M,k(L,Q),N(R)===null&&Q===N(L)&&(ye?n():ye=!0,r(Se,M-b))):(Q.sortIndex=T,k(R,Q),re||Y||(re=!0,t(ie))),Q},e.unstable_wrapCallback=function(Q){var F=W;return function(){var M=W;W=F;try{return Q.apply(this,arguments)}finally{W=M}}}})(M1);(function(e){e.exports=M1})(Ay);/** @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 Xl=v,Xe=y1,ft=Uc;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(!Xl)throw Error(se(227));var L1=new Set,ya={};function ui(e,t){io(e,t),io(e+"Capture",t)}function io(e,t){for(ya[e]=t,e=0;e<t.length;e++)L1.add(t[e])}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ry=/^[: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]*$/,ph=Object.prototype.hasOwnProperty,gh={},mh={};function Oy(e){return ph.call(mh,e)?!0:ph.call(gh,e)?!1:Ry.test(e)?mh[e]=!0:(gh[e]=!0,!1)}function Fy(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 Dy(e,t,r,n){if(t===null||typeof t>"u"||Fy(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 Nt(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 Nt(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 Nt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){yt[e]=new Nt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){yt[e]=new Nt(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 Nt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){yt[e]=new Nt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){yt[e]=new Nt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){yt[e]=new Nt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){yt[e]=new Nt(e,5,!1,e.toLowerCase(),null,!1,!1)});var d0=/[\-:]([a-z])/g;function h0(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(d0,h0);yt[t]=new Nt(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(d0,h0);yt[t]=new Nt(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(d0,h0);yt[t]=new Nt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){yt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!1,!1)});yt.xlinkHref=new Nt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){yt[e]=new Nt(e,1,!1,e.toLowerCase(),null,!0,!0)});function p0(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||(Dy(t,r,i,n)&&(r=null),n||i===null?Oy(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 ci=Xl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Xo=60103,Kn=60106,fn=60107,g0=60108,Jo=60114,m0=60109,v0=60110,Kl=60112,ea=60113,rl=60120,Yl=60115,x0=60116,w0=60121,y0=60128,B1=60129,E0=60130,Hc=60131;if(typeof Symbol=="function"&&Symbol.for){var st=Symbol.for;Xo=st("react.element"),Kn=st("react.portal"),fn=st("react.fragment"),g0=st("react.strict_mode"),Jo=st("react.profiler"),m0=st("react.provider"),v0=st("react.context"),Kl=st("react.forward_ref"),ea=st("react.suspense"),rl=st("react.suspense_list"),Yl=st("react.memo"),x0=st("react.lazy"),w0=st("react.block"),st("react.scope"),y0=st("react.opaque.id"),B1=st("react.debug_trace_mode"),E0=st("react.offscreen"),Hc=st("react.legacy_hidden")}var vh=typeof Symbol=="function"&&Symbol.iterator;function Po(e){return e===null||typeof e!="object"?null:(e=vh&&e[vh]||e["@@iterator"],typeof e=="function"?e:null)}var Hu;function Ko(e){if(Hu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Hu=t&&t[1]||""}return`
`+Hu+e}var Vu=!1;function ss(e,t){if(!e||Vu)return"";Vu=!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{Vu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ko(e):""}function Py(e){switch(e.tag){case 5:return Ko(e.type);case 16:return Ko("Lazy");case 13:return Ko("Suspense");case 19:return Ko("SuspenseList");case 0:case 2:case 15:return e=ss(e.type,!1),e;case 11:return e=ss(e.type.render,!1),e;case 22:return e=ss(e.type._render,!1),e;case 1:return e=ss(e.type,!0),e;default:return""}}function zi(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 fn:return"Fragment";case Kn:return"Portal";case Jo:return"Profiler";case g0:return"StrictMode";case ea:return"Suspense";case rl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v0:return(e.displayName||"Context")+".Consumer";case m0:return(e._context.displayName||"Context")+".Provider";case Kl:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case Yl:return zi(e.type);case w0:return zi(e._render);case x0:t=e._payload,e=e._init;try{return zi(e(t))}catch{}}return null}function On(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function U1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Iy(e){var t=U1(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 ls(e){e._valueTracker||(e._valueTracker=Iy(e))}function H1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=U1(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function nl(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 Vc(e,t){var r=t.checked;return Xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function xh(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=On(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 V1(e,t){t=t.checked,t!=null&&p0(e,"checked",t,!1)}function Wc(e,t){V1(e,t);var r=On(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")?zc(e,t.type,r):t.hasOwnProperty("defaultValue")&&zc(e,t.type,On(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wh(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 zc(e,t,r){(t!=="number"||nl(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function by(e){var t="";return Xl.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function Gc(e,t){return e=Xe({children:void 0},t),(t=by(t.children))&&(e.children=t),e}function Gi(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=""+On(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 jc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(se(91));return Xe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yh(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:On(r)}}function W1(e,t){var r=On(t.value),n=On(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 Eh(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var Xc={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function z1(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 Kc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?z1(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var us,G1=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!==Xc.svg||"innerHTML"in e)e.innerHTML=t;else{for(us=us||document.createElement("div"),us.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=us.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ea(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var ta={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},ky=["Webkit","ms","Moz","O"];Object.keys(ta).forEach(function(e){ky.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ta[t]=ta[e]})});function j1(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||ta.hasOwnProperty(e)&&ta[e]?(""+t).trim():t+"px"}function X1(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=j1(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var $y=Xe({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 Yc(e,t){if(t){if($y[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 qc(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 _0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Qc=null,ji=null,Xi=null;function _h(e){if(e=Ga(e)){if(typeof Qc!="function")throw Error(se(280));var t=e.stateNode;t&&(t=tu(t),Qc(e.stateNode,e.type,t))}}function K1(e){ji?Xi?Xi.push(e):Xi=[e]:ji=e}function Y1(){if(ji){var e=ji,t=Xi;if(Xi=ji=null,_h(e),t)for(e=0;e<t.length;e++)_h(t[e])}}function S0(e,t){return e(t)}function q1(e,t,r,n,i){return e(t,r,n,i)}function T0(){}var Q1=S0,Yn=!1,Wu=!1;function C0(){(ji!==null||Xi!==null)&&(T0(),Y1())}function Ny(e,t,r){if(Wu)return e(t,r);Wu=!0;try{return Q1(e,t,r)}finally{Wu=!1,C0()}}function _a(e,t){var r=e.stateNode;if(r===null)return null;var n=tu(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 Zc=!1;if(en)try{var Io={};Object.defineProperty(Io,"passive",{get:function(){Zc=!0}}),window.addEventListener("test",Io,Io),window.removeEventListener("test",Io,Io)}catch{Zc=!1}function My(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 ra=!1,il=null,ol=!1,Jc=null,Ly={onError:function(e){ra=!0,il=e}};function By(e,t,r,n,i,o,a,s,l){ra=!1,il=null,My.apply(Ly,arguments)}function Uy(e,t,r,n,i,o,a,s,l){if(By.apply(this,arguments),ra){if(ra){var u=il;ra=!1,il=null}else throw Error(se(198));ol||(ol=!0,Jc=u)}}function fi(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 Z1(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 Sh(e){if(fi(e)!==e)throw Error(se(188))}function Hy(e){var t=e.alternate;if(!t){if(t=fi(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 Sh(i),e;if(o===n)return Sh(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 J1(e){if(e=Hy(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 Th(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var em,A0,tm,rm,ef=!1,Rr=[],xn=null,wn=null,yn=null,Sa=new Map,Ta=new Map,bo=[],Ch="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 tf(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function Ah(e,t){switch(e){case"focusin":case"focusout":xn=null;break;case"dragenter":case"dragleave":wn=null;break;case"mouseover":case"mouseout":yn=null;break;case"pointerover":case"pointerout":Sa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ta.delete(t.pointerId)}}function ko(e,t,r,n,i,o){return e===null||e.nativeEvent!==o?(e=tf(t,r,n,i,o),t!==null&&(t=Ga(t),t!==null&&A0(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Vy(e,t,r,n,i){switch(t){case"focusin":return xn=ko(xn,e,t,r,n,i),!0;case"dragenter":return wn=ko(wn,e,t,r,n,i),!0;case"mouseover":return yn=ko(yn,e,t,r,n,i),!0;case"pointerover":var o=i.pointerId;return Sa.set(o,ko(Sa.get(o)||null,e,t,r,n,i)),!0;case"gotpointercapture":return o=i.pointerId,Ta.set(o,ko(Ta.get(o)||null,e,t,r,n,i)),!0}return!1}function Wy(e){var t=qn(e.target);if(t!==null){var r=fi(t);if(r!==null){if(t=r.tag,t===13){if(t=Z1(r),t!==null){e.blockedOn=t,rm(e.lanePriority,function(){ft.unstable_runWithPriority(e.priority,function(){tm(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Vs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=D0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Ga(r),t!==null&&A0(t),e.blockedOn=r,!1;t.shift()}return!0}function Rh(e,t,r){Vs(e)&&r.delete(t)}function zy(){for(ef=!1;0<Rr.length;){var e=Rr[0];if(e.blockedOn!==null){e=Ga(e.blockedOn),e!==null&&em(e);break}for(var t=e.targetContainers;0<t.length;){var r=D0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Rr.shift()}xn!==null&&Vs(xn)&&(xn=null),wn!==null&&Vs(wn)&&(wn=null),yn!==null&&Vs(yn)&&(yn=null),Sa.forEach(Rh),Ta.forEach(Rh)}function $o(e,t){e.blockedOn===t&&(e.blockedOn=null,ef||(ef=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,zy)))}function nm(e){function t(i){return $o(i,e)}if(0<Rr.length){$o(Rr[0],e);for(var r=1;r<Rr.length;r++){var n=Rr[r];n.blockedOn===e&&(n.blockedOn=null)}}for(xn!==null&&$o(xn,e),wn!==null&&$o(wn,e),yn!==null&&$o(yn,e),Sa.forEach(t),Ta.forEach(t),r=0;r<bo.length;r++)n=bo[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<bo.length&&(r=bo[0],r.blockedOn===null);)Wy(r),r.blockedOn===null&&bo.shift()}function cs(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ni={animationend:cs("Animation","AnimationEnd"),animationiteration:cs("Animation","AnimationIteration"),animationstart:cs("Animation","AnimationStart"),transitionend:cs("Transition","TransitionEnd")},zu={},im={};en&&(im=document.createElement("div").style,"AnimationEvent"in window||(delete Ni.animationend.animation,delete Ni.animationiteration.animation,delete Ni.animationstart.animation),"TransitionEvent"in window||delete Ni.transitionend.transition);function ql(e){if(zu[e])return zu[e];if(!Ni[e])return e;var t=Ni[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in im)return zu[e]=t[r];return e}var om=ql("animationend"),am=ql("animationiteration"),sm=ql("animationstart"),lm=ql("transitionend"),um=new Map,R0=new Map,Gy=["abort","abort",om,"animationEnd",am,"animationIteration",sm,"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",lm,"transitionEnd","waiting","waiting"];function O0(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)),R0.set(n,t),um.set(n,i),ui(i,[n])}}var jy=ft.unstable_now;jy();var Ve=8;function bi(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 Xy(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 Ky(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 Ca(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=bi(l),i=Ve):(s&=o,s!==0&&(n=bi(s),i=Ve))}else o=r&~a,o!==0?(n=bi(o),i=Ve):s!==0&&(n=bi(s),i=Ve);if(n===0)return 0;if(n=31-Fn(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&a)){if(bi(t),i<=Ve)return t;Ve=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Fn(t),i=1<<r,n|=e[r],t&=~i;return n}function cm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function al(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=ki(24&~t),e===0?al(10,t):e;case 10:return e=ki(192&~t),e===0?al(8,t):e;case 8:return e=ki(3584&~t),e===0&&(e=ki(4186112&~t),e===0&&(e=512)),e;case 2:return t=ki(805306368&~t),t===0&&(t=268435456),t}throw Error(se(358,e))}function ki(e){return e&-e}function Gu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ql(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Fn(t),e[t]=r}var Fn=Math.clz32?Math.clz32:Qy,Yy=Math.log,qy=Math.LN2;function Qy(e){return e===0?32:31-(Yy(e)/qy|0)|0}var Zy=ft.unstable_UserBlockingPriority,Jy=ft.unstable_runWithPriority,Ws=!0;function eE(e,t,r,n){Yn||T0();var i=F0,o=Yn;Yn=!0;try{q1(i,e,t,r,n)}finally{(Yn=o)||C0()}}function tE(e,t,r,n){Jy(Zy,F0.bind(null,e,t,r,n))}function F0(e,t,r,n){if(Ws){var i;if((i=(t&4)===0)&&0<Rr.length&&-1<Ch.indexOf(e))e=tf(null,e,t,r,n),Rr.push(e);else{var o=D0(e,t,r,n);if(o===null)i&&Ah(e,n);else{if(i){if(-1<Ch.indexOf(e)){e=tf(o,e,t,r,n),Rr.push(e);return}if(Vy(o,e,t,r,n))return;Ah(e,n)}Sm(e,t,n,null,r)}}}}function D0(e,t,r,n){var i=_0(n);if(i=qn(i),i!==null){var o=fi(i);if(o===null)i=null;else{var a=o.tag;if(a===13){if(i=Z1(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 Sm(e,t,n,i,r),null}var dn=null,P0=null,zs=null;function fm(){if(zs)return zs;var e,t=P0,r=t.length,n,i="value"in dn?dn.value:dn.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 zs=i.slice(e,1<n?1-n:void 0)}function Gs(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 fs(){return!0}function Oh(){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)?fs:Oh,this.isPropagationStopped=Oh,this}return Xe(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=fs)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=fs)},persist:function(){},isPersistent:fs}),t}var go={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},I0=Jt(go),za=Xe({},go,{view:0,detail:0}),rE=Jt(za),ju,Xu,No,Zl=Xe({},za,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:b0,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!==No&&(No&&e.type==="mousemove"?(ju=e.screenX-No.screenX,Xu=e.screenY-No.screenY):Xu=ju=0,No=e),ju)},movementY:function(e){return"movementY"in e?e.movementY:Xu}}),Fh=Jt(Zl),nE=Xe({},Zl,{dataTransfer:0}),iE=Jt(nE),oE=Xe({},za,{relatedTarget:0}),Ku=Jt(oE),aE=Xe({},go,{animationName:0,elapsedTime:0,pseudoElement:0}),sE=Jt(aE),lE=Xe({},go,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),uE=Jt(lE),cE=Xe({},go,{data:0}),Dh=Jt(cE),fE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dE={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"},hE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hE[e])?!!t[e]:!1}function b0(){return pE}var gE=Xe({},za,{key:function(e){if(e.key){var t=fE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Gs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:b0,charCode:function(e){return e.type==="keypress"?Gs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Gs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mE=Jt(gE),vE=Xe({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ph=Jt(vE),xE=Xe({},za,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:b0}),wE=Jt(xE),yE=Xe({},go,{propertyName:0,elapsedTime:0,pseudoElement:0}),EE=Jt(yE),_E=Xe({},Zl,{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}),SE=Jt(_E),TE=[9,13,27,32],k0=en&&"CompositionEvent"in window,na=null;en&&"documentMode"in document&&(na=document.documentMode);var CE=en&&"TextEvent"in window&&!na,dm=en&&(!k0||na&&8<na&&11>=na),Ih=String.fromCharCode(32),bh=!1;function hm(e,t){switch(e){case"keyup":return TE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mi=!1;function AE(e,t){switch(e){case"compositionend":return pm(t);case"keypress":return t.which!==32?null:(bh=!0,Ih);case"textInput":return e=t.data,e===Ih&&bh?null:e;default:return null}}function RE(e,t){if(Mi)return e==="compositionend"||!k0&&hm(e,t)?(e=fm(),zs=P0=dn=null,Mi=!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 dm&&t.locale!=="ko"?null:t.data;default:return null}}var OE={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 kh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!OE[e.type]:t==="textarea"}function gm(e,t,r,n){K1(n),t=sl(t,"onChange"),0<t.length&&(r=new I0("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var ia=null,Aa=null;function FE(e){ym(e,0)}function Jl(e){var t=Bi(e);if(H1(t))return e}function DE(e,t){if(e==="change")return t}var mm=!1;if(en){var Yu;if(en){var qu="oninput"in document;if(!qu){var $h=document.createElement("div");$h.setAttribute("oninput","return;"),qu=typeof $h.oninput=="function"}Yu=qu}else Yu=!1;mm=Yu&&(!document.documentMode||9<document.documentMode)}function Nh(){ia&&(ia.detachEvent("onpropertychange",vm),Aa=ia=null)}function vm(e){if(e.propertyName==="value"&&Jl(Aa)){var t=[];if(gm(t,Aa,e,_0(e)),e=FE,Yn)e(t);else{Yn=!0;try{S0(e,t)}finally{Yn=!1,C0()}}}}function PE(e,t,r){e==="focusin"?(Nh(),ia=t,Aa=r,ia.attachEvent("onpropertychange",vm)):e==="focusout"&&Nh()}function IE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jl(Aa)}function bE(e,t){if(e==="click")return Jl(t)}function kE(e,t){if(e==="input"||e==="change")return Jl(t)}function $E(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ar=typeof Object.is=="function"?Object.is:$E,NE=Object.prototype.hasOwnProperty;function Ra(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(!NE.call(t,r[n])||!ar(e[r[n]],t[r[n]]))return!1;return!0}function Mh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Lh(e,t){var r=Mh(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=Mh(r)}}function xm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bh(){for(var e=window,t=nl();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=nl(e.document)}return t}function rf(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 ME=en&&"documentMode"in document&&11>=document.documentMode,Li=null,nf=null,oa=null,of=!1;function Uh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;of||Li==null||Li!==nl(n)||(n=Li,"selectionStart"in n&&rf(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}),oa&&Ra(oa,n)||(oa=n,n=sl(nf,"onSelect"),0<n.length&&(t=new I0("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Li)))}O0("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);O0("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);O0(Gy,2);for(var Hh="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Qu=0;Qu<Hh.length;Qu++)R0.set(Hh[Qu],0);io("onMouseEnter",["mouseout","mouseover"]);io("onMouseLeave",["mouseout","mouseover"]);io("onPointerEnter",["pointerout","pointerover"]);io("onPointerLeave",["pointerout","pointerover"]);ui("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ui("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ui("onBeforeInput",["compositionend","keypress","textInput","paste"]);ui("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ui("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ui("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wm=new Set("cancel close invalid load scroll toggle".split(" ").concat(Yo));function Vh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Uy(n,t,void 0,e),e.currentTarget=null}function ym(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;Vh(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;Vh(i,s,u),o=l}}}if(ol)throw e=Jc,ol=!1,Jc=null,e}function We(e,t){var r=Cm(t),n=e+"__bubble";r.has(n)||(_m(t,e,2,!1),r.add(n))}var Wh="_reactListening"+Math.random().toString(36).slice(2);function Em(e){e[Wh]||(e[Wh]=!0,L1.forEach(function(t){wm.has(t)||zh(t,!1,e,null),zh(t,!0,e,null)}))}function zh(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&&wm.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),_m(o,e,i,t),a.add(s))}function _m(e,t,r,n){var i=R0.get(t);switch(i===void 0?2:i){case 0:i=eE;break;case 1:i=tE;break;default:i=F0}r=i.bind(null,t,r,e),i=void 0,!Zc||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 Sm(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=qn(s),a===null)return;if(l=a.tag,l===5||l===6){n=o=a;continue e}s=s.parentNode}}n=n.return}Ny(function(){var u=o,c=_0(r),f=[];e:{var d=um.get(e);if(d!==void 0){var h=I0,m=e;switch(e){case"keypress":if(Gs(r)===0)break e;case"keydown":case"keyup":h=mE;break;case"focusin":m="focus",h=Ku;break;case"focusout":m="blur",h=Ku;break;case"beforeblur":case"afterblur":h=Ku;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":h=Fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=iE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=wE;break;case om:case am:case sm:h=sE;break;case lm:h=EE;break;case"scroll":h=rE;break;case"wheel":h=SE;break;case"copy":case"cut":case"paste":h=uE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Ph}var p=(t&4)!==0,g=!p&&e==="scroll",x=p?d!==null?d+"Capture":null:d;p=[];for(var w=u,y;w!==null;){y=w;var _=y.stateNode;if(y.tag===5&&_!==null&&(y=_,x!==null&&(_=_a(w,x),_!=null&&p.push(Oa(w,_,y)))),g)break;w=w.return}0<p.length&&(d=new h(d,m,null,r,c),f.push({event:d,listeners:p}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&!(t&16)&&(m=r.relatedTarget||r.fromElement)&&(qn(m)||m[mo]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=r.relatedTarget||r.toElement,h=u,m=m?qn(m):null,m!==null&&(g=fi(m),m!==g||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=u),h!==m)){if(p=Fh,_="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(p=Ph,_="onPointerLeave",x="onPointerEnter",w="pointer"),g=h==null?d:Bi(h),y=m==null?d:Bi(m),d=new p(_,w+"leave",h,r,c),d.target=g,d.relatedTarget=y,_=null,qn(c)===u&&(p=new p(x,w+"enter",m,r,c),p.target=y,p.relatedTarget=g,_=p),g=_,h&&m)t:{for(p=h,x=m,w=0,y=p;y;y=Ci(y))w++;for(y=0,_=x;_;_=Ci(_))y++;for(;0<w-y;)p=Ci(p),w--;for(;0<y-w;)x=Ci(x),y--;for(;w--;){if(p===x||x!==null&&p===x.alternate)break t;p=Ci(p),x=Ci(x)}p=null}else p=null;h!==null&&Gh(f,d,h,p,!1),m!==null&&g!==null&&Gh(f,g,m,p,!0)}}e:{if(d=u?Bi(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var k=DE;else if(kh(d))if(mm)k=kE;else{k=IE;var N=PE}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(k=bE);if(k&&(k=k(e,u))){gm(f,k,r,c);break e}N&&N(e,d,u),e==="focusout"&&(N=d._wrapperState)&&N.controlled&&d.type==="number"&&zc(d,"number",d.value)}switch(N=u?Bi(u):window,e){case"focusin":(kh(N)||N.contentEditable==="true")&&(Li=N,nf=u,oa=null);break;case"focusout":oa=nf=Li=null;break;case"mousedown":of=!0;break;case"contextmenu":case"mouseup":case"dragend":of=!1,Uh(f,r,c);break;case"selectionchange":if(ME)break;case"keydown":case"keyup":Uh(f,r,c)}var S;if(k0)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 Mi?hm(e,r)&&(A="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(A="onCompositionStart");A&&(dm&&r.locale!=="ko"&&(Mi||A!=="onCompositionStart"?A==="onCompositionEnd"&&Mi&&(S=fm()):(dn=c,P0="value"in dn?dn.value:dn.textContent,Mi=!0)),N=sl(u,A),0<N.length&&(A=new Dh(A,e,null,r,c),f.push({event:A,listeners:N}),S?A.data=S:(S=pm(r),S!==null&&(A.data=S)))),(S=CE?AE(e,r):RE(e,r))&&(u=sl(u,"onBeforeInput"),0<u.length&&(c=new Dh("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=S))}ym(f,t)})}function Oa(e,t,r){return{instance:e,listener:t,currentTarget:r}}function sl(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=_a(e,r),o!=null&&n.unshift(Oa(e,o,i)),o=_a(e,t),o!=null&&n.push(Oa(e,o,i))),e=e.return}return n}function Ci(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Gh(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=_a(r,o),l!=null&&a.unshift(Oa(r,l,s))):i||(l=_a(r,o),l!=null&&a.push(Oa(r,l,s)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}function ll(){}var Zu=null,Ju=null;function Tm(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function af(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 jh=typeof setTimeout=="function"?setTimeout:void 0,LE=typeof clearTimeout=="function"?clearTimeout:void 0;function $0(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Ki(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Xh(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 ec=0;function BE(e){return{$$typeof:y0,toString:e,valueOf:e}}var eu=Math.random().toString(36).slice(2),hn="__reactFiber$"+eu,ul="__reactProps$"+eu,mo="__reactContainer$"+eu,Kh="__reactEvents$"+eu;function qn(e){var t=e[hn];if(t)return t;for(var r=e.parentNode;r;){if(t=r[mo]||r[hn]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Xh(e);e!==null;){if(r=e[hn])return r;e=Xh(e)}return t}e=r,r=e.parentNode}return null}function Ga(e){return e=e[hn]||e[mo],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(se(33))}function tu(e){return e[ul]||null}function Cm(e){var t=e[Kh];return t===void 0&&(t=e[Kh]=new Set),t}var sf=[],Ui=-1;function Ln(e){return{current:e}}function ze(e){0>Ui||(e.current=sf[Ui],sf[Ui]=null,Ui--)}function Je(e,t){Ui++,sf[Ui]=e.current,e.current=t}var Dn={},Ft=Ln(Dn),Ht=Ln(!1),ti=Dn;function oo(e,t){var r=e.type.contextTypes;if(!r)return Dn;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 cl(){ze(Ht),ze(Ft)}function Yh(e,t,r){if(Ft.current!==Dn)throw Error(se(168));Je(Ft,t),Je(Ht,r)}function Am(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,zi(t)||"Unknown",i));return Xe({},r,n)}function js(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,ti=Ft.current,Je(Ft,e),Je(Ht,Ht.current),!0}function qh(e,t,r){var n=e.stateNode;if(!n)throw Error(se(169));r?(e=Am(e,t,ti),n.__reactInternalMemoizedMergedChildContext=e,ze(Ht),ze(Ft),Je(Ft,e)):ze(Ht),Je(Ht,r)}var N0=null,Jn=null,UE=ft.unstable_runWithPriority,M0=ft.unstable_scheduleCallback,lf=ft.unstable_cancelCallback,HE=ft.unstable_shouldYield,Qh=ft.unstable_requestPaint,uf=ft.unstable_now,VE=ft.unstable_getCurrentPriorityLevel,ru=ft.unstable_ImmediatePriority,Rm=ft.unstable_UserBlockingPriority,Om=ft.unstable_NormalPriority,Fm=ft.unstable_LowPriority,Dm=ft.unstable_IdlePriority,tc={},WE=Qh!==void 0?Qh:function(){},Hr=null,Xs=null,rc=!1,Zh=uf(),Ct=1e4>Zh?uf:function(){return uf()-Zh};function ao(){switch(VE()){case ru:return 99;case Rm:return 98;case Om:return 97;case Fm:return 96;case Dm:return 95;default:throw Error(se(332))}}function Pm(e){switch(e){case 99:return ru;case 98:return Rm;case 97:return Om;case 96:return Fm;case 95:return Dm;default:throw Error(se(332))}}function ri(e,t){return e=Pm(e),UE(e,t)}function Fa(e,t,r){return e=Pm(e),M0(e,t,r)}function kr(){if(Xs!==null){var e=Xs;Xs=null,lf(e)}Im()}function Im(){if(!rc&&Hr!==null){rc=!0;var e=0;try{var t=Hr;ri(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Hr=null}catch(r){throw Hr!==null&&(Hr=Hr.slice(e+1)),M0(ru,kr),r}finally{rc=!1}}}var zE=ci.ReactCurrentBatchConfig;function vr(e,t){if(e&&e.defaultProps){t=Xe({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var fl=Ln(null),dl=null,Hi=null,hl=null;function L0(){hl=Hi=dl=null}function B0(e){var t=fl.current;ze(fl),e.type._context._currentValue=t}function bm(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 Yi(e,t){dl=e,hl=Hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yr=!0),e.firstContext=null)}function ur(e,t){if(hl!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(hl=e,t=1073741823),t={context:e,observedBits:t,next:null},Hi===null){if(dl===null)throw Error(se(308));Hi=t,dl.dependencies={lanes:0,firstContext:t,responders:null}}else Hi=Hi.next=t;return e._currentValue}var un=!1;function U0(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function km(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 En(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _n(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 Jh(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 Da(e,t,r,n){var i=e.updateQueue;un=!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 d=o.eventTime;if((n&s)===s){c!==null&&(c=c.next={eventTime:d,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var h=e,m=o;switch(s=t,d=r,m.tag){case 1:if(h=m.payload,typeof h=="function"){f=h.call(d,f,s);break e}f=h;break e;case 3:h.flags=h.flags&-4097|64;case 0:if(h=m.payload,s=typeof h=="function"?h.call(d,f,s):h,s==null)break e;f=Xe({},f,s);break e;case 2:un=!0}}o.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[o]:s.push(o))}else d={eventTime:d,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=d,l=f):c=c.next=d,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,Xa|=a,e.lanes=a,e.memoizedState=f}}function ep(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 $m=new Xl.Component().refs;function pl(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Xe({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var nu={isMounted:function(e){return(e=e._reactInternals)?fi(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Qt(),i=Sn(e),o=En(n,i);o.payload=t,r!=null&&(o.callback=r),_n(e,o),Tn(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Qt(),i=Sn(e),o=En(n,i);o.tag=1,o.payload=t,r!=null&&(o.callback=r),_n(e,o),Tn(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Qt(),n=Sn(e),i=En(r,n);i.tag=2,t!=null&&(i.callback=t),_n(e,i),Tn(e,n,r)}};function tp(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?!Ra(r,n)||!Ra(i,o):!0}function Nm(e,t,r){var n=!1,i=Dn,o=t.contextType;return typeof o=="object"&&o!==null?o=ur(o):(i=Vt(t)?ti:Ft.current,n=t.contextTypes,o=(n=n!=null)?oo(e,i):Dn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=nu,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function rp(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&&nu.enqueueReplaceState(t,t.state,null)}function cf(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=$m,U0(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ur(o):(o=Vt(t)?ti:Ft.current,i.context=oo(e,o)),Da(e,r,i,n),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(pl(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&&nu.enqueueReplaceState(i,i.state,null),Da(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var ds=Array.isArray;function Mo(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===$m&&(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 hs(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 Mm(e){function t(g,x){if(e){var w=g.lastEffect;w!==null?(w.nextEffect=x,g.lastEffect=x):g.firstEffect=g.lastEffect=x,x.nextEffect=null,x.flags=8}}function r(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function n(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function i(g,x){return g=In(g,x),g.index=0,g.sibling=null,g}function o(g,x,w){return g.index=w,e?(w=g.alternate,w!==null?(w=w.index,w<x?(g.flags=2,x):w):(g.flags=2,x)):x}function a(g){return e&&g.alternate===null&&(g.flags=2),g}function s(g,x,w,y){return x===null||x.tag!==6?(x=sc(w,g.mode,y),x.return=g,x):(x=i(x,w),x.return=g,x)}function l(g,x,w,y){return x!==null&&x.elementType===w.type?(y=i(x,w.props),y.ref=Mo(g,x,w),y.return=g,y):(y=Qs(w.type,w.key,w.props,null,g.mode,y),y.ref=Mo(g,x,w),y.return=g,y)}function u(g,x,w,y){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=lc(w,g.mode,y),x.return=g,x):(x=i(x,w.children||[]),x.return=g,x)}function c(g,x,w,y,_){return x===null||x.tag!==7?(x=Ji(w,g.mode,y,_),x.return=g,x):(x=i(x,w),x.return=g,x)}function f(g,x,w){if(typeof x=="string"||typeof x=="number")return x=sc(""+x,g.mode,w),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Xo:return w=Qs(x.type,x.key,x.props,null,g.mode,w),w.ref=Mo(g,null,x),w.return=g,w;case Kn:return x=lc(x,g.mode,w),x.return=g,x}if(ds(x)||Po(x))return x=Ji(x,g.mode,w,null),x.return=g,x;hs(g,x)}return null}function d(g,x,w,y){var _=x!==null?x.key:null;if(typeof w=="string"||typeof w=="number")return _!==null?null:s(g,x,""+w,y);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Xo:return w.key===_?w.type===fn?c(g,x,w.props.children,y,_):l(g,x,w,y):null;case Kn:return w.key===_?u(g,x,w,y):null}if(ds(w)||Po(w))return _!==null?null:c(g,x,w,y,null);hs(g,w)}return null}function h(g,x,w,y,_){if(typeof y=="string"||typeof y=="number")return g=g.get(w)||null,s(x,g,""+y,_);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Xo:return g=g.get(y.key===null?w:y.key)||null,y.type===fn?c(x,g,y.props.children,_,y.key):l(x,g,y,_);case Kn:return g=g.get(y.key===null?w:y.key)||null,u(x,g,y,_)}if(ds(y)||Po(y))return g=g.get(w)||null,c(x,g,y,_,null);hs(x,y)}return null}function m(g,x,w,y){for(var _=null,k=null,N=x,S=x=0,A=null;N!==null&&S<w.length;S++){N.index>S?(A=N,N=null):A=N.sibling;var R=d(g,N,w[S],y);if(R===null){N===null&&(N=A);break}e&&N&&R.alternate===null&&t(g,N),x=o(R,x,S),k===null?_=R:k.sibling=R,k=R,N=A}if(S===w.length)return r(g,N),_;if(N===null){for(;S<w.length;S++)N=f(g,w[S],y),N!==null&&(x=o(N,x,S),k===null?_=N:k.sibling=N,k=N);return _}for(N=n(g,N);S<w.length;S++)A=h(N,g,S,w[S],y),A!==null&&(e&&A.alternate!==null&&N.delete(A.key===null?S:A.key),x=o(A,x,S),k===null?_=A:k.sibling=A,k=A);return e&&N.forEach(function(L){return t(g,L)}),_}function p(g,x,w,y){var _=Po(w);if(typeof _!="function")throw Error(se(150));if(w=_.call(w),w==null)throw Error(se(151));for(var k=_=null,N=x,S=x=0,A=null,R=w.next();N!==null&&!R.done;S++,R=w.next()){N.index>S?(A=N,N=null):A=N.sibling;var L=d(g,N,R.value,y);if(L===null){N===null&&(N=A);break}e&&N&&L.alternate===null&&t(g,N),x=o(L,x,S),k===null?_=L:k.sibling=L,k=L,N=A}if(R.done)return r(g,N),_;if(N===null){for(;!R.done;S++,R=w.next())R=f(g,R.value,y),R!==null&&(x=o(R,x,S),k===null?_=R:k.sibling=R,k=R);return _}for(N=n(g,N);!R.done;S++,R=w.next())R=h(N,g,S,R.value,y),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?S:R.key),x=o(R,x,S),k===null?_=R:k.sibling=R,k=R);return e&&N.forEach(function(V){return t(g,V)}),_}return function(g,x,w,y){var _=typeof w=="object"&&w!==null&&w.type===fn&&w.key===null;_&&(w=w.props.children);var k=typeof w=="object"&&w!==null;if(k)switch(w.$$typeof){case Xo:e:{for(k=w.key,_=x;_!==null;){if(_.key===k){switch(_.tag){case 7:if(w.type===fn){r(g,_.sibling),x=i(_,w.props.children),x.return=g,g=x;break e}break;default:if(_.elementType===w.type){r(g,_.sibling),x=i(_,w.props),x.ref=Mo(g,_,w),x.return=g,g=x;break e}}r(g,_);break}else t(g,_);_=_.sibling}w.type===fn?(x=Ji(w.props.children,g.mode,y,w.key),x.return=g,g=x):(y=Qs(w.type,w.key,w.props,null,g.mode,y),y.ref=Mo(g,x,w),y.return=g,g=y)}return a(g);case Kn:e:{for(_=w.key;x!==null;){if(x.key===_)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){r(g,x.sibling),x=i(x,w.children||[]),x.return=g,g=x;break e}else{r(g,x);break}else t(g,x);x=x.sibling}x=lc(w,g.mode,y),x.return=g,g=x}return a(g)}if(typeof w=="string"||typeof w=="number")return w=""+w,x!==null&&x.tag===6?(r(g,x.sibling),x=i(x,w),x.return=g,g=x):(r(g,x),x=sc(w,g.mode,y),x.return=g,g=x),a(g);if(ds(w))return m(g,x,w,y);if(Po(w))return p(g,x,w,y);if(k&&hs(g,w),typeof w>"u"&&!_)switch(g.tag){case 1:case 22:case 0:case 11:case 15:throw Error(se(152,zi(g.type)||"Component"))}return r(g,x)}}var gl=Mm(!0),Lm=Mm(!1),ja={},Dr=Ln(ja),Pa=Ln(ja),Ia=Ln(ja);function Qn(e){if(e===ja)throw Error(se(174));return e}function ff(e,t){switch(Je(Ia,t),Je(Pa,e),Je(Dr,ja),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kc(t,e)}ze(Dr),Je(Dr,t)}function so(){ze(Dr),ze(Pa),ze(Ia)}function np(e){Qn(Ia.current);var t=Qn(Dr.current),r=Kc(t,e.type);t!==r&&(Je(Pa,e),Je(Dr,r))}function H0(e){Pa.current===e&&(ze(Dr),ze(Pa))}var Ze=Ln(0);function ml(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 Wr=null,pn=null,Pr=!1;function Bm(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 ip(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 df(e){if(Pr){var t=pn;if(t){var r=t;if(!ip(e,t)){if(t=Ki(r.nextSibling),!t||!ip(e,t)){e.flags=e.flags&-1025|2,Pr=!1,Wr=e;return}Bm(Wr,r)}Wr=e,pn=Ki(t.firstChild)}else e.flags=e.flags&-1025|2,Pr=!1,Wr=e}}function op(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Wr=e}function ps(e){if(e!==Wr)return!1;if(!Pr)return op(e),Pr=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!af(t,e.memoizedProps))for(t=pn;t;)Bm(e,t),t=Ki(t.nextSibling);if(op(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){pn=Ki(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}pn=null}}else pn=Wr?Ki(e.stateNode.nextSibling):null;return!0}function nc(){pn=Wr=null,Pr=!1}var qi=[];function V0(){for(var e=0;e<qi.length;e++)qi[e]._workInProgressVersionPrimary=null;qi.length=0}var aa=ci.ReactCurrentDispatcher,lr=ci.ReactCurrentBatchConfig,ba=0,tt=null,Tt=null,pt=null,vl=!1,sa=!1;function Lt(){throw Error(se(321))}function W0(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 z0(e,t,r,n,i,o){if(ba=o,tt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,aa.current=e===null||e.memoizedState===null?jE:XE,e=r(n,i),sa){o=0;do{if(sa=!1,!(25>o))throw Error(se(301));o+=1,pt=Tt=null,t.updateQueue=null,aa.current=KE,e=r(n,i)}while(sa)}if(aa.current=El,t=Tt!==null&&Tt.next!==null,ba=0,pt=Tt=tt=null,vl=!1,t)throw Error(se(300));return e}function Zn(){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 di(){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 Lo(e){var t=di(),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((ba&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,Xa|=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 Bo(e){var t=di(),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 ap(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=(ba&e)===e)&&(t._workInProgressVersionPrimary=n,qi.push(t))),e)return r(t._source);throw qi.push(t),Error(se(350))}function Um(e,t,r,n){var i=kt;if(i===null)throw Error(se(349));var o=t._getVersion,a=o(t._source),s=aa.current,l=s.useState(function(){return ap(i,t,r)}),u=l[1],c=l[0];l=pt;var f=e.memoizedState,d=f.refs,h=d.getSnapshot,m=f.source;f=f.subscribe;var p=tt;return e.memoizedState={refs:d,source:t,subscribe:n},s.useEffect(function(){d.getSnapshot=r,d.setSnapshot=u;var g=o(t._source);if(!ar(a,g)){g=r(t._source),ar(c,g)||(u(g),g=Sn(p),i.mutableReadLanes|=g&i.pendingLanes),g=i.mutableReadLanes,i.entangledLanes|=g;for(var x=i.entanglements,w=g;0<w;){var y=31-Fn(w),_=1<<y;x[y]|=g,w&=~_}}},[r,t,n]),s.useEffect(function(){return n(t._source,function(){var g=d.getSnapshot,x=d.setSnapshot;try{x(g(t._source));var w=Sn(p);i.mutableReadLanes|=w&i.pendingLanes}catch(y){x(function(){throw y})}})},[t,n]),ar(h,r)&&ar(m,t)&&ar(f,n)||(e={pending:null,dispatch:null,lastRenderedReducer:Or,lastRenderedState:c},e.dispatch=u=X0.bind(null,tt,e),l.queue=e,l.baseQueue=null,c=ap(i,t,r),l.memoizedState=l.baseState=c),c}function Hm(e,t,r){var n=di();return Um(n,e,t,r)}function Uo(e){var t=Zn();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=X0.bind(null,tt,e),[t.memoizedState,e]}function xl(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 sp(e){var t=Zn();return e={current:e},t.memoizedState=e}function wl(){return di().memoizedState}function hf(e,t,r,n){var i=Zn();tt.flags|=e,i.memoizedState=xl(1|t,r,void 0,n===void 0?null:n)}function G0(e,t,r,n){var i=di();n=n===void 0?null:n;var o=void 0;if(Tt!==null){var a=Tt.memoizedState;if(o=a.destroy,n!==null&&W0(n,a.deps)){xl(t,r,o,n);return}}tt.flags|=e,i.memoizedState=xl(1|t,r,o,n)}function lp(e,t){return hf(516,4,e,t)}function yl(e,t){return G0(516,4,e,t)}function Vm(e,t){return G0(4,2,e,t)}function Wm(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 zm(e,t,r){return r=r!=null?r.concat([e]):null,G0(4,2,Wm.bind(null,t,e),r)}function j0(){}function Gm(e,t){var r=di();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&W0(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function jm(e,t){var r=di();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&W0(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function GE(e,t){var r=ao();ri(98>r?98:r,function(){e(!0)}),ri(97<r?97:r,function(){var n=lr.transition;lr.transition=1;try{e(!1),t()}finally{lr.transition=n}})}function X0(e,t,r){var n=Qt(),i=Sn(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)sa=vl=!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{}Tn(e,i,n)}}var El={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},jE={readContext:ur,useCallback:function(e,t){return Zn().memoizedState=[e,t===void 0?null:t],e},useContext:ur,useEffect:lp,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,hf(4,2,Wm.bind(null,t,e),r)},useLayoutEffect:function(e,t){return hf(4,2,e,t)},useMemo:function(e,t){var r=Zn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Zn();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=X0.bind(null,tt,e),[n.memoizedState,e]},useRef:sp,useState:Uo,useDebugValue:j0,useDeferredValue:function(e){var t=Uo(e),r=t[0],n=t[1];return lp(function(){var i=lr.transition;lr.transition=1;try{n(e)}finally{lr.transition=i}},[e]),r},useTransition:function(){var e=Uo(!1),t=e[0];return e=GE.bind(null,e[1]),sp(e),[e,t]},useMutableSource:function(e,t,r){var n=Zn();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},Um(n,e,t,r)},useOpaqueIdentifier:function(){if(Pr){var e=!1,t=BE(function(){throw e||(e=!0,r("r:"+(ec++).toString(36))),Error(se(355))}),r=Uo(t)[1];return!(tt.mode&2)&&(tt.flags|=516,xl(5,function(){r("r:"+(ec++).toString(36))},void 0,null)),t}return t="r:"+(ec++).toString(36),Uo(t),t},unstable_isNewReconciler:!1},XE={readContext:ur,useCallback:Gm,useContext:ur,useEffect:yl,useImperativeHandle:zm,useLayoutEffect:Vm,useMemo:jm,useReducer:Lo,useRef:wl,useState:function(){return Lo(Or)},useDebugValue:j0,useDeferredValue:function(e){var t=Lo(Or),r=t[0],n=t[1];return yl(function(){var i=lr.transition;lr.transition=1;try{n(e)}finally{lr.transition=i}},[e]),r},useTransition:function(){var e=Lo(Or)[0];return[wl().current,e]},useMutableSource:Hm,useOpaqueIdentifier:function(){return Lo(Or)[0]},unstable_isNewReconciler:!1},KE={readContext:ur,useCallback:Gm,useContext:ur,useEffect:yl,useImperativeHandle:zm,useLayoutEffect:Vm,useMemo:jm,useReducer:Bo,useRef:wl,useState:function(){return Bo(Or)},useDebugValue:j0,useDeferredValue:function(e){var t=Bo(Or),r=t[0],n=t[1];return yl(function(){var i=lr.transition;lr.transition=1;try{n(e)}finally{lr.transition=i}},[e]),r},useTransition:function(){var e=Bo(Or)[0];return[wl().current,e]},useMutableSource:Hm,useOpaqueIdentifier:function(){return Bo(Or)[0]},unstable_isNewReconciler:!1},YE=ci.ReactCurrentOwner,yr=!1;function Bt(e,t,r,n){t.child=e===null?Lm(t,null,r,n):gl(t,e.child,r,n)}function up(e,t,r,n,i){r=r.render;var o=t.ref;return Yi(t,i),n=z0(e,t,r,n,o,i),e!==null&&!yr?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,zr(e,t,i)):(t.flags|=1,Bt(e,t,n,i),t.child)}function cp(e,t,r,n,i,o){if(e===null){var a=r.type;return typeof a=="function"&&!J0(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,Xm(e,t,a,n,i,o)):(e=Qs(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:Ra,r(i,n)&&e.ref===t.ref)?zr(e,t,o):(t.flags|=1,e=In(a,n),e.ref=t.ref,e.return=t,t.child=e)}function Xm(e,t,r,n,i,o){if(e!==null&&Ra(e.memoizedProps,n)&&e.ref===t.ref)if(yr=!1,(o&i)!==0)e.flags&16384&&(yr=!0);else return t.lanes=e.lanes,zr(e,t,o);return pf(e,t,r,n,o)}function ic(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},ms(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},ms(t,o!==null?o.baseLanes:r);else return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(t,e),null;else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,ms(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 pf(e,t,r,n,i){var o=Vt(r)?ti:Ft.current;return o=oo(t,o),Yi(t,i),r=z0(e,t,r,n,o,i),e!==null&&!yr?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,zr(e,t,i)):(t.flags|=1,Bt(e,t,r,i),t.child)}function fp(e,t,r,n,i){if(Vt(r)){var o=!0;js(t)}else o=!1;if(Yi(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Nm(t,r,n),cf(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)?ti:Ft.current,u=oo(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)&&rp(t,a,n,u),un=!1;var d=t.memoizedState;a.state=d,Da(t,n,a,i),l=t.memoizedState,s!==n||d!==l||Ht.current||un?(typeof c=="function"&&(pl(t,r,c,n),l=t.memoizedState),(s=un||tp(t,r,s,n,d,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,km(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:vr(t.type,s),a.props=u,f=t.pendingProps,d=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=ur(l):(l=Vt(r)?ti:Ft.current,l=oo(t,l));var h=r.getDerivedStateFromProps;(c=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&rp(t,a,n,l),un=!1,d=t.memoizedState,a.state=d,Da(t,n,a,i);var m=t.memoizedState;s!==f||d!==m||Ht.current||un?(typeof h=="function"&&(pl(t,r,h,n),m=t.memoizedState),(u=un||tp(t,r,u,n,d,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&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===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&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),n=!1)}return gf(e,t,r,n,o,i)}function gf(e,t,r,n,i,o){Km(e,t);var a=(t.flags&64)!==0;if(!n&&!a)return i&&qh(t,r,!1),zr(e,t,o);n=t.stateNode,YE.current=t;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&a?(t.child=gl(t,e.child,null,o),t.child=gl(t,null,s,o)):Bt(e,t,s,o),t.memoizedState=n.state,i&&qh(t,r,!0),t.child}function dp(e){var t=e.stateNode;t.pendingContext?Yh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yh(e,t.context,!1),ff(e,t.containerInfo)}var gs={dehydrated:null,retryLane:0};function hp(e,t,r){var n=t.pendingProps,i=Ze.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),Je(Ze,i&1),e===null?(n.fallback!==void 0&&df(t),e=n.children,i=n.fallback,o?(e=pp(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=gs,e):typeof n.unstable_expectedLoadTime=="number"?(e=pp(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=gs,t.lanes=33554432,e):(r=ed({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?o?(n=mp(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=gs,n):(r=gp(e,t,n.children,r),t.memoizedState=null,r):o?(n=mp(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=gs,n):(r=gp(e,t,n.children,r),t.memoizedState=null,r)}function pp(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=ed(t,i,0,null),r=Ji(r,i,n,null),o.return=e,r.return=e,o.sibling=r,e.child=o,r}function gp(e,t,r,n){var i=e.child;return e=i.sibling,r=In(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 mp(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=In(a,s),e!==null?n=In(e,n):(n=Ji(n,o,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function vp(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),bm(e.return,t)}function oc(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 xp(e,t,r){var n=t.pendingProps,i=n.revealOrder,o=n.tail;if(Bt(e,t,n.children,r),n=Ze.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&&vp(e,r);else if(e.tag===19)vp(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(Je(Ze,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&&ml(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),oc(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&&ml(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}oc(t,!0,r,null,o,t.lastEffect);break;case"together":oc(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function zr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Xa|=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=In(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=In(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var Ym,mf,qm,Qm;Ym=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}};mf=function(){};qm=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Qn(Dr.current);var o=null;switch(r){case"input":i=Vc(e,i),n=Vc(e,n),o=[];break;case"option":i=Gc(e,i),n=Gc(e,n),o=[];break;case"select":i=Xe({},i,{value:void 0}),n=Xe({},n,{value:void 0}),o=[];break;case"textarea":i=jc(e,i),n=jc(e,n),o=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ll)}Yc(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"&&(ya.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"&&(ya.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&We("scroll",e),o||s===l||(o=[])):typeof l=="object"&&l!==null&&l.$$typeof===y0?l.toString():(o=o||[]).push(u,l))}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Qm=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ho(e,t){if(!Pr)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 qE(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)&&cl(),null;case 3:return so(),ze(Ht),ze(Ft),V0(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(ps(t)?t.flags|=4:n.hydrate||(t.flags|=256)),mf(t),null;case 5:H0(t);var i=Qn(Ia.current);if(r=t.type,e!==null&&t.stateNode!=null)qm(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=Qn(Dr.current),ps(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[hn]=t,n[ul]=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<Yo.length;e++)We(Yo[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":xh(n,o),We("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},We("invalid",n);break;case"textarea":yh(n,o),We("invalid",n)}Yc(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]):ya.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&We("scroll",n));switch(r){case"input":ls(n),wh(n,o,!0);break;case"textarea":ls(n),Eh(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=ll)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(a=i.nodeType===9?i:i.ownerDocument,e===Xc.html&&(e=z1(r)),e===Xc.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[hn]=t,e[ul]=n,Ym(e,t,!1,!1),t.stateNode=e,a=qc(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<Yo.length;i++)We(Yo[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":xh(e,n),i=Vc(e,n),We("invalid",e);break;case"option":i=Gc(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Xe({},n,{value:void 0}),We("invalid",e);break;case"textarea":yh(e,n),i=jc(e,n),We("invalid",e);break;default:i=n}Yc(r,i);var s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?X1(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&G1(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Ea(e,l):typeof l=="number"&&Ea(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(ya.hasOwnProperty(o)?l!=null&&o==="onScroll"&&We("scroll",e):l!=null&&p0(e,o,l,a))}switch(r){case"input":ls(e),wh(e,n,!1);break;case"textarea":ls(e),Eh(e);break;case"option":n.value!=null&&e.setAttribute("value",""+On(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Gi(e,!!n.multiple,o,!1):n.defaultValue!=null&&Gi(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ll)}Tm(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Qm(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(se(166));r=Qn(Ia.current),Qn(Dr.current),ps(t)?(n=t.stateNode,r=t.memoizedProps,n[hn]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[hn]=t,t.stateNode=n)}return null;case 13:return ze(Ze),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&ps(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Ze.current&1?gt===0&&(gt=3):((gt===0||gt===3)&&(gt=4),kt===null||!(Xa&134217727)&&!(xo&134217727)||Qi(kt,At))),(n||r)&&(t.flags|=4),null);case 4:return so(),mf(t),e===null&&Em(t.stateNode.containerInfo),null;case 10:return B0(t),null;case 17:return Vt(t.type)&&cl(),null;case 19:if(ze(Ze),n=t.memoizedState,n===null)return null;if(o=(t.flags&64)!==0,a=n.rendering,a===null)if(o)Ho(n,!1);else{if(gt!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(a=ml(e),a!==null){for(t.flags|=64,Ho(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 Je(Ze,Ze.current&1|2),t.child}e=e.sibling}n.tail!==null&&Ct()>_f&&(t.flags|=64,o=!0,Ho(n,!1),t.lanes=33554432)}else{if(!o)if(e=ml(a),e!==null){if(t.flags|=64,o=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ho(n,!0),n.tail===null&&n.tailMode==="hidden"&&!a.alternate&&!Pr)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Ct()-n.renderingStartTime>_f&&r!==1073741824&&(t.flags|=64,o=!0,Ho(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=Ze.current,Je(Ze,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 QE(e){switch(e.tag){case 1:Vt(e.type)&&cl();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(so(),ze(Ht),ze(Ft),V0(),t=e.flags,t&64)throw Error(se(285));return e.flags=t&-4097|64,e;case 5:return H0(e),null;case 13:return ze(Ze),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return ze(Ze),null;case 4:return so(),null;case 10:return B0(e),null;case 23:case 24:return Z0(),null;default:return null}}function K0(e,t){try{var r="",n=t;do r+=Py(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 vf(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var ZE=typeof WeakMap=="function"?WeakMap:Map;function Zm(e,t,r){r=En(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Sl||(Sl=!0,Sf=n),vf(e,t)},r}function Jm(e,t,r){r=En(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return vf(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),vf(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),r}var JE=typeof WeakSet=="function"?WeakSet:Set;function wp(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Cn(e,r)}else t.current=null}function e_(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&&$0(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(se(163))}function t_(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&&(lv(r,e),u_(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&&ep(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}ep(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&Tm(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&&nm(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(se(163))}function yp(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=j1("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 Ep(e,t){if(Jn&&typeof Jn.onCommitFiberUnmount=="function")try{Jn.onCommitFiberUnmount(N0,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)lv(t,r);else{n=t;try{i()}catch(o){Cn(n,o)}}r=r.next}while(r!==e)}break;case 1:if(wp(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Cn(t,o)}break;case 5:wp(t);break;case 4:ev(e,t)}}function _p(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 Sp(e){return e.tag===5||e.tag===3||e.tag===4}function Tp(e){e:{for(var t=e.return;t!==null;){if(Sp(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&&(Ea(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||Sp(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?xf(e,r,t):wf(e,r,t)}function xf(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=ll));else if(n!==4&&(e=e.child,e!==null))for(xf(e,t,r),e=e.sibling;e!==null;)xf(e,t,r),e=e.sibling}function wf(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(wf(e,t,r),e=e.sibling;e!==null;)wf(e,t,r),e=e.sibling}function ev(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(Ep(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(Ep(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 ac(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[ul]=n,e==="input"&&n.type==="radio"&&n.name!=null&&V1(r,n),qc(e,i),t=qc(e,n),i=0;i<o.length;i+=2){var a=o[i],s=o[i+1];a==="style"?X1(r,s):a==="dangerouslySetInnerHTML"?G1(r,s):a==="children"?Ea(r,s):p0(r,a,s,t)}switch(e){case"input":Wc(r,n);break;case"textarea":W1(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,o=n.value,o!=null?Gi(r,!!n.multiple,o,!1):e!==!!n.multiple&&(n.defaultValue!=null?Gi(r,!!n.multiple,n.defaultValue,!0):Gi(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,nm(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Q0=Ct(),yp(t.child,!0)),Cp(t);return;case 19:Cp(t);return;case 17:return;case 23:case 24:yp(t,t.memoizedState!==null);return}throw Error(se(163))}function Cp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new JE),t.forEach(function(n){var i=d_.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function r_(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var n_=Math.ceil,_l=ci.ReactCurrentDispatcher,Y0=ci.ReactCurrentOwner,Ce=0,kt=null,at=null,At=0,ni=0,yf=Ln(0),gt=0,iu=null,vo=0,Xa=0,xo=0,q0=0,Ef=null,Q0=0,_f=1/0;function wo(){_f=Ct()+500}var xe=null,Sl=!1,Sf=null,Fr=null,Pn=!1,la=null,qo=90,Tf=[],Cf=[],jr=null,ua=0,Af=null,Ks=-1,Vr=0,Ys=0,ca=null,qs=!1;function Qt(){return Ce&48?Ct():Ks!==-1?Ks:Ks=Ct()}function Sn(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return ao()===99?1:2;if(Vr===0&&(Vr=vo),zE.transition!==0){Ys!==0&&(Ys=Ef!==null?Ef.pendingLanes:0),e=Vr;var t=4186112&~Ys;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=ao(),Ce&4&&e===98?e=al(12,Vr):(e=Xy(e),e=al(e,Vr)),e}function Tn(e,t,r){if(50<ua)throw ua=0,Af=null,Error(se(185));if(e=ou(e,t),e===null)return null;Ql(e,t,r),e===kt&&(xo|=t,gt===4&&Qi(e,At));var n=ao();t===1?Ce&8&&!(Ce&48)?Rf(e):(cr(e,r),Ce===0&&(wo(),kr())):(!(Ce&4)||n!==98&&n!==99||(jr===null?jr=new Set([e]):jr.add(e)),cr(e,r)),Ef=e}function ou(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-Fn(a),l=1<<s,u=o[s];if(u===-1){if(!(l&n)||l&i){u=t,bi(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=Ca(e,e===kt?At:0),t=Ve,n===0)r!==null&&(r!==tc&&lf(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==tc&&lf(r)}t===15?(r=Rf.bind(null,e),Hr===null?(Hr=[r],Xs=M0(ru,Im)):Hr.push(r),r=tc):t===14?r=Fa(99,Rf.bind(null,e)):(r=Ky(t),r=Fa(r,tv.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function tv(e){if(Ks=-1,Ys=Vr=0,Ce&48)throw Error(se(327));var t=e.callbackNode;if(Bn()&&e.callbackNode!==t)return null;var r=Ca(e,e===kt?At:0);if(r===0)return null;var n=r,i=Ce;Ce|=16;var o=ov();(kt!==e||At!==n)&&(wo(),Zi(e,n));do try{a_();break}catch(s){iv(e,s)}while(1);if(L0(),_l.current=o,Ce=i,at!==null?n=0:(kt=null,At=0,n=gt),vo&xo)Zi(e,0);else if(n!==0){if(n===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,$0(e.containerInfo)),r=cm(e),r!==0&&(n=Qo(e,r))),n===1)throw t=iu,Zi(e,0),Qi(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:Wn(e);break;case 3:if(Qi(e,r),(r&62914560)===r&&(n=Q0+500-Ct(),10<n)){if(Ca(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Qt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=jh(Wn.bind(null,e),n);break}Wn(e);break;case 4:if(Qi(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var a=31-Fn(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*n_(r/1960))-r,10<r){e.timeoutHandle=jh(Wn.bind(null,e),r);break}Wn(e);break;case 5:Wn(e);break;default:throw Error(se(329))}}return cr(e,Ct()),e.callbackNode===t?tv.bind(null,e):null}function Qi(e,t){for(t&=~q0,t&=~xo,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Fn(t),n=1<<r;e[r]=-1,t&=~n}}function Rf(e){if(Ce&48)throw Error(se(327));if(Bn(),e===kt&&e.expiredLanes&At){var t=At,r=Qo(e,t);vo&xo&&(t=Ca(e,t),r=Qo(e,t))}else t=Ca(e,0),r=Qo(e,t);if(e.tag!==0&&r===2&&(Ce|=64,e.hydrate&&(e.hydrate=!1,$0(e.containerInfo)),t=cm(e),t!==0&&(r=Qo(e,t))),r===1)throw r=iu,Zi(e,0),Qi(e,t),cr(e,Ct()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wn(e),cr(e,Ct()),null}function i_(){if(jr!==null){var e=jr;jr=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,cr(t,Ct())})}kr()}function rv(e,t){var r=Ce;Ce|=1;try{return e(t)}finally{Ce=r,Ce===0&&(wo(),kr())}}function nv(e,t){var r=Ce;Ce&=-2,Ce|=8;try{return e(t)}finally{Ce=r,Ce===0&&(wo(),kr())}}function ms(e,t){Je(yf,ni),ni|=t,vo|=t}function Z0(){ni=yf.current,ze(yf)}function Zi(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,LE(r)),at!==null)for(r=at.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&cl();break;case 3:so(),ze(Ht),ze(Ft),V0();break;case 5:H0(n);break;case 4:so();break;case 13:ze(Ze);break;case 19:ze(Ze);break;case 10:B0(n);break;case 23:case 24:Z0()}r=r.return}kt=e,at=In(e.current,null),At=ni=vo=t,gt=0,iu=null,q0=xo=Xa=0}function iv(e,t){do{var r=at;try{if(L0(),aa.current=El,vl){for(var n=tt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}vl=!1}if(ba=0,pt=Tt=tt=null,sa=!1,Y0.current=null,r===null||r.return===null){gt=1,iu=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=(Ze.current&1)!==0,d=a;do{var h;if(h=d.tag===13){var m=d.memoizedState;if(m!==null)h=m.dehydrated!==null;else{var p=d.memoizedProps;h=p.fallback===void 0?!1:p.unstable_avoidThisFallback!==!0?!0:!f}}if(h){var g=d.updateQueue;if(g===null){var x=new Set;x.add(u),d.updateQueue=x}else g.add(u);if(!(d.mode&2)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var w=En(-1,1);w.tag=2,_n(s,w)}s.lanes|=1;break e}l=void 0,s=t;var y=o.pingCache;if(y===null?(y=o.pingCache=new ZE,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 _=f_.bind(null,o,u,s);u.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(d!==null);l=Error((zi(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=K0(l,s),d=a;do{switch(d.tag){case 3:o=l,d.flags|=4096,t&=-t,d.lanes|=t;var k=Zm(d,o,t);Jh(d,k);break e;case 1:o=l;var N=d.type,S=d.stateNode;if(!(d.flags&64)&&(typeof N.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Fr===null||!Fr.has(S)))){d.flags|=4096,t&=-t,d.lanes|=t;var A=Jm(d,o,t);Jh(d,A);break e}}d=d.return}while(d!==null)}sv(r)}catch(R){t=R,at===r&&r!==null&&(at=r=r.return);continue}break}while(1)}function ov(){var e=_l.current;return _l.current=El,e===null?El:e}function Qo(e,t){var r=Ce;Ce|=16;var n=ov();kt===e&&At===t||Zi(e,t);do try{o_();break}catch(i){iv(e,i)}while(1);if(L0(),Ce=r,_l.current=n,at!==null)throw Error(se(261));return kt=null,At=0,gt}function o_(){for(;at!==null;)av(at)}function a_(){for(;at!==null&&!HE();)av(at)}function av(e){var t=uv(e.alternate,e,ni);e.memoizedProps=e.pendingProps,t===null?sv(e):at=t,Y0.current=null}function sv(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=QE(t),r!==null){r.flags&=2047,at=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=qE(r,t,ni),r!==null){at=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||ni&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 Wn(e){var t=ao();return ri(99,s_.bind(null,e,t)),null}function s_(e,t){do Bn();while(la!==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-Fn(o),u=1<<l;i[l]=0,a[l]=-1,s[l]=-1,o&=~u}if(jr!==null&&!(n&24)&&jr.has(e)&&jr.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,Y0.current=null,Zu=Ws,a=Bh(),rf(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,d=-1,h=0,m=0,p=a,g=null;t:for(;;){for(var x;p!==s||o!==0&&p.nodeType!==3||(f=c+o),p!==l||u!==0&&p.nodeType!==3||(d=c+u),p.nodeType===3&&(c+=p.nodeValue.length),(x=p.firstChild)!==null;)g=p,p=x;for(;;){if(p===a)break t;if(g===s&&++h===o&&(f=c),g===l&&++m===u&&(d=c),(x=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=x}s=f===-1||d===-1?null:{start:f,end:d}}else s=null;s=s||{start:0,end:0}}else s=null;Ju={focusedElem:a,selectionRange:s},Ws=!1,ca=null,qs=!1,xe=n;do try{l_()}catch(R){if(xe===null)throw Error(se(330));Cn(xe,R),xe=xe.nextEffect}while(xe!==null);ca=null,xe=n;do try{for(a=e;xe!==null;){var w=xe.flags;if(w&16&&Ea(xe.stateNode,""),w&128){var y=xe.alternate;if(y!==null){var _=y.ref;_!==null&&(typeof _=="function"?_(null):_.current=null)}}switch(w&1038){case 2:Tp(xe),xe.flags&=-3;break;case 6:Tp(xe),xe.flags&=-3,ac(xe.alternate,xe);break;case 1024:xe.flags&=-1025;break;case 1028:xe.flags&=-1025,ac(xe.alternate,xe);break;case 4:ac(xe.alternate,xe);break;case 8:s=xe,ev(a,s);var k=s.alternate;_p(s),k!==null&&_p(k)}xe=xe.nextEffect}}catch(R){if(xe===null)throw Error(se(330));Cn(xe,R),xe=xe.nextEffect}while(xe!==null);if(_=Ju,y=Bh(),w=_.focusedElem,a=_.selectionRange,y!==w&&w&&w.ownerDocument&&xm(w.ownerDocument.documentElement,w)){for(a!==null&&rf(w)&&(y=a.start,_=a.end,_===void 0&&(_=y),"selectionStart"in w?(w.selectionStart=y,w.selectionEnd=Math.min(_,w.value.length)):(_=(y=w.ownerDocument||document)&&y.defaultView||window,_.getSelection&&(_=_.getSelection(),s=w.textContent.length,k=Math.min(a.start,s),a=a.end===void 0?k:Math.min(a.end,s),!_.extend&&k>a&&(s=a,a=k,k=s),s=Lh(w,k),o=Lh(w,a),s&&o&&(_.rangeCount!==1||_.anchorNode!==s.node||_.anchorOffset!==s.offset||_.focusNode!==o.node||_.focusOffset!==o.offset)&&(y=y.createRange(),y.setStart(s.node,s.offset),_.removeAllRanges(),k>a?(_.addRange(y),_.extend(o.node,o.offset)):(y.setEnd(o.node,o.offset),_.addRange(y)))))),y=[],_=w;_=_.parentNode;)_.nodeType===1&&y.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<y.length;w++)_=y[w],_.element.scrollLeft=_.left,_.element.scrollTop=_.top}Ws=!!Zu,Ju=Zu=null,e.current=r,xe=n;do try{for(w=e;xe!==null;){var N=xe.flags;if(N&36&&t_(w,xe.alternate,xe),N&128){y=void 0;var S=xe.ref;if(S!==null){var A=xe.stateNode;switch(xe.tag){case 5:y=A;break;default:y=A}typeof S=="function"?S(y):S.current=y}}xe=xe.nextEffect}}catch(R){if(xe===null)throw Error(se(330));Cn(xe,R),xe=xe.nextEffect}while(xe!==null);xe=null,WE(),Ce=i}else e.current=r;if(Pn)Pn=!1,la=e,qo=t;else for(xe=n;xe!==null;)t=xe.nextEffect,xe.nextEffect=null,xe.flags&8&&(N=xe,N.sibling=null,N.stateNode=null),xe=t;if(n=e.pendingLanes,n===0&&(Fr=null),n===1?e===Af?ua++:(ua=0,Af=e):ua=0,r=r.stateNode,Jn&&typeof Jn.onCommitFiberRoot=="function")try{Jn.onCommitFiberRoot(N0,r,void 0,(r.current.flags&64)===64)}catch{}if(cr(e,Ct()),Sl)throw Sl=!1,e=Sf,Sf=null,e;return Ce&8||kr(),null}function l_(){for(;xe!==null;){var e=xe.alternate;qs||ca===null||(xe.flags&8?Th(xe,ca)&&(qs=!0):xe.tag===13&&r_(e,xe)&&Th(xe,ca)&&(qs=!0));var t=xe.flags;t&256&&e_(e,xe),!(t&512)||Pn||(Pn=!0,Fa(97,function(){return Bn(),null})),xe=xe.nextEffect}}function Bn(){if(qo!==90){var e=97<qo?97:qo;return qo=90,ri(e,c_)}return!1}function u_(e,t){Tf.push(t,e),Pn||(Pn=!0,Fa(97,function(){return Bn(),null}))}function lv(e,t){Cf.push(t,e),Pn||(Pn=!0,Fa(97,function(){return Bn(),null}))}function c_(){if(la===null)return!1;var e=la;if(la=null,Ce&48)throw Error(se(331));var t=Ce;Ce|=32;var r=Cf;Cf=[];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));Cn(o,l)}}for(r=Tf,Tf=[],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));Cn(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,kr(),!0}function Ap(e,t,r){t=K0(r,t),t=Zm(e,t,1),_n(e,t),t=Qt(),e=ou(e,1),e!==null&&(Ql(e,1,t),cr(e,t))}function Cn(e,t){if(e.tag===3)Ap(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){Ap(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=K0(t,e);var i=Jm(r,e,1);if(_n(r,i),i=Qt(),r=ou(r,1),r!==null)Ql(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 f_(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()-Q0?Zi(e,0):q0|=r),cr(e,t)}function d_(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Vr===0&&(Vr=vo),t=ki(62914560&~Vr),t===0&&(t=4194304)):t=ao()===99?1:2:t=1),r=Qt(),e=ou(e,t),e!==null&&(Ql(e,t,r),cr(e,r))}var uv;uv=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:dp(t),nc();break;case 5:np(t);break;case 1:Vt(t.type)&&js(t);break;case 4:ff(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Je(fl,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?hp(e,t,r):(Je(Ze,Ze.current&1),t=zr(e,t,r),t!==null?t.sibling:null);Je(Ze,Ze.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return xp(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Je(Ze,Ze.current),n)break;return null;case 23:case 24:return t.lanes=0,ic(e,t,r)}return zr(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=oo(t,Ft.current),Yi(t,r),i=z0(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;js(t)}else o=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,U0(t);var a=n.getDerivedStateFromProps;typeof a=="function"&&pl(t,n,a,e),i.updater=nu,t.stateNode=i,i._reactInternals=t,cf(t,n,e,r),t=gf(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=p_(i),e=vr(i,e),o){case 0:t=pf(null,t,i,e,r);break e;case 1:t=fp(null,t,i,e,r);break e;case 11:t=up(null,t,i,e,r);break e;case 14:t=cp(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),pf(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:vr(n,i),fp(e,t,n,i,r);case 3:if(dp(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,km(e,t),Da(t,n,null,r),n=t.memoizedState.element,n===i)nc(),t=zr(e,t,r);else{if(i=t.stateNode,(o=i.hydrate)&&(pn=Ki(t.stateNode.containerInfo.firstChild),Wr=t,o=Pr=!0),o){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)o=e[i],o._workInProgressVersionPrimary=e[i+1],qi.push(o);for(r=Lm(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Bt(e,t,n,r),nc();t=t.child}return t;case 5:return np(t),e===null&&df(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,af(n,i)?a=null:o!==null&&af(n,o)&&(t.flags|=16),Km(e,t),Bt(e,t,a,r),t.child;case 6:return e===null&&df(t),null;case 13:return hp(e,t,r);case 4:return ff(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=gl(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),up(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(Je(fl,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=zr(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=En(-1,r&-r),u.tag=2,_n(s,u)),s.lanes|=r,u=s.alternate,u!==null&&(u.lanes|=r),bm(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,Yi(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),cp(e,t,i,o,n,r);case 15:return Xm(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,js(t)):e=!1,Yi(t,r),Nm(t,n,i),cf(t,n,i,r),gf(null,t,n,!0,e,r);case 19:return xp(e,t,r);case 23:return ic(e,t,r);case 24:return ic(e,t,r)}throw Error(se(156,t.tag))};function h_(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 h_(e,t,r,n)}function J0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function p_(e){if(typeof e=="function")return J0(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Kl)return 11;if(e===Yl)return 14}return 2}function In(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 Qs(e,t,r,n,i,o){var a=2;if(n=e,typeof e=="function")J0(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case fn:return Ji(r.children,i,o,t);case B1:a=8,i|=16;break;case g0:a=8,i|=1;break;case Jo:return e=sr(12,r,t,i|8),e.elementType=Jo,e.type=Jo,e.lanes=o,e;case ea:return e=sr(13,r,t,i),e.type=ea,e.elementType=ea,e.lanes=o,e;case rl:return e=sr(19,r,t,i),e.elementType=rl,e.lanes=o,e;case E0:return ed(r,i,o,t);case Hc:return e=sr(24,r,t,i),e.elementType=Hc,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case m0:a=10;break e;case v0:a=9;break e;case Kl:a=11;break e;case Yl:a=14;break e;case x0:a=16,n=null;break e;case w0: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 Ji(e,t,r,n){return e=sr(7,e,n,t),e.lanes=r,e}function ed(e,t,r,n){return e=sr(23,e,n,t),e.elementType=E0,e.lanes=r,e}function sc(e,t,r){return e=sr(6,e,null,t),e.lanes=r,e}function lc(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 g_(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=Gu(0),this.expirationTimes=Gu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.mutableSourceEagerHydrationData=null}function m_(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Kn,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Tl(e,t,r,n){var i=t.current,o=Qt(),a=Sn(i);e:if(r){r=r._reactInternals;t:{if(fi(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=Am(r,l,s);break e}}r=s}else r=Dn;return t.context===null?t.context=r:t.pendingContext=r,t=En(o,a),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),_n(i,t),Tn(i,a,o),a}function uc(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 Rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function td(e,t){Rp(e,t),(e=e.alternate)&&Rp(e,t)}function v_(){return null}function rd(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new g_(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,U0(t),e[mo]=r.current,Em(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}rd.prototype.render=function(e){Tl(e,this._internalRoot,null,null)};rd.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Tl(null,e,null,function(){t[mo]=null})};function Ka(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function x_(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 rd(e,0,t?{hydrate:!0}:void 0)}function au(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=uc(a);s.call(u)}}Tl(t,a,e,i)}else{if(o=r._reactRootContainer=x_(r,n),a=o._internalRoot,typeof i=="function"){var l=i;i=function(){var u=uc(a);l.call(u)}}nv(function(){Tl(t,a,e,i)})}return uc(a)}em=function(e){if(e.tag===13){var t=Qt();Tn(e,4,t),td(e,4)}};A0=function(e){if(e.tag===13){var t=Qt();Tn(e,67108864,t),td(e,67108864)}};tm=function(e){if(e.tag===13){var t=Qt(),r=Sn(e);Tn(e,r,t),td(e,r)}};rm=function(e,t){return t()};Qc=function(e,t,r){switch(t){case"input":if(Wc(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=tu(n);if(!i)throw Error(se(90));H1(n),Wc(n,i)}}}break;case"textarea":W1(e,r);break;case"select":t=r.value,t!=null&&Gi(e,!!r.multiple,t,!1)}};S0=rv;q1=function(e,t,r,n,i){var o=Ce;Ce|=4;try{return ri(98,e.bind(null,t,r,n,i))}finally{Ce=o,Ce===0&&(wo(),kr())}};T0=function(){!(Ce&49)&&(i_(),Bn())};Q1=function(e,t){var r=Ce;Ce|=2;try{return e(t)}finally{Ce=r,Ce===0&&(wo(),kr())}};function cv(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ka(t))throw Error(se(200));return m_(e,t,null,r)}var w_={Events:[Ga,Bi,tu,K1,Y1,Bn,{current:!1}]},Vo={findFiberByHostInstance:qn,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},y_={bundleType:Vo.bundleType,version:Vo.version,rendererPackageName:Vo.rendererPackageName,rendererConfig:Vo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ci.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=J1(e),e===null?null:e.stateNode},findFiberByHostInstance:Vo.findFiberByHostInstance||v_,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{N0=vs.inject(y_),Jn=vs}catch{}}dr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w_;dr.createPortal=cv;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=J1(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 ri(99,e.bind(null,t))}finally{Ce=r,kr()}};dr.hydrate=function(e,t,r){if(!Ka(t))throw Error(se(200));return au(null,e,t,!0,r)};dr.render=function(e,t,r){if(!Ka(t))throw Error(se(200));return au(null,e,t,!1,r)};dr.unmountComponentAtNode=function(e){if(!Ka(e))throw Error(se(40));return e._reactRootContainer?(nv(function(){au(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0):!1};dr.unstable_batchedUpdates=rv;dr.unstable_createPortal=function(e,t){return cv(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};dr.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Ka(r))throw Error(se(200));if(e==null||e._reactInternals===void 0)throw Error(se(38));return au(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})(Cy);const fv=w1(Jr);/**
* table-core
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function gn(e,t){return typeof e=="function"?e(t):e}function fr(e,t){return r=>{t.setState(n=>({...n,[e]:gn(r,n[e])}))}}function Cl(e){return e instanceof Function}function E_(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,d=(h,m)=>{for(h=String(h);h.length<m;)h=" "+h;return h};console.info(`%c⏱ ${d(c,5)} /${d(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 __(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=d=>{let h=d;for(const p of l.split(".")){var m;h=(m=h)==null?void 0:m[p]}return h}:c=d=>d[s.accessorKey]),!u)throw new Error;let f={id:`${String(u)}`,accessorFn:c,parent:n,depth:r,columnDef:s,columns:[],getFlatColumns:Ae(()=>[!0],()=>{var d;return[f,...(d=f.columns)==null?void 0:d.flatMap(h=>h.getFlatColumns())]},{key:"column.getFlatColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}}),getLeafColumns:Ae(()=>[e._getOrderColumnsFn()],d=>{var h;if((h=f.columns)!=null&&h.length){let m=f.columns.flatMap(p=>p.getLeafColumns());return d(m)}return[f]},{key:"column.getLeafColumns",debug:()=>{var d;return(d=e.options.debugAll)!=null?d:e.options.debugColumns}})};return f=e._features.reduce((d,h)=>Object.assign(d,h.createColumn==null?void 0:h.createColumn(f,e)),f),f}function Op(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 S_={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(d=>d.id===f)).filter(Boolean))!=null?o:[],l=(a=i==null?void 0:i.map(f=>r.find(d=>d.id===f)).filter(Boolean))!=null?a:[],u=r.filter(f=>!(n!=null&&n.includes(f.id))&&!(i!=null&&i.includes(f.id)));return xs(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))),xs(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 xs(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 xs(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 xs(e,t,r,n){var i,o;let a=0;const s=function(d,h){h===void 0&&(h=1),a=Math.max(a,h),d.filter(m=>m.getIsVisible()).forEach(m=>{var p;(p=m.columns)!=null&&p.length&&s(m.columns,h+1)},0)};s(e);let l=[];const u=(d,h)=>{const m={depth:h,id:[n,`${h}`].filter(Boolean).join("_"),headers:[]},p=[];d.forEach(g=>{const x=[...p].reverse()[0],w=g.column.depth===m.depth;let y,_=!1;if(w&&g.column.parent?y=g.column.parent:(y=g.column,_=!0),x&&(x==null?void 0:x.column)===y)x.subHeaders.push(g);else{const k=Op(r,y,{id:[n,h,y.id,g==null?void 0:g.id].filter(Boolean).join("_"),isPlaceholder:_,placeholderId:_?`${p.filter(N=>N.column===y).length}`:void 0,depth:h,index:p.length});k.subHeaders.push(g),p.push(k)}m.headers.push(g),g.headerGroup=m}),l.push(m),h>0&&u(p,h-1)},c=t.map((d,h)=>Op(r,d,{depth:a,index:h}));u(c,a-1),l.reverse();const f=d=>d.filter(m=>m.column.getIsVisible()).map(m=>{let p=0,g=0,x=[0];m.subHeaders&&m.subHeaders.length?(x=[],f(m.subHeaders).forEach(y=>{let{colSpan:_,rowSpan:k}=y;p+=_,x.push(k)})):p=1;const w=Math.min(...x);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 ws={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},cc=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),T_={getDefaultColumnDef:()=>ws,getInitialState:e=>({columnSizing:{},columnSizingInfo:cc(),...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:ws.minSize,(n=o??e.columnDef.size)!=null?n:ws.size),(i=e.columnDef.maxSize)!=null?i:ws.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(),fc(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=fc(i)?Math.round(i.touches[0].clientX):i.clientX,l={},u=(p,g)=>{typeof g=="number"&&(t.setColumnSizingInfo(x=>{var w,y;const _=g-((w=x==null?void 0:x.startOffset)!=null?w:0),k=Math.max(_/((y=x==null?void 0:x.startSize)!=null?y:0),-.999999);return x.columnSizingStart.forEach(N=>{let[S,A]=N;l[S]=Math.round(Math.max(A+A*k,0)*100)/100}),{...x,deltaOffset:_,deltaPercentage:k}}),(t.options.columnResizeMode==="onChange"||p==="end")&&t.setColumnSizing(x=>({...x,...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:[]}))},d={moveHandler:p=>c(p.clientX),upHandler:p=>{document.removeEventListener("mousemove",d.moveHandler),document.removeEventListener("mouseup",d.upHandler),f(p.clientX)}},h={moveHandler:p=>(p.cancelable&&(p.preventDefault(),p.stopPropagation()),c(p.touches[0].clientX),!1),upHandler:p=>{var g;document.removeEventListener("touchmove",h.moveHandler),document.removeEventListener("touchend",h.upHandler),p.cancelable&&(p.preventDefault(),p.stopPropagation()),f((g=p.touches[0])==null?void 0:g.clientX)}},m=C_()?{passive:!1}:!1;fc(i)?(document.addEventListener("touchmove",h.moveHandler,m),document.addEventListener("touchend",h.upHandler,m)):(document.addEventListener("mousemove",d.moveHandler,m),document.addEventListener("mouseup",d.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?cc():(r=e.initialState.columnSizingInfo)!=null?r:cc())},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 ys=null;function C_(){if(typeof ys=="boolean")return ys;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 ys=e,ys}function fc(e){return e.type==="touchstart"}const A_={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()}}})},dv=(e,t,r)=>{var n;const i=r.toLowerCase();return!!((n=e.getValue(t))!=null&&n.toLowerCase().includes(i))};dv.autoRemove=e=>_r(e);const hv=(e,t,r)=>{var n;return!!((n=e.getValue(t))!=null&&n.includes(r))};hv.autoRemove=e=>_r(e);const pv=(e,t,r)=>{var n;return((n=e.getValue(t))==null?void 0:n.toLowerCase())===r.toLowerCase()};pv.autoRemove=e=>_r(e);const gv=(e,t,r)=>{var n;return(n=e.getValue(t))==null?void 0:n.includes(r)};gv.autoRemove=e=>_r(e)||!(e!=null&&e.length);const mv=(e,t,r)=>!r.some(n=>{var i;return!((i=e.getValue(t))!=null&&i.includes(n))});mv.autoRemove=e=>_r(e)||!(e!=null&&e.length);const vv=(e,t,r)=>r.some(n=>{var i;return(i=e.getValue(t))==null?void 0:i.includes(n)});vv.autoRemove=e=>_r(e)||!(e!=null&&e.length);const xv=(e,t,r)=>e.getValue(t)===r;xv.autoRemove=e=>_r(e);const wv=(e,t,r)=>e.getValue(t)==r;wv.autoRemove=e=>_r(e);const nd=(e,t,r)=>{let[n,i]=r;const o=e.getValue(t);return o>=n&&o<=i};nd.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]};nd.autoRemove=e=>_r(e)||_r(e[0])&&_r(e[1]);const Br={includesString:dv,includesStringSensitive:hv,equalsString:pv,arrIncludes:gv,arrIncludesAll:mv,arrIncludesSome:vv,equals:xv,weakEquals:wv,inNumberRange:nd};function _r(e){return e==null||e===""}const R_={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"?Br.includesString:typeof n=="number"?Br.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?Br.equals:Array.isArray(n)?Br.arrIncludes:Br.weakEquals},getFilterFn:()=>{var r,n;return Cl(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:Br[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=gn(r,o?o.value:void 0);if(Fp(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:()=>Br.includesString,getGlobalFilterFn:()=>{var t,r;const{globalFilterFn:n}=e.options;return Cl(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(t=(r=e.options.filterFns)==null?void 0:r[n])!=null?t:Br[n]},setColumnFilters:t=>{const r=e.getAllLeafColumns(),n=i=>{var o;return(o=gn(t,i))==null?void 0:o.filter(a=>{const s=r.find(l=>l.id===a.id);if(s){const l=s.getFilterFn();if(Fp(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 Fp(e,t,r){return(e&&e.autoRemove?e.autoRemove(t,r):!1)||typeof t>"u"||typeof t=="string"&&!t}const O_=(e,t,r)=>r.reduce((n,i)=>{const o=i.getValue(e);return n+(typeof o=="number"?o:0)},0),F_=(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},D_=(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},P_=(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]},I_=(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},b_=(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},k_=(e,t)=>Array.from(new Set(t.map(r=>r.getValue(e))).values()),$_=(e,t)=>new Set(t.map(r=>r.getValue(e))).size,N_=(e,t)=>t.length,dc={sum:O_,min:F_,max:D_,extent:P_,mean:I_,median:b_,unique:k_,uniqueCount:$_,count:N_},M_={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 dc.sum;if(Object.prototype.toString.call(n)==="[object Date]")return dc.extent},getAggregationFn:()=>{var r,n;if(!e)throw new Error;return Cl(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:dc[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 L_(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 B_={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 L_(o,r,n)},{key:!1})})},Of=0,Ff=10,hc=()=>({pageIndex:Of,pageSize:Ff}),U_={getInitialState:e=>({...e,pagination:{...hc(),...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=>gn(n,o);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},resetPagination:n=>{var i;e.setPagination(n?hc():(i=e.initialState.pagination)!=null?i:hc())},setPageIndex:n=>{e.setPagination(i=>{let o=gn(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?Of:(i=(o=e.initialState)==null||(a=o.pagination)==null?void 0:a.pageIndex)!=null?i:Of)},resetPageSize:n=>{var i,o,a;e.setPageSize(n?Ff:(i=(o=e.initialState)==null||(a=o.pagination)==null?void 0:a.pageSize)!=null?i:Ff)},setPageSize:n=>{e.setPagination(i=>{const o=Math.max(1,gn(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=gn(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)}}}},pc=()=>({left:[],right:[]}),H_={getInitialState:e=>({columnPinning:pc(),...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?pc():(r=(n=e.initialState)==null?void 0:n.columnPinning)!=null?r:pc())},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}})})},V_={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=>{Df(i,o.id,n,e)}),i}),getPreSelectedRowModel:()=>e.getCoreRowModel(),getSelectedRowModel:Ae(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,r)=>Object.keys(t).length?gc(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?gc(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?gc(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 Df(o,e.id,r,t),o})},getIsSelected:()=>{const{rowSelection:r}=t.getState();return id(e,r)},getIsSomeSelected:()=>{const{rowSelection:r}=t.getState();return Dp(e,r)==="some"},getIsAllSubRowsSelected:()=>{const{rowSelection:r}=t.getState();return Dp(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)}}})},Df=(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=>Df(e,a.id,r,n))};function gc(e,t){const r=e.getState().rowSelection,n=[],i={},o=function(a,s){return a.map(l=>{var u;const c=id(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 id(e,t){var r;return(r=t[e.id])!=null?r:!1}function Dp(e,t,r){if(e.subRows&&e.subRows.length){let n=!0,i=!1;return e.subRows.forEach(o=>{i&&!n||(id(o,t)?i=!0:n=!1)}),n?"all":i?"some":!1}return!1}const Pf=/([0-9]+)/gm,W_=(e,t,r)=>yv(bn(e.getValue(r)).toLowerCase(),bn(t.getValue(r)).toLowerCase()),z_=(e,t,r)=>yv(bn(e.getValue(r)),bn(t.getValue(r))),G_=(e,t,r)=>od(bn(e.getValue(r)).toLowerCase(),bn(t.getValue(r)).toLowerCase()),j_=(e,t,r)=>od(bn(e.getValue(r)),bn(t.getValue(r))),X_=(e,t,r)=>{const n=e.getValue(r),i=t.getValue(r);return n>i?1:n<i?-1:0},K_=(e,t,r)=>od(e.getValue(r),t.getValue(r));function od(e,t){return e===t?0:e>t?1:-1}function bn(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function yv(e,t){const r=e.split(Pf).filter(Boolean),n=t.split(Pf).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 Wo={alphanumeric:W_,alphanumericCaseSensitive:z_,text:G_,textCaseSensitive:j_,datetime:X_,basic:K_},Y_={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 Wo.datetime;if(typeof o=="string"&&(n=!0,o.split(Pf).length>1))return Wo.alphanumeric}return n?Wo.text:Wo.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 Cl(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:Wo[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(h=>h.id===e.id),l=a==null?void 0:a.findIndex(h=>h.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 d;u=[...a,{id:e.id,desc:f}],u.splice(0,u.length-((d=t.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?u=a.map(h=>h.id===e.id?{...h,desc:f}:h):c==="remove"?u=a.filter(h=>h.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())})},q_={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)}}}},Pp=[S_,q_,B_,H_,R_,Y_,M_,A_,U_,V_,T_];function Q_(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");let r={_features:Pp};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:Pp,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=gn(c,r.options);r.options=i(f)},getState:()=>r.options.state,setState:c=>{r.options.onStateChange==null||r.options.onStateChange(c)},_getRowId:(c,f,d)=>{var h;return(h=r.options.getRowId==null?void 0:r.options.getRowId(c,f,d))!=null?h:`${d?[d.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:d=>{const h=d.header.column.columnDef;return h.accessorKey?h.accessorKey:h.accessorFn?h.id:null},cell:d=>{var h,m;return(h=(m=d.renderValue())==null||m.toString==null?void 0:m.toString())!=null?h:null},...r._features.reduce((d,h)=>Object.assign(d,h.getDefaultColumnDef==null?void 0:h.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(d,h,m){return m===void 0&&(m=0),d.map(p=>{const g=__(r,p,m,h),x=p;return g.columns=x.columns?f(x.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,d)=>(f[d.id]=d,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 d=c.flatMap(h=>h.getLeafColumns());return f(d)},{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 Z_(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 ad=(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:()=>E_(a.subRows,s=>s.subRows),getAllCells:Ae(()=>[e.getAllLeafColumns()],s=>s.map(l=>Z_(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 J_(){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=ad(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 eS(e,t,r){return r.options.filterFromLeafRows?tS(e,t,r):rS(e,t,r)}function tS(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 d=0;d<l.length;d++){var f;let h=l[d];const m=ad(r,h.id,h.original,h.index,h.depth);if(m.columnFilters=h.columnFilters,(f=h.subRows)!=null&&f.length&&u<a){if(m.subRows=s(h.subRows,u+1),h=m,t(h)&&!m.subRows.length){c.push(h),o[h.id]=h,o[d]=h;continue}if(t(h)||m.subRows.length){c.push(h),o[h.id]=h,o[d]=h;continue}}else h=m,t(h)&&(c.push(h),o[h.id]=h,o[d]=h)}return c};return{rows:s(e),flatRows:i,rowsById:o}}function rS(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 d=0;d<l.length;d++){let h=l[d];if(t(h)){var f;if((f=h.subRows)!=null&&f.length&&u<a){const p=ad(r,h.id,h.original,h.index,h.depth);p.subRows=s(h.subRows,u+1),h=p}c.push(h),i.push(h),o[h.id]=h}}return c};return{rows:s(e),flatRows:i,rowsById:o}}function nS(){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 d=0;d<t.flatRows.length;d++)t.flatRows[d].columnFilters={},t.flatRows[d].columnFiltersMeta={};return t}const i=[],o=[];(r??[]).forEach(d=>{var h;const m=e.getColumn(d.id);if(!m)return;const p=m.getFilterFn();p&&i.push({id:d.id,filterFn:p,resolvedValue:(h=p.resolveFilterValue==null?void 0:p.resolveFilterValue(d.value))!=null?h:d.value})});const a=r.map(d=>d.id),s=e.getGlobalFilterFn(),l=e.getAllLeafColumns().filter(d=>d.getCanGlobalFilter());n&&s&&l.length&&(a.push("__global__"),l.forEach(d=>{var h;o.push({id:d.id,filterFn:s,resolvedValue:(h=s.resolveFilterValue==null?void 0:s.resolveFilterValue(n))!=null?h:n})}));let u,c;for(let d=0;d<t.flatRows.length;d++){const h=t.flatRows[d];if(h.columnFilters={},i.length)for(let m=0;m<i.length;m++){u=i[m];const p=u.id;h.columnFilters[p]=u.filterFn(h,p,u.resolvedValue,g=>{h.columnFiltersMeta[p]=g})}if(o.length){for(let m=0;m<o.length;m++){c=o[m];const p=c.id;if(c.filterFn(h,p,c.resolvedValue,g=>{h.columnFiltersMeta[p]=g})){h.columnFilters.__global__=!0;break}}h.columnFilters.__global__!==!0&&(h.columnFilters.__global__=!1)}}const f=d=>{for(let h=0;h<a.length;h++)if(d.columnFilters[a[h]]===!1)return!1;return!0};return eS(t.rows,f,e)},{key:!1,debug:()=>{var t;return(t=e.options.debugAll)!=null?t:e.options.debugTable},onChange:()=>{e._autoResetPageIndex()}})}function iS(){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 h=0;h<o.length;h+=1){var d;const m=o[h],p=a[m.id],g=(d=m==null?void 0:m.desc)!=null?d:!1;if(p.sortUndefined){const w=c.getValue(m.id),y=f.getValue(m.id),_=typeof w>"u",k=typeof y>"u";if(_||k)return _&&k?0:_?p.sortUndefined:-p.sortUndefined}let x=p.sortingFn(c,f,m.id);if(x!==0)return g&&(x*=-1),p.invertSorting&&(x*=-1),x}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 oS(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 aS(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=oS({rows:a,flatRows:s,rowsById:l}),f.flatRows=[];const d=h=>{f.flatRows.push(h),h.subRows.length&&h.subRows.forEach(d)};return f.rows.forEach(d),f},{key:!1,debug:()=>{var r;return(r=t.options.debugAll)!=null?r:t.options.debugTable}})}/**
* react-table
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function If(e,t){return e?sS(e)?v.createElement(e,t):e:null}function sS(e){return lS(e)||typeof e=="function"||uS(e)}function lS(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function uS(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function cS(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[r]=v.useState(()=>({current:Q_(t)})),[n,i]=v.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 Ev(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=Ev(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function bt(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Ev(e))&&(n&&(n+=" "),n+=t);return n}function de(){return de=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},de.apply(this,arguments)}function Ip(e,[t,r]){return Math.min(r,Math.max(t,e))}function Ee(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 on(e,t=[]){let r=[];function n(o,a){const s=v.createContext(a),l=r.length;r=[...r,a];function u(f){const{scope:d,children:h,...m}=f,p=(d==null?void 0:d[e][l])||s,g=v.useMemo(()=>m,Object.values(m));return v.createElement(p.Provider,{value:g},h)}function c(f,d){const h=(d==null?void 0:d[e][l])||s,m=v.useContext(h);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=>v.createContext(a));return function(s){const l=(s==null?void 0:s[e])||o;return v.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,fS(i,...t)]}function fS(...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 v.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function dS(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function sd(...e){return t=>e.forEach(r=>dS(r,t))}function He(...e){return v.useCallback(sd(...e),e)}const ii=v.forwardRef((e,t)=>{const{children:r,...n}=e,i=v.Children.toArray(r),o=i.find(pS);if(o){const a=o.props.children,s=i.map(l=>l===o?v.Children.count(a)>1?v.Children.only(null):v.isValidElement(a)?a.props.children:null:l);return v.createElement(bf,de({},n,{ref:t}),v.isValidElement(a)?v.cloneElement(a,void 0,s):null)}return v.createElement(bf,de({},n,{ref:t}),r)});ii.displayName="Slot";const bf=v.forwardRef((e,t)=>{const{children:r,...n}=e;return v.isValidElement(r)?v.cloneElement(r,{...gS(n,r.props),ref:sd(t,r.ref)}):v.Children.count(r)>1?v.Children.only(null):null});bf.displayName="SlotClone";const hS=({children:e})=>v.createElement(v.Fragment,null,e);function pS(e){return v.isValidElement(e)&&e.type===hS}function gS(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 su(e){const t=e+"CollectionProvider",[r,n]=on(t),[i,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:m,children:p}=h,g=nr.useRef(null),x=nr.useRef(new Map).current;return nr.createElement(i,{scope:m,itemMap:x,collectionRef:g},p)},s=e+"CollectionSlot",l=nr.forwardRef((h,m)=>{const{scope:p,children:g}=h,x=o(s,p),w=He(m,x.collectionRef);return nr.createElement(ii,{ref:w},g)}),u=e+"CollectionItemSlot",c="data-radix-collection-item",f=nr.forwardRef((h,m)=>{const{scope:p,children:g,...x}=h,w=nr.useRef(null),y=He(m,w),_=o(u,p);return nr.useEffect(()=>(_.itemMap.set(w,{ref:w,...x}),()=>void _.itemMap.delete(w))),nr.createElement(ii,{[c]:"",ref:y},g)});function d(h){const m=o(e+"CollectionConsumer",h);return nr.useCallback(()=>{const g=m.collectionRef.current;if(!g)return[];const x=Array.from(g.querySelectorAll(`[${c}]`));return Array.from(m.itemMap.values()).sort((_,k)=>x.indexOf(_.ref.current)-x.indexOf(k.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:a,Slot:l,ItemSlot:f},d,n]}const mS=v.createContext(void 0);function ld(e){const t=v.useContext(mS);return e||t||"ltr"}const vS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ie=vS.reduce((e,t)=>{const r=v.forwardRef((n,i)=>{const{asChild:o,...a}=n,s=o?ii:t;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(s,de({},a,{ref:i}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ud(e,t){e&&Jr.flushSync(()=>e.dispatchEvent(t))}function Dt(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function xS(e,t=globalThis==null?void 0:globalThis.document){const r=Dt(e);v.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const kf="dismissableLayer.update",wS="dismissableLayer.pointerDownOutside",yS="dismissableLayer.focusOutside";let bp;const _v=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lu=v.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:l,...u}=e,c=v.useContext(_v),[f,d]=v.useState(null),h=(r=f==null?void 0:f.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,m]=v.useState({}),p=He(t,A=>d(A)),g=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),w=g.indexOf(x),y=f?g.indexOf(f):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,k=y>=w,N=_S(A=>{const R=A.target,L=[...c.branches].some(V=>V.contains(R));!k||L||(o==null||o(A),s==null||s(A),A.defaultPrevented||l==null||l())},h),S=SS(A=>{const R=A.target;[...c.branches].some(V=>V.contains(R))||(a==null||a(A),s==null||s(A),A.defaultPrevented||l==null||l())},h);return xS(A=>{y===c.layers.size-1&&(i==null||i(A),!A.defaultPrevented&&l&&(A.preventDefault(),l()))},h),v.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(bp=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),kp(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=bp)}},[f,h,n,c]),v.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),kp())},[f,c]),v.useEffect(()=>{const A=()=>m({});return document.addEventListener(kf,A),()=>document.removeEventListener(kf,A)},[]),v.createElement(Ie.div,de({},u,{ref:p,style:{pointerEvents:_?k?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,S.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,N.onPointerDownCapture)}))}),ES=v.forwardRef((e,t)=>{const r=v.useContext(_v),n=v.useRef(null),i=He(t,n);return v.useEffect(()=>{const o=n.current;if(o)return r.branches.add(o),()=>{r.branches.delete(o)}},[r.branches]),v.createElement(Ie.div,de({},e,{ref:i}))});function _S(e,t=globalThis==null?void 0:globalThis.document){const r=Dt(e),n=v.useRef(!1),i=v.useRef(()=>{});return v.useEffect(()=>{const o=s=>{if(s.target&&!n.current){let c=function(){Sv(wS,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 SS(e,t=globalThis==null?void 0:globalThis.document){const r=Dt(e),n=v.useRef(!1);return v.useEffect(()=>{const i=o=>{o.target&&!n.current&&Sv(yS,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 kp(){const e=new CustomEvent(kf);document.dispatchEvent(e)}function Sv(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?ud(i,o):i.dispatchEvent(o)}const TS=lu,CS=ES;let mc=0;function cd(){v.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:$p()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:$p()),mc++,()=>{mc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),mc--}},[])}function $p(){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 vc="focusScope.autoFocusOnMount",xc="focusScope.autoFocusOnUnmount",Np={bubbles:!1,cancelable:!0},fd=v.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=v.useState(null),u=Dt(i),c=Dt(o),f=v.useRef(null),d=He(t,p=>l(p)),h=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(n){let x=function(y){if(h.paused||!s)return;const _=y.target;s.contains(_)?f.current=_:zn(f.current,{select:!0})},w=function(y){h.paused||!s||s.contains(y.relatedTarget)||zn(f.current,{select:!0})};var p=x,g=w;return document.addEventListener("focusin",x),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w)}}},[n,s,h.paused]),v.useEffect(()=>{if(s){Lp.add(h);const p=document.activeElement;if(!s.contains(p)){const x=new CustomEvent(vc,Np);s.addEventListener(vc,u),s.dispatchEvent(x),x.defaultPrevented||(AS(PS(Tv(s)),{select:!0}),document.activeElement===p&&zn(s))}return()=>{s.removeEventListener(vc,u),setTimeout(()=>{const x=new CustomEvent(xc,Np);s.addEventListener(xc,c),s.dispatchEvent(x),x.defaultPrevented||zn(p??document.body,{select:!0}),s.removeEventListener(xc,c),Lp.remove(h)},0)}}},[s,u,c,h]);const m=v.useCallback(p=>{if(!r&&!n||h.paused)return;const g=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,x=document.activeElement;if(g&&x){const w=p.currentTarget,[y,_]=RS(w);y&&_?!p.shiftKey&&x===_?(p.preventDefault(),r&&zn(y,{select:!0})):p.shiftKey&&x===y&&(p.preventDefault(),r&&zn(_,{select:!0})):x===w&&p.preventDefault()}},[r,n,h.paused]);return v.createElement(Ie.div,de({tabIndex:-1},a,{ref:d,onKeyDown:m}))});function AS(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(zn(n,{select:t}),document.activeElement!==r)return}function RS(e){const t=Tv(e),r=Mp(t,e),n=Mp(t.reverse(),e);return[r,n]}function Tv(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 Mp(e,t){for(const r of e)if(!OS(r,{upTo:t}))return r}function OS(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 FS(e){return e instanceof HTMLInputElement&&"select"in e}function zn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&FS(e)&&t&&e.select()}}const Lp=DS();function DS(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Bp(e,t),e.unshift(t)},remove(t){var r;e=Bp(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function Bp(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function PS(e){return e.filter(t=>t.tagName!=="A")}const xt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},IS=yy["useId".toString()]||(()=>{});let bS=0;function Xr(e){const[t,r]=v.useState(IS());return xt(()=>{e||r(n=>n??String(bS++))},[e]),e||(t?`radix-${t}`:"")}function hi(e){return e.split("-")[0]}function Ya(e){return e.split("-")[1]}function yo(e){return["top","bottom"].includes(hi(e))?"x":"y"}function dd(e){return e==="y"?"height":"width"}function Up(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=yo(t),l=dd(s),u=n[l]/2-i[l]/2,c=s==="x";let f;switch(hi(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(Ya(t)){case"start":f[s]-=u*(r&&c?-1:1);break;case"end":f[s]+=u*(r&&c?-1:1)}return f}const kS=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}=Up(l,n,s),f=n,d={},h=0;for(let m=0;m<o.length;m++){const{name:p,fn:g}=o[m],{x,y:w,data:y,reset:_}=await g({x:u,y:c,initialPlacement:n,placement:f,strategy:i,middlewareData:d,rects:l,platform:a,elements:{reference:e,floating:t}});u=x??u,c=w??c,d={...d,[p]:{...d[p],...y}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(f=_.placement),_.rects&&(l=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:u,y:c}=Up(l,f,s)),m=-1)}return{x:u,y:c,placement:f,strategy:i,middlewareData:d}};function Cv(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 Al(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function ka(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:d=!1,padding:h=0}=t,m=Cv(h),p=s[d?f==="floating"?"reference":"floating":f],g=Al(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})),x=Al(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-x.top+m.top,bottom:x.bottom-g.bottom+m.bottom,left:g.left-x.left+m.left,right:x.right-g.right+m.right}}const $S=Math.min,Gn=Math.max;function $f(e,t,r){return Gn(e,$S(t,r))}const Hp=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=Cv(n),c={x:i,y:o},f=yo(a),d=Ya(a),h=dd(f),m=await l.getDimensions(r),p=f==="y"?"top":"left",g=f==="y"?"bottom":"right",x=s.reference[h]+s.reference[f]-c[f]-s.floating[h],w=c[f]-s.reference[f],y=await(l.getOffsetParent==null?void 0:l.getOffsetParent(r));let _=y?f==="y"?y.clientHeight||0:y.clientWidth||0:0;_===0&&(_=s.floating[h]);const k=x/2-w/2,N=u[p],S=_-m[h]-u[g],A=_/2-m[h]/2+k,R=$f(N,A,S),L=(d==="start"?u[p]:u[g])>0&&A!==R&&s.reference[h]<=s.floating[h];return{[f]:c[f]-(L?A<N?N-A:S-A:0),data:{[f]:R,centerOffset:A-R}}}}),NS={left:"right",right:"left",bottom:"top",top:"bottom"};function Rl(e){return e.replace(/left|right|bottom|top/g,t=>NS[t])}function MS(e,t,r){r===void 0&&(r=!1);const n=Ya(e),i=yo(e),o=dd(i);let a=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Rl(a)),{main:a,cross:Rl(a)}}const LS={start:"end",end:"start"};function Vp(e){return e.replace(/start|end/g,t=>LS[t])}const Av=["top","right","bottom","left"];Av.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);const BS=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:d="bestFit",flipAlignment:h=!0,...m}=e,p=hi(n),g=f||(p===a||!h?[Rl(a)]:function(A){const R=Rl(A);return[Vp(A),R,Vp(R)]}(a)),x=[a,...g],w=await ka(t,m),y=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&y.push(w[p]),c){const{main:A,cross:R}=MS(n,o,await(s.isRTL==null?void 0:s.isRTL(l.floating)));y.push(w[A],w[R])}if(_=[..._,{placement:n,overflows:y}],!y.every(A=>A<=0)){var k,N;const A=((k=(N=i.flip)==null?void 0:N.index)!=null?k:0)+1,R=x[A];if(R)return{data:{index:A,overflows:_},reset:{placement:R}};let L="bottom";switch(d){case"bestFit":{var S;const V=(S=_.map(U=>[U,U.overflows.filter(W=>W>0).reduce((W,Y)=>W+Y,0)]).sort((U,W)=>U[1]-W[1])[0])==null?void 0:S[0].placement;V&&(L=V);break}case"initialPlacement":L=a}if(n!==L)return{reset:{placement:L}}}return{}}}};function Wp(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zp(e){return Av.some(t=>e[t]>=0)}const US=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=Wp(await ka(n,{...r,elementContext:"reference"}),i.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:zp(o)}}}case"escaped":{const o=Wp(await ka(n,{...r,altBoundary:!0}),i.floating);return{data:{escapedOffsets:o,escaped:zp(o)}}}default:return{}}}}},HS=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=hi(s),d=Ya(s),h=yo(s)==="x",m=["left","top"].includes(f)?-1:1,p=c&&h?-1:1,g=typeof a=="function"?a(o):a;let{mainAxis:x,crossAxis:w,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return d&&typeof y=="number"&&(w=d==="end"?-1*y:y),h?{x:w*p,y:x*m}:{x:x*m,y:w*p}}(t,e);return{x:r+i.x,y:n+i.y,data:i}}}};function Rv(e){return e==="x"?"y":"x"}const VS=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,y:w}=g;return{x,y:w}}},...l}=e,u={x:r,y:n},c=await ka(t,l),f=yo(hi(i)),d=Rv(f);let h=u[f],m=u[d];if(o){const g=f==="y"?"bottom":"right";h=$f(h+c[f==="y"?"top":"left"],h,h-c[g])}if(a){const g=d==="y"?"bottom":"right";m=$f(m+c[d==="y"?"top":"left"],m,m-c[g])}const p=s.fn({...t,[f]:h,[d]:m});return{...p,data:{x:p.x-r,y:p.y-n}}}}},WS=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=yo(i),d=Rv(f);let h=c[f],m=c[d];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 k=f==="y"?"height":"width",N=o.reference[f]-o.floating[k]+g.mainAxis,S=o.reference[f]+o.reference[k]-g.mainAxis;h<N?h=N:h>S&&(h=S)}if(u){var x,w,y,_;const k=f==="y"?"width":"height",N=["top","left"].includes(hi(i)),S=o.reference[d]-o.floating[k]+(N&&(x=(w=a.offset)==null?void 0:w[d])!=null?x:0)+(N?0:g.crossAxis),A=o.reference[d]+o.reference[k]+(N?0:(y=(_=a.offset)==null?void 0:_[d])!=null?y:0)-(N?g.crossAxis:0);m<S?m=S:m>A&&(m=A)}return{[f]:h,[d]:m}}}},zS=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 ka(t,s),u=hi(r),c=Ya(r);let f,d;u==="top"||u==="bottom"?(f=u,d=c===(await(i.isRTL==null?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(d=u,f=c==="end"?"top":"bottom");const h=Gn(l.left,0),m=Gn(l.right,0),p=Gn(l.top,0),g=Gn(l.bottom,0),x={availableHeight:n.floating.height-(["left","right"].includes(r)?2*(p!==0||g!==0?p+g:Gn(l.top,l.bottom)):l[f]),availableWidth:n.floating.width-(["top","bottom"].includes(r)?2*(h!==0||m!==0?h+m:Gn(l.left,l.right)):l[d])},w=await i.getDimensions(o.floating);a==null||a({...t,...x});const y=await i.getDimensions(o.floating);return w.width!==y.width||w.height!==y.height?{reset:{rects:!0}}:{}}}};function Ov(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function an(e){if(e==null)return window;if(!Ov(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function qa(e){return an(e).getComputedStyle(e)}function Kr(e){return Ov(e)?"":e?(e.nodeName||"").toLowerCase():""}function Fv(){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 an(e).HTMLElement}function kn(e){return e instanceof an(e).Element}function hd(e){return typeof ShadowRoot>"u"?!1:e instanceof an(e).ShadowRoot||e instanceof ShadowRoot}function uu(e){const{overflow:t,overflowX:r,overflowY:n}=qa(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function GS(e){return["table","td","th"].includes(Kr(e))}function Gp(e){const t=/firefox/i.test(Fv()),r=qa(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 Dv(){return!/^((?!chrome|android).)*safari/i.test(Fv())}const jp=Math.min,fa=Math.max,Ol=Math.round;function Yr(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&&Ol(s.width)/e.offsetWidth||1,u=e.offsetHeight>0&&Ol(s.height)/e.offsetHeight||1);const c=kn(e)?an(e):window,f=!Dv()&&r,d=(s.left+(f&&(n=(i=c.visualViewport)==null?void 0:i.offsetLeft)!=null?n:0))/l,h=(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:h,right:d+m,bottom:h+p,left:d,x:d,y:h}}function An(e){return(t=e,(t instanceof an(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function cu(e){return kn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Pv(e){return Yr(An(e)).left+cu(e).scrollLeft}function jS(e,t,r){const n=Ir(t),i=An(t),o=Yr(e,n&&function(l){const u=Yr(l);return Ol(u.width)!==l.offsetWidth||Ol(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((Kr(t)!=="body"||uu(i))&&(a=cu(t)),Ir(t)){const l=Yr(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else i&&(s.x=Pv(i));return{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function Iv(e){return Kr(e)==="html"?e:e.assignedSlot||e.parentNode||(hd(e)?e.host:null)||An(e)}function Xp(e){return Ir(e)&&getComputedStyle(e).position!=="fixed"?e.offsetParent:null}function Nf(e){const t=an(e);let r=Xp(e);for(;r&&GS(r)&&getComputedStyle(r).position==="static";)r=Xp(r);return r&&(Kr(r)==="html"||Kr(r)==="body"&&getComputedStyle(r).position==="static"&&!Gp(r))?t:r||function(n){let i=Iv(n);for(hd(i)&&(i=i.host);Ir(i)&&!["html","body"].includes(Kr(i));){if(Gp(i))return i;i=i.parentNode}return null}(e)||t}function Kp(e){if(Ir(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=Yr(e);return{width:t.width,height:t.height}}function bv(e){const t=Iv(e);return["html","body","#document"].includes(Kr(t))?e.ownerDocument.body:Ir(t)&&uu(t)?t:bv(t)}function Fl(e,t){var r;t===void 0&&(t=[]);const n=bv(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=an(n),a=i?[o].concat(o.visualViewport||[],uu(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(Fl(a))}function Yp(e,t,r){return t==="viewport"?Al(function(n,i){const o=an(n),a=An(n),s=o.visualViewport;let l=a.clientWidth,u=a.clientHeight,c=0,f=0;if(s){l=s.width,u=s.height;const d=Dv();(d||!d&&i==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:l,height:u,x:c,y:f}}(e,r)):kn(t)?function(n,i){const o=Yr(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):Al(function(n){var i;const o=An(n),a=cu(n),s=(i=n.ownerDocument)==null?void 0:i.body,l=fa(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=fa(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let c=-a.scrollLeft+Pv(n);const f=-a.scrollTop;return qa(s||o).direction==="rtl"&&(c+=fa(o.clientWidth,s?s.clientWidth:0)-l),{width:l,height:u,x:c,y:f}}(An(e)))}function XS(e){const t=Fl(e),r=["absolute","fixed"].includes(qa(e).position)&&Ir(e)?Nf(e):e;return kn(r)?t.filter(n=>kn(n)&&function(i,o){const a=o.getRootNode==null?void 0:o.getRootNode();if(i.contains(o))return!0;if(a&&hd(a)){let s=o;do{if(s&&i===s)return!0;s=s.parentNode||s.host}while(s)}return!1}(n,r)&&Kr(n)!=="body"):[]}const KS={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?XS(t):[].concat(r),n],a=o[0],s=o.reduce((l,u)=>{const c=Yp(t,u,i);return l.top=fa(c.top,l.top),l.right=jp(c.right,l.right),l.bottom=jp(c.bottom,l.bottom),l.left=fa(c.left,l.left),l},Yp(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=An(r);if(r===o)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((i||!i&&n!=="fixed")&&((Kr(r)!=="body"||uu(o))&&(a=cu(r)),Ir(r))){const l=Yr(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:kn,getDimensions:Kp,getOffsetParent:Nf,getDocumentElement:An,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:jS(t,Nf(r),n),floating:{...Kp(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>qa(e).direction==="rtl"};function YS(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?[...kn(e)?Fl(e):[],...Fl(t)]:[];c.forEach(m=>{l&&m.addEventListener("scroll",r,{passive:!0}),u&&m.addEventListener("resize",r)});let f,d=null;if(a){let m=!0;d=new ResizeObserver(()=>{m||r(),m=!1}),kn(e)&&!s&&d.observe(e),d.observe(t)}let h=s?Yr(e):null;return s&&function m(){const p=Yr(e);!h||p.x===h.x&&p.y===h.y&&p.width===h.width&&p.height===h.height||r(),h=p,f=requestAnimationFrame(m)}(),r(),()=>{var m;c.forEach(p=>{l&&p.removeEventListener("scroll",r),u&&p.removeEventListener("resize",r)}),(m=d)==null||m.disconnect(),d=null,s&&cancelAnimationFrame(f)}}const qS=(e,t,r)=>kS(e,t,{platform:KS,...r});var Mf=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Lf(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(!Lf(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)&&!Lf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function QS(e){const t=v.useRef(e);return Mf(()=>{t.current=e}),t}function ZS(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:i}=e===void 0?{}:e;const o=v.useRef(null),a=v.useRef(null),s=QS(i),l=v.useRef(null),[u,c]=v.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[f,d]=v.useState(t);Lf(f==null?void 0:f.map(y=>{let{options:_}=y;return _}),t==null?void 0:t.map(y=>{let{options:_}=y;return _}))||d(t);const h=v.useCallback(()=>{!o.current||!a.current||qS(o.current,a.current,{middleware:f,placement:r,strategy:n}).then(y=>{m.current&&Jr.flushSync(()=>{c(y)})})},[f,r,n]);Mf(()=>{m.current&&h()},[h]);const m=v.useRef(!1);Mf(()=>(m.current=!0,()=>{m.current=!1}),[]);const p=v.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,h);l.current=y}else h()},[h,s]),g=v.useCallback(y=>{o.current=y,p()},[p]),x=v.useCallback(y=>{a.current=y,p()},[p]),w=v.useMemo(()=>({reference:o,floating:a}),[]);return v.useMemo(()=>({...u,update:h,refs:w,reference:g,floating:x}),[u,h,w,g,x])}const JS=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?Hp({element:t.current,padding:r}).fn(i):{}:t?Hp({element:t,padding:r}).fn(i):{}}}};function eT(e){const[t,r]=v.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 kv="Popper",[pd,fu]=on(kv),[tT,$v]=pd(kv),rT=e=>{const{__scopePopper:t,children:r}=e,[n,i]=v.useState(null);return v.createElement(tT,{scope:t,anchor:n,onAnchorChange:i},r)},nT="PopperAnchor",iT=v.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,o=$v(nT,r),a=v.useRef(null),s=He(t,a);return v.useEffect(()=>{o.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:v.createElement(Ie.div,de({},i,{ref:s}))}),Dl="PopperContent",[oT,Mk]=pd(Dl),[aT,sT]=pd(Dl,{hasParent:!1,positionUpdateFns:new Set}),lT=v.forwardRef((e,t)=>{var r,n,i,o,a,s,l,u;const{__scopePopper:c,side:f="bottom",sideOffset:d=0,align:h="center",alignOffset:m=0,arrowPadding:p=0,collisionBoundary:g=[],collisionPadding:x=0,sticky:w="partial",hideWhenDetached:y=!1,avoidCollisions:_=!0,onPlaced:k,...N}=e,S=$v(Dl,c),[A,R]=v.useState(null),L=He(t,Mr=>R(Mr)),[V,U]=v.useState(null),W=eT(V),Y=(r=W==null?void 0:W.width)!==null&&r!==void 0?r:0,re=(n=W==null?void 0:W.height)!==null&&n!==void 0?n:0,ye=f+(h!=="center"?"-"+h:""),ge=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},Se=Array.isArray(g)?g:[g],ie=Se.length>0,we={padding:ge,boundary:Se.filter(cT),altBoundary:ie},{reference:Q,floating:F,strategy:M,x:b,y:T,placement:B,middlewareData:H,update:q}=ZS({strategy:"fixed",placement:ye,whileElementsMounted:YS,middleware:[fT(),HS({mainAxis:d+re,alignmentAxis:m}),_?VS({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?WS():void 0,...we}):void 0,V?JS({element:V,padding:p}):void 0,_?BS({...we}):void 0,zS({...we,apply:({elements:Mr,availableWidth:Ro,availableHeight:er})=>{Mr.floating.style.setProperty("--radix-popper-available-width",`${Ro}px`),Mr.floating.style.setProperty("--radix-popper-available-height",`${er}px`)}}),dT({arrowWidth:Y,arrowHeight:re}),y?US({strategy:"referenceHidden"}):void 0].filter(uT)});xt(()=>{Q(S.anchor)},[Q,S.anchor]);const ee=b!==null&&T!==null,[K,ve]=Nv(B),pe=Dt(k);xt(()=>{ee&&(pe==null||pe())},[ee,pe]);const De=(i=H.arrow)===null||i===void 0?void 0:i.x,_e=(o=H.arrow)===null||o===void 0?void 0:o.y,je=((a=H.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[Re,ce]=v.useState();xt(()=>{A&&ce(window.getComputedStyle(A).zIndex)},[A]);const{hasParent:Mt,positionUpdateFns:_t}=sT(Dl,c),jt=!Mt;v.useLayoutEffect(()=>{if(!jt)return _t.add(q),()=>{_t.delete(q)}},[jt,_t,q]),xt(()=>{jt&&ee&&Array.from(_t).reverse().forEach(Mr=>requestAnimationFrame(Mr))},[jt,ee,_t]);const Nr={"data-side":K,"data-align":ve,...N,ref:L,style:{...N.style,animation:ee?void 0:"none",opacity:(s=H.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0}};return v.createElement("div",{ref:F,"data-radix-popper-content-wrapper":"",style:{position:M,left:0,top:0,transform:ee?`translate3d(${Math.round(b)}px, ${Math.round(T)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:Re,["--radix-popper-transform-origin"]:[(l=H.transformOrigin)===null||l===void 0?void 0:l.x,(u=H.transformOrigin)===null||u===void 0?void 0:u.y].join(" ")},dir:e.dir},v.createElement(oT,{scope:c,placedSide:K,onArrowChange:U,arrowX:De,arrowY:_e,shouldHideArrow:je},jt?v.createElement(aT,{scope:c,hasParent:!0,positionUpdateFns:_t},v.createElement(Ie.div,Nr)):v.createElement(Ie.div,Nr)))});function uT(e){return e!==void 0}function cT(e){return e!==null}const fT=()=>({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`),{}}}),dT=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,d=f?0:e.arrowWidth,h=f?0:e.arrowHeight,[m,p]=Nv(s),g={start:"0%",center:"50%",end:"100%"}[p],x=((n=(i=u.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+d/2,w=((o=(a=u.arrow)===null||a===void 0?void 0:a.y)!==null&&o!==void 0?o:0)+h/2;let y="",_="";return m==="bottom"?(y=f?g:`${x}px`,_=`${-h}px`):m==="top"?(y=f?g:`${x}px`,_=`${l.floating.height+h}px`):m==="right"?(y=`${-h}px`,_=f?g:`${w}px`):m==="left"&&(y=`${l.floating.width+h}px`,_=f?g:`${w}px`),{data:{x:y,y:_}}}});function Nv(e){const[t,r="center"]=e.split("-");return[t,r]}const Mv=rT,Lv=iT,Bv=lT,du=v.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?fv.createPortal(v.createElement(Ie.div,de({},i,{ref:t})),n):null});function lo({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,i]=hT({defaultProp:t,onChange:r}),o=e!==void 0,a=o?e:n,s=Dt(r),l=v.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 hT({defaultProp:e,onChange:t}){const r=v.useState(e),[n]=r,i=v.useRef(n),o=Dt(t);return v.useEffect(()=>{i.current!==n&&(o(n),i.current=n)},[n,i,o]),r}function pT(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const gd=v.forwardRef((e,t)=>v.createElement(Ie.span,de({},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 gT=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ai=new WeakMap,Es=new WeakMap,_s={},wc=0,Uv=function(e){return e&&(e.host||Uv(e.parentNode))},mT=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Uv(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})},vT=function(e,t,r,n){var i=mT(t,Array.isArray(e)?e:[e]);_s[r]||(_s[r]=new WeakMap);var o=_s[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(d){if(s.has(d))c(d);else{var h=d.getAttribute(n),m=h!==null&&h!=="false",p=(Ai.get(d)||0)+1,g=(o.get(d)||0)+1;Ai.set(d,p),o.set(d,g),a.push(d),p===1&&m&&Es.set(d,!0),g===1&&d.setAttribute(r,"true"),m||d.setAttribute(n,"true")}})};return c(t),s.clear(),wc++,function(){a.forEach(function(f){var d=Ai.get(f)-1,h=o.get(f)-1;Ai.set(f,d),o.set(f,h),d||(Es.has(f)||f.removeAttribute(n),Es.delete(f)),h||f.removeAttribute(r)}),wc--,wc||(Ai=new WeakMap,Ai=new WeakMap,Es=new WeakMap,_s={})}},md=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||gT(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),vT(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 Hv(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 xT(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 Zs="right-scroll-bar-position",Js="width-before-scroll-bar",wT="with-scroll-bars-hidden",yT="--removed-body-scroll-bar-size";function ET(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function _T(e,t){var r=v.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 _T(t||null,function(r){return e.forEach(function(n){return ET(n,r)})})}function TT(e){return e}function CT(e,t){t===void 0&&(t=TT);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 AT(e){e===void 0&&(e={});var t=CT(null);return t.options=Ar({async:!0,ssr:!1},e),t}var Vv=function(e){var t=e.sideCar,r=Hv(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 v.createElement(n,Ar({},r))};Vv.isSideCarExport=!0;function RT(e,t){return e.useMedium(t),Vv}var Wv=AT(),yc=function(){},hu=v.forwardRef(function(e,t){var r=v.useRef(null),n=v.useState({onScrollCapture:yc,onWheelCapture:yc,onTouchMoveCapture:yc}),i=n[0],o=n[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noIsolation,m=e.inert,p=e.allowPinchZoom,g=e.as,x=g===void 0?"div":g,w=Hv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),y=d,_=ST([r,t]),k=Ar(Ar({},w),i);return v.createElement(v.Fragment,null,c&&v.createElement(y,{sideCar:Wv,removeScrollBar:u,shards:f,noIsolation:h,inert:m,setCallbacks:o,allowPinchZoom:!!p,lockRef:r}),a?v.cloneElement(v.Children.only(s),Ar(Ar({},k),{ref:_})):v.createElement(x,Ar({},k,{className:l,ref:_}),s))});hu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};hu.classNames={fullWidth:Js,zeroRight:Zs};var qp,OT=function(){if(qp)return qp;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function FT(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=OT();return t&&e.setAttribute("nonce",t),e}function DT(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function PT(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var IT=function(){var e=0,t=null;return{add:function(r){e==0&&(t=FT())&&(DT(t,r),PT(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bT=function(){var e=IT();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},zv=function(){var e=bT(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},kT={left:0,top:0,right:0,gap:0},Ec=function(e){return parseInt(e||"",10)||0},$T=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[Ec(r),Ec(n),Ec(i)]},NT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return kT;var t=$T(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])}},MT=zv(),LT=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(wT,` {
overflow: hidden `).concat(n,`;
padding-right: `).concat(s,"px ").concat(n,`;
}
body {
overflow: hidden `).concat(n,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
padding-left: `.concat(i,`px;
padding-top: `).concat(o,`px;
padding-right: `).concat(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(s,"px ").concat(n,`;
`),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),`
}
.`).concat(Zs,` {
right: `).concat(s,"px ").concat(n,`;
}
.`).concat(Js,` {
margin-right: `).concat(s,"px ").concat(n,`;
}
.`).concat(Zs," .").concat(Zs,` {
right: 0 `).concat(n,`;
}
.`).concat(Js," .").concat(Js,` {
margin-right: 0 `).concat(n,`;
}
body {
`).concat(yT,": ").concat(s,`px;
}
`)},BT=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n,o=v.useMemo(function(){return NT(i)},[i]);return v.createElement(MT,{styles:LT(o,!t,i,r?"":"!important")})},Bf=!1;if(typeof window<"u")try{var Ss=Object.defineProperty({},"passive",{get:function(){return Bf=!0,!0}});window.addEventListener("test",Ss,Ss),window.removeEventListener("test",Ss,Ss)}catch{Bf=!1}var Ri=Bf?{passive:!1}:!1,UT=function(e){return e.tagName==="TEXTAREA"},Gv=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!UT(e)&&r[t]==="visible")},HT=function(e){return Gv(e,"overflowY")},VT=function(e){return Gv(e,"overflowX")},Qp=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=jv(e,r);if(n){var i=Xv(e,r),o=i[1],a=i[2];if(o>a)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},WT=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},zT=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},jv=function(e,t){return e==="v"?HT(t):VT(t)},Xv=function(e,t){return e==="v"?WT(t):zT(t)},GT=function(e,t){return e==="h"&&t==="rtl"?-1:1},jT=function(e,t,r,n,i){var o=GT(e,window.getComputedStyle(t).direction),a=o*n,s=r.target,l=t.contains(s),u=!1,c=a>0,f=0,d=0;do{var h=Xv(e,s),m=h[0],p=h[1],g=h[2],x=p-g-o*m;(m||x)&&jv(e,s)&&(f+=x,d+=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&&d===0||!i&&-a>d))&&(u=!0),u},Ts=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Zp=function(e){return[e.deltaX,e.deltaY]},Jp=function(e){return e&&"current"in e?e.current:e},XT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},KT=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},YT=0,Oi=[];function qT(e){var t=v.useRef([]),r=v.useRef([0,0]),n=v.useRef(),i=v.useState(YT++)[0],o=v.useState(function(){return zv()})[0],a=v.useRef(e);v.useEffect(function(){a.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=xT([e.lockRef.current],(e.shards||[]).map(Jp),!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=v.useCallback(function(p,g){if("touches"in p&&p.touches.length===2)return!a.current.allowPinchZoom;var x=Ts(p),w=r.current,y="deltaX"in p?p.deltaX:w[0]-x[0],_="deltaY"in p?p.deltaY:w[1]-x[1],k,N=p.target,S=Math.abs(y)>Math.abs(_)?"h":"v";if("touches"in p&&S==="h"&&N.type==="range")return!1;var A=Qp(S,N);if(!A)return!0;if(A?k=S:(k=S==="v"?"h":"v",A=Qp(S,N)),!A)return!1;if(!n.current&&"changedTouches"in p&&(y||_)&&(n.current=k),!k)return!0;var R=n.current||k;return jT(R,g,p,R==="h"?y:_,!0)},[]),l=v.useCallback(function(p){var g=p;if(!(!Oi.length||Oi[Oi.length-1]!==o)){var x="deltaY"in g?Zp(g):Ts(g),w=t.current.filter(function(k){return k.name===g.type&&k.target===g.target&&XT(k.delta,x)})[0];if(w&&w.should){g.cancelable&&g.preventDefault();return}if(!w){var y=(a.current.shards||[]).map(Jp).filter(Boolean).filter(function(k){return k.contains(g.target)}),_=y.length>0?s(g,y[0]):!a.current.noIsolation;_&&g.cancelable&&g.preventDefault()}}},[]),u=v.useCallback(function(p,g,x,w){var y={name:p,delta:g,target:x,should:w};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(_){return _!==y})},1)},[]),c=v.useCallback(function(p){r.current=Ts(p),n.current=void 0},[]),f=v.useCallback(function(p){u(p.type,Zp(p),p.target,s(p,e.lockRef.current))},[]),d=v.useCallback(function(p){u(p.type,Ts(p),p.target,s(p,e.lockRef.current))},[]);v.useEffect(function(){return Oi.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,Ri),document.addEventListener("touchmove",l,Ri),document.addEventListener("touchstart",c,Ri),function(){Oi=Oi.filter(function(p){return p!==o}),document.removeEventListener("wheel",l,Ri),document.removeEventListener("touchmove",l,Ri),document.removeEventListener("touchstart",c,Ri)}},[]);var h=e.removeScrollBar,m=e.inert;return v.createElement(v.Fragment,null,m?v.createElement(o,{styles:KT(i)}):null,h?v.createElement(BT,{gapMode:"margin"}):null)}const QT=RT(Wv,qT);var Kv=v.forwardRef(function(e,t){return v.createElement(hu,Ar({},e,{ref:t,sideCar:QT}))});Kv.classNames=hu.classNames;const vd=Kv,ZT=[" ","Enter","ArrowUp","ArrowDown"],JT=[" ","Enter"],pu="Select",[gu,mu,eC]=su(pu),[Eo,Lk]=on(pu,[eC,fu]),xd=fu(),[tC,pi]=Eo(pu),[rC,nC]=Eo(pu),iC=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:d,required:h}=e,m=xd(t),[p,g]=v.useState(null),[x,w]=v.useState(null),[y,_]=v.useState(!1),k=ld(u),[N=!1,S]=lo({prop:n,defaultProp:i,onChange:o}),[A,R]=lo({prop:a,defaultProp:s,onChange:l}),L=v.useRef(null),V=p?!!p.closest("form"):!0,[U,W]=v.useState(new Set),Y=Array.from(U).map(re=>re.props.value).join(";");return v.createElement(Mv,m,v.createElement(tC,{required:h,scope:t,trigger:p,onTriggerChange:g,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:y,onValueNodeHasChildrenChange:_,contentId:Xr(),value:A,onValueChange:R,open:N,onOpenChange:S,dir:k,triggerPointerDownPosRef:L,disabled:d},v.createElement(gu.Provider,{scope:t},v.createElement(rC,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(re=>{W(ye=>new Set(ye).add(re))},[]),onNativeOptionRemove:v.useCallback(re=>{W(ye=>{const ge=new Set(ye);return ge.delete(re),ge})},[])},r)),V?v.createElement(Zv,{key:Y,"aria-hidden":!0,required:h,tabIndex:-1,name:c,autoComplete:f,value:A,onChange:re=>R(re.target.value),disabled:d},A===void 0?v.createElement("option",{value:""}):null,Array.from(U)):null))},oC="SelectTrigger",aC=v.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,o=xd(r),a=pi(oC,r),s=a.disabled||n,l=He(t,a.onTriggerChange),u=mu(r),[c,f,d]=Jv(m=>{const p=u().filter(w=>!w.disabled),g=p.find(w=>w.value===a.value),x=ex(p,m,g);x!==void 0&&a.onValueChange(x.value)}),h=()=>{s||(a.onOpenChange(!0),d())};return v.createElement(Lv,de({asChild:!0},o),v.createElement(Ie.button,de({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:Ee(i.onClick,m=>{m.currentTarget.focus()}),onPointerDown:Ee(i.onPointerDown,m=>{const p=m.target;p.hasPointerCapture(m.pointerId)&&p.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&(h(),a.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)},m.preventDefault())}),onKeyDown:Ee(i.onKeyDown,m=>{const p=c.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&f(m.key),!(p&&m.key===" ")&&ZT.includes(m.key)&&(h(),m.preventDefault())})})))}),sC="SelectValue",lC=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:o,placeholder:a,...s}=e,l=pi(sC,r),{onValueNodeHasChildrenChange:u}=l,c=o!==void 0,f=He(t,l.onValueNodeChange);return xt(()=>{u(c)},[u,c]),v.createElement(Ie.span,de({},s,{ref:f,style:{pointerEvents:"none"}}),l.value===void 0&&a!==void 0?a:o)}),uC=v.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return v.createElement(Ie.span,de({"aria-hidden":!0},i,{ref:t}),n||"▼")}),cC=e=>v.createElement(du,de({asChild:!0},e)),uo="SelectContent",fC=v.forwardRef((e,t)=>{const r=pi(uo,e.__scopeSelect),[n,i]=v.useState();if(xt(()=>{i(new DocumentFragment)},[]),!r.open){const o=n;return o?Jr.createPortal(v.createElement(Yv,{scope:e.__scopeSelect},v.createElement(gu.Slot,{scope:e.__scopeSelect},v.createElement("div",null,e.children))),o):null}return v.createElement(dC,de({},e,{ref:t}))}),Ur=10,[Yv,gi]=Eo(uo),dC=v.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:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:g,...x}=e,w=pi(uo,r),[y,_]=v.useState(null),[k,N]=v.useState(null),S=He(t,H=>_(H)),[A,R]=v.useState(null),[L,V]=v.useState(null),U=mu(r),[W,Y]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(y)return md(y)},[y]),cd();const ye=v.useCallback(H=>{const[q,...ee]=U().map(pe=>pe.ref.current),[K]=ee.slice(-1),ve=document.activeElement;for(const pe of H)if(pe===ve||(pe==null||pe.scrollIntoView({block:"nearest"}),pe===q&&k&&(k.scrollTop=0),pe===K&&k&&(k.scrollTop=k.scrollHeight),pe==null||pe.focus(),document.activeElement!==ve))return},[U,k]),ge=v.useCallback(()=>ye([A,y]),[ye,A,y]);v.useEffect(()=>{W&&ge()},[W,ge]);const{onOpenChange:Se,triggerPointerDownPosRef:ie}=w;v.useEffect(()=>{if(y){let H={x:0,y:0};const q=K=>{var ve,pe,De,_e;H={x:Math.abs(Math.round(K.pageX)-((ve=(pe=ie.current)===null||pe===void 0?void 0:pe.x)!==null&&ve!==void 0?ve:0)),y:Math.abs(Math.round(K.pageY)-((De=(_e=ie.current)===null||_e===void 0?void 0:_e.y)!==null&&De!==void 0?De:0))}},ee=K=>{H.x<=10&&H.y<=10?K.preventDefault():y.contains(K.target)||Se(!1),document.removeEventListener("pointermove",q),ie.current=null};return ie.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",ee,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",ee,{capture:!0})}}},[y,Se,ie]),v.useEffect(()=>{const H=()=>Se(!1);return window.addEventListener("blur",H),window.addEventListener("resize",H),()=>{window.removeEventListener("blur",H),window.removeEventListener("resize",H)}},[Se]);const[we,Q]=Jv(H=>{const q=U().filter(ve=>!ve.disabled),ee=q.find(ve=>ve.ref.current===document.activeElement),K=ex(q,H,ee);K&&setTimeout(()=>K.ref.current.focus())}),F=v.useCallback((H,q,ee)=>{const K=!re.current&&!ee;(w.value!==void 0&&w.value===q||K)&&(R(H),K&&(re.current=!0))},[w.value]),M=v.useCallback(()=>y==null?void 0:y.focus(),[y]),b=v.useCallback((H,q,ee)=>{const K=!re.current&&!ee;(w.value!==void 0&&w.value===q||K)&&V(H)},[w.value]),T=n==="popper"?eg:hC,B=T===eg?{side:s,sideOffset:l,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:m,hideWhenDetached:p,avoidCollisions:g}:{};return v.createElement(Yv,{scope:r,content:y,viewport:k,onViewportChange:N,itemRefCallback:F,selectedItem:A,onItemLeave:M,itemTextRefCallback:b,focusSelectedItem:ge,selectedItemText:L,position:n,isPositioned:W,searchRef:we},v.createElement(vd,{as:ii,allowPinchZoom:!0},v.createElement(fd,{asChild:!0,trapped:w.open,onMountAutoFocus:H=>{H.preventDefault()},onUnmountAutoFocus:Ee(i,H=>{var q;(q=w.trigger)===null||q===void 0||q.focus({preventScroll:!0}),H.preventDefault()})},v.createElement(lu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:H=>H.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},v.createElement(T,de({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:H=>H.preventDefault()},x,B,{onPlaced:()=>Y(!0),ref:S,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Ee(x.onKeyDown,H=>{const q=H.ctrlKey||H.altKey||H.metaKey;if(H.key==="Tab"&&H.preventDefault(),!q&&H.key.length===1&&Q(H.key),["ArrowUp","ArrowDown","Home","End"].includes(H.key)){let K=U().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(H.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(H.key)){const ve=H.target,pe=K.indexOf(ve);K=K.slice(pe+1)}setTimeout(()=>ye(K)),H.preventDefault()}})}))))))}),hC=v.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,o=pi(uo,r),a=gi(uo,r),[s,l]=v.useState(null),[u,c]=v.useState(null),f=He(t,S=>c(S)),d=mu(r),h=v.useRef(!1),m=v.useRef(!0),{viewport:p,selectedItem:g,selectedItemText:x,focusSelectedItem:w}=a,y=v.useCallback(()=>{if(o.trigger&&o.valueNode&&s&&u&&p&&g&&x){const S=o.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),R=o.valueNode.getBoundingClientRect(),L=x.getBoundingClientRect();if(o.dir!=="rtl"){const ve=L.left-A.left,pe=R.left-ve,De=S.left-pe,_e=S.width+De,je=Math.max(_e,A.width),Re=window.innerWidth-Ur,ce=Ip(pe,[Ur,Re-je]);s.style.minWidth=_e+"px",s.style.left=ce+"px"}else{const ve=A.right-L.right,pe=window.innerWidth-R.right-ve,De=window.innerWidth-S.right-pe,_e=S.width+De,je=Math.max(_e,A.width),Re=window.innerWidth-Ur,ce=Ip(pe,[Ur,Re-je]);s.style.minWidth=_e+"px",s.style.right=ce+"px"}const V=d(),U=window.innerHeight-Ur*2,W=p.scrollHeight,Y=window.getComputedStyle(u),re=parseInt(Y.borderTopWidth,10),ye=parseInt(Y.paddingTop,10),ge=parseInt(Y.borderBottomWidth,10),Se=parseInt(Y.paddingBottom,10),ie=re+ye+W+Se+ge,we=Math.min(g.offsetHeight*5,ie),Q=window.getComputedStyle(p),F=parseInt(Q.paddingTop,10),M=parseInt(Q.paddingBottom,10),b=S.top+S.height/2-Ur,T=U-b,B=g.offsetHeight/2,H=g.offsetTop+B,q=re+ye+H,ee=ie-q;if(q<=b){const ve=g===V[V.length-1].ref.current;s.style.bottom="0px";const pe=u.clientHeight-p.offsetTop-p.offsetHeight,De=Math.max(T,B+(ve?M:0)+pe+ge),_e=q+De;s.style.height=_e+"px"}else{const ve=g===V[0].ref.current;s.style.top="0px";const De=Math.max(b,re+p.offsetTop+(ve?F:0)+B)+ee;s.style.height=De+"px",p.scrollTop=q-b+p.offsetTop}s.style.margin=`${Ur}px 0`,s.style.minHeight=we+"px",s.style.maxHeight=U+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,o.trigger,o.valueNode,s,u,p,g,x,o.dir,n]);xt(()=>y(),[y]);const[_,k]=v.useState();xt(()=>{u&&k(window.getComputedStyle(u).zIndex)},[u]);const N=v.useCallback(S=>{S&&m.current===!0&&(y(),w==null||w(),m.current=!1)},[y,w]);return v.createElement(pC,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:N},v.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_}},v.createElement(Ie.div,de({},i,{ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),eg=v.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Ur,...o}=e,a=xd(r);return v.createElement(Bv,de({},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)"}}))}),[pC,wd]=Eo(uo,{}),tg="SelectViewport",gC=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=gi(tg,r),o=wd(tg,r),a=He(t,i.onViewportChange),s=v.useRef(0);return v.createElement(v.Fragment,null,v.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}"}}),v.createElement(gu.Slot,{scope:r},v.createElement(Ie.div,de({"data-radix-select-viewport":"",role:"presentation"},n,{ref:a,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Ee(n.onScroll,l=>{const u=l.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&c){const d=Math.abs(s.current-u.scrollTop);if(d>0){const h=window.innerHeight-Ur*2,m=parseFloat(c.style.minHeight),p=parseFloat(c.style.height),g=Math.max(m,p);if(g<h){const x=g+d,w=Math.min(h,x),y=x-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})}))))}),mC="SelectGroup",[vC,xC]=Eo(mC),wC=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Xr();return v.createElement(vC,{scope:r,id:i},v.createElement(Ie.div,de({role:"group","aria-labelledby":i},n,{ref:t})))}),yC="SelectLabel",EC=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=xC(yC,r);return v.createElement(Ie.div,de({id:i.id},n,{ref:t}))}),Uf="SelectItem",[_C,qv]=Eo(Uf),SC=v.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:o,...a}=e,s=pi(Uf,r),l=gi(Uf,r),u=s.value===n,[c,f]=v.useState(o??""),[d,h]=v.useState(!1),m=He(t,x=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,x,n,i)}),p=Xr(),g=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};return v.createElement(_C,{scope:r,value:n,disabled:i,textId:p,isSelected:u,onItemTextChange:v.useCallback(x=>{f(w=>{var y;return w||((y=x==null?void 0:x.textContent)!==null&&y!==void 0?y:"").trim()})},[])},v.createElement(gu.ItemSlot,{scope:r,value:n,disabled:i,textValue:c},v.createElement(Ie.div,de({role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},a,{ref:m,onFocus:Ee(a.onFocus,()=>h(!0)),onBlur:Ee(a.onBlur,()=>h(!1)),onPointerUp:Ee(a.onPointerUp,g),onPointerMove:Ee(a.onPointerMove,x=>{if(i){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ee(a.onPointerLeave,x=>{if(x.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:Ee(a.onKeyDown,x=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&x.key===" "||(JT.includes(x.key)&&g(),x.key===" "&&x.preventDefault())})}))))}),Cs="SelectItemText",TC=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...o}=e,a=pi(Cs,r),s=gi(Cs,r),l=qv(Cs,r),u=nC(Cs,r),[c,f]=v.useState(null),d=He(t,x=>f(x),l.onItemTextChange,x=>{var w;return(w=s.itemTextRefCallback)===null||w===void 0?void 0:w.call(s,x,l.value,l.disabled)}),h=c==null?void 0:c.textContent,m=v.useMemo(()=>v.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},h),[l.disabled,l.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:g}=u;return xt(()=>(p(m),()=>g(m)),[p,g,m]),v.createElement(v.Fragment,null,v.createElement(Ie.span,de({id:l.textId},o,{ref:d})),l.isSelected&&a.valueNode&&!a.valueNodeHasChildren?Jr.createPortal(o.children,a.valueNode):null)}),CC="SelectItemIndicator",AC=v.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return qv(CC,r).isSelected?v.createElement(Ie.span,de({"aria-hidden":!0},n,{ref:t})):null}),rg="SelectScrollUpButton",RC=v.forwardRef((e,t)=>{const r=gi(rg,e.__scopeSelect),n=wd(rg,e.__scopeSelect),[i,o]=v.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?v.createElement(Qv,de({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}})):null}),ng="SelectScrollDownButton",OC=v.forwardRef((e,t)=>{const r=gi(ng,e.__scopeSelect),n=wd(ng,e.__scopeSelect),[i,o]=v.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?v.createElement(Qv,de({},e,{ref:a,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}})):null}),Qv=v.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,o=gi("SelectScrollButton",r),a=v.useRef(null),s=mu(r),l=v.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return v.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]),v.createElement(Ie.div,de({"aria-hidden":!0},i,{ref:t,style:{flexShrink:0,...i.style},onPointerMove:Ee(i.onPointerMove,()=>{var u;(u=o.onItemLeave)===null||u===void 0||u.call(o),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:Ee(i.onPointerLeave,()=>{l()})}))}),Zv=v.forwardRef((e,t)=>{const{value:r,...n}=e,i=v.useRef(null),o=He(t,i),a=pT(r);return v.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]),v.createElement(gd,{asChild:!0},v.createElement("select",de({},n,{ref:o,defaultValue:r})))});Zv.displayName="BubbleSelect";function Jv(e){const t=Dt(e),r=v.useRef(""),n=v.useRef(0),i=v.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=v.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,o]}function ex(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=FC(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 FC(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const DC=iC,PC=aC,IC=lC,bC=uC,kC=cC,$C=fC,NC=gC,_c=wC,ig=EC,MC=SC,LC=TC,BC=AC,UC=RC,HC=OC;function yd(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 VC=["color"],WC=v.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=yd(e,VC);return v.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}),v.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"}))}),zC=["color"],Hf=v.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=yd(e,zC);return v.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}),v.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"}))}),GC=["color"],jC=v.forwardRef(function(e,t){var r=e.color,n=r===void 0?"currentColor":r,i=yd(e,GC);return v.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}),v.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"}))});const Vi=({value:e,onChange:t,label:r="Select",placeholder:n="Select a fruit…",groups:i,labelType:o="col"})=>{const a=i.length===1;return Te(DC,{value:e,onValueChange:t,children:[Te(_c,{className:bt("flex gap-1",{"flex-row items-center gap-2":o==="row","flex-col":o==="col"}),children:[Z(ig,{className:"whitespace-nowrap",children:r}),Te(PC,{className:"justify-between bg-white text-black dark:text-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(IC,{placeholder:n}),Z(bC,{children:Z(Hf,{})})]})]}),Z(kC,{children:Te($C,{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(UC,{className:"flex items-center justify-center h-[25px] cursor-default dark:text-white text-black",children:Z(jC,{})}),Z(NC,{className:"p-[5px]",children:a?Z(_c,{children:i[0].items.map(s=>Z(og,{value:s.value,disabled:s.disabled,children:s.label}))}):i.map((s,l)=>Te(_c,{children:[Z(ig,{className:"text-xs leading-[25px]",children:s.label}),s.items.map(u=>Z(og,{value:u.value,disabled:u.disabled,children:u.label},u.value))]},s.label))}),Z(HC,{className:"flex items-center justify-center h-[25px] cursor-default dark:text-white text-black",children:Z(Hf,{})})]})})]})},og=v.forwardRef(({children:e,className:t,...r},n)=>Te(MC,{className:bt("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(LC,{children:e}),Z(BC,{className:"absolute left-0 w-[25px] inline-flex items-center justify-center",children:Z(WC,{})})]}));/**
* match-sorter-utils
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/const tx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},XC=Object.keys(tx).join("|"),KC=new RegExp(XC,"g");function YC(e){return e.replace(KC,t=>tx[t])}/**
* @name match-sorter
* @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 qC(e,t,r){var n;if(r=r||{},r.threshold=(n=r.threshold)!=null?n:Ut.MATCHES,!r.accessors){const a=ag(e,t,r);return{rankedValue:e,rank:a,accessorIndex:-1,accessorThreshold:r.threshold,passed:a>=r.threshold}}const i=e4(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=ag(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 ag(e,t,r){return e=sg(e,r),t=sg(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:QC(e).includes(t)?Ut.ACRONYM:ZC(e,t))}function QC(e){let t="";return e.split(" ").forEach(n=>{n.split("-").forEach(o=>{t+=o.substr(0,1)})}),t}function ZC(e,t){let r=0,n=0;function i(l,u,c){for(let f=c,d=u.length;f<d;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 sg(e,t){let{keepDiacritics:r}=t;return e=`${e}`,r||(e=YC(e)),e}function JC(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 e4(e,t){const r=[];for(let n=0,i=t.length;n<i;n++){const o=t[n],a=t4(o),s=JC(e,o);for(let l=0,u=s.length;l<u;l++)r.push({itemValue:s[l],attributes:a})}return r}const lg={maxRanking:1/0,minRanking:-1/0};function t4(e){return typeof e=="function"?lg:{...lg,...e}}var Vf={},r4={get exports(){return Vf},set exports(e){Vf=e}};(function(e){(function(t){var r=y(),n=_(),i=k(),o=N(),a={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:l,toPng:c,toJpeg:f,toBlob:d,toPixelData:u,impl:{fontFaces:i,images:o,util:r,inliner:n,options:{}}};e.exports=s;function l(S,A){return A=A||{},h(A),Promise.resolve(S).then(function(L){return p(L,A.filter,!0)}).then(g).then(x).then(R).then(function(L){return w(L,A.width||r.width(S),A.height||r.height(S))});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(V){L.style[V]=A.style[V]}),L}}function u(S,A){return m(S,A||{}).then(function(R){return R.getContext("2d").getImageData(0,0,r.width(S),r.height(S)).data})}function c(S,A){return m(S,A||{}).then(function(R){return R.toDataURL()})}function f(S,A){return A=A||{},m(S,A).then(function(R){return R.toDataURL("image/jpeg",A.quality||1)})}function d(S,A){return m(S,A||{}).then(r.canvasToBlob)}function h(S){typeof S.imagePlaceholder>"u"?s.impl.options.imagePlaceholder=a.imagePlaceholder:s.impl.options.imagePlaceholder=S.imagePlaceholder,typeof S.cacheBust>"u"?s.impl.options.cacheBust=a.cacheBust:s.impl.options.cacheBust=S.cacheBust}function m(S,A){return l(S,A).then(r.makeImage).then(r.delay(100)).then(function(L){var V=R(S);return V.getContext("2d").drawImage(L,0,0),V});function R(L){var V=document.createElement("canvas");if(V.width=A.width||r.width(L),V.height=A.height||r.height(L),A.bgcolor){var U=V.getContext("2d");U.fillStyle=A.bgcolor,U.fillRect(0,0,V.width,V.height)}return V}}function p(S,A,R){if(!R&&A&&!A(S))return Promise.resolve();return Promise.resolve(S).then(L).then(function(W){return V(S,W,A)}).then(function(W){return U(S,W)});function L(W){return W instanceof HTMLCanvasElement?r.makeImage(W.toDataURL()):W.cloneNode(!1)}function V(W,Y,re){var ye=W.childNodes;if(ye.length===0)return Promise.resolve(Y);return ge(Y,r.asArray(ye),re).then(function(){return Y});function ge(Se,ie,we){var Q=Promise.resolve();return ie.forEach(function(F){Q=Q.then(function(){return p(F,we)}).then(function(M){M&&Se.appendChild(M)})}),Q}}function U(W,Y){if(!(Y instanceof Element))return Y;return Promise.resolve().then(re).then(ye).then(ge).then(Se).then(function(){return Y});function re(){ie(window.getComputedStyle(W),Y.style);function ie(we,Q){we.cssText?Q.cssText=we.cssText:F(we,Q);function F(M,b){r.asArray(M).forEach(function(T){b.setProperty(T,M.getPropertyValue(T),M.getPropertyPriority(T))})}}}function ye(){[":before",":after"].forEach(function(we){ie(we)});function ie(we){var Q=window.getComputedStyle(W,we),F=Q.getPropertyValue("content");if(F===""||F==="none")return;var M=r.uid();Y.className=Y.className+" "+M;var b=document.createElement("style");b.appendChild(T(M,we,Q)),Y.appendChild(b);function T(B,H,q){var ee="."+B+":"+H,K=q.cssText?ve(q):pe(q);return document.createTextNode(ee+"{"+K+"}");function ve(De){var _e=De.getPropertyValue("content");return De.cssText+" content: "+_e+";"}function pe(De){return r.asArray(De).map(_e).join("; ")+";";function _e(je){return je+": "+De.getPropertyValue(je)+(De.getPropertyPriority(je)?" !important":"")}}}}}function ge(){W instanceof HTMLTextAreaElement&&(Y.innerHTML=W.value),W instanceof HTMLInputElement&&Y.setAttribute("value",W.value)}function Se(){Y instanceof SVGElement&&(Y.setAttribute("xmlns","http://www.w3.org/2000/svg"),Y instanceof SVGRectElement&&["width","height"].forEach(function(ie){var we=Y.getAttribute(ie);we&&Y.style.setProperty(ie,we)}))}}}function g(S){return i.resolveAll().then(function(A){var R=document.createElement("style");return S.appendChild(R),R.appendChild(document.createTextNode(A)),S})}function x(S){return o.inlineAll(S).then(function(){return S})}function w(S,A,R){return Promise.resolve(S).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:Se,parseExtension:A,mimeType:R,dataAsUrl:ge,isDataUrl:L,canvasToBlob:U,resolveUrl:W,getAndEncode:ye,uid:Y(),delay:ie,asArray:we,escapeXhtml:Q,makeImage:re,width:F,height:M};function S(){var T="application/font-woff",B="image/jpeg";return{woff:T,woff2:T,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:B,jpeg:B,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function A(T){var B=/\.([^\.\/]*?)$/g.exec(T);return B?B[1]:""}function R(T){var B=A(T).toLowerCase();return S()[B]||""}function L(T){return T.search(/^(data:)/)!==-1}function V(T){return new Promise(function(B){for(var H=window.atob(T.toDataURL().split(",")[1]),q=H.length,ee=new Uint8Array(q),K=0;K<q;K++)ee[K]=H.charCodeAt(K);B(new Blob([ee],{type:"image/png"}))})}function U(T){return T.toBlob?new Promise(function(B){T.toBlob(B)}):V(T)}function W(T,B){var H=document.implementation.createHTMLDocument(),q=H.createElement("base");H.head.appendChild(q);var ee=H.createElement("a");return H.body.appendChild(ee),q.href=B,ee.href=T,ee.href}function Y(){var T=0;return function(){return"u"+B()+T++;function B(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function re(T){return new Promise(function(B,H){var q=new Image;q.onload=function(){B(q)},q.onerror=H,q.src=T})}function ye(T){var B=3e4;return s.impl.options.cacheBust&&(T+=(/\?/.test(T)?"&":"?")+new Date().getTime()),new Promise(function(H){var q=new XMLHttpRequest;q.onreadystatechange=ve,q.ontimeout=pe,q.responseType="blob",q.timeout=B,q.open("GET",T,!0),q.send();var ee;if(s.impl.options.imagePlaceholder){var K=s.impl.options.imagePlaceholder.split(/,/);K&&K[1]&&(ee=K[1])}function ve(){if(q.readyState===4){if(q.status!==200){ee?H(ee):De("cannot fetch resource: "+T+", status: "+q.status);return}var _e=new FileReader;_e.onloadend=function(){var je=_e.result.split(/,/)[1];H(je)},_e.readAsDataURL(q.response)}}function pe(){ee?H(ee):De("timeout of "+B+"ms occured while fetching resource: "+T)}function De(_e){console.error(_e),H("")}})}function ge(T,B){return"data:"+B+";base64,"+T}function Se(T){return T.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function ie(T){return function(B){return new Promise(function(H){setTimeout(function(){H(B)},T)})}}function we(T){for(var B=[],H=T.length,q=0;q<H;q++)B.push(T[q]);return B}function Q(T){return T.replace(/#/g,"%23").replace(/\n/g,"%0A")}function F(T){var B=b(T,"border-left-width"),H=b(T,"border-right-width");return T.scrollWidth+B+H}function M(T){var B=b(T,"border-top-width"),H=b(T,"border-bottom-width");return T.scrollHeight+B+H}function b(T,B){var H=window.getComputedStyle(T).getPropertyValue(B);return parseFloat(H.replace("px",""))}}function _(){var S=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:V,shouldProcess:A,impl:{readUrls:R,inline:L}};function A(U){return U.search(S)!==-1}function R(U){for(var W=[],Y;(Y=S.exec(U))!==null;)W.push(Y[1]);return W.filter(function(re){return!r.isDataUrl(re)})}function L(U,W,Y,re){return Promise.resolve(W).then(function(ge){return Y?r.resolveUrl(ge,Y):ge}).then(re||r.getAndEncode).then(function(ge){return r.dataAsUrl(ge,r.mimeType(W))}).then(function(ge){return U.replace(ye(W),"$1"+ge+"$3")});function ye(ge){return new RegExp(`(url\\(['"]?)(`+r.escape(ge)+`)(['"]?\\))`,"g")}}function V(U,W,Y){if(re())return Promise.resolve(U);return Promise.resolve(U).then(R).then(function(ye){var ge=Promise.resolve(U);return ye.forEach(function(Se){ge=ge.then(function(ie){return L(ie,Se,W,Y)})}),ge});function re(){return!A(U)}}}function k(){return{resolveAll:S,impl:{readAll:A}};function S(){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(U){return U.map(V)});function R(U){return U.filter(function(W){return W.type===CSSRule.FONT_FACE_RULE}).filter(function(W){return n.shouldProcess(W.style.getPropertyValue("src"))})}function L(U){var W=[];return U.forEach(function(Y){try{r.asArray(Y.cssRules||[]).forEach(W.push.bind(W))}catch(re){console.log("Error while reading CSS rules from "+Y.href,re.toString())}}),W}function V(U){return{resolve:function(){var Y=(U.parentStyleSheet||{}).href;return n.inlineAll(U.cssText,Y)},src:function(){return U.style.getPropertyValue("src")}}}}}function N(){return{inlineAll:A,impl:{newImage:S}};function S(R){return{inline:L};function L(V){return r.isDataUrl(R.src)?Promise.resolve():Promise.resolve(R.src).then(V||r.getAndEncode).then(function(U){return r.dataAsUrl(U,r.mimeType(R.src))}).then(function(U){return new Promise(function(W,Y){R.onload=W,R.onerror=Y,R.src=U})})}}function A(R){if(!(R instanceof Element))return Promise.resolve(R);return L(R).then(function(){return R instanceof HTMLImageElement?S(R).inline():Promise.all(r.asArray(R.childNodes).map(function(V){return A(V)}))});function L(V){var U=V.style.getPropertyValue("background");return U?n.inlineAll(U).then(function(W){V.style.setProperty("background",W,V.style.getPropertyPriority("background"))}).then(function(){return V}):Promise.resolve(V)}}}})()})(r4);const n4=Vf;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Pl={};Pl.version="0.18.5";var rx=1252,i4=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],nx=function(e){i4.indexOf(e)!=-1&&(rx=e)};function o4(){nx(1252)}var $a=function(e){nx(e)};function a4(){$a(1200),o4()}function s4(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 As=function(t){return String.fromCharCode(t)},ug=function(t){return String.fromCharCode(t)},jn,mn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Na(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+=mn.charAt(o)+mn.charAt(a)+mn.charAt(s)+mn.charAt(l);return t}function tn(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=mn.indexOf(e.charAt(u++)),a=mn.indexOf(e.charAt(u++)),r=o<<2|a>>4,t+=String.fromCharCode(r),s=mn.indexOf(e.charAt(u++)),n=(a&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=mn.indexOf(e.charAt(u++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var $e=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),sn=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 oi(e){return $e?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function cg(e){return $e?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var wr=function(t){return $e?sn(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function vu(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 Qa(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 l4(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var mt=$e?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:sn(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 u4(e){for(var t=[],r=0,n=e.length+250,i=oi(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=oi(65535),n=65530)}return t.push(i.slice(0,r)),mt(t)}var da=/\u0000/g,Rs=/[\u0001-\u0006]/g;function eo(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 Ed(e,t){var r=""+e;return r.length>=t?r:Qe(" ",t-r.length)+r}function Il(e,t){var r=""+e;return r.length>=t?r:r+Qe(" ",t-r.length)}function c4(e,t){var r=""+Math.round(e);return r.length>=t?r:Qe("0",t-r.length)+r}function f4(e,t){var r=""+e;return r.length>=t?r:Qe("0",t-r.length)+r}var fg=Math.pow(2,32);function Fi(e,t){if(e>fg||e<-fg)return c4(e,t);var r=Math.round(e);return f4(r,t)}function bl(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 dg=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],Sc=[["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 d4(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 et={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"秒 "'},hg={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},h4={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 kl(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 d=Math.floor(n*s/c);return[d,n*s-d*c,c]}function Os(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=y4(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 ix=new Date(1899,11,31,0,0,0),p4=ix.getTime(),g4=new Date(1900,2,1,0,0,0);function ox(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=g4&&(r+=24*60*60*1e3),(r-(p4+(e.getTimezoneOffset()-ix.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function _d(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function m4(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function v4(e){var t=e<0?12:11,r=_d(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function x4(e){var t=_d(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function w4(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=v4(e):t===10?r=e.toFixed(10).substr(0,12):r=x4(e),_d(m4(r.toUpperCase()))}function Wf(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):w4(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return $n(14,ox(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function y4(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function E4(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 Sc[r.m-1][1];case 5:return Sc[r.m-1][0];default:return Sc[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,u=t.length;break;case 3:return dg[r.q][0];default:return dg[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 vn(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 ax=/%/g;function _4(e,t,r){var n=t.replace(ax,""),i=t.length-n.length;return qr(e,n,r*Math.pow(10,2*i))+Qe("%",i)}function S4(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return qr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function sx(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"-"+sx(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 lx=/# (\?+)( ?)\/( ?)(\d+)/;function T4(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):Ed(a,e[1].length)+e[2]+"/"+e[3]+Er(s,e[4].length))}function C4(e,t,r){return r+(t===0?"":""+t)+Qe(" ",e[1].length+2+e[4].length)}var ux=/^#*0*\.([0#]+)/,cx=/\).*[0#]/,fx=/\(###\) ###\\?-####/;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 pg(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function gg(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 A4(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function R4(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(cx)){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 S4(e,t,r);if(t.indexOf("%")!==-1)return _4(e,t,r);if(t.indexOf("E")!==-1)return sx(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+Fi(l,t.length);if(t.match(/^[#?]+$/))return i=Fi(r,0),i==="0"&&(i=""),i.length>t.length?i:Pt(t.substr(0,t.length-i.length))+i;if(o=t.match(lx))return T4(o,l,u);if(t.match(/^#+0+$/))return u+Fi(l,t.length-t.indexOf("0"));if(o=t.match(ux))return i=pg(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+pg(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+vn(Fi(l,0));if(o=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+rr(e,t,-r):vn(""+(Math.floor(r)+A4(r,o[1].length)))+"."+Er(gg(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=eo(rr(e,t.replace(/[\\-]/g,""),r)),a=0,eo(eo(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a<i.length?i.charAt(a++):m==="0"?"0":""}));if(t.match(fx))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=kl(l,Math.pow(10,a)-1,!1),i=""+u,c=qr("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=Il(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=kl(l,Math.pow(10,a)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Ed(s[1],a)+o[2]+"/"+o[3]+Il(s[2],a):Qe(" ",2*a+1+o[2].length+o[3].length));if(o=t.match(/^[#0?]+$/))return i=Fi(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,d=t.length-i.length-f;return Pt(t.substr(0,f)+i+t.substr(t.length-d))}if(o=t.match(/^00,000\.([#0]*0)$/))return a=gg(r,o[1].length),r<0?"-"+rr(e,t,-r):vn(R4(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 h=vn(Fi(l,0));return h!=="0"?u+h:"";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 O4(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return qr(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function F4(e,t,r){var n=t.replace(ax,""),i=t.length-n.length;return qr(e,n,r*Math.pow(10,2*i))+Qe("%",i)}function dx(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"-"+dx(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(cx)){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 O4(e,t,r);if(t.indexOf("%")!==-1)return F4(e,t,r);if(t.indexOf("E")!==-1)return dx(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(lx))return C4(o,l,u);if(t.match(/^#+0+$/))return u+Er(l,t.length-t.indexOf("0"));if(o=t.match(ux))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+vn(""+l);if(o=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Tr(e,t,-r):vn(""+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=eo(Tr(e,t.replace(/[\\-]/g,""),r)),a=0,eo(eo(t.replace(/\\/g,"")).replace(/[0#]/g,function(m){return a<i.length?i.charAt(a++):m==="0"?"0":""}));if(t.match(fx))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=kl(l,Math.pow(10,a)-1,!1),i=""+u,c=qr("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=Il(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=kl(l,Math.pow(10,a)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Ed(s[1],a)+o[2]+"/"+o[3]+Il(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,d=t.length-i.length-f;return Pt(t.substr(0,f)+i+t.substr(t.length-d))}if(o=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Tr(e,t,-r):vn(""+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 h=vn(""+l);return h!=="0"?u+h:"";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 qr(e,t,r){return(r|0)===r?Tr(e,t,r):rr(e,t,r)}function D4(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 hx=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function px(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":bl(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(hx))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 P4(e,t,r,n){for(var i=[],o="",a=0,s="",l="t",u,c,f,d="H";a<e.length;)switch(s=e.charAt(a)){case"G":if(!bl(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 h=e.charAt(++a),m=h==="("||h===")"?h:"t";i[i.length]={t:m,v:h},++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=Os(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=Os(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=d),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=Os(t,r)),e.substr(a,3).toUpperCase()==="A/P"?(u!=null&&(p.v=u.H>=12?"P":"A"),p.t="T",d="h",a+=3):e.substr(a,5).toUpperCase()==="AM/PM"?(u!=null&&(p.v=u.H>=12?"PM":"AM"),p.t="T",a+=5,d="h"):e.substr(a,5).toUpperCase()==="上午/下午"?(u!=null&&(p.v=u.H>=12?"下午":"上午"),p.t="T",a+=5,d="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(hx)){if(u==null&&(u=Os(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]||"$",px(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,x=0,w;for(a=i.length-1,l="t";a>=0;--a)switch(i[a].t){case"h":case"H":i[a].t=d,l="h",g<1&&(g=1);break;case"s":(w=i[a].v.match(/\.0+$/))&&(x=Math.max(x,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="",_;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=E4(i[a].t.charCodeAt(0),i[a].v,u,x),i[a].t="t";break;case"n":case"?":for(_=a+1;i[_]!=null&&((s=i[_].t)==="?"||s==="D"||(s===" "||s==="t")&&i[_+1]!=null&&(i[_+1].t==="?"||i[_+1].t==="t"&&i[_+1].v==="/")||i[a].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(i[_].v==="/"||i[_].v===" "&&i[_+1]!=null&&i[_+1].t=="?"));)i[a].v+=i[_].v,i[_]={v:"",t:";"},++_;y+=i[a].v,a=_-1;break;case"G":i[a].t="t",i[a].v=Wf(t,r);break}var k="",N,S;if(y.length>0){y.charCodeAt(0)==40?(N=t<0&&y.charCodeAt(0)===45?-t:t,S=qr("n",y,N)):(N=t<0&&n>1?-t:t,S=qr("n",y,N),N<0&&i[0]&&i[0].t=="t"&&(S=S.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&&S.indexOf("E")===-1){for(a=i.length-1;a>=0;--a)i[a]==null||"n?".indexOf(i[a].t)===-1||(_>=i[a].v.length-1?(_-=i[a].v.length,i[a].v=S.substr(_+1,i[a].v.length)):_<0?i[a].v="":(i[a].v=S.substr(0,_+1),_=-1),i[a].t="t",R=a);_>=0&&R<i.length&&(i[R].v=S.substr(0,_+1)+i[R].v)}else if(A!==i.length&&S.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,k=i[a].v.substr(c+1);c>=0;--c)_>=0&&(i[a].v.charAt(c)==="0"||i[a].v.charAt(c)==="#")&&(k=S.charAt(_--)+k);i[a].v=k,i[a].t="t",R=a}for(_>=0&&R<i.length&&(i[R].v=S.substr(0,_+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,k=i[a].v.substr(0,c);c<i[a].v.length;++c)_<S.length&&(k+=S.charAt(_++));i[a].v=k,i[a].t="t",R=a}}}for(a=0;a<i.length;++a)i[a]!=null&&"n?".indexOf(i[a].t)>-1&&(N=n>1&&t<0&&a>0&&i[a-1].v==="-"?-t:t,i[a].v=qr(i[a].t,i[a].v,N),i[a].t="t");var L="";for(a=0;a!==i.length;++a)i[a]!=null&&(L+=i[a].v);return L}var mg=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function vg(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 I4(e,t){var r=D4(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(mg),s=r[1].match(mg);return vg(t,a)?[n,r[0]]:vg(t,s)?[n,r[1]]:[n,r[a!=null&&s!=null?2:1]]}return[n,o]}function $n(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:et)[e],n==null&&(n=r.table&&r.table[hg[e]]||et[hg[e]]),n==null&&(n=h4[e]||"General");break}if(bl(n,0))return Wf(t,r);t instanceof Date&&(t=ox(t,r.date1904));var i=I4(n,t);if(bl(i[1]))return Wf(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return P4(i[1],t,r,i[0])}function gx(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(et[r]==null){t<0&&(t=r);continue}if(et[r]==e){t=r;break}}t<0&&(t=391)}return et[t]=e,t}function xu(e){for(var t=0;t!=392;++t)e[t]!==void 0&&gx(e[t],t)}function wu(){et=d4()}var mx=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function b4(e){var t=typeof e=="number"?et[e]:e;return t=t.replace(mx,"(\\d+)"),new RegExp("^"+t+"$")}function k4(e,t,r){var n=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(mx)||[]).forEach(function(f,d){var h=parseInt(r[d+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=h;break;case"d":o=h;break;case"h":a=h;break;case"s":l=h;break;case"m":a>=0?s=h:i=h;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 S=0,A=new Array(256),R=0;R!=256;++R)S=R,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,S=S&1?-306674912^S>>>1:S>>>1,A[R]=S;return typeof Int32Array<"u"?new Int32Array(A):A}var r=t();function n(S){var A=0,R=0,L=0,V=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(L=0;L!=256;++L)V[L]=S[L];for(L=0;L!=256;++L)for(R=S[L],A=256+L;A<4096;A+=256)R=V[A]=R>>>8^S[R&255];var U=[];for(L=1;L!=16;++L)U[L-1]=typeof Int32Array<"u"?V.subarray(L*256,L*256+256):V.slice(L*256,L*256+256);return U}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],d=i[7],h=i[8],m=i[9],p=i[10],g=i[11],x=i[12],w=i[13],y=i[14];function _(S,A){for(var R=A^-1,L=0,V=S.length;L<V;)R=R>>>8^r[(R^S.charCodeAt(L++))&255];return~R}function k(S,A){for(var R=A^-1,L=S.length-15,V=0;V<L;)R=y[S[V++]^R&255]^w[S[V++]^R>>8&255]^x[S[V++]^R>>16&255]^g[S[V++]^R>>>24]^p[S[V++]]^m[S[V++]]^h[S[V++]]^d[S[V++]]^f[S[V++]]^c[S[V++]]^u[S[V++]]^l[S[V++]]^s[S[V++]]^a[S[V++]]^o[S[V++]]^r[S[V++]];for(L+=15;V<L;)R=R>>>8^r[(R^S[V++])&255];return~R}function N(S,A){for(var R=A^-1,L=0,V=S.length,U=0,W=0;L<V;)U=S.charCodeAt(L++),U<128?R=R>>>8^r[(R^U)&255]:U<2048?(R=R>>>8^r[(R^(192|U>>6&31))&255],R=R>>>8^r[(R^(128|U&63))&255]):U>=55296&&U<57344?(U=(U&1023)+64,W=S.charCodeAt(L++)&1023,R=R>>>8^r[(R^(240|U>>8&7))&255],R=R>>>8^r[(R^(128|U>>2&63))&255],R=R>>>8^r[(R^(128|W>>6&15|(U&3)<<4))&255],R=R>>>8^r[(R^(128|W&63))&255]):(R=R>>>8^r[(R^(224|U>>12&15))&255],R=R>>>8^r[(R^(128|U>>6&63))&255],R=R>>>8^r[(R^(128|U&63))&255]);return~R}return e.table=r,e.bstr=_,e.buf=k,e.str=N,e}(),Ue=function(){var t={};t.version="1.2.1";function r(E,D){for(var C=E.split("/"),O=D.split("/"),P=0,I=0,G=Math.min(C.length,O.length);P<G;++P){if(I=C[P].length-O[P].length)return I;if(C[P]!=O[P])return C[P]<O[P]?-1:1}return C.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 D=E.lastIndexOf("/");return D===-1?E:E.slice(0,D+1)}function i(E){if(E.charAt(E.length-1)=="/")return i(E.slice(0,-1));var D=E.lastIndexOf("/");return D===-1?E:E.slice(D+1)}function o(E,D){typeof D=="string"&&(D=new Date(D));var C=D.getHours();C=C<<6|D.getMinutes(),C=C<<5|D.getSeconds()>>>1,E.write_shift(2,C);var O=D.getFullYear()-1980;O=O<<4|D.getMonth()+1,O=O<<5|D.getDate(),E.write_shift(2,O)}function a(E){var D=E.read_shift(2)&65535,C=E.read_shift(2)&65535,O=new Date,P=C&31;C>>>=5;var I=C&15;C>>>=4,O.setMilliseconds(0),O.setFullYear(C+1980),O.setMonth(I-1),O.setDate(P);var G=D&31;D>>>=5;var te=D&63;return D>>>=6,O.setHours(D),O.setMinutes(te),O.setSeconds(G<<1),O}function s(E){Kt(E,0);for(var D={},C=0;E.l<=E.length-4;){var O=E.read_shift(2),P=E.read_shift(2),I=E.l+P,G={};switch(O){case 21589:C=E.read_shift(1),C&1&&(G.mtime=E.read_shift(4)),P>5&&(C&2&&(G.atime=E.read_shift(4)),C&4&&(G.ctime=E.read_shift(4))),G.mtime&&(G.mt=new Date(G.mtime*1e3));break}E.l=I,D[O]=G}return D}var l;function u(){return l||(l={})}function c(E,D){if(E[0]==80&&E[1]==75)return uh(E,D);if((E[0]|32)==109&&(E[1]|32)==105)return ry(E,D);if(E.length<512)throw new Error("CFB file size "+E.length+" < 512");var C=3,O=512,P=0,I=0,G=0,te=0,z=0,j=[],X=E.slice(0,512);Kt(X,0);var oe=f(X);switch(C=oe[0],C){case 3:O=512;break;case 4:O=4096;break;case 0:if(oe[1]==0)return uh(E,D);default:throw new Error("Major Version: Expected 3 or 4 saw "+C)}O!==512&&(X=E.slice(0,O),Kt(X,28));var fe=E.slice(0,O);d(X,C);var me=X.read_shift(4,"i");if(C===3&&me!==0)throw new Error("# Directory Sectors: Expected 0 saw "+me);X.l+=4,G=X.read_shift(4,"i"),X.l+=4,X.chk("00100000","Mini Stream Cutoff Size: "),te=X.read_shift(4,"i"),P=X.read_shift(4,"i"),z=X.read_shift(4,"i"),I=X.read_shift(4,"i");for(var ae=-1,he=0;he<109&&(ae=X.read_shift(4,"i"),!(ae<0));++he)j[he]=ae;var Oe=h(E,O);g(z,I,Oe,O,j);var Ke=w(Oe,G,j,O);Ke[G].name="!Directory",P>0&&te!==W&&(Ke[te].name="!MiniFAT"),Ke[j[0]].name="!FAT",Ke.fat_addrs=j,Ke.ssz=O;var Ye={},St=[],Oo=[],Fo=[];y(G,Ke,Oe,St,P,Ye,Oo,te),m(Oo,Fo,St),St.shift();var Do={FileIndex:Oo,FullPaths:Fo};return D&&D.raw&&(Do.raw={header:fe,sectors:Oe}),Do}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 D=E.read_shift(2,"u");return[E.read_shift(2,"u"),D]}function d(E,D){var C=9;switch(E.l+=2,C=E.read_shift(2)){case 9:if(D!=3)throw new Error("Sector Shift: Expected 9 saw "+C);break;case 12:if(D!=4)throw new Error("Sector Shift: Expected 12 saw "+C);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+C)}E.chk("0600","Mini Sector Shift: "),E.chk("000000000000","Reserved: ")}function h(E,D){for(var C=Math.ceil(E.length/D)-1,O=[],P=1;P<C;++P)O[P-1]=E.slice(P*D,(P+1)*D);return O[C-1]=E.slice(C*D),O}function m(E,D,C){for(var O=0,P=0,I=0,G=0,te=0,z=C.length,j=[],X=[];O<z;++O)j[O]=X[O]=O,D[O]=C[O];for(;te<X.length;++te)O=X[te],P=E[O].L,I=E[O].R,G=E[O].C,j[O]===O&&(P!==-1&&j[P]!==P&&(j[O]=j[P]),I!==-1&&j[I]!==I&&(j[O]=j[I])),G!==-1&&(j[G]=O),P!==-1&&O!=j[O]&&(j[P]=j[O],X.lastIndexOf(P)<te&&X.push(P)),I!==-1&&O!=j[O]&&(j[I]=j[O],X.lastIndexOf(I)<te&&X.push(I));for(O=1;O<z;++O)j[O]===O&&(I!==-1&&j[I]!==I?j[O]=j[I]:P!==-1&&j[P]!==P&&(j[O]=j[P]));for(O=1;O<z;++O)if(E[O].type!==0){if(te=O,te!=j[te])do te=j[te],D[O]=D[te]+"/"+D[O];while(te!==0&&j[te]!==-1&&te!=j[te]);j[O]=-1}for(D[0]+="/",O=1;O<z;++O)E[O].type!==2&&(D[O]+="/")}function p(E,D,C){for(var O=E.start,P=E.size,I=[],G=O;C&&P>0&&G>=0;)I.push(D.slice(G*U,G*U+U)),P-=U,G=Xn(C,G*4);return I.length===0?J(0):mt(I).slice(0,E.size)}function g(E,D,C,O,P){var I=W;if(E===W){if(D!==0)throw new Error("DIFAT chain shorter than expected")}else if(E!==-1){var G=C[E],te=(O>>>2)-1;if(!G)return;for(var z=0;z<te&&(I=Xn(G,z*4))!==W;++z)P.push(I);g(Xn(G,O-4),D-1,C,O,P)}}function x(E,D,C,O,P){var I=[],G=[];P||(P=[]);var te=O-1,z=0,j=0;for(z=D;z>=0;){P[z]=!0,I[I.length]=z,G.push(E[z]);var X=C[Math.floor(z*4/O)];if(j=z*4&te,O<4+j)throw new Error("FAT boundary crossed: "+z+" 4 "+O);if(!E[X])break;z=Xn(E[X],j)}return{nodes:I,data:Cg([G])}}function w(E,D,C,O){var P=E.length,I=[],G=[],te=[],z=[],j=O-1,X=0,oe=0,fe=0,me=0;for(X=0;X<P;++X)if(te=[],fe=X+D,fe>=P&&(fe-=P),!G[fe]){z=[];var ae=[];for(oe=fe;oe>=0;){ae[oe]=!0,G[oe]=!0,te[te.length]=oe,z.push(E[oe]);var he=C[Math.floor(oe*4/O)];if(me=oe*4&j,O<4+me)throw new Error("FAT boundary crossed: "+oe+" 4 "+O);if(!E[he]||(oe=Xn(E[he],me),ae[oe]))break}I[fe]={nodes:te,data:Cg([z])}}return I}function y(E,D,C,O,P,I,G,te){for(var z=0,j=O.length?2:0,X=D[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=Rd(ae,0,fe-j),O.push(me);var he={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},Oe=ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2);Oe!==0&&(he.ct=_(ae,ae.l-8));var Ke=ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2)+ae.read_shift(2);Ke!==0&&(he.mt=_(ae,ae.l-8)),he.start=ae.read_shift(4,"i"),he.size=ae.read_shift(4,"i"),he.size<0&&he.start<0&&(he.size=he.type=0,he.start=W,he.name=""),he.type===5?(z=he.start,P>0&&z!==W&&(D[z].name="!StreamData")):he.size>=4096?(he.storage="fat",D[he.start]===void 0&&(D[he.start]=x(C,he.start,D.fat_addrs,D.ssz)),D[he.start].name=he.name,he.content=D[he.start].data.slice(0,he.size)):(he.storage="minifat",he.size<0?he.size=0:z!==W&&he.start!==W&&D[z]&&(he.content=p(he,D[z].data,(D[te]||{}).data))),he.content&&Kt(he.content,0),I[me]=he,G.push(he)}}function _(E,D){return new Date((qt(E,D+4)/1e7*Math.pow(2,32)+qt(E,D)/1e7-11644473600)*1e3)}function k(E,D){return u(),c(l.readFileSync(E),D)}function N(E,D){var C=D&&D.type;switch(C||$e&&Buffer.isBuffer(E)&&(C="buffer"),C||"base64"){case"file":return k(E,D);case"base64":return c(wr(tn(E)),D);case"binary":return c(wr(E),D)}return c(E,D)}function S(E,D){var C=D||{},O=C.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}),C.CLSID&&(E.FileIndex[0].clsid=C.CLSID),A(E)}function A(E){var D="Sh33tJ5";if(!Ue.find(E,"/"+D)){var C=J(4);C[0]=55,C[1]=C[3]=50,C[2]=54,E.FileIndex.push({name:D,type:2,content:C,size:4,L:69,R:69,C:69}),E.FullPaths.push(E.FullPaths[0]+D),R(E)}}function R(E,D){S(E);for(var C=!1,O=!1,P=E.FullPaths.length-1;P>=0;--P){var I=E.FileIndex[P];switch(I.type){case 0:O?C=!0:(E.FileIndex.pop(),E.FullPaths.pop());break;case 1:case 2:case 5:O=!0,isNaN(I.R*I.L*I.C)&&(C=!0),I.R>-1&&I.L>-1&&I.R==I.L&&(C=!0);break;default:C=!0;break}}if(!(!C&&!D)){var G=new Date(1987,1,19),te=0,z=Object.create?Object.create(null):{},j=[];for(P=0;P<E.FullPaths.length;++P)z[E.FullPaths[P]]=!0,E.FileIndex[P].type!==0&&j.push([E.FullPaths[P],E.FileIndex[P]]);for(P=0;P<j.length;++P){var X=n(j[P][0]);O=z[X],O||(j.push([X,{name:i(X).replace("/",""),type:1,clsid:ye,ct:G,mt:G,content:null}]),z[X]=!0)}for(j.sort(function(me,ae){return r(me[0],ae[0])}),E.FullPaths=[],E.FileIndex=[],P=0;P<j.length;++P)E.FullPaths[P]=j[P][0],E.FileIndex[P]=j[P][1];for(P=0;P<j.length;++P){var oe=E.FileIndex[P],fe=E.FullPaths[P];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||ye,P===0)oe.C=j.length>1?1:-1,oe.size=0,oe.type=5;else if(fe.slice(-1)=="/"){for(te=P+1;te<j.length&&n(E.FullPaths[te])!=fe;++te);for(oe.C=te>=j.length?-1:te,te=P+1;te<j.length&&n(E.FullPaths[te])!=n(fe);++te);oe.R=te>=j.length?-1:te,oe.type=1}else n(E.FullPaths[P+1]||"")==n(fe)&&(oe.R=P+1),oe.type=2}}}function L(E,D){var C=D||{};if(C.fileType=="mad")return ny(E,C);switch(R(E),C.fileType){case"zip":return q2(E,C)}var O=function(me){for(var ae=0,he=0,Oe=0;Oe<me.FileIndex.length;++Oe){var Ke=me.FileIndex[Oe];if(Ke.content){var Ye=Ke.content.length;Ye>0&&(Ye<4096?ae+=Ye+63>>6:he+=Ye+511>>9)}}for(var St=me.FullPaths.length+3>>2,Oo=ae+7>>3,Fo=ae+127>>7,Do=Oo+he+St+Fo,Vn=Do+127>>7,Bu=Vn<=109?0:Math.ceil((Vn-109)/127);Do+Vn+Bu+127>>7>Vn;)Bu=++Vn<=109?0:Math.ceil((Vn-109)/127);var Lr=[1,Bu,Vn,Fo,St,he,ae,0];return me.FileIndex[0].size=ae<<6,Lr[7]=(me.FileIndex[0].start=Lr[0]+Lr[1]+Lr[2]+Lr[3]+Lr[4]+Lr[5])+(Lr[6]+7>>3),Lr}(E),P=J(O[7]<<9),I=0,G=0;{for(I=0;I<8;++I)P.write_shift(1,re[I]);for(I=0;I<8;++I)P.write_shift(2,0);for(P.write_shift(2,62),P.write_shift(2,3),P.write_shift(2,65534),P.write_shift(2,9),P.write_shift(2,6),I=0;I<3;++I)P.write_shift(2,0);for(P.write_shift(4,0),P.write_shift(4,O[2]),P.write_shift(4,O[0]+O[1]+O[2]+O[3]-1),P.write_shift(4,0),P.write_shift(4,1<<12),P.write_shift(4,O[3]?O[0]+O[1]+O[2]-1:W),P.write_shift(4,O[3]),P.write_shift(-4,O[1]?O[0]-1:W),P.write_shift(4,O[1]),I=0;I<109;++I)P.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)P.write_shift(-4,I<O[2]?O[1]+I:-1);P.write_shift(-4,G===O[1]-1?W:G+1)}var te=function(me){for(G+=me;I<G-1;++I)P.write_shift(-4,I+1);me&&(++I,P.write_shift(-4,W))};for(G=I=0,G+=O[1];I<G;++I)P.write_shift(-4,ge.DIFSECT);for(G+=O[2];I<G;++I)P.write_shift(-4,ge.FATSECT);te(O[3]),te(O[4]);for(var z=0,j=0,X=E.FileIndex[0];z<E.FileIndex.length;++z)X=E.FileIndex[z],X.content&&(j=X.content.length,!(j<4096)&&(X.start=G,te(j+511>>9)));for(te(O[6]+7>>3);P.l&511;)P.write_shift(-4,ge.ENDOFCHAIN);for(G=I=0,z=0;z<E.FileIndex.length;++z)X=E.FileIndex[z],X.content&&(j=X.content.length,!(!j||j>=4096)&&(X.start=G,te(j+63>>6)));for(;P.l&511;)P.write_shift(-4,ge.ENDOFCHAIN);for(I=0;I<O[4]<<2;++I){var oe=E.FullPaths[I];if(!oe||oe.length===0){for(z=0;z<17;++z)P.write_shift(4,0);for(z=0;z<3;++z)P.write_shift(4,-1);for(z=0;z<12;++z)P.write_shift(4,0);continue}X=E.FileIndex[I],I===0&&(X.start=X.size?X.start-1:W);var fe=I===0&&C.root||X.name;if(j=2*(fe.length+1),P.write_shift(64,fe,"utf16le"),P.write_shift(2,j),P.write_shift(1,X.type),P.write_shift(1,X.color),P.write_shift(-4,X.L),P.write_shift(-4,X.R),P.write_shift(-4,X.C),X.clsid)P.write_shift(16,X.clsid,"hex");else for(z=0;z<4;++z)P.write_shift(4,0);P.write_shift(4,X.state||0),P.write_shift(4,0),P.write_shift(4,0),P.write_shift(4,0),P.write_shift(4,0),P.write_shift(4,X.start),P.write_shift(4,X.size),P.write_shift(4,0)}for(I=1;I<E.FileIndex.length;++I)if(X=E.FileIndex[I],X.size>=4096)if(P.l=X.start+1<<9,$e&&Buffer.isBuffer(X.content))X.content.copy(P,P.l,0,X.size),P.l+=X.size+511&-512;else{for(z=0;z<X.size;++z)P.write_shift(1,X.content[z]);for(;z&511;++z)P.write_shift(1,0)}for(I=1;I<E.FileIndex.length;++I)if(X=E.FileIndex[I],X.size>0&&X.size<4096)if($e&&Buffer.isBuffer(X.content))X.content.copy(P,P.l,0,X.size),P.l+=X.size+63&-64;else{for(z=0;z<X.size;++z)P.write_shift(1,X.content[z]);for(;z&63;++z)P.write_shift(1,0)}if($e)P.l=P.length;else for(;P.l<P.length;)P.write_shift(1,0);return P}function V(E,D){var C=E.FullPaths.map(function(z){return z.toUpperCase()}),O=C.map(function(z){var j=z.split("/");return j[j.length-(z.slice(-1)=="/"?2:1)]}),P=!1;D.charCodeAt(0)===47?(P=!0,D=C[0].slice(0,-1)+D):P=D.indexOf("/")!==-1;var I=D.toUpperCase(),G=P===!0?C.indexOf(I):O.indexOf(I);if(G!==-1)return E.FileIndex[G];var te=!I.match(Rs);for(I=I.replace(da,""),te&&(I=I.replace(Rs,"!")),G=0;G<C.length;++G)if((te?C[G].replace(Rs,"!"):C[G]).replace(da,"")==I||(te?O[G].replace(Rs,"!"):O[G]).replace(da,"")==I)return E.FileIndex[G];return null}var U=64,W=-2,Y="d0cf11e0a1b11ae1",re=[208,207,17,224,161,177,26,225],ye="00000000000000000000000000000000",ge={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:W,FREESECT:-1,HEADER_SIGNATURE:Y,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:ye,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function Se(E,D,C){u();var O=L(E,C);l.writeFileSync(D,O)}function ie(E){for(var D=new Array(E.length),C=0;C<E.length;++C)D[C]=String.fromCharCode(E[C]);return D.join("")}function we(E,D){var C=L(E,D);switch(D&&D.type||"buffer"){case"file":return u(),l.writeFileSync(D.filename,C),C;case"binary":return typeof C=="string"?C:ie(C);case"base64":return Na(typeof C=="string"?C:ie(C));case"buffer":if($e)return Buffer.isBuffer(C)?C:sn(C);case"array":return typeof C=="string"?wr(C):C}return C}var Q;function F(E){try{var D=E.InflateRaw,C=new D;if(C._processChunk(new Uint8Array([3,0]),C._finishFlushFlag),C.bytesRead)Q=E;else throw new Error("zlib does not expose bytesRead")}catch(O){console.error("cannot use native zlib: "+(O.message||O))}}function M(E,D){if(!Q)return sh(E,D);var C=Q.InflateRaw,O=new C,P=O._processChunk(E.slice(E.l),O._finishFlushFlag);return E.l+=O.bytesRead,P}function b(E){return Q?Q.deflateRawSync(E):th(E)}var T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=[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],H=[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 q(E){var D=(E<<1|E<<11)&139536|(E<<5|E<<15)&558144;return(D>>16|D>>8|D)&255}for(var ee=typeof Uint8Array<"u",K=ee?new Uint8Array(1<<8):[],ve=0;ve<1<<8;++ve)K[ve]=q(ve);function pe(E,D){var C=K[E&255];return D<=8?C>>>8-D:(C=C<<8|K[E>>8&255],D<=16?C>>>16-D:(C=C<<8|K[E>>16&255],C>>>24-D))}function De(E,D){var C=D&7,O=D>>>3;return(E[O]|(C<=6?0:E[O+1]<<8))>>>C&3}function _e(E,D){var C=D&7,O=D>>>3;return(E[O]|(C<=5?0:E[O+1]<<8))>>>C&7}function je(E,D){var C=D&7,O=D>>>3;return(E[O]|(C<=4?0:E[O+1]<<8))>>>C&15}function Re(E,D){var C=D&7,O=D>>>3;return(E[O]|(C<=3?0:E[O+1]<<8))>>>C&31}function ce(E,D){var C=D&7,O=D>>>3;return(E[O]|(C<=1?0:E[O+1]<<8))>>>C&127}function Mt(E,D,C){var O=D&7,P=D>>>3,I=(1<<C)-1,G=E[P]>>>O;return C<8-O||(G|=E[P+1]<<8-O,C<16-O)||(G|=E[P+2]<<16-O,C<24-O)||(G|=E[P+3]<<24-O),G&I}function _t(E,D,C){var O=D&7,P=D>>>3;return O<=5?E[P]|=(C&7)<<O:(E[P]|=C<<O&255,E[P+1]=(C&7)>>8-O),D+3}function jt(E,D,C){var O=D&7,P=D>>>3;return C=(C&1)<<O,E[P]|=C,D+1}function Nr(E,D,C){var O=D&7,P=D>>>3;return C<<=O,E[P]|=C&255,C>>>=8,E[P+1]=C,D+8}function Mr(E,D,C){var O=D&7,P=D>>>3;return C<<=O,E[P]|=C&255,C>>>=8,E[P+1]=C&255,E[P+2]=C>>>8,D+16}function Ro(E,D){var C=E.length,O=2*C>D?2*C:D+5,P=0;if(C>=D)return E;if($e){var I=cg(O);if(E.copy)E.copy(I);else for(;P<E.length;++P)I[P]=E[P];return I}else if(ee){var G=new Uint8Array(O);if(G.set)G.set(E);else for(;P<C;++P)G[P]=E[P];return G}return E.length=O,E}function er(E){for(var D=new Array(E),C=0;C<E;++C)D[C]=0;return D}function is(E,D,C){var O=1,P=0,I=0,G=0,te=0,z=E.length,j=ee?new Uint16Array(32):er(32);for(I=0;I<32;++I)j[I]=0;for(I=z;I<C;++I)E[I]=0;z=E.length;var X=ee?new Uint16Array(z):er(z);for(I=0;I<z;++I)j[P=E[I]]++,O<P&&(O=P),X[I]=0;for(j[0]=0,I=1;I<=O;++I)j[I+16]=te=te+j[I-1]<<1;for(I=0;I<z;++I)te=E[I],te!=0&&(X[I]=j[te+16]++);var oe=0;for(I=0;I<z;++I)if(oe=E[I],oe!=0)for(te=pe(X[I],O)>>O-oe,G=(1<<O+4-oe)-1;G>=0;--G)D[te|G<<oe]=oe&15|I<<4;return O}var Nu=ee?new Uint16Array(512):er(512),Mu=ee?new Uint16Array(32):er(32);if(!ee){for(var Hn=0;Hn<512;++Hn)Nu[Hn]=0;for(Hn=0;Hn<32;++Hn)Mu[Hn]=0}(function(){for(var E=[],D=0;D<32;D++)E.push(5);is(E,Mu,32);var C=[];for(D=0;D<=143;D++)C.push(8);for(;D<=255;D++)C.push(9);for(;D<=279;D++)C.push(7);for(;D<=287;D++)C.push(8);is(C,Nu,288)})();var j2=function(){for(var D=ee?new Uint8Array(32768):[],C=0,O=0;C<H.length-1;++C)for(;O<H[C+1];++O)D[O]=C;for(;O<32768;++O)D[O]=29;var P=ee?new Uint8Array(259):[];for(C=0,O=0;C<B.length-1;++C)for(;O<B[C+1];++O)P[O]=C;function I(te,z){for(var j=0;j<te.length;){var X=Math.min(65535,te.length-j),oe=j+X==te.length;for(z.write_shift(1,+oe),z.write_shift(2,X),z.write_shift(2,~X&65535);X-- >0;)z[z.l++]=te[j++]}return z.l}function G(te,z){for(var j=0,X=0,oe=ee?new Uint16Array(32768):[];X<te.length;){var fe=Math.min(65535,te.length-X);if(fe<10){for(j=_t(z,j,+(X+fe==te.length)),j&7&&(j+=8-(j&7)),z.l=j/8|0,z.write_shift(2,fe),z.write_shift(2,~fe&65535);fe-- >0;)z[z.l++]=te[X++];j=z.l*8;continue}j=_t(z,j,+(X+fe==te.length)+2);for(var me=0;fe-- >0;){var ae=te[X];me=(me<<5^ae)&32767;var he=-1,Oe=0;if((he=oe[me])&&(he|=X&-32768,he>X&&(he-=32768),he<X))for(;te[he+Oe]==te[X+Oe]&&Oe<250;)++Oe;if(Oe>2){ae=P[Oe],ae<=22?j=Nr(z,j,K[ae+1]>>1)-1:(Nr(z,j,3),j+=5,Nr(z,j,K[ae-23]>>5),j+=3);var Ke=ae<8?0:ae-4>>2;Ke>0&&(Mr(z,j,Oe-B[ae]),j+=Ke),ae=D[X-he],j=Nr(z,j,K[ae]>>3),j-=3;var Ye=ae<4?0:ae-2>>1;Ye>0&&(Mr(z,j,X-he-H[ae]),j+=Ye);for(var St=0;St<Oe;++St)oe[me]=X&32767,me=(me<<5^te[X])&32767,++X;fe-=Oe-1}else ae<=143?ae=ae+48:j=jt(z,j,1),j=Nr(z,j,K[ae]),oe[me]=X&32767,++X}j=Nr(z,j,0)-1}return z.l=(j+7)/8|0,z.l}return function(z,j){return z.length<8?I(z,j):G(z,j)}}();function th(E){var D=J(50+Math.floor(E.length*1.1)),C=j2(E,D);return D.slice(0,C)}var rh=ee?new Uint16Array(32768):er(32768),nh=ee?new Uint16Array(32768):er(32768),ih=ee?new Uint16Array(128):er(128),oh=1,ah=1;function X2(E,D){var C=Re(E,D)+257;D+=5;var O=Re(E,D)+1;D+=5;var P=je(E,D)+4;D+=4;for(var I=0,G=ee?new Uint8Array(19):er(19),te=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],z=1,j=ee?new Uint8Array(8):er(8),X=ee?new Uint8Array(8):er(8),oe=G.length,fe=0;fe<P;++fe)G[T[fe]]=I=_e(E,D),z<I&&(z=I),j[I]++,D+=3;var me=0;for(j[0]=0,fe=1;fe<=z;++fe)X[fe]=me=me+j[fe-1]<<1;for(fe=0;fe<oe;++fe)(me=G[fe])!=0&&(te[fe]=X[me]++);var ae=0;for(fe=0;fe<oe;++fe)if(ae=G[fe],ae!=0){me=K[te[fe]]>>8-ae;for(var he=(1<<7-ae)-1;he>=0;--he)ih[me|he<<ae]=ae&7|fe<<3}var Oe=[];for(z=1;Oe.length<C+O;)switch(me=ih[ce(E,D)],D+=me&7,me>>>=3){case 16:for(I=3+De(E,D),D+=2,me=Oe[Oe.length-1];I-- >0;)Oe.push(me);break;case 17:for(I=3+_e(E,D),D+=3;I-- >0;)Oe.push(0);break;case 18:for(I=11+ce(E,D),D+=7;I-- >0;)Oe.push(0);break;default:Oe.push(me),z<me&&(z=me);break}var Ke=Oe.slice(0,C),Ye=Oe.slice(C);for(fe=C;fe<286;++fe)Ke[fe]=0;for(fe=O;fe<30;++fe)Ye[fe]=0;return oh=is(Ke,rh,286),ah=is(Ye,nh,30),D}function K2(E,D){if(E[0]==3&&!(E[1]&3))return[oi(D),2];for(var C=0,O=0,P=cg(D||1<<18),I=0,G=P.length>>>0,te=0,z=0;!(O&1);){if(O=_e(E,C),C+=3,O>>>1)O>>1==1?(te=9,z=5):(C=X2(E,C),te=oh,z=ah);else{C&7&&(C+=8-(C&7));var j=E[C>>>3]|E[(C>>>3)+1]<<8;if(C+=32,j>0)for(!D&&G<I+j&&(P=Ro(P,I+j),G=P.length);j-- >0;)P[I++]=E[C>>>3],C+=8;continue}for(;;){!D&&G<I+32767&&(P=Ro(P,I+32767),G=P.length);var X=Mt(E,C,te),oe=O>>>1==1?Nu[X]:rh[X];if(C+=oe&15,oe>>>=4,!(oe>>>8&255))P[I++]=oe;else{if(oe==256)break;oe-=257;var fe=oe<8?0:oe-4>>2;fe>5&&(fe=0);var me=I+B[oe];fe>0&&(me+=Mt(E,C,fe),C+=fe),X=Mt(E,C,z),oe=O>>>1==1?Mu[X]:nh[X],C+=oe&15,oe>>>=4;var ae=oe<4?0:oe-2>>1,he=H[oe];for(ae>0&&(he+=Mt(E,C,ae),C+=ae),!D&&G<me&&(P=Ro(P,me+100),G=P.length);I<me;)P[I]=P[I-he],++I}}}return D?[P,C+7>>>3]:[P.slice(0,I),C+7>>>3]}function sh(E,D){var C=E.slice(E.l||0),O=K2(C,D);return E.l+=O[1],O[0]}function lh(E,D){if(E)typeof console<"u"&&console.error(D);else throw new Error(D)}function uh(E,D){var C=E;Kt(C,0);var O=[],P=[],I={FileIndex:O,FullPaths:P};S(I,{root:D.root});for(var G=C.length-4;(C[G]!=80||C[G+1]!=75||C[G+2]!=5||C[G+3]!=6)&&G>=0;)--G;C.l=G+4,C.l+=4;var te=C.read_shift(2);C.l+=6;var z=C.read_shift(4);for(C.l=z,G=0;G<te;++G){C.l+=20;var j=C.read_shift(4),X=C.read_shift(4),oe=C.read_shift(2),fe=C.read_shift(2),me=C.read_shift(2);C.l+=8;var ae=C.read_shift(4),he=s(C.slice(C.l+oe,C.l+oe+fe));C.l+=oe+fe+me;var Oe=C.l;C.l=ae+4,Y2(C,j,X,I,he),C.l=Oe}return I}function Y2(E,D,C,O,P){E.l+=2;var I=E.read_shift(2),G=E.read_shift(2),te=a(E);if(I&8257)throw new Error("Unsupported ZIP encryption");for(var z=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 he=s(E.slice(E.l,E.l+fe));(he[21589]||{}).mt&&(te=he[21589].mt),((P||{})[21589]||{}).mt&&(te=P[21589].mt)}E.l+=fe;var Oe=E.slice(E.l,E.l+j);switch(G){case 8:Oe=M(E,X);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+G)}var Ke=!1;I&8&&(z=E.read_shift(4),z==134695760&&(z=E.read_shift(4),Ke=!0),j=E.read_shift(4),X=E.read_shift(4)),j!=D&&lh(Ke,"Bad compressed size: "+D+" != "+j),X!=C&&lh(Ke,"Bad uncompressed size: "+C+" != "+X),Lu(O,me,Oe,{unsafe:!0,mt:te})}function q2(E,D){var C=D||{},O=[],P=[],I=J(1),G=C.compression?8:0,te=0,z=0,j=0,X=0,oe=0,fe=E.FullPaths[0],me=fe,ae=E.FileIndex[0],he=[],Oe=0;for(z=1;z<E.FullPaths.length;++z)if(me=E.FullPaths[z].slice(fe.length),ae=E.FileIndex[z],!(!ae.size||!ae.content||me=="Sh33tJ5")){var Ke=X,Ye=J(me.length);for(j=0;j<me.length;++j)Ye.write_shift(1,me.charCodeAt(j)&127);Ye=Ye.slice(0,Ye.l),he[oe]=$4.buf(ae.content,0);var St=ae.content;G==8&&(St=b(St)),I=J(30),I.write_shift(4,67324752),I.write_shift(2,20),I.write_shift(2,te),I.write_shift(2,G),ae.mt?o(I,ae.mt):I.write_shift(4,0),I.write_shift(-4,he[oe]),I.write_shift(4,St.length),I.write_shift(4,ae.content.length),I.write_shift(2,Ye.length),I.write_shift(2,0),X+=I.length,O.push(I),X+=Ye.length,O.push(Ye),X+=St.length,O.push(St),I=J(46),I.write_shift(4,33639248),I.write_shift(2,0),I.write_shift(2,20),I.write_shift(2,te),I.write_shift(2,G),I.write_shift(4,0),I.write_shift(-4,he[oe]),I.write_shift(4,St.length),I.write_shift(4,ae.content.length),I.write_shift(2,Ye.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,Ke),Oe+=I.l,P.push(I),Oe+=Ye.length,P.push(Ye),++oe}return I=J(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,Oe),I.write_shift(4,X),I.write_shift(2,0),mt([mt(O),mt(P),I])}var os={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 Q2(E,D){if(E.ctype)return E.ctype;var C=E.name||"",O=C.match(/\.([^\.]+)$/);return O&&os[O[1]]||D&&(O=(C=D).match(/[\.\\]([^\.\\])+$/),O&&os[O[1]])?os[O[1]]:"application/octet-stream"}function Z2(E){for(var D=Na(E),C=[],O=0;O<D.length;O+=76)C.push(D.slice(O,O+76));return C.join(`\r
`)+`\r
`}function J2(E){var D=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)});D=D.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),D.charAt(0)==`
`&&(D="=0D"+D.slice(1)),D=D.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var C=[],O=D.split(`\r
`),P=0;P<O.length;++P){var I=O[P];if(I.length==0){C.push("");continue}for(var G=0;G<I.length;){var te=76,z=I.slice(G,G+te);z.charAt(te-1)=="="?te--:z.charAt(te-2)=="="?te-=2:z.charAt(te-3)=="="&&(te-=3),z=I.slice(G,G+te),G+=te,G<I.length&&(z+="="),C.push(z)}}return C.join(`\r
`)}function ey(E){for(var D=[],C=0;C<E.length;++C){for(var O=E[C];C<=E.length&&O.charAt(O.length-1)=="=";)O=O.slice(0,O.length-1)+E[++C];D.push(O)}for(var P=0;P<D.length;++P)D[P]=D[P].replace(/[=][0-9A-Fa-f]{2}/g,function(I){return String.fromCharCode(parseInt(I.slice(1),16))});return wr(D.join(`\r
`))}function ty(E,D,C){for(var O="",P="",I="",G,te=0;te<10;++te){var z=D[te];if(!z||z.match(/^\s*$/))break;var j=z.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":P=j[2].trim();break}}switch(++te,P.toLowerCase()){case"base64":G=wr(tn(D.slice(te).join("")));break;case"quoted-printable":G=ey(D.slice(te));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+P)}var X=Lu(E,O.slice(C.length),G,{unsafe:!0});I&&(X.ctype=I)}function ry(E,D){if(ie(E.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var C=D&&D.root||"",O=($e&&Buffer.isBuffer(E)?E.toString("binary"):ie(E)).split(`\r
`),P=0,I="";for(P=0;P<O.length;++P)if(I=O[P],!!/^Content-Location:/i.test(I)&&(I=I.slice(I.indexOf("file")),C||(C=I.slice(0,I.lastIndexOf("/")+1)),I.slice(0,C.length)!=C))for(;C.length>0&&(C=C.slice(0,C.length-1),C=C.slice(0,C.lastIndexOf("/")+1),I.slice(0,C.length)!=C););var G=(O[1]||"").match(/boundary="(.*?)"/);if(!G)throw new Error("MAD cannot find boundary");var te="--"+(G[1]||""),z=[],j=[],X={FileIndex:z,FullPaths:j};S(X);var oe,fe=0;for(P=0;P<O.length;++P){var me=O[P];me!==te&&me!==te+"--"||(fe++&&ty(X,O.slice(oe,P),C),oe=P)}return X}function ny(E,D){var C=D||{},O=C.boundary||"SheetJS";O="------="+O;for(var P=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+O.slice(2)+'"',"","",""],I=E.FullPaths[0],G=I,te=E.FileIndex[0],z=1;z<E.FullPaths.length;++z)if(G=E.FullPaths[z].slice(I.length),te=E.FileIndex[z],!(!te.size||!te.content||G=="Sh33tJ5")){G=G.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Oe){return"_x"+Oe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Oe){return"_u"+Oe.charCodeAt(0).toString(16)+"_"});for(var j=te.content,X=$e&&Buffer.isBuffer(j)?j.toString("binary"):ie(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 he=oe>=fe*4/5;P.push(O),P.push("Content-Location: "+(C.root||"file:///C:/SheetJS/")+G),P.push("Content-Transfer-Encoding: "+(he?"quoted-printable":"base64")),P.push("Content-Type: "+Q2(te,G)),P.push(""),P.push(he?J2(X):Z2(X))}return P.push(O+`--\r
`),P.join(`\r
`)}function iy(E){var D={};return S(D,E),D}function Lu(E,D,C,O){var P=O&&O.unsafe;P||S(E);var I=!P&&Ue.find(E,D);if(!I){var G=E.FullPaths[0];D.slice(0,G.length)==G?G=D:(G.slice(-1)!="/"&&(G+="/"),G=(G+D).replace("//","/")),I={name:i(D),type:2},E.FileIndex.push(I),E.FullPaths.push(G),P||Ue.utils.cfb_gc(E)}return I.content=C,I.size=C?C.length:0,O&&(O.CLSID&&(I.clsid=O.CLSID),O.mt&&(I.mt=O.mt),O.ct&&(I.ct=O.ct)),I}function oy(E,D){S(E);var C=Ue.find(E,D);if(C){for(var O=0;O<E.FileIndex.length;++O)if(E.FileIndex[O]==C)return E.FileIndex.splice(O,1),E.FullPaths.splice(O,1),!0}return!1}function ay(E,D,C){S(E);var O=Ue.find(E,D);if(O){for(var P=0;P<E.FileIndex.length;++P)if(E.FileIndex[P]==O)return E.FileIndex[P].name=i(C),E.FullPaths[P]=C,!0}return!1}function sy(E){R(E,!0)}return t.find=V,t.read=N,t.parse=c,t.write=we,t.writeFile=Se,t.utils={cfb_new:iy,cfb_add:Lu,cfb_del:oy,cfb_mov:ay,cfb_gc:sy,ReadShift:pa,CheckField:kx,prep_blob:Kt,bconcat:mt,use_zlib:F,_deflateRaw:th,_inflateRaw:sh,consts:ge},t}();function N4(e){return typeof e=="string"?vu(e):Array.isArray(e)?l4(e):e}function Za(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=vu(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?Gr(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([N4(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=Qa(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 xg(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 Sd(e){for(var t=[],r=Et(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function yu(e){for(var t=[],r=Et(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function M4(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 $l=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=$l.getTime()+(e.getTimezoneOffset()-$l.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var vx=new Date,L4=$l.getTime()+(vx.getTimezoneOffset()-$l.getTimezoneOffset())*6e4,wg=vx.getTimezoneOffset();function xx(e){var t=new Date;return t.setTime(e*24*60*60*1e3+L4),t.getTimezoneOffset()!==wg&&t.setTime(t.getTime()+(t.getTimezoneOffset()-wg)*6e4),t}var yg=new Date("2017-02-19T19:06:09.000Z"),wx=isNaN(yg.getFullYear())?new Date("2/19/17"):yg,B4=wx.getFullYear()==2017;function $t(e,t){var r=new Date(e);if(B4)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(wx.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 Eu(e,t){if($e&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Gr(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Gr(s4(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Gr(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Gr(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 Qr(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 U4=["january","february","march","april","may","june","july","august","september","october","november","december"];function Ma(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&&U4.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 Pe(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return $e?n=sn(r):n=u4(r),Ue.utils.cfb_add(e,t,n)}Ue.utils.cfb_add(e,t,r)}else e.file(t,r)}function Td(){return Ue.utils.cfb_new()}var it=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
`,H4={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Cd=Sd(H4),Ad=/[&<>'"]/g,V4=/[\u0000-\u0008\u000b-\u001f]/g;function Le(e){var t=e+"";return t.replace(Ad,function(r){return Cd[r]}).replace(V4,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Eg(e){return Le(e).replace(/ /g,"_x0020_")}var yx=/[\u0000-\u001f]/g;function W4(e){var t=e+"";return t.replace(Ad,function(r){return Cd[r]}).replace(/\n/g,"<br/>").replace(yx,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function z4(e){var t=e+"";return t.replace(Ad,function(r){return Cd[r]}).replace(yx,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function G4(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function j4(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Tc(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 _g(e){var t=oi(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 Sg(e){return sn(e,"binary").toString("utf8")}var Fs="foo bar baz☃🍣",ha=$e&&(Sg(Fs)==Tc(Fs)&&Sg||_g(Fs)==Tc(Fs)&&_g)||Tc,Gr=$e?function(e){return sn(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("")},X4=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}}(),Ex=/(^\s|\s$|\n)/;function vt(e,t){return"<"+e+(t.match(Ex)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function La(e){return Et(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function le(e,t,r){return"<"+e+(r!=null?La(r):"")+(t!=null?(t.match(Ex)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function zf(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function K4(e,t){switch(typeof e){case"string":var r=le("vt:lpwstr",Le(e));return t&&(r=r.replace(/&quot;/g,"_x0022_")),r;case"number":return le((e|0)==e?"vt:i4":"vt:r8",Le(String(e)));case"boolean":return le("vt:bool",e?"true":"false")}if(e instanceof Date)return le("vt:filetime",zf(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"},_o=["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 Y4(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 q4(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 Tg=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},Cg=$e?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:sn(t)})):Tg(e)}:Tg,Ag=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(Zo(e,i)));return n.join("").replace(da,"")},Rd=$e?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(da,""):Ag(e,t,r)}:Ag,Rg=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("")},_x=$e?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):Rg(e,t,r)}:Rg,Og=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode($i(e,i)));return n.join("")},Ja=$e?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):Og(t,r,n)}:Og,Sx=function(e,t){var r=qt(e,t);return r>0?Ja(e,t+4,t+4+r-1):""},Tx=Sx,Cx=function(e,t){var r=qt(e,t);return r>0?Ja(e,t+4,t+4+r-1):""},Ax=Cx,Rx=function(e,t){var r=2*qt(e,t);return r>0?Ja(e,t+4,t+4+r-1):""},Ox=Rx,Fx=function(t,r){var n=qt(t,r);return n>0?Rd(t,r+4,r+4+n):""},Dx=Fx,Px=function(e,t){var r=qt(e,t);return r>0?Ja(e,t+4,t+4+r):""},Ix=Px,bx=function(e,t){return Y4(e,t)},Nl=bx,Od=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};$e&&(Tx=function(t,r){if(!Buffer.isBuffer(t))return Sx(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Ax=function(t,r){if(!Buffer.isBuffer(t))return Cx(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},Ox=function(t,r){if(!Buffer.isBuffer(t))return Rx(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},Dx=function(t,r){if(!Buffer.isBuffer(t))return Fx(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},Ix=function(t,r){if(!Buffer.isBuffer(t))return Px(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},Nl=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):bx(t,r)},Od=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var $i=function(e,t){return e[t]},Zo=function(e,t){return e[t+1]*(1<<8)+e[t]},Q4=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]},Xn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Z4=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function pa(e,t){var r="",n,i,o=[],a,s,l,u;switch(t){case"dbcs":if(u=this.l,$e&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(Zo(this,u)),u+=2;e*=2;break;case"utf8":r=Ja(this,this.l,this.l+e);break;case"utf16le":e*=2,r=Rd(this,this.l,this.l+e);break;case"wstr":return pa.call(this,e,"dbcs");case"lpstr-ansi":r=Tx(this,this.l),e=4+qt(this,this.l);break;case"lpstr-cp":r=Ax(this,this.l),e=4+qt(this,this.l);break;case"lpwstr":r=Ox(this,this.l),e=4+2*qt(this,this.l);break;case"lpp4":e=4+qt(this,this.l),r=Dx(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+qt(this,this.l),r=Ix(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(a=$i(this,this.l+e++))!==0;)o.push(As(a));r=o.join("");break;case"_wstr":for(e=0,r="";(a=Zo(this,this.l+e))!==0;)o.push(As(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=$i(this,u),this.l=u+1,s=pa.call(this,e-l,a?"dbcs-cont":"sbcs-cont"),o.join("")+s;o.push(As(Zo(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=$i(this,u),this.l=u+1,s=pa.call(this,e-l,a?"dbcs-cont":"sbcs-cont"),o.join("")+s;o.push(As($i(this,u))),u+=1}r=o.join("");break;default:switch(e){case 1:return n=$i(this,this.l),this.l++,n;case 2:return n=(t==="i"?Q4:Zo)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?Xn:Z4)(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=Nl(this,this.l):i=Nl([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=_x(this,this.l,e);break}}return this.l+=e,r}var J4=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},e3=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},t3=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function r3(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)t3(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,J4(this,t,this.l);break;case 8:if(n=8,r==="f"){q4(this,t,this.l);break}case 16:break;case-4:n=4,e3(this,t,this.l);break}return this.l+=n,this}function kx(e,t){var r=_x(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=pa,e.chk=kx,e.write_shift=r3}function br(e,t){e.l+=t}function J(e){var t=oi(e);return Kt(t,0),t}function Wt(){var e=[],t=$e?256:2048,r=function(u){var c=J(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 ne(e,t,r,n){var i=+t,o;if(!isNaN(i)){n||(n=Y6[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&&Od(r)&&e.push(r)}}function ga(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 Fg(e,t,r){var n=Gt(e);return n.s=ga(n.s,t.s,r),n.e=ga(n.e,t.s,r),n}function ma(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=Be(e);return!e.cRel&&e.cRel!=null&&(r=o3(r)),!e.rRel&&e.rRel!=null&&(r=n3(r)),r}function Cc(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):ma(e.s,t.biff)+":"+ma(e.e,t.biff)}function Fd(e){return parseInt(i3(e),10)-1}function wt(e){return""+(e+1)}function n3(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function i3(e){return e.replace(/\$(\d+)$/,"$1")}function Dd(e){for(var t=a3(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 o3(e){return e.replace(/^([A-Z])/,"$$$1")}function a3(e){return e.replace(/^\$([A-Z])/,"$1")}function s3(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 Be(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=Be(e)),typeof t!="string"&&(t=Be(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 Dg(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=$n(e.z,r?zt(t):t)}catch{}try{return e.w=$n((e.XF||{}).numFmtId||(r?14:0),r?zt(t):t)}catch{return""+t}}function rn(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"?es[e.v]||e.v:t==null?Dg(e,e.v):Dg(e,t))}function mi(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function $x(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 d=0;d!=t[f].length;++d)if(!(typeof t[f][d]>"u")){var h={v:t[f][d]},m=a+f,p=s+d;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][d]&&typeof t[f][d]=="object"&&!Array.isArray(t[f][d])&&!(t[f][d]instanceof Date))h=t[f][d];else if(Array.isArray(h.v)&&(h.f=t[f][d][1],h.v=h.v[0]),h.v===null)if(h.f)h.t="n";else if(n.nullError)h.t="e",h.v=0;else if(n.sheetStubs)h.t="z";else continue;else typeof h.v=="number"?h.t="n":typeof h.v=="boolean"?h.t="b":h.v instanceof Date?(h.z=n.dateNF||et[14],n.cellDates?(h.t="d",h.w=$n(h.z,zt(h.v))):(h.t="n",h.v=zt(h.v),h.w=$n(h.z,h.v))):h.t="s";if(i)o[m]||(o[m]=[]),o[m][p]&&o[m][p].z&&(h.z=o[m][p].z),o[m][p]=h;else{var g=Be({c:p,r:m});o[g]&&o[g].z&&(h.z=o[g].z),o[g]=h}}}return u.s.c<1e7&&(o["!ref"]=nt(u)),o}function So(e,t){return $x(null,e,t)}function l3(e){return e.read_shift(4,"i")}function Sr(e,t){return t||(t=J(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=J(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 u3(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function c3(e,t){return t||(t=J(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function Pd(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(u3(e));a.r=o}else a.r=[{ich:0,ifnt:0}];return e.l=r+t,a}function f3(e,t){var r=!1;return t==null&&(r=!0,t=J(15+4*e.t.length)),t.write_shift(1,0),ct(e.t,t),r?t.slice(0,t.l):t}var d3=Pd;function h3(e,t){var r=!1;return t==null&&(r=!0,t=J(23+4*e.t.length)),t.write_shift(1,1),ct(e.t,t),t.write_shift(4,1),c3({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 vi(e,t){return t==null&&(t=J(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function xi(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function wi(e,t){return t==null&&(t=J(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var p3=Ot,Nx=ct;function Id(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function Ml(e,t){var r=!1;return t==null&&(r=!0,t=J(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 g3=Ot,Gf=Id,bd=Ml;function Mx(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?Nl([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Xn(t,0)>>2;return r?i/100:i}function Lx(e,t){t==null&&(t=J(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 Bx(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 m3(e,t){return t||(t=J(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 yi=Bx,To=m3;function Co(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function ai(e,t){return(t||J(8)).write_shift(8,e,"f")}function v3(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=A3[i];u&&(t.rgb=Hg(u));break;case 2:t.rgb=Hg([a,s,l]);break;case 3:t.theme=i;break}return o!=0&&(t.tint=o>0?o/32767:o/32768),t}function Ll(e,t){if(t||(t=J(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 x3(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 w3(e,t){t||(t=J(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 Ux=2,Xt=3,Ds=11,Bl=19,Ps=64,y3=65,E3=71,_3=4108,S3=4126,ht=80,Pg={1:{n:"CodePage",t:Ux},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:Ds},12:{n:"HeadingPairs",t:_3},13:{n:"TitlesOfParts",t:S3},14:{n:"Manager",t:ht},15:{n:"Company",t:ht},16:{n:"LinksUpToDate",t:Ds},17:{n:"CharacterCount",t:Xt},19:{n:"SharedDoc",t:Ds},22:{n:"HyperlinksChanged",t:Ds},23:{n:"AppVersion",t:Xt,p:"version"},24:{n:"DigSig",t:y3},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:Bl},2147483651:{n:"Behavior",t:Bl},1919054434:{}},Ig={1:{n:"CodePage",t:Ux},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:Ps},11:{n:"LastPrinted",t:Ps},12:{n:"CreatedDate",t:Ps},13:{n:"ModifiedDate",t:Ps},14:{n:"PageCount",t:Xt},15:{n:"WordCount",t:Xt},16:{n:"CharCount",t:Xt},17:{n:"Thumbnail",t:E3},18:{n:"Application",t:ht},19:{n:"DocSecurity",t:Xt},255:{},2147483648:{n:"Locale",t:Bl},2147483651:{n:"Behavior",t:Bl},1919054434:{}};function T3(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var C3=T3([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]),A3=Gt(C3),es={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},R3={"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"},Is={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 Hx(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Vx(e,t){var r=M4(R3),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:Is[l][t.bookType]||Is[l].xlsx}))},a=function(l){(e[l]||[]).forEach(function(u){n[n.length]=le("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:Is[l][t.bookType]||Is[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 Wx(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function to(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 Me(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 O3(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 bg(e,t,r){return[' <rdf:Description rdf:about="'+e+`">
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
`,` </rdf:Description>
`].join("")}function F3(e,t){return[' <rdf:Description rdf:about="'+e+`">
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
`,` </rdf:Description>
`].join("")}function D3(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(bg(e[r][0],e[r][1])),t.push(F3("",e[r][0]));return t.push(bg("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function zx(){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 '+Pl.version+"</meta:generator></office:meta></office:document-meta>"}var ei=[["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 Ac(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=Le(t),n[n.length]=r?le(e,t,r):vt(e,t))}function Gx(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&&Ac("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:zf(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&Ac("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:zf(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var o=0;o!=ei.length;++o){var a=ei[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&&Ac(a[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var ro=[["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"]],jx=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Xx(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}),ro.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Le(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>"+Le(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function Kx(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",K4(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Le(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var kg={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 P3(e,t){var r=[];return Et(kg).map(function(n){for(var i=0;i<ei.length;++i)if(ei[i][1]==n)return ei[i];for(i=0;i<ro.length;++i)if(ro[i][1]==n)return ro[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(kg[n[1]]||n[1],i))}}),le("DocumentProperties",r.join(""),{xmlns:Yt.o})}function I3(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<ei.length;++a)if(o==ei[a][1])return;for(a=0;a<ro.length;++a)if(o==ro[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(Eg(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(Eg(o),a,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Yt.o+'">'+i.join("")+"</"+n+">"}function b3(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=J(8);return a.write_shift(4,n),a.write_shift(4,i),a}function $g(e,t){var r=J(4),n=J(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=J(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=b3(t);break;case 31:case 80:for(n=J(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 Yx=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function k3(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 Ng(e,t,r){var n=J(8),i=[],o=[],a=8,s=0,l=J(8),u=J(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=J(8),u.write_shift(4,0),i.unshift(u);var c=[J(4)];for(c[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=J(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]])&&!(Yx.indexOf(e[s][0])>-1||jx.indexOf(e[s][0])>-1)&&e[s][1]!=null){var d=e[s][1],h=0;if(t){h=+t[e[s][0]];var m=r[h];if(m.p=="version"&&typeof d=="string"){var p=d.split(".");d=(+p[0]<<16)+(+p[1]||0)}l=$g(m.t,d)}else{var g=k3(d);g==-1&&(g=31,d=String(d)),l=$g(g,d)}o.push(l),u=J(8),u.write_shift(4,t?h:2+s),i.push(u),a+=8+l.length}var x=8*(o.length+1);for(s=0;s<o.length;++s)i[s].write_shift(4,x),x+=o[s].length;return n.write_shift(4,a),n.write_shift(4,o.length),mt([n].concat(i).concat(o))}function Mg(e,t,r,n,i,o){var a=J(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=Ng(e,r,n);if(s.push(l),i){var u=Ng(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=J(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function N3(e,t){return e.read_shift(t)===1}function It(e,t){return t||(t=J(2)),t.write_shift(2,+!!e),t}function qx(e){return e.read_shift(2,"u")}function ir(e,t){return t||(t=J(2)),t.write_shift(2,e),t}function Qx(e,t,r){return r||(r=J(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 M3(e){var t=e.t||"",r=J(3+0);r.write_shift(2,t.length),r.write_shift(1,1);var n=J(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return mt(i)}function L3(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 B3(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):L3(e,n,r)}function U3(e,t,r){if(r.biff>5)return B3(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 Jx(e,t,r){return r||(r=J(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Lg(e,t){t||(t=J(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 H3(e){var t=J(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),Lg(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&&Lg(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 si(e,t,r,n){return n||(n=J(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function V3(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 W3(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 ew(e,t){return t||(t=J(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 kd(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=J(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 z3(e,t){var r=!t||t.biff==8,n=J(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 G3(e,t){var r=!t||t.biff>=8?2:1,n=J(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 j3(e,t){var r=J(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=M3(e[i]);var o=mt([r].concat(n));return o.parts=[r.length].concat(n.map(function(a){return a.length})),o}function X3(){var e=J(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 K3(e){var t=J(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 Y3(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,o=J(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 q3(e,t,r,n){var i=J(10);return si(e,t,n,i),i.write_shift(4,r),i}function Q3(e,t,r,n,i){var o=!i||i.biff==8,a=J(6+2+ +o+(1+o)*r.length);return si(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 Z3(e,t,r,n){var i=r&&r.biff==5;n||(n=J(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 J3(e,t){var r=t.biff==8||!t.biff?4:2,n=J(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 Bg(e,t,r,n){var i=r&&r.biff==5;n||(n=J(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 eA(e){var t=J(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 tA(e,t,r,n,i,o){var a=J(8);return si(e,t,n,a),Qx(r,o,a),a}function rA(e,t,r,n){var i=J(14);return si(e,t,n,i),ai(r,i),i}function nA(e,t,r){if(r.biff<8)return iA(e,t,r);for(var n=[],i=e.l+t,o=e.read_shift(r.biff>8?4:2);o--!==0;)n.push(V3(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function iA(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 oA(e){var t=J(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)ew(e[r],t);return t}function aA(e){var t=J(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,H3(e[1])])}function sA(e){var t=e[1].Tooltip,r=J(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 lA(e){return e||(e=J(4)),e.write_shift(2,1),e.write_shift(2,1),e}function uA(e,t,r){if(!r.cellStyles)return br(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 cA(e,t){var r=J(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 fA(e){for(var t=J(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function dA(e,t,r){var n=J(15);return rs(n,e,t),n.write_shift(8,r,"f"),n}function hA(e,t,r){var n=J(9);return rs(n,e,t),n.write_shift(2,r),n}var pA=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=Sd({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=oi(1);switch(l.type){case"base64":c=wr(tn(s));break;case"binary":c=wr(s);break;case"buffer":case"array":c=s;break}Kt(c,0);var f=c.read_shift(1),d=!!(f&136),h=!1,m=!1;switch(f){case 2:break;case 3:break;case 48:h=!0,d=!0;break;case 49:h=!0,d=!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 x=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=[],_={},k=Math.min(c.length,f==2?521:g-10-(h?264:0)),N=m?32:11;c.l<k&&c[c.l]!=13;)switch(_={},_.name=jn.utils.decode(w,c.slice(c.l,c.l+N)).replace(/[\u0000\r\n].*$/g,""),c.l+=N,_.type=String.fromCharCode(c.read_shift(1)),f!=2&&!m&&(_.offset=c.read_shift(4)),_.len=c.read_shift(1),f==2&&(_.offset=c.read_shift(2)),_.dec=c.read_shift(1),_.name.length&&y.push(_),f!=2&&(c.l+=m?13:14),_.type){case"B":(!h||_.len!=8)&&l.WTF&&console.log("Skipping "+_.name+":"+_.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+_.name+":"+_.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: "+_.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 S=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+=x;continue}for(++c.l,u[++S]=[],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=jn.utils.decode(w,R);switch(y[A].type){case"C":L.trim().length&&(u[S][A]=L.replace(/\s+$/,""));break;case"D":L.length===8?u[S][A]=new Date(+L.slice(0,4),+L.slice(4,6)-1,+L.slice(6,8)):u[S][A]=L;break;case"F":u[S][A]=parseFloat(L.trim());break;case"+":case"I":u[S][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[S][A]=!0;break;case"N":case"F":u[S][A]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+L+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));u[S][A]="##MEMO##"+(m?parseInt(L.trim(),10):R.read_shift(4));break;case"N":L=L.replace(/\u0000/g,"").trim(),L&&L!="."&&(u[S][A]=+L||0);break;case"@":u[S][A]=new Date(R.read_shift(-8,"f")-621356832e5);break;case"T":u[S][A]=new Date((R.read_shift(4)-2440588)*864e5+R.read_shift(4));break;case"Y":u[S][A]=R.read_shift(4,"i")/1e4+R.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[S][A]=-R.read_shift(-8,"f");break;case"B":if(h&&y[A].len==8){u[S][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=So(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 mi(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&&$a(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var c=Wt(),f=zl(s,{header:1,raw:!0,cellDates:!0}),d=f[0],h=f.slice(1),m=s["!cols"]||[],p=0,g=0,x=0,w=1;for(p=0;p<d.length;++p){if(((m[p]||{}).DBF||{}).name){d[p]=m[p].DBF.name,++x;continue}if(d[p]!=null){if(++x,typeof d[p]=="number"&&(d[p]=d[p].toString(10)),typeof d[p]!="string")throw new Error("DBF Invalid column name "+d[p]+" |"+typeof d[p]+"|");if(d.indexOf(d[p])!==p){for(g=0;g<1024;++g)if(d.indexOf(d[p]+"_"+g)==-1){d[p]+="_"+g;break}}}}var y=Ge(s["!ref"]),_=[],k=[],N=[];for(p=0;p<=y.e.c-y.s.c;++p){var S="",A="",R=0,L=[];for(g=0;g<h.length;++g)h[g][p]!=null&&L.push(h[g][p]);if(L.length==0||d[p]==null){_[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),S=S&&S!=A?"C":A}R>250&&(R=250),A=((m[p]||{}).DBF||{}).type,A=="C"&&m[p].DBF.len>R&&(R=m[p].DBF.len),S=="B"&&A=="N"&&(S="N",N[p]=m[p].DBF.dec,R=m[p].DBF.len),k[p]=S=="C"||A=="N"?R:o[S]||0,w+=k[p],_[p]=S}var V=c.next(32);for(V.write_shift(4,318902576),V.write_shift(4,h.length),V.write_shift(2,296+32*x),V.write_shift(2,w),p=0;p<4;++p)V.write_shift(4,0);for(V.write_shift(4,0|(+t[rx]||3)<<8),p=0,g=0;p<d.length;++p)if(d[p]!=null){var U=c.next(32),W=(d[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);U.write_shift(1,W,"sbcs"),U.write_shift(1,_[p]=="?"?"C":_[p],"sbcs"),U.write_shift(4,g),U.write_shift(1,k[p]||o[_[p]]||0),U.write_shift(1,N[p]||0),U.write_shift(1,2),U.write_shift(4,0),U.write_shift(1,0),U.write_shift(4,0),U.write_shift(4,0),g+=k[p]||o[_[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<h.length;++p){var re=c.next(w);for(re.write_shift(1,0),g=0;g<d.length;++g)if(d[g]!=null)switch(_[g]){case"L":re.write_shift(1,h[p][g]==null?63:h[p][g]?84:70);break;case"B":re.write_shift(8,h[p][g]||0,"f");break;case"N":var ye="0";for(typeof h[p][g]=="number"&&(ye=h[p][g].toFixed(N[g]||0)),x=0;x<k[g]-ye.length;++x)re.write_shift(1,32);re.write_shift(1,ye,"sbcs");break;case"D":h[p][g]?(re.write_shift(4,("0000"+h[p][g].getFullYear()).slice(-4),"sbcs"),re.write_shift(2,("00"+(h[p][g].getMonth()+1)).slice(-2),"sbcs"),re.write_shift(2,("00"+h[p][g].getDate()).slice(-2),"sbcs")):re.write_shift(8,"00000000","sbcs");break;case"C":var ge=String(h[p][g]!=null?h[p][g]:"").slice(0,k[g]);for(re.write_shift(1,ge,"sbcs"),x=0;x<k[g]-ge.length;++x)re.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}}(),gA=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(d,h){var m=e[h];return typeof m=="number"?ug(m):m},n=function(d,h,m){var p=h.charCodeAt(0)-32<<4|m.charCodeAt(0)-48;return p==59?d:ug(p)};e["|"]=254;function i(d,h){switch(h.type){case"base64":return o(tn(d),h);case"binary":return o(d,h);case"buffer":return o($e&&Buffer.isBuffer(d)?d.toString("binary"):Qa(d),h);case"array":return o(Eu(d),h)}throw new Error("Unrecognized type "+h.type)}function o(d,h){var m=d.split(/[\n\r]+/),p=-1,g=-1,x=0,w=0,y=[],_=[],k=null,N={},S=[],A=[],R=[],L=0,V;for(+h.codepage>=0&&$a(+h.codepage);x!==m.length;++x){L=0;var U=m[x].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),W=U.replace(/;;/g,"\0").split(";").map(function(T){return T.replace(/\u0000/g,";")}),Y=W[0],re;if(U.length>0)switch(Y){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":W[1].charAt(0)=="P"&&_.push(U.slice(3).replace(/;;/g,";"));break;case"C":var ye=!1,ge=!1,Se=!1,ie=!1,we=-1,Q=-1;for(w=1;w<W.length;++w)switch(W[w].charAt(0)){case"A":break;case"X":g=parseInt(W[w].slice(1))-1,ge=!0;break;case"Y":for(p=parseInt(W[w].slice(1))-1,ge||(g=0),V=y.length;V<=p;++V)y[V]=[];break;case"K":re=W[w].slice(1),re.charAt(0)==='"'?re=re.slice(1,re.length-1):re==="TRUE"?re=!0:re==="FALSE"?re=!1:isNaN(Qr(re))?isNaN(Ma(re).getDate())||(re=$t(re)):(re=Qr(re),k!==null&&px(k)&&(re=xx(re))),ye=!0;break;case"E":ie=!0;var F=hR(W[w].slice(1),{r:p,c:g});y[p][g]=[y[p][g],F];break;case"S":Se=!0,y[p][g]=[y[p][g],"S5S"];break;case"G":break;case"R":we=parseInt(W[w].slice(1))-1;break;case"C":Q=parseInt(W[w].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}if(ye&&(y[p][g]&&y[p][g].length==2?y[p][g][0]=re:y[p][g]=re,k=null),Se){if(ie)throw new Error("SYLK shared formula cannot have own formula");var M=we>-1&&y[we][Q];if(!M||!M[1])throw new Error("SYLK shared formula cannot find base");y[p][g][1]=pR(M[1],{r:p-we,c:g-Q})}break;case"F":var b=0;for(w=1;w<W.length;++w)switch(W[w].charAt(0)){case"X":g=parseInt(W[w].slice(1))-1,++b;break;case"Y":for(p=parseInt(W[w].slice(1))-1,V=y.length;V<=p;++V)y[V]=[];break;case"M":L=parseInt(W[w].slice(1))/20;break;case"F":break;case"G":break;case"P":k=_[parseInt(W[w].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(R=W[w].slice(1).split(" "),V=parseInt(R[0],10);V<=parseInt(R[1],10);++V)L=parseInt(R[2],10),A[V-1]=L===0?{hidden:!0}:{wch:L},$d(A[V-1]);break;case"C":g=parseInt(W[w].slice(1))-1,A[g]||(A[g]={});break;case"R":p=parseInt(W[w].slice(1))-1,S[p]||(S[p]={}),L>0?(S[p].hpt=L,S[p].hpx=ow(L)):L===0&&(S[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}b<1&&(k=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+U)}}return S.length>0&&(N["!rows"]=S),A.length>0&&(N["!cols"]=A),h&&h.sheetRows&&(y=y.slice(0,h.sheetRows)),[y,N]}function a(d,h){var m=i(d,h),p=m[0],g=m[1],x=So(p,h);return Et(g).forEach(function(w){x[w]=g[w]}),x}function s(d,h){return mi(a(d,h),h)}function l(d,h,m,p){var g="C;Y"+(m+1)+";X"+(p+1)+";K";switch(d.t){case"n":g+=d.v||0,d.f&&!d.F&&(g+=";E"+Md(d.f,{r:m,c:p}));break;case"b":g+=d.v?"TRUE":"FALSE";break;case"e":g+=d.w||d.v;break;case"d":g+='"'+(d.w||d.v)+'"';break;case"s":g+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function u(d,h){h.forEach(function(m,p){var g="F;W"+(p+1)+" "+(p+1)+" ";m.hidden?g+="0":(typeof m.width=="number"&&!m.wpx&&(m.wpx=Ul(m.width)),typeof m.wpx=="number"&&!m.wch&&(m.wch=Hl(m.wpx)),typeof m.wch=="number"&&(g+=Math.round(m.wch))),g.charAt(g.length-1)!=" "&&d.push(g)})}function c(d,h){h.forEach(function(m,p){var g="F;";m.hidden?g+="M0;":m.hpt?g+="M"+20*m.hpt+";":m.hpx&&(g+="M"+20*Vl(m.hpx)+";"),g.length>2&&d.push(g+"R"+(p+1))})}function f(d,h){var m=["ID;PWXL;N;E"],p=[],g=Ge(d["!ref"]),x,w=Array.isArray(d),y=`\r
`;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),d["!cols"]&&u(m,d["!cols"]),d["!rows"]&&c(m,d["!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 _=g.s.r;_<=g.e.r;++_)for(var k=g.s.c;k<=g.e.c;++k){var N=Be({r:_,c:k});x=w?(d[_]||[])[k]:d[N],!(!x||x.v==null&&(!x.f||x.F))&&p.push(l(x,d,_,k))}return m.join(y)+y+p.join(y)+y+"E"+y}return{to_workbook:s,to_sheet:a,from_sheet:f}}(),mA=function(){function e(o,a){switch(a.type){case"base64":return t(tn(o),a);case"binary":return t(o,a);case"buffer":return t($e&&Buffer.isBuffer(o)?o.toString("binary"):Qa(o),a);case"array":return t(Eu(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 d=s[c].trim().split(","),h=d[0],m=d[1];++c;for(var p=s[c]||"";(p.match(/["]/g)||[]).length&1&&c<s.length-1;)p+=`
`+s[++c];switch(p=p.trim(),+h){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(Qr(m))?isNaN(Ma(m).getDate())?f[l][u]=m:f[l][u]=$t(m):f[l][u]=Qr(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 So(e(o,a),a)}function n(o,a){return mi(r(o,a),a)}var i=function(){var o=function(l,u,c,f,d){l.push(u),l.push(c+","+f),l.push('"'+d.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,d=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 h=c.s.r;h<=c.e.r;++h){a(u,-1,0,"BOT");for(var m=c.s.c;m<=c.e.c;++m){var p=Be({r:h,c:m});if(f=d?(l[h]||[])[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=$n(f.z||et[14],zt($t(f.v)))),a(u,0,f.w,"V");break;default:a(u,1,0,"")}}}a(u,-1,0,"EOD");var x=`\r
`,w=u.join(x);return w}}();return{to_workbook:n,to_sheet:r,from_sheet:i}}(),tw=function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,d){for(var h=f.split(`
`),m=-1,p=-1,g=0,x=[];g!==h.length;++g){var w=h[g].trim().split(":");if(w[0]==="cell"){var y=ut(w[1]);if(x.length<=y.r)for(m=x.length;m<=y.r;++m)x[m]||(x[m]=[]);switch(m=y.r,p=y.c,w[2]){case"t":x[m][p]=e(w[3]);break;case"v":x[m][p]=+w[3];break;case"vtf":var _=w[w.length-1];case"vtc":switch(w[3]){case"nl":x[m][p]=!!+w[4];break;default:x[m][p]=+w[4];break}w[2]=="vtf"&&(x[m][p]=[x[m][p],_])}}}return d&&d.sheetRows&&(x=x.slice(0,d.sheetRows)),x}function n(f,d){return So(r(f,d),d)}function i(f,d){return mi(n(f,d),d)}var o=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),a=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),l="--SocialCalcSpreadsheetControlSave--";function u(f){if(!f||!f["!ref"])return"";for(var d=[],h=[],m,p="",g=Zt(f["!ref"]),x=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=Be({r:w,c:y}),m=x?(f[w]||[])[y]:f[p],!(!m||m.v==null||m.t==="z")){switch(h=["cell",p,"t"],m.t){case"s":case"str":h.push(t(m.v));break;case"n":m.f?(h[2]="vtf",h[3]="n",h[4]=m.v,h[5]=t(m.f)):(h[2]="v",h[3]=m.v);break;case"b":h[2]="vt"+(m.f?"f":"c"),h[3]="nl",h[4]=m.v?"1":"0",h[5]=t(m.f||(m.v?"TRUE":"FALSE"));break;case"d":var _=zt($t(m.v));h[2]="vtc",h[3]="nd",h[4]=""+_,h[5]=m.w||$n(m.z||et[14],_);break;case"e":continue}d.push(h.join(":"))}return d.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
`)}function c(f){return[o,a,s,a,u(f),l].join(`
`)}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),vA=function(){function e(c,f,d,h,m){m.raw?f[d][h]=c:c===""||(c==="TRUE"?f[d][h]=!0:c==="FALSE"?f[d][h]=!1:isNaN(Qr(c))?isNaN(Ma(c).getDate())?f[d][h]=c:f[d][h]=$t(c):f[d][h]=Qr(c))}function t(c,f){var d=f||{},h=[];if(!c||c.length===0)return h;for(var m=c.split(/[\r\n]/),p=m.length-1;p>=0&&m[p].length===0;)--p;for(var g=10,x=0,w=0;w<=p;++w)x=m[w].indexOf(" "),x==-1?x=m[w].length:x++,g=Math.max(g,x);for(w=0;w<=p;++w){h[w]=[];var y=0;for(e(m[w].slice(0,g).trim(),h,w,y,d),y=1;y<=(m[w].length-g)/10+1;++y)e(m[w].slice(g+(y-1)*10,g+y*10).trim(),h,w,y,d)}return d.sheetRows&&(h=h.slice(0,d.sheetRows)),h}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var f={},d=!1,h=0,m=0;h<c.length;++h)(m=c.charCodeAt(h))==34?d=!d:!d&&m in r&&(f[m]=(f[m]||0)+1);m=[];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&m.push([f[h],h]);if(!m.length){f=n;for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&m.push([f[h],h])}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 d=f||{},h="",m=d.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?(h=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(h=c.charAt(4),c=c.slice(6)):h=i(c.slice(0,1024)):d&&d.FS?h=d.FS:h=i(c.slice(0,1024));var g=0,x=0,w=0,y=0,_=0,k=h.charCodeAt(0),N=!1,S=0,A=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
`);var R=d.dateNF!=null?b4(d.dateNF):null;function L(){var V=c.slice(y,_),U={};if(V.charAt(0)=='"'&&V.charAt(V.length-1)=='"'&&(V=V.slice(1,-1).replace(/""/g,'"')),V.length===0)U.t="z";else if(d.raw)U.t="s",U.v=V;else if(V.trim().length===0)U.t="s",U.v=V;else if(V.charCodeAt(0)==61)V.charCodeAt(1)==34&&V.charCodeAt(V.length-1)==34?(U.t="s",U.v=V.slice(2,-1).replace(/""/g,'"')):gR(V)?(U.t="n",U.f=V.slice(1)):(U.t="s",U.v=V);else if(V=="TRUE")U.t="b",U.v=!0;else if(V=="FALSE")U.t="b",U.v=!1;else if(!isNaN(w=Qr(V)))U.t="n",d.cellText!==!1&&(U.w=V),U.v=w;else if(!isNaN(Ma(V).getDate())||R&&V.match(R)){U.z=d.dateNF||et[14];var W=0;R&&V.match(R)&&(V=k4(V,d.dateNF,V.match(R)||[]),W=1),d.cellDates?(U.t="d",U.v=$t(V,W)):(U.t="n",U.v=zt($t(V,W))),d.cellText!==!1&&(U.w=$n(U.z,U.v instanceof Date?zt(U.v):U.v)),d.cellNF||delete U.z}else U.t="s",U.v=V;if(U.t=="z"||(d.dense?(m[g]||(m[g]=[]),m[g][x]=U):m[Be({c:x,r:g})]=U),y=_+1,A=c.charCodeAt(y),p.e.c<x&&(p.e.c=x),p.e.r<g&&(p.e.r=g),S==k)++x;else if(x=0,++g,d.sheetRows&&d.sheetRows<=g)return!0}e:for(;_<c.length;++_)switch(S=c.charCodeAt(_)){case 34:A===34&&(N=!N);break;case k:case 10:case 13:if(!N&&L())break e;break}return _-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):So(t(c,f),f)}function s(c,f){var d="",h=f.type=="string"?[0,0,0,0]:FD(c,f);switch(f.type){case"base64":d=tn(c);break;case"binary":d=c;break;case"buffer":f.codepage==65001?d=c.toString("utf8"):f.codepage&&typeof jn<"u"?d=jn.utils.decode(f.codepage,c):d=$e&&Buffer.isBuffer(c)?c.toString("binary"):Qa(c);break;case"array":d=Eu(c);break;case"string":d=c;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?d=ha(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=ha(d):f.type=="binary"&&typeof jn<"u"&&f.codepage&&(d=jn.utils.decode(f.codepage,jn.utils.encode(28591,d))),d.slice(0,19)=="socialcalc:version:"?tw.to_sheet(f.type=="string"?d:ha(d),f):a(d,f)}function l(c,f){return mi(s(c,f),f)}function u(c){for(var f=[],d=Ge(c["!ref"]),h,m=Array.isArray(c),p=d.s.r;p<=d.e.r;++p){for(var g=[],x=d.s.c;x<=d.e.c;++x){var w=Be({r:p,c:x});if(h=m?(c[p]||[])[x]:c[w],!h||h.v==null){g.push(" ");continue}for(var y=(h.w||(rn(h),h.w)||"").slice(0,10);y.length<10;)y+=" ";g.push(y+(x===0?" ":""))}f.push(g.join(""))}return f.join(`
`)}return{to_workbook:l,to_sheet:s,from_sheet:u}}(),Ug=function(){function e(F,M,b){if(F){Kt(F,F.l||0);for(var T=b.Enum||we;F.l<F.length;){var B=F.read_shift(2),H=T[B]||T[65535],q=F.read_shift(2),ee=F.l+q,K=H.f&&H.f(F,q,b);if(F.l=ee,M(K,H,B))return}}}function t(F,M){switch(M.type){case"base64":return r(wr(tn(F)),M);case"binary":return r(wr(F),M);case"buffer":case"array":return r(F,M)}throw"Unsupported type "+M.type}function r(F,M){if(!F)return F;var b=M||{},T=b.dense?[]:{},B="Sheet1",H="",q=0,ee={},K=[],ve=[],pe={s:{r:0,c:0},e:{r:0,c:0}},De=b.sheetRows||0;if(F[2]==0&&(F[3]==8||F[3]==9)&&F.length>=16&&F[14]==5&&F[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(F[2]==2)b.Enum=we,e(F,function(ce,Mt,_t){switch(_t){case 0:b.vers=ce,ce>=4096&&(b.qpro=!0);break;case 6:pe=ce;break;case 204:ce&&(H=ce);break;case 222:H=ce;break;case 15:case 51:b.qpro||(ce[1].v=ce[1].v.slice(1));case 13:case 14:case 16:_t==14&&(ce[2]&112)==112&&(ce[2]&15)>1&&(ce[2]&15)<15&&(ce[1].z=b.dateNF||et[14],b.cellDates&&(ce[1].t="d",ce[1].v=xx(ce[1].v))),b.qpro&&ce[3]>q&&(T["!ref"]=nt(pe),ee[B]=T,K.push(B),T=b.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},q=ce[3],B=H||"Sheet"+(q+1),H="");var jt=b.dense?(T[ce[0].r]||[])[ce[0].c]:T[Be(ce[0])];if(jt){jt.t=ce[1].t,jt.v=ce[1].v,ce[1].z!=null&&(jt.z=ce[1].z),ce[1].f!=null&&(jt.f=ce[1].f);break}b.dense?(T[ce[0].r]||(T[ce[0].r]=[]),T[ce[0].r][ce[0].c]=ce[1]):T[Be(ce[0])]=ce[1];break}},b);else if(F[2]==26||F[2]==14)b.Enum=Q,F[2]==14&&(b.qpro=!0,F.l=0),e(F,function(ce,Mt,_t){switch(_t){case 204:B=ce;break;case 22:ce[1].v=ce[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ce[3]>q&&(T["!ref"]=nt(pe),ee[B]=T,K.push(B),T=b.dense?[]:{},pe={s:{r:0,c:0},e:{r:0,c:0}},q=ce[3],B="Sheet"+(q+1)),De>0&&ce[0].r>=De)break;b.dense?(T[ce[0].r]||(T[ce[0].r]=[]),T[ce[0].r][ce[0].c]=ce[1]):T[Be(ce[0])]=ce[1],pe.e.c<ce[0].c&&(pe.e.c=ce[0].c),pe.e.r<ce[0].r&&(pe.e.r=ce[0].r);break;case 27:ce[14e3]&&(ve[ce[14e3][0]]=ce[14e3][1]);break;case 1537:ve[ce[0]]=ce[1],ce[0]==q&&(B=ce[1]);break}},b);else throw new Error("Unrecognized LOTUS BOF "+F[2]);if(T["!ref"]=nt(pe),ee[H||B]=T,K.push(H||B),!ve.length)return{SheetNames:K,Sheets:ee};for(var _e={},je=[],Re=0;Re<ve.length;++Re)ee[K[Re]]?(je.push(ve[Re]||K[Re]),_e[ve[Re]]=ee[ve[Re]]||ee[K[Re]]):(je.push(ve[Re]),_e[ve[Re]]={"!ref":"A1"});return{SheetNames:je,Sheets:_e}}function n(F,M){var b=M||{};if(+b.codepage>=0&&$a(+b.codepage),b.type=="string")throw new Error("Cannot write WK1 to JS string");var T=Wt(),B=Ge(F["!ref"]),H=Array.isArray(F),q=[];ue(T,0,o(1030)),ue(T,6,l(B));for(var ee=Math.min(B.e.r,8191),K=B.s.r;K<=ee;++K)for(var ve=wt(K),pe=B.s.c;pe<=B.e.c;++pe){K===B.s.r&&(q[pe]=Rt(pe));var De=q[pe]+ve,_e=H?(F[K]||[])[pe]:F[De];if(!(!_e||_e.t=="z"))if(_e.t=="n")(_e.v|0)==_e.v&&_e.v>=-32768&&_e.v<=32767?ue(T,13,h(K,pe,_e.v)):ue(T,14,p(K,pe,_e.v));else{var je=rn(_e);ue(T,15,f(K,pe,je.slice(0,239)))}}return ue(T,1),T.end()}function i(F,M){var b=M||{};if(+b.codepage>=0&&$a(+b.codepage),b.type=="string")throw new Error("Cannot write WK3 to JS string");var T=Wt();ue(T,0,a(F));for(var B=0,H=0;B<F.SheetNames.length;++B)(F.Sheets[F.SheetNames[B]]||{})["!ref"]&&ue(T,27,ie(F.SheetNames[B],H++));var q=0;for(B=0;B<F.SheetNames.length;++B){var ee=F.Sheets[F.SheetNames[B]];if(!(!ee||!ee["!ref"])){for(var K=Ge(ee["!ref"]),ve=Array.isArray(ee),pe=[],De=Math.min(K.e.r,8191),_e=K.s.r;_e<=De;++_e)for(var je=wt(_e),Re=K.s.c;Re<=K.e.c;++Re){_e===K.s.r&&(pe[Re]=Rt(Re));var ce=pe[Re]+je,Mt=ve?(ee[_e]||[])[Re]:ee[ce];if(!(!Mt||Mt.t=="z"))if(Mt.t=="n")ue(T,23,L(_e,Re,q,Mt.v));else{var _t=rn(Mt);ue(T,22,S(_e,Re,q,_t.slice(0,239)))}}++q}}return ue(T,1),T.end()}function o(F){var M=J(2);return M.write_shift(2,F),M}function a(F){var M=J(26);M.write_shift(2,4096),M.write_shift(2,4),M.write_shift(4,0);for(var b=0,T=0,B=0,H=0;H<F.SheetNames.length;++H){var q=F.SheetNames[H],ee=F.Sheets[q];if(!(!ee||!ee["!ref"])){++B;var K=Zt(ee["!ref"]);b<K.e.r&&(b=K.e.r),T<K.e.c&&(T=K.e.c)}}return b>8191&&(b=8191),M.write_shift(2,b),M.write_shift(1,B),M.write_shift(1,T),M.write_shift(2,0),M.write_shift(2,0),M.write_shift(1,1),M.write_shift(1,2),M.write_shift(4,0),M.write_shift(4,0),M}function s(F,M,b){var T={s:{c:0,r:0},e:{c:0,r:0}};return M==8&&b.qpro?(T.s.c=F.read_shift(1),F.l++,T.s.r=F.read_shift(2),T.e.c=F.read_shift(1),F.l++,T.e.r=F.read_shift(2),T):(T.s.c=F.read_shift(2),T.s.r=F.read_shift(2),M==12&&b.qpro&&(F.l+=2),T.e.c=F.read_shift(2),T.e.r=F.read_shift(2),M==12&&b.qpro&&(F.l+=2),T.s.c==65535&&(T.s.c=T.e.c=T.s.r=T.e.r=0),T)}function l(F){var M=J(8);return M.write_shift(2,F.s.c),M.write_shift(2,F.s.r),M.write_shift(2,F.e.c),M.write_shift(2,F.e.r),M}function u(F,M,b){var T=[{c:0,r:0},{t:"n",v:0},0,0];return b.qpro&&b.vers!=20768?(T[0].c=F.read_shift(1),T[3]=F.read_shift(1),T[0].r=F.read_shift(2),F.l+=2):(T[2]=F.read_shift(1),T[0].c=F.read_shift(2),T[0].r=F.read_shift(2)),T}function c(F,M,b){var T=F.l+M,B=u(F,M,b);if(B[1].t="s",b.vers==20768){F.l++;var H=F.read_shift(1);return B[1].v=F.read_shift(H,"utf8"),B}return b.qpro&&F.l++,B[1].v=F.read_shift(T-F.l,"cstr"),B}function f(F,M,b){var T=J(7+b.length);T.write_shift(1,255),T.write_shift(2,M),T.write_shift(2,F),T.write_shift(1,39);for(var B=0;B<T.length;++B){var H=b.charCodeAt(B);T.write_shift(1,H>=128?95:H)}return T.write_shift(1,0),T}function d(F,M,b){var T=u(F,M,b);return T[1].v=F.read_shift(2,"i"),T}function h(F,M,b){var T=J(7);return T.write_shift(1,255),T.write_shift(2,M),T.write_shift(2,F),T.write_shift(2,b,"i"),T}function m(F,M,b){var T=u(F,M,b);return T[1].v=F.read_shift(8,"f"),T}function p(F,M,b){var T=J(13);return T.write_shift(1,255),T.write_shift(2,M),T.write_shift(2,F),T.write_shift(8,b,"f"),T}function g(F,M,b){var T=F.l+M,B=u(F,M,b);if(B[1].v=F.read_shift(8,"f"),b.qpro)F.l=T;else{var H=F.read_shift(2);_(F.slice(F.l,F.l+H),B),F.l+=H}return B}function x(F,M,b){var T=M&32768;return M&=-32769,M=(T?F:0)+(M>=8192?M-16384:M),(T?"":"$")+(b?Rt(M):wt(M))}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 _(F,M){Kt(F,0);for(var b=[],T=0,B="",H="",q="",ee="";F.l<F.length;){var K=F[F.l++];switch(K){case 0:b.push(F.read_shift(8,"f"));break;case 1:H=x(M[0].c,F.read_shift(2),!0),B=x(M[0].r,F.read_shift(2),!1),b.push(H+B);break;case 2:{var ve=x(M[0].c,F.read_shift(2),!0),pe=x(M[0].r,F.read_shift(2),!1);H=x(M[0].c,F.read_shift(2),!0),B=x(M[0].r,F.read_shift(2),!1),b.push(ve+pe+":"+H+B)}break;case 3:if(F.l<F.length){console.error("WK1 premature formula end");return}break;case 4:b.push("("+b.pop()+")");break;case 5:b.push(F.read_shift(2));break;case 6:{for(var De="";K=F[F.l++];)De+=String.fromCharCode(K);b.push('"'+De.replace(/"/g,'""')+'"')}break;case 8:b.push("-"+b.pop());break;case 23:b.push("+"+b.pop());break;case 22:b.push("NOT("+b.pop()+")");break;case 20:case 21:ee=b.pop(),q=b.pop(),b.push(["AND","OR"][K-20]+"("+q+","+ee+")");break;default:if(K<32&&y[K])ee=b.pop(),q=b.pop(),b.push(q+y[K]+ee);else if(w[K]){if(T=w[K][1],T==69&&(T=F[F.l++]),T>b.length){console.error("WK1 bad formula parse 0x"+K.toString(16)+":|"+b.join("|")+"|");return}var _e=b.slice(-T);b.length-=T,b.push(w[K][0]+"("+_e.join(",")+")")}else return K<=7?console.error("WK1 invalid opcode "+K.toString(16)):K<=24?console.error("WK1 unsupported op "+K.toString(16)):K<=30?console.error("WK1 invalid opcode "+K.toString(16)):K<=115?console.error("WK1 unsupported function opcode "+K.toString(16)):console.error("WK1 unrecognized opcode "+K.toString(16))}}b.length==1?M[1].f=""+b[0]:console.error("WK1 bad formula parse |"+b.join("|")+"|")}function k(F){var M=[{c:0,r:0},{t:"n",v:0},0];return M[0].r=F.read_shift(2),M[3]=F[F.l++],M[0].c=F[F.l++],M}function N(F,M){var b=k(F);return b[1].t="s",b[1].v=F.read_shift(M-4,"cstr"),b}function S(F,M,b,T){var B=J(6+T.length);B.write_shift(2,F),B.write_shift(1,b),B.write_shift(1,M),B.write_shift(1,39);for(var H=0;H<T.length;++H){var q=T.charCodeAt(H);B.write_shift(1,q>=128?95:q)}return B.write_shift(1,0),B}function A(F,M){var b=k(F);b[1].v=F.read_shift(2);var T=b[1].v>>1;if(b[1].v&1)switch(T&7){case 0:T=(T>>3)*5e3;break;case 1:T=(T>>3)*500;break;case 2:T=(T>>3)/20;break;case 3:T=(T>>3)/200;break;case 4:T=(T>>3)/2e3;break;case 5:T=(T>>3)/2e4;break;case 6:T=(T>>3)/16;break;case 7:T=(T>>3)/64;break}return b[1].v=T,b}function R(F,M){var b=k(F),T=F.read_shift(4),B=F.read_shift(4),H=F.read_shift(2);if(H==65535)return T===0&&B===3221225472?(b[1].t="e",b[1].v=15):T===0&&B===3489660928?(b[1].t="e",b[1].v=42):b[1].v=0,b;var q=H&32768;return H=(H&32767)-16446,b[1].v=(1-q*2)*(B*Math.pow(2,H+32)+T*Math.pow(2,H)),b}function L(F,M,b,T){var B=J(14);if(B.write_shift(2,F),B.write_shift(1,b),B.write_shift(1,M),T==0)return B.write_shift(4,0),B.write_shift(4,0),B.write_shift(2,65535),B;var H=0,q=0,ee=0,K=0;return T<0&&(H=1,T=-T),q=Math.log2(T)|0,T/=Math.pow(2,q-31),K=T>>>0,K&2147483648||(T/=2,++q,K=T>>>0),T-=K,K|=2147483648,K>>>=0,T*=Math.pow(2,32),ee=T>>>0,B.write_shift(4,ee),B.write_shift(4,K),q+=16383+(H?32768:0),B.write_shift(2,q),B}function V(F,M){var b=R(F);return F.l+=M-14,b}function U(F,M){var b=k(F),T=F.read_shift(4);return b[1].v=T>>6,b}function W(F,M){var b=k(F),T=F.read_shift(8,"f");return b[1].v=T,b}function Y(F,M){var b=W(F);return F.l+=M-10,b}function re(F,M){return F[F.l+M-1]==0?F.read_shift(M,"cstr"):""}function ye(F,M){var b=F[F.l++];b>M-1&&(b=M-1);for(var T="";T.length<b;)T+=String.fromCharCode(F[F.l++]);return T}function ge(F,M,b){if(!(!b.qpro||M<21)){var T=F.read_shift(1);F.l+=17,F.l+=1,F.l+=2;var B=F.read_shift(M-21,"cstr");return[T,B]}}function Se(F,M){for(var b={},T=F.l+M;F.l<T;){var B=F.read_shift(2);if(B==14e3){for(b[B]=[0,""],b[B][0]=F.read_shift(2);F[F.l];)b[B][1]+=String.fromCharCode(F[F.l]),F.l++;F.l++}}return b}function ie(F,M){var b=J(5+F.length);b.write_shift(2,14e3),b.write_shift(2,M);for(var T=0;T<F.length;++T){var B=F.charCodeAt(T);b[b.l++]=B>127?95:B}return b[b.l++]=0,b}var we={0:{n:"BOF",f:qx},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:d},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:re},222:{n:"SHEETNAMELP",f:ye},65535:{n:""}},Q={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:N},23:{n:"NUMBER17",f:R},24:{n:"NUMBER18",f:A},25:{n:"FORMULA19",f:V},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:Se},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:U},38:{n:"??"},39:{n:"NUMBER27",f:W},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:re},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:ge},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}}(),xA=/^\s|\s$|[\t\n\r]/;function rw(e,t){if(!t.bookSST)return"";var r=[it];r[r.length]=le("sst",null,{xmlns:_o[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(xA)&&(o+=' xml:space="preserve"'),o+=">"+Le(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 wA(e){return[e.read_shift(4),e.read_shift(4)]}function yA(e,t){return t||(t=J(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var EA=f3;function _A(e){var t=Wt();ne(t,159,yA(e));for(var r=0;r<e.length;++r)ne(t,19,EA(e[r]));return ne(t,160),t.end()}function SA(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function nw(e){var t=0,r,n=SA(e),i=n.length+1,o,a,s,l,u;for(r=oi(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 TA=function(){function e(i,o){switch(o.type){case"base64":return t(tn(i),o);case"binary":return t(i,o);case"buffer":return t($e&&Buffer.isBuffer(i)?i.toString("binary"):Qa(i),o);case"array":return t(Eu(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 d=/\\\w+\b/g,h=0,m,p=-1;m=d.exec(c);){switch(m[0]){case"\\cell":var g=c.slice(h,d.lastIndex-m[0].length);if(g[0]==" "&&(g=g.slice(1)),++p,g.length){var x={v:g,t:"s"};Array.isArray(s)?s[f][p]=x:s[Be({r:f,c:p})]=x}break}h=d.lastIndex}p>u.e.c&&(u.e.c=p)}),s["!ref"]=nt(u),s}function r(i,o){return mi(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=Be({r:u,c});s=l?(i[u]||[])[c]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(o.push(" "+(s.w||(rn(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 Hg(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 CA=6,Zr=CA;function Ul(e){return Math.floor((e+Math.round(128/Zr)/256)*Zr)}function Hl(e){return Math.floor((e-5)/Zr*100+.5)/100}function jf(e){return Math.round((e*Zr+5)/Zr*256)/256}function $d(e){e.width?(e.wpx=Ul(e.width),e.wch=Hl(e.wpx),e.MDW=Zr):e.wpx?(e.wch=Hl(e.wpx),e.width=jf(e.wch),e.MDW=Zr):typeof e.wch=="number"&&(e.width=jf(e.wch),e.wpx=Ul(e.width),e.MDW=Zr),e.customWidth&&delete e.customWidth}var AA=96,iw=AA;function Vl(e){return e*96/iw}function ow(e){return e*iw/96}function RA(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:Le(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=le("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function OA(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 aw(e,t){var r=[it,le("styleSheet",null,{xmlns:_o[0],"xmlns:vt":lt.vt})],n;return e.SSF&&(n=RA(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=OA(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 FA(e,t){var r=e.read_shift(2),n=Ot(e);return[r,n]}function DA(e,t,r){r||(r=J(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 PA(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=x3(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=v3(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Ot(e),n}function IA(e,t){t||(t=J(25+4*32)),t.write_shift(2,e.sz*20),w3(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),Ll(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 bA=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Rc,kA=br;function Vg(e,t){t||(t=J(4*3+8*7+16*1)),Rc||(Rc=Sd(bA));var r=Rc[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(Ll({auto:1},t),Ll({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 $A(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 sw(e,t,r){r||(r=J(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 zo(e,t){return t||(t=J(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var NA=br;function MA(e,t){return t||(t=J(51)),t.write_shift(1,0),zo(null,t),zo(null,t),zo(null,t),zo(null,t),zo(null,t),t.length>t.l?t.slice(0,t.l):t}function LA(e,t){return t||(t=J(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),Ml(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function BA(e,t,r){var n=J(2052);return n.write_shift(4,e),Ml(t,n),Ml(r,n),n.length>n.l?n.slice(0,n.l):n}function UA(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&&(ne(e,615,Sr(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&ne(e,44,DA(i,t[i]))}),ne(e,616))}}function HA(e){var t=1;ne(e,611,Sr(t)),ne(e,43,IA({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ne(e,612)}function VA(e){var t=2;ne(e,603,Sr(t)),ne(e,45,Vg({patternType:"none"})),ne(e,45,Vg({patternType:"gray125"})),ne(e,604)}function WA(e){var t=1;ne(e,613,Sr(t)),ne(e,46,MA()),ne(e,614)}function zA(e){var t=1;ne(e,626,Sr(t)),ne(e,47,sw({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ne(e,627)}function GA(e,t){ne(e,617,Sr(t.length)),t.forEach(function(r){ne(e,47,sw(r,0))}),ne(e,618)}function jA(e){var t=1;ne(e,619,Sr(t)),ne(e,48,LA({xfId:0,builtinId:0,name:"Normal"})),ne(e,620)}function XA(e){var t=0;ne(e,505,Sr(t)),ne(e,506)}function KA(e){var t=0;ne(e,508,BA(t,"TableStyleMedium9","PivotStyleMedium4")),ne(e,509)}function YA(e,t){var r=Wt();return ne(r,278),UA(r,e.SSF),HA(r),VA(r),WA(r),zA(r),GA(r,t.cellXfs),jA(r),XA(r),KA(r),ne(r,279),r.end()}function lw(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 qA(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ot(e)}}function QA(e){var t=J(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 ZA(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function JA(e){var t=J(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 eR(e,t){var r=J(8+2*t.length);return r.write_shift(4,e),ct(t,r),r.slice(0,r.l)}function tR(e){return e.l+=4,e.read_shift(4)!=0}function rR(e,t){var r=J(8);return r.write_shift(4,e),r.write_shift(4,t?1:0),r}function nR(){var e=Wt();return ne(e,332),ne(e,334,Sr(1)),ne(e,335,QA({name:"XLDAPR",version:12e4,flags:3496657072})),ne(e,336),ne(e,339,eR(1,"XLDAPR")),ne(e,52),ne(e,35,Sr(514)),ne(e,4096,Sr(0)),ne(e,4097,ir(1)),ne(e,36),ne(e,53),ne(e,340),ne(e,337,rR(1,!0)),ne(e,51,JA([[1,0]])),ne(e,338),ne(e,333),e.end()}function uw(){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>
<futureMetadata name="XLDAPR" count="1">
<bk>
<extLst>
<ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
<xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
</ext>
</extLst>
</bk>
</futureMetadata>
<cellMetadata count="1">
<bk>
<rc t="1" v="0"/>
</bk>
</cellMetadata>
</metadata>`),e.join("")}function iR(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=Be(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Wi=1024;function cw(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})];Wi<e*1e3;)Wi+=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"};++Wi,i=i.concat(["<v:shape"+La({id:"_x0000_s"+Wi,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 fw(e){var t=[it,le("comments",null,{xmlns:_o[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var o=Le(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(Le(l.a))),o.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),o.length<=1)t.push(vt("t",Le(o[0]||"")));else{for(var a=`Comment:
`+o[0]+`
`,s=1;s<o.length;++s)a+=`Reply:
`+o[s]+`
`;t.push(vt("t",Le(a)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function oR(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 aR(e){var t=[it,le("personList",null,{xmlns:lt.TCMNT,"xmlns:x":_o[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 sR(e){var t={};t.iauthor=e.read_shift(4);var r=yi(e);return t.rfx=r.s,t.ref=Be(r.s),e.l+=16,t}function lR(e,t){return t==null&&(t=J(36)),t.write_shift(4,e[1].iauthor),To(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 uR=Ot;function cR(e){return ct(e.slice(0,54))}function fR(e){var t=Wt(),r=[];return ne(t,628),ne(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),ne(t,632,cR(i.a)))})}),ne(t,631),ne(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])};ne(t,635,lR([o,i])),i.t&&i.t.length>0&&ne(t,637,h3(i)),ne(t,636),delete i.iauthor})}),ne(t,634),ne(t,629),t.end()}function dR(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 dw=["xlsb","xlsm","xlam","biff8","xla"],hR=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)}}(),Nd=/(^|[^._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,Md=function(){return function(t,r){return t.replace(Nd,function(n,i,o,a,s,l){var u=Dd(a)-(o?0:r.c),c=Fd(l)-(s?0:r.r),f=c==0?"":s?c+1:"["+c+"]",d=u==0?"":o?u+1:"["+u+"]";return i+"R"+f+"C"+d})}}();function pR(e,t){return e.replace(Nd,function(r,n,i,o,a,s){return n+(i=="$"?i+o:Rt(Dd(o)+t.c))+(a=="$"?a+s:wt(Fd(s)+t.r))})}function gR(e){return e.length!=1}function rt(e){e.l+=1}function Nn(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function hw(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return pw(e);r.biff==12&&(n=4)}var i=e.read_shift(n),o=e.read_shift(n),a=Nn(e,2),s=Nn(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 pw(e){var t=Nn(e,2),r=Nn(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 mR(e,t,r){if(r.biff<8)return pw(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),o=Nn(e,2),a=Nn(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 gw(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return vR(e);var n=e.read_shift(r&&r.biff==12?4:2),i=Nn(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function vR(e){var t=Nn(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function xR(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 wR(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return yR(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 yR(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 ER(e,t,r){var n=(e[e.l++]&96)>>5,i=hw(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function _R(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=hw(e,o,r);return[n,i,a]}function SR(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 TR(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 CR(e,t,r){var n=(e[e.l++]&96)>>5,i=mR(e,t-1,r);return[n,i]}function AR(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Wg(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function RR(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 OR(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 FR(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 DR(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function PR(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function mw(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function IR(e){return e.read_shift(2),mw(e)}function bR(e){return e.read_shift(2),mw(e)}function kR(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=gw(e,0,r);return[n,i]}function $R(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=wR(e,0,r);return[n,i]}function NR(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=gw(e,0,r);return[n,i,o]}function MR(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[MO[i],ww[i],n]}function LR(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)]:BR(e);return[i,(o[0]===0?ww:NO)[o[1]]]}function BR(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function UR(e,t,r){e.l+=r&&r.biff==2?3:4}function HR(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 VR(e){return e.l++,es[e.read_shift(1)]}function WR(e){return e.l++,e.read_shift(2)}function zR(e){return e.l++,e.read_shift(1)!==0}function GR(e){return e.l++,Co(e)}function jR(e,t,r){return e.l++,Zx(e,t-1,r)}function XR(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]=N3(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=es[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Co(e);break;case 2:r[1]=U3(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function KR(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?yi:W3)(e));return i}function YR(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]=XR(e,r.biff);return a}function qR(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 QR(e,t,r){if(r.biff==5)return ZR(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[n,i,o]}function ZR(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 JR(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 eO(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 tO(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 rO(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 nO=br,iO=br,oO=br;function ts(e,t,r){return e.l+=2,[xR(e)]}function Ld(e){return e.l+=6,[]}var aO=ts,sO=Ld,lO=Ld,uO=ts;function vw(e){return e.l+=2,[qx(e),e.read_shift(2)&1]}var cO=ts,fO=vw,dO=Ld,hO=ts,pO=ts,gO=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function mO(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=gO[r>>2&31];return{ixti:t,coltype:r&3,rt:a,idx:n,c:i,C:o}}function vO(e){return e.l+=2,[e.read_shift(4)]}function xO(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function wO(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function yO(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function EO(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function _O(e){return e.l+=4,[0,0]}var zg={1:{n:"PtgExp",f:HR},2:{n:"PtgTbl",f:oO},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:jR},26:{n:"PtgSheet",f:xO},27:{n:"PtgEndSheet",f:wO},28:{n:"PtgErr",f:VR},29:{n:"PtgBool",f:zR},30:{n:"PtgInt",f:WR},31:{n:"PtgNum",f:GR},32:{n:"PtgArray",f:AR},33:{n:"PtgFunc",f:MR},34:{n:"PtgFuncVar",f:LR},35:{n:"PtgName",f:qR},36:{n:"PtgRef",f:kR},37:{n:"PtgArea",f:ER},38:{n:"PtgMemArea",f:JR},39:{n:"PtgMemErr",f:nO},40:{n:"PtgMemNoMem",f:iO},41:{n:"PtgMemFunc",f:eO},42:{n:"PtgRefErr",f:tO},43:{n:"PtgAreaErr",f:SR},44:{n:"PtgRefN",f:$R},45:{n:"PtgAreaN",f:CR},46:{n:"PtgMemAreaN",f:yO},47:{n:"PtgMemNoMemN",f:EO},57:{n:"PtgNameX",f:QR},58:{n:"PtgRef3d",f:NR},59:{n:"PtgArea3d",f:_R},60:{n:"PtgRefErr3d",f:rO},61:{n:"PtgAreaErr3d",f:TR},255:{}},SO={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},TO={1:{n:"PtgElfLel",f:vw},2:{n:"PtgElfRw",f:hO},3:{n:"PtgElfCol",f:aO},6:{n:"PtgElfRwV",f:pO},7:{n:"PtgElfColV",f:uO},10:{n:"PtgElfRadical",f:cO},11:{n:"PtgElfRadicalS",f:dO},13:{n:"PtgElfColS",f:sO},15:{n:"PtgElfColSV",f:lO},16:{n:"PtgElfRadicalLel",f:fO},25:{n:"PtgList",f:mO},29:{n:"PtgSxName",f:vO},255:{}},CO={0:{n:"PtgAttrNoop",f:_O},1:{n:"PtgAttrSemi",f:PR},2:{n:"PtgAttrIf",f:FR},4:{n:"PtgAttrChoose",f:RR},8:{n:"PtgAttrGoto",f:OR},16:{n:"PtgAttrSum",f:UR},32:{n:"PtgAttrBaxcel",f:Wg},33:{n:"PtgAttrBaxcel",f:Wg},64:{n:"PtgAttrSpace",f:IR},65:{n:"PtgAttrSpaceSemi",f:bR},128:{n:"PtgAttrIfError",f:DR},255:{}};function AO(e,t,r,n){if(n.biff<8)return br(e,t);for(var i=e.l+t,o=[],a=0;a!==r.length;++a)switch(r[a][0]){case"PtgArray":r[a][1]=YR(e,0,n),o.push(r[a][1]);break;case"PtgMemArea":r[a][2]=KR(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(br(e,t)),o}function RO(e,t,r){for(var n=e.l+t,i,o,a=[];n!=e.l;)t=n-e.l,o=e[e.l],i=zg[o]||zg[SO[o]],(o===24||o===25)&&(i=(o===24?TO:CO)[e[e.l+1]]),!i||!i.f?br(e,t):a.push([i.n,i.f(e,t,r)]);return a}function OO(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 FO={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function DO(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 xw(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 Gg(e,t,r){var n=xw(e,t,r);return n=="#REF"?n:DO(n,r)}function co(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,d=0,h,m="";if(!e[0]||!e[0][0])return"";for(var p=-1,g="",x=0,w=e[0].length;x<w;++x){var y=e[0][x];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+FO[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=ga(y[1][1],a,i),s.push(ma(c,o));break;case"PtgRefN":c=r?ga(y[1][1],r,i):y[1][1],s.push(ma(c,o));break;case"PtgRef3d":f=y[1][1],c=ga(y[1][2],a,i),m=Gg(n,f,i),s.push(m+"!"+ma(c,o));break;case"PtgFunc":case"PtgFuncVar":var _=y[1][0],k=y[1][1];_||(_=0),_&=127;var N=_==0?[]:s.slice(-_);s.length-=_,k==="User"&&(k=N.shift()),s.push(k+"("+N.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":h=Fg(y[1][1],r?{s:r}:a,i),s.push(Cc(h,i));break;case"PtgArea":h=Fg(y[1][1],a,i),s.push(Cc(h,i));break;case"PtgArea3d":f=y[1][1],h=y[1][2],m=Gg(n,f,i),s.push(m+"!"+Cc(h,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=y[1][2];var S=(n.names||[])[d-1]||(n[0]||[])[d],A=S?S.Name:"SH33TJSNAME"+String(d);A&&A.slice(0,6)=="_xlfn."&&!i.xlfn&&(A=A.slice(6)),s.push(A);break;case"PtgNameX":var R=y[1][1];d=y[1][2];var L;if(i.biff<=5)R<0&&(R=-R),n[R]&&(L=n[R][d]);else{var V="";if(((n[R]||[])[0]||[])[0]==14849||(((n[R]||[])[0]||[])[0]==1025?n[R][d]&&n[R][d].itab>0&&(V=n.SheetNames[n[R][d].itab-1]+"!"):V=n.SheetNames[d-1]+"!"),n[R]&&n[R][d])V+=n[R][d].Name;else if(n[0]&&n[0][d])V+=n[0][d].Name;else{var U=(xw(n,R,i)||"").split(";;");U[d-1]?V=U[d-1]:V+="SH33TJSERRX"}s.push(V);break}L||(L={Name:"SH33TJSERRY"}),s.push(L.Name);break;case"PtgParen":var W="(",Y=")";if(p>=0){switch(g="",e[0][p][1][0]){case 2:W=Qe(" ",e[0][p][1][1])+W;break;case 3:W=Qe("\r",e[0][p][1][1])+W;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(W+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 re={c:r.c,r:r.r};if(n.sharedf[Be(c)]){var ye=n.sharedf[Be(c)];s.push(co(ye,a,re,n,i))}else{var ge=!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(co(u[1],a,re,n,i)),ge=!0;break}ge||s.push(y[1])}break;case"PtgArray":s.push("{"+OO(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=x;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 Se=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&Se.indexOf(e[0][x][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 PO(e){if(e==null){var t=J(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 ai(e);return ai(0)}function IO(e,t,r,n,i){var o=si(t,r,i),a=PO(e.v),s=J(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var u=J(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 _u(e,t,r){var n=e.read_shift(4),i=RO(e,n,r),o=e.read_shift(4),a=o>0?AO(e,o,i,r):null;return[i,a]}var bO=_u,Su=_u,kO=_u,$O=_u,NO={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"},ww={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"},MO={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 LO(e){var t="of:="+e.replace(Nd,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function BO(e){return e.replace(/\./,"!")}var va=typeof Map<"u";function Bd(e,t,r){var n=0,i=e.length;if(r){if(va?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var o=va?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&&(va?(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 Tu(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(Zr=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=Hl(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=jf(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 yw(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 Un(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){gx(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 UO(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 HO(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 VO(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=Gr(Le(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 WO=["objects","scenarios","selectLockedCells","selectUnlockedCells"],zO=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function GO(e){var t={sheet:1};return WO.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),zO.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=nw(e.password).toString(16).toUpperCase()),le("sheetProtection",null,t)}function jO(e){return yw(e),le("pageMargins",null,e)}function XO(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=le("col",null,Tu(i,n)));return r[r.length]="</cols>",r.join("")}function KO(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 YO(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 qO(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=es[e.v];break;case"d":n&&n.cellDates?i=$t(e.v,-1).toISOString():(e=Gt(e),e.t="n",i=""+(e.v=zt($t(e.v)))),typeof e.z>"u"&&(e.z=et[14]);break;default:i=e.v;break}var s=vt("v",Le(i)),l={r:t},u=Un(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",""+Bd(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",Le(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 QO(e,t,r,n){var i=[],o=[],a=Ge(e["!ref"]),s="",l,u="",c=[],f=0,d=0,h=e["!rows"],m=Array.isArray(e),p={r:u},g,x=-1;for(d=a.s.c;d<=a.e.c;++d)c[d]=Rt(d);for(f=a.s.r;f<=a.e.r;++f){for(o=[],u=wt(f),d=a.s.c;d<=a.e.c;++d){l=c[d]+u;var w=m?(e[f]||[])[d]:e[l];w!==void 0&&(s=qO(w,l,e,t))!=null&&o.push(s)}(o.length>0||h&&h[f])&&(p={r:u},h&&h[f]&&(g=h[f],g.hidden&&(p.hidden=1),x=-1,g.hpx?x=Vl(g.hpx):g.hpt&&(x=g.hpt),x>-1&&(p.ht=x,p.customHeight=1),g.level&&(p.outlineLevel=g.level)),i[i.length]=le("row",o.join(""),p))}if(h)for(;f<h.length;++f)h&&h[f]&&(p={r:f+1},g=h[f],g.hidden&&(p.hidden=1),x=-1,g.hpx?x=Vl(g.hpx):g.hpt&&(x=g.hpt),x>-1&&(p.ht=x,p.customHeight=1),g.level&&(p.outlineLevel=g.level),i[i.length]=le("row","",p));return i.join("")}function Ew(e,t,r,n){var i=[it,le("worksheet",null,{xmlns:_o[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=[];VO(l,r,e,t,i),i[i.length]=le("dimension",null,{ref:u}),i[i.length]=YO(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]=XO(l,l["!cols"])),i[a=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=QO(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]=GO(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=KO(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=HO(l["!merges"]));var d=-1,h,m=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(h={ref:p[0]},p[1].Target.charAt(0)!="#"&&(m=Me(n,-1,Le(p[1].Target).replace(/#.*$/,""),ke.HLINK),h["r:id"]="rId"+m),(d=p[1].Target.indexOf("#"))>-1&&(h.location=Le(p[1].Target.slice(d+1))),p[1].Tooltip&&(h.tooltip=Le(p[1].Tooltip)),i[i.length]=le("hyperlink",null,h))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=jO(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=vt("ignoredErrors",le("ignoredError",null,{numberStoredAsText:1,sqref:u}))),f.length>0&&(m=Me(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=Me(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 ZO(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 JO(e,t,r){var n=J(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var o=320;i.hpx?o=Vl(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,d=-1,h=c<<10;h<c+1<<10;++h){u.c=h;var m=Array.isArray(r)?(r[u.r]||[])[u.c]:r[Be(u)];m&&(f<0&&(f=h),d=h)}f<0||(++s,n.write_shift(4,f),n.write_shift(4,d))}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 eF(e,t,r,n){var i=JO(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&ne(e,0,i)}var tF=yi,rF=To;function nF(){}function iF(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=p3(e),r}function oF(e,t,r){r==null&&(r=J(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 Ll({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Nx(e,r),r.slice(0,r.l)}function aF(e){var t=hr(e);return[t]}function sF(e,t,r){return r==null&&(r=J(8)),vi(t,r)}function lF(e){var t=xi(e);return[t]}function uF(e,t,r){return r==null&&(r=J(4)),wi(t,r)}function cF(e){var t=hr(e),r=e.read_shift(1);return[t,r,"b"]}function fF(e,t,r){return r==null&&(r=J(9)),vi(t,r),r.write_shift(1,e.v?1:0),r}function dF(e){var t=xi(e),r=e.read_shift(1);return[t,r,"b"]}function hF(e,t,r){return r==null&&(r=J(5)),wi(t,r),r.write_shift(1,e.v?1:0),r}function pF(e){var t=hr(e),r=e.read_shift(1);return[t,r,"e"]}function gF(e,t,r){return r==null&&(r=J(9)),vi(t,r),r.write_shift(1,e.v),r}function mF(e){var t=xi(e),r=e.read_shift(1);return[t,r,"e"]}function vF(e,t,r){return r==null&&(r=J(8)),wi(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function xF(e){var t=hr(e),r=e.read_shift(4);return[t,r,"s"]}function wF(e,t,r){return r==null&&(r=J(12)),vi(t,r),r.write_shift(4,t.v),r}function yF(e){var t=xi(e),r=e.read_shift(4);return[t,r,"s"]}function EF(e,t,r){return r==null&&(r=J(8)),wi(t,r),r.write_shift(4,t.v),r}function _F(e){var t=hr(e),r=Co(e);return[t,r,"n"]}function SF(e,t,r){return r==null&&(r=J(16)),vi(t,r),ai(e.v,r),r}function TF(e){var t=xi(e),r=Co(e);return[t,r,"n"]}function CF(e,t,r){return r==null&&(r=J(12)),wi(t,r),ai(e.v,r),r}function AF(e){var t=hr(e),r=Mx(e);return[t,r,"n"]}function RF(e,t,r){return r==null&&(r=J(12)),vi(t,r),Lx(e.v,r),r}function OF(e){var t=xi(e),r=Mx(e);return[t,r,"n"]}function FF(e,t,r){return r==null&&(r=J(8)),wi(t,r),Lx(e.v,r),r}function DF(e){var t=hr(e),r=Pd(e);return[t,r,"is"]}function PF(e){var t=hr(e),r=Ot(e);return[t,r,"str"]}function IF(e,t,r){return r==null&&(r=J(12+4*e.v.length)),vi(t,r),ct(e.v,r),r.length>r.l?r.slice(0,r.l):r}function bF(e){var t=xi(e),r=Ot(e);return[t,r,"str"]}function kF(e,t,r){return r==null&&(r=J(8+4*e.v.length)),wi(t,r),ct(e.v,r),r.length>r.l?r.slice(0,r.l):r}function $F(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=Su(e,n-e.l,r);a[3]=co(s,null,i,r.supbooks,r)}else e.l=n;return a}function NF(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=Su(e,n-e.l,r);a[3]=co(s,null,i,r.supbooks,r)}else e.l=n;return a}function MF(e,t,r){var n=e.l+t,i=hr(e);i.r=r["!row"];var o=Co(e),a=[i,o,"n"];if(r.cellFormula){e.l+=2;var s=Su(e,n-e.l,r);a[3]=co(s,null,i,r.supbooks,r)}else e.l=n;return a}function LF(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=Su(e,n-e.l,r);a[3]=co(s,null,i,r.supbooks,r)}else e.l=n;return a}var BF=yi,UF=To;function HF(e,t){return t==null&&(t=J(4)),t.write_shift(4,e),t}function VF(e,t){var r=e.l+t,n=yi(e),i=Id(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 WF(e,t){var r=J(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));To({s:ut(e[0]),e:ut(e[0])},r),bd("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 zF(){}function GF(e,t,r){var n=e.l+t,i=Bx(e),o=e.read_shift(1),a=[i];if(a[2]=o,r.cellFormula){var s=bO(e,n-e.l,r);a[1]=s}else e.l=n;return a}function jF(e,t,r){var n=e.l+t,i=yi(e),o=[i];if(r.cellFormula){var a=$O(e,n-e.l,r);o[1]=a,e.l=n}else e.l=n;return o}function XF(e,t,r){r==null&&(r=J(18));var n=Tu(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 _w=["left","right","top","bottom","header","footer"];function KF(e){var t={};return _w.forEach(function(r){t[r]=Co(e)}),t}function YF(e,t){return t==null&&(t=J(6*8)),yw(e),_w.forEach(function(r){ai(e[r],t)}),t}function qF(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function QF(e,t,r){r==null&&(r=J(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 ZF(e){var t=J(24);return t.write_shift(4,4),t.write_shift(4,1),To(e,t),t}function JF(e,t){return t==null&&(t=J(16*4+2)),t.write_shift(2,e.password?nw(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 e6(){}function t6(){}function r6(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||et[14],t.v=zt($t(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=Un(i.cellXfs,t,i),t.l&&o["!links"].push([Be(l),t.l]),t.c&&o["!comments"].push([Be(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=Bd(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,a?ne(e,18,EF(t,l)):ne(e,7,wF(t,l))):(l.t="str",a?ne(e,17,kF(t,l)):ne(e,6,IF(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?a?ne(e,13,FF(t,l)):ne(e,2,RF(t,l)):a?ne(e,16,CF(t,l)):ne(e,5,SF(t,l)),!0;case"b":return l.t="b",a?ne(e,15,hF(t,l)):ne(e,4,fF(t,l)),!0;case"e":return l.t="e",a?ne(e,14,vF(t,l)):ne(e,3,gF(t,l)),!0}return a?ne(e,12,uF(t,l)):ne(e,1,sF(t,l)),!0}function n6(e,t,r,n){var i=Ge(t["!ref"]||"A1"),o,a="",s=[];ne(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),eF(e,t,i,c);var f=!1;if(c<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){c===i.s.r&&(s[d]=Rt(d)),o=s[d]+a;var h=l?(t[c]||[])[d]:t[o];if(!h){f=!1;continue}f=r6(e,h,c,d,n,t,f)}}ne(e,146)}function i6(e,t){!t||!t["!merges"]||(ne(e,177,HF(t["!merges"].length)),t["!merges"].forEach(function(r){ne(e,176,UF(r))}),ne(e,178))}function o6(e,t){!t||!t["!cols"]||(ne(e,390),t["!cols"].forEach(function(r,n){r&&ne(e,60,XF(n,r))}),ne(e,391))}function a6(e,t){!t||!t["!ref"]||(ne(e,648),ne(e,649,ZF(Ge(t["!ref"]))),ne(e,650))}function s6(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=Me(r,-1,n[1].Target.replace(/#.*$/,""),ke.HLINK);ne(e,494,WF(n,i))}}),delete t["!links"]}function l6(e,t,r,n){if(t["!comments"].length>0){var i=Me(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",ke.VML);ne(e,551,bd("rId"+i)),t["!legacy"]=i}}function u6(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}),ne(e,161,To(Ge(o))),ne(e,162)}}function c6(e,t,r){ne(e,133),ne(e,137,QF(t,r)),ne(e,138),ne(e,134)}function f6(e,t){t["!protect"]&&ne(e,535,JF(t["!protect"]))}function d6(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"]=[],ne(i,129),(r.vbaraw||a["!outline"])&&ne(i,147,oF(s,a["!outline"])),ne(i,148,rF(l)),c6(i,a,r.Workbook),o6(i,a),n6(i,a,e,t),f6(i,a),u6(i,a,r,e),i6(i,a),s6(i,a,n),a["!margins"]&&ne(i,476,YF(a["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&a6(i,a),l6(i,a,e,n),ne(i,130),i.end()}function h6(e,t){e.l+=10;var r=Ot(e);return{name:r}}var p6=[["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 g6(e){return!e.Workbook||!e.Workbook.WBProps?"false":j4(e.Workbook.WBProps.date1904)?"true":"false"}var m6="][*?/\\".split("");function Sw(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return m6.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function v6(e,t,r){e.forEach(function(n,i){Sw(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 x6(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||[];v6(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)UO(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function Tw(e){var t=[it];t[t.length]=le("workbook",null,{xmlns:_o[0],"xmlns:r":lt.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(p6.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:Le(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",Le(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function w6(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=Gf(e),r.name=Ot(e),r}function y6(e,t){return t||(t=J(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),bd(e.strRelID,t),ct(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function E6(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 _6(e,t){t||(t=J(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),Nx(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function S6(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=g3(e),a=kO(e,0,r),s=Id(e);e.l=n;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function T6(e,t){ne(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]};ne(e,156,y6(i))}ne(e,144)}function C6(e,t){t||(t=J(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return ct("SheetJS",t),ct(Pl.version,t),ct(Pl.version,t),ct("7262",t),t.length>t.l?t.slice(0,t.l):t}function A6(e,t){t||(t=J(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 R6(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||(ne(e,135),ne(e,158,A6(i)),ne(e,136))}}function O6(e,t){var r=Wt();return ne(r,131),ne(r,128,C6()),ne(r,153,_6(e.Workbook&&e.Workbook.WBProps||null)),R6(r,e),T6(r,e),ne(r,132),r.end()}function F6(e,t,r){return(t.slice(-4)===".bin"?O6:Tw)(e)}function D6(e,t,r,n,i){return(t.slice(-4)===".bin"?d6:Ew)(e,r,n,i)}function P6(e,t,r){return(t.slice(-4)===".bin"?YA:aw)(e,r)}function I6(e,t,r){return(t.slice(-4)===".bin"?_A:rw)(e,r)}function b6(e,t,r){return(t.slice(-4)===".bin"?fR:fw)(e)}function k6(e){return(e.slice(-4)===".bin"?nR:uw)()}function $6(e,t){var r=[];return e.Props&&r.push(P3(e.Props,t)),e.Custprops&&r.push(I3(e.Props,e.Custprops)),r.join("")}function N6(){return""}function M6(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":Le(et[n.numFmtId])}));var a={"ss:ID":"s"+(21+i)};r.push(le("Style",o.join(""),a))}),le("Styles",r.join(""))}function Cw(e){return le("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Md(e.Ref,{r:0,c:0})})}function L6(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(Cw(i)))}return le("Names",r.join(""))}function B6(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(Cw(s)))}return o.join("")}function U6(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 H6(e){return e.map(function(t){var r=G4(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 V6(e,t,r,n,i,o,a){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+Le(Md(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"]=Le(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=Le(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="",d="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",d=String(e.v);break;case"b":f="Boolean",d=e.v?"1":"0";break;case"e":f="Error",d=es[e.v];break;case"d":f="DateTime",d=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||et[14]);break;case"s":f="String",d=z4(e.v||"");break}var h=Un(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=a.c+1;var m=e.v!=null?d:"",p=e.t=="z"?"":'<Data ss:Type="'+f+'">'+m+"</Data>";return(e.c||[]).length>0&&(p+=H6(e.c)),le("Cell",p,s)}function W6(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=ow(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function z6(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,x){$d(g);var w=!!g.width,y=Tu(x,g),_={"ss:Index":x+1};w&&(_["ss:Width"]=Ul(y.width)),g.hidden&&(_["ss:Hidden"]="1"),s.push(le("Column",null,_))});for(var l=Array.isArray(e),u=i.s.r;u<=i.e.r;++u){for(var c=[W6(u,(e["!rows"]||[])[u])],f=i.s.c;f<=i.e.c;++f){var d=!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)&&(d=!0);break}if(!d){var h={r:u,c:f},m=Be(h),p=l?(e[u]||[])[f]:e[m];c.push(V6(p,m,e,t,r,n,h))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function G6(e,t,r){var n=[],i=r.SheetNames[e],o=r.Sheets[i],a=o?B6(o,t,e,r):"";return a.length>0&&n.push("<Names>"+a+"</Names>"),a=o?z6(o,t,e,r):"",a.length>0&&n.push("<Table>"+a+"</Table>"),n.push(U6(o,t,e,r)),n.join("")}function j6(e,t){t||(t={}),e.SSF||(e.SSF=Gt(et)),e.SSF&&(wu(),xu(e.SSF),t.revssf=yu(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Un(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push($6(e,t)),r.push(N6()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(le("Worksheet",G6(n,t,e),{"ss:Name":Le(e.SheetNames[n])}));return r[2]=M6(e,t),r[3]=L6(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 Oc={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function X6(e,t){var r=[],n=[],i=[],o=0,a,s=xg(Pg,"n"),l=xg(Ig,"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)Yx.indexOf(i[o][0])>-1||jx.indexOf(i[o][0])>-1||i[o][1]!=null&&u.push(i[o]);n.length&&Ue.utils.cfb_add(t,"/SummaryInformation",Mg(n,Oc.SI,l,Ig)),(r.length||u.length)&&Ue.utils.cfb_add(t,"/DocumentSummaryInformation",Mg(r,Oc.DSI,s,Pg,u.length?u:null,Oc.UDI))}function K6(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,Aw(e,r)),r.biff==8&&(e.Props||e.Custprops)&&X6(e,n),r.biff==8&&e.vbaraw&&dR(n,Ue.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Y6={0:{f:ZO},1:{f:aF},2:{f:AF},3:{f:pF},4:{f:cF},5:{f:_F},6:{f:PF},7:{f:xF},8:{f:LF},9:{f:MF},10:{f:$F},11:{f:NF},12:{f:lF},13:{f:OF},14:{f:mF},15:{f:dF},16:{f:TF},17:{f:bF},18:{f:yF},19:{f:Pd},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:S6},40:{},42:{},43:{f:PA},44:{f:FA},45:{f:kA},46:{f:NA},47:{f:$A},48:{},49:{f:l3},50:{},51:{f:ZA},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:uA},62:{f:DF},63:{f:iR},64:{f:e6},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:br,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:qF},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:iF},148:{f:tF,p:16},151:{f:zF},152:{},153:{f:E6},154:{},155:{},156:{f:w6},157:{},158:{},159:{T:1,f:wA},160:{T:-1},161:{T:1,f:yi},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:BF},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:qA},336:{T:-1},337:{f:tR,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:Gf},357:{},358:{},359:{},360:{T:1},361:{},362:{f:nA},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:GF},427:{f:jF},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:KF},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:nF},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:VF},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:Gf},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:uR},633:{T:1},634:{T:-1},635:{T:1,f:sR},636:{T:-1},637:{f:d3},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:h6},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:t6},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&&Od(r)&&e.push(r)}}function q6(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 rs(e,t,r){return e||(e=J(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function Q6(e,t,r,n){var i=J(9);return rs(i,e,t),Qx(r,n||"b",i),i}function Z6(e,t,r){var n=J(8+2*r.length);return rs(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 J6(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?zt($t(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?ue(e,2,hA(r,n,i)):ue(e,3,dA(r,n,i));return;case"b":case"e":ue(e,5,Q6(r,n,t.v,t.t));return;case"s":case"str":ue(e,4,Z6(r,n,(t.v||"").slice(0,255)));return}ue(e,1,rs(null,r,n))}function eD(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&&J6(e,f,u,c)}}}function tD(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,kd(e,16,r)),eD(n,e.Sheets[e.SheetNames[i]],i,r),ue(n,10),n.end()}function rD(e,t,r){ue(e,49,Y3({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}function nD(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,Z3(i,t[i],r))})}function iD(e,t){var r=J(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=J(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),ew(Ge(t["!ref"]||"A1"),r),r.write_shift(4,4),ue(e,2152,r)}function oD(e,t){for(var r=0;r<16;++r)ue(e,224,Bg({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){ue(e,224,Bg(n,0,t))})}function aD(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];ue(e,440,aA(n)),n[1].Tooltip&&ue(e,2048,sA(n))}delete t["!links"]}function sD(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&ue(e,125,cA(Tu(i,n),i))})}}function lD(e,t,r,n,i){var o=16+Un(i.cellXfs,t,i);if(t.v==null&&!t.bf){ue(e,513,si(r,n,o));return}if(t.bf)ue(e,6,IO(t,r,n,i,o));else switch(t.t){case"d":case"n":var a=t.t=="d"?zt($t(t.v)):t.v;ue(e,515,rA(r,n,a,o));break;case"b":case"e":ue(e,517,tA(r,n,t.v,o,i,t.t));break;case"s":case"str":if(i.bookSST){var s=Bd(i.Strings,t.v,i.revStrings);ue(e,253,q3(r,n,s,o))}else ue(e,516,Q3(r,n,(t.v||"").slice(0,255),o,i));break;default:ue(e,513,si(r,n,o))}}function uD(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="",d=[],h=Ge(o["!ref"]||"A1"),m=u?65536:16384;if(h.e.c>255||h.e.r>=m){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,m-1)}ue(n,2057,kd(r,16,t)),ue(n,13,ir(1)),ue(n,12,ir(100)),ue(n,15,It(!0)),ue(n,17,It(!1)),ue(n,16,ai(.001)),ue(n,95,It(!0)),ue(n,42,It(!1)),ue(n,43,It(!1)),ue(n,130,ir(1)),ue(n,128,eA([0,0])),ue(n,131,It(!1)),ue(n,132,It(!1)),u&&sD(n,o["!cols"]),ue(n,512,J3(h,t)),u&&(o["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=wt(p);for(var g=h.s.c;g<=h.e.c;++g){p===h.s.r&&(d[g]=Rt(g)),c=d[g]+f;var x=l?(o[p]||[])[g]:o[c];x&&(lD(n,x,p,g,t),u&&x.l&&o["!links"].push([c,x.l]))}}var w=s.CodeName||s.name||i;return u&&ue(n,574,K3((a.Views||[])[0])),u&&(o["!merges"]||[]).length&&ue(n,229,oA(o["!merges"])),u&&aD(n,o),ue(n,442,Jx(w)),u&&iD(n,o),ue(n,10),n.end()}function cD(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,kd(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,z3("SheetJS",r)),ue(n,66,ir(s?1200:1252)),s&&ue(n,353,ir(0)),s&&ue(n,448),ue(n,317,fA(e.SheetNames.length)),s&&e.vbaraw&&ue(n,211),s&&e.vbaraw){var u=a.CodeName||"ThisWorkbook";ue(n,442,Jx(u))}ue(n,156,ir(17)),ue(n,25,It(!1)),ue(n,18,It(!1)),ue(n,19,ir(0)),s&&ue(n,431,It(!1)),s&&ue(n,444,ir(0)),ue(n,61,X3()),ue(n,64,It(!1)),ue(n,141,ir(0)),ue(n,34,It(g6(e)=="true")),ue(n,14,It(!0)),s&&ue(n,439,It(!1)),ue(n,218,ir(0)),rD(n,e,r),nD(n,e.SSF,r),oD(n,r),s&&ue(n,352,It(!1));var c=n.end(),f=Wt();s&&ue(f,140,lA()),s&&r.Strings&&q6(f,252,j3(r.Strings)),ue(f,10);var d=f.end(),h=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+d.length;for(p=0;p<e.SheetNames.length;++p){var x=o[p]||{};ue(h,133,G3({pos:g,hs:x.Hidden||0,dt:0,name:e.SheetNames[p]},r)),g+=t[p].length}var w=h.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),d.length&&y.push(d),mt(y)}function fD(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=Gt(et)),e&&e.SSF&&(wu(),xu(e.SSF),r.revssf=yu(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Ud(r),r.cellXfs=[],Un(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=uD(i,r,e);return n.unshift(cD(e,n,r)),mt(n)}function Aw(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 fD(e,t);case 4:case 3:case 2:return tD(e,t)}throw new Error("invalid type "+o.bookType+" for BIFF")}function dD(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=Be({r,c:a}),f=n.dense?(e[r]||[])[a]:e[c],d=f&&f.v!=null&&(f.h||W4(f.w||(rn(f),f.w)||""))||"",h={};s>1&&(h.rowspan=s),l>1&&(h.colspan=l),n.editable?d='<span contenteditable="true">'+d+"</span>":f&&(h["data-t"]=f&&f.t||"z",f.v!=null&&(h["data-v"]=f.v),f.z!=null&&(h["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+f.l.Target+'">'+d+"</a>")),h.id=(n.id||"sjs")+"-"+c,o.push(le("td",d,h))}}var m="<tr>";return m+o.join("")+"</tr>"}var hD='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',pD="</body></html>";function gD(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function Rw(e,t){var r=t||{},n=r.header!=null?r.header:hD,i=r.footer!=null?r.footer:pD,o=[n],a=Zt(e["!ref"]);r.dense=Array.isArray(e),o.push(gD(e,a,r));for(var s=a.s.r;s<=a.e.r;++s)o.push(dD(e,a,s,r));return o.push("</table>"+i),o.join("")}function Ow(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=[],d=0,h=e["!rows"]||(e["!rows"]=[]),m=0,p=0,g=0,x=0,w=0,y=0;for(e["!cols"]||(e["!cols"]=[]);m<s.length&&p<l;++m){var _=s[m];if(jg(_)){if(n.display)continue;h[p]={hidden:!0}}var k=_.children;for(g=x=0;g<k.length;++g){var N=k[g];if(!(n.display&&jg(N))){var S=N.hasAttribute("data-v")?N.getAttribute("data-v"):N.hasAttribute("v")?N.getAttribute("v"):X4(N.innerHTML),A=N.getAttribute("data-z")||N.getAttribute("z");for(d=0;d<f.length;++d){var R=f[d];R.s.c==x+o&&R.s.r<p+i&&p+i<=R.e.r&&(x=R.e.c+1-o,d=-1)}y=+N.getAttribute("colspan")||1,((w=+N.getAttribute("rowspan")||1)>1||y>1)&&f.push({s:{r:p+i,c:x+o},e:{r:p+i+(w||1)-1,c:x+o+(y||1)-1}});var L={t:"s",v:S},V=N.getAttribute("data-t")||N.getAttribute("t")||"";S!=null&&(S.length==0?L.t=V||"z":n.raw||S.trim().length==0||V=="s"||(S==="TRUE"?L={t:"b",v:!0}:S==="FALSE"?L={t:"b",v:!1}:isNaN(Qr(S))?isNaN(Ma(S).getDate())||(L={t:"d",v:$t(S)},n.cellDates||(L={t:"n",v:zt(L.v)}),L.z=n.dateNF||et[14]):L={t:"n",v:Qr(S)})),L.z===void 0&&A!=null&&(L.z=A);var U="",W=N.getElementsByTagName("A");if(W&&W.length)for(var Y=0;Y<W.length&&!(W[Y].hasAttribute("href")&&(U=W[Y].getAttribute("href"),U.charAt(0)!="#"));++Y);U&&U.charAt(0)!="#"&&(L.l={Target:U}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][x+o]=L):e[Be({c:x+o,r:p+i})]=L,u.e.c<x+o&&(u.e.c=x+o),x+=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 Fw(e,t){var r=t||{},n=r.dense?[]:{};return Ow(n,e,t)}function mD(e,t){return mi(Fw(e,t),t)}function jg(e){var t="",r=vD(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function vD(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var xD=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 "+La({"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}}(),Xg=function(){var e=function(o){return Le(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="'+Le(a.SheetNames[s])+`" table:style-name="ta1">
`);var u=0,c=0,f=Zt(o["!ref"]||"A1"),d=o["!merges"]||[],h=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 x=!1,w={},y="";for(h=0;h!=d.length;++h)if(!(d[h].s.c>c)&&!(d[h].s.r>u)&&!(d[h].e.c<c)&&!(d[h].e.r<u)){(d[h].s.c!=c||d[h].s.r!=u)&&(x=!0),w["table:number-columns-spanned"]=d[h].e.c-d[h].s.c+1,w["table:number-rows-spanned"]=d[h].e.r-d[h].s.r+1;break}if(x){l.push(r);continue}var _=Be({r:u,c}),k=m?(o[u]||[])[c]:o[_];if(k&&k.f&&(w["table:formula"]=Le(LO(k.f)),k.F&&k.F.slice(0,_.length)==_)){var N=Zt(k.F);w["table:number-matrix-columns-spanned"]=N.e.c-N.s.c+1,w["table:number-matrix-rows-spanned"]=N.e.r-N.s.r+1}if(!k){l.push(t);continue}switch(k.t){case"b":y=k.v?"TRUE":"FALSE",w["office:value-type"]="boolean",w["office:boolean-value"]=k.v?"true":"false";break;case"n":y=k.w||String(k.v||0),w["office:value-type"]="float",w["office:value"]=k.v||0;break;case"s":case"str":y=k.v==null?"":k.v,w["office:value-type"]="string";break;case"d":y=k.w||$t(k.v).toISOString(),w["office:value-type"]="date",w["office:date-value"]=$t(k.v).toISOString(),w["table:style-name"]="ce1";break;default:l.push(t);continue}var S=e(y);if(k.l&&k.l.Target){var A=k.l.Target;A=A.charAt(0)=="#"?"#"+BO(A.slice(1)):A,A.charAt(0)!="#"&&!A.match(/^\w+:/)&&(A="../"+A),S=le("text:a",S,{"xlink:href":A.replace(/&/g,"&amp;")})}l.push(" "+le("table:table-cell",le("text:p",S,{}),w)+`
`)}l.push(` </table:table-row>
`)}return l.push(` </table:table>
`),l.join("")},i=function(o,a){o.push(` <office:automatic-styles>
`),o.push(` <number:date-style style:name="N37" number:automatic-order="true">
`),o.push(` <number:month number:style="long"/>
`),o.push(` <number:text>/</number:text>
`),o.push(` <number:day number:style="long"/>
`),o.push(` <number:text>/</number:text>
`),o.push(` <number:year/>
`),o.push(` </number:date-style>
`);var s=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!cols"]){for(var c=0;c<u["!cols"].length;++c)if(u["!cols"][c]){var f=u["!cols"][c];if(f.width==null&&f.wpx==null&&f.wch==null)continue;$d(f),f.ods=s;var d=u["!cols"][c].wpx+"px";o.push(' <style:style style:name="co'+s+`" style:family="table-column">
`),o.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+d+`"/>
`),o.push(` </style:style>
`),++s}}});var l=0;a.SheetNames.map(function(u){return a.Sheets[u]}).forEach(function(u){if(u&&u["!rows"]){for(var c=0;c<u["!rows"].length;++c)if(u["!rows"][c]){u["!rows"][c].ods=l;var f=u["!rows"][c].hpx+"px";o.push(' <style:style style:name="ro'+l+`" style:family="table-row">
`),o.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+f+`"/>
`),o.push(` </style:style>
`),++l}}}),o.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),o.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),o.push(` </style:style>
`),o.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),o.push(` </office:automatic-styles>
`)};return function(a,s){var l=[it],u=La({"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:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=La({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push("<office:document"+u+c+`>
`),l.push(zx().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+u+`>
`),i(l,a),l.push(` <office:body>
`),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 Dw(e,t){if(t.bookType=="fods")return Xg(e,t);var r=Td(),n="",i=[],o=[];return n="mimetype",Pe(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Pe(r,n,Xg(e,t)),i.push([n,"text/xml"]),o.push([n,"ContentFile"]),n="styles.xml",Pe(r,n,xD(e,t)),i.push([n,"text/xml"]),o.push([n,"StylesFile"]),n="meta.xml",Pe(r,n,it+zx()),i.push([n,"text/xml"]),o.push([n,"MetadataFile"]),n="manifest.rdf",Pe(r,n,D3(o)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Pe(r,n,O3(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Wl(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function wD(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):wr(Gr(e))}function yD(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 Mn(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 ED(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 Ba(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 no(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=Ba(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=Ba(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))})}),Mn(t)}function gr(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=Ba(e,n),o=ot(e.slice(n[0],n[0]+i));n[0]+=i;var a={id:no(o[1][0].data),messages:[]};o[2].forEach(function(s){var l=ot(s.data),u=no(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=no(o[3][0].data)>>>0>0),r.push(a)}return r}function Di(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)})}),Mn(t)}function _D(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Ba(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=[Mn(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=Mn(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(_D(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return Mn(t)}function Pi(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 Mn(t)}function Fc(e,t){var r=new Uint8Array(32),n=Wl(r),i=12,o=0;switch(r[0]=5,e.t){case"n":r[1]=2,ED(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 Dc(e,t){var r=new Uint8Array(32),n=Wl(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 ln(e){var t=ot(e);return Ba(t[1][0].data)}function SD(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)&&no(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,u=Wl(e[7][0].data),c=0,f=[],d=Wl(e[4][0].data),h=0,m=[],p=0;p<t.length;++p){if(t[p]==null){u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535);continue}u.setUint16(p*2,c,!0),d.setUint16(p*2,h,!0);var g,x;switch(typeof t[p]){case"string":g=Fc({t:"s",v:t[p]},r),x=Dc({t:"s",v:t[p]},r);break;case"number":g=Fc({t:"n",v:t[p]},r),x=Dc({t:"n",v:t[p]},r);break;case"boolean":g=Fc({t:"b",v:t[p]},r),x=Dc({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(g),c+=g.length,m.push(x),h+=x.length,++l}for(e[2][0].data=Ne(l);p<e[7][0].data.length/2;++p)u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535,!0);return e[6][0].data=Mn(f),e[3][0].data=Mn(m),l}function TD(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=zl(r,{range:n,header:1}),a=["~Sh33tJ5~"];o.forEach(function(M){return M.forEach(function(b){typeof b=="string"&&a.push(b)})});var s={},l=[],u=Ue.read(t.numbers,{type:"base64"});u.FileIndex.map(function(M,b){return[M,u.FullPaths[b]]}).forEach(function(M){var b=M[0],T=M[1];if(b.type==2&&b.name.match(/\.iwa/)){var B=b.content,H=mr(B),q=gr(H);q.forEach(function(ee){l.push(ee.id),s[ee.id]={deps:[],location:T,type:no(ee.messages[0].meta[1][0].data)}})}}),l.sort(function(M,b){return M-b});var c=l.filter(function(M){return M>1}).map(function(M){return[M,Ne(M)]});u.FileIndex.map(function(M,b){return[M,u.FullPaths[b]]}).forEach(function(M){var b=M[0];if(M[1],!!b.name.match(/\.iwa/)){var T=gr(mr(b.content));T.forEach(function(B){B.messages.forEach(function(H){c.forEach(function(q){B.messages.some(function(ee){return no(ee.meta[1][0].data)!=11006&&yD(ee.data,q[1])})&&s[q[0]].deps.push(B.id)})})})}});for(var f=Ue.find(u,s[1].location),d=gr(mr(f.content)),h,m=0;m<d.length;++m){var p=d[m];p.id==1&&(h=p)}var g=ln(ot(h.messages[0].data)[1][0].data);for(f=Ue.find(u,s[g].location),d=gr(mr(f.content)),m=0;m<d.length;++m)p=d[m],p.id==g&&(h=p);for(g=ln(ot(h.messages[0].data)[2][0].data),f=Ue.find(u,s[g].location),d=gr(mr(f.content)),m=0;m<d.length;++m)p=d[m],p.id==g&&(h=p);for(g=ln(ot(h.messages[0].data)[2][0].data),f=Ue.find(u,s[g].location),d=gr(mr(f.content)),m=0;m<d.length;++m)p=d[m],p.id==g&&(h=p);var x=ot(h.messages[0].data);{x[6][0].data=Ne(n.e.r+1),x[7][0].data=Ne(n.e.c+1);var w=ln(x[46][0].data),y=Ue.find(u,s[w].location),_=gr(mr(y.content));{for(var k=0;k<_.length&&_[k].id!=w;++k);if(_[k].id!=w)throw"Bad ColumnRowUIDMapArchive";var N=ot(_[k].messages[0].data);N[1]=[],N[2]=[],N[3]=[];for(var S=0;S<=n.e.c;++S){var A=[];A[1]=A[2]=[{type:0,data:Ne(S+420690)}],N[1].push({type:2,data:dt(A)}),N[2].push({type:0,data:Ne(S)}),N[3].push({type:0,data:Ne(S)})}N[4]=[],N[5]=[],N[6]=[];for(var R=0;R<=n.e.r;++R)A=[],A[1]=A[2]=[{type:0,data:Ne(R+726270)}],N[4].push({type:2,data:dt(A)}),N[5].push({type:0,data:Ne(R)}),N[6].push({type:0,data:Ne(R)});_[k].messages[0].data=dt(N)}y.content=Pi(Di(_)),y.size=y.content.length,delete x[46];var L=ot(x[4][0].data);{L[7][0].data=Ne(n.e.r+1);var V=ot(L[1][0].data),U=ln(V[2][0].data);y=Ue.find(u,s[U].location),_=gr(mr(y.content));{if(_[0].id!=U)throw"Bad HeaderStorageBucket";var W=ot(_[0].messages[0].data);for(R=0;R<o.length;++R){var Y=ot(W[2][0].data);Y[1][0].data=Ne(R),Y[4][0].data=Ne(o[R].length),W[2][R]={type:W[2][0].type,data:dt(Y)}}_[0].messages[0].data=dt(W)}y.content=Pi(Di(_)),y.size=y.content.length;var re=ln(L[2][0].data);y=Ue.find(u,s[re].location),_=gr(mr(y.content));{if(_[0].id!=re)throw"Bad HeaderStorageBucket";for(W=ot(_[0].messages[0].data),S=0;S<=n.e.c;++S)Y=ot(W[2][0].data),Y[1][0].data=Ne(S),Y[4][0].data=Ne(n.e.r+1),W[2][S]={type:W[2][0].type,data:dt(Y)};_[0].messages[0].data=dt(W)}y.content=Pi(Di(_)),y.size=y.content.length;var ye=ln(L[4][0].data);(function(){for(var M=Ue.find(u,s[ye].location),b=gr(mr(M.content)),T,B=0;B<b.length;++B){var H=b[B];H.id==ye&&(T=H)}var q=ot(T.messages[0].data);{q[3]=[];var ee=[];a.forEach(function(pe,De){ee[1]=[{type:0,data:Ne(De)}],ee[2]=[{type:0,data:Ne(1)}],ee[3]=[{type:2,data:wD(pe)}],q[3].push({type:2,data:dt(ee)})})}T.messages[0].data=dt(q);var K=Di(b),ve=Pi(K);M.content=ve,M.size=M.content.length})();var ge=ot(L[3][0].data);{var Se=ge[1][0];delete ge[2];var ie=ot(Se.data);{var we=ln(ie[2][0].data);(function(){for(var M=Ue.find(u,s[we].location),b=gr(mr(M.content)),T,B=0;B<b.length;++B){var H=b[B];H.id==we&&(T=H)}var q=ot(T.messages[0].data);{delete q[6],delete ge[7];var ee=new Uint8Array(q[5][0].data);q[5]=[];for(var K=0,ve=0;ve<=n.e.r;++ve){var pe=ot(ee);K+=SD(pe,o[ve],a),pe[1][0].data=Ne(ve),q[5].push({data:dt(pe),type:2})}q[1]=[{type:0,data:Ne(n.e.c+1)}],q[2]=[{type:0,data:Ne(n.e.r+1)}],q[3]=[{type:0,data:Ne(K)}],q[4]=[{type:0,data:Ne(n.e.r+1)}]}T.messages[0].data=dt(q);var De=Di(b),_e=Pi(De);M.content=_e,M.size=M.content.length})()}Se.data=dt(ie)}L[3][0].data=dt(ge)}x[4][0].data=dt(L)}h.messages[0].data=dt(x);var Q=Di(d),F=Pi(Q);return f.content=F,f.size=f.content.length,u}function CD(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 Ud(e){CD([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function AD(e,t){return t.bookType=="ods"?Dw(e,t):t.bookType=="numbers"?TD(e,t):t.bookType=="xlsb"?RD(e,t):OD(e,t)}function RD(e,t){Wi=1024,e&&!e.SSF&&(e.SSF=Gt(et)),e&&e.SSF&&(wu(),xu(e.SSF),t.revssf=yu(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,va?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=dw.indexOf(t.bookType)>-1,i=Hx();Ud(t=t||{});var o=Td(),a="",s=0;if(t.cellXfs=[],Un(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",Pe(o,a,Gx(e.Props,t)),i.coreprops.push(a),Me(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,Pe(o,a,Xx(e.Props)),i.extprops.push(a),Me(t.rels,3,a,ke.EXT_PROPS),e.Custprops!==e.Props&&Et(e.Custprops||{}).length>0&&(a="docProps/custom.xml",Pe(o,a,Kx(e.Custprops)),i.custprops.push(a),Me(t.rels,4,a,ke.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var c={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],d=(f||{})["!type"]||"sheet";switch(d){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Pe(o,a,D6(s-1,a,t,e,c)),i.sheets.push(a),Me(t.wbrels,-1,"worksheets/sheet"+s+"."+r,ke.WS[0])}if(f){var h=f["!comments"],m=!1,p="";h&&h.length>0&&(p="xl/comments"+s+"."+r,Pe(o,p,b6(h,p)),i.comments.push(p),Me(c,-1,"../comments"+s+"."+r,ke.CMNT),m=!0),f["!legacy"]&&m&&Pe(o,"xl/drawings/vmlDrawing"+s+".vml",cw(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}c["!id"].rId1&&Pe(o,Wx(a),to(c))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,Pe(o,a,I6(t.Strings,a,t)),i.strs.push(a),Me(t.wbrels,-1,"sharedStrings."+r,ke.SST)),a="xl/workbook."+r,Pe(o,a,F6(e,a)),i.workbooks.push(a),Me(t.rels,1,a,ke.WB),a="xl/theme/theme1.xml",Pe(o,a,lw(e.Themes,t)),i.themes.push(a),Me(t.wbrels,-1,"theme/theme1.xml",ke.THEME),a="xl/styles."+r,Pe(o,a,P6(e,a,t)),i.styles.push(a),Me(t.wbrels,-1,"styles."+r,ke.STY),e.vbaraw&&n&&(a="xl/vbaProject.bin",Pe(o,a,e.vbaraw),i.vba.push(a),Me(t.wbrels,-1,"vbaProject.bin",ke.VBA)),a="xl/metadata."+r,Pe(o,a,k6(a)),i.metadata.push(a),Me(t.wbrels,-1,"metadata."+r,ke.XLMETA),Pe(o,"[Content_Types].xml",Vx(i,t)),Pe(o,"_rels/.rels",to(t.rels)),Pe(o,"xl/_rels/workbook."+r+".rels",to(t.wbrels)),delete t.revssf,delete t.ssf,o}function OD(e,t){Wi=1024,e&&!e.SSF&&(e.SSF=Gt(et)),e&&e.SSF&&(wu(),xu(e.SSF),t.revssf=yu(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,va?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=dw.indexOf(t.bookType)>-1,i=Hx();Ud(t=t||{});var o=Td(),a="",s=0;if(t.cellXfs=[],Un(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),a="docProps/core.xml",Pe(o,a,Gx(e.Props,t)),i.coreprops.push(a),Me(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,Pe(o,a,Xx(e.Props)),i.extprops.push(a),Me(t.rels,3,a,ke.EXT_PROPS),e.Custprops!==e.Props&&Et(e.Custprops||{}).length>0&&(a="docProps/custom.xml",Pe(o,a,Kx(e.Custprops)),i.custprops.push(a),Me(t.rels,4,a,ke.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},d=e.Sheets[e.SheetNames[s-1]],h=(d||{})["!type"]||"sheet";switch(h){case"chart":default:a="xl/worksheets/sheet"+s+"."+r,Pe(o,a,Ew(s-1,t,e,f)),i.sheets.push(a),Me(t.wbrels,-1,"worksheets/sheet"+s+"."+r,ke.WS[0])}if(d){var m=d["!comments"],p=!1,g="";if(m&&m.length>0){var x=!1;m.forEach(function(w){w[1].forEach(function(y){y.T==!0&&(x=!0)})}),x&&(g="xl/threadedComments/threadedComment"+s+"."+r,Pe(o,g,oR(m,c,t)),i.threadedcomments.push(g),Me(f,-1,"../threadedComments/threadedComment"+s+"."+r,ke.TCMNT)),g="xl/comments"+s+"."+r,Pe(o,g,fw(m)),i.comments.push(g),Me(f,-1,"../comments"+s+"."+r,ke.CMNT),p=!0}d["!legacy"]&&p&&Pe(o,"xl/drawings/vmlDrawing"+s+".vml",cw(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&Pe(o,Wx(a),to(f))}return t.Strings!=null&&t.Strings.length>0&&(a="xl/sharedStrings."+r,Pe(o,a,rw(t.Strings,t)),i.strs.push(a),Me(t.wbrels,-1,"sharedStrings."+r,ke.SST)),a="xl/workbook."+r,Pe(o,a,Tw(e)),i.workbooks.push(a),Me(t.rels,1,a,ke.WB),a="xl/theme/theme1.xml",Pe(o,a,lw(e.Themes,t)),i.themes.push(a),Me(t.wbrels,-1,"theme/theme1.xml",ke.THEME),a="xl/styles."+r,Pe(o,a,aw(e,t)),i.styles.push(a),Me(t.wbrels,-1,"styles."+r,ke.STY),e.vbaraw&&n&&(a="xl/vbaProject.bin",Pe(o,a,e.vbaraw),i.vba.push(a),Me(t.wbrels,-1,"vbaProject.bin",ke.VBA)),a="xl/metadata."+r,Pe(o,a,uw()),i.metadata.push(a),Me(t.wbrels,-1,"metadata."+r,ke.XLMETA),c.length>1&&(a="xl/persons/person.xml",Pe(o,a,aR(c)),i.people.push(a),Me(t.wbrels,-1,"persons/person.xml",ke.PEOPLE)),Pe(o,"[Content_Types].xml",Vx(i,t)),Pe(o,"_rels/.rels",to(t.rels)),Pe(o,"xl/_rels/workbook."+r+".rels",to(t.wbrels)),delete t.revssf,delete t.ssf,o}function FD(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=tn(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 Pw(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Za(t.file,Ue.write(e,{type:$e?"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 DD(e,t){var r=Gt(t||{}),n=AD(e,r);return PD(n,r)}function PD(e,t){var r={},n=$e?"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(vu(i))}return t.password&&typeof encrypt_agile<"u"?Pw(encrypt_agile(i,t.password),t):t.type==="file"?Za(t.file,i):t.type=="string"?ha(i):i}function ID(e,t){var r=t||{},n=K6(e,r);return Pw(n,r)}function Cr(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return Na(Gr(n));case"binary":return Gr(n);case"string":return e;case"file":return Za(t.file,n,"utf8");case"buffer":return $e?sn(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 bD(e,t){switch(t.type){case"base64":return Na(e);case"binary":return e;case"string":return e;case"file":return Za(t.file,e,"binary");case"buffer":return $e?sn(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function bs(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"?Na(r):t.type=="string"?ha(r):r;case"file":return Za(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Iw(e,t){a4(),x6(e);var r=Gt(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=Iw(e,r);return r.type="array",vu(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(j6(e,r),r);case"slk":case"sylk":return Cr(gA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return Cr(Rw(e.Sheets[e.SheetNames[i]],r),r);case"txt":return bD(bw(e.Sheets[e.SheetNames[i]],r),r);case"csv":return Cr(Hd(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return Cr(mA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return bs(pA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return Cr(vA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return Cr(TA.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return Cr(tw.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return Cr(Dw(e,r),r);case"wk1":return bs(Ug.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return bs(Ug.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),bs(Aw(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),ID(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return DD(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function kD(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 $D(e,t,r){var n=r||{};return n.type="file",n.file=t,kD(n),Iw(e,n)}function ND(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,d=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:r,enumerable:!1})}catch{d.__rowNum__=r}else d.__rowNum__=r;if(!a||e[r])for(var h=t.s.c;h<=t.e.c;++h){var m=a?e[r][h]:e[n[h]+l];if(m===void 0||m.t===void 0){if(u===void 0)continue;o[h]!=null&&(d[o[h]]=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[h]!=null){if(p==null)if(m.t=="e"&&p===null)d[o[h]]=null;else if(u!==void 0)d[o[h]]=u;else if(c&&p===null)d[o[h]]=null;else continue;else d[o[h]]=c&&(m.t!=="n"||m.t==="n"&&s.rawNumbers!==!1)?p:rn(m,p,s);p!=null&&(f=!1)}}return{row:d,isempty:f}}function zl(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),d=[],h=[],m=0,p=0,g=Array.isArray(e),x=l.s.r,w=0,y={};g&&!e[x]&&(e[x]=[]);var _=u.skipHidden&&e["!cols"]||[],k=u.skipHidden&&e["!rows"]||[];for(w=l.s.c;w<=l.e.c;++w)if(!(_[w]||{}).hidden)switch(d[w]=Rt(w),r=g?e[x][w]:e[d[w]+f],n){case 1:o[w]=w-l.s.c;break;case 2:o[w]=d[w];break;case 3:o[w]=u.header[w-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=a=rn(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(x=l.s.r+i;x<=l.e.r;++x)if(!(k[x]||{}).hidden){var N=ND(e,l,x,d,n,o,g,u);(N.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(h[m++]=N.row)}return h.length=m,h}var Kg=/"/g;function MD(e,t,r,n,i,o,a,s){for(var l=!0,u=[],c="",f=wt(r),d=t.s.c;d<=t.e.c;++d)if(n[d]){var h=s.dense?(e[r]||[])[d]:e[n[d]+f];if(h==null)c="";else if(h.v!=null){l=!1,c=""+(s.rawNumbers&&h.t=="n"?h.v:rn(h,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(Kg,'""')+'"';break}c=="ID"&&(c='"ID"')}else h.f!=null&&!h.F?(l=!1,c="="+h.f,c.indexOf(",")>=0&&(c='"'+c.replace(Kg,'""')+'"')):c="";u.push(c)}return s.blankrows===!1&&l?null:u.join(a)}function Hd(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 d=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],m=i.s.c;m<=i.e.c;++m)(d[m]||{}).hidden||(f[m]=Rt(m));for(var p=0,g=i.s.r;g<=i.e.r;++g)(h[g]||{}).hidden||(c=MD(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 bw(e,t){t||(t={}),t.FS=" ",t.RS=`
`;var r=Hd(e,t);return r}function LD(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 kw(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 d=n.header||[],h=0;t.forEach(function(p,g){Et(p).forEach(function(x){(h=d.indexOf(x))==-1&&(d[h=d.length]=x);var w=p[x],y="z",_="",k=Be({c:s+h,r:a+g+i});u=Ua(o,k),w&&typeof w=="object"&&!(w instanceof Date)?o[k]=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)),_=n.dateNF||et[14]):w===null&&n.nullError&&(y="e",w=0),u?(u.t=y,u.v=w,delete u.w,delete u.R,_&&(u.z=_)):o[k]=u={t:y,v:w},_&&(u.z=_))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var m=wt(a);if(i)for(h=0;h<d.length;++h)o[Rt(h+s)+m]={t:"s",v:d[h]};return o["!ref"]=nt(c),o}function BD(e,t){return kw(null,e,t)}function Ua(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"?Ua(e,Be(t)):Ua(e,Be({r:t,c:r||0}))}function UD(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 HD(){return{SheetNames:[],Sheets:{}}}function VD(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(Sw(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 WD(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=UD(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 zD(e,t){return e.z=t,e}function $w(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function GD(e,t,r){return $w(e,"#"+t,r)}function jD(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function XD(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=Ua(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 Pc={encode_col:Rt,encode_row:wt,encode_cell:Be,encode_range:nt,decode_col:Dd,decode_row:Fd,split_cell:s3,decode_cell:ut,decode_range:Zt,format_cell:rn,sheet_add_aoa:$x,sheet_add_json:kw,sheet_add_dom:Ow,aoa_to_sheet:So,json_to_sheet:BD,table_to_sheet:Fw,table_to_book:mD,sheet_to_csv:Hd,sheet_to_txt:bw,sheet_to_json:zl,sheet_to_html:Rw,sheet_to_formulae:LD,sheet_to_row_object_array:zl,sheet_get_cell:Ua,book_new:HD,book_append_sheet:VD,book_set_sheet_visibility:WD,cell_set_number_format:zD,cell_set_hyperlink:$w,cell_set_internal_link:GD,cell_add_comment:jD,sheet_set_array_formula:XD,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function KD(e){if(e%1!==0){const t=Math.max(2,e.toString().split(".")[1].length),r=Math.min(4,t);if(e<1e3)return e.toFixed(r)||0}if(e>1e3){const t=Math.min(4,Math.floor(Math.log10(Math.abs(e))/3)),r=["","K","M","B","T"][t];return`${(e/10**(t*3)).toFixed(2)} ${r}`}return e}function Vd(e){return["date","day","time","timestamp","year"].some(t=>e.toLowerCase().includes(t))}function YD(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 qD=(e,t,r,n)=>{const i=qC(e.getValue(t),r);return n(i),i},QD=async({fileHandle:e,blob:t})=>{if(!e)throw new Error("Cannot access filesystem");const r=await e.createWritable();await r.write(t),await r.close()},ZD=[{description:"PNG Image",accept:{"image/png":[".png"]}},{description:"JPEG Image",accept:{"image/jpeg":[".jpeg"]}},{description:"SVG Image",accept:{"image/svg+xml":[".svg"]}}],Nw=({filename:e,is_image:t})=>{if("showSaveFilePicker"in window)return new Promise(n=>{n(null)});const r={suggestedName:e,types:t?ZD:[{description:"CSV File",accept:{"image/csv":[".csv"]}}],excludeAcceptAllOption:!0};return showSaveFilePicker(r)},Mw=(e,t,r)=>{if("showSaveFilePicker"in window)return QD({fileHandle:r,blob:e});const n=URL.createObjectURL(e),i=document.createElement("a");i.setAttribute("href",n),i.setAttribute("download",t),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i)},Yg=(e,t,r)=>{const n=t,i=r.map(l=>n.map(u=>l[u])),o=[n,...i];if(e==="csv"){const l=o.map(f=>f.join(",")).join(`
`),u=new Blob([l],{type:"text/csv;charset=utf-8;"}),c=`${window.title}.csv`;return Nw({filename:c}).then(f=>{Mw(u,c,f)})}const a=Pc.book_new(),s=Pc.aoa_to_sheet(o);Pc.book_append_sheet(a,s,"Sheet1"),$D(a,`${window.title}.xlsx`)},JD=e=>{const t=document.getElementById(e),r=`${window.title}.png`;Nw({filename:r,is_image:!0}).then(n=>{n4.toBlob(t).then(function(i){Mw(i,r,n)})})},Lw=v.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 qg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ic=function(){return Math.random().toString(36).substring(7).split("").join(".")},Qg={INIT:"@@redux/INIT"+Ic(),REPLACE:"@@redux/REPLACE"+Ic(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ic()}};function eP(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 Bw(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(Bw)(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 d(p){if(!eP(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,x=0;x<g.length;x++){var w=g[x];w()}return p}function h(p){if(typeof p!="function")throw new Error(tr(10));i=p,d({type:Qg.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 _=g(y);return{unsubscribe:_}}},p[qg]=function(){return this},p}return d({type:Qg.INIT}),n={dispatch:d,subscribe:f,getState:c,replaceReducer:h},n[qg]=m,n}function Fe(e,t,...r){if(tP()&&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 tP(){return typeof process<"u"&&process.env.NODE_ENV==="production"}function rP(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function nP(e,t){return e.filter(r=>r!==t)}function Uw(e){return typeof e=="object"}function iP(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 oP(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Wd="dnd-core/INIT_COORDS",Cu="dnd-core/BEGIN_DRAG",zd="dnd-core/PUBLISH_DRAG_SOURCE",Au="dnd-core/HOVER",Ru="dnd-core/DROP",Ou="dnd-core/END_DRAG";function Zg(e,t){return{type:Wd,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const aP={type:Wd,payload:{clientOffset:null,sourceClientOffset:null}};function sP(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),l=e.getRegistry();e.dispatch(Zg(o)),lP(r,s,l);const u=fP(r,s);if(u==null){e.dispatch(aP);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");uP(a),c=a(u)}e.dispatch(Zg(o,c));const d=l.getSource(u).beginDrag(s,u);if(d==null)return;cP(d),l.pinSource(u);const h=l.getSourceType(u);return{type:Cu,payload:{itemType:h,item:d,sourceId:u,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function lP(e,t,r){Fe(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){Fe(r.getSource(n),"Expected sourceIds to be registered.")})}function uP(e){Fe(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function cP(e){Fe(Uw(e),"Item must be an object.")}function fP(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 dP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hP(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){dP(e,i,r[i])})}return e}function pP(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();gP(n),xP(n).forEach((a,s)=>{const l=mP(a,s,i,n),u={type:Ru,payload:{dropResult:hP({},r,l)}};e.dispatch(u)})}}function gP(e){Fe(e.isDragging(),"Cannot call drop while not dragging."),Fe(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function mP(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return vP(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function vP(e){Fe(typeof e>"u"||Uw(e),"Drop result must either be an object or undefined.")}function xP(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function wP(e){return function(){const r=e.getMonitor(),n=e.getRegistry();yP(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Ou}}}function yP(e){Fe(e.isDragging(),"Cannot call endDrag while not dragging.")}function Xf(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function EP(e){return function(r,{clientOffset:n}={}){_P(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return TP(i,a,s),SP(i,o,a),CP(i,o,a),{type:Au,payload:{targetIds:i,clientOffset:n||null}}}}function _P(e){Fe(Array.isArray(e),"Expected targetIds to be an array.")}function SP(e,t,r){Fe(t.isDragging(),"Cannot call hover while not dragging."),Fe(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];Fe(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);Fe(o,"Expected targetIds to be registered.")}}function TP(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);Xf(o,r)||e.splice(n,1)}}function CP(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function AP(e){return function(){if(e.getMonitor().isDragging())return{type:zd}}}function RP(e){return{beginDrag:sP(e),publishDragSource:AP(e),hover:EP(e),drop:pP(e),endDrag:wP(e)}}class OP{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=RP(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 FP(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Hw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function DP(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:Hw(FP(t,n),r)}function PP(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:Hw(t,r)}const xa=[],Gd=[];xa.__IS_NONE__=!0;Gd.__IS_ALL__=!0;function IP(e,t){return e===xa?!1:e===Gd||typeof t>"u"?!0:oP(t,e).length>0}class bP{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;Fe(typeof t=="function","listener must be a function."),Fe(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&&!IP(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){Fe(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 Fe(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(Fe(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 Xf(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(Fe(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&&!Xf(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 DP(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return PP(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const Jg=typeof global<"u"?global:self,Vw=Jg.MutationObserver||Jg.WebKitMutationObserver;function Ww(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function kP(e){let t=1;const r=new Vw(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const $P=typeof Vw=="function"?kP:Ww;class NP{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=$P(this.flush),this.requestErrorThrow=Ww(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class MP{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 LP{create(t){const r=this.freeTasks,n=r.length?r.pop():new MP(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const zw=new NP,BP=new LP(zw.registerPendingError);function UP(e){zw.enqueueTask(BP.create(e))}const jd="dnd-core/ADD_SOURCE",Xd="dnd-core/ADD_TARGET",Kd="dnd-core/REMOVE_SOURCE",Fu="dnd-core/REMOVE_TARGET";function HP(e){return{type:jd,payload:{sourceId:e}}}function VP(e){return{type:Xd,payload:{targetId:e}}}function WP(e){return{type:Kd,payload:{sourceId:e}}}function zP(e){return{type:Fu,payload:{targetId:e}}}function GP(e){Fe(typeof e.canDrag=="function","Expected canDrag to be a function."),Fe(typeof e.beginDrag=="function","Expected beginDrag to be a function."),Fe(typeof e.endDrag=="function","Expected endDrag to be a function.")}function jP(e){Fe(typeof e.canDrop=="function","Expected canDrop to be a function."),Fe(typeof e.hover=="function","Expected hover to be a function."),Fe(typeof e.drop=="function","Expected beginDrag to be a function.")}function Kf(e,t){if(t&&Array.isArray(e)){e.forEach(r=>Kf(r,!1));return}Fe(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 XP=0;function KP(){return XP++}function YP(e){const t=KP().toString();switch(e){case or.SOURCE:return`S${t}`;case or.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function e1(e){switch(e[0]){case"S":return or.SOURCE;case"T":return or.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function t1(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 qP{addSource(t,r){Kf(t),GP(r);const n=this.addHandler(or.SOURCE,t,r);return this.store.dispatch(HP(n)),n}addTarget(t,r){Kf(t,!0),jP(r);const n=this.addHandler(or.TARGET,t,r);return this.store.dispatch(VP(n)),n}containsHandler(t){return t1(this.dragSources,t)||t1(this.dropTargets,t)}getSource(t,r=!1){return Fe(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return Fe(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return Fe(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return Fe(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return e1(t)===or.SOURCE}isTargetId(t){return e1(t)===or.TARGET}removeSource(t){Fe(this.getSource(t),"Expected an existing source."),this.store.dispatch(WP(t)),UP(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){Fe(this.getTarget(t),"Expected an existing target."),this.store.dispatch(zP(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);Fe(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){Fe(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=YP(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 QP=(e,t)=>e===t;function ZP(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function JP(e,t,r=QP){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 eI(e=xa,t){switch(t.type){case Au:break;case jd:case Xd:case Fu:case Kd:return xa;case Cu:case zd:case Ou:case Ru:default:return Gd}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=iP(r,n);if(!(i.length>0||!JP(r,n)))return xa;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function tI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rI(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){tI(e,i,r[i])})}return e}const r1={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function nI(e=r1,t){const{payload:r}=t;switch(t.type){case Wd:case Cu:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Au:return ZP(e.clientOffset,r.clientOffset)?e:rI({},e,{clientOffset:r.clientOffset});case Ou:case Ru:return r1;default:return e}}function iI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ii(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){iI(e,i,r[i])})}return e}const oI={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function aI(e=oI,t){const{payload:r}=t;switch(t.type){case Cu:return Ii({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case zd:return Ii({},e,{isSourcePublic:!0});case Au:return Ii({},e,{targetIds:r.targetIds});case Fu:return e.targetIds.indexOf(r.targetId)===-1?e:Ii({},e,{targetIds:nP(e.targetIds,r.targetId)});case Ru:return Ii({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Ou:return Ii({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function sI(e=0,t){switch(t.type){case jd:case Xd:return e+1;case Kd:case Fu:return e-1;default:return e}}function lI(e=0){return e+1}function uI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cI(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){uI(e,i,r[i])})}return e}function fI(e={},t){return{dirtyHandlerIds:eI(e.dirtyHandlerIds,{type:t.type,payload:cI({},t.payload,{prevTargetIds:rP(e,"dragOperation.targetIds",[])})}),dragOffset:nI(e.dragOffset,t),refCount:sI(e.refCount,t),dragOperation:aI(e.dragOperation,t),stateId:lI(e.stateId)}}function dI(e,t=void 0,r={},n=!1){const i=hI(n),o=new bP(i,new qP(i)),a=new OP(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function hI(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Bw(fI,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function pI(e,t){if(e==null)return{};var r=gI(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 gI(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 n1=0;const el=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var mI=v.memo(function(t){var{children:r}=t,n=pI(t,["children"]);const[i,o]=vI(n);return v.useEffect(()=>{if(o){const a=Gw();return++n1,()=>{--n1===0&&(a[el]=null)}}},[]),Z(Lw.Provider,{value:i,children:r})});function vI(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=xI(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function xI(e,t=Gw(),r,n){const i=t;return i[el]||(i[el]={dragDropManager:dI(e,t,r,n)}),i[el]}function Gw(){return typeof global<"u"?global:window}var wI=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 li=typeof window<"u"?v.useLayoutEffect:v.useEffect;function yI(e,t,r){const[n,i]=v.useState(()=>t(e)),o=v.useCallback(()=>{const a=t(e);wI(n,a)||(i(a),r&&r())},[n,e,r]);return li(o),[n,o]}function EI(e,t,r){const[n,i]=yI(e,t,r);return li(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function jw(e,t,r){return EI(t,e||(()=>({})),()=>r.reconnect())}function Xw(e,t){const r=[...t||[]];return t==null&&typeof e!="function"&&r.push(e),v.useMemo(()=>typeof e=="function"?e():e,r)}function _I(e){return v.useMemo(()=>e.hooks.dragSource(),[e])}function SI(e){return v.useMemo(()=>e.hooks.dragPreview(),[e])}let bc=!1,kc=!1;class TI{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){Fe(!bc,"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 bc=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{bc=!1}}isDragging(){if(!this.sourceId)return!1;Fe(!kc,"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 kc=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{kc=!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 $c=!1;class CI{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;Fe(!$c,"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 $c=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{$c=!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 AI(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function RI(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function Yf(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 qf(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function OI(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 FI(e){return(t=null,r=null)=>{if(!v.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return OI(n),DI(n,r?o=>e(o,r):e)}}function Kw(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=FI(n);t[r]=()=>i}}),t}function i1(e,t){typeof e=="function"?e(t):e.current=t}function DI(e,t){const r=e.ref;return Fe(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?v.cloneElement(e,{ref:n=>{i1(r,n),i1(t,n)}}):v.cloneElement(e,{ref:t})}class PI{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!Yf(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!Yf(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=Kw({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,qf(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,qf(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 II{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!Yf(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=Kw({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,qf(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 Ao(){const{dragDropManager:e}=v.useContext(Lw);return Fe(e!=null,"Expected drag drop context"),e}function bI(e,t){const r=Ao(),n=v.useMemo(()=>new PI(r.getBackend()),[r]);return li(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),li(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function kI(){const e=Ao();return v.useMemo(()=>new TI(e),[e])}class $I{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 NI(e,t,r){const n=v.useMemo(()=>new $I(e,t,r),[t,r]);return v.useEffect(()=>{n.spec=e},[e]),n}function MI(e){return v.useMemo(()=>{const t=e.type;return Fe(t!=null,"spec.type must be defined"),t},[e])}function LI(e,t,r){const n=Ao(),i=NI(e,t,r),o=MI(e);li(function(){if(o!=null){const[s,l]=RI(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),l}},[n,t,r,i,o])}function BI(e,t){const r=Xw(e,t);Fe(!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=kI(),i=bI(r.options,r.previewOptions);return LI(r,n,i),[jw(r.collect,n,i),_I(i),SI(i)]}function UI(e){return v.useMemo(()=>e.hooks.dropTarget(),[e])}function HI(e){const t=Ao(),r=v.useMemo(()=>new II(t.getBackend()),[t]);return li(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function VI(){const e=Ao();return v.useMemo(()=>new CI(e),[e])}function WI(e){const{accept:t}=e;return v.useMemo(()=>(Fe(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class zI{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 GI(e,t){const r=v.useMemo(()=>new zI(e,t),[t]);return v.useEffect(()=>{r.spec=e},[e]),r}function jI(e,t,r){const n=Ao(),i=GI(e,t),o=WI(e);li(function(){const[s,l]=AI(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),l},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function XI(e,t){const r=Xw(e,t),n=VI(),i=HI(r.options);return jI(r,n,i),[jw(r.collect,n,i),UI(i)]}function KI(e,t){return v.useReducer((r,n)=>{const i=t[r][n];return i??r},e)}const Ei=e=>{const{present:t,children:r}=e,n=YI(t),i=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),o=He(n.ref,i.ref);return typeof r=="function"||n.isPresent?v.cloneElement(i,{ref:o}):null};Ei.displayName="Presence";function YI(e){const[t,r]=v.useState(),n=v.useRef({}),i=v.useRef(e),o=v.useRef("none"),a=e?"mounted":"unmounted",[s,l]=KI(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const u=ks(n.current);o.current=s==="mounted"?u:"none"},[s]),xt(()=>{const u=n.current,c=i.current;if(c!==e){const d=o.current,h=ks(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),xt(()=>{if(t){const u=f=>{const h=ks(n.current).includes(f.animationName);f.target===t&&h&&Jr.flushSync(()=>l("ANIMATION_END"))},c=f=>{f.target===t&&(o.current=ks(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:v.useCallback(u=>{u&&(n.current=getComputedStyle(u)),r(u)},[])}}function ks(e){return(e==null?void 0:e.animationName)||"none"}const Nc="rovingFocusGroup.onEntryFocus",qI={bubbles:!1,cancelable:!0},Yd="RovingFocusGroup",[Qf,Yw,QI]=su(Yd),[ZI,qw]=on(Yd,[QI]),[JI,e5]=ZI(Yd),t5=v.forwardRef((e,t)=>v.createElement(Qf.Provider,{scope:e.__scopeRovingFocusGroup},v.createElement(Qf.Slot,{scope:e.__scopeRovingFocusGroup},v.createElement(r5,de({},e,{ref:t}))))),r5=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,...c}=e,f=v.useRef(null),d=He(t,f),h=ld(o),[m=null,p]=lo({prop:a,defaultProp:s,onChange:l}),[g,x]=v.useState(!1),w=Dt(u),y=Yw(r),_=v.useRef(!1),[k,N]=v.useState(0);return v.useEffect(()=>{const S=f.current;if(S)return S.addEventListener(Nc,w),()=>S.removeEventListener(Nc,w)},[w]),v.createElement(JI,{scope:r,orientation:n,dir:h,loop:i,currentTabStopId:m,onItemFocus:v.useCallback(S=>p(S),[p]),onItemShiftTab:v.useCallback(()=>x(!0),[]),onFocusableItemAdd:v.useCallback(()=>N(S=>S+1),[]),onFocusableItemRemove:v.useCallback(()=>N(S=>S-1),[])},v.createElement(Ie.div,de({tabIndex:g||k===0?-1:0,"data-orientation":n},c,{ref:d,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{_.current=!0}),onFocus:Ee(e.onFocus,S=>{const A=!_.current;if(S.target===S.currentTarget&&A&&!g){const R=new CustomEvent(Nc,qI);if(S.currentTarget.dispatchEvent(R),!R.defaultPrevented){const L=y().filter(re=>re.focusable),V=L.find(re=>re.active),U=L.find(re=>re.id===m),Y=[V,U,...L].filter(Boolean).map(re=>re.ref.current);Qw(Y)}}_.current=!1}),onBlur:Ee(e.onBlur,()=>x(!1))})))}),n5="RovingFocusGroupItem",i5=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:o,...a}=e,s=Xr(),l=o||s,u=e5(n5,r),c=u.currentTabStopId===l,f=Yw(r),{onFocusableItemAdd:d,onFocusableItemRemove:h}=u;return v.useEffect(()=>{if(n)return d(),()=>h()},[n,d,h]),v.createElement(Qf.ItemSlot,{scope:r,id:l,focusable:n,active:i},v.createElement(Ie.span,de({tabIndex:c?0:-1,"data-orientation":u.orientation},a,{ref:t,onMouseDown:Ee(e.onMouseDown,m=>{n?u.onItemFocus(l):m.preventDefault()}),onFocus:Ee(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:Ee(e.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){u.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const p=s5(m,u.orientation,u.dir);if(p!==void 0){m.preventDefault();let x=f().filter(w=>w.focusable).map(w=>w.ref.current);if(p==="last")x.reverse();else if(p==="prev"||p==="next"){p==="prev"&&x.reverse();const w=x.indexOf(m.currentTarget);x=u.loop?l5(x,w+1):x.slice(w+1)}setTimeout(()=>Qw(x))}})})))}),o5={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function a5(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function s5(e,t,r){const n=a5(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return o5[n]}function Qw(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function l5(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const u5=t5,c5=i5,f5=["Enter"," "],d5=["ArrowDown","PageUp","Home"],Zw=["ArrowUp","PageDown","End"],h5=[...d5,...Zw],Du="Menu",[Zf,p5,g5]=su(Du),[_i,Pu]=on(Du,[g5,fu,qw]),qd=fu(),Jw=qw(),[m5,ns]=_i(Du),[v5,Qd]=_i(Du),x5=e=>{const{__scopeMenu:t,open:r=!1,children:n,dir:i,onOpenChange:o,modal:a=!0}=e,s=qd(t),[l,u]=v.useState(null),c=v.useRef(!1),f=Dt(o),d=ld(i);return v.useEffect(()=>{const h=()=>{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",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),v.createElement(Mv,s,v.createElement(m5,{scope:t,open:r,onOpenChange:f,content:l,onContentChange:u},v.createElement(v5,{scope:t,onClose:v.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:d,modal:a},n)))},w5=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e,i=qd(r);return v.createElement(Lv,de({},i,n,{ref:t}))}),e2="MenuPortal",[y5,E5]=_i(e2,{forceMount:void 0}),_5=e=>{const{__scopeMenu:t,forceMount:r,children:n,container:i}=e,o=ns(e2,t);return v.createElement(y5,{scope:t,forceMount:r},v.createElement(Ei,{present:r||o.open},v.createElement(du,{asChild:!0,container:i},n)))},Rn="MenuContent",[S5,t2]=_i(Rn),T5=v.forwardRef((e,t)=>{const r=E5(Rn,e.__scopeMenu),{forceMount:n=r.forceMount,...i}=e,o=ns(Rn,e.__scopeMenu),a=Qd(Rn,e.__scopeMenu);return v.createElement(Zf.Provider,{scope:e.__scopeMenu},v.createElement(Ei,{present:n||o.open},v.createElement(Zf.Slot,{scope:e.__scopeMenu},a.modal?v.createElement(C5,de({},i,{ref:t})):v.createElement(A5,de({},i,{ref:t})))))}),C5=v.forwardRef((e,t)=>{const r=ns(Rn,e.__scopeMenu),n=v.useRef(null),i=He(t,n);return v.useEffect(()=>{const o=n.current;if(o)return md(o)},[]),v.createElement(r2,de({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Ee(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),A5=v.forwardRef((e,t)=>{const r=ns(Rn,e.__scopeMenu);return v.createElement(r2,de({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),r2=v.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:d,onDismiss:h,disableOutsideScroll:m,...p}=e,g=ns(Rn,r),x=Qd(Rn,r),w=qd(r),y=Jw(r),_=p5(r),[k,N]=v.useState(null),S=v.useRef(null),A=He(t,S,g.onContentChange),R=v.useRef(0),L=v.useRef(""),V=v.useRef(0),U=v.useRef(null),W=v.useRef("right"),Y=v.useRef(0),re=m?vd:v.Fragment,ye=m?{as:ii,allowPinchZoom:!0}:void 0,ge=ie=>{var we,Q;const F=L.current+ie,M=_().filter(ee=>!ee.disabled),b=document.activeElement,T=(we=M.find(ee=>ee.ref.current===b))===null||we===void 0?void 0:we.textValue,B=M.map(ee=>ee.textValue),H=M5(B,F,T),q=(Q=M.find(ee=>ee.textValue===H))===null||Q===void 0?void 0:Q.ref.current;(function ee(K){L.current=K,window.clearTimeout(R.current),K!==""&&(R.current=window.setTimeout(()=>ee(""),1e3))})(F),q&&setTimeout(()=>q.focus())};v.useEffect(()=>()=>window.clearTimeout(R.current),[]),cd();const Se=v.useCallback(ie=>{var we,Q;return W.current===((we=U.current)===null||we===void 0?void 0:we.side)&&B5(ie,(Q=U.current)===null||Q===void 0?void 0:Q.area)},[]);return v.createElement(S5,{scope:r,searchRef:L,onItemEnter:v.useCallback(ie=>{Se(ie)&&ie.preventDefault()},[Se]),onItemLeave:v.useCallback(ie=>{var we;Se(ie)||((we=S.current)===null||we===void 0||we.focus(),N(null))},[Se]),onTriggerLeave:v.useCallback(ie=>{Se(ie)&&ie.preventDefault()},[Se]),pointerGraceTimerRef:V,onPointerGraceIntentChange:v.useCallback(ie=>{U.current=ie},[])},v.createElement(re,ye,v.createElement(fd,{asChild:!0,trapped:i,onMountAutoFocus:Ee(o,ie=>{var we;ie.preventDefault(),(we=S.current)===null||we===void 0||we.focus()}),onUnmountAutoFocus:a},v.createElement(lu,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:d,onDismiss:h},v.createElement(u5,de({asChild:!0},y,{dir:x.dir,orientation:"vertical",loop:n,currentTabStopId:k,onCurrentTabStopIdChange:N,onEntryFocus:Ee(l,ie=>{x.isUsingKeyboardRef.current||ie.preventDefault()})}),v.createElement(Bv,de({role:"menu","aria-orientation":"vertical","data-state":k5(g.open),"data-radix-menu-content":"",dir:x.dir},w,p,{ref:A,style:{outline:"none",...p.style},onKeyDown:Ee(p.onKeyDown,ie=>{const Q=ie.target.closest("[data-radix-menu-content]")===ie.currentTarget,F=ie.ctrlKey||ie.altKey||ie.metaKey,M=ie.key.length===1;Q&&(ie.key==="Tab"&&ie.preventDefault(),!F&&M&&ge(ie.key));const b=S.current;if(ie.target!==b||!h5.includes(ie.key))return;ie.preventDefault();const B=_().filter(H=>!H.disabled).map(H=>H.ref.current);Zw.includes(ie.key)&&B.reverse(),$5(B)}),onBlur:Ee(e.onBlur,ie=>{ie.currentTarget.contains(ie.target)||(window.clearTimeout(R.current),L.current="")}),onPointerMove:Ee(e.onPointerMove,e0(ie=>{const we=ie.target,Q=Y.current!==ie.clientX;if(ie.currentTarget.contains(we)&&Q){const F=ie.clientX>Y.current?"right":"left";W.current=F,Y.current=ie.clientX}}))})))))))}),R5=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return v.createElement(Ie.div,de({role:"group"},n,{ref:t}))}),O5=v.forwardRef((e,t)=>{const{__scopeMenu:r,...n}=e;return v.createElement(Ie.div,de({},n,{ref:t}))}),Jf="MenuItem",o1="menu.itemSelect",F5=v.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:n,...i}=e,o=v.useRef(null),a=Qd(Jf,e.__scopeMenu),s=t2(Jf,e.__scopeMenu),l=He(t,o),u=v.useRef(!1),c=()=>{const f=o.current;if(!r&&f){const d=new CustomEvent(o1,{bubbles:!0,cancelable:!0});f.addEventListener(o1,h=>n==null?void 0:n(h),{once:!0}),ud(f,d),d.defaultPrevented?u.current=!1:a.onClose()}};return v.createElement(D5,de({},i,{ref:l,disabled:r,onClick:Ee(e.onClick,c),onPointerDown:f=>{var d;(d=e.onPointerDown)===null||d===void 0||d.call(e,f),u.current=!0},onPointerUp:Ee(e.onPointerUp,f=>{var d;u.current||(d=f.currentTarget)===null||d===void 0||d.click()}),onKeyDown:Ee(e.onKeyDown,f=>{const d=s.searchRef.current!=="";r||d&&f.key===" "||f5.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})}))}),D5=v.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...o}=e,a=t2(Jf,r),s=Jw(r),l=v.useRef(null),u=He(t,l),[c,f]=v.useState(!1),[d,h]=v.useState("");return v.useEffect(()=>{const m=l.current;if(m){var p;h(((p=m.textContent)!==null&&p!==void 0?p:"").trim())}},[o.children]),v.createElement(Zf.ItemSlot,{scope:r,disabled:n,textValue:i??d},v.createElement(c5,de({asChild:!0},s,{focusable:!n}),v.createElement(Ie.div,de({role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},o,{ref:u,onPointerMove:Ee(e.onPointerMove,e0(m=>{n?a.onItemLeave(m):(a.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus())})),onPointerLeave:Ee(e.onPointerLeave,e0(m=>a.onItemLeave(m))),onFocus:Ee(e.onFocus,()=>f(!0)),onBlur:Ee(e.onBlur,()=>f(!1))}))))}),P5="MenuRadioGroup";_i(P5,{value:void 0,onValueChange:()=>{}});const I5="MenuItemIndicator";_i(I5,{checked:!1});const b5="MenuSub";_i(b5);function k5(e){return e?"open":"closed"}function $5(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function N5(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function M5(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=N5(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 L5(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 B5(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return L5(r,t)}function e0(e){return t=>t.pointerType==="mouse"?e(t):void 0}const n2=x5,i2=w5,o2=_5,a2=T5,U5=R5,H5=O5,V5=F5,s2="ContextMenu",[W5,Bk]=on(s2,[Pu]),Iu=Pu(),[z5,l2]=W5(s2),G5=e=>{const{__scopeContextMenu:t,children:r,onOpenChange:n,dir:i,modal:o=!0}=e,[a,s]=v.useState(!1),l=Iu(t),u=Dt(n),c=v.useCallback(f=>{s(f),u(f)},[u]);return v.createElement(z5,{scope:t,open:a,onOpenChange:c,modal:o},v.createElement(n2,de({},l,{dir:i,open:a,onOpenChange:c,modal:o}),r))},j5="ContextMenuTrigger",X5=v.forwardRef((e,t)=>{const{__scopeContextMenu:r,disabled:n=!1,...i}=e,o=l2(j5,r),a=Iu(r),s=v.useRef({x:0,y:0}),l=v.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...s.current})}),u=v.useRef(0),c=v.useCallback(()=>window.clearTimeout(u.current),[]),f=d=>{s.current={x:d.clientX,y:d.clientY},o.onOpenChange(!0)};return v.useEffect(()=>c,[c]),v.useEffect(()=>void(n&&c()),[n,c]),v.createElement(v.Fragment,null,v.createElement(i2,de({},a,{virtualRef:l})),v.createElement(Ie.span,de({"data-state":o.open?"open":"closed","data-disabled":n?"":void 0},i,{ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:n?e.onContextMenu:Ee(e.onContextMenu,d=>{c(),f(d),d.preventDefault()}),onPointerDown:n?e.onPointerDown:Ee(e.onPointerDown,$s(d=>{c(),u.current=window.setTimeout(()=>f(d),700)})),onPointerMove:n?e.onPointerMove:Ee(e.onPointerMove,$s(c)),onPointerCancel:n?e.onPointerCancel:Ee(e.onPointerCancel,$s(c)),onPointerUp:n?e.onPointerUp:Ee(e.onPointerUp,$s(c))})))}),K5=e=>{const{__scopeContextMenu:t,...r}=e,n=Iu(t);return v.createElement(o2,de({},n,r))},Y5="ContextMenuContent",q5=v.forwardRef((e,t)=>{const{__scopeContextMenu:r,...n}=e,i=l2(Y5,r),o=Iu(r),a=v.useRef(!1);return v.createElement(a2,de({},o,n,{ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:s=>{var l;(l=e.onCloseAutoFocus)===null||l===void 0||l.call(e,s),!s.defaultPrevented&&a.current&&s.preventDefault(),a.current=!1},onInteractOutside:s=>{var l;(l=e.onInteractOutside)===null||l===void 0||l.call(e,s),!s.defaultPrevented&&!i.modal&&(a.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});function $s(e){return t=>t.pointerType!=="mouse"?e(t):void 0}const Q5=G5,Z5=X5,J5=K5,e8=q5;function t8({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(n.every(u=>typeof u!="string"?!1:u.replace(/[^0-9]/g,"").length>=4&&(Vd(e.id)||e.id.toLowerCase()==="index"&&!a))){let u=function(c){if(!c)return null;const f=new Date(c),d=f.getFullYear(),h=f.getMonth()+1>9?f.getMonth()+1:`0${f.getMonth()+1}`,m=f.getDate()>9?f.getDate():`0${f.getDate()}`;return`${d}-${h}-${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(d=>[f,d==null?void 0:d[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(d=>[d==null?void 0:d[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 r8=(e,t,r)=>(r.splice(r.indexOf(t),0,r.splice(r.indexOf(e),1)[0]),[...r]),n8=({header:e,table:t,advanced:r,idx:n,lockFirstColumn:i,setLockFirstColumn:o})=>{const{getState:a,setColumnOrder:s}=t,{columnOrder:l}=a(),{column:u}=e,[,c]=XI({accept:"column",drop:p=>{const g=r8(p.id,u.id,l);s(g)}}),[{isDragging:f},d,h]=BI({collect:p=>({isDragging:p.isDragging()}),item:()=>u,type:"column"}),m=()=>Z("div",{ref:h,className:"flex gap-1 flex-col",children:e.isPlaceholder?null:Te(N1,{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:bt("flex gap-1",{"cursor-pointer select-none":e.column.getCanSort()}),children:[If(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:bt({"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:bt({"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&&u.id!=="select"&&Z("button",{ref:d,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(t8,{column:e.column,table:t,numberOfColumns:l.length})}):null]})});return Te("th",{className:bt("h-[70px] p-4 sticky",{"left-0 z-50 bg-white dark:bg-grey-900":n===0&&i}),colSpan:e.colSpan,style:{width:e.getSize(),opacity:f?.5:1},ref:c,children:[n===0?Te(Q5,{children:[Z(Z5,{asChild:!0,children:m()}),Z(J5,{children:Z(e8,{className:"bg-white text-black dark:text-white dark:bg-grey-900 border border-grey-200 dark:border-grey-800 rounded-md shadow-lg p-2 z-50 text-xs",children:Z("div",{className:"flex flex-col gap-2",children:Te("button",{onClick:()=>{o(!i)},className:"hover:bg-grey-300 dark:hover:bg-grey-800 rounded-md p-2",children:[i?"Unlock":"Lock"," first column"]})})})})]}):m(),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 u2(e){return typeof e!="number"?typeof e=="string"&&e.includes("All")?e:i0:e<1?i0:e}function i8({table:e,currentPage:t,setCurrentPage:r}){const n=e.getFilteredRowModel().rows.length;return Te("div",{className:"hidden md:flex items-center gap-8",children:[Z(Vi,{value:t,onChange:i=>{const o=u2(i);r(o),o.toString().includes("All")?e.setPageSize(n):e.setPageSize(o)},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",{className:"hidden lg:block",children:[Z("button",{className:bt("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:bt("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:bt("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:bt("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:">>"})]})]})}function o8({columns:e,data:t,type:r,setType:n}){const i=()=>{switch(r){case"csv":Yg("csv",e,t);break;case"xlsx":Yg("xlsx",e,t);break;case"png":JD("table");break}};return Te("div",{className:"flex gap-6 items-center",children:[Z(Vi,{labelType:"row",value:r,onChange:o=>{n(o)},label:"Type",placeholder:"Select type",groups:[{label:"Type",items:o0.map(o=>({label:o,value:o}))}]}),Z("button",{onClick:i,className:"_btn",children:"Export"})]})}const c2="DropdownMenu",[a8,Uk]=on(c2,[Pu]),Si=Pu(),[s8,f2]=a8(c2),l8=e=>{const{__scopeDropdownMenu:t,children:r,dir:n,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=Si(t),u=v.useRef(null),[c=!1,f]=lo({prop:i,defaultProp:o,onChange:a});return v.createElement(s8,{scope:t,triggerId:Xr(),triggerRef:u,contentId:Xr(),open:c,onOpenChange:f,onOpenToggle:v.useCallback(()=>f(d=>!d),[f]),modal:s},v.createElement(n2,de({},l,{open:c,onOpenChange:f,dir:n,modal:s}),r))},u8="DropdownMenuTrigger",c8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,o=f2(u8,r),a=Si(r);return v.createElement(i2,de({asChild:!0},a),v.createElement(Ie.button,de({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:sd(t,o.triggerRef),onPointerDown:Ee(e.onPointerDown,s=>{!n&&s.button===0&&s.ctrlKey===!1&&(o.onOpenToggle(),o.open||s.preventDefault())}),onKeyDown:Ee(e.onKeyDown,s=>{n||(["Enter"," "].includes(s.key)&&o.onOpenToggle(),s.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(s.key)&&s.preventDefault())})})))}),f8=e=>{const{__scopeDropdownMenu:t,...r}=e,n=Si(t);return v.createElement(o2,de({},n,r))},d8="DropdownMenuContent",h8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=f2(d8,r),o=Si(r),a=v.useRef(!1);return v.createElement(a2,de({id:i.contentId,"aria-labelledby":i.triggerId},o,n,{ref:t,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{var l;a.current||(l=i.triggerRef.current)===null||l===void 0||l.focus(),a.current=!1,s.preventDefault()}),onInteractOutside:Ee(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)"}}))}),p8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Si(r);return v.createElement(U5,de({},i,n,{ref:t}))}),g8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Si(r);return v.createElement(H5,de({},i,n,{ref:t}))}),m8=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...n}=e,i=Si(r);return v.createElement(V5,de({},i,n,{ref:t}))}),v8=l8,a1=c8,x8=f8,w8=h8,y8=p8,E8=g8,s1=m8;function _8(e,t){v.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 l1({label:e,table:t,onlyIconTrigger:r=!1}){const[n,i]=v.useState(!1),o=v.useRef(null);return _8(o,()=>i(!1)),v.useEffect(()=>{const a=s=>{s.key==="Escape"&&i(!1)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[]),Te(v8,{open:n,children:[r?Z(a1,{title:"Filter columns",onClick:()=>i(!n),children:Z("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-7 h-7",children:Z("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z"})})}):Te(y8,{className:"flex flex-row items-center gap-2",children:[Z(E8,{className:"whitespace-nowrap",children:e}),Te(a1,{onClick:()=>i(!n),className:"bg-white text-black dark:bg-grey-900 dark:text-white 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(Hf,{className:bt({"transform rotate-180 duration-200 transition":n})})]})]}),Z(x8,{children:Te(w8,{sideOffset:10,ref:o,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(s1,{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(a=>a.id!=="select").map(a=>Z(s1,{children:Te("label",{className:"flex items-center gap-2",children:[Z("input",{type:"checkbox",checked:a.getIsVisible(),onChange:a.getToggleVisibilityHandler()}),a.id]})},a.id))]})})]})}var Gl={},S8={get exports(){return Gl},set exports(e){Gl=e}},qe={},fo={},T8={get exports(){return fo},set exports(e){fo=e}},Ti={};function d2(){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 C8(e,t,r){}function A8(e,t,r){}var R8=/javascript\s*\:/img;function O8(e,t){return R8.test(t)?"":t}Ti.whiteList=d2();Ti.getDefaultWhiteList=d2;Ti.onAttr=C8;Ti.onIgnoreAttr=A8;Ti.safeAttrValue=O8;var F8={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,"")}},Go=F8;function D8(e,t){e=Go.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,a="";function s(){if(!n){var c=Go.trim(e.slice(i,o)),f=c.indexOf(":");if(f!==-1){var d=Go.trim(c.slice(0,f)),h=Go.trim(c.slice(f+1));if(d){var m=t(i,a.length,d,h,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 Go.trim(a)}var P8=D8,Ns=Ti,I8=P8;function u1(e){return e==null}function b8(e){var t={};for(var r in e)t[r]=e[r];return t}function h2(e){e=b8(e||{}),e.whiteList=e.whiteList||Ns.whiteList,e.onAttr=e.onAttr||Ns.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Ns.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Ns.safeAttrValue,this.options=e}h2.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=I8(e,function(l,u,c,f,d){var h=n[c],m=!1;if(h===!0?m=h:typeof h=="function"?m=h(f):h instanceof RegExp&&(m=h.test(f)),m!==!0&&(m=!1),f=a(c,f),!!f){var p={position:u,sourcePosition:l,source:d,isWhite:m};if(m){var g=i(c,f,p);return u1(g)?c+":"+f:g}else{var g=o(c,f,p);if(!u1(g))return g}}});return s};var k8=h2;(function(e,t){var r=Ti,n=k8;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)})(T8,fo);var Zd={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}},$8=fo.FilterCSS,N8=fo.getDefaultWhiteList,jl=Zd;function p2(){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 g2=new $8;function M8(e,t,r){}function L8(e,t,r){}function B8(e,t,r){}function U8(e,t,r){}function m2(e){return e.replace(V8,"&lt;").replace(W8,"&gt;")}function H8(e,t,r,n){if(r=_2(r),t==="href"||t==="src"){if(r=jl.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(Ms.lastIndex=0,Ms.test(r))return""}else if(t==="style"){if(c1.lastIndex=0,c1.test(r)||(f1.lastIndex=0,f1.test(r)&&(Ms.lastIndex=0,Ms.test(r))))return"";n!==!1&&(n=n||g2,r=n.process(r))}return r=S2(r),r}var V8=/</g,W8=/>/g,z8=/"/g,G8=/&quot;/g,j8=/&#([a-zA-Z0-9]*);?/gim,X8=/&colon;?/gim,K8=/&newline;?/gim,Ms=/((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,c1=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,f1=/u\s*r\s*l\s*\(.*/gi;function v2(e){return e.replace(z8,"&quot;")}function x2(e){return e.replace(G8,'"')}function w2(e){return e.replace(j8,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function y2(e){return e.replace(X8,":").replace(K8," ")}function E2(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return jl.trim(t)}function _2(e){return e=x2(e),e=w2(e),e=y2(e),e=E2(e),e}function S2(e){return e=v2(e),e=m2(e),e}function Y8(){return""}function q8(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(a){return r?!0:jl.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 jl.forEach(i,function(u){s+=a.slice(l,u[0]),l=u[1]}),s+=a.slice(l),s}}}function Q8(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 Z8(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("")}qe.whiteList=p2();qe.getDefaultWhiteList=p2;qe.onTag=M8;qe.onIgnoreTag=L8;qe.onTagAttr=B8;qe.onIgnoreTagAttr=U8;qe.safeAttrValue=H8;qe.escapeHtml=m2;qe.escapeQuote=v2;qe.unescapeQuote=x2;qe.escapeHtmlEntities=w2;qe.escapeDangerHtml5Entities=y2;qe.clearNonPrintableCharacter=E2;qe.friendlyAttrValue=_2;qe.escapeAttrValue=S2;qe.onIgnoreTagStripAll=Y8;qe.StripTagBody=q8;qe.stripCommentTag=Q8;qe.stripBlankChar=Z8;qe.cssFilter=g2;qe.getDefaultCSSWhiteList=N8;var bu={},cn=Zd;function J8(e){var t=cn.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=cn.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function eb(e){return e.slice(0,2)==="</"}function tb(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=J8(c),n+=t(o,n.length,u,c,eb(c)),i=s+1,o=!1;continue}if(f==='"'||f==="'")for(var d=1,h=e.charAt(s-d);h.trim()===""||h==="=";){if(h==="="){a=f;continue e}h=e.charAt(s-++d)}}else if(f===a){a=!1;continue}}return i<l&&(n+=r(e.substr(i))),n}var rb=/[^a-zA-Z0-9\\_:.-]/gim;function nb(e,t){var r=0,n=0,i=[],o=!1,a=e.length;function s(d,h){if(d=cn.trim(d),d=d.replace(rb,"").toLowerCase(),!(d.length<1)){var m=t(d,h||"");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:ob(e,l+1);continue}if(o!==!1&&l===n){if(f=e.indexOf(u,l+1),f===-1)break;c=cn.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=ib(e,l),f===-1){c=cn.trim(e.slice(r,l)),s(c),o=!1,r=l+1;continue}else{l=f-1;continue}else if(f=ab(e,l-1),f===-1){c=cn.trim(e.slice(r,l)),c=d1(c),s(o,c),o=!1,r=l+1;continue}else continue}return r<e.length&&(o===!1?s(e.slice(r)):s(o,d1(cn.trim(e.slice(r))))),cn.trim(i.join(" "))}function ib(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function ob(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function ab(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function sb(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function d1(e){return sb(e)?e.substr(1,e.length-2):e}bu.parseTag=tb;bu.parseAttr=nb;var lb=fo.FilterCSS,xr=qe,T2=bu,ub=T2.parseTag,cb=T2.parseAttr,tl=Zd;function Ls(e){return e==null}function fb(e){var t=tl.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=tl.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=tl.trim(e.slice(0,-1))),{html:e,closing:r}}function db(e){var t={};for(var r in e)t[r]=e[r];return t}function hb(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 C2(e){e=db(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=hb(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 lb(e.css))}C2.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 d=ub(e,function(h,m,p,g,x){var w={sourcePosition:h,position:m,isClosing:x,isWhite:Object.prototype.hasOwnProperty.call(n,p)},y=i(p,g,w);if(!Ls(y))return y;if(w.isWhite){if(w.isClosing)return"</"+p+">";var _=fb(g),k=n[p],N=cb(_.html,function(S,A){var R=tl.indexOf(k,S)!==-1,L=a(p,S,A,R);return Ls(L)?R?(A=l(p,S,A,c),A?S+'="'+A+'"':S):(L=s(p,S,A,R),Ls(L)?void 0:L):L});return g="<"+p,N&&(g+=" "+N),_.closing&&(g+=" /"),g+=">",g}else return y=o(p,g,w),Ls(y)?u(g):y},u);return f&&(d=f.remove(d)),d};var pb=C2;(function(e,t){var r=qe,n=bu,i=pb;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)})(S8,Gl);const gb=Gl;function jo(e,t,r){const[n,i]=v.useState(()=>{if(typeof window>"u")return t;try{const a=window.localStorage.getItem(e);return a?r?r(JSON.parse(a)):JSON.parse(a):t}catch(a){return console.log(a),t}});return[n,a=>{try{const s=a instanceof Function?a(n):a;i(s),typeof window<"u"&&window.localStorage.setItem(e,JSON.stringify(s))}catch(s){console.log(s)}}]}const A2="ToastProvider",[Jd,mb,vb]=su("Toast"),[R2,Hk]=on("Toast",[vb]),[xb,ku]=R2(A2),O2=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:i="right",swipeThreshold:o=50,children:a}=e,[s,l]=v.useState(null),[u,c]=v.useState(0),f=v.useRef(!1),d=v.useRef(!1);return v.createElement(Jd.Provider,{scope:t},v.createElement(xb,{scope:t,label:r,duration:n,swipeDirection:i,swipeThreshold:o,toastCount:u,viewport:s,onViewportChange:l,onToastAdd:v.useCallback(()=>c(h=>h+1),[]),onToastRemove:v.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:d},a))};O2.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${A2}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const wb="ToastViewport",yb=["F8"],t0="toast.viewportPause",r0="toast.viewportResume",Eb=v.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=yb,label:i="Notifications ({hotkey})",...o}=e,a=ku(wb,r),s=mb(r),l=v.useRef(null),u=v.useRef(null),c=v.useRef(null),f=v.useRef(null),d=He(t,f,a.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),m=a.toastCount>0;v.useEffect(()=>{const g=x=>{var w;n.every(_=>x[_]||x.code===_)&&((w=f.current)===null||w===void 0||w.focus())};return document.addEventListener("keydown",g),()=>document.removeEventListener("keydown",g)},[n]),v.useEffect(()=>{const g=l.current,x=f.current;if(m&&g&&x){const w=()=>{if(!a.isClosePausedRef.current){const N=new CustomEvent(t0);x.dispatchEvent(N),a.isClosePausedRef.current=!0}},y=()=>{if(a.isClosePausedRef.current){const N=new CustomEvent(r0);x.dispatchEvent(N),a.isClosePausedRef.current=!1}},_=N=>{!g.contains(N.relatedTarget)&&y()},k=()=>{g.contains(document.activeElement)||y()};return g.addEventListener("focusin",w),g.addEventListener("focusout",_),g.addEventListener("pointermove",w),g.addEventListener("pointerleave",k),window.addEventListener("blur",w),window.addEventListener("focus",y),()=>{g.removeEventListener("focusin",w),g.removeEventListener("focusout",_),g.removeEventListener("pointermove",w),g.removeEventListener("pointerleave",k),window.removeEventListener("blur",w),window.removeEventListener("focus",y)}}},[m,a.isClosePausedRef]);const p=v.useCallback(({tabbingDirection:g})=>{const w=s().map(y=>{const _=y.ref.current,k=[_,...Lb(_)];return g==="forwards"?k:k.reverse()});return(g==="forwards"?w.reverse():w).flat()},[s]);return v.useEffect(()=>{const g=f.current;if(g){const x=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 k;(k=u.current)===null||k===void 0||k.focus();return}const U=p({tabbingDirection:R?"backwards":"forwards"}),W=U.findIndex(Y=>Y===A);if(Mc(U.slice(W+1)))w.preventDefault();else{var N,S;R?(N=u.current)===null||N===void 0||N.focus():(S=c.current)===null||S===void 0||S.focus()}}};return g.addEventListener("keydown",x),()=>g.removeEventListener("keydown",x)}},[s,p]),v.createElement(CS,{ref:l,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:m?void 0:"none"}},m&&v.createElement(h1,{ref:u,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"forwards"});Mc(g)}}),v.createElement(Jd.Slot,{scope:r},v.createElement(Ie.ol,de({tabIndex:-1},o,{ref:d}))),m&&v.createElement(h1,{ref:c,onFocusFromOutsideViewport:()=>{const g=p({tabbingDirection:"backwards"});Mc(g)}}))}),_b="ToastFocusProxy",h1=v.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...i}=e,o=ku(_b,r);return v.createElement(gd,de({"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()}}))}),$u="Toast",Sb="toast.swipeStart",Tb="toast.swipeMove",Cb="toast.swipeCancel",Ab="toast.swipeEnd",Rb=v.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:i,onOpenChange:o,...a}=e,[s=!0,l]=lo({prop:n,defaultProp:i,onChange:o});return v.createElement(Ei,{present:r||s},v.createElement(F2,de({open:s},a,{ref:t,onClose:()=>l(!1),onPause:Dt(e.onPause),onResume:Dt(e.onResume),onSwipeStart:Ee(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Ee(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:Ee(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:Ee(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)})})))}),[Ob,Fb]=R2($u,{onClose(){}}),F2=v.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:d,onSwipeEnd:h,...m}=e,p=ku($u,r),[g,x]=v.useState(null),w=He(t,Y=>x(Y)),y=v.useRef(null),_=v.useRef(null),k=i||p.duration,N=v.useRef(0),S=v.useRef(k),A=v.useRef(0),{onToastAdd:R,onToastRemove:L}=p,V=Dt(()=>{var Y;(g==null?void 0:g.contains(document.activeElement))&&((Y=p.viewport)===null||Y===void 0||Y.focus()),a()}),U=v.useCallback(Y=>{!Y||Y===1/0||(window.clearTimeout(A.current),N.current=new Date().getTime(),A.current=window.setTimeout(V,Y))},[V]);v.useEffect(()=>{const Y=p.viewport;if(Y){const re=()=>{U(S.current),u==null||u()},ye=()=>{const ge=new Date().getTime()-N.current;S.current=S.current-ge,window.clearTimeout(A.current),l==null||l()};return Y.addEventListener(t0,ye),Y.addEventListener(r0,re),()=>{Y.removeEventListener(t0,ye),Y.removeEventListener(r0,re)}}},[p.viewport,k,l,u,U]),v.useEffect(()=>{o&&!p.isClosePausedRef.current&&U(k)},[o,k,p.isClosePausedRef,U]),v.useEffect(()=>(R(),()=>L()),[R,L]);const W=v.useMemo(()=>g?I2(g):null,[g]);return p.viewport?v.createElement(v.Fragment,null,W&&v.createElement(Db,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},W),v.createElement(Ob,{scope:r,onClose:V},Jr.createPortal(v.createElement(Jd.ItemSlot,{scope:r},v.createElement(TS,{asChild:!0,onEscapeKeyDown:Ee(s,()=>{p.isFocusedToastEscapeKeyDownRef.current||V(),p.isFocusedToastEscapeKeyDownRef.current=!1})},v.createElement(Ie.li,de({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:Ee(e.onKeyDown,Y=>{Y.key==="Escape"&&(s==null||s(Y.nativeEvent),Y.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,V()))}),onPointerDown:Ee(e.onPointerDown,Y=>{Y.button===0&&(y.current={x:Y.clientX,y:Y.clientY})}),onPointerMove:Ee(e.onPointerMove,Y=>{if(!y.current)return;const re=Y.clientX-y.current.x,ye=Y.clientY-y.current.y,ge=!!_.current,Se=["left","right"].includes(p.swipeDirection),ie=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,we=Se?ie(0,re):0,Q=Se?0:ie(0,ye),F=Y.pointerType==="touch"?10:2,M={x:we,y:Q},b={originalEvent:Y,delta:M};ge?(_.current=M,Bs(Tb,f,b,{discrete:!1})):p1(M,p.swipeDirection,F)?(_.current=M,Bs(Sb,c,b,{discrete:!1}),Y.target.setPointerCapture(Y.pointerId)):(Math.abs(re)>F||Math.abs(ye)>F)&&(y.current=null)}),onPointerUp:Ee(e.onPointerUp,Y=>{const re=_.current,ye=Y.target;if(ye.hasPointerCapture(Y.pointerId)&&ye.releasePointerCapture(Y.pointerId),_.current=null,y.current=null,re){const ge=Y.currentTarget,Se={originalEvent:Y,delta:re};p1(re,p.swipeDirection,p.swipeThreshold)?Bs(Ab,h,Se,{discrete:!0}):Bs(Cb,d,Se,{discrete:!0}),ge.addEventListener("click",ie=>ie.preventDefault(),{once:!0})}})})))),p.viewport))):null});F2.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${$u}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const Db=e=>{const{__scopeToast:t,children:r,...n}=e,i=ku($u,t),[o,a]=v.useState(!1),[s,l]=v.useState(!1);return Nb(()=>a(!0)),v.useEffect(()=>{const u=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(u)},[]),s?null:v.createElement(du,{asChild:!0},v.createElement(gd,n,o&&v.createElement(v.Fragment,null,i.label," ",r)))},Pb=v.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return v.createElement(Ie.div,de({},n,{ref:t}))}),Ib=v.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return v.createElement(Ie.div,de({},n,{ref:t}))}),bb="ToastAction",kb=v.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?v.createElement(P2,{altText:r,asChild:!0},v.createElement(D2,de({},n,{ref:t}))):null});kb.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${bb}\``)}};const $b="ToastClose",D2=v.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,i=Fb($b,r);return v.createElement(P2,{asChild:!0},v.createElement(Ie.button,de({type:"button"},n,{ref:t,onClick:Ee(e.onClick,i.onClose)})))}),P2=v.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...i}=e;return v.createElement(Ie.div,de({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:t}))});function I2(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),Mb(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(...I2(n))}}),t}function Bs(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?ud(i,o):i.dispatchEvent(o)}const p1=(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 Nb(e=()=>{}){const t=Dt(e);xt(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function Mb(e){return e.nodeType===e.ELEMENT_NODE}function Lb(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 Mc(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const Bb=O2,Ub=Eb,Hb=Rb,Vb=Pb,Wb=Ib,zb=D2,b2=({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"})}),Gb=({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"})]}),jb=({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"})]}),Xb=({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"})]}),Kb=({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"})]}),Yb=({toast:e,open:t,setOpen:r})=>Te(Bb,{children:[Te(Hb,{open:t,onOpenChange:n=>{e.preventClose||r(n)},className:bt("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(Xb,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="warning"?Z(Kb,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):e.status==="error"?Z(Gb,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}):Z(jb,{className:"absolute left-[8px] md:left-[25px] top-[25px]"}),Z(Vb,{className:"text-grey-900 font-bold text-sm",children:e.title}),e.description&&Z(Wb,{className:"mt-2 text-[10px] md:text-xs text-grey-800",children:e.description}),Z(zb,{className:"absolute top-7 right-5 md:right-7",children:Z(b2,{className:"w-4 h-4 text-grey-900"})})]}),Z(Ub,{})]});function qb(e){const[t,r]=v.useState(e),n=t==="dark"?"light":"dark";return v.useEffect(()=>{const i=window.document.documentElement;i.classList.remove(n),i.classList.add(t)},[t,n]),[n,r]}const k2="Dialog",[$2,Vk]=on(k2),[Qb,$r]=$2(k2),Zb=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=v.useRef(null),l=v.useRef(null),[u=!1,c]=lo({prop:n,defaultProp:i,onChange:o});return v.createElement(Qb,{scope:t,triggerRef:s,contentRef:l,contentId:Xr(),titleId:Xr(),descriptionId:Xr(),open:u,onOpenChange:c,onOpenToggle:v.useCallback(()=>c(f=>!f),[c]),modal:a},r)},Jb="DialogTrigger",ek=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=$r(Jb,r),o=He(t,i.triggerRef);return v.createElement(Ie.button,de({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":eh(i.open)},n,{ref:o,onClick:Ee(e.onClick,i.onOpenToggle)}))}),N2="DialogPortal",[tk,M2]=$2(N2,{forceMount:void 0}),rk=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,o=$r(N2,t);return v.createElement(tk,{scope:t,forceMount:r},v.Children.map(n,a=>v.createElement(Ei,{present:r||o.open},v.createElement(du,{asChild:!0,container:i},a))))},n0="DialogOverlay",nk=v.forwardRef((e,t)=>{const r=M2(n0,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=$r(n0,e.__scopeDialog);return o.modal?v.createElement(Ei,{present:n||o.open},v.createElement(ik,de({},i,{ref:t}))):null}),ik=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=$r(n0,r);return v.createElement(vd,{as:ii,allowPinchZoom:!0,shards:[i.contentRef]},v.createElement(Ie.div,de({"data-state":eh(i.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),Ha="DialogContent",ok=v.forwardRef((e,t)=>{const r=M2(Ha,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,o=$r(Ha,e.__scopeDialog);return v.createElement(Ei,{present:n||o.open},o.modal?v.createElement(ak,de({},i,{ref:t})):v.createElement(sk,de({},i,{ref:t})))}),ak=v.forwardRef((e,t)=>{const r=$r(Ha,e.__scopeDialog),n=v.useRef(null),i=He(t,r.contentRef,n);return v.useEffect(()=>{const o=n.current;if(o)return md(o)},[]),v.createElement(L2,de({},e,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=r.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&o.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,o=>o.preventDefault())}))}),sk=v.forwardRef((e,t)=>{const r=$r(Ha,e.__scopeDialog),n=v.useRef(!1);return v.createElement(L2,de({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o;if((o=e.onCloseAutoFocus)===null||o===void 0||o.call(e,i),!i.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),i.preventDefault()}n.current=!1},onInteractOutside:i=>{var o,a;(o=e.onInteractOutside)===null||o===void 0||o.call(e,i),i.defaultPrevented||(n.current=!0);const s=i.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&i.preventDefault()}}))}),L2=v.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=$r(Ha,r),l=v.useRef(null),u=He(t,l);return cd(),v.createElement(v.Fragment,null,v.createElement(fd,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:o},v.createElement(lu,de({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":eh(s.open)},a,{ref:u,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),lk="DialogTitle",uk=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=$r(lk,r);return v.createElement(Ie.h2,de({id:i.titleId},n,{ref:t}))}),ck="DialogClose",fk=v.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=$r(ck,r);return v.createElement(Ie.button,de({type:"button"},n,{ref:t,onClick:Ee(e.onClick,()=>i.onOpenChange(!1))}))});function eh(e){return e?"open":"closed"}const dk=Zb,hk=ek,pk=rk,gk=nk,mk=ok,vk=uk,xk=fk,wk=new Date,g1=50,i0=30;function yk(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,s=(i==null?void 0:i.toString().replace(/[^0-9]/g,"")).length>=4&&(Vd(t)||t.toLowerCase()==="index"||n&&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(s){if(typeof i=="string")return(i==null?void 0:i.toString().length)??0;try{const u=new Date(i);let c="";return u.getUTCHours()===0&&u.getUTCMinutes()===0&&u.getUTCSeconds()===0&&u.getMilliseconds()===0?c=u.toISOString().split("T")[0]:(c=u.toISOString(),c=c.split("T")[0]+" "+c.split("T")[1].split(".")[0]),(c==null?void 0:c.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}}const o0=["csv","xlsx","png"];function Ek({data:e,columns:t,title:r,initialTheme:n,cmd:i=""}){const[o,a]=jo("exportType",o0[0]),[s,l]=qb(n),[u,c]=v.useState(s==="dark"),f=T=>{l(s),c(T)},[d,h]=jo("rowsPerPage",i0,u2),[m,p]=jo("advanced",!1),[g,x]=jo("colors",!1),[w,y]=v.useState([]),[_,k]=v.useState(""),[N,S]=jo("fontSize","1"),[A,R]=v.useState(t.length>g1),L=t.reduce((T,B,H)=>(T[B]=H<g1,T),{}),[V,U]=v.useState(L),W=(T,B,H)=>{const K=Math.max(...T.map(ve=>yk(ve,B)),H.length+8);return Math.min(200,K*12)},Y=v.useMemo(()=>[...t.map((T,B)=>({accessorKey:T,id:T,header:T,size:W(e,T,T),footer:T,cell:({row:H})=>{var je;const q=H.original.hasOwnProperty("index")?"index":H.original.hasOwnProperty("Index")?"Index":t[0],ee=q?H.original[q]:null,K=H.original[T],ve=typeof K,De=(K==null?void 0:K.toString().replace(/[^0-9]/g,"")).length>=4&&(Vd(T)||T.toLowerCase()==="index"||ee&&typeof ee=="string"&&(ee.toLowerCase().includes("date")||ee.toLowerCase().includes("time")||ee.toLowerCase().includes("timestamp")||ee.toLowerCase().includes("year")));if(ve==="string"&&K.startsWith("http"))return Z("a",{className:"_hyper-link",href:K,target:"_blank",rel:"noreferrer",children:K.length>25?K.substring(0,25)+"...":K});if(De){if(typeof K=="string"){const Re=K.split("T")[0],ce=(je=K.split("T")[1])==null?void 0:je.split(".")[0];return ce==="00:00:00"?Z("p",{children:Re}):Te("p",{children:[Re," ",ce]})}if(typeof K=="number"&&K<1e12)return Z("p",{children:K});try{const Re=new Date(K);let ce="";return Re.getUTCHours()===0&&Re.getUTCMinutes()===0&&Re.getUTCSeconds()===0&&Re.getMilliseconds()===0?ce=Re.toISOString().split("T")[0]:(ce=Re.toISOString(),ce=ce.split("T")[0]+" "+ce.split("T")[1].split(".")[0]),Z("p",{children:ce})}catch{return Z("p",{children:K})}}if(ve==="number"){const Re=KD(K);return Z("p",{className:bt("whitespace-nowrap",{"text-black dark:text-white":!g,"text-[#16A34A]":K>0&&g,"text-[#F87171]":K<0&&g,"text-[#404040]":K===0&&g}),children:K!==0?K>0?`${Re}`:`${Re}`:Re})}else if(ve==="string")return Z("div",{dangerouslySetInnerHTML:{__html:gb(K)}});return Z("p",{children:K})}}))],[m,g]),[re,ye]=v.useState(!1),[ge,Se]=v.useState(Y.map(T=>T.id)),ie=()=>Se(t.map(T=>T.id)),we=v.useMemo(()=>{const T=ge.map(H=>H),B=Y.map(H=>H.id);return!YD(T,B)},[ge,Y]),Q=cS({data:e,columns:Y,getCoreRowModel:J_(),getSortedRowModel:iS(),getFilteredRowModel:nS(),getPaginationRowModel:aS(),columnResizeMode:"onChange",onColumnVisibilityChange:U,onColumnOrderChange:Se,onSortingChange:y,onGlobalFilterChange:k,globalFilterFn:qD,state:{sorting:w,globalFilter:_,columnOrder:ge,columnVisibility:V},initialState:{pagination:{pageIndex:0,pageSize:typeof d=="string"?d.includes("All")?e.length:parseInt(d):d}}}),F=v.useRef(null),{rows:M}=Q.getRowModel(),b=Q.getVisibleFlatColumns();return Te(N1,{children:[Z(Yb,{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:A,setOpen:R}),Te("div",{ref:F,className:bt("overflow-x-hidden h-screen"),children:[Te("div",{className:"relative p-4",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(N)*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}),Te("p",{className:"w-1/3 text-right text-xs",children:[new Intl.DateTimeFormat("en-GB",{dateStyle:"full",timeStyle:"long"}).format(wk).replace(/:\d\d /," "),Z("br",{}),Z("span",{className:"text-grey-400",children:i})]})]}),Z("div",{className:"overflow-auto max-h-[calc(100vh-160px)] smh:max-h-[calc(100vh-95px)]",children:Te("table",{className:"text-sm relative",style:{fontSize:`${Number(N)*100}%`},children:[Z("thead",{className:"sticky top-0 bg-white dark:bg-grey-900",children:Q.getHeaderGroups().map((T,B)=>Z("tr",{children:T.headers.map((H,q)=>Z(n8,{setLockFirstColumn:ye,lockFirstColumn:re,idx:q,advanced:m,header:H,table:Q},H.id))},T.id))}),Z("tbody",{children:Q.getRowModel().rows.map((T,B)=>Z("tr",{className:"!h-[64px] border-b border-grey-400",children:T.getVisibleCells().map((H,q)=>Z("td",{className:bt("whitespace-normal p-4 text-black dark:text-white",{"bg-white dark:bg-grey-850":B%2===0,"bg-grey-100 dark:bg-[#202020]":B%2===1,"sticky left-0 z-10":q===0&&re}),style:{width:H.column.getSize()},children:If(H.column.columnDef.cell,H.getContext())},H.id))},T.id))}),M.length>30&&b.length>4&&Z("tfoot",{children:Q.getFooterGroups().map(T=>Z("tr",{children:T.headers.map(B=>Z("th",{colSpan:B.colSpan,className:"text-grey-500 bg-grey-100 dark:bg-grey-850 font-normal text-left text-sm h-10 p-4",style:{width:B.getSize()},children:B.isPlaceholder?null:If(B.column.columnDef.footer,B.getContext())},B.id))},T.id))})]})})]})]}),Te("div",{className:"smh:hidden flex max-h-[68px] overflow-x-auto bg-white/70 dark:bg-grey-900/70 backdrop-filter backdrop-blur z-20 bottom-0 left-0 w-full gap-10 justify-between py-4 px-4 text-sm",children:[Te("div",{className:"flex items-center gap-10",children:[Te(dk,{children:[Z(hk,{className:"_btn",children:"Settings"}),Te(pk,{children:[Z(gk,{className:"_modal-overlay"}),Te(mk,{className:"_modal",children:[Z(xk,{className:"absolute top-[40px] right-[46px] text-grey-200 hover:text-white rounded-[4px] focus:outline focus:outline-2 focus:outline-grey-500",children:Z(b2,{className:"w-6 h-6"})}),Z(vk,{className:"uppercase font-bold tracking-widest",children:"Settings"}),Te("div",{className:"grid grid-cols-2 gap-4 mt-10 text-sm",children:[we&&Z("button",{onClick:()=>ie(),className:"_btn h-9",children:"Reset Order"}),Z(Vi,{labelType:"row",value:u?"light":"dark",onChange:T=>{f(T!=="dark")},label:"Theme",placeholder:"Select theme",groups:[{label:"Theme",items:[{label:"Dark",value:"dark"},{label:"Light",value:"light"}]}]}),Z(Vi,{labelType:"row",value:o,onChange:T=>{a(T)},label:"Export type",placeholder:"Select export type",groups:[{label:"Export type",items:o0.map(T=>({label:T,value:T}))}]}),Z(Vi,{labelType:"row",value:N,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"}]}]}),Z(l1,{table:Q,label:"Filter"}),Z("div",{className:"flex gap-2 items-center",children:Z(Vi,{labelType:"row",value:m?"advanced":"simple",onChange:T=>{p(T==="advanced")},label:"Type",placeholder:"Select type",groups:[{label:"Type",items:[{label:"Simple",value:"simple"},{label:"Advanced",value:"advanced"}]}]})}),Te("div",{className:"flex gap-2 items-center",children:[Z("label",{htmlFor:"colors",children:"Colors"}),Z("input",{id:"colors",type:"checkbox",checked:g,onChange:()=>x(!g)})]})]})]})]})]}),Z(l1,{onlyIconTrigger:!0,table:Q,label:""})]}),Z(i8,{currentPage:d,setCurrentPage:h,table:Q}),Z(o8,{setType:a,type:o,columns:t,data:e})]})]})]})}function B2(e){let t=null;return()=>(t==null&&(t=e()),t)}function _k(e,t){return e.filter(r=>r!==t)}function Sk(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 Tk{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=Sk(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=_k(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class Ck{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 U2="__NATIVE_FILE__",H2="__NATIVE_URL__",V2="__NATIVE_TEXT__",W2="__NATIVE_HTML__",m1=Object.freeze(Object.defineProperty({__proto__:null,FILE:U2,HTML:W2,TEXT:V2,URL:H2},Symbol.toStringTag,{value:"Module"}));function Lc(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const a0={[U2]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[W2]:{exposeProperties:{html:(e,t)=>Lc(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[H2]:{exposeProperties:{urls:(e,t)=>Lc(e,t,"").split(`
`),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[V2]:{exposeProperties:{text:(e,t)=>Lc(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Ak(e,t){const r=a0[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new Ck(r);return n.loadDataTransfer(t),n}function Bc(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(a0).filter(r=>{const n=a0[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const Rk=B2(()=>/firefox/i.test(navigator.userAgent)),z2=B2(()=>!!window.safari);class v1{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 h=r[c];if(h<t)l=c+1;else if(h>t)u=c-1;else return n[c]}s=Math.max(0,u);const f=t-r[s],d=f*f;return n[s]+i[s]*f+o[s]*d+a[s]*f*d}constructor(t,r){const{length:n}=t,i=[];for(let h=0;h<n;h++)i.push(h);i.sort((h,m)=>t[h]<t[m]?-1:1);const o=[],a=[];let s,l;for(let h=0;h<n-1;h++)s=t[h+1]-t[h],l=r[h+1]-r[h],o.push(s),a.push(l/s);const u=[a[0]];for(let h=0;h<o.length-1;h++){const m=a[h],p=a[h+1];if(m*p<=0)u.push(0);else{s=o[h];const g=o[h+1],x=s+g;u.push(3*x/((x+g)/m+(x+s)/p))}}u.push(a[a.length-1]);const c=[],f=[];let d;for(let h=0;h<u.length-1;h++){d=a[h];const m=u[h],p=1/o[h],g=m+u[h+1]-d-d;c.push((d-m-g)*p),f.push(g*p*p)}this.xs=t,this.ys=r,this.c1s=u,this.c2s=c,this.c3s=f}}const Ok=1;function G2(e){const t=e.nodeType===Ok?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function Us(e){return{x:e.clientX,y:e.clientY}}function Fk(e){var t;return e.nodeName==="IMG"&&(Rk()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function Dk(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return z2()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function Pk(e,t,r,n,i){const o=Fk(t),s=G2(o?e:t),l={x:r.x-s.x,y:r.y-s.y},{offsetWidth:u,offsetHeight:c}=e,{anchorX:f,anchorY:d}=n,{dragPreviewWidth:h,dragPreviewHeight:m}=Dk(o,t,u,c),p=()=>{let N=new v1([0,.5,1],[l.y,l.y/c*m,l.y+m-c]).interpolate(d);return z2()&&o&&(N+=(window.devicePixelRatio-1)*m),N},g=()=>new v1([0,.5,1],[l.x,l.x/u*h,l.x+h-u]).interpolate(f),{offsetX:x,offsetY:w}=i,y=x===0||x,_=w===0||w;return{x:y?x:g(),y:_?w:p()}}class Ik{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 bk(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x1(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){bk(e,i,r[i])})}return e}class kk{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 x1({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 x1({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(m1).some(r=>m1[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Ak(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&&G2(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=Us(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),d=this.sourcePreviewNodes.get(c)||f;if(d){const{anchorX:h,anchorY:m,offsetX:p,offsetY:g}=this.getCurrentSourcePreviewNodeOptions(),y=Pk(f,d,a,{anchorX:h,anchorY:m},{offsetX:p,offsetY:g});s.setDragImage(d,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:Us(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=Us(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:Us(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 Ik(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Tk(this.isNodeInDocument)}}const $k=function(t,r,n){return new kk(t,r,n)};function Nk(){const[e,t]=v.useState(null),[r,n]=v.useState("Interactive Table");v.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 h;if(!a)return null;let s=(h=a.title)==null?void 0:h.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 d=a.data.map((m,p)=>{const g={};return m.forEach((x,w)=>{g[c[w]]=x||""}),g});return{columns:c,data:d}})(e);return Z("div",{className:"relative h-full bg-white dark:bg-black text-black dark:text-white",children:Z(mI,{backend:$k,children:o&&Z(Ek,{title:r,data:o.data,columns:o.columns,initialTheme:e.theme&&typeof e.theme=="string"&&e.theme==="dark"?"dark":"light",cmd:(e==null?void 0:e.command_location)??""})})})}fv.render(Z(nr.StrictMode,{children:Z(Nk,{})}),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}._modal{border-radius:.25rem;border-width:1px;border-color:#5a5a5a;--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);position:fixed;top:50%;left:50%;z-index:50;max-height:608px;width:90%;max-width:568px;--tw-translate-x: -50%;--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));overflow:auto;background-color:#070707;padding:.5rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));transition-duration:.3s}._modal:focus{outline:2px solid transparent;outline-offset:2px}@media (min-width: 768px){._modal{padding:2.5rem}}._modal-overlay{position:fixed;top:0px;right:0px;bottom:0px;left:0px;z-index:40;background-color:#070707;opacity:.6}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-inset-0{top:-0px;right:-0px;bottom:-0px;left:-0px}.-inset-0\.5{top:-.125rem;right:-.125rem;bottom:-.125rem;left:-.125rem}.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-\[8px\]{left:8px}.right-0{right:0px}.right-4{right:1rem}.right-5{right:1.25rem}.right-\[46px\]{right:46px}.top-0{top:0px}.top-7{top:1.75rem}.top-\[25px\]{top:25px}.top-\[40px\]{top:40px}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mr-1{margin-right:.25rem}.mt-10{margin-top:2.5rem}.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-\[64px\]{height:64px!important}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.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}.max-h-\[68px\]{max-height:68px}.max-h-\[calc\(100vh-160px\)\]{max-height:calc(100vh - 160px)}.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-7{width:1.75rem}.w-\[25px\]{width:25px}.w-auto{width:auto}.w-full{width:100%}.max-w-\[216px\]{max-width:216px}.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-2{grid-template-columns:repeat(2,minmax(0,1fr))}.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-\[5px\]{gap:5px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-hidden{overflow-x:hidden}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-\[3px\]{border-radius:3px}.rounded-\[4px\]{border-radius:4px}.rounded-md{border-radius:.375rem}.border{border-width:1px}.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-200{border-color:#dcdcdc}.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-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-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-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-\[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-\[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}.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-200{color:#dcdcdc}.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-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}}::-webkit-scrollbar{width:20px}::-webkit-scrollbar-track{background-color:transparent}::-webkit-scrollbar-thumb{background-color:#d6dee1;border-radius:20px;border:6px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background-color:#a8bbbf}::-webkit-scrollbar-corner{background:rgba(0,0,0,0)}.hover\:bg-grey-300:hover{background-color:#c8c8c8}.hover\:text-grey-800:hover{color:#2a2a2a}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.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\:outline:focus{outline-style:solid}.focus\:outline-2:focus{outline-width:2px}.focus\:outline-grey-500:focus{outline-color:gray}.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-grey-800{border-color:#2a2a2a}.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\:hover\:bg-grey-800:hover{background-color:#2a2a2a}.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\:flex{display:flex}.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}}@media (min-width: 1024px){.lg\:block{display:block}.lg\:flex{display:flex}}@media (max-height: 450px){.smh\:hidden{display:none}.smh\:max-h-\[calc\(100vh-95px\)\]{max-height:calc(100vh - 95px)}}
</style>
</head>
<body>
<div id="root"></div>
</body>
</html>