vendor: 19,666 bytes, lines 1-34
1(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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Md=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yk={exports:{}},Rp={},xk={exports:{}},Ke={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var od=Symbol.for("react.element"),f3=Symbol.for("react.portal"),d3=Symbol.for("react.fragment"),h3=Symbol.for("react.strict_mode"),p3=Symbol.for("react.profiler"),m3=Symbol.for("react.provider"),v3=Symbol.for("react.context"),g3=Symbol.for("react.forward_ref"),y3=Symbol.for("react.suspense"),x3=Symbol.for("react.memo"),_3=Symbol.for("react.lazy"),lE=Symbol.iterator;function w3(e){return e===null||typeof e!="object"?null:(e=lE&&e[lE]||e["@@iterator"],typeof e=="function"?e:null)}var _k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wk=Object.assign,Ek={};function yu(e,t,r){this.props=e,this.context=t,this.refs=Ek,this.updater=r||_k}yu.prototype.isReactComponent={};yu.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yu.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tk(){}Tk.prototype=yu.prototype;function p1(e,t,r){this.props=e,this.context=t,this.refs=Ek,this.updater=r||_k}var m1=p1.prototype=new Tk;m1.constructor=p1;wk(m1,yu.prototype);m1.isPureReactComponent=!0;var uE=Array.isArray,Sk=Object.prototype.hasOwnProperty,v1={current:null},Ak={key:!0,ref:!0,__self:!0,__source:!0};function bk(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)Sk.call(t,n)&&!Ak.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:od,type:e,key:a,ref:o,props:i,_owner:v1.current}}function E3(e,t){return{$$typeof:od,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function g1(e){return typeof e=="object"&&e!==null&&e.$$typeof===od}function T3(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var cE=/\/+/g;function nv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?T3(""+e.key):t.toString(36)}function S0(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case od:case f3:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+nv(o,0):n,uE(i)?(r="",e!=null&&(r=e.replace(cE,"$&/")+"/"),S0(i,t,r,"",function(u){return u})):i!=null&&(g1(i)&&(i=E3(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(cE,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",uE(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+nv(a,s);o+=S0(a,t,r,l,i)}else if(l=w3(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+nv(a,s++),o+=S0(a,t,r,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Dd(e,t,r){if(e==null)return e;var n=[],i=0;return S0(e,n,"","",function(a){return t.call(r,a,i++)}),n}function S3(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var wn={current:null},A0={transition:null},A3={ReactCurrentDispatcher:wn,ReactCurrentBatchConfig:A0,ReactCurrentOwner:v1};function Ck(){throw Error("act(...) is not supported in production builds of React.")}Ke.Children={map:Dd,forEach:function(e,t,r){Dd(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Dd(e,function(){t++}),t},toArray:function(e){return Dd(e,function(t){return t})||[]},only:function(e){if(!g1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Ke.Component=yu;Ke.Fragment=d3;Ke.Profiler=p3;Ke.PureComponent=p1;Ke.StrictMode=h3;Ke.Suspense=y3;Ke.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A3;Ke.act=Ck;Ke.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=wk({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=v1.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)Sk.call(t,l)&&!Ak.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:od,type:e.type,key:i,ref:a,props:n,_owner:o}};Ke.createContext=function(e){return e={$$typeof:v3,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:m3,_context:e},e.Consumer=e};Ke.createElement=bk;Ke.createFactory=function(e){var t=bk.bind(null,e);return t.type=e,t};Ke.createRef=function(){return{current:null}};Ke.forwardRef=function(e){return{$$typeof:g3,render:e}};Ke.isValidElement=g1;Ke.lazy=function(e){return{$$typeof:_3,_payload:{_status:-1,_result:e},_init:S3}};Ke.memo=function(e,t){return{$$typeof:x3,type:e,compare:t===void 0?null:t}};Ke.startTransition=function(e){var t=A0.transition;A0.transition={};try{e()}finally{A0.transition=t}};Ke.unstable_act=Ck;Ke.useCallback=function(e,t){return wn.current.useCallback(e,t)};Ke.useContext=function(e){return wn.current.useContext(e)};Ke.useDebugValue=function(){};Ke.useDeferredValue=function(e){return wn.current.useDeferredValue(e)};Ke.useEffect=function(e,t){return wn.current.useEffect(e,t)};Ke.useId=function(){return wn.current.useId()};Ke.useImperativeHandle=function(e,t,r){return wn.current.useImperativeHandle(e,t,r)};Ke.useInsertionEffect=function(e,t){return wn.current.useInsertionEffect(e,t)};Ke.useLayoutEffect=function(e,t){return wn.current.useLayoutEffect(e,t)};Ke.useMemo=function(e,t){return wn.current.useMemo(e,t)};Ke.useReducer=function(e,t,r){return wn.current.useReducer(e,t,r)};Ke.useRef=function(e){return wn.current.useRef(e)};Ke.useState=function(e){return wn.current.useState(e)};Ke.useSyncExternalStore=function(e,t,r){return wn.current.useSyncExternalStore(e,t,r)};Ke.useTransition=function(){return wn.current.useTransition()};Ke.version="18.3.1";xk.exports=Ke;var Q=xk.exports;const j=ft(Q);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var b3=Q,C3=Symbol.for("react.element"),P3=Symbol.for("react.fragment"),k3=Object.prototype.hasOwnProperty,I3=b3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,N3={key:!0,ref:!0,__self:!0,__source:!0};function Pk(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)k3.call(t,n)&&!N3.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:C3,type:e,key:a,ref:o,props:i,_owner:I3.current}}Rp.Fragment=P3;Rp.jsx=Pk;Rp.jsxs=Pk;yk.exports=Rp;var b=yk.exports,kk={exports:{}},jn={},Ik={exports:{}},Nk={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(J,F){var ee=J.length;J.push(F);e:for(;0<ee;){var le=ee-1>>>1,R=J[le];if(0<i(R,F))J[le]=F,J[ee]=R,ee=le;else break e}}function r(J){return J.length===0?null:J[0]}function n(J){if(J.length===0)return null;var F=J[0],ee=J.pop();if(ee!==F){J[0]=ee;e:for(var le=0,R=J.length,X=R>>>1;le<X;){var q=2*(le+1)-1,z=J[q],se=q+1,pe=J[se];if(0>i(z,ee))se<R&&0>i(pe,z)?(J[le]=pe,J[se]=ee,le=se):(J[le]=z,J[q]=ee,le=q);else if(se<R&&0>i(pe,ee))J[le]=pe,J[se]=ee,le=se;else break e}}return F}function i(J,F){var ee=J.sortIndex-F.sortIndex;return ee!==0?ee:J.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,m=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(J){for(var F=r(u);F!==null;){if(F.callback===null)n(u);else if(F.startTime<=J)n(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=r(u)}}function S(J){if(v=!1,_(J),!g)if(r(l)!==null)g=!0,Y(T);else{var F=r(u);F!==null&&W(S,F.startTime-J)}}function T(J,F){g=!1,v&&(v=!1,x(P),P=-1),m=!0;var ee=d;try{for(_(F),f=r(l);f!==null&&(!(f.expirationTime>F)||J&&!M());){var le=f.callback;if(typeof le=="function"){f.callback=null,d=f.priorityLevel;var R=le(f.expirationTime<=F);F=e.unstable_now(),typeof R=="function"?f.callback=R:f===r(l)&&n(l),_(F)}else n(l);f=r(l)}if(f!==null)var X=!0;else{var q=r(u);q!==null&&W(S,q.startTime-F),X=!1}return X}finally{f=null,d=ee,m=!1}}var E=!1,A=null,P=-1,C=5,N=-1;function M(){return!(e.unstable_now()-N<C)}function k(){if(A!==null){var J=e.unstable_now();N=J;var F=!0;try{F=A(!0,J)}finally{F?H():(E=!1,A=null)}}else E=!1}var H;if(typeof w=="function")H=function(){w(k)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,U=K.port2;K.port1.onmessage=k,H=function(){U.postMessage(null)}}else H=function(){y(k,0)};function Y(J){A=J,E||(E=!0,H())}function W(J,F){P=y(function(){J(e.unstable_now())},F)}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(J){J.callback=null},e.unstable_continueExecution=function(){g||m||(g=!0,Y(T))},e.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<J?Math.floor(1e3/J):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(J){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var ee=d;d=F;try{return J()}finally{d=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(J,F){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var ee=d;d=J;try{return F()}finally{d=ee}},e.unstable_scheduleCallback=function(J,F,ee){var le=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?le+ee:le):ee=le,J){case 1:var R=-1;break;case 2:R=250;break;case 5:R=1073741823;break;case 4:R=1e4;break;default:R=5e3}return R=ee+R,J={id:c++,callback:F,priorityLevel:J,startTime:ee,expirationTime:R,sortIndex:-1},ee>le?(J.sortIndex=ee,t(u,J),r(l)===null&&J===r(u)&&(v?(x(P),P=-1):v=!0,W(S,ee-le))):(J.sortIndex=R,t(l,J),g||m||(g=!0,Y(T))),J},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(J){var F=d;return function(){var ee=d;d=F;try{return J.apply(this,arguments)}finally{d=ee}}}})(Nk);Ik.exports=Nk;var O3=Ik.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var R3=Q,Vn=O3;function ye(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 Ok=new Set,Zc={};function Ns(e,t){Dl(e,t),Dl(e+"Capture",t)}function Dl(e,t){for(Zc[e]=t,e=0;e<t.length;e++)Ok.add(t[e])}var Pa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xg=Object.prototype.hasOwnProperty,M3=/^[: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]*$/,fE={},dE={};function D3(e){return xg.call(dE,e)?!0:xg.call(fE,e)?!1:M3.test(e)?dE[e]=!0:(fE[e]=!0,!1)}function F3(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 L3(e,t,r,n){if(t===null||typeof t>"u"||F3(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 En(e,t,r,n,i,a,o){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=a,this.removeEmptyString=o}var jr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jr[e]=new En(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jr[t]=new En(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jr[e]=new En(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jr[e]=new En(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){jr[e]=new En(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jr[e]=new En(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jr[e]=new En(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jr[e]=new En(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jr[e]=new En(e,5,!1,e.toLowerCase(),null,!1,!1)});var y1=/[\-:]([a-z])/g;function x1(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(y1,x1);jr[t]=new En(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(y1,x1);jr[t]=new En(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(y1,x1);jr[t]=new En(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jr[e]=new En(e,1,!1,e.toLowerCase(),null,!1,!1)});jr.xlinkHref=new En("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jr[e]=new En(e,1,!1,e.toLowerCase(),null,!0,!0)});function _1(e,t,r,n){var i=jr.hasOwnProperty(t)?jr[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(L3(t,r,i,n)&&(r=null),n||i===null?D3(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 La=R3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fd=Symbol.for("react.element"),tl=Symbol.for("react.portal"),rl=Symbol.for("react.fragment"),w1=Symbol.for("react.strict_mode"),_g=Symbol.for("react.profiler"),Rk=Symbol.for("react.provider"),Mk=Symbol.for("react.context"),E1=Symbol.for("react.forward_ref"),wg=Symbol.for("react.suspense"),Eg=Symbol.for("react.suspense_list"),T1=Symbol.for("react.memo"),Za=Symbol.for("react.lazy"),Dk=Symbol.for("react.offscreen"),hE=Symbol.iterator;function qu(e){return e===null||typeof e!="object"?null:(e=hE&&e[hE]||e["@@iterator"],typeof e=="function"?e:null)}var Ut=Object.assign,iv;function mc(e){if(iv===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);iv=t&&t[1]||""}return` 34`+iv+e}var av=!1;function ov(e,t){if(!e||av)return"";av=!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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}
vendor: 18,193 bytes, lines 34-37
34catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(` 35`),a=n.stack.split(` 36`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=` 37`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{av=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?mc(e):""}function $3(e){switch(e.tag){case 5:return mc(e.type);case 16:return mc("Lazy");case 13:return mc("Suspense");case 19:return mc("SuspenseList");case 0:case 2:case 15:return e=ov(e.type,!1),e;case 11:return e=ov(e.type.render,!1),e;case 1:return e=ov(e.type,!0),e;default:return""}}function Tg(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 rl:return"Fragment";case tl:return"Portal";case _g:return"Profiler";case w1:return"StrictMode";case wg:return"Suspense";case Eg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Mk:return(e.displayName||"Context")+".Consumer";case Rk:return(e._context.displayName||"Context")+".Provider";case E1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T1:return t=e.displayName||null,t!==null?t:Tg(e.type)||"Memo";case Za:t=e._payload,e=e._init;try{return Tg(e(t))}catch{}}return null}function B3(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Tg(t);case 8:return t===w1?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ao(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function U3(e){var t=Fk(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,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ld(e){e._valueTracker||(e._valueTracker=U3(e))}function Lk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function B0(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 Sg(e,t){var r=t.checked;return Ut({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function pE(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Ao(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 $k(e,t){t=t.checked,t!=null&&_1(e,"checked",t,!1)}function Ag(e,t){$k(e,t);var r=Ao(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")?bg(e,t.type,r):t.hasOwnProperty("defaultValue")&&bg(e,t.type,Ao(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function mE(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 bg(e,t,r){(t!=="number"||B0(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var vc=Array.isArray;function wl(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=""+Ao(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 Cg(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(ye(91));return Ut({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function vE(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(ye(92));if(vc(r)){if(1<r.length)throw Error(ye(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:Ao(r)}}function Bk(e,t){var r=Ao(t.value),n=Ao(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 gE(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Uk(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 Pg(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Uk(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $d,Gk=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!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($d=$d||document.createElement("div"),$d.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$d.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Qc(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Ac={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},G3=["Webkit","ms","Moz","O"];Object.keys(Ac).forEach(function(e){G3.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ac[t]=Ac[e]})});function Vk(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Ac.hasOwnProperty(e)&&Ac[e]?(""+t).trim():t+"px"}function Hk(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Vk(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var V3=Ut({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 kg(e,t){if(t){if(V3[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ye(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ye(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ye(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ye(62))}}function Ig(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ng=null;function S1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Og=null,El=null,Tl=null;function yE(e){if(e=ud(e)){if(typeof Og!="function")throw Error(ye(280));var t=e.stateNode;t&&(t=$p(t),Og(e.stateNode,e.type,t))}}function jk(e){El?Tl?Tl.push(e):Tl=[e]:El=e}function zk(){if(El){var e=El,t=Tl;if(Tl=El=null,yE(e),t)for(e=0;e<t.length;e++)yE(t[e])}}function Wk(e,t){return e(t)}function qk(){}var sv=!1;function Kk(e,t,r){if(sv)return e(t,r);sv=!0;try{return Wk(e,t,r)}finally{sv=!1,(El!==null||Tl!==null)&&(qk(),zk())}}function ef(e,t){var r=e.stateNode;if(r===null)return null;var n=$p(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(ye(231,t,typeof r));return r}var Rg=!1;if(Pa)try{var Ku={};Object.defineProperty(Ku,"passive",{get:function(){Rg=!0}}),window.addEventListener("test",Ku,Ku),window.removeEventListener("test",Ku,Ku)}catch{Rg=!1}function H3(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(c){this.onError(c)}}var bc=!1,U0=null,G0=!1,Mg=null,j3={onError:function(e){bc=!0,U0=e}};function z3(e,t,r,n,i,a,o,s,l){bc=!1,U0=null,H3.apply(j3,arguments)}function W3(e,t,r,n,i,a,o,s,l){if(z3.apply(this,arguments),bc){if(bc){var u=U0;bc=!1,U0=null}else throw Error(ye(198));G0||(G0=!0,Mg=u)}}function Os(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function Yk(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 xE(e){if(Os(e)!==e)throw Error(ye(188))}function q3(e){var t=e.alternate;if(!t){if(t=Os(e),t===null)throw Error(ye(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return xE(i),e;if(a===n)return xE(i),t;a=a.sibling}throw Error(ye(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(ye(189))}}if(r.alternate!==n)throw Error(ye(190))}if(r.tag!==3)throw Error(ye(188));return r.stateNode.current===r?e:t}function Xk(e){return e=q3(e),e!==null?Jk(e):null}function Jk(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jk(e);if(t!==null)return t;e=e.sibling}return null}var Zk=Vn.unstable_scheduleCallback,_E=Vn.unstable_cancelCallback,K3=Vn.unstable_shouldYield,Y3=Vn.unstable_requestPaint,Yt=Vn.unstable_now,X3=Vn.unstable_getCurrentPriorityLevel,A1=Vn.unstable_ImmediatePriority,Qk=Vn.unstable_UserBlockingPriority,V0=Vn.unstable_NormalPriority,J3=Vn.unstable_LowPriority,eI=Vn.unstable_IdlePriority,Mp=null,ea=null;function Z3(e){if(ea&&typeof ea.onCommitFiberRoot=="function")try{ea.onCommitFiberRoot(Mp,e,void 0,(e.current.flags&128)===128)}catch{}}var Ri=Math.clz32?Math.clz32:tL,Q3=Math.log,eL=Math.LN2;function tL(e){return e>>>=0,e===0?32:31-(Q3(e)/eL|0)|0}var Bd=64,Ud=4194304;function gc(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function H0(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=gc(s):(a&=o,a!==0&&(n=gc(a)))}else o=r&~i,o!==0?n=gc(o):a!==0&&(n=gc(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Ri(t),i=1<<r,n|=e[r],t&=~i;return n}function rL(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function nL(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Ri(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=rL(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function Dg(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tI(){var e=Bd;return Bd<<=1,!(Bd&4194240)&&(Bd=64),e}function lv(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function sd(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ri(t),e[t]=r}function iL(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Ri(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function b1(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Ri(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var dt=0;function rI(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var nI,C1,iI,aI,oI,Fg=!1,Gd=[],po=null,mo=null,vo=null,tf=new Map,rf=new Map,to=[],aL="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 wE(e,t){switch(e){case"focusin":case"focusout":po=null;break;case"dragenter":case"dragleave":mo=null;break;case"mouseover":case"mouseout":vo=null;break;case"pointerover":case"pointerout":tf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rf.delete(t.pointerId)}}function Yu(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=ud(t),t!==null&&C1(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function oL(e,t,r,n,i){switch(t){case"focusin":return po=Yu(po,e,t,r,n,i),!0;case"dragenter":return mo=Yu(mo,e,t,r,n,i),!0;case"mouseover":return vo=Yu(vo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return tf.set(a,Yu(tf.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,rf.set(a,Yu(rf.get(a)||null,e,t,r,n,i)),!0}return!1}function sI(e){var t=rs(e.target);if(t!==null){var r=Os(t);if(r!==null){if(t=r.tag,t===13){if(t=Yk(r),t!==null){e.blockedOn=t,oI(e.priority,function(){iI(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function b0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Lg(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Ng=n,r.target.dispatchEvent(n),Ng=null}else return t=ud(r),t!==null&&C1(t),e.blockedOn=r,!1;t.shift()}return!0}function EE(e,t,r){b0(e)&&r.delete(t)}function sL(){Fg=!1,po!==null&&b0(po)&&(po=null),mo!==null&&b0(mo)&&(mo=null),vo!==null&&b0(vo)&&(vo=null),tf.forEach(EE),rf.forEach(EE)}function Xu(e,t){e.blockedOn===t&&(e.blockedOn=null,Fg||(Fg=!0,Vn.unstable_scheduleCallback(Vn.unstable_NormalPriority,sL)))}function nf(e){function t(i){return Xu(i,e)}if(0<Gd.length){Xu(Gd[0],e);for(var r=1;r<Gd.length;r++){var n=Gd[r];n.blockedOn===e&&(n.blockedOn=null)}}for(po!==null&&Xu(po,e),mo!==null&&Xu(mo,e),vo!==null&&Xu(vo,e),tf.forEach(t),rf.forEach(t),r=0;r<to.length;r++)n=to[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<to.length&&(r=to[0],r.blockedOn===null);)sI(r),r.blockedOn===null&&to.shift()}var Sl=La.ReactCurrentBatchConfig,j0=!0;function lL(e,t,r,n){var i=dt,a=Sl.transition;Sl.transition=null;try{dt=1,P1(e,t,r,n)}finally{dt=i,Sl.transition=a}}function uL(e,t,r,n){var i=dt,a=Sl.transition;Sl.transition=null;try{dt=4,P1(e,t,r,n)}finally{dt=i,Sl.transition=a}}function P1(e,t,r,n){if(j0){var i=Lg(e,t,r,n);if(i===null)yv(e,t,n,z0,r),wE(e,n);else if(oL(i,e,t,r,n))n.stopPropagation();else if(wE(e,n),t&4&&-1<aL.indexOf(e)){for(;i!==null;){var a=ud(i);if(a!==null&&nI(a),a=Lg(e,t,r,n),a===null&&yv(e,t,n,z0,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else yv(e,t,n,null,r)}}var z0=null;function Lg(e,t,r,n){if(z0=null,e=S1(n),e=rs(e),e!==null)if(t=Os(e),t===null)e=null;else if(r=t.tag,r===13){if(e=Yk(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return z0=e,null}
vendor: 10,401 bytes, line 37
37function lI(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(X3()){case A1:return 1;case Qk:return 4;case V0:case J3:return 16;case eI:return 536870912;default:return 16}default:return 16}}var ao=null,k1=null,C0=null;function uI(){if(C0)return C0;var e,t=k1,r=t.length,n,i="value"in ao?ao.value:ao.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return C0=i.slice(e,1<n?1-n:void 0)}function P0(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 Vd(){return!0}function TE(){return!1}function zn(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Vd:TE,this.isPropagationStopped=TE,this}return Ut(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=Vd)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Vd)},persist:function(){},isPersistent:Vd}),t}var xu={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},I1=zn(xu),ld=Ut({},xu,{view:0,detail:0}),cL=zn(ld),uv,cv,Ju,Dp=Ut({},ld,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:N1,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!==Ju&&(Ju&&e.type==="mousemove"?(uv=e.screenX-Ju.screenX,cv=e.screenY-Ju.screenY):cv=uv=0,Ju=e),uv)},movementY:function(e){return"movementY"in e?e.movementY:cv}}),SE=zn(Dp),fL=Ut({},Dp,{dataTransfer:0}),dL=zn(fL),hL=Ut({},ld,{relatedTarget:0}),fv=zn(hL),pL=Ut({},xu,{animationName:0,elapsedTime:0,pseudoElement:0}),mL=zn(pL),vL=Ut({},xu,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gL=zn(vL),yL=Ut({},xu,{data:0}),AE=zn(yL),xL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_L={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"},wL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function EL(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=wL[e])?!!t[e]:!1}function N1(){return EL}var TL=Ut({},ld,{key:function(e){if(e.key){var t=xL[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=P0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_L[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:N1,charCode:function(e){return e.type==="keypress"?P0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?P0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),SL=zn(TL),AL=Ut({},Dp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bE=zn(AL),bL=Ut({},ld,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:N1}),CL=zn(bL),PL=Ut({},xu,{propertyName:0,elapsedTime:0,pseudoElement:0}),kL=zn(PL),IL=Ut({},Dp,{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}),NL=zn(IL),OL=[9,13,27,32],O1=Pa&&"CompositionEvent"in window,Cc=null;Pa&&"documentMode"in document&&(Cc=document.documentMode);var RL=Pa&&"TextEvent"in window&&!Cc,cI=Pa&&(!O1||Cc&&8<Cc&&11>=Cc),CE=" ",PE=!1;function fI(e,t){switch(e){case"keyup":return OL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dI(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nl=!1;function ML(e,t){switch(e){case"compositionend":return dI(t);case"keypress":return t.which!==32?null:(PE=!0,CE);case"textInput":return e=t.data,e===CE&&PE?null:e;default:return null}}function DL(e,t){if(nl)return e==="compositionend"||!O1&&fI(e,t)?(e=uI(),C0=k1=ao=null,nl=!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 cI&&t.locale!=="ko"?null:t.data;default:return null}}var FL={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 kE(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!FL[e.type]:t==="textarea"}function hI(e,t,r,n){jk(n),t=W0(t,"onChange"),0<t.length&&(r=new I1("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Pc=null,af=null;function LL(e){SI(e,0)}function Fp(e){var t=ol(e);if(Lk(t))return e}function $L(e,t){if(e==="change")return t}var pI=!1;if(Pa){var dv;if(Pa){var hv="oninput"in document;if(!hv){var IE=document.createElement("div");IE.setAttribute("oninput","return;"),hv=typeof IE.oninput=="function"}dv=hv}else dv=!1;pI=dv&&(!document.documentMode||9<document.documentMode)}function NE(){Pc&&(Pc.detachEvent("onpropertychange",mI),af=Pc=null)}function mI(e){if(e.propertyName==="value"&&Fp(af)){var t=[];hI(t,af,e,S1(e)),Kk(LL,t)}}function BL(e,t,r){e==="focusin"?(NE(),Pc=t,af=r,Pc.attachEvent("onpropertychange",mI)):e==="focusout"&&NE()}function UL(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fp(af)}function GL(e,t){if(e==="click")return Fp(t)}function VL(e,t){if(e==="input"||e==="change")return Fp(t)}function HL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bi=typeof Object.is=="function"?Object.is:HL;function of(e,t){if(Bi(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++){var i=r[n];if(!xg.call(t,i)||!Bi(e[i],t[i]))return!1}return!0}function OE(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function RE(e,t){var r=OE(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=OE(r)}}function vI(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vI(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gI(){for(var e=window,t=B0();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=B0(e.document)}return t}function R1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jL(e){var t=gI(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&vI(r.ownerDocument.documentElement,r)){if(n!==null&&R1(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=RE(r,a);var o=RE(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zL=Pa&&"documentMode"in document&&11>=document.documentMode,il=null,$g=null,kc=null,Bg=!1;function ME(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Bg||il==null||il!==B0(n)||(n=il,"selectionStart"in n&&R1(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:n.focusNode,focusOffset:n.focusOffset}),kc&&of(kc,n)||(kc=n,n=W0($g,"onSelect"),0<n.length&&(t=new I1("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=il)))}function Hd(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var al={animationend:Hd("Animation","AnimationEnd"),animationiteration:Hd("Animation","AnimationIteration"),animationstart:Hd("Animation","AnimationStart"),transitionend:Hd("Transition","TransitionEnd")},pv={},yI={};Pa&&(yI=document.createElement("div").style,"AnimationEvent"in window||(delete al.animationend.animation,delete al.animationiteration.animation,delete al.animationstart.animation),"TransitionEvent"in window||delete al.transitionend.transition);function Lp(e){if(pv[e])return pv[e];if(!al[e])return e;var t=al[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in yI)return pv[e]=t[r];return e}var xI=Lp("animationend"),_I=Lp("animationiteration"),wI=Lp("animationstart"),EI=Lp("transitionend"),TI=new Map,DE="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Oo(e,t){TI.set(e,t),Ns(t,[e])}for(var mv=0;mv<DE.length;mv++){var vv=DE[mv],WL=vv.toLowerCase(),qL=vv[0].toUpperCase()+vv.slice(1);Oo(WL,"on"+qL)}Oo(xI,"onAnimationEnd");Oo(_I,"onAnimationIteration");Oo(wI,"onAnimationStart");Oo("dblclick","onDoubleClick");Oo("focusin","onFocus");Oo("focusout","onBlur");Oo(EI,"onTransitionEnd");Dl("onMouseEnter",["mouseout","mouseover"]);Dl("onMouseLeave",["mouseout","mouseover"]);Dl("onPointerEnter",["pointerout","pointerover"]);Dl("onPointerLeave",["pointerout","pointerover"]);Ns("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ns("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ns("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ns("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ns("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ns("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),KL=new Set("cancel close invalid load scroll toggle".split(" ").concat(yc));function FE(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,W3(n,t,void 0,e),e.currentTarget=null}function SI(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 a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;FE(i,s,u),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;FE(i,s,u),a=l}}}if(G0)throw e=Mg,G0=!1,Mg=null,e}function bt(e,t){var r=t[jg];r===void 0&&(r=t[jg]=new Set);var n=e+"__bubble";r.has(n)||(AI(t,e,2,!1),r.add(n))}function gv(e,t,r){var n=0;t&&(n|=4),AI(r,e,n,t)}var jd="_reactListening"+Math.random().toString(36).slice(2);function sf(e){if(!e[jd]){e[jd]=!0,Ok.forEach(function(r){r!=="selectionchange"&&(KL.has(r)||gv(r,!1,e),gv(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jd]||(t[jd]=!0,gv("selectionchange",!1,t))}}function AI(e,t,r,n){switch(lI(t)){case 1:var i=lL;break;case 4:i=uL;break;default:i=P1}r=i.bind(null,t,r,e),i=void 0,!Rg||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 yv(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;
vendor: 5,573 bytes, lines 37-38
37if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=rs(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}Kk(function(){var u=a,c=S1(r),f=[];e:{var d=TI.get(e);if(d!==void 0){var m=I1,g=e;switch(e){case"keypress":if(P0(r)===0)break e;case"keydown":case"keyup":m=SL;break;case"focusin":g="focus",m=fv;break;case"focusout":g="blur",m=fv;break;case"beforeblur":case"afterblur":m=fv;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":m=SE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=dL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=CL;break;case xI:case _I:case wI:m=mL;break;case EI:m=kL;break;case"scroll":m=cL;break;case"wheel":m=NL;break;case"copy":case"cut":case"paste":m=gL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=bE}var v=(t&4)!==0,y=!v&&e==="scroll",x=v?d!==null?d+"Capture":null:d;v=[];for(var w=u,_;w!==null;){_=w;var S=_.stateNode;if(_.tag===5&&S!==null&&(_=S,x!==null&&(S=ef(w,x),S!=null&&v.push(lf(w,S,_)))),y)break;w=w.return}0<v.length&&(d=new m(d,g,null,r,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",d&&r!==Ng&&(g=r.relatedTarget||r.fromElement)&&(rs(g)||g[ka]))break e;if((m||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,m?(g=r.relatedTarget||r.toElement,m=u,g=g?rs(g):null,g!==null&&(y=Os(g),g!==y||g.tag!==5&&g.tag!==6)&&(g=null)):(m=null,g=u),m!==g)){if(v=SE,S="onMouseLeave",x="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(v=bE,S="onPointerLeave",x="onPointerEnter",w="pointer"),y=m==null?d:ol(m),_=g==null?d:ol(g),d=new v(S,w+"leave",m,r,c),d.target=y,d.relatedTarget=_,S=null,rs(c)===u&&(v=new v(x,w+"enter",g,r,c),v.target=_,v.relatedTarget=y,S=v),y=S,m&&g)t:{for(v=m,x=g,w=0,_=v;_;_=qs(_))w++;for(_=0,S=x;S;S=qs(S))_++;for(;0<w-_;)v=qs(v),w--;for(;0<_-w;)x=qs(x),_--;for(;w--;){if(v===x||x!==null&&v===x.alternate)break t;v=qs(v),x=qs(x)}v=null}else v=null;m!==null&&LE(f,d,m,v,!1),g!==null&&y!==null&&LE(f,y,g,v,!0)}}e:{if(d=u?ol(u):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var T=$L;else if(kE(d))if(pI)T=VL;else{T=UL;var E=BL}else(m=d.nodeName)&&m.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(T=GL);if(T&&(T=T(e,u))){hI(f,T,r,c);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&bg(d,"number",d.value)}switch(E=u?ol(u):window,e){case"focusin":(kE(E)||E.contentEditable==="true")&&(il=E,$g=u,kc=null);break;case"focusout":kc=$g=il=null;break;case"mousedown":Bg=!0;break;case"contextmenu":case"mouseup":case"dragend":Bg=!1,ME(f,r,c);break;case"selectionchange":if(zL)break;case"keydown":case"keyup":ME(f,r,c)}var A;if(O1)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else nl?fI(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(cI&&r.locale!=="ko"&&(nl||P!=="onCompositionStart"?P==="onCompositionEnd"&&nl&&(A=uI()):(ao=c,k1="value"in ao?ao.value:ao.textContent,nl=!0)),E=W0(u,P),0<E.length&&(P=new AE(P,e,null,r,c),f.push({event:P,listeners:E}),A?P.data=A:(A=dI(r),A!==null&&(P.data=A)))),(A=RL?ML(e,r):DL(e,r))&&(u=W0(u,"onBeforeInput"),0<u.length&&(c=new AE("onBeforeInput","beforeinput",null,r,c),f.push({event:c,listeners:u}),c.data=A))}SI(f,t)})}function lf(e,t,r){return{instance:e,listener:t,currentTarget:r}}function W0(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ef(e,r),a!=null&&n.unshift(lf(e,a,i)),a=ef(e,t),a!=null&&n.push(lf(e,a,i))),e=e.return}return n}function qs(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function LE(e,t,r,n,i){for(var a=t._reactName,o=[];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=ef(r,a),l!=null&&o.unshift(lf(r,l,s))):i||(l=ef(r,a),l!=null&&o.push(lf(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var YL=/\r\n?/g,XL=/\u0000|\uFFFD/g;function $E(e){return(typeof e=="string"?e:""+e).replace(YL,` 38`).replace(XL,"")}function zd(e,t,r){if(t=$E(t),$E(e)!==t&&r)throw Error(ye(425))}function q0(){}var Ug=null,Gg=null;function Vg(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Hg=typeof setTimeout=="function"?setTimeout:void 0,JL=typeof clearTimeout=="function"?clearTimeout:void 0,BE=typeof Promise=="function"?Promise:void 0,ZL=typeof queueMicrotask=="function"?queueMicrotask:typeof BE<"u"?function(e){return BE.resolve(null).then(e).catch(QL)}:Hg;function QL(e){setTimeout(function(){throw e})}function xv(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),nf(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}
vendor: 4,383 bytes, line 38
38while(r);nf(t)}function go(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function UE(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 _u=Math.random().toString(36).slice(2),Yi="__reactFiber$"+_u,uf="__reactProps$"+_u,ka="__reactContainer$"+_u,jg="__reactEvents$"+_u,e5="__reactListeners$"+_u,t5="__reactHandles$"+_u;function rs(e){var t=e[Yi];if(t)return t;for(var r=e.parentNode;r;){if(t=r[ka]||r[Yi]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=UE(e);e!==null;){if(r=e[Yi])return r;e=UE(e)}return t}e=r,r=e.parentNode}return null}function ud(e){return e=e[Yi]||e[ka],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ol(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(ye(33))}function $p(e){return e[uf]||null}var zg=[],sl=-1;function Ro(e){return{current:e}}function It(e){0>sl||(e.current=zg[sl],zg[sl]=null,sl--)}function xt(e,t){sl++,zg[sl]=e.current,e.current=t}var bo={},an=Ro(bo),Pn=Ro(!1),ys=bo;function Fl(e,t){var r=e.type.contextTypes;if(!r)return bo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function kn(e){return e=e.childContextTypes,e!=null}function K0(){It(Pn),It(an)}function GE(e,t,r){if(an.current!==bo)throw Error(ye(168));xt(an,t),xt(Pn,r)}function bI(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(ye(108,B3(e)||"Unknown",i));return Ut({},r,n)}function Y0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||bo,ys=an.current,xt(an,e),xt(Pn,Pn.current),!0}function VE(e,t,r){var n=e.stateNode;if(!n)throw Error(ye(169));r?(e=bI(e,t,ys),n.__reactInternalMemoizedMergedChildContext=e,It(Pn),It(an),xt(an,e)):It(Pn),xt(Pn,r)}var va=null,Bp=!1,_v=!1;function CI(e){va===null?va=[e]:va.push(e)}function r5(e){Bp=!0,CI(e)}function Mo(){if(!_v&&va!==null){_v=!0;var e=0,t=dt;try{var r=va;for(dt=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}va=null,Bp=!1}catch(i){throw va!==null&&(va=va.slice(e+1)),Zk(A1,Mo),i}finally{dt=t,_v=!1}}return null}var ll=[],ul=0,X0=null,J0=0,ri=[],ni=0,xs=null,ga=1,ya="";function Ko(e,t){ll[ul++]=J0,ll[ul++]=X0,X0=e,J0=t}function PI(e,t,r){ri[ni++]=ga,ri[ni++]=ya,ri[ni++]=xs,xs=e;var n=ga;e=ya;var i=32-Ri(n)-1;n&=~(1<<i),r+=1;var a=32-Ri(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,ga=1<<32-Ri(t)+i|r<<i|n,ya=a+e}else ga=1<<a|r<<i|n,ya=e}function M1(e){e.return!==null&&(Ko(e,1),PI(e,1,0))}function D1(e){for(;e===X0;)X0=ll[--ul],ll[ul]=null,J0=ll[--ul],ll[ul]=null;for(;e===xs;)xs=ri[--ni],ri[ni]=null,ya=ri[--ni],ri[ni]=null,ga=ri[--ni],ri[ni]=null}var Un=null,Bn=null,Mt=!1,Pi=null;function kI(e,t){var r=ai(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function HE(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,Un=e,Bn=go(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Un=e,Bn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=xs!==null?{id:ga,overflow:ya}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=ai(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Un=e,Bn=null,!0):!1;default:return!1}}function Wg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function qg(e){if(Mt){var t=Bn;if(t){var r=t;if(!HE(e,t)){if(Wg(e))throw Error(ye(418));t=go(r.nextSibling);var n=Un;t&&HE(e,t)?kI(n,r):(e.flags=e.flags&-4097|2,Mt=!1,Un=e)}}else{if(Wg(e))throw Error(ye(418));e.flags=e.flags&-4097|2,Mt=!1,Un=e}}}function jE(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Un=e}function Wd(e){if(e!==Un)return!1;if(!Mt)return jE(e),Mt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Vg(e.type,e.memoizedProps)),t&&(t=Bn)){if
vendor: 12,889 bytes, line 38
38(Wg(e))throw II(),Error(ye(418));for(;t;)kI(e,t),t=go(t.nextSibling)}if(jE(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(ye(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Bn=go(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Bn=null}}else Bn=Un?go(e.stateNode.nextSibling):null;return!0}function II(){for(var e=Bn;e;)e=go(e.nextSibling)}function Ll(){Bn=Un=null,Mt=!1}function F1(e){Pi===null?Pi=[e]:Pi.push(e)}var n5=La.ReactCurrentBatchConfig;function Zu(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(ye(309));var n=r.stateNode}if(!n)throw Error(ye(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(ye(284));if(!r._owner)throw Error(ye(290,e))}return e}function qd(e,t){throw e=Object.prototype.toString.call(t),Error(ye(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function zE(e){var t=e._init;return t(e._payload)}function NI(e){function t(x,w){if(e){var _=x.deletions;_===null?(x.deletions=[w],x.flags|=16):_.push(w)}}function r(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function n(x,w){for(x=new Map;w!==null;)w.key!==null?x.set(w.key,w):x.set(w.index,w),w=w.sibling;return x}function i(x,w){return x=wo(x,w),x.index=0,x.sibling=null,x}function a(x,w,_){return x.index=_,e?(_=x.alternate,_!==null?(_=_.index,_<w?(x.flags|=2,w):_):(x.flags|=2,w)):(x.flags|=1048576,w)}function o(x){return e&&x.alternate===null&&(x.flags|=2),x}function s(x,w,_,S){return w===null||w.tag!==6?(w=Cv(_,x.mode,S),w.return=x,w):(w=i(w,_),w.return=x,w)}function l(x,w,_,S){var T=_.type;return T===rl?c(x,w,_.props.children,S,_.key):w!==null&&(w.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Za&&zE(T)===w.type)?(S=i(w,_.props),S.ref=Zu(x,w,_),S.return=x,S):(S=D0(_.type,_.key,_.props,null,x.mode,S),S.ref=Zu(x,w,_),S.return=x,S)}function u(x,w,_,S){return w===null||w.tag!==4||w.stateNode.containerInfo!==_.containerInfo||w.stateNode.implementation!==_.implementation?(w=Pv(_,x.mode,S),w.return=x,w):(w=i(w,_.children||[]),w.return=x,w)}function c(x,w,_,S,T){return w===null||w.tag!==7?(w=ds(_,x.mode,S,T),w.return=x,w):(w=i(w,_),w.return=x,w)}function f(x,w,_){if(typeof w=="string"&&w!==""||typeof w=="number")return w=Cv(""+w,x.mode,_),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Fd:return _=D0(w.type,w.key,w.props,null,x.mode,_),_.ref=Zu(x,null,w),_.return=x,_;case tl:return w=Pv(w,x.mode,_),w.return=x,w;case Za:var S=w._init;return f(x,S(w._payload),_)}if(vc(w)||qu(w))return w=ds(w,x.mode,_,null),w.return=x,w;qd(x,w)}return null}function d(x,w,_,S){var T=w!==null?w.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return T!==null?null:s(x,w,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Fd:return _.key===T?l(x,w,_,S):null;case tl:return _.key===T?u(x,w,_,S):null;case Za:return T=_._init,d(x,w,T(_._payload),S)}if(vc(_)||qu(_))return T!==null?null:c(x,w,_,S,null);qd(x,_)}return null}function m(x,w,_,S,T){if(typeof S=="string"&&S!==""||typeof S=="number")return x=x.get(_)||null,s(w,x,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Fd:return x=x.get(S.key===null?_:S.key)||null,l(w,x,S,T);case tl:return x=x.get(S.key===null?_:S.key)||null,u(w,x,S,T);case Za:var E=S._init;return m(x,w,_,E(S._payload),T)}if(vc(S)||qu(S))return x=x.get(_)||null,c(w,x,S,T,null);qd(w,S)}return null}function g(x,w,_,S){for(var T=null,E=null,A=w,P=w=0,C=null;A!==null&&P<_.length;P++){A.index>P?(C=A,A=null):C=A.sibling;var N=d(x,A,_[P],S);if(N===null){A===null&&(A=C);break}e&&A&&N.alternate===null&&t(x,A),w=a(N,w,P),E===null?T=N:E.sibling=N,E=N,A=C}if(P===_.length)return r(x,A),Mt&&Ko(x,P),T;if(A===null){for(;P<_.length;P++)A=f(x,_[P],S),A!==null&&(w=a(A,w,P),E===null?T=A:E.sibling=A,E=A);return Mt&&Ko(x,P),T}for(A=n(x,A);P<_.length;P++)C=m(A,x,P,_[P],S),C!==null&&(e&&C.alternate!==null&&A.delete(C.key===null?P:C.key),w=a(C,w,P),E===null?T=C:E.sibling=C,E=C);return e&&A.forEach(function(M){return t(x,M)}),Mt&&Ko(x,P),T}function v(x,w,_,S){var T=qu(_);if(typeof T!="function")throw Error(ye(150));if(_=T.call(_),_==null)throw Error(ye(151));for(var E=T=null,A=w,P=w=0,C=null,N=_.next();A!==null&&!N.done;P++,N=_.next()){A.index>P?(C=A,A=null):C=A.sibling;var M=d(x,A,N.value,S);if(M===null){A===null&&(A=C);break}e&&A&&M.alternate===null&&t(x,A),w=a(M,w,P),E===null?T=M:E.sibling=M,E=M,A=C}if(N.done)return r(x,A),Mt&&Ko(x,P),T;if(A===null){for(;!N.done;P++,N=_.next())N=f(x,N.value,S),N!==null&&(w=a(N,w,P),E===null?T=N:E.sibling=N,E=N);return Mt&&Ko(x,P),T}for(A=n(x,A);!N.done;P++,N=_.next())N=m(A,x,P,N.value,S),N!==null&&(e&&N.alternate!==null&&A.delete(N.key===null?P:N.key),w=a(N,w,P),E===null?T=N:E.sibling=N,E=N);return e&&A.forEach(function(k){return t(x,k)}),Mt&&Ko(x,P),T}function y(x,w,_,S){if(typeof _=="object"&&_!==null&&_.type===rl&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Fd:e:{for(var T=_.key,E=w;E!==null;){if(E.key===T){if(T=_.type,T===rl){if(E.tag===7){r(x,E.sibling),w=i(E,_.props.children),w.return=x,x=w;break e}}else if(E.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Za&&zE(T)===E.type){r(x,E.sibling),w=i(E,_.props),w.ref=Zu(x,E,_),w.return=x,x=w;break e}r(x,E);break}else t(x,E);E=E.sibling}_.type===rl?(w=ds(_.props.children,x.mode,S,_.key),w.return=x,x=w):(S=D0(_.type,_.key,_.props,null,x.mode,S),S.ref=Zu(x,w,_),S.return=x,x=S)}return o(x);case tl:e:{for(E=_.key;w!==null;){if(w.key===E)if(w.tag===4&&w.stateNode.containerInfo===_.containerInfo&&w.stateNode.implementation===_.implementation){r(x,w.sibling),w=i(w,_.children||[]),w.return=x,x=w;break e}else{r(x,w);break}else t(x,w);w=w.sibling}w=Pv(_,x.mode,S),w.return=x,x=w}return o(x);case Za:return E=_._init,y(x,w,E(_._payload),S)}if(vc(_))return g(x,w,_,S);if(qu(_))return v(x,w,_,S);qd(x,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,w!==null&&w.tag===6?(r(x,w.sibling),w=i(w,_),w.return=x,x=w):(r(x,w),w=Cv(_,x.mode,S),w.return=x,x=w),o(x)):r(x,w)}return y}var $l=NI(!0),OI=NI(!1),Z0=Ro(null),Q0=null,cl=null,L1=null;function $1(){L1=cl=Q0=null}function B1(e){var t=Z0.current;It(Z0),e._currentValue=t}function Kg(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Al(e,t){Q0=e,L1=cl=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(bn=!0),e.firstContext=null)}function li(e){var t=e._currentValue;if(L1!==e)if(e={context:e,memoizedValue:t,next:null},cl===null){if(Q0===null)throw Error(ye(308));cl=e,Q0.dependencies={lanes:0,firstContext:e}}else cl=cl.next=e;return t}var ns=null;function U1(e){ns===null?ns=[e]:ns.push(e)}function RI(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,U1(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ia(e,n)}function Ia(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}var Qa=!1;function G1(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function MI(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 Ta(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function yo(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,tt&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ia(e,r)}return i=n.interleaved,i===null?(t.next=t,U1(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ia(e,r)}function k0(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,b1(e,r)}}function WE(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,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 eh(e,t,r,n){var i=e.updateQueue;Qa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,c=u=l=null,s=a;do{var d=s.lane,m=s.eventTime;if((n&d)===d){c!==null&&(c=c.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,v=s;switch(d=t,m=r,v.tag){case 1:if(g=v.payload,typeof g=="function"){f=g.call(m,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=v.payload,d=typeof g=="function"?g.call(m,f,d):g,d==null)break e;f=Ut({},f,d);break e;case 2:Qa=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else m={eventTime:m,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=m,l=f):c=c.next=m,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ws|=o,e.lanes=o,e.memoizedState=f}}function qE(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(ye(191,i));i.call(n)}}}var cd={},ta=Ro(cd),cf=Ro(cd),ff=Ro(cd);function is(e){if(e===cd)throw Error(ye(174));return e}function V1(e,t){switch(xt(ff,t),xt(cf,e),xt(ta,cd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pg(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pg(t,e)}It(ta),xt(ta,t)}function Bl(){It(ta),It(cf),It(ff)}function DI(e){is(ff.current);var t=is(ta.current),r=Pg(t,e.type);t!==r&&(xt(cf,e),xt(ta,r))}function H1(e){cf.current===e&&(It(ta),It(cf))}var Lt=Ro(0);function th(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&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wv=[];function j1(){for(var e=0;e<wv.length;e++)wv[e]._workInProgressVersionPrimary=null;wv.length=0}var I0=La.ReactCurrentDispatcher,Ev=La.ReactCurrentBatchConfig,_s=0,Bt=null,pr=null,Pr=null,rh=!1,Ic=!1,df=0,i5=0;function qr(){throw Error(ye(321))}function z1(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Bi(e[r],t[r]))return!1;return!0}function W1(e,t,r,n,i,a){if(_s=a,Bt=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I0.current=e===null||e.memoizedState===null?l5:u5,e=r(n,i),Ic){a=0;do{if(Ic=!1,df=0,25<=a)throw Error(ye(301));a+=1,Pr=pr=null,t.updateQueue=null,I0.current=c5,e=r(n,i)}while(Ic)}if(I0.current=nh,t=pr!==null&&pr.next!==null,_s=0,Pr=pr=Bt=null,rh=!1,t)throw Error(ye(300));return e}function q1(){var e=df!==0;return df=0,e}function Ki(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pr===null?Bt.memoizedState=Pr=e:Pr=Pr.next=e,Pr}function ui(){if(pr===null){var e=Bt.alternate;e=e!==null?e.memoizedState:null}else e=pr.next;var t=Pr===null?Bt.memoizedState:Pr.next;if(t!==null)Pr=t,pr=e;else{if(e===null)throw Error(ye(310));pr=e,e={memoizedState:pr.memoizedState,baseState:pr.baseState,baseQueue:pr.baseQueue,queue:pr.queue,next:null},Pr===null?Bt.memoizedState=Pr=e:Pr=Pr.next=e}return Pr}function hf(e,t){return typeof t=="function"?t(e):t}function Tv(e){var t=ui(),r=t.queue;if(r===null)throw Error(ye(311));r.lastRenderedReducer=e;var n=pr,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,u=a;do{var c=u.lane;
vendor: 5,486 bytes, line 38
38if((_s&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=f,o=n):l=l.next=f,Bt.lanes|=c,ws|=c}u=u.next}while(u!==null&&u!==a);l===null?o=n:l.next=s,Bi(n,t.memoizedState)||(bn=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,Bt.lanes|=a,ws|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sv(e){var t=ui(),r=t.queue;if(r===null)throw Error(ye(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Bi(a,t.memoizedState)||(bn=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function FI(){}function LI(e,t){var r=Bt,n=ui(),i=t(),a=!Bi(n.memoizedState,i);if(a&&(n.memoizedState=i,bn=!0),n=n.queue,K1(UI.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||Pr!==null&&Pr.memoizedState.tag&1){if(r.flags|=2048,pf(9,BI.bind(null,r,n,i,t),void 0,null),Nr===null)throw Error(ye(349));_s&30||$I(r,t,i)}return i}function $I(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Bt.updateQueue,t===null?(t={lastEffect:null,stores:null},Bt.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function BI(e,t,r,n){t.value=r,t.getSnapshot=n,GI(t)&&VI(e)}function UI(e,t,r){return r(function(){GI(t)&&VI(e)})}function GI(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Bi(e,r)}catch{return!0}}function VI(e){var t=Ia(e,1);t!==null&&Mi(t,e,1,-1)}function KE(e){var t=Ki();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:hf,lastRenderedState:e},t.queue=e,e=e.dispatch=s5.bind(null,Bt,e),[t.memoizedState,e]}function pf(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Bt.updateQueue,t===null?(t={lastEffect:null,stores:null},Bt.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 HI(){return ui().memoizedState}function N0(e,t,r,n){var i=Ki();Bt.flags|=e,i.memoizedState=pf(1|t,r,void 0,n===void 0?null:n)}function Up(e,t,r,n){var i=ui();n=n===void 0?null:n;var a=void 0;if(pr!==null){var o=pr.memoizedState;if(a=o.destroy,n!==null&&z1(n,o.deps)){i.memoizedState=pf(t,r,a,n);return}}Bt.flags|=e,i.memoizedState=pf(1|t,r,a,n)}function YE(e,t){return N0(8390656,8,e,t)}function K1(e,t){return Up(2048,8,e,t)}function jI(e,t){return Up(4,2,e,t)}function zI(e,t){return Up(4,4,e,t)}function WI(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 qI(e,t,r){return r=r!=null?r.concat([e]):null,Up(4,4,WI.bind(null,t,e),r)}function Y1(){}function KI(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&z1(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function YI(e,t){var r=ui();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&z1(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function XI(e,t,r){return _s&21?(Bi(r,t)||(r=tI(),Bt.lanes|=r,ws|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,bn=!0),e.memoizedState=r)}function a5(e,t){var r=dt;dt=r!==0&&4>r?r:4,e(!0);var n=Ev.transition;Ev.transition={};try{e(!1),t()}finally{dt=r,Ev.transition=n}}function JI(){return ui().memoizedState}function o5(e,t,r){var n=_o(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},ZI(e))QI(t,r);else if(r=RI(e,t,r,n),r!==null){var i=vn();Mi(r,e,n,i),eN(r,t,n)}}function s5(e,t,r){var n=_o(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(ZI(e))QI(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,Bi(s,o)){var l=t.interleaved;l===null?(i.next=i,U1(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=RI(e,t,i,n),r!==null&&(i=vn(),Mi(r,e,n,i),eN(r,t,n))}}function ZI(e){var t=e.alternate;return e===Bt||t!==null&&t===Bt}function QI(e,t){Ic=rh=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function eN(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,b1(e,r)}}var nh={readContext:li,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:!1},l5={readContext:li,useCallback:function(e,t){return Ki().memoizedState=[e,t===void 0?null:t],e},useContext:li,useEffect:YE,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,N0(4194308,4,WI.bind(null,t,e),r)},useLayoutEffect:function(e,t){return N0(4194308,4,e,t)},useInsertionEffect:function(e,t){return N0(4,2,e,t)},useMemo:function(e,t){var r=Ki();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ki();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=o5.bind(null,Bt,e),[n.memoizedState,e]}
vendor: 7,433 bytes, lines 38-40
38,useRef:function(e){var t=Ki();return e={current:e},t.memoizedState=e},useState:KE,useDebugValue:Y1,useDeferredValue:function(e){return Ki().memoizedState=e},useTransition:function(){var e=KE(!1),t=e[0];return e=a5.bind(null,e[1]),Ki().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Bt,i=Ki();if(Mt){if(r===void 0)throw Error(ye(407));r=r()}else{if(r=t(),Nr===null)throw Error(ye(349));_s&30||$I(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,YE(UI.bind(null,n,a,e),[e]),n.flags|=2048,pf(9,BI.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Ki(),t=Nr.identifierPrefix;if(Mt){var r=ya,n=ga;r=(n&~(1<<32-Ri(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=df++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=i5++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},u5={readContext:li,useCallback:KI,useContext:li,useEffect:K1,useImperativeHandle:qI,useInsertionEffect:jI,useLayoutEffect:zI,useMemo:YI,useReducer:Tv,useRef:HI,useState:function(){return Tv(hf)},useDebugValue:Y1,useDeferredValue:function(e){var t=ui();return XI(t,pr.memoizedState,e)},useTransition:function(){var e=Tv(hf)[0],t=ui().memoizedState;return[e,t]},useMutableSource:FI,useSyncExternalStore:LI,useId:JI,unstable_isNewReconciler:!1},c5={readContext:li,useCallback:KI,useContext:li,useEffect:K1,useImperativeHandle:qI,useInsertionEffect:jI,useLayoutEffect:zI,useMemo:YI,useReducer:Sv,useRef:HI,useState:function(){return Sv(hf)},useDebugValue:Y1,useDeferredValue:function(e){var t=ui();return pr===null?t.memoizedState=e:XI(t,pr.memoizedState,e)},useTransition:function(){var e=Sv(hf)[0],t=ui().memoizedState;return[e,t]},useMutableSource:FI,useSyncExternalStore:LI,useId:JI,unstable_isNewReconciler:!1};function Ti(e,t){if(e&&e.defaultProps){t=Ut({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Yg(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ut({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Gp={isMounted:function(e){return(e=e._reactInternals)?Os(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=vn(),i=_o(e),a=Ta(n,i);a.payload=t,r!=null&&(a.callback=r),t=yo(e,a,i),t!==null&&(Mi(t,e,i,n),k0(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=vn(),i=_o(e),a=Ta(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=yo(e,a,i),t!==null&&(Mi(t,e,i,n),k0(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=vn(),n=_o(e),i=Ta(r,n);i.tag=2,t!=null&&(i.callback=t),t=yo(e,i,n),t!==null&&(Mi(t,e,n,r),k0(t,e,n))}};function XE(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!of(r,n)||!of(i,a):!0}function tN(e,t,r){var n=!1,i=bo,a=t.contextType;return typeof a=="object"&&a!==null?a=li(a):(i=kn(t)?ys:an.current,n=t.contextTypes,a=(n=n!=null)?Fl(e,i):bo),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Gp,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function JE(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&&Gp.enqueueReplaceState(t,t.state,null)}function Xg(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},G1(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=li(a):(a=kn(t)?ys:an.current,i.context=Fl(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Yg(e,t,a,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&&Gp.enqueueReplaceState(i,i.state,null),eh(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ul(e,t){try{var r="",n=t;do r+=$3(n),n=n.return;while(n);var i=r}catch(a){i=` 39Error generating stack: `+a.message+` 40`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Av(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Jg(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var f5=typeof WeakMap=="function"?WeakMap:Map;function rN(e,t,r){r=Ta(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ah||(ah=!0,sy=n),Jg(e,t)},r}function nN(e,t,r){r=Ta(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Jg(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){Jg(e,t),typeof n!="function"&&(xo===null?xo=new Set([this]):xo.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function ZE(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new f5;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=A5.bind(null,e,t,r),t.then(e,e))}function QE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function eT(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Ta(-1,1),t.tag=2,yo(r,t,1))),r.lanes|=1),e)}var d5=La.ReactCurrentOwner,bn=!1;function un(e,t,r,n){t.child=e===null?OI(t,null,r,n):$l(t,e.child,r,n)}function tT(e,t,r,n,i){r=r.render;var a=t.ref;return Al(t,i),n=W1(e,t,r,n,a,i),r=q1(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Na(e,t,i)):(Mt&&r&&M1(t),t.flags|=1,un(e,t,n,i),t.child)}function rT(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!n_(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,iN(e,t,a,n,i)):(e=D0(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:of,r(o,n)&&e.ref===t.ref)return Na(e,t,i)}return t.flags|=1,e=wo(a,n),e.ref=t.ref,e.return=t,t.child=e}function iN(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(of(a,n)&&e.ref===t.ref)if(bn=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(bn=!0);else return t.lanes=e.lanes,Na(e,t,i)}return Zg(e,t,r,n,i)}function aN(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xt(dl,Mn),Mn|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xt(dl,Mn),Mn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,xt(dl,Mn),Mn|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,xt(dl,Mn),Mn|=n;return un(e,t,i,r),t.child}function oN(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}
vendor: 4,711 bytes, line 40
40function Zg(e,t,r,n,i){var a=kn(r)?ys:an.current;return a=Fl(t,a),Al(t,i),r=W1(e,t,r,n,a,i),n=q1(),e!==null&&!bn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Na(e,t,i)):(Mt&&n&&M1(t),t.flags|=1,un(e,t,r,i),t.child)}function nT(e,t,r,n,i){if(kn(r)){var a=!0;Y0(t)}else a=!1;if(Al(t,i),t.stateNode===null)O0(e,t),tN(t,r,n),Xg(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=li(u):(u=kn(r)?ys:an.current,u=Fl(t,u));var c=r.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&JE(t,o,n,u),Qa=!1;var d=t.memoizedState;o.state=d,eh(t,n,o,i),l=t.memoizedState,s!==n||d!==l||Pn.current||Qa?(typeof c=="function"&&(Yg(t,r,c,n),l=t.memoizedState),(s=Qa||XE(t,r,s,n,d,l,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,MI(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ti(t.type,s),o.props=u,f=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=li(l):(l=kn(r)?ys:an.current,l=Fl(t,l));var m=r.getDerivedStateFromProps;(c=typeof m=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||d!==l)&&JE(t,o,n,l),Qa=!1,d=t.memoizedState,o.state=d,eh(t,n,o,i);var g=t.memoizedState;s!==f||d!==g||Pn.current||Qa?(typeof m=="function"&&(Yg(t,r,m,n),g=t.memoizedState),(u=Qa||XE(t,r,u,n,d,g,l)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,g,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),o.props=n,o.state=g,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Qg(e,t,r,n,a,i)}function Qg(e,t,r,n,i,a){oN(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&VE(t,r,!1),Na(e,t,a);n=t.stateNode,d5.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=$l(t,e.child,null,a),t.child=$l(t,null,s,a)):un(e,t,s,a),t.memoizedState=n.state,i&&VE(t,r,!0),t.child}function sN(e){var t=e.stateNode;t.pendingContext?GE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&GE(e,t.context,!1),V1(e,t.containerInfo)}function iT(e,t,r,n,i){return Ll(),F1(i),t.flags|=256,un(e,t,r,n),t.child}var ey={dehydrated:null,treeContext:null,retryLane:0};function ty(e){return{baseLanes:e,cachePool:null,transitions:null}}function lN(e,t,r){var n=t.pendingProps,i=Lt.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),xt(Lt,i&1),e===null)return qg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=jp(o,n,0,null),e=ds(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ty(r),t.memoizedState=ey,e):X1(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return h5(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=wo(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=wo(s,a):(a=ds(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?ty(r):{base
vendor: 8,923 bytes, line 40
40Lanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=ey,n}return a=e.child,e=a.sibling,n=wo(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function X1(e,t){return t=jp({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Kd(e,t,r,n){return n!==null&&F1(n),$l(t,e.child,null,r),e=X1(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function h5(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=Av(Error(ye(422))),Kd(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=jp({mode:"visible",children:n.children},i,0,null),a=ds(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&$l(t,e.child,null,o),t.child.memoizedState=ty(o),t.memoizedState=ey,a);if(!(t.mode&1))return Kd(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(ye(419)),n=Av(a,n,void 0),Kd(e,t,o,n)}if(s=(o&e.childLanes)!==0,bn||s){if(n=Nr,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Ia(e,i),Mi(n,e,i,-1))}return r_(),n=Av(Error(ye(421))),Kd(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=b5.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Bn=go(i.nextSibling),Un=t,Mt=!0,Pi=null,e!==null&&(ri[ni++]=ga,ri[ni++]=ya,ri[ni++]=xs,ga=e.id,ya=e.overflow,xs=t),t=X1(t,n.children),t.flags|=4096,t)}function aT(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Kg(e.return,t,r)}function bv(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function uN(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(un(e,t,n.children,r),n=Lt.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&aT(e,r,t);else if(e.tag===19)aT(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(xt(Lt,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&th(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),bv(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&th(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}bv(t,!0,r,null,a);break;case"together":bv(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function O0(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Na(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ws|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(ye(153));if(t.child!==null){for(e=t.child,r=wo(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=wo(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function p5(e,t,r){switch(t.tag){case 3:sN(t),Ll();break;case 5:DI(t);break;case 1:kn(t.type)&&Y0(t);break;case 4:V1(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;xt(Z0,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(xt(Lt,Lt.current&1),t.flags|=128,null):r&t.child.childLanes?lN(e,t,r):(xt(Lt,Lt.current&1),e=Na(e,t,r),e!==null?e.sibling:null);xt(Lt,Lt.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return uN(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),xt(Lt,Lt.current),n)break;return null;case 22:case 23:return t.lanes=0,aN(e,t,r)}return Na(e,t,r)}var cN,ry,fN,dN;cN=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}};ry=function(){};fN=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,is(ta.current);var a=null;switch(r){case"input":i=Sg(e,i),n=Sg(e,n),a=[];break;case"select":i=Ut({},i,{value:void 0}),n=Ut({},n,{value:void 0}),a=[];break;case"textarea":i=Cg(e,i),n=Cg(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=q0)}kg(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Zc.hasOwnProperty(u)?a||(a=[]):(a=a||[]).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(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Zc.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&bt("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};dN=function(e,t,r,n){r!==n&&(t.flags|=4)};function Qu(e,t){if(!Mt)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 Kr(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function m5(e,t,r){var n=t.pendingProps;switch(D1(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kr(t),null;case 1:return kn(t.type)&&K0(),Kr(t),null;case 3:return n=t.stateNode,Bl(),It(Pn),It(an),j1(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pi!==null&&(cy(Pi),Pi=null))),ry(e,t),Kr(t),null;case 5:H1(t);var i=is(ff.current);if(r=t.type,e!==null&&t.stateNode!=null)fN(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(ye(166));return Kr(t),null}if(e=is(ta.current),Wd(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Yi]=t,n[uf]=a,e=(t.mode&1)!==0,r){case"dialog":bt("cancel",n),bt("close",n);break;case"iframe":case"object":case"embed":bt("load",n);break;case"video":case"audio":for(i=0;i<yc.length;i++)bt(yc[i],n);break;case"source":bt("error",n);break;case"img":case"image":case"link":bt("error",n),bt("load",n);break;case"details":bt("toggle",n);break;case"input":pE(n,a),bt("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},bt("invalid",n);break;case"textarea":vE(n,a),bt("invalid",n)}kg(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&zd(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&zd(n.textContent,s,e),i=["children",""+s]):Zc.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&bt("scroll",n)}switch(r){case"input":Ld(n),mE(n,a,!0);break;case"textarea":Ld(n),gE(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=q0)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Uk(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>
40",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Yi]=t,e[uf]=n,cN(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ig(r,n),r){case"dialog":bt("cancel",e),bt("close",e),i=n;break;case"iframe":case"object":case"embed":bt("load",e),i=n;break;case"video":case"audio":for(i=0;i<yc.length;i++)bt(yc[i],e);i=n;break;case"source":bt("error",e),i=n;break;case"img":case"image":case"link":bt("error",e),bt("load",e),i=n;break;case"details":bt("toggle",e),i=n;break;case"input":pE(e,n),i=Sg(e,n),bt("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ut({},n,{value:void 0}),bt("invalid",e);break;case"textarea":vE(e,n),i=Cg(e,n),bt("invalid",e);break;default:i=n}kg(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?Hk(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Gk(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&Qc(e,l):typeof l=="number"&&Qc(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Zc.hasOwnProperty(a)?l!=null&&a==="onScroll"&&bt("scroll",e):l!=null&&_1(e,a,l,o))}switch(r){case"input":Ld(e),mE(e,n,!1);break;case"textarea":Ld(e),gE(e);break;case"option":n.value!=null&&e.setAttribute("value",""+Ao(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?wl(e,!!n.multiple,a,!1):n.defaultValue!=null&&wl(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=q0)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Kr(t),null;case 6:if(e&&t.stateNode!=null)dN(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(ye(166));if(r=is(ff.current),is(ta.current),Wd(t)){if(n=t.stateNode,r=t.memoizedProps,n[Yi]=t,(a=n.nodeValue!==r)&&(e=Un,e!==null))switch(e.tag){case 3:zd(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&zd(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Yi]=t,t.stateNode=n}return Kr(t),null;case 13:if(It(Lt),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Mt&&Bn!==null&&t.mode&1&&!(t.flags&128))II(),Ll(),t.flags|=98560,a=!1;else if(a=Wd(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(ye(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(ye(317));a[Yi]=t}else Ll(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Kr(t),a=!1}else Pi!==null&&(cy(Pi),Pi=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Lt.current&1?mr===0&&(mr=3):r_())),t.updateQueue!==null&&(t.flags|=4),Kr(t),null);case 4:return Bl(),ry(e,t),e===null&&sf(t.stateNode.containerInfo),Kr(t),null;case 10:return B1(t.type._context),Kr(t),null;case 17:return kn(t.type)&&K0(),Kr(t),null;case 19:if(It(Lt),a=t.memoizedState,a===null)return Kr(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Qu(a,!1);else{if(mr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=th(e),o!==null){for(t.flags|=128,Qu(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return xt(Lt,Lt.current&1|2),t.child}e=e.sibling}a.tail!==null&&Yt()>Gl&&(t.flags|=128,n=!0,Qu(a,!1),t.lanes=4194304)}else{if(!n)if(e=th(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Qu(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Mt)return Kr(t),null}else 2*Yt()-a.renderingStartTime>Gl&&r!==1073741824&&(t.flags|=128,n=!0,Qu(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Yt(),t.sibling=null,r=Lt.current,xt(Lt,n?r&1|2:r&1),t):(Kr(t),null);case 22:case 23:return t_(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Mn&1073741824&&(Kr(t),t.subtreeFlags&6&&(t.flags|=8192)):Kr(t),null;case 24:return null;case 25:return null}throw Error(ye(156,t.tag))}function v5(e,t){switch(D1(t),t.tag){case 1:return kn(t.type)&&K0(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;
vendor: 26,035 bytes, line 40
40case 3:return Bl(),It(Pn),It(an),j1(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return H1(t),null;case 13:if(It(Lt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ye(340));Ll()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return It(Lt),null;case 4:return Bl(),null;case 10:return B1(t.type._context),null;case 22:case 23:return t_(),null;case 24:return null;default:return null}}var Yd=!1,Zr=!1,g5=typeof WeakSet=="function"?WeakSet:Set,ke=null;function fl(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ht(e,t,n)}else r.current=null}function ny(e,t,r){try{r()}catch(n){Ht(e,t,n)}}var oT=!1;function y5(e,t){if(Ug=j0,e=gI(),R1(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var m;f!==r||i!==0&&f.nodeType!==3||(s=o+i),f!==a||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++c===n&&(l=o),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Gg={focusedElem:e,selectionRange:r},j0=!1,ke=t;ke!==null;)if(t=ke,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ke=e;else for(;ke!==null;){t=ke;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var v=g.memoizedProps,y=g.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?v:Ti(t.type,v),y);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ye(163))}}catch(S){Ht(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,ke=e;break}ke=t.return}return g=oT,oT=!1,g}function Nc(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&ny(t,r,a)}i=i.next}while(i!==n)}}function Vp(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function iy(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function hN(e){var t=e.alternate;t!==null&&(e.alternate=null,hN(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yi],delete t[uf],delete t[jg],delete t[e5],delete t[t5])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function pN(e){return e.tag===5||e.tag===3||e.tag===4}function sT(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pN(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ay(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,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=q0));else if(n!==4&&(e=e.child,e!==null))for(ay(e,t,r),e=e.sibling;e!==null;)ay(e,t,r),e=e.sibling}function oy(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(oy(e,t,r),e=e.sibling;e!==null;)oy(e,t,r),e=e.sibling}var Br=null,Si=!1;function Ka(e,t,r){for(r=r.child;r!==null;)mN(e,t,r),r=r.sibling}function mN(e,t,r){if(ea&&typeof ea.onCommitFiberUnmount=="function")try{ea.onCommitFiberUnmount(Mp,r)}catch{}switch(r.tag){case 5:Zr||fl(r,t);case 6:var n=Br,i=Si;Br=null,Ka(e,t,r),Br=n,Si=i,Br!==null&&(Si?(e=Br,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Br.removeChild(r.stateNode));break;case 18:Br!==null&&(Si?(e=Br,r=r.stateNode,e.nodeType===8?xv(e.parentNode,r):e.nodeType===1&&xv(e,r),nf(e)):xv(Br,r.stateNode));break;case 4:n=Br,i=Si,Br=r.stateNode.containerInfo,Si=!0,Ka(e,t,r),Br=n,Si=i;break;case 0:case 11:case 14:case 15:if(!Zr&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&ny(r,t,o),i=i.next}while(i!==n)}Ka(e,t,r);break;case 1:if(!Zr&&(fl(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ht(r,t,s)}Ka(e,t,r);break;case 21:Ka(e,t,r);break;case 22:r.mode&1?(Zr=(n=Zr)||r.memoizedState!==null,Ka(e,t,r),Zr=n):Ka(e,t,r);break;default:Ka(e,t,r)}}function lT(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new g5),t.forEach(function(n){var i=C5.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function xi(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:Br=s.stateNode,Si=!1;break e;case 3:Br=s.stateNode.containerInfo,Si=!0;break e;case 4:Br=s.stateNode.containerInfo,Si=!0;break e}s=s.return}if(Br===null)throw Error(ye(160));mN(a,o,i),Br=null,Si=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ht(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)vN(t,e),t=t.sibling}function vN(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xi(t,e),zi(e),n&4){try{Nc(3,e,e.return),Vp(3,e)}catch(v){Ht(e,e.return,v)}try{Nc(5,e,e.return)}catch(v){Ht(e,e.return,v)}}break;case 1:xi(t,e),zi(e),n&512&&r!==null&&fl(r,r.return);break;case 5:if(xi(t,e),zi(e),n&512&&r!==null&&fl(r,r.return),e.flags&32){var i=e.stateNode;try{Qc(i,"")}catch(v){Ht(e,e.return,v)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&$k(i,a),Ig(s,o);var u=Ig(s,a);for(o=0;o<l.length;o+=2){var c=l[o],f=l[o+1];c==="style"?Hk(i,f):c==="dangerouslySetInnerHTML"?Gk(i,f):c==="children"?Qc(i,f):_1(i,c,f,u)}switch(s){case"input":Ag(i,a);break;case"textarea":Bk(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var m=a.value;m!=null?wl(i,!!a.multiple,m,!1):d!==!!a.multiple&&(a.defaultValue!=null?wl(i,!!a.multiple,a.defaultValue,!0):wl(i,!!a.multiple,a.multiple?[]:"",!1))}i[uf]=a}catch(v){Ht(e,e.return,v)}}break;case 6:if(xi(t,e),zi(e),n&4){if(e.stateNode===null)throw Error(ye(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(v){Ht(e,e.return,v)}}break;case 3:if(xi(t,e),zi(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{nf(t.containerInfo)}catch(v){Ht(e,e.return,v)}break;case 4:xi(t,e),zi(e);break;case 13:xi(t,e),zi(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(Q1=Yt())),n&4&&lT(e);break;case 22:if(c=r!==null&&r.memoizedState!==null,e.mode&1?(Zr=(u=Zr)||c,xi(t,e),Zr=u):xi(t,e),zi(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(ke=e,c=e.child;c!==null;){for(f=ke=c;ke!==null;){switch(d=ke,m=d.child,d.tag){case 0:case 11:case 14:case 15:Nc(4,d,d.return);break;case 1:fl(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(v){Ht(n,r,v)}}break;case 5:fl(d,d.return);break;case 22:if(d.memoizedState!==null){cT(f);continue}}m!==null?(m.return=d,ke=m):cT(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=f.stateNode,l=f.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Vk("display",o))}catch(v){Ht(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Ht(e,e.return,v)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:xi(t,e),zi(e),n&4&&lT(e);break;case 21:break;default:xi(t,e),zi(e)}}function zi(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(pN(r)){var n=r;break e}r=r.return}throw Error(ye(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(Qc(i,""),n.flags&=-33);var a=sT(e);oy(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=sT(e);ay(e,s,o);break;default:throw Error(ye(161))}}catch(l){Ht(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function x5(e,t,r){ke=e,gN(e)}function gN(e,t,r){for(var n=(e.mode&1)!==0;ke!==null;){var i=ke,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||Yd;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||Zr;s=Yd;var u=Zr;if(Yd=o,(Zr=l)&&!u)for(ke=i;ke!==null;)o=ke,l=o.child,o.tag===22&&o.memoizedState!==null?fT(i):l!==null?(l.return=o,ke=l):fT(i);for(;a!==null;)ke=a,gN(a),a=a.sibling;ke=i,Yd=s,Zr=u}uT(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,ke=a):uT(e)}}function uT(e){for(;ke!==null;){var t=ke;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Zr||Vp(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!Zr)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Ti(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&qE(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}qE(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&nf(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(ye(163))}Zr||t.flags&512&&iy(t)}catch(d){Ht(t,t.return,d)}}if(t===e){ke=null;break}if(r=t.sibling,r!==null){r.return=t.return,ke=r;break}ke=t.return}}function cT(e){for(;ke!==null;){var t=ke;if(t===e){ke=null;break}var r=t.sibling;if(r!==null){r.return=t.return,ke=r;break}ke=t.return}}function fT(e){for(;ke!==null;){var t=ke;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{Vp(4,t)}catch(l){Ht(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Ht(t,i,l)}}var a=t.return;try{iy(t)}catch(l){Ht(t,a,l)}break;case 5:var o=t.return;try{iy(t)}catch(l){Ht(t,o,l)}}}catch(l){Ht(t,t.return,l)}if(t===e){ke=null;break}var s=t.sibling;if(s!==null){s.return=t.return,ke=s;break}ke=t.return}}var _5=Math.ceil,ih=La.ReactCurrentDispatcher,J1=La.ReactCurrentOwner,si=La.ReactCurrentBatchConfig,tt=0,Nr=null,rr=null,Gr=0,Mn=0,dl=Ro(0),mr=0,mf=null,ws=0,Hp=0,Z1=0,Oc=null,Sn=null,Q1=0,Gl=1/0,pa=null,ah=!1,sy=null,xo=null,Xd=!1,oo=null,oh=0,Rc=0,ly=null,R0=-1,M0=0;function vn(){return tt&6?Yt():R0!==-1?R0:R0=Yt()}function _o(e){return e.mode&1?tt&2&&Gr!==0?Gr&-Gr:n5.transition!==null?(M0===0&&(M0=tI()),M0):(e=dt,e!==0||(e=window.event,e=e===void 0?16:lI(e.type)),e):1}function Mi(e,t,r,n){if(50<Rc)throw Rc=0,ly=null,Error(ye(185));sd(e,r,n),(!(tt&2)||e!==Nr)&&(e===Nr&&(!(tt&2)&&(Hp|=r),mr===4&&ro(e,Gr)),In(e,n),r===1&&tt===0&&!(t.mode&1)&&(Gl=Yt()+500,Bp&&Mo()))}function In(e,t){var r=e.callbackNode;nL(e,t);var n=H0(e,e===Nr?Gr:0);if(n===0)r!==null&&_E(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&_E(r),t===1)e.tag===0?r5(dT.bind(null,e)):CI(dT.bind(null,e)),ZL(function(){!(tt&6)&&Mo()}),r=null;else{switch(rI(n)){case 1:r=A1;break;case 4:r=Qk;break;case 16:r=V0;break;case 536870912:r=eI;break;default:r=V0}r=AN(r,yN.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function yN(e,t){if(R0=-1,M0=0,tt&6)throw Error(ye(327));var r=e.callbackNode;if(bl()&&e.callbackNode!==r)return null;var n=H0(e,e===Nr?Gr:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=sh(e,n);else{t=n;var i=tt;tt|=2;var a=_N();(Nr!==e||Gr!==t)&&(pa=null,Gl=Yt()+500,fs(e,t));do try{T5();break}catch(s){xN(e,s)}while(!0);$1(),ih.current=a,tt=i,rr!==null?t=0:(Nr=null,Gr=0,t=mr)}if(t!==0){if(t===2&&(i=Dg(e),i!==0&&(n=i,t=uy(e,i))),t===1)throw r=mf,fs(e,0),ro(e,n),In(e,Yt()),r;if(t===6)ro(e,n);else{if(i=e.current.alternate,!(n&30)&&!w5(i)&&(t=sh(e,n),t===2&&(a=Dg(e),a!==0&&(n=a,t=uy(e,a))),t===1))throw r=mf,fs(e,0),ro(e,n),In(e,Yt()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(ye(345));case 2:Yo(e,Sn,pa);break;case 3:if(ro(e,n),(n&130023424)===n&&(t=Q1+500-Yt(),10<t)){if(H0(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){vn(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Hg(Yo.bind(null,e,Sn,pa),t);break}Yo(e,Sn,pa);break;case 4:if(ro(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Ri(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=Yt()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_5(n/1960))-n,10<n){e.timeoutHandle=Hg(Yo.bind(null,e,Sn,pa),n);break}Yo(e,Sn,pa);break;case 5:Yo(e,Sn,pa);break;default:throw Error(ye(329))}}}return In(e,Yt()),e.callbackNode===r?yN.bind(null,e):null}function uy(e,t){var r=Oc;return e.current.memoizedState.isDehydrated&&(fs(e,t).flags|=256),e=sh(e,t),e!==2&&(t=Sn,Sn=r,t!==null&&cy(t)),e}function cy(e){Sn===null?Sn=e:Sn.push.apply(Sn,e)}function w5(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!Bi(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ro(e,t){for(t&=~Z1,t&=~Hp,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Ri(t),n=1<<r;e[r]=-1,t&=~n}}function dT(e){if(tt&6)throw Error(ye(327));bl();var t=H0(e,0);if(!(t&1))return In(e,Yt()),null;var r=sh(e,t);if(e.tag!==0&&r===2){var n=Dg(e);n!==0&&(t=n,r=uy(e,n))}if(r===1)throw r=mf,fs(e,0),ro(e,t),In(e,Yt()),r;if(r===6)throw Error(ye(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yo(e,Sn,pa),In(e,Yt()),null}function e_(e,t){var r=tt;tt|=1;try{return e(t)}finally{tt=r,tt===0&&(Gl=Yt()+500,Bp&&Mo())}}function Es(e){oo!==null&&oo.tag===0&&!(tt&6)&&bl();var t=tt;tt|=1;var r=si.transition,n=dt;try{if(si.transition=null,dt=1,e)return e()}finally{dt=n,si.transition=r,tt=t,!(tt&6)&&Mo()}}function t_(){Mn=dl.current,It(dl)}function fs(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,JL(r)),rr!==null)for(r=rr.return;r!==null;){var n=r;switch(D1(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&K0();break;case 3:Bl(),It(Pn),It(an),j1();break;case 5:H1(n);break;case 4:Bl();break;case 13:It(Lt);break;case 19:It(Lt);break;case 10:B1(n.type._context);break;case 22:case 23:t_()}r=r.return}if(Nr=e,rr=e=wo(e.current,null),Gr=Mn=t,mr=0,mf=null,Z1=Hp=ws=0,Sn=Oc=null,ns!==null){for(t=0;t<ns.length;t++)if(r=ns[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}ns=null}return e}function xN(e,t){do{var r=rr;try{if($1(),I0.current=nh,rh){for(var n=Bt.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}rh=!1}if(_s=0,Pr=pr=Bt=null,Ic=!1,df=0,J1.current=null,r===null||r.return===null){mr=1,mf=t,rr=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=Gr,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var m=QE(o);if(m!==null){m.flags&=-257,eT(m,o,s,a,t),m.mode&1&&ZE(a,u,t),t=m,l=u;var g=t.updateQueue;if(g===null){var v=new Set;v.add(l),t.updateQueue=v}else g.add(l);break e}else{if(!(t&1)){ZE(a,u,t),r_();break e}l=Error(ye(426))}}else if(Mt&&s.mode&1){var y=QE(o);if(y!==null){!(y.flags&65536)&&(y.flags|=256),eT(y,o,s,a,t),F1(Ul(l,s));break e}}a=l=Ul(l,s),mr!==4&&(mr=2),Oc===null?Oc=[a]:Oc.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var x=rN(a,l,t);WE(a,x);break e;case 1:s=l;var w=a.type,_=a.stateNode;if(!(a.flags&128)&&(typeof w.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(xo===null||!xo.has(_)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=nN(a,s,t);WE(a,S);break e}}a=a.return}while(a!==null)}EN(r)}catch(T){t=T,rr===r&&r!==null&&(rr=r=r.return);continue}break}while(!0)}function _N(){var e=ih.current;return ih.current=nh,e===null?nh:e}function r_(){(mr===0||mr===3||mr===2)&&(mr=4),Nr===null||!(ws&268435455)&&!(Hp&268435455)||ro(Nr,Gr)}function sh(e,t){var r=tt;tt|=2;var n=_N();(Nr!==e||Gr!==t)&&(pa=null,fs(e,t));do try{E5();break}catch(i){xN(e,i)}while(!0);if($1(),tt=r,ih.current=n,rr!==null)throw Error(ye(261));return Nr=null,Gr=0,mr}function E5(){for(;rr!==null;)wN(rr)}function T5(){for(;rr!==null&&!K3();)wN(rr)}function wN(e){var t=SN(e.alternate,e,Mn);e.memoizedProps=e.pendingProps,t===null?EN(e):rr=t,J1.current=null}function EN(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=v5(r,t),r!==null){r.flags&=32767,rr=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{mr=6,rr=null;return}}else if(r=m5(r,t,Mn),r!==null){rr=r;return}if(t=t.sibling,t!==null){rr=t;return}rr=t=e}while(t!==null);mr===0&&(mr=5)}function Yo(e,t,r){var n=dt,i=si.transition;try{si.transition=null,dt=1,S5(e,t,r,n)}finally{si.transition=i,dt=n}return null}function S5(e,t,r,n){do bl();while(oo!==null);if(tt&6)throw Error(ye(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(ye(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(iL(e,a),e===Nr&&(rr=Nr=null,Gr=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Xd||(Xd=!0,AN(V0,function(){return bl(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=si.transition,si.transition=null;var o=dt;dt=1;var s=tt;tt|=4,J1.current=null,y5(e,r),vN(r,e),jL(Gg),j0=!!Ug,Gg=Ug=null,e.current=r,x5(r),Y3(),tt=s,dt=o,si.transition=a}else e.current=r;if(Xd&&(Xd=!1,oo=e,oh=i),a=e.pendingLanes,a===0&&(xo=null),Z3(r.stateNode),In(e,Yt()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(ah)throw ah=!1,e=sy,sy=null,e;return oh&1&&e.tag!==0&&bl(),a=e.pendingLanes,a&1?e===ly?Rc++:(Rc=0,ly=e):Rc=0,Mo(),null}function bl(){if(oo!==null){var e=rI(oh),t=si.transition,r=dt;try{if(si.transition=null,dt=16>e?16:e,oo===null)var n=!1;else{if(e=oo,oo=null,oh=0,tt&6)throw Error(ye(331));var i=tt;for(tt|=4,ke=e.current;ke!==null;){var a=ke,o=a.child;if(ke.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(ke=u;ke!==null;){var c=ke;switch(c.tag){case 0:case 11:case 15:Nc(8,c,a)}var f=c.child;if(f!==null)f.return=c,ke=f;else for(;ke!==null;){c=ke;var d=c.sibling,m=c.return;if(hN(c),c===u){ke=null;break}if(d!==null){d.return=m,ke=d;break}ke=m}}}var g=a.alternate;if(g!==null){var v=g.child;if(v!==null){g.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==null)}}ke=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,ke=o;else e:for(;ke!==null;){if(a=ke,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Nc(9,a,a.return)}var x=a.sibling;if(x!==null){x.return=a.return,ke=x;break e}ke=a.return}}var w=e.current;for(ke=w;ke!==null;){o=ke;var _=o.child;if(o.subtreeFlags&2064&&_!==null)_.return=o,ke=_;else e:for(o=w;ke!==null;){if(s=ke,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Vp(9,s)}}catch(T){Ht(s,s.return,T)}if(s===o){ke=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,ke=S;break e}ke=s.return}}if(tt=i,Mo(),ea&&typeof ea.onPostCommitFiberRoot=="function")try{ea.onPostCommitFiberRoot(Mp,e)}catch{}n=!0}return n}finally{dt=r,si.transition=t}}return!1}function hT(e,t,r){t=Ul(r,t),t=rN(e,t,1),e=yo(e,t,1),t=vn(),e!==null&&(sd(e,1,t),In(e,t))}function Ht(e,t,r){if(e.tag===3)hT(e,e,r);else for(;t!==null;){if(t.tag===3){hT(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(xo===null||!xo.has(n))){e=Ul(r,e),e=nN(t,e,1),t=yo(t,e,1),e=vn(),t!==null&&(sd(t,1,e),In(t,e));break}}t=t.return}}function A5(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=vn(),e.pingedLanes|=e.suspendedLanes&r,Nr===e&&(Gr&r)===r&&(mr===4||mr===3&&(Gr&130023424)===Gr&&500>Yt()-Q1?fs(e,0):Z1|=r),In(e,t)}function TN(e,t){t===0&&(e.mode&1?(t=Ud,Ud<<=1,!(Ud&130023424)&&(Ud=4194304)):t=1);var r=vn();e=Ia(e,t),e!==null&&(sd(e,t,r),In(e,r))}function b5(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),TN(e,r)}function C5(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ye(314))}n!==null&&n.delete(t),TN(e,r)}var SN;SN=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pn.current)bn=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return bn=!1,p5(e,t,r);bn=!!(e.flags&131072)}else bn=!1,Mt&&t.flags&1048576&&PI(t,J0,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;O0(e,t),e=t.pendingProps;var i=Fl(t,an.current);Al(t,r),i=W1(null,t,n,e,i,r);var a=q1();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,kn(n)?(a=!0,Y0(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,G1(t),i.updater=Gp,t.stateNode=i,i._reactInternals=t,Xg(t,n,e,r),t=Qg(null,t,n,!0,a,r)):(t.tag=0,Mt&&a&&M1(t),un(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(O0(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=k5(n),e=Ti(n,e),i){case 0:t=Zg(null,t,n,e,r);break e;case 1:t=nT(null,t,n,e,r);break e;case 11:t=tT(null,t,n,e,r);break e;case 14:t=rT(null,t,n,Ti(n.type,e),r);break e}throw Error(ye(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ti(n,i),Zg(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ti(n,i),nT(e,t,n,i,r);case 3:e:{if(sN(t),e===null)throw Error(ye(387));n=t.pendingProps,a=t.memoizedState,i=a.element,MI(e,t),eh(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ul(Error(ye(423)),t),t=iT(e,t,n,r,i);break e}else if(n!==i){i=Ul(Error(ye(424)),t),t=iT(e,t,n,r,i);break e}else for(Bn=go(t.stateNode.containerInfo.firstChild),Un=t,Mt=!0,Pi=null,r=OI(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Ll(),n===i){t=Na(e,t,r);break e}un(e,t,n,r)}t=t.child}return t;case 5:return DI(t),e===null&&qg(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Vg(n,i)?o=null:a!==null&&Vg(n,a)&&(t.flags|=32),oN(e,t),un(e,t,o,r),t.child;case 6:return e===null&&qg(t),null;case 13:return lN(e,t,r);case 4:return V1(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=$l(t,null,n,r):un(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ti(n,i),tT(e,t,n,i,r);case 7:return un(e,t,t.pendingProps,r),t.child;case 8:return un(e,t,t.pendingProps.children,r),t.child;case 12:return un(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,xt(Z0,n._currentValue),n._currentValue=o,a!==null)if(Bi(a.value,o)){if(a.children===i.children&&!Pn.current){t=Na(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=Ta(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),Kg(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(ye(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),Kg(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}un(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Al(t,r),i=li(i),n=n(i),t.flags|=1,un(e,t,n,r),t.child;case 14:return n=t.type,i=Ti(n,t.pendingProps),i=Ti(n.type,i),rT(e,t,n,i,r);case 15:return iN(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Ti(n,i),O0(e,t),t.tag=1,kn(n)?(e=!0,Y0(t)):e=!1,Al(t,r),tN(t,n,i),Xg(t,n,i,r),Qg(null,t,n,!0,e,r);case 19:return uN(e,t,r);case 22:return aN(e,t,r)}throw Error(ye(156,t.tag))};function AN(e,t){return Zk(e,t)}function P5(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 11,082 bytes, line 40
40ype=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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ai(e,t,r,n){return new P5(e,t,r,n)}function n_(e){return e=e.prototype,!(!e||!e.isReactComponent)}function k5(e){if(typeof e=="function")return n_(e)?1:0;if(e!=null){if(e=e.$$typeof,e===E1)return 11;if(e===T1)return 14}return 2}function wo(e,t){var r=e.alternate;return r===null?(r=ai(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.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,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 D0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")n_(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case rl:return ds(r.children,i,a,t);case w1:o=8,i|=8;break;case _g:return e=ai(12,r,t,i|2),e.elementType=_g,e.lanes=a,e;case wg:return e=ai(13,r,t,i),e.elementType=wg,e.lanes=a,e;case Eg:return e=ai(19,r,t,i),e.elementType=Eg,e.lanes=a,e;case Dk:return jp(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rk:o=10;break e;case Mk:o=9;break e;case E1:o=11;break e;case T1:o=14;break e;case Za:o=16,n=null;break e}throw Error(ye(130,e==null?e:typeof e,""))}return t=ai(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function ds(e,t,r,n){return e=ai(7,e,n,t),e.lanes=r,e}function jp(e,t,r,n){return e=ai(22,e,n,t),e.elementType=Dk,e.lanes=r,e.stateNode={isHidden:!1},e}function Cv(e,t,r){return e=ai(6,e,null,t),e.lanes=r,e}function Pv(e,t,r){return t=ai(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function I5(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=lv(0),this.expirationTimes=lv(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lv(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function i_(e,t,r,n,i,a,o,s,l){return e=new I5(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ai(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},G1(a),e}function N5(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tl,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function bN(e){if(!e)return bo;e=e._reactInternals;e:{if(Os(e)!==e||e.tag!==1)throw Error(ye(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(kn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(ye(171))}if(e.tag===1){var r=e.type;if(kn(r))return bI(e,r,t)}return t}function CN(e,t,r,n,i,a,o,s,l){return e=i_(r,n,!0,e,i,a,o,s,l),e.context=bN(null),r=e.current,n=vn(),i=_o(r),a=Ta(n,i),a.callback=t??null,yo(r,a,i),e.current.lanes=i,sd(e,i,n),In(e,n),e}function zp(e,t,r,n){var i=t.current,a=vn(),o=_o(i);return r=bN(r),t.context===null?t.context=r:t.pendingContext=r,t=Ta(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=yo(i,t,o),e!==null&&(Mi(e,i,o,a),k0(e,i,o)),o}function lh(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 pT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function a_(e,t){pT(e,t),(e=e.alternate)&&pT(e,t)}function O5(){return null}var PN=typeof reportError=="function"?reportError:function(e){console.error(e)};function o_(e){this._internalRoot=e}Wp.prototype.render=o_.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(ye(409));zp(e,t,null,null)};Wp.prototype.unmount=o_.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Es(function(){zp(null,e,null,null)}),t[ka]=null}};function Wp(e){this._internalRoot=e}Wp.prototype.unstable_scheduleHydration=function(e){if(e){var t=aI();e={blockedOn:null,target:e,priority:t};for(var r=0;r<to.length&&t!==0&&t<to[r].priority;r++);to.splice(r,0,e),r===0&&sI(e)}};function s_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function qp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function mT(){}function R5(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=lh(o);a.call(u)}}var o=CN(t,n,e,0,null,!1,!1,"",mT);return e._reactRootContainer=o,e[ka]=o.current,sf(e.nodeType===8?e.parentNode:e),Es(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=lh(l);s.call(u)}}var l=i_(e,0,!1,null,null,!1,!1,"",mT);return e._reactRootContainer=l,e[ka]=l.current,sf(e.nodeType===8?e.parentNode:e),Es(function(){zp(t,l,r,n)}),l}function Kp(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=lh(o);s.call(l)}}zp(t,o,e,i)}else o=R5(r,t,e,i,n);return lh(o)}nI=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=gc(t.pendingLanes);r!==0&&(b1(t,r|1),In(t,Yt()),!(tt&6)&&(Gl=Yt()+500,Mo()))}break;case 13:Es(function(){var n=Ia(e,1);if(n!==null){var i=vn();Mi(n,e,1,i)}}),a_(e,1)}};C1=function(e){if(e.tag===13){var t=Ia(e,134217728);if(t!==null){var r=vn();Mi(t,e,134217728,r)}a_(e,134217728)}};iI=function(e){if(e.tag===13){var t=_o(e),r=Ia(e,t);if(r!==null){var n=vn();Mi(r,e,t,n)}a_(e,t)}};aI=function(){return dt};oI=function(e,t){var r=dt;try{return dt=e,t()}finally{dt=r}};Og=function(e,t,r){switch(t){case"input":if(Ag(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=$p(n);if(!i)throw Error(ye(90));Lk(n),Ag(n,i)}}}break;case"textarea":Bk(e,r);break;case"select":t=r.value,t!=null&&wl(e,!!r.multiple,t,!1)}};Wk=e_;qk=Es;var M5={usingClientEntryPoint:!1,Events:[ud,ol,$p,jk,zk,e_]},ec={findFiberByHostInstance:rs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},D5={bundleType:ec.bundleType,version:ec.version,rendererPackageName:ec.rendererPackageName,rendererConfig:ec.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:La.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xk(e),e===null?null:e.stateNode},findFiberByHostInstance:ec.findFiberByHostInstance||O5,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jd.isDisabled&&Jd.supportsFiber)try{Mp=Jd.inject(D5),ea=Jd}catch{}}jn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M5;jn.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!s_(t))throw Error(ye(200));return N5(e,t,null,r)};jn.createRoot=function(e,t){if(!s_(e))throw Error(ye(299));var r=!1,n="",i=PN;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=i_(e,1,!1,null,null,r,!1,n,i),e[ka]=t.current,sf(e.nodeType===8?e.parentNode:e),new o_(t)};jn.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(ye(188)):(e=Object.keys(e).join(","),Error(ye(268,e)));return e=Xk(t),e=e===null?null:e.stateNode,e};jn.flushSync=function(e){return Es(e)};jn.hydrate=function(e,t,r){if(!qp(t))throw Error(ye(200));return Kp(null,e,t,!0,r)};jn.hydrateRoot=function(e,t,r){if(!s_(e))throw Error(ye(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=PN;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=CN(t,null,e,1,r??null,i,!1,a,o),e[ka]=t.current,sf(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new Wp(t)};jn.render=function(e,t,r){if(!qp(t))throw Error(ye(200));return Kp(null,e,t,!1,r)};jn.unmountComponentAtNode=function(e){if(!qp(e))throw Error(ye(40));return e._reactRootContainer?(Es(function(){Kp(null,null,e,!1,function(){e._reactRootContainer=null,e[ka]=null})}),!0):!1};jn.unstable_batchedUpdates=e_;jn.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!qp(r))throw Error(ye(200));if(e==null||e._reactInternals===void 0)throw Error(ye(38));return Kp(e,t,r,!1,n)};jn.version="18.3.1-next-f1338f8080-20240426";function kN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(kN)}catch(e){console.error(e)}}kN(),kk.exports=jn;var F5=kk.exports,IN,vT=F5;IN=vT.createRoot,vT.hydrateRoot;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var NN=1252,L5=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],l_={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},u_=function(e){L5.indexOf(e)!=-1&&(NN=l_[0]=e)};function $5(){u_(1252)}var Ni=function(e){u_(e)};function ON(){Ni(1200),$5()}function gT(e){for(var t=[],r=0,n=e.length;r<n;++r)t[r]=e.charCodeAt(r);return t}function B5(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function RN(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 xc=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?B5(e.slice(2)):t==254&&r==255?RN(e.slice(2)):t==65279?e.slice(1):e},Zd=function(t){return String.fromCharCode(t)},yT=function(t){return String.fromCharCode(t)},vf,so="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
40+/=";function xT(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0,u=0;u<e.length;)r=e.charCodeAt(u++),a=r>>2,n=e.charCodeAt(u++),o=(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+=so.charAt(a)+so.charAt(o)+so.charAt(s)+so.charAt(l);return t}function Hn(e){var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<e.length;)a=so.indexOf(e.charAt(u++)),o=so.indexOf(e.charAt(u++)),r=a<<2|o>>4,t+=String.fromCharCode(r),s=so.indexOf(e.charAt(u++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=so.indexOf(e.charAt(u++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var Xe=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Rs=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 Co(e){return Xe?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function _T(e){return Xe?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var ki=function(t){return Xe?Rs(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function Ms(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 c_(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return c_(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var no=Xe?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Rs(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(a){return Array.isArray(a)?a:[].slice.call(a)}))};function U5(e){for(var t=[],r=0,n=e.length+250,i=Co(e.length+255),a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o<128)i[r++]=o;else if(o<2048)i[r++]=192|o>>6&31,i[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=e.charCodeAt(++a)&1023;i[r++]=240|o>>8&7,i[r++]=128|o>>2&63,i[r++]=128|s>>6&15|(o&3)<<4,i[r++]=128|s&63}else i[r++]=224|o>>12&15,i[r++]=128|o>>6&63,i[r++]=128|o&63;r>n&&(t.push(i.slice(0,r)),r=0,i=Co(65535),n=65530)}return t.push(i.slice(0,r)),no(t)}var gn=/\u0000/g,_c=/[\u0001-\u0006]/g;function Cl(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Oi(e,t){var r=""+e;return r.length>=t?r:jt("0",t-r.length)+r}function f_(e,t){var r=""+e;return r.length>=t?r:jt(" ",t-r.length)+r}function uh(e,t){var r=""+e;return r.length>=t?r:r+jt(" ",t-r.length)}function G5(e,t){var r=""+Math.round(e);return r.length>=t?r:jt("0",t-r.length)+r}function V5(e,t){var r=""+e;return r.length>=t?r:jt("0",t-r.length)+r}var wT=Math.pow(2,32);function Ks(e,t){if(e>wT||e<-wT)return G5(e,t);var r=Math.round(e);return V5(r,t)}function ch(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 ET=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],kv=[["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 H5(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 ze={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"ç§ "'},TT={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:4
vendor: 1,515 bytes, line 40
406,81:47,82:0},j5={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 fh(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,o=1,s=0,l=1,u=0,c=0,f=Math.floor(i);u<t&&(f=Math.floor(i),s=f*o+a,c=f*u+l,!(i-f<5e-8));)i=1/(i-f),a=o,o=s,l=u,u=c;if(c>t&&(u>t?(c=l,s=a):(c=u,s=o)),!r)return[0,n*s,c];var d=Math.floor(n*s/c);return[d,n*s-d*c,c]}function as(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,o=[],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)o=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),n<60&&(a=(a+6)%7),r&&(a=X5(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=a,s}var MN=new Date(1899,11,31,0,0,0),z5=MN.getTime(),W5=new Date(1900,2,1,0,0,0);function DN(e,t){var r=e.getTime();
vendor: 5,227 bytes, line 40
40return t?r-=1461*24*60*60*1e3:e>=W5&&(r+=24*60*60*1e3),(r-(z5+(e.getTimezoneOffset()-MN.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function d_(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function q5(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function K5(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 Y5(e){var t=d_(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function gf(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=K5(e):t===10?r=e.toFixed(10).substr(0,12):r=Y5(e),d_(q5(r.toUpperCase()))}function Ts(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):gf(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return ci(14,DN(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function X5(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function J5(e,t,r,n){var i="",a=0,o=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 kv[r.m-1][1];case 5:return kv[r.m-1][0];default:return kv[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,u=t.length;break;case 3:return ET[r.q][0];default:return ET[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")?Oi(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,a=Math.round(o*(r.S+r.u)),a>=60*o&&(a=0),t==="s"?a===0?"0":""+a/o:(i=Oi(a,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?Oi(l,u):"";return c}function lo(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 FN=/%/g;function Z5(e,t,r){var n=t.replace(FN,""),i=t.length-n.length;return Sa(e,n,r*Math.pow(10,2*i))+jt("%",i)}function Q5(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Sa(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function LN(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"-"+LN(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),r.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+a):r+="E+"+(o-a);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+a)%i)+"."+c.substr(a)+"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 $N=/# (\?+)( ?)\/( ?)(\d+)/;function e8(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),o=i-a*n,s=n;return r+(a===0?"":""+a)+" "+(o===0?jt(" ",e[1].length+1+e[4].length):f_(o,e[1].length)+e[2]+"/"+e[3]+Oi(s,e[4].length))}function t8(e,t,r){return r+(t===0?"":""+t)+jt(" ",e[1].length+2+e[4].length)}var BN=/^#*0*\.([0#]+)/,UN=/\).*[0#]/,GN=/\(###\) ###\\?-####/;function cn(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 ST(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function AT(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 r8(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function n8(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Zn(e,t,r){if(e.charCodeAt(0)===40&&!t.match(UN)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Zn("n",n,r):"("+Zn("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return Q5(e,t,r);if(t.indexOf("%")!==-1)return Z5(e,t,r);if(t.indexOf("E")!==-1)return LN(t,r);if(t.charCodeAt(0)===36)return"$"+Zn(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Ks(l,t.length);if(t.match(/^[#?]+$/))return i=Ks(r,0),i==="0"&&(i=""),i.length>
vendor: 3,145 bytes, line 40
40t.length?i:cn(t.substr(0,t.length-i.length))+i;if(a=t.match($N))return e8(a,l,u);if(t.match(/^#+0+$/))return u+Ks(l,t.length-t.indexOf("0"));if(a=t.match(BN))return i=ST(r,a[1].length).replace(/^([^\.]+)$/,"$1."+cn(a[1])).replace(/\.$/,"."+cn(a[1])).replace(/\.(\d*)$/,function(g,v){return"."+v+jt("0",cn(a[1]).length-v.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+ST(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+lo(Ks(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Zn(e,t,-r):lo(""+(Math.floor(r)+r8(r,a[1].length)))+"."+Oi(AT(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return Zn(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Cl(Zn(e,t.replace(/[\\-]/g,""),r)),o=0,Cl(Cl(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(GN))return i=Zn(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=fh(l,Math.pow(10,o)-1,!1),i=""+u,c=Sa("n",a[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=uh(s[2],o),c.length<a[4].length&&(c=cn(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=fh(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?f_(s[1],o)+a[2]+"/"+a[3]+uh(s[2],o):jt(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=Ks(r,0),t.length<=i.length?i:cn(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var f=t.indexOf(".")-o,d=t.length-i.length-f;return cn(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return o=AT(r,a[1].length),r<0?"-"+Zn(e,t,-r):lo(n8(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Oi(0,3-g.length):"")+g})+"."+Oi(o,a[1].length);switch(t){case"###,##0.00":return Zn(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var m=lo(Ks(l,0));return m!=="0"?u+m:"";case"###,###.00":return Zn(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Zn(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function i8(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return Sa(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function a8(e,t,r){var n=t.replace(FN,""),i=t.length-n.length;return Sa(e,n,r*Math.pow(10,2*i))+jt("%",i)}function VN(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"-"+VN(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!r.match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+a):r+="E+"+(o-a),r
vendor: 8,323 bytes, line 40
40=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+a)%i)+"."+c.substr(a)+"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 qi(e,t,r){if(e.charCodeAt(0)===40&&!t.match(UN)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?qi("n",n,r):"("+qi("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return i8(e,t,r);if(t.indexOf("%")!==-1)return a8(e,t,r);if(t.indexOf("E")!==-1)return VN(t,r);if(t.charCodeAt(0)===36)return"$"+qi(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Oi(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:cn(t.substr(0,t.length-i.length))+i;if(a=t.match($N))return t8(a,l,u);if(t.match(/^#+0+$/))return u+Oi(l,t.length-t.indexOf("0"));if(a=t.match(BN))return i=(""+r).replace(/^([^\.]+)$/,"$1."+cn(a[1])).replace(/\.$/,"."+cn(a[1])),i=i.replace(/\.(\d*)$/,function(g,v){return"."+v+jt("0",cn(a[1]).length-v.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+lo(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+qi(e,t,-r):lo(""+r)+"."+jt("0",a[1].length);if(a=t.match(/^#,#*,#0/))return qi(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Cl(qi(e,t.replace(/[\\-]/g,""),r)),o=0,Cl(Cl(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(GN))return i=qi(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=fh(l,Math.pow(10,o)-1,!1),i=""+u,c=Sa("n",a[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=uh(s[2],o),c.length<a[4].length&&(c=cn(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=fh(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?f_(s[1],o)+a[2]+"/"+a[3]+uh(s[2],o):jt(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:cn(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var f=t.indexOf(".")-o,d=t.length-i.length-f;return cn(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+qi(e,t,-r):lo(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Oi(0,3-g.length):"")+g})+"."+Oi(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var m=lo(""+l);return m!=="0"?u+m:"";default:if(t.match(/\.[0#?]*$/))return qi(e,t.slice(0,t.lastIndexOf(".")),r)+cn(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function Sa(e,t,r){return(r|0)===r?qi(e,t,r):Zn(e,t,r)}function o8(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 HN=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function wu(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":ch(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(HN))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 s8(e,t,r,n){for(var i=[],a="",o=0,s="",l="t",u,c,f,d="H";o<e.length;)switch(s=e.charAt(o)){case"G":if(!ch(e,o))throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"G",v:"General"},o+=7;break;case'"':for(a="";(f=e.charCodeAt(++o))!==34&&o<e.length;)a+=String.fromCharCode(f);i[i.length]={t:"t",v:a},++o;break;case"\\":var m=e.charAt(++o),g=m==="("||m===")"?m:"t";i[i.length]={t:g,v:m},++o;break;case"_":i[i.length]={t:"t",v:" "},o+=2;break;case"@":i[i.length]={t:"T",v:t},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(u==null&&(u=as(t,r,e.charAt(o+1)==="2"),u==null))return"";i[i.length]={t:"X",v:e.substr(o,2)},l=s,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||u==null&&(u=as(t,r),u==null))return"";for(a=s;++o<e.length&&e.charAt(o).toLowerCase()===s;)a+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=d),i[i.length]={t:s,v:a},l=s;break;case"A":case"a":case"ä¸":var v={t:s,v:s};if(u==null&&(u=as(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(u!=null&&(v.v=u.H>=12?"P":"A"),v.t="T",d="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(u!=null&&(v.v=u.H>=12?"PM":"AM"),v.t="T",o+=5,d="h"):e.substr(o,5).toUpperCase()==="ä¸å/ä¸å"?(u!=null&&(v.v=u.H>=12?"ä¸å":"ä¸å"),v.t="T",o+=5,d="h"):(v.t="t",++o),u==null&&v.t==="T")return"";i[i.length]=v,l=s;break;case"[":for(a=s;e.charAt(o++)!=="]"&&o<e.length;)a+=e.charAt(o);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(HN)){if(u==null&&(u=as(t,r),u==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",wu(e)||(i[i.length]={t:"t",v:a}));break;case".":if(u!=null){for(a=s;++o<e.length&&(s=e.charAt(o))==="0";)a+=s;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=s;++o<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(o))>-1;)a+=s;i[i.length]={t:"n",v:a};break;case"?":for(a=s;e.charAt(++o)===s;)a+=s;i[i.length]={t:s,v:a},l=s;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":i[i.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=s;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)a+=e.charAt(o);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:s,v:s},++o;break;case"$":i[i.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=â¬acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"t",v:s},++o;break}var y=0,x=0,w;for(o=i.length-1,l="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=d,l="h",y<1&&(y=1);break;case"s":(w=i[o].v.match(/\.0+$/))&&(x=Math.max(x,w[0].length-1)),y<3&&(y=3);case"d":case"y":case"M":case"e":l=i[o].t;break;case"m":l==="s"&&(i[o].t="M",y<2&&(y=2));break;case"X":break;case"Z":y<1&&i[o].v.match(/[Hh]/)&&(y=1),y<2&&i[o].v.match(/[Mm]/)&&(y=2),y<3&&i[o].v.match(/[Ss]/)&&(y=3)}switch(y){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 _="",S;for(o=0;o<i.length;++o)switch(i[o].t){case"t":case"T":case" ":case"D":break;case"X":i[o].v="",i[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[o].v=J5(i[o].t.charCodeAt(0),i[o].v,u,x),i[o].t="t";break;case"n":case"?":for(S=o+1;i[S]!=null&&((s=i[S].t)==="?"||s==="D"||(s===" "||s==="t")&&i[S+1]!=null&&(i[S+1].t==="?"||i[S+1].t==="t"&&i[S+1].v==="/")||i[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(i[S].v==="/"||i[S].v===" "&&i[S+1]!=null&&i[S+1].t=="?"));
vendor: 4,449 bytes, line 40
40)i[o].v+=i[S].v,i[S]={v:"",t:";"},++S;_+=i[o].v,o=S-1;break;case"G":i[o].t="t",i[o].v=Ts(t,r);break}var T="",E,A;if(_.length>0){_.charCodeAt(0)==40?(E=t<0&&_.charCodeAt(0)===45?-t:t,A=Sa("n",_,E)):(E=t<0&&n>1?-t:t,A=Sa("n",_,E),E<0&&i[0]&&i[0].t=="t"&&(A=A.substr(1),i[0].v="-"+i[0].v)),S=A.length-1;var P=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){P=o;break}var C=i.length;if(P===i.length&&A.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(S>=i[o].v.length-1?(S-=i[o].v.length,i[o].v=A.substr(S+1,i[o].v.length)):S<0?i[o].v="":(i[o].v=A.substr(0,S+1),S=-1),i[o].t="t",C=o);S>=0&&C<i.length&&(i[C].v=A.substr(0,S+1)+i[C].v)}else if(P!==i.length&&A.indexOf("E")===-1){for(S=A.indexOf(".")-1,o=P;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(c=i[o].v.indexOf(".")>-1&&o===P?i[o].v.indexOf(".")-1:i[o].v.length-1,T=i[o].v.substr(c+1);c>=0;--c)S>=0&&(i[o].v.charAt(c)==="0"||i[o].v.charAt(c)==="#")&&(T=A.charAt(S--)+T);i[o].v=T,i[o].t="t",C=o}for(S>=0&&C<i.length&&(i[C].v=A.substr(0,S+1)+i[C].v),S=A.indexOf(".")+1,o=P;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==P)){for(c=i[o].v.indexOf(".")>-1&&o===P?i[o].v.indexOf(".")+1:0,T=i[o].v.substr(0,c);c<i[o].v.length;++c)S<A.length&&(T+=A.charAt(S++));i[o].v=T,i[o].t="t",C=o}}}for(o=0;o<i.length;++o)i[o]!=null&&"n?".indexOf(i[o].t)>-1&&(E=n>1&&t<0&&o>0&&i[o-1].v==="-"?-t:t,i[o].v=Sa(i[o].t,i[o].v,E),i[o].t="t");var N="";for(o=0;o!==i.length;++o)i[o]!=null&&(N+=i[o].v);return N}var bT=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function CT(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 l8(e,t){var r=o8(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 a=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(bT),s=r[1].match(bT);return CT(t,o)?[n,r[0]]:CT(t,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,a]}function ci(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:ze)[e],n==null&&(n=r.table&&r.table[TT[e]]||ze[TT[e]]),n==null&&(n=j5[e]||"General");break}if(ch(n,0))return Ts(t,r);t instanceof Date&&(t=DN(t,r.date1904));var i=l8(n,t);if(ch(i[1]))return Ts(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return s8(i[1],t,r,i[0])}function hs(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(ze[r]==null){t<0&&(t=r);continue}if(ze[r]==e){t=r;break}}t<0&&(t=391)}return ze[t]=e,t}function jN(){ze=H5()}var u8={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},zN=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function c8(e){var t=typeof e=="number"?ze[e]:e;return t=t.replace(zN,"(\\d+)"),new RegExp("^"+t+"$")}function f8(e,t,r){var n=-1,i=-1,a=-1,o=-1,s=-1,l=-1;
vendor: 4,613 bytes, line 40
40(t.match(zN)||[]).forEach(function(f,d){var m=parseInt(r[d+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=m;break;case"d":a=m;break;case"h":o=m;break;case"s":l=m;break;case"m":o>=0?s=m:i=m;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"+(a>=1?a:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var c=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?u:n==-1&&i==-1&&a==-1?c:u+"T"+c}var d8=function(){var e={};e.version="1.2.0";function t(){for(var A=0,P=new Array(256),C=0;C!=256;++C)A=C,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,P[C]=A;return typeof Int32Array<"u"?new Int32Array(P):P}var r=t();function n(A){var P=0,C=0,N=0,M=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(N=0;N!=256;++N)M[N]=A[N];for(N=0;N!=256;++N)for(C=A[N],P=256+N;P<4096;P+=256)C=M[P]=C>>>8^A[C&255];var k=[];for(N=1;N!=16;++N)k[N-1]=typeof Int32Array<"u"?M.subarray(N*256,N*256+256):M.slice(N*256,N*256+256);return k}var i=n(r),a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],c=i[5],f=i[6],d=i[7],m=i[8],g=i[9],v=i[10],y=i[11],x=i[12],w=i[13],_=i[14];function S(A,P){for(var C=P^-1,N=0,M=A.length;N<M;)C=C>>>8^r[(C^A.charCodeAt(N++))&255];return~C}function T(A,P){for(var C=P^-1,N=A.length-15,M=0;M<N;)C=_[A[M++]^C&255]^w[A[M++]^C>>8&255]^x[A[M++]^C>>16&255]^y[A[M++]^C>>>24]^v[A[M++]]^g[A[M++]]^m[A[M++]]^d[A[M++]]^f[A[M++]]^c[A[M++]]^u[A[M++]]^l[A[M++]]^s[A[M++]]^o[A[M++]]^a[A[M++]]^r[A[M++]];for(N+=15;M<N;)C=C>>>8^r[(C^A[M++])&255];return~C}function E(A,P){for(var C=P^-1,N=0,M=A.length,k=0,H=0;N<M;)k=A.charCodeAt(N++),k<128?C=C>>>8^r[(C^k)&255]:k<2048?(C=C>>>8^r[(C^(192|k>>6&31))&255],C=C>>>8^r[(C^(128|k&63))&255]):k>=55296&&k<57344?(k=(k&1023)+64,H=A.charCodeAt(N++)&1023,C=C>>>8^r[(C^(240|k>>8&7))&255],C=C>>>8^r[(C^(128|k>>2&63))&255],C=C>>>8^r[(C^(128|H>>6&15|(k&3)<<4))&255],C=C>>>8^r[(C^(128|H&63))&255]):(C=C>>>8^r[(C^(224|k>>12&15))&255],C=C>>>8^r[(C^(128|k>>6&63))&255],C=C>>>8^r[(C^(128|k&63))&255]);return~C}return e.table=r,e.bstr=S,e.buf=T,e.str=E,e}(),Je=function(){var t={};t.version="1.2.1";function r(I,B){for(var D=I.split("/"),L=B.split("/"),G=0,V=0,ne=Math.min(D.length,L.length);G<ne;++G){if(V=D[G].length-L[G].length)return V;if(D[G]!=L[G])return D[G]<L[G]?-1:1}return D.length-L.length}function n(I){if(I.charAt(I.length-1)=="/")return I.slice(0,-1).indexOf("/")===-1?I:n(I.slice(0,-1));var B=I.lastIndexOf("/");return B===-1?I:I.slice(0,B+1)}function i(I){if(I.charAt(I.length-1)=="/")return i(I.slice(0,-1));var B=I.lastIndexOf("/");return B===-1?I:I.slice(B+1)}function a(I,B){typeof B=="string"&&(B=new Date(B));var D=B.getHours();D=D<<6|B.getMinutes(),D=D<<5|B.getSeconds()>>>1,I.write_shift(2,D);var L=B.getFullYear()-1980;L=L<<4|B.getMonth()+1,L=L<<5|B.getDate(),I.write_shift(2,L)}function o(I){var B=I.read_shift(2)&65535,D=I.read_shift(2)&65535,L=new Date,G=D&31;D>>>=5;var V=D&15;D>>>=4,L.setMilliseconds(0),L.setFullYear(D+1980),L.setMonth(V-1),L.setDate(G);var ne=B&31;B>>>=5;var ue=B&63;return B>>>=6,L.setHours(B),L.setMinutes(ue),L.setSeconds(ne<<1),L}function s(I){Ur(I,0);for(var B={},D=0;I.l<=I.length-4;){var L=I.read_shift(2),G=I.read_shift(2),V=I.l+G,ne={};switch(L){case 21589:D=I.read_shift(1),D&1&&(ne.mtime=I.read_shift(4)),G>5&&(D&2&&(ne.atime=I.read_shift(4)),D&4&&(ne.ctime=I.read_shift(4))),ne.mtime&&(ne.mt=new Date(ne.mtime*1e3));break}I.l=V,B[L]=ne}return B}var l;function u(){return l||(l={})}function c(I,B){if(I[0]==80&&I[1]==75)return sr(I,B);if((I[0]|32)==109&&(I[1]|32)==105)return ev(I,B);if(I.length<512)throw new Error("CFB file size "+I.length+" < 512");var D=3,L=512,G=0,V=0,ne=0,ue=0,re=0,ie=[],ae=I.slice(0,512);Ur(ae,0);var me=f(ae);switch(D=me[0],D){case 3:L=512;break;case 4:L=4096;break;case 0:if(me[1]==0)return sr(I,B);default:throw new Error("Major Version: Expected 3 or 4 saw "+D)}L!==512&&(ae=I.slice(0,L),Ur(ae,28));var Ee=I.slice(0,L);d(ae,D);var Pe=ae.read_shift(4,"i");if(D===3&&Pe!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Pe);ae.l+=4,ne=ae.read_shift(4,"i"),ae.l+=4,ae.chk("00100000","Mini Stream Cutoff Size: "),ue=ae.read_shift(4,"i"),G=ae.read_shift(4,"i"),re=ae.read_shift(4,"i"),V=ae.read_shift(4,"i");for(var xe=-1,Se=0;Se<109&&(xe=ae.read_shift(4,"i"),!(xe<0));++Se)ie[Se]=xe;var Ue=m(I,L);y(re,V,Ue,L,ie);var Et=w(Ue,ne,ie,L);Et[ne].name="!Directory",G>
vendor: 5,025 bytes, line 40
400&&ue!==H&&(Et[ue].name="!MiniFAT"),Et[ie[0]].name="!FAT",Et.fat_addrs=ie,Et.ssz=L;var Tt={},cr=[],Z=[],fe=[];_(ne,Et,Ue,cr,G,Tt,Z,ue),g(Z,fe,cr),cr.shift();var de={FileIndex:Z,FullPaths:fe};return B&&B.raw&&(de.raw={header:Ee,sectors:Ue}),de}function f(I){if(I[I.l]==80&&I[I.l+1]==75)return[0,0];I.chk(K,"Header Signature: "),I.l+=16;var B=I.read_shift(2,"u");return[I.read_shift(2,"u"),B]}function d(I,B){var D=9;switch(I.l+=2,D=I.read_shift(2)){case 9:if(B!=3)throw new Error("Sector Shift: Expected 9 saw "+D);break;case 12:if(B!=4)throw new Error("Sector Shift: Expected 12 saw "+D);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+D)}I.chk("0600","Mini Sector Shift: "),I.chk("000000000000","Reserved: ")}function m(I,B){for(var D=Math.ceil(I.length/B)-1,L=[],G=1;G<D;++G)L[G-1]=I.slice(G*B,(G+1)*B);return L[D-1]=I.slice(D*B),L}function g(I,B,D){for(var L=0,G=0,V=0,ne=0,ue=0,re=D.length,ie=[],ae=[];L<re;++L)ie[L]=ae[L]=L,B[L]=D[L];for(;ue<ae.length;++ue)L=ae[ue],G=I[L].L,V=I[L].R,ne=I[L].C,ie[L]===L&&(G!==-1&&ie[G]!==G&&(ie[L]=ie[G]),V!==-1&&ie[V]!==V&&(ie[L]=ie[V])),ne!==-1&&(ie[ne]=L),G!==-1&&L!=ie[L]&&(ie[G]=ie[L],ae.lastIndexOf(G)<ue&&ae.push(G)),V!==-1&&L!=ie[L]&&(ie[V]=ie[L],ae.lastIndexOf(V)<ue&&ae.push(V));for(L=1;L<re;++L)ie[L]===L&&(V!==-1&&ie[V]!==V?ie[L]=ie[V]:G!==-1&&ie[G]!==G&&(ie[L]=ie[G]));for(L=1;L<re;++L)if(I[L].type!==0){if(ue=L,ue!=ie[ue])do ue=ie[ue],B[L]=B[ue]+"/"+B[L];while(ue!==0&&ie[ue]!==-1&&ue!=ie[ue]);ie[L]=-1}for(B[0]+="/",L=1;L<re;++L)I[L].type!==2&&(B[L]+="/")}function v(I,B,D){for(var L=I.start,G=I.size,V=[],ne=L;D&&G>0&&ne>=0;)V.push(B.slice(ne*k,ne*k+k)),G-=k,ne=es(D,ne*4);return V.length===0?hr(0):no(V).slice(0,I.size)}function y(I,B,D,L,G){var V=H;if(I===H){if(B!==0)throw new Error("DIFAT chain shorter than expected")}else if(I!==-1){var ne=D[I],ue=(L>>>2)-1;if(!ne)return;for(var re=0;re<ue&&(V=es(ne,re*4))!==H;++re)G.push(V);y(es(ne,L-4),B-1,D,L,G)}}function x(I,B,D,L,G){var V=[],ne=[];G||(G=[]);var ue=L-1,re=0,ie=0;for(re=B;re>=0;){G[re]=!0,V[V.length]=re,ne.push(I[re]);var ae=D[Math.floor(re*4/L)];if(ie=re*4&ue,L<4+ie)throw new Error("FAT boundary crossed: "+re+" 4 "+L);if(!I[ae])break;re=es(I[ae],ie)}return{nodes:V,data:LT([ne])}}function w(I,B,D,L){var G=I.length,V=[],ne=[],ue=[],re=[],ie=L-1,ae=0,me=0,Ee=0,Pe=0;for(ae=0;ae<G;++ae)if(ue=[],Ee=ae+B,Ee>=G&&(Ee-=G),!ne[Ee]){re=[];var xe=[];for(me=Ee;me>=0;){xe[me]=!0,ne[me]=!0,ue[ue.length]=me,re.push(I[me]);var Se=D[Math.floor(me*4/L)];if(Pe=me*4&ie,L<4+Pe)throw new Error("FAT boundary crossed: "+me+" 4 "+L);if(!I[Se]||(me=es(I[Se],Pe),xe[me]))break}V[Ee]={nodes:ue,data:LT([re])}}return V}function _(I,B,D,L,G,V,ne,ue){for(var re=0,ie=L.length?2:0,ae=B[I].data,me=0,Ee=0,Pe;me<ae.length;me+=128){var xe=ae.slice(me,me+128);Ur(xe,64),Ee=xe.read_shift(2),Pe=g_(xe,0,Ee-ie),L.push(Pe);var Se={name:Pe,type:xe.read_shift(1),color:xe.read_shift(1),L:xe.read_shift(4,"i"),R:xe.read_shift(4,"i"),C:xe.read_shift(4,"i"),clsid:xe.read_shift(16),state:xe.read_shift(4,"i"),start:0,size:0},Ue=xe.read_shift(2)+xe.read_shift(2)+xe.read_shift(2)+xe.read_shift(2);Ue!==0&&(Se.ct=S(xe,xe.l-8));var Et=xe.read_shift(2)+xe.read_shift(2)+xe.read_shift(2)+xe.read_shift(2);Et!==0&&(Se.mt=S(xe,xe.l-8)),Se.start=xe.read_shift(4,"i"),Se.size=xe.read_shift(4,"i"),Se.size<0&&Se.start<0&&(Se.size=Se.type=0,Se.start=H,Se.name=""),Se.type===5?(re=Se.start,G>0&&re!==H&&(B[re].name="!StreamData")):Se.size>=4096?(Se.storage="fat",B[Se.start]===void 0&&(B[Se.start]=x(D,Se.start,B.fat_addrs,B.ssz)),B[Se.start].name=Se.name,Se.content=B[Se.start].data.slice(0,Se.size)):(Se.storage="minifat",Se.size<0?Se.size=0:re!==H&&Se.start!==H&&B[re]&&(Se.content=v(Se,B[re].data,(B[ue]||{}).data))),Se.content&&Ur(Se.content,0),V[Pe]=Se,ne.push(Se)}}function S(I,B){return new Date((Fn(I,B+4)/1e7*Math.pow(2,32)+Fn(I,B)/1e7-11644473600)*1e3)}function T(I,B){return u(),c(l.readFileSync(I),B)}function E(I,B){var D=B&&B.type;switch(D||Xe&&Buffer.isBuffer(I)&&(D="buffer"),D||"base64"){case"file":return T(I,B);case"base64":return c(ki(Hn(I)),B);case"binary":return c(ki(I),B)}return c(I,B)}function A(I,B){var D=B||{},L=D.root||"Root Entry";if(I.FullPaths||(I.FullPaths=[]),I.FileIndex||(I.FileIndex=[]),I.FullPaths.length!==I.FileIndex.length)throw new Error("inconsistent CFB structure");I.FullPaths.length===0&&(I.FullPaths[0]=L+"/",I.FileIndex[0]={name:L,type:5}),D.CLSID&&(I.FileIndex[0].clsid=D.CLSID),P(I)}function P(I){var B="�Sh33tJ5";if(!Je.find(I,"/"+B)){var D=hr(4);D[0]=55,D[1]=D[3]=50,D[2]=54,I.FileIndex.push({name:B,type:2,content:D,size:4,L:69,R:69,C:69}),I.FullPaths.push(I.FullPaths[0]+B),C(I)}}function C(I,B){A(I);for(var D=!1,L=!1,G=I.FullPaths.length-1;G>=0;--G){var V=I.FileIndex[G];switch(V.type){case 0:L?D=!0:(I.FileIndex.pop(),I.FullPaths.pop());break;case 1:case 2:case 5:L=!0,isNaN(V.R*V.L*V.C)&&(D=!0),V.R>-1&&V.L>-1&&V.R==V.L&&(D=!0);break;default:D=!0;break}}if(!(!D&&!B)){var ne=new Date(1987,1,19),ue=0,re=Object.create?Object.create(null):{},ie=[];for(G=0;G<I.FullPaths.length;
vendor: 18,621 bytes, lines 40-48
40++G)re[I.FullPaths[G]]=!0,I.FileIndex[G].type!==0&&ie.push([I.FullPaths[G],I.FileIndex[G]]);for(G=0;G<ie.length;++G){var ae=n(ie[G][0]);L=re[ae],L||(ie.push([ae,{name:i(ae).replace("/",""),type:1,clsid:Y,ct:ne,mt:ne,content:null}]),re[ae]=!0)}for(ie.sort(function(Pe,xe){return r(Pe[0],xe[0])}),I.FullPaths=[],I.FileIndex=[],G=0;G<ie.length;++G)I.FullPaths[G]=ie[G][0],I.FileIndex[G]=ie[G][1];for(G=0;G<ie.length;++G){var me=I.FileIndex[G],Ee=I.FullPaths[G];if(me.name=i(Ee).replace("/",""),me.L=me.R=me.C=-(me.color=1),me.size=me.content?me.content.length:0,me.start=0,me.clsid=me.clsid||Y,G===0)me.C=ie.length>1?1:-1,me.size=0,me.type=5;else if(Ee.slice(-1)=="/"){for(ue=G+1;ue<ie.length&&n(I.FullPaths[ue])!=Ee;++ue);for(me.C=ue>=ie.length?-1:ue,ue=G+1;ue<ie.length&&n(I.FullPaths[ue])!=n(Ee);++ue);me.R=ue>=ie.length?-1:ue,me.type=1}else n(I.FullPaths[G+1]||"")==n(Ee)&&(me.R=G+1),me.type=2}}}function N(I,B){var D=B||{};if(D.fileType=="mad")return jo(I,D);switch(C(I),D.fileType){case"zip":return lr(I,D)}var L=function(Pe){for(var xe=0,Se=0,Ue=0;Ue<Pe.FileIndex.length;++Ue){var Et=Pe.FileIndex[Ue];if(Et.content){var Tt=Et.content.length;Tt>0&&(Tt<4096?xe+=Tt+63>>6:Se+=Tt+511>>9)}}for(var cr=Pe.FullPaths.length+3>>2,Z=xe+7>>3,fe=xe+127>>7,de=Z+Se+cr+fe,ve=de+127>>7,we=ve<=109?0:Math.ceil((ve-109)/127);de+ve+we+127>>7>ve;)we=++ve<=109?0:Math.ceil((ve-109)/127);var be=[1,we,ve,fe,cr,Se,xe,0];return Pe.FileIndex[0].size=xe<<6,be[7]=(Pe.FileIndex[0].start=be[0]+be[1]+be[2]+be[3]+be[4]+be[5])+(be[6]+7>>3),be}(I),G=hr(L[7]<<9),V=0,ne=0;{for(V=0;V<8;++V)G.write_shift(1,U[V]);for(V=0;V<8;++V)G.write_shift(2,0);for(G.write_shift(2,62),G.write_shift(2,3),G.write_shift(2,65534),G.write_shift(2,9),G.write_shift(2,6),V=0;V<3;++V)G.write_shift(2,0);for(G.write_shift(4,0),G.write_shift(4,L[2]),G.write_shift(4,L[0]+L[1]+L[2]+L[3]-1),G.write_shift(4,0),G.write_shift(4,4096),G.write_shift(4,L[3]?L[0]+L[1]+L[2]-1:H),G.write_shift(4,L[3]),G.write_shift(-4,L[1]?L[0]-1:H),G.write_shift(4,L[1]),V=0;V<109;++V)G.write_shift(-4,V<L[2]?L[1]+V:-1)}if(L[1])for(ne=0;ne<L[1];++ne){for(;V<236+ne*127;++V)G.write_shift(-4,V<L[2]?L[1]+V:-1);G.write_shift(-4,ne===L[1]-1?H:ne+1)}var ue=function(Pe){for(ne+=Pe;V<ne-1;++V)G.write_shift(-4,V+1);Pe&&(++V,G.write_shift(-4,H))};for(ne=V=0,ne+=L[1];V<ne;++V)G.write_shift(-4,W.DIFSECT);for(ne+=L[2];V<ne;++V)G.write_shift(-4,W.FATSECT);ue(L[3]),ue(L[4]);for(var re=0,ie=0,ae=I.FileIndex[0];re<I.FileIndex.length;++re)ae=I.FileIndex[re],ae.content&&(ie=ae.content.length,!(ie<4096)&&(ae.start=ne,ue(ie+511>>9)));for(ue(L[6]+7>>3);G.l&511;)G.write_shift(-4,W.ENDOFCHAIN);for(ne=V=0,re=0;re<I.FileIndex.length;++re)ae=I.FileIndex[re],ae.content&&(ie=ae.content.length,!(!ie||ie>=4096)&&(ae.start=ne,ue(ie+63>>6)));for(;G.l&511;)G.write_shift(-4,W.ENDOFCHAIN);for(V=0;V<L[4]<<2;++V){var me=I.FullPaths[V];if(!me||me.length===0){for(re=0;re<17;++re)G.write_shift(4,0);for(re=0;re<3;++re)G.write_shift(4,-1);for(re=0;re<12;++re)G.write_shift(4,0);continue}ae=I.FileIndex[V],V===0&&(ae.start=ae.size?ae.start-1:H);var Ee=V===0&&D.root||ae.name;if(ie=2*(Ee.length+1),G.write_shift(64,Ee,"utf16le"),G.write_shift(2,ie),G.write_shift(1,ae.type),G.write_shift(1,ae.color),G.write_shift(-4,ae.L),G.write_shift(-4,ae.R),G.write_shift(-4,ae.C),ae.clsid)G.write_shift(16,ae.clsid,"hex");else for(re=0;re<4;++re)G.write_shift(4,0);G.write_shift(4,ae.state||0),G.write_shift(4,0),G.write_shift(4,0),G.write_shift(4,0),G.write_shift(4,0),G.write_shift(4,ae.start),G.write_shift(4,ae.size),G.write_shift(4,0)}for(V=1;V<I.FileIndex.length;++V)if(ae=I.FileIndex[V],ae.size>=4096)if(G.l=ae.start+1<<9,Xe&&Buffer.isBuffer(ae.content))ae.content.copy(G,G.l,0,ae.size),G.l+=ae.size+511&-512;else{for(re=0;re<ae.size;++re)G.write_shift(1,ae.content[re]);for(;re&511;++re)G.write_shift(1,0)}for(V=1;V<I.FileIndex.length;++V)if(ae=I.FileIndex[V],ae.size>0&&ae.size<4096)if(Xe&&Buffer.isBuffer(ae.content))ae.content.copy(G,G.l,0,ae.size),G.l+=ae.size+63&-64;else{for(re=0;re<ae.size;++re)G.write_shift(1,ae.content[re]);for(;re&63;++re)G.write_shift(1,0)}if(Xe)G.l=G.length;else for(;G.l<G.length;)G.write_shift(1,0);return G}function M(I,B){var D=I.FullPaths.map(function(re){return re.toUpperCase()}),L=D.map(function(re){var ie=re.split("/");return ie[ie.length-(re.slice(-1)=="/"?2:1)]}),G=!1;B.charCodeAt(0)===47?(G=!0,B=D[0].slice(0,-1)+B):G=B.indexOf("/")!==-1;var V=B.toUpperCase(),ne=G===!0?D.indexOf(V):L.indexOf(V);if(ne!==-1)return I.FileIndex[ne];var ue=!V.match(_c);for(V=V.replace(gn,""),ue&&(V=V.replace(_c,"!")),ne=0;ne<D.length;++ne)if((ue?D[ne].replace(_c,"!"):D[ne]).replace(gn,"")==V||(ue?L[ne].replace(_c,"!"):L[ne]).replace(gn,"")==V)return I.FileIndex[ne];return null}var k=64,H=-2,K="d0cf11e0a1b11ae1",U=[208,207,17,224,161,177,26,225],Y="00000000000000000000000000000000",W={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:H,FREESECT:-1,HEADER_SIGNATURE:K,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Y,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function J(I,B,D){u();var L=N(I,D);l.writeFileSync(B,L)}function F(I){for(var B=new Array(I.length),D=0;D<I.length;++D)B[D]=String.fromCharCode(I[D]);return B.join("")}function ee(I,B){var D=N(I,B);switch(B&&B.type||"buffer"){case"file":return u(),l.writeFileSync(B.filename,D),D;case"binary":return typeof D=="string"?D:F(D);case"base64":return xT(typeof D=="string"?D:F(D));case"buffer":if(Xe)return Buffer.isBuffer(D)?D:Rs(D);case"array":return typeof D=="string"?ki(D):D}return D}var le;function R(I){try{var B=I.InflateRaw,D=new B;if(D._processChunk(new Uint8Array([3,0]),D._finishFlushFlag),D.bytesRead)le=I;else throw new Error("zlib does not expose bytesRead")}catch(L){console.error("cannot use native zlib: "+(L.message||L))}}function X(I,B){if(!le)return Wn(I,B);var D=le.InflateRaw,L=new D,G=L._processChunk(I.slice(I.l),L._finishFlushFlag);return I.l+=L.bytesRead,G}function q(I){return le?le.deflateRawSync(I):je(I)}var z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],se=[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],pe=[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 _e(I){var B=(I<<1|I<<11)&139536|(I<<5|I<<15)&558144;return(B>>16|B>>8|B)&255}for(var te=typeof Uint8Array<"u",oe=te?new Uint8Array(256):[],Te=0;Te<256;++Te)oe[Te]=_e(Te);function O(I,B){var D=oe[I&255];return B<=8?D>>>8-B:(D=D<<8|oe[I>>8&255],B<=16?D>>>16-B:(D=D<<8|oe[I>>16&255],D>>>24-B))}function $e(I,B){var D=B&7,L=B>>>3;return(I[L]|(D<=6?0:I[L+1]<<8))>>>D&3}function Ce(I,B){var D=B&7,L=B>>>3;return(I[L]|(D<=5?0:I[L+1]<<8))>>>D&7}function Me(I,B){var D=B&7,L=B>>>3;return(I[L]|(D<=4?0:I[L+1]<<8))>>>D&15}function Re(I,B){var D=B&7,L=B>>>3;return(I[L]|(D<=3?0:I[L+1]<<8))>>>D&31}function he(I,B){var D=B&7,L=B>>>3;return(I[L]|(D<=1?0:I[L+1]<<8))>>>D&127}function Qe(I,B,D){var L=B&7,G=B>>>3,V=(1<<D)-1,ne=I[G]>>>L;return D<8-L||(ne|=I[G+1]<<8-L,D<16-L)||(ne|=I[G+2]<<16-L,D<24-L)||(ne|=I[G+3]<<24-L),ne&V}function Nt(I,B,D){var L=B&7,G=B>>>3;return L<=5?I[G]|=(D&7)<<L:(I[G]|=D<<L&255,I[G+1]=(D&7)>>8-L),B+3}function ir(I,B,D){var L=B&7,G=B>>>3;return D=(D&1)<<L,I[G]|=D,B+1}function Gt(I,B,D){var L=B&7,G=B>>>3;return D<<=L,I[G]|=D&255,D>>>=8,I[G+1]=D,B+8}function zr(I,B,D){var L=B&7,G=B>>>3;return D<<=L,I[G]|=D&255,D>>>=8,I[G+1]=D&255,I[G+2]=D>>>8,B+16}function wr(I,B){var D=I.length,L=2*D>B?2*D:B+5,G=0;if(D>=B)return I;if(Xe){var V=_T(L);if(I.copy)I.copy(V);else for(;G<I.length;++G)V[G]=I[G];return V}else if(te){var ne=new Uint8Array(L);if(ne.set)ne.set(I);else for(;G<D;++G)ne[G]=I[G];return ne}return I.length=L,I}function Er(I){for(var B=new Array(I),D=0;D<I;++D)B[D]=0;return B}function Tr(I,B,D){var L=1,G=0,V=0,ne=0,ue=0,re=I.length,ie=te?new Uint16Array(32):Er(32);for(V=0;V<32;++V)ie[V]=0;for(V=re;V<D;++V)I[V]=0;re=I.length;var ae=te?new Uint16Array(re):Er(re);for(V=0;V<re;++V)ie[G=I[V]]++,L<G&&(L=G),ae[V]=0;for(ie[0]=0,V=1;V<=L;++V)ie[V+16]=ue=ue+ie[V-1]<<1;for(V=0;V<re;++V)ue=I[V],ue!=0&&(ae[V]=ie[ue+16]++);var me=0;for(V=0;V<re;++V)if(me=I[V],me!=0)for(ue=O(ae[V],L)>>L-me,ne=(1<<L+4-me)-1;ne>=0;--ne)B[ue|ne<<me]=me&15|V<<4;return L}var Vi=te?new Uint16Array(512):Er(512),ar=te?new Uint16Array(32):Er(32);if(!te){for(var or=0;or<512;++or)Vi[or]=0;for(or=0;or<32;++or)ar[or]=0}(function(){for(var I=[],B=0;B<32;B++)I.push(5);Tr(I,ar,32);var D=[];for(B=0;B<=143;B++)D.push(8);for(;B<=255;B++)D.push(9);for(;B<=279;B++)D.push(7);for(;B<=287;B++)D.push(8);Tr(D,Vi,288)})();var Vt=function(){for(var B=te?new Uint8Array(32768):[],D=0,L=0;D<pe.length-1;++D)for(;L<pe[D+1];++L)B[L]=D;for(;L<32768;++L)B[L]=29;var G=te?new Uint8Array(259):[];for(D=0,L=0;D<se.length-1;++D)for(;L<se[D+1];++L)G[L]=D;function V(ue,re){for(var ie=0;ie<ue.length;){var ae=Math.min(65535,ue.length-ie),me=ie+ae==ue.length;for(re.write_shift(1,+me),re.write_shift(2,ae),re.write_shift(2,~ae&65535);ae-- >0;)re[re.l++]=ue[ie++]}return re.l}function ne(ue,re){for(var ie=0,ae=0,me=te?new Uint16Array(32768):[];ae<ue.length;){var Ee=Math.min(65535,ue.length-ae);if(Ee<10){for(ie=Nt(re,ie,+(ae+Ee==ue.length)),ie&7&&(ie+=8-(ie&7)),re.l=ie/8|0,re.write_shift(2,Ee),re.write_shift(2,~Ee&65535);Ee-- >0;)re[re.l++]=ue[ae++];ie=re.l*8;continue}ie=Nt(re,ie,+(ae+Ee==ue.length)+2);for(var Pe=0;Ee-- >0;){var xe=ue[ae];Pe=(Pe<<5^xe)&32767;var Se=-1,Ue=0;if((Se=me[Pe])&&(Se|=ae&-32768,Se>ae&&(Se-=32768),Se<ae))for(;ue[Se+Ue]==ue[ae+Ue]&&Ue<250;)++Ue;if(Ue>2){xe=G[Ue],xe<=22?ie=Gt(re,ie,oe[xe+1]>>1)-1:(Gt(re,ie,3),ie+=5,Gt(re,ie,oe[xe-23]>>5),ie+=3);var Et=xe<8?0:xe-4>>2;Et>0&&(zr(re,ie,Ue-se[xe]),ie+=Et),xe=B[ae-Se],ie=Gt(re,ie,oe[xe]>>3),ie-=3;var Tt=xe<4?0:xe-2>>1;Tt>0&&(zr(re,ie,ae-Se-pe[xe]),ie+=Tt);for(var cr=0;cr<Ue;++cr)me[Pe]=ae&32767,Pe=(Pe<<5^ue[ae])&32767,++ae;Ee-=Ue-1}else xe<=143?xe=xe+48:ie=ir(re,ie,1),ie=Gt(re,ie,oe[xe]),me[Pe]=ae&32767,++ae}ie=Gt(re,ie,0)-1}return re.l=(ie+7)/8|0,re.l}return function(re,ie){return re.length<8?V(re,ie):ne(re,ie)}}();function je(I){var B=hr(50+Math.floor(I.length*1.1)),D=Vt(I,B);return B.slice(0,D)}var et=te?new Uint16Array(32768):Er(32768),Mr=te?new Uint16Array(32768):Er(32768),Ft=te?new Uint16Array(128):Er(128),Xt=1,zs=1;function kd(I,B){var D=Re(I,B)+257;B+=5;var L=Re(I,B)+1;B+=5;var G=Me(I,B)+4;B+=4;for(var V=0,ne=te?new Uint8Array(19):Er(19),ue=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],re=1,ie=te?new Uint8Array(8):Er(8),ae=te?new Uint8Array(8):Er(8),me=ne.length,Ee=0;Ee<G;++Ee)ne[z[Ee]]=V=Ce(I,B),re<V&&(re=V),ie[V]++,B+=3;var Pe=0;for(ie[0]=0,Ee=1;Ee<=re;++Ee)ae[Ee]=Pe=Pe+ie[Ee-1]<<1;for(Ee=0;Ee<me;++Ee)(Pe=ne[Ee])!=0&&(ue[Ee]=ae[Pe]++);var xe=0;for(Ee=0;Ee<me;++Ee)if(xe=ne[Ee],xe!=0){Pe=oe[ue[Ee]]>>8-xe;for(var Se=(1<<7-xe)-1;Se>=0;--Se)Ft[Pe|Se<<xe]=xe&7|Ee<<3}var Ue=[];for(re=1;Ue.length<D+L;)switch(Pe=Ft[he(I,B)],B+=Pe&7,Pe>>>=3){case 16:for(V=3+$e(I,B),B+=2,Pe=Ue[Ue.length-1];V-- >0;)Ue.push(Pe);break;case 17:for(V=3+Ce(I,B),B+=3;V-- >0;)Ue.push(0);break;case 18:for(V=11+he(I,B),B+=7;V-- >0;)Ue.push(0);break;default:Ue.push(Pe),re<Pe&&(re=Pe);break}var Et=Ue.slice(0,D),Tt=Ue.slice(D);for(Ee=D;Ee<286;++Ee)Et[Ee]=0;for(Ee=L;Ee<30;++Ee)Tt[Ee]=0;return Xt=Tr(Et,et,286),zs=Tr(Tt,Mr,30),B}function Vu(I,B){if(I[0]==3&&!(I[1]&3))return[Co(B),2];for(var D=0,L=0,G=_T(B||1<<18),V=0,ne=G.length>>>0,ue=0,re=0;!(L&1);){if(L=Ce(I,D),D+=3,L>>>1)L>>1==1?(ue=9,re=5):(D=kd(I,D),ue=Xt,re=zs);else{D&7&&(D+=8-(D&7));var ie=I[D>>>3]|I[(D>>>3)+1]<<8;if(D+=32,ie>0)for(!B&&ne<V+ie&&(G=wr(G,V+ie),ne=G.length);ie-- >0;)G[V++]=I[D>>>3],D+=8;continue}for(;;){!B&&ne<V+32767&&(G=wr(G,V+32767),ne=G.length);var ae=Qe(I,D,ue),me=L>>>1==1?Vi[ae]:et[ae];if(D+=me&15,me>>>=4,!(me>>>8&255))G[V++]=me;else{if(me==256)break;me-=257;var Ee=me<8?0:me-4>>2;Ee>5&&(Ee=0);var Pe=V+se[me];Ee>0&&(Pe+=Qe(I,D,Ee),D+=Ee),ae=Qe(I,D,re),me=L>>>1==1?ar[ae]:Mr[ae],D+=me&15,me>>>=4;var xe=me<4?0:me-2>>1,Se=pe[me];for(xe>0&&(Se+=Qe(I,D,xe),D+=xe),!B&&ne<Pe&&(G=wr(G,Pe+100),ne=G.length);V<Pe;)G[V]=G[V-Se],++V}}}return B?[G,D+7>>>3]:[G.slice(0,V),D+7>>>3]}function Wn(I,B){var D=I.slice(I.l||0),L=Vu(D,B);return I.l+=L[1],L[0]}function Ho(I,B){if(I)typeof console<"u"&&console.error(B);else throw new Error(B)}function sr(I,B){var D=I;Ur(D,0);var L=[],G=[],V={FileIndex:L,FullPaths:G};A(V,{root:B.root});for(var ne=D.length-4;(D[ne]!=80||D[ne+1]!=75||D[ne+2]!=5||D[ne+3]!=6)&&ne>=0;)--ne;D.l=ne+4,D.l+=4;var ue=D.read_shift(2);D.l+=6;var re=D.read_shift(4);for(D.l=re,ne=0;ne<ue;++ne){D.l+=20;var ie=D.read_shift(4),ae=D.read_shift(4),me=D.read_shift(2),Ee=D.read_shift(2),Pe=D.read_shift(2);D.l+=8;var xe=D.read_shift(4),Se=s(D.slice(D.l+me,D.l+me+Ee));D.l+=me+Ee+Pe;var Ue=D.l;D.l=xe+4,Id(D,ie,ae,V,Se),D.l=Ue}return V}function Id(I,B,D,L,G){I.l+=2;var V=I.read_shift(2),ne=I.read_shift(2),ue=o(I);if(V&8257)throw new Error("Unsupported ZIP encryption");for(var re=I.read_shift(4),ie=I.read_shift(4),ae=I.read_shift(4),me=I.read_shift(2),Ee=I.read_shift(2),Pe="",xe=0;xe<me;++xe)Pe+=String.fromCharCode(I[I.l++]);if(Ee){var Se=s(I.slice(I.l,I.l+Ee));(Se[21589]||{}).mt&&(ue=Se[21589].mt),((G||{})[21589]||{}).mt&&(ue=G[21589].mt)}I.l+=Ee;var Ue=I.slice(I.l,I.l+ie);switch(ne){case 8:Ue=X(I,ae);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ne)}var Et=!1;V&8&&(re=I.read_shift(4),re==134695760&&(re=I.read_shift(4),Et=!0),ie=I.read_shift(4),ae=I.read_shift(4)),ie!=B&&Ho(Et,"Bad compressed size: "+B+" != "+ie),ae!=D&&Ho(Et,"Bad uncompressed size: "+D+" != "+ae),Dr(L,Pe,Ue,{unsafe:!0,mt:ue})}function lr(I,B){var D=B||{},L=[],G=[],V=hr(1),ne=D.compression?8:0,ue=0,re=0,ie=0,ae=0,me=0,Ee=I.FullPaths[0],Pe=Ee,xe=I.FileIndex[0],Se=[],Ue=0;for(re=1;re<I.FullPaths.length;++re)if(Pe=I.FullPaths[re].slice(Ee.length),xe=I.FileIndex[re],!(!xe.size||!xe.content||Pe=="�Sh33tJ5")){var Et=ae,Tt=hr(Pe.length);for(ie=0;ie<Pe.length;++ie)Tt.write_shift(1,Pe.charCodeAt(ie)&127);Tt=Tt.slice(0,Tt.l),Se[me]=d8.buf(xe.content,0);var cr=xe.content;ne==8&&(cr=q(cr)),V=hr(30),V.write_shift(4,67324752),V.write_shift(2,20),V.write_shift(2,ue),V.write_shift(2,ne),xe.mt?a(V,xe.mt):V.write_shift(4,0),V.write_shift(-4,Se[me]),V.write_shift(4,cr.length),V.write_shift(4,xe.content.length),V.write_shift(2,Tt.length),V.write_shift(2,0),ae+=V.length,L.push(V),ae+=Tt.length,L.push(Tt),ae+=cr.length,L.push(cr),V=hr(46),V.write_shift(4,33639248),V.write_shift(2,0),V.write_shift(2,20),V.write_shift(2,ue),V.write_shift(2,ne),V.write_shift(4,0),V.write_shift(-4,Se[me]),V.write_shift(4,cr.length),V.write_shift(4,xe.content.length),V.write_shift(2,Tt.length),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(4,0),V.write_shift(4,Et),Ue+=V.l,G.push(V),Ue+=Tt.length,G.push(Tt),++me}return V=hr(22),V.write_shift(4,101010256),V.write_shift(2,0),V.write_shift(2,0),V.write_shift(2,me),V.write_shift(2,me),V.write_shift(4,Ue),V.write_shift(4,ae),V.write_shift(2,0),no([no(L),no(G),V])}var Ye={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 Sr(I,B){if(I.ctype)return I.ctype;var D=I.name||"",L=D.match(/\.([^\.]+)$/);return L&&Ye[L[1]]||B&&(L=(D=B).match(/[\.\\]([^\.\\])+$/),L&&Ye[L[1]])?Ye[L[1]]:"application/octet-stream"}function ur(I){for(var B=xT(I),D=[],L=0;L<B.length;L+=76)D.push(B.slice(L,L+76));return D.join(`\r 41`)+`\r 42`}function Ar(I){var B=I.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(ie){var ae=ie.charCodeAt(0).toString(16).toUpperCase();return"="+(ae.length==1?"0"+ae:ae)});B=B.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),B.charAt(0)==` 43`&&(B="=0D"+B.slice(1)),B=B.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,` 44=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var D=[],L=B.split(`\r 45`),G=0;G<L.length;++G){var V=L[G];if(V.length==0){D.push("");continue}for(var ne=0;ne<V.length;){var ue=76,re=V.slice(ne,ne+ue);re.charAt(ue-1)=="="?ue--:re.charAt(ue-2)=="="?ue-=2:re.charAt(ue-3)=="="&&(ue-=3),re=V.slice(ne,ne+ue),ne+=ue,ne<V.length&&(re+="="),D.push(re)}}return D.join(`\r 46`)}function Qm(I){for(var B=[],D=0;D<I.length;++D){for(var L=I[D];D<=I.length&&L.charAt(L.length-1)=="=";)L=L.slice(0,L.length-1)+I[++D];B.push(L)}for(var G=0;G<B.length;++G)B[G]=B[G].replace(/[=][0-9A-Fa-f]{2}/g,function(V){return String.fromCharCode(parseInt(V.slice(1),16))});return ki(B.join(`\r 47`))}function Hu(I,B,D){for(var L="",G="",V="",ne,ue=0;ue<10;++ue){var re=B[ue];if(!re||re.match(/^\s*$/))break;var ie=re.match(/^(.*?):\s*([^\s].*)$/);if(ie)switch(ie[1].toLowerCase()){case"content-location":L=ie[2].trim();break;case"content-type":V=ie[2].trim();break;case"content-transfer-encoding":G=ie[2].trim();break}}switch(++ue,G.toLowerCase()){case"base64":ne=ki(Hn(B.slice(ue).join("")));break;case"quoted-printable":ne=Qm(B.slice(ue));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+G)}var ae=Dr(I,L.slice(D.length),ne,{unsafe:!0});V&&(ae.ctype=V)}function ev(I,B){if(F(I.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var D=B&&B.root||"",L=(Xe&&Buffer.isBuffer(I)?I.toString("binary"):F(I)).split(`\r 48`),G=0,V="";for(G=0;G<L.length;++G)if(V=L[G],!!/^Content-Location:/i.test(V)&&(V=V.slice(V.indexOf("file")),D||(D=V.slice(0,V.lastIndexOf("/")+1)),V.slice(0,D.length)!=D))for(;D.length>0&&(D=D.slice(0,D.length-1),D=D.slice(0,D.lastIndexOf("/")+1),V.slice(0,D.length)!=D););var ne=(L[1]||"").match(/boundary="(.*?)"/);if(!ne)throw new Error("MAD cannot find boundary");var ue="--"+(ne[1]||""),re=[],ie=[],ae={FileIndex:re,FullPaths:ie};A(ae);var me,Ee=0;for(G=0;G<L.length;++G){var Pe=L[G];Pe!==ue&&Pe!==ue+"--"||(Ee++&&Hu(ae,L.slice(me,G),D),me=G)}return ae}function jo(I,B){var D=B||{},L=D.boundary||"SheetJS";L="------="+L;for(var G=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+L.slice(2)+'"',"","",""],V=I.FullPaths[0],ne=V,ue=I.FileIndex[0],re=1;re<I.FullPaths.length;++re)if(ne=I.FullPaths[re].slice(V.length),ue=I.FileIndex[re],!(!ue.size||!ue.content||ne=="�Sh33tJ5")){ne=ne.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ue){return"_x"+Ue.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ue){return"_u"+Ue.charCodeAt(0).toString(16)+"_"});for(var ie=ue.content,ae=Xe&&Buffer.isBuffer(ie)?ie.toString("binary"):F(ie),me=0,Ee=Math.min(1024,ae.length),Pe=0,xe=0;xe<=Ee;++xe)(Pe=ae.charCodeAt(xe))>=32&&Pe<128&&++me;var Se=me>=Ee*4/5;G.push(L),G.push("Content-Location: "+(D.root||"file:///C:/SheetJS/")+ne),G.push("Content-Transfer-Encoding: "+(Se?"quoted-printable":"base64")),G.push("Content-Type: "+Sr(ue,ne)),G.push(""),G.pu
48sh(Se?Ar(ae):ur(ae))}return G.push(L+`--\r 49`),G.join(`\r 50`)}function Wa(I){var B={};return A(B,I),B}function Dr(I,B,D,L){var G=L&&L.unsafe;G||A(I);var V=!G&&Je.find(I,B);if(!V){var ne=I.FullPaths[0];B.slice(0,ne.length)==ne?ne=B:(ne.slice(-1)!="/"&&(ne+="/"),ne=(ne+B).replace("//","/")),V={name:i(B),type:2},I.FileIndex.push(V),I.FullPaths.push(ne),G||Je.utils.cfb_gc(I)}return V.content=D,V.size=D?D.length:0,L&&(L.CLSID&&(V.clsid=L.CLSID),L.mt&&(V.mt=L.mt),L.ct&&(V.ct=L.ct)),V}function ju(I,B){A(I);var D=Je.find(I,B);if(D){for(var L=0;L<I.FileIndex.length;++L)if(I.FileIndex[L]==D)return I.FileIndex.splice(L,1),I.FullPaths.splice(L,1),!0}return!1}function ca(I,B,D){A(I);var L=Je.find(I,B);if(L){for(var G=0;G<I.FileIndex.length;++G)if(I.FileIndex[G]==L)return I.FileIndex[G].name=i(D),I.FullPaths[G]=D,!0}return!1}function qa(I){C(I,!0)}return t.find=M,t.read=E,t.parse=c,t.write=ee,t.writeFile=J,t.utils={cfb_new:Wa,cfb_add:Dr,cfb_del:ju,cfb_mov:ca,cfb_gc:qa,ReadShift:Mc,CheckField:hO,prep_blob:Ur,bconcat:no,use_zlib:R,_deflateRaw:je,_inflateRaw:Wn,consts:W},t}();function h8(e){if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+e)}function ia(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 h_(e){for(var t=[],r=ia(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}var dh=new Date(1899,11,30,0,0,0);function xn(e,t){var r=e.getTime(),n=dh.getTime()+(e.getTimezoneOffset()-dh.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var WN=new Date,p8=dh.getTime()+(WN.getTimezoneOffset()-dh.getTimezoneOffset())*6e4,PT=WN.getTimezoneOffset();function Yp(e){var t=new Date;return t.setTime(e*24*60*60*1e3+p8),t.getTimezoneOffset()!==PT&&t.setTime(t.getTime()+(t.getTimezoneOffset()-PT)*6e4),t}function m8(e){var t=0,r=0,n=!1,i=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var a=1;a!=i.length;++a)if(i[a]){switch(r=1,a>3&&(n=!0),i[a].slice(i[a].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[a].slice(i[a].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(i[a],10)}return t}var kT=new Date("2017-02-19T19:06:09.000Z"),qN=isNaN(kT.getFullYear())?new Date("2/19/17"):kT,v8=qN.getFullYear()==2017;function Or(e,t){var r=new Date(e);if(v8)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(qN.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"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function Ss(e,t){if(Xe&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Ec(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Ec(RN(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Ec(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Ec(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(a){return r[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function Vr(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]=Vr(e[r]));return t}function jt(e,t){for(var r="";r.length<t;)r+=e;return r}function Di(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,a){return r=-r,a}),!isNaN(t=Number(n)))?t/r:t}var g8=["january","february","march","april","may","june","july","august","september","october","november","december"];function Vl(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return r;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&g8.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var y8=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,i){if(e||typeof n=="string")return r.split(n);for(var a=r.split(n),o=[a[0]],s=1;s<a.length;++s)o.push(i),o.push(a[s]);return o}}();function KN(e){return e?e.content&&e.type?Ss(e.content,!0):e.data?xc(e.data):e.asNodeBuffer&&Xe?xc(e.asNodeBuffer().toString("binary")):e.asBinary?xc(e.asBinary()):e._data&&e._data.getContent?xc(Ss(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function YN(e){if(!e)return null;if(e.data)return gT(e.data);if(e.asNodeBuffer&&Xe)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return typeof t=="string"?gT(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function x8(e){return e&&e.name.slice(-4)===".bin"?YN(e):KN(e)}function Qn(e,t){for(var r=e.FullPaths||ia(e.files),n=t.toLowerCase().replace(/[\/]/g,"\\"),i=n.replace(/\\/g,"/"),a=0;a<r.length;++a){var o=r[a].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==o||i==o)return e.files?e.files[r[a]]:e.FileIndex[a]}return null}function p_(e,t){var r=Qn(e,t);if(r==null)throw new Error("Cannot find file "+t+" in zip");return r}function Qt(e,t,r){if(!r)return x8(p_(e,t));if(!t)return null;try{return Qt(e,t)}catch{return null}}function Ln(e,t,r){if(!r)return KN(p_(e,t));if(!t)return null;try{return Ln(e,t)}catch{return null}}function _8(e,t,r){return YN(p_(e,t))}
50function IT(e){for(var t=e.FullPaths||ia(e.files),r=[],n=0;n<t.length;++n)t[n].slice(-1)!="/"&&r.push(t[n].replace(/^Root Entry[\/]/,""));return r.sort()}function w8(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return Xe?n=Rs(r):n=U5(r),Je.utils.cfb_add(e,t,n)}Je.utils.cfb_add(e,t,r)}else e.file(t,r)}function XN(e,t){switch(t.type){case"base64":return Je.read(e,{type:"base64"});case"binary":return Je.read(e,{type:"binary"});case"buffer":case"array":return Je.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function wc(e,t){if(e.charAt(0)=="/")return e.slice(1);var r=t.split("/");t.slice(-1)!="/"&&r.pop();for(var n=e.split("/");n.length!==0;){var i=n.shift();i===".."?r.pop():i!=="."&&r.push(i)}return r.join("/")}var JN=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r 51`,E8=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,NT=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,T8=/<[^>]*>/g,sn=JN.match(NT)?NT:T8,S8=/<\w*:/,A8=/<(\/?)\w+:/;function Be(e,t,r){for(var n={},i=0,a=0;i!==e.length&&!((a=e.charCodeAt(i))===32||a===10||a===13);++i);if(t||(n[0]=e.slice(0,i)),i===e.length)return n;var o=e.match(E8),s=0,l="",u=0,c="",f="",d=1;if(o)for(u=0;u!=o.length;++u){for(f=o[u],a=0;a!=f.length&&f.charCodeAt(a)!==61;++a);for(c=f.slice(0,a).trim();f.charCodeAt(a+1)==32;)++a;for(d=(i=f.charCodeAt(a+1))==34||i==39?1:0,l=f.slice(a+1+d,f.length-d),s=0;s!=c.length&&c.charCodeAt(s)!==58;++s);if(s===c.length)c.indexOf("_")>0&&(c=c.slice(0,c.indexOf("_"))),n[c]=l,n[c.toLowerCase()]=l;else{var m=(s===5&&c.slice(0,5)==="xmlns"?"xmlns":"")+c.slice(s+1);if(n[m]&&c.slice(s-3,s)=="ext")continue;n[m]=l,n[m.toLowerCase()]=l}}return n}function oa(e){return e.replace(A8,"<$1")}var ZN={""":'"',"'":"'",">":">","<":"<","&":"&"},b8=h_(ZN),rt=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(n){var i=n+"",a=i.indexOf("<![CDATA[");if(a==-1)return i.replace(e,function(s,l){return ZN[s]||String.fromCharCode(parseInt(l,s.indexOf("x")>-1?16:10))||s}).replace(t,function(s,l){return String.fromCharCode(parseInt(l,16))});var o=i.indexOf("]]>");return r(i.slice(0,a))+i.slice(a+9,o)+r(i.slice(o+3))}}(),C8=/[&<>'"]/g,P8=/[\u0000-\u001f]/g;function m_(e){var t=e+"";return t.replace(C8,function(r){return b8[r]}).replace(/\n/g,"<br/>").replace(P8,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}var OT=function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}}();function Rt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Iv(e){for(var t="",r=0,n=0,i=0,a=0,o=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){o=(n&31)<<6,o|=i&63,t+=String.fromCharCode(o);continue}if(a=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}o=e.charCodeAt(r++),s=((n&7)<<18|(i&63)<<12|(a&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function RT(e){var t=Co(2*e.length),r,n,i=1,a=0,o=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,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(t[a++]=o&255,t[a++]=o>>>8,o=0),t[a++]=r%256,t[a++]=r>>>8;return t.slice(0,a).toString("ucs2")}function MT(e){return Rs(e,"binary").toString("utf8")}var Qd="foo bar bazâÂÂð£",_t=Xe&&(MT(Qd)==Iv(Qd)&&MT||RT(Qd)==Iv(Qd)&&RT)||Iv,Ec=Xe?function(e){return Rs(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("")},yf=function(){var e={};return function(r,n){var i=r+"|"+(n||"");return e[i]?e[i]:e[i]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+r+">",n||"")}}(),QN=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,` 52`).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),k8=function(){var e={};return function(r){return e[r]!==void 0?e[r]:e[r]=new RegExp("<(?:vt:)?"+r+">([\\s\\S]*?)</(?:vt:)?"+r+">","g")}}(),I8=/<\/?(?:vt:)?variant>/g,N8=/<(?:vt:)([^>]*)>([\s\S]*)</;function DT(e,t){var r=Be(e),n=e.match(k8(r.baseType))||[],i=[];if(n.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+n.length+" != "+r.size);return i}
vendor: 4,808 bytes, line 52
52return n.forEach(function(a){var o=a.replace(I8,"").match(N8);o&&i.push({v:_t(o[2]),t:o[1]})}),i}var O8=/(^\s|\s$|\n)/;function R8(e){return ia(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function M8(e,t,r){return"<"+e+(r!=null?R8(r):"")+(t!=null?(t.match(O8)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function v_(e){if(Xe&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return _t(Ms(c_(e)));throw new Error("Bad input format: expected Buffer or string")}var xf=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,D8={CT:"http://schemas.openxmlformats.org/package/2006/content-types"},F8=["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"];function L8(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,a=5;a>=0;--a)i=i*256+e[t+a];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 $8(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,o=n?-t:t;isFinite(o)?o==0?i=a=0:(i=Math.floor(Math.log(o)/Math.LN2),a=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var s=0;s<=5;++s,a/=256)e[r+s]=a&255;e[r+6]=(i&15)<<4|a&15,e[r+7]=i>>4|n}var FT=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},LT=Xe?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Rs(t)})):FT(e)}:FT,$T=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(xa(e,i)));return n.join("").replace(gn,"")},g_=Xe?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(gn,""):$T(e,t,r)}:$T,BT=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("")},eO=Xe?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):BT(e,t,r)}:BT,UT=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(el(e,i)));return n.join("")},fd=Xe?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):UT(t,r,n)}:UT,tO=function(e,t){var r=Fn(e,t);return r>0?fd(e,t+4,t+4+r-1):""},rO=tO,nO=function(e,t){var r=Fn(e,t);return r>0?fd(e,t+4,t+4+r-1):""},iO=nO,aO=function(e,t){var r=2*Fn(e,t);return r>0?fd(e,t+4,t+4+r-1):""},oO=aO,sO=function(t,r){var n=Fn(t,r);return n>0?g_(t,r+4,r+4+n):""},lO=sO,uO=function(e,t){var r=Fn(e,t);return r>0?fd(e,t+4,t+4+r):""},cO=uO,fO=function(e,t){return L8(e,t)},hh=fO,dO=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Xe&&(rO=function(t,r){if(!Buffer.isBuffer(t))return tO(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},iO=function(t,r){if(!Buffer.isBuffer(t))return nO(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},oO=function(t,r){if(!Buffer.isBuffer(t))return aO(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},lO=function(t,r){if(!Buffer.isBuffer(t))return sO(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},cO=function(t,r){if(!Buffer.isBuffer(t))return uO(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},hh=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):fO(t,r)},dO=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var el=function(e,t){return e[t]},xa=function(e,t){return e[t+1]*256+e[t]},B8=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Fn=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},es=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},U8=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Mc(e,t){var r="",n,i,a=[],o,s,l,u;switch(t){case"dbcs":if(u=this.l,Xe&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(xa(this,u)),u+=2;e*=2;break;case"utf8":r=fd(this,this.l,this.l+e);break;case"utf16le":e*=2,r=g_(this,this.l,this.l+e);break;case"wstr":return Mc.call(this,e,"dbcs");case"lpstr-ansi":r=rO(this,this.l),e=4+Fn(this,this.l);break;case"lpstr-cp":r=iO(this,this.l),e=4+Fn(this,this.l);break;case"lpwstr":r=oO(this,this.l),e=4+2*Fn(this,this.l);break;case"lpp4":e=4+Fn(this,this.l),r=lO(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Fn(this,this.l),r=cO(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(o=el(this,this.l+e++))!==0;)a.push(Zd(o));r=a.join("");break;case"_wstr":for(e=0,r="";(o=xa(this,this.l+e))!==0;)a.push(Zd(o)),e+=2;
52e+=2,r=a.join("");break;case"dbcs-cont":for(r="",u=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=el(this,u),this.l=u+1,s=Mc.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(Zd(xa(this,u))),u+=2}r=a.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 o=el(this,u),this.l=u+1,s=Mc.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(Zd(el(this,u))),u+=1}r=a.join("");break;default:switch(e){case 1:return n=el(this,this.l),this.l++,n;case 2:return n=(t==="i"?B8:xa)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?es:U8)(this,this.l),this.l+=4,n):(i=Fn(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=hh(this,this.l):i=hh([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=eO(this,this.l,e);break}}return this.l+=e,r}var G8=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},V8=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},H8=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function j8(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)H8(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 a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var o=t.charCodeAt(i);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<a;)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,G8(this,t,this.l);break;case 8:if(n=8,r==="f"){$8(this,t,this.l);break}case 16:break;case-4:n=4,V8(this,t,this.l);break}return this.l+=n,this}function hO(e,t){var r=eO(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Ur(e,t){e.l=t,e.read_shift=Mc,e.chk=hO,e.write_shift=j8}function on(e,t){e.l+=t}function hr(e){var t=Co(e);return Ur(t,0),t}function $a(e,t,r){if(e){var n,i,a;Ur(e,e.l||0);for(var o=e.length,s=0,l=0;e.l<o;){s=e.read_shift(1),s&128&&(s=(s&127)+((e.read_shift(1)&127)<<7));var u=xh[s]||xh[65535];for(n=e.read_shift(1),a=n&127,i=1;i<4&&n&128;++i)a+=((n=e.read_shift(1))&127)<<7*i;l=e.l+a;var c=u.f&&u.f(e,a,r);if(e.l=l,t(c,u,s))return}}}function fy(){var e=[],t=Xe?256:2048,r=function(u){var c=hr(u);return Ur(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)},a=function(u){return n&&u<n.length-n.l?n:(i(),n=r(Math.max(u+1,t)))},o=function(){return i(),no(e)},s=function(u){i(),n=u,n.l==null&&(n.l=n.length),a(t)};return{next:a,push:s,end:o,_bufs:e}}function Dc(e,t,r){var n=Vr(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 GT(e,t,r){var n=Vr(e);return n.s=Dc(n.s,t.s,r),n.e=Dc(n.e,t.s,r),n}function Fc(e,t){if(e.cRel&&e.c<0)for(e=Vr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Vr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Ve(e);return!e.cRel&&e.cRel!=null&&(r=q8(r)),!e.rRel&&e.rRel!=null&&(r=z8(r)),r}function Nv(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?"":"$")+vr(e.s.c)+":"+(e.e.cRel?"":"$")+vr(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Hr(e.s.r)+":"+(e.e.rRel?"":"$")+Hr(e.e.r):Fc(e.s,t.biff)+":"+Fc(e.e,t.biff)}function y_(e){return parseInt(W8(e),10)-1}function Hr(e){return""+(e+1)}function z8(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function W8(e){return e.replace(/\$(\d+)$/,"$1")}function x_(e){for(var t=K8(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function vr(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 q8(e){return e.replace(/^([A-Z])/,"$$$1")}
vendor: 4,952 bytes, line 52
52function K8(e){return e.replace(/^\$([A-Z])/,"$1")}function Y8(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function dn(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 Ve(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 Eu(e){var t=e.indexOf(":");return t==-1?{s:dn(e),e:dn(e)}:{s:dn(e.slice(0,t)),e:dn(e.slice(t+1))}}function Ze(e,t){return typeof t>"u"||typeof t=="number"?Ze(e.s,e.e):(typeof e!="string"&&(e=Ve(e)),typeof t!="string"&&(t=Ve(t)),e==t?e:e+":"+t)}function Wt(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,a=e.length;for(r=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===a||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function VT(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=ci(e.z,r?xn(t):t)}catch{}try{return e.w=ci((e.XF||{}).numFmtId||(r?14:0),r?xn(t):t)}catch{return""+t}}function Oa(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"?Ls[e.v]||e.v:t==null?VT(e,e.v):VT(e,t))}function Do(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function pO(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),o=0,s=0;if(a&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?dn(n.origin):n.origin;o=l.r,s=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var c=Wt(a["!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),o==-1&&(u.e.r=o=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 m={v:t[f][d]},g=o+f,v=s+d;if(u.s.r>g&&(u.s.r=g),u.s.c>v&&(u.s.c=v),u.e.r<g&&(u.e.r=g),u.e.c<v&&(u.e.c=v),t[f][d]&&typeof t[f][d]=="object"&&!Array.isArray(t[f][d])&&!(t[f][d]instanceof Date))m=t[f][d];else if(Array.isArray(m.v)&&(m.f=t[f][d][1],m.v=m.v[0]),m.v===null)if(m.f)m.t="n";else if(n.nullError)m.t="e",m.v=0;else if(n.sheetStubs)m.t="z";else continue;else typeof m.v=="number"?m.t="n":typeof m.v=="boolean"?m.t="b":m.v instanceof Date?(m.z=n.dateNF||ze[14],n.cellDates?(m.t="d",m.w=ci(m.z,xn(m.v))):(m.t="n",m.v=xn(m.v),m.w=ci(m.z,m.v))):m.t="s";if(i)a[g]||(a[g]=[]),a[g][v]&&a[g][v].z&&(m.z=a[g][v].z),a[g][v]=m;else{var y=Ve({c:v,r:g});a[y]&&a[y].z&&(m.z=a[y].z),a[y]=m}}}return u.s.c<1e7&&(a["!ref"]=Ze(u)),a}function Tu(e,t){return pO(null,e,t)}function X8(e){return e.read_shift(4,"i")}function nn(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function J8(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function __(e,t){var r=e.l,n=e.read_shift(1),i=nn(e),a=[],o={t:i,h:i};if(n&1){for(var s=e.read_shift(4),l=0;l!=s;++l)a.push(J8(e));o.r=a}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}var Z8=__;function mi(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 Ds(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}var Q8=nn;function w_(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}var e$=nn,dy=w_;function E_(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?hh([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):es(t,0)>>2;return r?i/100:i}function mO(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}var Fs=mO;function en(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function t$(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),o=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=ps[i];u&&(t.rgb=wf(u));break;case 2:t.rgb=wf([o,s,l]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function r$(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 vO(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function n$(e){return vO(e,1)}function i$(e){return vO(e,2)}var T_=2,Tn=3,e0=11,HT=12,ph=19,t0=64,a$=65,o$=71,s$=4108,l$=4126,br=80,gO=81,u$=[br,gO],c$={1:{n:"CodePage",t:T_},2:{n:"Category",t:br},3:{n:"PresentationFormat",t:br}
vendor: 9,317 bytes, line 52
52,4:{n:"ByteCount",t:Tn},5:{n:"LineCount",t:Tn},6:{n:"ParagraphCount",t:Tn},7:{n:"SlideCount",t:Tn},8:{n:"NoteCount",t:Tn},9:{n:"HiddenCount",t:Tn},10:{n:"MultimediaClipCount",t:Tn},11:{n:"ScaleCrop",t:e0},12:{n:"HeadingPairs",t:s$},13:{n:"TitlesOfParts",t:l$},14:{n:"Manager",t:br},15:{n:"Company",t:br},16:{n:"LinksUpToDate",t:e0},17:{n:"CharacterCount",t:Tn},19:{n:"SharedDoc",t:e0},22:{n:"HyperlinksChanged",t:e0},23:{n:"AppVersion",t:Tn,p:"version"},24:{n:"DigSig",t:a$},26:{n:"ContentType",t:br},27:{n:"ContentStatus",t:br},28:{n:"Language",t:br},29:{n:"Version",t:br},255:{},2147483648:{n:"Locale",t:ph},2147483651:{n:"Behavior",t:ph},1919054434:{}},f$={1:{n:"CodePage",t:T_},2:{n:"Title",t:br},3:{n:"Subject",t:br},4:{n:"Author",t:br},5:{n:"Keywords",t:br},6:{n:"Comments",t:br},7:{n:"Template",t:br},8:{n:"LastAuthor",t:br},9:{n:"RevNumber",t:br},10:{n:"EditTime",t:t0},11:{n:"LastPrinted",t:t0},12:{n:"CreatedDate",t:t0},13:{n:"ModifiedDate",t:t0},14:{n:"PageCount",t:Tn},15:{n:"WordCount",t:Tn},16:{n:"CharCount",t:Tn},17:{n:"Thumbnail",t:o$},18:{n:"Application",t:br},19:{n:"DocSecurity",t:Tn},255:{},2147483648:{n:"Locale",t:ph},2147483651:{n:"Behavior",t:ph},1919054434:{}},jT={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},d$=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function h$(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var p$=h$([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]),ps=Vr(p$),Ls={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},yO={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},zT={"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"};function m$(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function v$(e){var t=m$();if(!e||!e.match)return t;var r={};if((e.match(sn)||[]).forEach(function(n){var i=Be(n);switch(i[0].replace(S8,"<")){case"<?xml":break;case"<Types":t.xmlns=i["xmlns"+(i[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[i.Extension]=i.ContentType;break;case"<Override":t[zT[i.ContentType]]!==void 0&&t[zT[i.ContentType]].push(i.PartName);break}}),t.xmlns!==D8.CT)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}var hl
vendor: 2,399 bytes, line 52
52={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",
vendor: 9,150 bytes, line 52
52VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function hy(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Lc(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var n={};return(e.match(sn)||[]).forEach(function(i){var a=Be(i);if(a[0]==="<Relationship"){var o={};o.Type=a.Type,o.Target=a.Target,o.Id=a.Id,a.TargetMode&&(o.TargetMode=a.TargetMode);var s=a.TargetMode==="External"?a.Target:wc(a.Target,t);r[s]=o,n[a.Id]=o}}),r["!id"]=n,r}var g$="application/vnd.oasis.opendocument.spreadsheet";function y$(e,t){for(var r=v_(e),n,i;n=xf.exec(r);)switch(n[3]){case"manifest":break;case"file-entry":if(i=Be(n[0],!1),i.path=="/"&&i.type!==g$)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}var $c=[["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"]],x$=function(){for(var e=new Array($c.length),t=0;t<$c.length;++t){var r=$c[t],n="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return e}();function xO(e){var t={};e=_t(e);for(var r=0;r<$c.length;++r){var n=$c[r],i=e.match(x$[r]);i!=null&&i.length>0&&(t[n[1]]=rt(i[1])),n[2]==="date"&&t[n[1]]&&(t[n[1]]=Or(t[n[1]]))}return t}var _$=[["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"]];function _O(e,t,r,n){var i=[];if(typeof e=="string")i=DT(e,n);else for(var a=0;a<e.length;++a)i=i.concat(e[a].map(function(c){return{v:c}}));var o=typeof t=="string"?DT(t,n).map(function(c){return c.v}):t,s=0,l=0;if(o.length>0)for(var u=0;u!==i.length;u+=2){switch(l=+i[u+1].v,i[u].v){case"Worksheets":case"å·¥ä½è¡¨":case"ÐиÑÑÑ":case"Ø£ÙØ±Ø§Ù Ø§ÙØ¹Ù
Ù":case"ã¯ã¼ã¯ã·ã¼ã":case"××××× ×ת ×¢××××":case"Arbeitsblätter":case"ÃalıÅma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=l,r.SheetNames=o.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"ååä»ãä¸è¦§":case"Benannte Bereiche":case"Navngivne omrÃ¥der":r.NamedRanges=l,r.DefinedNames=o.slice(s,s+l);break;case"Charts":case"Diagramme":r.Chartsheets=l,r.ChartNames=o.slice(s,s+l);break}s+=l}}function w$(e,t,r){var n={};return t||(t={}),e=_t(e),_$.forEach(function(i){var a=(e.match(yf(i[0]))||[])[1];switch(i[2]){case"string":a&&(t[i[1]]=rt(a));break;case"bool":t[i[1]]=a==="true";break;case"raw":var o=e.match(new RegExp("<"+i[0]+"[^>]*>([\\s\\S]*?)</"+i[0]+">"));o&&o.length>0&&(n[i[1]]=o[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&_O(n.HeadingPairs,n.TitlesOfParts,t,r),t}var E$=/<[^>]+>[^<]*/g;function T$(e,t){var r={},n="",i=e.match(E$);if(i)for(var a=0;a!=i.length;++a){var o=i[a],s=Be(o);switch(s[0]){case"<?xml":break;case"<Properties":break;case"<property":n=rt(s.name);break;case"</property>":n=null;break;default:if(o.indexOf("<vt:")===0){var l=o.split(">"),u=l[0].slice(4),c=l[1];switch(u){case"lpstr":case"bstr":case"lpwstr":r[n]=rt(c);break;case"bool":r[n]=Rt(c);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(c,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(c);break;case"filetime":case"date":r[n]=Or(c);break;case"cy":case"error":r[n]=rt(c);break;default:if(u.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",o,u,l)}}else if(o.slice(0,2)!=="</"){if(t.WTF)throw new Error(o)}}}return r}var S$={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"},Ov;function A$(e,t,r){Ov||(Ov=h_(S$)),t=Ov[t]||t,e[t]=r}function S_(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function wO(e,t,r){var n=e.l,i=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return i}function EO(e,t,r){var n=e.read_shift(0,"lpwstr");return n}function TO(e,t,r){return t===31?EO(e):wO(e,t,r)}function py(e,t,r){return TO(e,t,r===!1?0:4)}function b$(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return TO(e,t,0)}function C$(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var i=e.l;r[n]=e.read_shift(0,"lpwstr").replace(gn,""),e.l-i&2&&(e.l+=2)}return r}function P$(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(gn,"");return r}function k$(e){var t=e.l,r=mh(e,gO);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var n=mh(e,Tn);return[r,n]}function I$(e){for(var t=e.read_shift(4),r=[],n=0;n<t/2;++n)r.push(k$(e));return r}function WT(e,t){for(var r=e.read_shift(4),n={},i=0;i!=r;++i){var a=e.read_shift(4),o=e.read_shift(4);n[a]=e.read_shift(o,t===1200?"utf16le":"utf8").replace(gn,"").replace(_c,"!"),t===1200&&o%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>3<<2),n}function SO(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function N$(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function mh(e,t,r){var n=e.read_shift(2),i,a=r||{};if(e.l+=2,t!==HT&&n!==t&&u$.indexOf(t)===-1&&!((t&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+t+" saw "+n);switch(t===HT?n:t){case 2:return i=e.read_shift(2,"i"),a.raw||(e.l+=2),i;case 3:return i=e.read_shift(4,"i"),i;case 11:return e.read_shift(4)!==0;case 19:return i=e.read_shift(4),i;case 30:return wO(e,n,4).replace(gn,"");case 31:return EO(e);case 64:return S_(e);case 65:return SO(e);case 71:return N$(e);case 80:return py(e,n,!a.raw).replace(gn,"");case 81:return b$(e,n).replace(gn,"");case 4108:return I$(e);case 4126:case 4127:return n==4127?C$(e):P$(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function qT(e,t){var r=e.l,n=e.read_shift(4),i=e.read_shift(4),a=[],o=0,s=0,l=-1,u={};for(o=0;o!=i;++o){var c=e.read_shift(4),f=e.read_shift(4);a[o]=[c,f+r]}a.sort(function(w,_){return w[1]-_[1]});var d={};for(o=0;o!=i;++o){if(e.l!==a[o][1]){var m=!0;if(o>0&&t)switch(t[a[o-1][0]].t){case 2:e.l+2===a[o][1]&&(e.l+=2,m=!1);break;case 80:e.l<=a[o][1]&&(e.l=a[o][1],m=!1);break;case 4108:e.l<=a[o][1]&&(e.l=a[o][1],m=!1);break}if((!t||o==0)&&e.l<=a[o][1]&&(m=!1,e.l=a[o][1]),m)throw new Error("Read Error: Expected address "+a[o][1]+" at "+e.l+" :"+o)}if(t){var g=t[a[o][0]];if(d[g.n]=mh(e,g.t,{raw:!0}),g.p==="version"&&(d[g.n]=String(d[g.n]>>16)+"."+("0000"+String(d[g.n]&65535)).slice(-4)),g.n=="CodePage")switch(d[g.n]){case 0:d[g.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Ni(s=d[g.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[g.n])}}else if(a[o][0]===1){if(s=d.CodePage=mh(e,T_),Ni(s),l!==-1){var v=e.l;e.l=a[l][1],u=WT(e,s),e.l=v}}else if(a[o][0]===0){if(s===0){l=o,e.l=a[o+1][1];continue}u=WT(e,s)}else{var y=u[a[o][0]],x;switch(e[e.l]){case 65:e.l+=4,x=SO(e);break;case 30:e.l+=4,x=py(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,x=py(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,x=e.read_shift(4,"i");break;case 19:e.l+=4,x=e.read_shift(4);break;case 5:e.l+=4,x=e.read_shift(8,"f");break;case 11:e.l+=4,x=qt(e,4);break;case 64:e.l+=4,x=Or(S_(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[y]=x}}return e.l=r+n,d}function KT(e,t,r){var n=e.content;if(!n)return{};Ur(n,0);var i,a,o,s,l=0;n.chk("feff","Byte Order: "),n.read_shift(2);var u=n.read_shift(4),c=n.read_shift(16);if(c!==Je.utils.consts.HEADER_CLSID&&c!==r)throw new Error("Bad PropertySet CLSID "+c);if(i=n.read_shift(4),i!==1&&i!==2)throw new Error("Unrecognized #Sets: "+i);if(a=n.read_shift(16),s=n.read_shift(4),i===1&&s!==n.l)throw new Error("Length mismatch: "+s+" !== "+n.l);i===2&&(o=n.read_shift(16),l=n.read_shift(4));var f=qT(n,t),d={SystemIdentifier:u};for(var m in f)d[m]=f[m];if(d.FMTID=a,i===1)return d;if(l-n.l==2&&(n.l+=2),n.l!==l)throw new Error("Length mismatch 2: "+n.l+" !== "+l);var g;
52try{g=qT(n,null)}catch{}for(m in g)d[m]=g[m];return d.FMTID=[a,o],d}function Ya(e,t){return e.read_shift(t),null}function O$(e,t,r){for(var n=[],i=e.l+t;e.l<i;)n.push(r(e,i-e.l));if(i!==e.l)throw new Error("Slurp error");return n}function qt(e,t){return e.read_shift(t)===1}function er(e){return e.read_shift(2,"u")}function AO(e,t){return O$(e,t,er)}function R$(e){var t=e.read_shift(1),r=e.read_shift(1);return r===1?t:t===1}function dd(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 a=e.read_shift(1);a&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var o=n?e.read_shift(n,i):"";return o}function M$(e){var t=e.read_shift(2),r=e.read_shift(1),n=r&4,i=r&8,a=1+(r&1),o=0,s,l={};i&&(o=e.read_shift(2)),n&&(s=e.read_shift(4));var u=a==2?"dbcs-cont":"sbcs-cont",c=t===0?"":e.read_shift(t,u);return i&&(e.l+=4*o),n&&(e.l+=s),l.t=c,i||(l.raw="<t>"+l.t+"</t>",l.r=l.t),l}function As(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 hd(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):As(e,n,r)}function $s(e,t,r){if(r.biff>5)return hd(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 D$(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function F$(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),e.l=r);var i=e.read_shift((n?t-24:t)>>1,"utf16le").replace(gn,"");return n&&(e.l+=24),i}function L$(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var i=e.read_shift(4);if(i===0)return r+n.replace(/\\/g,"/");var a=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=e.read_shift(a>>1,"utf16le").replace(gn,"");return r+o}function $$(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return F$(e);case"0303000000000000c000000000000046":return L$(e);default:throw new Error("Unsupported Moniker "+r)}}function r0(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(gn,""):"";return r}function B$(e,t){var r=e.l+t,n=e.read_shift(4);if(n!==2)throw new Error("Unrecognized streamVersion: "+n);var i=e.read_shift(2);e.l+=2;var a,o,s,l,u="",c,f;i&16&&(a=r0(e,r-e.l)),i&128&&(o=r0(e,r-e.l)),(i&257)===257&&(s=r0(e,r-e.l)),(i&257)===1&&(l=$$(e,r-e.l)),i&8&&(u=r0(e,r-e.l)),i&32&&(c=e.read_shift(16)),i&64&&(f=S_(e)),e.l=r;var d=o||s||l||"";d&&u&&(d+="#"+u),d||(d="#"+u),i&2&&d.charAt(0)=="/"&&d.charAt(1)!="/"&&(d="file://"+d);var m={Target:d};return c&&(m.guid=c),f&&(m.time=f),a&&(m.Tooltip=a),m}function bO(e){var t=e.read_shift(1),r=e.read_shift(1),n=e.read_shift(1),i=e.read_shift(1);return[t,r,n,i]}function CO(e,t){var r=bO(e);return r[3]=0,r}function sa(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return{r:t,c:r,ixfe:n}}function U$(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}function G$(e,t,r){return t===0?"":$s(e,t,r)}function V$(e,t,r){var n=r.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),o=e.read_shift(n,"i");return[i,a,o]}function PO(e){var t=e.read_shift(2),r=E_(e);return[t,r]}function H$(e,t,r){e.l+=4,t-=4;var n=e.l+t,i=dd(e,t,r),a=e.read_shift(2);if(n-=e.l,a!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+a);return e.l+=a,i}function Xp(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 kO(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),i=e.read_shift(1);return{s:{c:n,r:t},e:{c:i,r}}}var j$=kO;function IO(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function z$(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function W$(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function Yr(e){e.l+=2,e.l+=e.read_shift(2)}var q$={0:Yr,4:Yr,5:Yr,6:Yr,7:W$,8:Yr,9:Yr,10:Yr,11:Yr,12:Yr,13:z$,14:Yr,15:Yr,16:Yr,17:Yr,18:Yr,19:Yr,20:Yr,21:IO};function K$(e,t){for(var r=e.l+t,n=[];e.l<r;){var i=e.read_shift(2);e.l-=2;try{n.push(q$[i](e,r-e.l))}catch{return e.l=r,n}}return e.l!=r&&(e.l=r),n}function n0(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),t-=2,t>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function Y$(e,t){return t===0||e.read_shift(2),1200}
vendor: 4,997 bytes, line 52
52function X$(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,i=$s(e,0,r);return e.read_shift(t+n-e.l),i}function J$(e,t,r){var n=r&&r.biff==8||t==2?e.read_shift(2):(e.l+=t,0);return{fDialog:n&16,fBelow:n&64,fRight:n&128}}function Z$(e,t,r){var n=e.read_shift(4),i=e.read_shift(1)&3,a=e.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule";break}var o=dd(e,0,r);return o.length===0&&(o="Sheet1"),{pos:n,hs:i,dt:a,name:o}}function Q$(e,t){for(var r=e.l+t,n=e.read_shift(4),i=e.read_shift(4),a=[],o=0;o!=i&&e.l<r;++o)a.push(M$(e));return a.Count=n,a.Unique=i,a}function e6(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}function t6(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var n=e.read_shift(1);return e.l+=3,n&7&&(t.level=n&7),n&32&&(t.hidden=!0),n&64&&(t.hpt=r/20),t}function r6(e){var t=U$(e);if(t.type!=2211)throw new Error("Invalid Future Record "+t.type);var r=e.read_shift(4);return r!==0}function n6(e){return e.read_shift(2),e.read_shift(4)}function YT(e,t,r){var n=0;r&&r.biff==2||(n=e.read_shift(2));var i=e.read_shift(2);r&&r.biff==2&&(n=1-(i>>15),i&=32767);var a={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[a,i]}function i6(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2),o=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),u=e.read_shift(2);return{Pos:[t,r],Dim:[n,i],Flags:a,CurTab:o,FirstTab:s,Selected:l,TabRatio:u}}function a6(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function o6(){}function s6(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return n.name=dd(e,0,r),n}function l6(e){var t=sa(e);return t.isst=e.read_shift(4),t}function u6(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+t,i=sa(e);r.biff==2&&e.l++;var a=hd(e,n-e.l,r);return i.val=a,i}function c6(e,t,r){var n=e.read_shift(2),i=$s(e,0,r);return[n,i]}var f6=$s;function XT(e,t,r){var n=e.l+t,i=r.biff==8||!r.biff?4:2,a=e.read_shift(i),o=e.read_shift(i),s=e.read_shift(2),l=e.read_shift(2);return e.l=n,{s:{r:a,c:s},e:{r:o,c:l}}}function d6(e){var t=e.read_shift(2),r=e.read_shift(2),n=PO(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}function h6(e,t){for(var r=e.l+t-2,n=e.read_shift(2),i=e.read_shift(2),a=[];e.l<r;)a.push(PO(e));if(e.l!==r)throw new Error("MulRK read error");var o=e.read_shift(2);if(a.length!=o-i+1)throw new Error("MulRK length mismatch");return{r:n,c:i,C:o,rkrec:a}}function p6(e,t){for(var r=e.l+t-2,n=e.read_shift(2),i=e.read_shift(2),a=[];e.l<r;)a.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var o=e.read_shift(2);if(a.length!=o-i+1)throw new Error("MulBlank length mismatch");return{r:n,c:i,C:o,ixfe:a}}function m6(e,t,r,n){var i={},a=e.read_shift(4),o=e.read_shift(4),s=e.read_shift(4),l=e.read_shift(2);return i.patternType=d$[s>>26],n.cellStyles&&(i.alc=a&7,i.fWrap=a>>3&1,i.alcV=a>>4&7,i.fJustLast=a>>7&1,i.trot=a>>8&255,i.cIndent=a>>16&15,i.fShrinkToFit=a>>20&1,i.iReadOrder=a>>22&2,i.fAtrNum=a>>26&1,i.fAtrFnt=a>>27&1,i.fAtrAlc=a>>28&1,i.fAtrBdr=a>>29&1,i.fAtrPat=a>>30&1,i.fAtrProt=a>>31&1,i.dgLeft=o&15,i.dgRight=o>>4&15,i.dgTop=o>>8&15,i.dgBottom=o>>12&15,i.icvLeft=o>>16&127,i.icvRight=o>>23&127,i.grbitDiag=o>>30&3,i.icvTop=s&127,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=l&127,i.icvBack=l>>7&127,i.fsxButton=l>>14&1),i}function v6(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,t-=6,n.data=m6(e,t,n.fStyle,r),n}function g6(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function JT(e,t,r){var n=sa(e);(r.biff==2||t==9)&&++e.l;var i=R$(e);return n.val=i,n.t=i===!0||i===!1?"b":"e",n}function y6(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=sa(e),i=en(e);return n.val=i,n}var ZT=G$;function x6(e,t,r){var n=e.l+t,i=e.read_shift(2),a=e.read_shift(2);if(r.sbcch=a,a==1025||a==14849)return[a,i];if(a<1||a>255)throw new Error("Unexpected SupBook type: "+a);for(var o=As(e,a),s=[];n>e.l;)s.push(hd(e));return[a,i,o,s]}function QT(e,t,r){var n=e.read_shift(2),i,a={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return r.sbcch===14849&&(i=H$(e,t-2,r)),a.body=i||e.read_shift(t-2),typeof i=="string"&&(a.Name=i),a}var _6=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function eS(e,t,r){var n=e.l+t,i=e.read_shift(2),a=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(r&&r.biff==2?1:2),l=0;(!r||r.biff>
vendor: 12,145 bytes, line 52
52=5)&&(r.biff!=5&&(e.l+=2),l=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var u=As(e,o,r);i&32&&(u=_6[u.charCodeAt(0)]);var c=n-e.l;r&&r.biff==2&&--c;var f=n==e.l||s===0||!(c>0)?[]:t9(e,c,r,s);return{chKey:a,Name:u,itab:l,rgce:f}}function NO(e,t,r){if(r.biff<8)return w6(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(V$(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function w6(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=dd(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function E6(e,t,r){if(r.biff<8){e.l+=t;return}var n=e.read_shift(2),i=e.read_shift(2),a=As(e,n,r),o=As(e,i,r);return[a,o]}function T6(e,t,r){var n=kO(e);e.l++;var i=e.read_shift(1);return t-=8,[r9(e,t,r),i,n]}function tS(e,t,r){var n=j$(e);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,Q7(e,t,r)]}function S6(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[t,r,n]}function A6(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2),o=e.read_shift(2),s=$s(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:i},s,o,a]}}function b6(e,t,r){return A6(e,t,r)}function C6(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(Xp(e));return r}function P6(e,t,r){if(r&&r.biff<8)return I6(e,t,r);var n=IO(e),i=K$(e,t-22,n[1]);return{cmo:n,ft:i}}var k6={8:function(e,t){var r=e.l+t;e.l+=10;var n=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=r,{fmt:n}}};function I6(e,t,r){e.l+=4;var n=e.read_shift(2),i=e.read_shift(2),a=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var o=[];return o.push((k6[n]||on)(e,t,r)),{cmo:[i,n,a],ft:o}}function N6(e,t,r){var n=e.l,i="";try{e.l+=4;var a=(r.lastobj||{cmo:[0,0]}).cmo[1],o;[0,5,7,11,12,14].indexOf(a)==-1?e.l+=6:o=D$(e,6,r);var s=e.read_shift(2);e.read_shift(2),er(e,2);var l=e.read_shift(2);e.l+=l;for(var u=1;u<e.lens.length-1;++u){if(e.l-n!=e.lens[u])throw new Error("TxO: bad continue record");var c=e[e.l],f=As(e,e.lens[u+1]-e.lens[u]-1);if(i+=f,i.length>=(c?s:2*s))break}if(i.length!==s&&i.length!==s*2)throw new Error("cchText: "+s+" != "+i.length);return e.l=n+t,{t:i}}catch{return e.l=n+t,{t:i}}}function O6(e,t){var r=Xp(e);e.l+=16;var n=B$(e,t-24);return[r,n]}function R6(e,t){e.read_shift(2);var r=Xp(e),n=e.read_shift((t-10)/2,"dbcs-cont");return n=n.replace(gn,""),[r,n]}function M6(e){var t=[0,0],r;return r=e.read_shift(2),t[0]=jT[r]||r,r=e.read_shift(2),t[1]=jT[r]||r,t}function D6(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(CO(e));return r}function F6(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(CO(e));return r}function L6(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function OO(e,t,r){if(!r.cellStyles)return on(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var u={s:i,e:a,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(u.level=l>>8&7),u}function $6(e,t){var r={};return t<32||(e.l+=16,r.header=en(e),r.footer=en(e),e.l+=2),r}function B6(e,t,r){var n={area:!1};if(r.biff!=5)return e.l+=t,n;var i=e.read_shift(1);return e.l+=3,i&16&&(n.area=!0),n}var U6=sa,G6=AO,V6=hd;function H6(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i={fmt:t,env:r,len:n,data:e.slice(e.l,e.l+n)};return e.l+=n,i}function j6(e,t,r){r.biffguess&&r.biff==5&&(r.biff=2);var n=sa(e);++e.l;var i=$s(e,t-7,r);return n.t="str",n.val=i,n}function z6(e){var t=sa(e);++e.l;var r=en(e);return t.t="n",t.val=r,t}function W6(e){var t=sa(e);++e.l;var r=e.read_shift(2);return t.t="n",t.val=r,t}function q6(e){var t=e.read_shift(1);return t===0?(e.l++,""):e.read_shift(t,"sbcs-cont")}function K6(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function Y6(e,t,r){var n=e.l+t,i=sa(e),a=e.read_shift(2),o=As(e,a,r);return e.l=n,i.t="str",i.val=o,i}var X6=[2,3,48,49,131,139,140,245],rS=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=h_({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=Co(1);switch(l.type){case"base64":c=ki(Hn(s));break;case"binary":c=ki(s);break;case"buffer":case"array":c=s;break}Ur(c,0);var f=c.read_shift(1),d=!!(f&136),m=!1,g=!1;switch(f){case 2:break;case 3:break;case 48:m=!0,d=!0;break;case 49:m=!0,d=!0;break;case 131:break;case 139:break;case 140:g=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var v=0,y=521;f==2&&(v=c.read_shift(2)),c.l+=3,f!=2&&(v=c.read_shift(4)),v>1048576&&(v=1e6),f!=2&&(y=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),g&&(c.l+=36);for(var _=[],S={},T=Math.min(c.length,f==2?521:y-10-(m?264:0)),E=g?32:11;c.l<T&&c[c.l]!=13;)switch(S={},S.name=vf.utils.decode(w,c.slice(c.l,c.l+E)).replace(/[\u0000\r\n].*$/g,""),c.l+=E,S.type=String.fromCharCode(c.read_shift(1)),f!=2&&!g&&(S.offset=c.read_shift(4)),S.len=c.read_shift(1),f==2&&(S.offset=c.read_shift(2)),S.dec=c.read_shift(1),S.name.length&&_.push(S),f!=2&&(c.l+=g?13:14),S.type){case"B":(!m||S.len!=8)&&l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+S.name+":"+S.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+S.type)}if(c[c.l]!==13&&(c.l=y-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=y;var A=0,P=0;for(u[0]=[],P=0;P!=_.length;++P)u[0][P]=_[P].name;for(;v-- >0;){if(c[c.l]===42){c.l+=x;continue}for(++c.l,u[++A]=[],P=0,P=0;P!=_.length;++P){var C=c.slice(c.l,c.l+_[P].len);c.l+=_[P].len,Ur(C,0);var N=vf.utils.decode(w,C);switch(_[P].type){case"C":N.trim().length&&(u[A][P]=N.replace(/\s+$/,""));break;case"D":N.length===8?u[A][P]=new Date(+N.slice(0,4),+N.slice(4,6)-1,+N.slice(6,8)):u[A][P]=N;break;case"F":u[A][P]=parseFloat(N.trim());break;case"+":case"I":u[A][P]=g?C.read_shift(-4,"i")^2147483648:C.read_shift(4,"i");break;case"L":switch(N.trim().toUpperCase()){case"Y":case"T":u[A][P]=!0;break;case"N":case"F":u[A][P]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+N+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));u[A][P]="##MEMO##"+(g?parseInt(N.trim(),10):C.read_shift(4));break;case"N":N=N.replace(/\u0000/g,"").trim(),N&&N!="."&&(u[A][P]=+N||0);break;case"@":u[A][P]=new Date(C.read_shift(-8,"f")-621356832e5);break;case"T":u[A][P]=new Date((C.read_shift(4)-2440588)*864e5+C.read_shift(4));break;case"Y":u[A][P]=C.read_shift(4,"i")/1e4+C.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[A][P]=-C.read_shift(-8,"f");break;case"B":if(m&&_[P].len==8){u[A][P]=C.read_shift(8,"f");break}case"G":case"P":C.l+=_[P].len;break;case"0":if(_[P].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+_[P].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=_,u}function n(s,l){var u=l||{};u.dateNF||(u.dateNF="yyyymmdd");var c=Tu(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 Do(n(s,l),l)}catch(u){if(l&&l.WTF)throw u}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var u=l||{};if(+u.codepage>=0&&Ni(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var c=fy(),f=wy(s,{header:1,raw:!0,cellDates:!0}),d=f[0],m=f.slice(1),g=s["!cols"]||[],v=0,y=0,x=0,w=1;for(v=0;v<d.length;++v){if(((g[v]||{}).DBF||{}).name){d[v]=g[v].DBF.name,++x;continue}if(d[v]!=null){if(++x,typeof d[v]=="number"&&(d[v]=d[v].toString(10)),typeof d[v]!="string")throw new Error("DBF Invalid column name "+d[v]+" |"+typeof d[v]+"|");if(d.indexOf(d[v])!==v){for(y=0;y<1024;++y)if(d.indexOf(d[v]+"_"+y)==-1){d[v]+="_"+y;break}}}}var _=Wt(s["!ref"]),S=[],T=[],E=[];for(v=0;v<=_.e.c-_.s.c;++v){var A="",P="",C=0,N=[];for(y=0;y<m.length;++y)m[y][v]!=null&&N.push(m[y][v]);if(N.length==0||d[v]==null){S[v]="?";continue}for(y=0;y<N.length;++y){switch(typeof N[y]){case"number":P="B";break;case"string":P="C";break;case"boolean":P="L";break;case"object":P=N[y]instanceof Date?"D":"C";break;default:P="C"}C=Math.max(C,String(N[y]).length),A=A&&A!=P?"C":P}C>250&&(C=250),P=((g[v]||{}).DBF||{}).type,P=="C"&&g[v].DBF.len>C&&(C=g[v].DBF.len),A=="B"&&P=="N"&&(A="N",E[v]=g[v].DBF.dec,C=g[v].DBF.len),T[v]=A=="C"||P=="N"?C:a[A]||0,w+=T[v],S[v]=A}var M=c.next(32);for(M.write_shift(4,318902576),M.write_shift(4,m.length),M.write_shift(2,296+32*x),M.write_shift(2,w),v=0;v<4;++v)M.write_shift(4,0);for(M.write_shift(4,0|(+t[NN]||3)<<8),v=0,y=0;v<d.length;++v)if(d[v]!=null){var k=c.next(32),H=(d[v].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);k.write_shift(1,H,"sbcs"),k.write_shift(1,S[v]=="?"?"C":S[v],"sbcs"),k.write_shift(4,y),k.write_shift(1,T[v]||a[S[v]]||0),k.write_shift(1,E[v]||0),k.write_shift(1,2),k.write_shift(4,0),k.write_shift(1,0),k.write_shift(4,0),k.write_shift(4,0),y+=T[v]||a[S[v]]||0}var K=c.next(264);for(K.write_shift(4,13),v=0;v<65;++v)K.write_shift(4,0);for(v=0;v<m.length;++v){var U=c.next(w);for(U.write_shift(1,0),y=0;y<d.length;++y)if(d[y]!=null)switch(S[y]){case"L":U.write_shift(1,m[v][y]==null?63:m[v][y]?84:70);break;case"B":U.write_shift(8,m[v][y]||0,"f");break;case"N":var Y="0";for(typeof m[v][y]=="number"&&(Y=m[v][y].toFixed(E[y]||0)),x=0;x<T[y]-Y.length;++x)U.write_shift(1,32);U.write_shift(1,Y,"sbcs");break;case"D":m[v][y]?(U.write_shift(4,("0000"+m[v][y].getFullYear()).slice(-4),"sbcs"),U.write_shift(2,("00"+(m[v][y].getMonth()+1)).slice(-2),"sbcs"),U.write_shift(2,("00"+m[v][y].getDate()).slice(-2),"sbcs")):U.write_shift(8,"00000000","sbcs");break;case"C":var W=String(m[v][y]!=null?m[v][y]:"").slice(0,T[y]);for(U.write_shift(1,W,"sbcs"),x=0;x<T[y]-W.length;++x)U.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:i,to_sheet:n,from_sheet:o}}(),J6=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("+ia(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,m){var g=e[m];return typeof g=="number"?yT(g):g},n=function(d,m,g){var v=m.charCodeAt(0)-32<<4|g.charCodeAt(0)-48;return v==59?d:yT(v)};e["|"]=254;function i(d,m){switch(m.type){case"base64":return a(Hn(d),m);case"binary":return a(d,m);case"buffer":return a(Xe&&Buffer.isBuffer(d)?d.toString("binary"):Ms(d),m);case"array":return a(Ss(d),m)}throw new Error("Unrecognized type "+m.type)}function a(d,m){var g=d.split(/[\n\r]+/),v=-1,y=-1,x=0,w=0,_=[],S=[],T=null,E={},A=[],P=[],C=[],N=0,M;for(+m.codepage>=0&&Ni(+m.codepage);x!==g.length;++x){N=0;
vendor: 9,165 bytes, lines 52-65
52var k=g[x].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),H=k.replace(/;;/g,"\0").split(";").map(function(z){return z.replace(/\u0000/g,";")}),K=H[0],U;if(k.length>0)switch(K){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":H[1].charAt(0)=="P"&&S.push(k.slice(3).replace(/;;/g,";"));break;case"C":var Y=!1,W=!1,J=!1,F=!1,ee=-1,le=-1;for(w=1;w<H.length;++w)switch(H[w].charAt(0)){case"A":break;case"X":y=parseInt(H[w].slice(1))-1,W=!0;break;case"Y":for(v=parseInt(H[w].slice(1))-1,W||(y=0),M=_.length;M<=v;++M)_[M]=[];break;case"K":U=H[w].slice(1),U.charAt(0)==='"'?U=U.slice(1,U.length-1):U==="TRUE"?U=!0:U==="FALSE"?U=!1:isNaN(Di(U))?isNaN(Vl(U).getDate())||(U=Or(U)):(U=Di(U),T!==null&&wu(T)&&(U=Yp(U))),Y=!0;break;case"E":F=!0;var R=Pl(H[w].slice(1),{r:v,c:y});_[v][y]=[_[v][y],R];break;case"S":J=!0,_[v][y]=[_[v][y],"S5S"];break;case"G":break;case"R":ee=parseInt(H[w].slice(1))-1;break;case"C":le=parseInt(H[w].slice(1))-1;break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+k)}if(Y&&(_[v][y]&&_[v][y].length==2?_[v][y][0]=U:_[v][y]=U,T=null),J){if(F)throw new Error("SYLK shared formula cannot have own formula");var X=ee>-1&&_[ee][le];if(!X||!X[1])throw new Error("SYLK shared formula cannot find base");_[v][y][1]=VO(X[1],{r:v-ee,c:y-le})}break;case"F":var q=0;for(w=1;w<H.length;++w)switch(H[w].charAt(0)){case"X":y=parseInt(H[w].slice(1))-1,++q;break;case"Y":for(v=parseInt(H[w].slice(1))-1,M=_.length;M<=v;++M)_[M]=[];break;case"M":N=parseInt(H[w].slice(1))/20;break;case"F":break;case"G":break;case"P":T=S[parseInt(H[w].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(C=H[w].slice(1).split(" "),M=parseInt(C[0],10);M<=parseInt(C[1],10);++M)N=parseInt(C[2],10),P[M-1]=N===0?{hidden:!0}:{wch:N},Hl(P[M-1]);break;case"C":y=parseInt(H[w].slice(1))-1,P[y]||(P[y]={});break;case"R":v=parseInt(H[w].slice(1))-1,A[v]||(A[v]={}),N>0?(A[v].hpt=N,A[v].hpx=Ef(N)):N===0&&(A[v].hidden=!0);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+k)}q<1&&(T=null);break;default:if(m&&m.WTF)throw new Error("SYLK bad record "+k)}}return A.length>0&&(E["!rows"]=A),P.length>0&&(E["!cols"]=P),m&&m.sheetRows&&(_=_.slice(0,m.sheetRows)),[_,E]}function o(d,m){var g=i(d,m),v=g[0],y=g[1],x=Tu(v,m);return ia(y).forEach(function(w){x[w]=y[w]}),x}function s(d,m){return Do(o(d,m),m)}function l(d,m,g,v){var y="C;Y"+(g+1)+";X"+(v+1)+";K";switch(d.t){case"n":y+=d.v||0,d.f&&!d.F&&(y+=";E"+LU(d.f,{r:g,c:v}));break;case"b":y+=d.v?"TRUE":"FALSE";break;case"e":y+=d.w||d.v;break;case"d":y+='"'+(d.w||d.v)+'"';break;case"s":y+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return y}function u(d,m){m.forEach(function(g,v){var y="F;W"+(v+1)+" "+(v+1)+" ";g.hidden?y+="0":(typeof g.width=="number"&&!g.wpx&&(g.wpx=gh(g.width)),typeof g.wpx=="number"&&!g.wch&&(g.wch=yh(g.wpx)),typeof g.wch=="number"&&(y+=Math.round(g.wch))),y.charAt(y.length-1)!=" "&&d.push(y)})}function c(d,m){m.forEach(function(g,v){var y="F;";g.hidden?y+="M0;":g.hpt?y+="M"+20*g.hpt+";":g.hpx&&(y+="M"+20*BO(g.hpx)+";"),y.length>2&&d.push(y+"R"+(v+1))})}function f(d,m){var g=["ID;PWXL;N;E"],v=[],y=Wt(d["!ref"]),x,w=Array.isArray(d),_=`\r 53`;g.push("P;PGeneral"),g.push("F;P0;DG0G8;M255"),d["!cols"]&&u(g,d["!cols"]),d["!rows"]&&c(g,d["!rows"]),g.push("B;Y"+(y.e.r-y.s.r+1)+";X"+(y.e.c-y.s.c+1)+";D"+[y.s.c,y.s.r,y.e.c,y.e.r].join(" "));for(var S=y.s.r;S<=y.e.r;++S)for(var T=y.s.c;T<=y.e.c;++T){var E=Ve({r:S,c:T});x=w?(d[S]||[])[T]:d[E],!(!x||x.v==null&&(!x.f||x.F))&&v.push(l(x,d,S,T))}return g.join(_)+_+v.join(_)+_+"E"+_}return{to_workbook:s,to_sheet:o,from_sheet:f}}(),Z6=function(){function e(a,o){switch(o.type){case"base64":return t(Hn(a),o);case"binary":return t(a,o);case"buffer":return t(Xe&&Buffer.isBuffer(a)?a.toString("binary"):Ms(a),o);case"array":return t(Ss(a),o)}throw new Error("Unrecognized type "+o.type)}function t(a,o){for(var s=a.split(` 54`),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(","),m=d[0],g=d[1];++c;for(var v=s[c]||"";(v.match(/["]/g)||[]).length&1&&c<s.length-1;)v+=` 55`+s[++c];switch(v=v.trim(),+m){case-1:if(v==="BOT"){f[++l]=[],u=0;continue}else if(v!=="EOD")throw new Error("Unrecognized DIF special command "+v);break;case 0:v==="TRUE"?f[l][u]=!0:v==="FALSE"?f[l][u]=!1:isNaN(Di(g))?isNaN(Vl(g).getDate())?f[l][u]=g:f[l][u]=Or(g):f[l][u]=Di(g),++u;break;case 1:v=v.slice(1,v.length-1),v=v.replace(/""/g,'"'),v&&v.match(/^=".*"$/)&&(v=v.slice(2,-1)),f[l][u++]=v!==""?v:null;break}if(v==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(a,o){return Tu(e(a,o),o)}function n(a,o){return Do(r(a,o),o)}var i=function(){var a=function(l,u,c,f,d){l.push(u),l.push(c+","+f),l.push('"'+d.replace(/"/g,'""')+'"')},o=function(l,u,c,f){l.push(u+","+c),l.push(u==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var u=[],c=Wt(l["!ref"]),f,d=Array.isArray(l);a(u,"TABLE",0,1,"sheetjs"),a(u,"VECTORS",0,c.e.r-c.s.r+1,""),a(u,"TUPLES",0,c.e.c-c.s.c+1,""),a(u,"DATA",0,0,"");for(var m=c.s.r;m<=c.e.r;++m){o(u,-1,0,"BOT");for(var g=c.s.c;g<=c.e.c;++g){var v=Ve({r:m,c:g});if(f=d?(l[m]||[])[g]:l[v],!f){o(u,1,0,"");continue}switch(f.t){case"n":var y=f.w;!y&&f.v!=null&&(y=f.v),y==null?f.f&&!f.F?o(u,1,0,"="+f.f):o(u,1,0,""):o(u,0,y,"V");break;case"b":o(u,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(u,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=ci(f.z||ze[14],xn(Or(f.v)))),o(u,0,f.w,"V");break;default:o(u,1,0,"")}}}o(u,-1,0,"EOD");var x=`\r 56`,w=u.join(x);return w}}();return{to_workbook:n,to_sheet:r,from_sheet:i}}(),Q6=function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,` 57`)}function t(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,d){for(var m=f.split(` 58`),g=-1,v=-1,y=0,x=[];y!==m.length;++y){var w=m[y].trim().split(":");if(w[0]==="cell"){var _=dn(w[1]);if(x.length<=_.r)for(g=x.length;g<=_.r;++g)x[g]||(x[g]=[]);switch(g=_.r,v=_.c,w[2]){case"t":x[g][v]=e(w[3]);break;case"v":x[g][v]=+w[3];break;case"vtf":var S=w[w.length-1];case"vtc":switch(w[3]){case"nl":x[g][v]=!!+w[4];break;default:x[g][v]=+w[4];break}w[2]=="vtf"&&(x[g][v]=[x[g][v],S])}}}return d&&d.sheetRows&&(x=x.slice(0,d.sheetRows)),x}function n(f,d){return Tu(r(f,d),d)}function i(f,d){return Do(n(f,d),d)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(` 59`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(` 60`)+` 61`,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(` 62`),l="--SocialCalcSpreadsheetControlSave--";function u(f){if(!f||!f["!ref"])return"";for(var d=[],m=[],g,v="",y=Eu(f["!ref"]),x=Array.isArray(f),w=y.s.r;w<=y.e.r;++w)for(var _=y.s.c;_<=y.e.c;++_)if(v=Ve({r:w,c:_}),g=x?(f[w]||[])[_]:f[v],!(!g||g.v==null||g.t==="z")){switch(m=["cell",v,"t"],g.t){case"s":case"str":m.push(t(g.v));break;case"n":g.f?(m[2]="vtf",m[3]="n",m[4]=g.v,m[5]=t(g.f)):(m[2]="v",m[3]=g.v);break;case"b":m[2]="vt"+(g.f?"f":"c"),m[3]="nl",m[4]=g.v?"1":"0",m[5]=t(g.f||(g.v?"TRUE":"FALSE"));break;case"d":var S=xn(Or(g.v));m[2]="vtc",m[3]="nd",m[4]=""+S,m[5]=g.w||ci(g.z||ze[14],S);break;case"e":continue}d.push(m.join(":"))}return d.push("sheet:c:"+(y.e.c-y.s.c+1)+":r:"+(y.e.r-y.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(` 63`)}function c(f){return[a,o,s,o,u(f),l].join(` 64`)}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),_f=function(){function e(c,f,d,m,g){g.raw?f[d][m]=c:c===""||(c==="TRUE"?f[d][m]=!0:c==="FALSE"?f[d][m]=!1:isNaN(Di(c))?isNaN(Vl(c).getDate())?f[d][m]=c:f[d][m]=Or(c):f[d][m]=Di(c))}function t(c,f){var d=f||{},m=[];if(!c||c.length===0)return m;for(var g=c.split(/[\r\n]/),v=g.length-1;v>=0&&g[v].length===0;)--v;for(var y=10,x=0,w=0;w<=v;++w)x=g[w].indexOf(" "),x==-1?x=g[w].length:x++,y=Math.max(y,x);for(w=0;w<=v;++w){m[w]=[];var _=0;for(e(g[w].slice(0,y).trim(),m,w,_,d),_=1;_<=(g[w].length-y)/10+1;++_)e(g[w].slice(y+(_-1)*10,y+_*10).trim(),m,w,_,d)}return d.sheetRows&&(m=m.slice(0,d.sheetRows)),m}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var f={},d=!1,m=0,g=0;m<c.length;++m)(g=c.charCodeAt(m))==34?d=!d:!d&&g in r&&(f[g]=(f[g]||0)+1);g=[];for(m in f)Object.prototype.hasOwnProperty.call(f,m)&&g.push([f[m],m]);if(!g.length){f=n;for(m in f)Object.prototype.hasOwnProperty.call(f,m)&&g.push([f[m],m])}return g.sort(function(v,y){return v[0]-y[0]||n[v[1]]-n[y[1]]}),r[g.pop()[1]]||44}function a(c,f){var d=f||{},m="",g=d.dense?[]:{},v={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(m=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(m=c.charAt(4),c=c.slice(6)):m=i(c.slice(0,1024)):d&&d.FS?m=d.FS:m=i(c.slice(0,1024));var y=0,x=0,w=0,_=0,S=0,T=m.charCodeAt(0),E=!1,A=0,P=c.charCodeAt(0);c=c.replace(/\r\n/mg,` 65`);var C=d.dateNF!=null?c8(d.dateNF):null;function N(){var M=c.slice(_,S),k={};if(M.charAt(0)=='"'&&M.charAt(M.length-1)=='"'&&(M=M.slice(1,-1).replace(/""/g,'"')),M.length===0)k.t="z";else if(d.raw)k.t="s",k.v=M;else if(M.trim().length===0)k.t="s",k.v=M;
vendor: 5,093 bytes, lines 65-66
65else if(M.charCodeAt(0)==61)M.charCodeAt(1)==34&&M.charCodeAt(M.length-1)==34?(k.t="s",k.v=M.slice(2,-1).replace(/""/g,'"')):BU(M)?(k.t="n",k.f=M.slice(1)):(k.t="s",k.v=M);else if(M=="TRUE")k.t="b",k.v=!0;else if(M=="FALSE")k.t="b",k.v=!1;else if(!isNaN(w=Di(M)))k.t="n",d.cellText!==!1&&(k.w=M),k.v=w;else if(!isNaN(Vl(M).getDate())||C&&M.match(C)){k.z=d.dateNF||ze[14];var H=0;C&&M.match(C)&&(M=f8(M,d.dateNF,M.match(C)||[]),H=1),d.cellDates?(k.t="d",k.v=Or(M,H)):(k.t="n",k.v=xn(Or(M,H))),d.cellText!==!1&&(k.w=ci(k.z,k.v instanceof Date?xn(k.v):k.v)),d.cellNF||delete k.z}else k.t="s",k.v=M;if(k.t=="z"||(d.dense?(g[y]||(g[y]=[]),g[y][x]=k):g[Ve({c:x,r:y})]=k),_=S+1,P=c.charCodeAt(_),v.e.c<x&&(v.e.c=x),v.e.r<y&&(v.e.r=y),A==T)++x;else if(x=0,++y,d.sheetRows&&d.sheetRows<=y)return!0}e:for(;S<c.length;++S)switch(A=c.charCodeAt(S)){case 34:P===34&&(E=!E);break;case T:case 10:case 13:if(!E&&N())break e;break}return S-_>0&&N(),g["!ref"]=Ze(v),g}function o(c,f){return!(f&&f.PRN)||f.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?a(c,f):Tu(t(c,f),f)}function s(c,f){var d="",m=f.type=="string"?[0,0,0,0]:O_(c,f);switch(f.type){case"base64":d=Hn(c);break;case"binary":d=c;break;case"buffer":f.codepage==65001?d=c.toString("utf8"):f.codepage&&typeof vf<"u"||(d=Xe&&Buffer.isBuffer(c)?c.toString("binary"):Ms(c));break;case"array":d=Ss(c);break;case"string":d=c;break;default:throw new Error("Unrecognized type "+f.type)}return m[0]==239&&m[1]==187&&m[2]==191?d=_t(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=_t(d):f.type=="binary"&&typeof vf<"u",d.slice(0,19)=="socialcalc:version:"?Q6.to_sheet(f.type=="string"?d:_t(d),f):o(d,f)}function l(c,f){return Do(s(c,f),f)}function u(c){for(var f=[],d=Wt(c["!ref"]),m,g=Array.isArray(c),v=d.s.r;v<=d.e.r;++v){for(var y=[],x=d.s.c;x<=d.e.c;++x){var w=Ve({r:v,c:x});if(m=g?(c[v]||[])[x]:c[w],!m||m.v==null){y.push(" ");continue}for(var _=(m.w||(Oa(m),m.w)||"").slice(0,10);_.length<10;)_+=" ";y.push(_+(x===0?" ":""))}f.push(y.join(""))}return f.join(` 66`)}return{to_workbook:l,to_sheet:s,from_sheet:u}}();function eB(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var i=J6.to_workbook(e,r);return r.WTF=n,i}catch(a){if(r.WTF=n,!a.message.match(/SYLK bad record ID/)&&n)throw a;return _f.to_workbook(e,t)}}var Bc=function(){function e(R,X,q){if(R){Ur(R,R.l||0);for(var z=q.Enum||ee;R.l<R.length;){var se=R.read_shift(2),pe=z[se]||z[65535],_e=R.read_shift(2),te=R.l+_e,oe=pe.f&&pe.f(R,_e,q);if(R.l=te,X(oe,pe,se))return}}}function t(R,X){switch(X.type){case"base64":return r(ki(Hn(R)),X);case"binary":return r(ki(R),X);case"buffer":case"array":return r(R,X)}throw"Unsupported type "+X.type}function r(R,X){if(!R)return R;var q=X||{},z=q.dense?[]:{},se="Sheet1",pe="",_e=0,te={},oe=[],Te=[],O={s:{r:0,c:0},e:{r:0,c:0}},$e=q.sheetRows||0;if(R[2]==0&&(R[3]==8||R[3]==9)&&R.length>=16&&R[14]==5&&R[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(R[2]==2)q.Enum=ee,e(R,function(he,Qe,Nt){switch(Nt){case 0:q.vers=he,he>=4096&&(q.qpro=!0);break;case 6:O=he;break;case 204:he&&(pe=he);break;case 222:pe=he;break;case 15:case 51:q.qpro||(he[1].v=he[1].v.slice(1));case 13:case 14:case 16:Nt==14&&(he[2]&112)==112&&(he[2]&15)>1&&(he[2]&15)<15&&(he[1].z=q.dateNF||ze[14],q.cellDates&&(he[1].t="d",he[1].v=Yp(he[1].v))),q.qpro&&he[3]>_e&&(z["!ref"]=Ze(O),te[se]=z,oe.push(se),z=q.dense?[]:{},O={s:{r:0,c:0},e:{r:0,c:0}},_e=he[3],se=pe||"Sheet"+(_e+1),pe="");var ir=q.dense?(z[he[0].r]||[])[he[0].c]:z[Ve(he[0])];if(ir){ir.t=he[1].t,ir.v=he[1].v,he[1].z!=null&&(ir.z=he[1].z),he[1].f!=null&&(ir.f=he[1].f);break}q.dense?(z[he[0].r]||(z[he[0].r]=[]),z[he[0].r][he[0].c]=he[1]):z[Ve(he[0])]=he[1];break}},q);else if(R[2]==26||R[2]==14)q.Enum=le,R[2]==14&&(q.qpro=!0,R.l=0),e(R,function(he,Qe,Nt){switch(Nt){case 204:se=he;break;case 22:he[1].v=he[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(he[3]>_e&&(z["!ref"]=Ze(O),te[se]=z,oe.push(se),z=q.dense?[]:{},O={s:{r:0,c:0},e:{r:0,c:0}},_e=he[3],se="Sheet"+(_e+1)),$e>0&&he[0].r>=$e)break;q.dense?(z[he[0].r]||(z[he[0].r]=[]),z[he[0].r][he[0].c]=he[1]):z[Ve(he[0])]=he[1],O.e.c<he[0].c&&(O.e.c=he[0].c),O.e.r<he[0].r&&(O.e.r=he[0].r);break;case 27:he[14e3]&&(Te[he[14e3][0]]=he[14e3][1]);break;case 1537:Te[he[0]]=he[1],he[0]==_e&&(se=he[1]);break}},q);else throw new Error("Unrecognized LOTUS BOF "+R[2]);if(z["!ref"]=Ze(O),te[pe||se]=z,oe.push(pe||se),!Te.length)return{SheetNames:oe,Sheets:te};for(var Ce={},Me=[],Re=0;Re<Te.length;++Re)te[oe[Re]]?(Me.push(Te[Re]||oe[Re]),Ce[Te[Re]]=te[Te[Re]]||te[oe[Re]]):(Me.push(Te[Re]),Ce[Te[Re]]={"!ref":"A1"});return{SheetNames:Me,Sheets:Ce}}function n(R,X){var q=X||{};if(+q.codepage>=0&&Ni(+q.codepage),q.type=="string")throw new Error("Cannot write WK1 to JS string");var z=fy(),se=Wt(R["!ref"]),pe=Array.isArray(R),_e=[];wi(z,0,a(1030)),wi(z,6,l(se));for(var te=Math.min(se.e.r,8191),oe=se.s.r;oe<=te;++oe)for(var Te=Hr(oe),O=se.s.c;O<=se.e.c;++O){oe===se.s.r&&(_e[O]=vr(O));var $e=_e[O]+Te,Ce=pe?(R[oe]||[])[O]:R[$e];if(!(!Ce||Ce.t=="z"))if(Ce.t=="n")(Ce.v|0)==Ce.v&&Ce.v>
vendor: 4,608 bytes, line 66
66=-32768&&Ce.v<=32767?wi(z,13,m(oe,O,Ce.v)):wi(z,14,v(oe,O,Ce.v));else{var Me=Oa(Ce);wi(z,15,f(oe,O,Me.slice(0,239)))}}return wi(z,1),z.end()}function i(R,X){var q=X||{};if(+q.codepage>=0&&Ni(+q.codepage),q.type=="string")throw new Error("Cannot write WK3 to JS string");var z=fy();wi(z,0,o(R));for(var se=0,pe=0;se<R.SheetNames.length;++se)(R.Sheets[R.SheetNames[se]]||{})["!ref"]&&wi(z,27,F(R.SheetNames[se],pe++));var _e=0;for(se=0;se<R.SheetNames.length;++se){var te=R.Sheets[R.SheetNames[se]];if(!(!te||!te["!ref"])){for(var oe=Wt(te["!ref"]),Te=Array.isArray(te),O=[],$e=Math.min(oe.e.r,8191),Ce=oe.s.r;Ce<=$e;++Ce)for(var Me=Hr(Ce),Re=oe.s.c;Re<=oe.e.c;++Re){Ce===oe.s.r&&(O[Re]=vr(Re));var he=O[Re]+Me,Qe=Te?(te[Ce]||[])[Re]:te[he];if(!(!Qe||Qe.t=="z"))if(Qe.t=="n")wi(z,23,N(Ce,Re,_e,Qe.v));else{var Nt=Oa(Qe);wi(z,22,A(Ce,Re,_e,Nt.slice(0,239)))}}++_e}}return wi(z,1),z.end()}function a(R){var X=hr(2);return X.write_shift(2,R),X}function o(R){var X=hr(26);X.write_shift(2,4096),X.write_shift(2,4),X.write_shift(4,0);for(var q=0,z=0,se=0,pe=0;pe<R.SheetNames.length;++pe){var _e=R.SheetNames[pe],te=R.Sheets[_e];if(!(!te||!te["!ref"])){++se;var oe=Eu(te["!ref"]);q<oe.e.r&&(q=oe.e.r),z<oe.e.c&&(z=oe.e.c)}}return q>8191&&(q=8191),X.write_shift(2,q),X.write_shift(1,se),X.write_shift(1,z),X.write_shift(2,0),X.write_shift(2,0),X.write_shift(1,1),X.write_shift(1,2),X.write_shift(4,0),X.write_shift(4,0),X}function s(R,X,q){var z={s:{c:0,r:0},e:{c:0,r:0}};return X==8&&q.qpro?(z.s.c=R.read_shift(1),R.l++,z.s.r=R.read_shift(2),z.e.c=R.read_shift(1),R.l++,z.e.r=R.read_shift(2),z):(z.s.c=R.read_shift(2),z.s.r=R.read_shift(2),X==12&&q.qpro&&(R.l+=2),z.e.c=R.read_shift(2),z.e.r=R.read_shift(2),X==12&&q.qpro&&(R.l+=2),z.s.c==65535&&(z.s.c=z.e.c=z.s.r=z.e.r=0),z)}function l(R){var X=hr(8);return X.write_shift(2,R.s.c),X.write_shift(2,R.s.r),X.write_shift(2,R.e.c),X.write_shift(2,R.e.r),X}function u(R,X,q){var z=[{c:0,r:0},{t:"n",v:0},0,0];return q.qpro&&q.vers!=20768?(z[0].c=R.read_shift(1),z[3]=R.read_shift(1),z[0].r=R.read_shift(2),R.l+=2):(z[2]=R.read_shift(1),z[0].c=R.read_shift(2),z[0].r=R.read_shift(2)),z}function c(R,X,q){var z=R.l+X,se=u(R,X,q);if(se[1].t="s",q.vers==20768){R.l++;var pe=R.read_shift(1);return se[1].v=R.read_shift(pe,"utf8"),se}return q.qpro&&R.l++,se[1].v=R.read_shift(z-R.l,"cstr"),se}function f(R,X,q){var z=hr(7+q.length);z.write_shift(1,255),z.write_shift(2,X),z.write_shift(2,R),z.write_shift(1,39);for(var se=0;se<z.length;++se){var pe=q.charCodeAt(se);z.write_shift(1,pe>=128?95:pe)}return z.write_shift(1,0),z}function d(R,X,q){var z=u(R,X,q);return z[1].v=R.read_shift(2,"i"),z}function m(R,X,q){var z=hr(7);return z.write_shift(1,255),z.write_shift(2,X),z.write_shift(2,R),z.write_shift(2,q,"i"),z}function g(R,X,q){var z=u(R,X,q);return z[1].v=R.read_shift(8,"f"),z}function v(R,X,q){var z=hr(13);return z.write_shift(1,255),z.write_shift(2,X),z.write_shift(2,R),z.write_shift(8,q,"f"),z}function y(R,X,q){var z=R.l+X,se=u(R,X,q);if(se[1].v=R.read_shift(8,"f"),q.qpro)R.l=z;else{var pe=R.read_shift(2);S(R.slice(R.l,R.l+pe),se),R.l+=pe}return se}function x(R,X,q){var z=X&32768;return X&=-32769,X=(z?R:0)+(X>=8192?X-16384:X),(z?"":"$")+(q?vr(X):Hr(X))}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]},_=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(R,X){Ur(R,0);for(var q=[],z=0,se="",pe="",_e="",te="";R.l<R.length;){var oe=R[R.l++];switch(oe){case 0:q.push(R.read_shift(8,"f"));break;case 1:pe=x(X[0].c,R.read_shift(2),!0),se=x(X[0].r,R.read_shift(2),!1),q.push(pe+se);break;case 2:{var Te=x(X[0].c,R.read_shift(2),!0),O=x(X[0].r,R.read_shift(2),!1);pe=x(X[0].c,R.read_shift(2),!0),se=x(X[0].r,R.read_shift(2),!1),q.push(Te+O+":"+pe+se)}break;case 3:if(R.l<R.length){console.error("WK1 premature formula end");return}break;case 4:q.push("("+q.pop()+")");break;case 5:q.push(R.read_shift(2));break;case 6:{for(var $e="";oe=R[R.l++];)$e+=String.fromCharCode(oe);q.push('"'+$e.replace(/"/g,'""')+'"')}break;case 8:q.push("-"+q.pop());break;case 23:q.push("+"+q.pop());break;case 22:q.push("NOT("+q.pop()+")");break;case 20:case 21:te=q.pop(),_e=q.pop(),q.push(["AND","OR"][oe-20]+"("+_e+","+te+")");break;default:if(oe<32&&_[oe])te=q.pop(),_e=q.pop(),q.push(_e+_[oe]+te);else if(w[oe]){if(z=w[oe][1],z==69&&(z=R[R.l++]),z>q.length){console.error("WK1 bad formula parse 0x"+oe.toString(16)+":|"+q.join("|")+"|");return}var Ce=q.slice(-z);q.length-=z,q.push(w[oe][0]+"("+Ce.join(",")+")")}
vendor: 31,654 bytes, line 66
66else return oe<=7?console.error("WK1 invalid opcode "+oe.toString(16)):oe<=24?console.error("WK1 unsupported op "+oe.toString(16)):oe<=30?console.error("WK1 invalid opcode "+oe.toString(16)):oe<=115?console.error("WK1 unsupported function opcode "+oe.toString(16)):console.error("WK1 unrecognized opcode "+oe.toString(16))}}q.length==1?X[1].f=""+q[0]:console.error("WK1 bad formula parse |"+q.join("|")+"|")}function T(R){var X=[{c:0,r:0},{t:"n",v:0},0];return X[0].r=R.read_shift(2),X[3]=R[R.l++],X[0].c=R[R.l++],X}function E(R,X){var q=T(R);return q[1].t="s",q[1].v=R.read_shift(X-4,"cstr"),q}function A(R,X,q,z){var se=hr(6+z.length);se.write_shift(2,R),se.write_shift(1,q),se.write_shift(1,X),se.write_shift(1,39);for(var pe=0;pe<z.length;++pe){var _e=z.charCodeAt(pe);se.write_shift(1,_e>=128?95:_e)}return se.write_shift(1,0),se}function P(R,X){var q=T(R);q[1].v=R.read_shift(2);var z=q[1].v>>1;if(q[1].v&1)switch(z&7){case 0:z=(z>>3)*5e3;break;case 1:z=(z>>3)*500;break;case 2:z=(z>>3)/20;break;case 3:z=(z>>3)/200;break;case 4:z=(z>>3)/2e3;break;case 5:z=(z>>3)/2e4;break;case 6:z=(z>>3)/16;break;case 7:z=(z>>3)/64;break}return q[1].v=z,q}function C(R,X){var q=T(R),z=R.read_shift(4),se=R.read_shift(4),pe=R.read_shift(2);if(pe==65535)return z===0&&se===3221225472?(q[1].t="e",q[1].v=15):z===0&&se===3489660928?(q[1].t="e",q[1].v=42):q[1].v=0,q;var _e=pe&32768;return pe=(pe&32767)-16446,q[1].v=(1-_e*2)*(se*Math.pow(2,pe+32)+z*Math.pow(2,pe)),q}function N(R,X,q,z){var se=hr(14);if(se.write_shift(2,R),se.write_shift(1,q),se.write_shift(1,X),z==0)return se.write_shift(4,0),se.write_shift(4,0),se.write_shift(2,65535),se;var pe=0,_e=0,te=0,oe=0;return z<0&&(pe=1,z=-z),_e=Math.log2(z)|0,z/=Math.pow(2,_e-31),oe=z>>>0,oe&2147483648||(z/=2,++_e,oe=z>>>0),z-=oe,oe|=2147483648,oe>>>=0,z*=Math.pow(2,32),te=z>>>0,se.write_shift(4,te),se.write_shift(4,oe),_e+=16383+(pe?32768:0),se.write_shift(2,_e),se}function M(R,X){var q=C(R);return R.l+=X-14,q}function k(R,X){var q=T(R),z=R.read_shift(4);return q[1].v=z>>6,q}function H(R,X){var q=T(R),z=R.read_shift(8,"f");return q[1].v=z,q}function K(R,X){var q=H(R);return R.l+=X-10,q}function U(R,X){return R[R.l+X-1]==0?R.read_shift(X,"cstr"):""}function Y(R,X){var q=R[R.l++];q>X-1&&(q=X-1);for(var z="";z.length<q;)z+=String.fromCharCode(R[R.l++]);return z}function W(R,X,q){if(!(!q.qpro||X<21)){var z=R.read_shift(1);R.l+=17,R.l+=1,R.l+=2;var se=R.read_shift(X-21,"cstr");return[z,se]}}function J(R,X){for(var q={},z=R.l+X;R.l<z;){var se=R.read_shift(2);if(se==14e3){for(q[se]=[0,""],q[se][0]=R.read_shift(2);R[R.l];)q[se][1]+=String.fromCharCode(R[R.l]),R.l++;R.l++}}return q}function F(R,X){var q=hr(5+R.length);q.write_shift(2,14e3),q.write_shift(2,X);for(var z=0;z<R.length;++z){var se=R.charCodeAt(z);q[q.l++]=se>127?95:se}return q[q.l++]=0,q}var ee={0:{n:"BOF",f:er},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:g},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:y},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:U},222:{n:"SHEETNAMELP",f:Y},65535:{n:""}},le={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:E},23:{n:"NUMBER17",f:C},24:{n:"NUMBER18",f:P},25:{n:"FORMULA19",f:M},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:J},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:k},38:{n:"??"},39:{n:"NUMBER27",f:H},40:{n:"FORMULA28",f:K},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:U},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:W},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}}();function tB(e){var t={},r=e.match(sn),n=0,i=!1;if(r)for(;n!=r.length;++n){var a=Be(r[n]);switch(a[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!a.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if(a.val=="1")break;t.cp=l_[parseInt(a.val,10)];break;case"<outline":if(!a.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=a.val;break;case"<sz":t.sz=a.val;break;case"<strike":if(!a.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!a.val)break;switch(a.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting";break}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if(a.val=="0")break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if(a.val=="0")break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":a.rgb&&(t.color=a.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=a.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=a.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(a[0].charCodeAt(1)!==47&&!i)throw new Error("Unrecognized rich format "+a[0])}}return t}var rB=function(){var e=yf("t"),t=yf("rPr");function r(a){var o=a.match(e);if(!o)return{t:"s",v:""};var s={t:"s",v:rt(o[1])},l=a.match(t);return l&&(s.s=tB(l[1])),s}var n=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(o){return o.replace(n,"").split(i).map(r).filter(function(s){return s.v})}}(),nB=function(){var t=/(\r\n|\n)/g;function r(i,a,o){var s=[];i.u&&s.push("text-decoration: underline;"),i.uval&&s.push("text-underline-style:"+i.uval+";"),i.sz&&s.push("font-size:"+i.sz+"pt;"),i.outline&&s.push("text-effect: outline;"),i.shadow&&s.push("text-shadow: auto;"),a.push('<span style="'+s.join("")+'">'),i.b&&(a.push("<b>"),o.push("</b>")),i.i&&(a.push("<i>"),o.push("</i>")),i.strike&&(a.push("<s>"),o.push("</s>"));var l=i.valign||"";return l=="superscript"||l=="super"?l="sup":l=="subscript"&&(l="sub"),l!=""&&(a.push("<"+l+">"),o.push("</"+l+">")),o.push("</span>"),i}function n(i){var a=[[],i.v,[]];return i.v?(i.s&&r(i.s,a[0],a[2]),a[0].join("")+a[1].replace(t,"<br/>")+a[2].join("")):""}return function(a){return a.map(n).join("")}}(),iB=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,aB=/<(?:\w+:)?r>/,oB=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function A_(e,t){var r=t?t.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=rt(_t(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=_t(e),r&&(n.h=m_(n.t))):e.match(aB)&&(n.r=_t(e),n.t=rt(_t((e.replace(oB,"").match(iB)||[]).join("").replace(sn,""))),r&&(n.h=nB(rB(n.r)))),n):{t:""}}var sB=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,lB=/<(?:\w+:)?(?:si|sstItem)>/g,uB=/<\/(?:\w+:)?(?:si|sstItem)>/;function cB(e,t){var r=[],n="";if(!e)return r;var i=e.match(sB);if(i){n=i[2].replace(lB,"").split(uB);for(var a=0;a!=n.length;++a){var o=A_(n[a].trim(),t);o!=null&&(r[r.length]=o)}i=Be(i[1]),r.Count=i.count,r.Unique=i.uniqueCount}return r}function fB(e){return[e.read_shift(4),e.read_shift(4)]}function dB(e,t){var r=[],n=!1;return $a(e,function(a,o,s){switch(s){case 159:r.Count=a[0],r.Unique=a[1];break;case 19:r.push(a);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(o.T,!n||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}}),r}function RO(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function Aa(e,t){var r={};return r.Major=e.read_shift(2),r.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),r}function hB(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=Aa(e,4),t.U=Aa(e,4),t.W=Aa(e,4),t}function pB(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},i=e.read_shift(4),a=[];i-- >0;)a.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=a,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function mB(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(pB(e));return t}function vB(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function gB(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=Aa(e,4),t.U=Aa(e,4),t.W=Aa(e,4),t}function yB(e){var t=gB(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function MO(e,t){var r=e.l+t,n={};n.Flags=e.read_shift(4)&63,e.l+=4,n.AlgID=e.read_shift(4);var i=!1;switch(n.AlgID){case 26126:case 26127:case 26128:i=n.Flags==36;break;case 26625:i=n.Flags==4;break;case 0:i=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function DO(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function xB(e){var t=Aa(e);switch(t.Minor){case 2:return[t.Minor,_B(e)];case 3:return[t.Minor,wB()];case 4:return[t.Minor,EB(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function _B(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=MO(e,r),i=DO(e,e.length-e.l);return{t:"Std",h:n,v:i}}function wB(){throw new Error("File is password-protected: ECMA-376 Extensible")}function EB(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(sn,function(a){var o=Be(a);switch(oa(o[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":t.forEach(function(s){n[s]=o[s]});break;case"<dataIntegrity":n.encryptedHmacKey=o.encryptedHmacKey,n.encryptedHmacValue=o.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":n.uri=o.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":n.encs.push(o);break;default:throw o[0]}}),n}function TB(e,t){var r={},n=r.EncryptionVersionInfo=Aa(e,4);if(t-=4,n.Minor!=2)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,r.EncryptionHeader=MO(e,i),t-=i,r.EncryptionVerifier=DO(e,t),r}function SB(e){var t={},r=t.EncryptionVersionInfo=Aa(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function AB(e){var t=0,r,n=RO(e),i=n.length+1,a,o,s,l,u;for(r=Co(i),r[0]=n.length,a=1;a!=i;++a)r[a]=n[a-1];for(a=i-1;a>=0;--a)o=r[a],s=t&16384?1:0,l=t<<1&32767,u=s|l,t=u^o;return t^52811}var FO=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(o){return(o/2|o*128)&255},i=function(o,s){return n(o^s)},a=function(o){for(var s=t[o.length-1],l=104,u=o.length-1;u>=0;--u)for(var c=o[u],f=0;f!=7;++f)c&64&&(s^=r[l]),c*=2,--l;return s};return function(o){for(var s=RO(o),l=a(s),u=s.length,c=Co(16),f=0;f!=16;++f)c[f]=0;var d,m,g;for((u&1)===1&&(d=l>>8,c[u]=i(e[0],d),--u,d=l&255,m=s[s.length-1],c[u]=i(m,d));u>0;)--u,d=l>>8,c[u]=i(s[u],d),--u,d=l&255,c[u]=i(s[u],d);for(u=15,g=15-s.length;g>0;)d=l>>8,c[u]=i(e[g],d),--u,--g,d=l&255,c[u]=i(s[u],d),--u,--g;return c}}(),bB=function(e,t,r,n,i){i||(i=t),n||(n=FO(e));var a,o;for(a=0;a!=t.length;++a)o=t[a],o^=n[r],o=(o>>5|o<<3)&255,i[a]=o,++r;return[i,r,n]},CB=function(e){var t=0,r=FO(e);return function(n){var i=bB("",n,t,r);return t=i[1],i[0]}};function PB(e,t,r,n){var i={key:er(e),verificationBytes:er(e)};return r.password&&(i.verifier=AB(r.password)),n.valid=i.verificationBytes===i.verifier,n.valid&&(n.insitu=CB(r.password)),i}function kB(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=SB(e):n.Data=TB(e,t),n}function IB(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?kB(e,t-2,n):PB(e,r.biff>=8?t:t-2,r,n),n}var NB=function(){function e(i,a){switch(a.type){case"base64":return t(Hn(i),a);case"binary":return t(i,a);case"buffer":return t(Xe&&Buffer.isBuffer(i)?i.toString("binary"):Ms(i),a);case"array":return t(Ss(i),a)}throw new Error("Unrecognized type "+a.type)}function t(i,a){var o=a||{},s=o.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,m=0,g,v=-1;g=d.exec(c);){switch(g[0]){case"\\cell":var y=c.slice(m,d.lastIndex-g[0].length);if(y[0]==" "&&(y=y.slice(1)),++v,y.length){var x={v:y,t:"s"};Array.isArray(s)?s[f][v]=x:s[Ve({r:f,c:v})]=x}break}m=d.lastIndex}v>u.e.c&&(u.e.c=v)}),s["!ref"]=Ze(u),s}function r(i,a){return Do(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],o=Wt(i["!ref"]),s,l=Array.isArray(i),u=o.s.r;u<=o.e.r;++u){a.push("\\trowd\\trautofit1");for(var c=o.s.c;c<=o.e.c;++c)a.push("\\cellx"+(c+1));for(a.push("\\pard\\intbl"),c=o.s.c;c<=o.e.c;++c){var f=Ve({r:u,c});s=l?(i[u]||[])[c]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(a.push(" "+(s.w||(Oa(s),s.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function OB(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function wf(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)}function RB(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.max(t,r,n),a=Math.min(t,r,n),o=i-a;if(o===0)return[0,0,t];var s=0,l=0,u=i+a;switch(l=o/(u>1?2-u:u),i){case t:s=((r-n)/o+6)%6;break;case r:s=(n-t)/o+2;break;case n:s=(t-r)/o+4;break}return[s/6,l,u/2]}function MB(e){var t=e[0],r=e[1],n=e[2],i=r*2*(n<.5?n:1-n),a=n-i/2,o=[a,a,a],s=6*t,l;if(r!==0)switch(s|0){case 0:case 6:l=i*s,o[0]+=i,o[1]+=l;break;case 1:l=i*(2-s),o[0]+=l,o[1]+=i;break;case 2:l=i*(s-2),o[1]+=i,o[2]+=l;break;case 3:l=i*(4-s),o[1]+=l,o[2]+=i;break;case 4:l=i*(s-4),o[2]+=i,o[0]+=l;break;case 5:l=i*(6-s),o[2]+=l,o[0]+=i;break}for(var u=0;u!=3;++u)o[u]=Math.round(o[u]*255);return o}function vh(e,t){if(t===0)return e;var r=RB(OB(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),wf(MB(r))}var LO=6,DB=15,FB=1,fn=LO;function gh(e){return Math.floor((e+Math.round(128/fn)/256)*fn)}function yh(e){return Math.floor((e-5)/fn*100+.5)/100}function my(e){return Math.round((e*fn+5)/fn*256)/256}function Rv(e){return my(yh(gh(e)))}function b_(e){var t=Math.abs(e-Rv(e)),r=fn;if(t>.005)for(fn=FB;fn<DB;++fn)Math.abs(e-Rv(e))<=t&&(t=Math.abs(e-Rv(e)),r=fn);fn=r}function Hl(e){e.width?(e.wpx=gh(e.width),e.wch=yh(e.wpx),e.MDW=fn):e.wpx?(e.wch=yh(e.wpx),e.width=my(e.wch),e.MDW=fn):typeof e.wch=="number"&&(e.width=my(e.wch),e.wpx=gh(e.width),e.MDW=fn),e.customWidth&&delete e.customWidth}var LB=96,$O=LB;function BO(e){return e*96/$O}function Ef(e){return e*$O/96}var $B={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function BB(e,t,r,n){t.Borders=[];var i={},a=!1;(e[0].match(sn)||[]).forEach(function(o){var s=Be(o);switch(oa(s[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":i={},s.diagonalUp&&(i.diagonalUp=Rt(s.diagonalUp)),s.diagonalDown&&(i.diagonalDown=Rt(s.diagonalDown)),t.Borders.push(i);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+s[0]+" in borders")}})}function UB(e,t,r,n){t.Fills=[];var i={},a=!1;(e[0].match(sn)||[]).forEach(function(o){var s=Be(o);switch(oa(s[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":i={},t.Fills.push(i);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":t.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":s.patternType&&(i.patternType=s.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":i.bgColor||(i.bgColor={}),s.indexed&&(i.bgColor.indexed=parseInt(s.indexed,10)),s.theme&&(i.bgColor.theme=parseInt(s.theme,10)),s.tint&&(i.bgColor.tint=parseFloat(s.tint)),s.rgb&&(i.bgColor.rgb=s.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":i.fgColor||(i.fgColor={}),s.theme&&(i.fgColor.theme=parseInt(s.theme,10)),s.tint&&(i.fgColor.tint=parseFloat(s.tint)),s.rgb!=null&&(i.fgColor.rgb=s.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+s[0]+" in fills")}})}function GB(e,t,r,n){t.Fonts=[];var i={},a=!1;(e[0].match(sn)||[]).forEach(function(o){var s=Be(o);switch(oa(s[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":t.Fonts.push(i),i={};break;case"<name":s.val&&(i.name=_t(s.val));break;case"<name/>":case"</name>":break;case"<b":i.bold=s.val?Rt(s.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=s.val?Rt(s.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(s.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34;break}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=s.val?Rt(s.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=s.val?Rt(s.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=s.val?Rt(s.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=s.val?Rt(s.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=s.val?Rt(s.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":s.val&&(i.sz=+s.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":s.val&&(i.vertAlign=s.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":s.val&&(i.family=parseInt(s.val,10));break;case"<family/>":case"</family>":break;case"<scheme":s.val&&(i.scheme=s.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(s.val=="1")break;s.codepage=l_[parseInt(s.val,10)];break;case"<color":if(i.color||(i.color={}),s.auto&&(i.color.auto=Rt(s.auto)),s.rgb)i.color.rgb=s.rgb.slice(-6);else if(s.indexed){i.color.index=parseInt(s.indexed,10);var l=ps[i.color.index];i.color.index==81&&(l=ps[1]),l||(l=ps[1]),i.color.rgb=l[0].toString(16)+l[1].toString(16)+l[2].toString(16)}else s.theme&&(i.color.theme=parseInt(s.theme,10),s.tint&&(i.color.tint=parseFloat(s.tint)),s.theme&&r.themeElements&&r.themeElements.clrScheme&&(i.color.rgb=vh(r.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":a=!0;break;case"</AlternateContent>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+s[0]+" in fonts")}})}function VB(e,t,r){t.NumberFmt=[];for(var n=ia(ze),i=0;i<n.length;++i)t.NumberFmt[n[i]]=ze[n[i]];var a=e[0].match(sn);if(a)for(i=0;i<a.length;++i){var o=Be(a[i]);switch(oa(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var s=rt(_t(o.formatCode)),l=parseInt(o.numFmtId,10);if(t.NumberFmt[l]=s,l>0){if(l>392){for(l=392;l>60&&t.NumberFmt[l]!=null;--l);t.NumberFmt[l]=s}hs(s,l)}}break;case"</numFmt>":break;default:if(r.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}var i0=["numFmtId","fillId","fontId","borderId","xfId"],a0=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function HB(e,t,r){t.CellXf=[];var n,i=!1;(e[0].match(sn)||[]).forEach(function(a){var o=Be(a),s=0;switch(oa(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(n=o,delete n[0],s=0;s<i0.length;++s)n[i0[s]]&&(n[i0[s]]=parseInt(n[i0[s]],10));for(s=0;s<a0.length;++s)n[a0[s]]&&(n[a0[s]]=Rt(n[a0[s]]));if(t.NumberFmt&&n.numFmtId>392){for(s=392;s>60;--s)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[s]){n.numFmtId=s;break}}t.CellXf.push(n);break;case"</xf>":break;case"<alignment":case"<alignment/>":var l={};o.vertical&&(l.vertical=o.vertical),o.horizontal&&(l.horizontal=o.horizontal),o.textRotation!=null&&(l.textRotation=o.textRotation),o.indent&&(l.indent=o.indent),o.wrapText&&(l.wrapText=Rt(o.wrapText)),n.alignment=l;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(r&&r.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}var jB=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,i=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,a=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,l,u){var c={};if(!s)return c;s=s.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var f;return(f=s.match(t))&&VB(f,c,u),(f=s.match(i))&&GB(f,c,l,u),(f=s.match(n))&&UB(f,c,l,u),(f=s.match(a))&&BB(f,c,l,u),(f=s.match(r))&&HB(f,c,u),c}}();function zB(e,t){var r=e.read_shift(2),n=nn(e);return[r,n]}function WB(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=r$(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 a=e.read_shift(2);switch(a===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(n.underline=o);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=t$(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=nn(e),n}var qB=on;function KB(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}}var YB=on;function XB(e,t,r){var n={};n.NumberFmt=[];for(var i in ze)n.NumberFmt[i]=ze[i];n.CellXf=[],n.Fonts=[];var a=[],o=!1;return $a(e,function(l,u,c){switch(c){case 44:n.NumberFmt[l[0]]=l[1],hs(l[1],l[0]);break;case 43:n.Fonts.push(l),l.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(l.color.rgb=vh(t.themeElements.clrScheme[l.color.theme].rgb,l.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:a[a.length-1]==617&&n.CellXf.push(l);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:a.push(c),o=!0;break;case 38:a.pop(),o=!1;break;default:if(u.T>0)a.push(c);else if(u.T<0)a.pop();else if(!o||r.WTF&&a[a.length-1]!=37)throw new Error("Unexpected record 0x"+c.toString(16))}}),n}var JB=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function ZB(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(sn)||[]).forEach(function(i){var a=Be(i);switch(a[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=a.val;break;case"<a:sysClr":n.rgb=a.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":a[0].charAt(1)==="/"?(t.themeElements.clrScheme[JB.indexOf(a[0])]=n,n={}):n.name=a[0].slice(3,a[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+a[0]+" in clrScheme")}})}function QB(){}function eU(){}var tU=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,rU=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,nU=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function iU(e,t,r){t.themeElements={};var n;[["clrScheme",tU,ZB],["fontScheme",rU,QB],["fmtScheme",nU,eU]].forEach(function(i){if(!(n=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](n,t,r)})}var aU=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function UO(e,t){(!e||e.length===0)&&(e=oU());var r,n={};if(!(r=e.match(aU)))throw new Error("themeElements not found in theme");return iU(r[0],n,t),n.raw=e,n}function oU(e,t){var r=[JN];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="ï¼ï¼³ ï¼°ã´ã·ãã¯"/>',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"/>
66',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="ï¼ï¼³ ï¼°ã´ã·ãã¯"/>',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>
66",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 sU(e,t,r){var n=e.l+t,i=e.read_shift(4);if(i!==124226){if(!r.cellStyles){e.l=n;return}var a=e.slice(e.l);e.l=n;var o;try{o=XN(a,{type:"array"})}catch{return}var s=Ln(o,"theme/theme/theme1.xml",!0);if(s)return UO(s,r)}}function lU(e){return e.read_shift(4)}function uU(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=cU(e,4);break;case 2:t.xclrValue=bO(e);break;case 3:t.xclrValue=lU(e);break;case 4:e.l+=4;break}return e.l+=8,t}function cU(e,t){return on(e,t)}function fU(e,t){return on(e,t)}function dU(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=uU(e);break;case 6:n[1]=fU(e,r);break;case 14:case 15:n[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function hU(e,t){var r=e.l+t;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var i=e.read_shift(2),a=[];i-- >0;)a.push(dU(e,r-e.l));return{ixfe:n,ext:a}}function pU(e,t){t.forEach(function(r){switch(r[0]){}})}function mU(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:nn(e)}}function vU(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function gU(e){return e.l+=4,e.read_shift(4)!=0}function yU(e,t,r){var n={Types:[],Cell:[],Value:[]},i=r||{},a=[],o=!1,s=2;return $a(e,function(l,u,c){switch(c){case 335:n.Types.push({name:l.name});break;case 51:l.forEach(function(f){s==1?n.Cell.push({type:n.Types[f[0]-1].name,index:f[1]}):s==0&&n.Value.push({type:n.Types[f[0]-1].name,index:f[1]})});break;case 337:s=l?1:0;break;case 338:s=2;break;case 35:a.push(c),o=!0;break;case 36:a.pop(),o=!1;break;default:if(!u.T){if(!o||i.WTF&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+c.toString(16))}}}),n}function xU(e,t,r){var n={Types:[],Cell:[],Value:[]};if(!e)return n;var i=!1,a=2,o;return e.replace(sn,function(s){var l=Be(s);switch(oa(l[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":n.Types.push({name:l.name});break;case"</metadataType>":break;case"<futureMetadata":for(var u=0;u<n.Types.length;++u)n.Types[u].name==l.name&&(o=n.Types[u]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":a==1?n.Cell.push({type:n.Types[l.t-1].name,index:+l.v}):a==0&&n.Value.push({type:n.Types[l.t-1].name,index:+l.v});break;case"</rc>":break;case"<cellMetadata":a=1;break;case"</cellMetadata>":a=2;break;case"<valueMetadata":a=0;break;case"</valueMetadata>":a=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<rvb":if(!o)break;o.offsets||(o.offsets=[]),o.offsets.push(+l.i);break;default:if(!i&&r.WTF)throw new Error("unrecognized "+l[0]+" in metadata")}return s}),n}function _U(e){var t=[];if(!e)return t;var r=1;
vendor: 8,850 bytes, lines 66-70
66return(e.match(sn)||[]).forEach(function(n){var i=Be(n);switch(i[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete i[0],i.i?r=i.i:i.i=r,t.push(i);break}}),t}function wU(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=Ve(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}function EU(e,t,r){var n=[];return $a(e,function(a,o,s){switch(s){case 63:n.push(a);break;default:if(!o.T)throw new Error("Unexpected record 0x"+s.toString(16))}}),n}function TU(e,t,r,n){if(!e)return e;var i=n||{},a=!1;$a(e,function(s,l,u){switch(u){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:a=!0;break;case 36:a=!1;break;default:if(!l.T){if(!a||i.WTF)throw new Error("Unexpected record 0x"+u.toString(16))}}},i)}function SU(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}function nS(e,t,r,n){var i=Array.isArray(e),a;t.forEach(function(o){var s=dn(o.ref);if(i?(e[s.r]||(e[s.r]=[]),a=e[s.r][s.c]):a=e[o.ref],!a){a={t:"z"},i?e[s.r][s.c]=a:e[o.ref]=a;var l=Wt(e["!ref"]||"BDWGO1000001:A1");l.s.r>s.r&&(l.s.r=s.r),l.e.r<s.r&&(l.e.r=s.r),l.s.c>s.c&&(l.s.c=s.c),l.e.c<s.c&&(l.e.c=s.c);var u=Ze(l);u!==e["!ref"]&&(e["!ref"]=u)}a.c||(a.c=[]);var c={a:o.author,t:o.t,r:o.r,T:r};o.h&&(c.h=o.h);for(var f=a.c.length-1;f>=0;--f){if(!r&&a.c[f].T)return;r&&!a.c[f].T&&a.c.splice(f,1)}if(r&&n){for(f=0;f<n.length;++f)if(c.a==n[f].id){c.a=n[f].name||c.a;break}}a.c.push(c)})}function AU(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],n=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?author[^>]*>(.*)/);s&&r.push(s[1])}});var a=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return a&&a[1]&&a[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?comment[^>]*>/);if(s){var l=Be(s[0]),u={author:l.authorId&&r[l.authorId]||"sheetjsghost",ref:l.ref,guid:l.guid},c=dn(l.ref);if(!(t.sheetRows&&t.sheetRows<=c.r)){var f=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),d=!!f&&!!f[1]&&A_(f[1])||{r:"",t:"",h:""};u.r=d.r,d.r=="<t></t>"&&(d.t=d.h=""),u.t=(d.t||"").replace(/\r\n/g,` 67`).replace(/\r/g,` 68`),t.cellHTML&&(u.h=d.h),n.push(u)}}}}),n}function bU(e,t){var r=[],n=!1,i={},a=0;return e.replace(sn,function(s,l){var u=Be(s);switch(oa(u[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":i={author:u.personId,guid:u.id,ref:u.ref,T:1};break;case"</threadedComment>":i.t!=null&&r.push(i);break;case"<text>":case"<text":a=l+s.length;break;case"</text>":i.t=e.slice(a,l).replace(/\r\n/g,` 69`).replace(/\r/g,` 70`);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+u[0]+" in threaded comments")}return s}),r}function CU(e,t){var r=[],n=!1;return e.replace(sn,function(a){var o=Be(a);switch(oa(o[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":r.push({name:o.displayname,id:o.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return a}),r}function PU(e){var t={};t.iauthor=e.read_shift(4);var r=Fs(e);return t.rfx=r.s,t.ref=Ve(r.s),e.l+=16,t}var kU=nn;function IU(e,t){var r=[],n=[],i={},a=!1;return $a(e,function(s,l,u){switch(u){case 632:n.push(s);break;case 635:i=s;break;case 637:i.t=s.t,i.h=s.h,i.r=s.r;break;case 636:if(i.author=n[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,r.push(i);break;case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:break;case 38:break;default:if(!l.T){if(!a||t.WTF)throw new Error("Unexpected record 0x"+u.toString(16))}}}),r}var NU="application/vnd.ms-office.vbaProject";function OU(e){var t=Je.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var i=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Je.utils.cfb_add(t,i,e.FileIndex[n].content)}}),Je.write(t)}function RU(){return{"!type":"dialog"}}function MU(){return{"!type":"dialog"}}function DU(){return{"!type":"macro"}}function FU(){return{"!type":"macro"}}var Pl=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,a,o){var s=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var u=a.length>0?parseInt(a,10)|0:0,c=o.length>0?parseInt(o,10)|0:0;return s?c+=t.c:--c,l?u+=t.r:--u,i+(s?"":"$")+vr(c)+(l?"":"$")+Hr(u)}return function(i,a){return t=a,i.replace(e,r)}}(),GO=/(^|[^._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,LU=function(){return function(t,r){return t.replace(GO,function(n,i,a,o,s,l){var u=x_(o)-(a?0:r.c),c=y_(l)-(s?0:r.r),f=c==0?"":s?c+1:"["+c+"]",d=u==0?"":a?u+1:"["+u+"]";return i+"R"+f+"C"+d})}}();function VO(e,t){return e.replace(GO,function(r,n,i,a,o,s){return n+(i=="$"?i+a:vr(x_(a)+t.c))+(o=="$"?o+s:Hr(y_(s)+t.r))})}function $U(e,t,r){var n=Eu(t),i=n.s,a=dn(r),o={r:a.r-i.r,c:a.c-i.c};return VO(e,o)}function BU(e){return e.length!=1}function iS(e){return e.replace(/_xlfn\./g,"")}function Zt(e){e.l+=1}function Po(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function HO(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return jO(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),o=Po(e),s=Po(e);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function jO(e){var t=Po(e),r=Po(e),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 UU(e,t,r){if(r.biff<8)return jO(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=Po(e),o=Po(e);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function zO(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return GU(e);var n=e.read_shift(r&&r.biff==12?4:2),i=Po(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function GU(e){var t=Po(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function VU(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 HU(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return jU(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),o=(a&16384)>>14,s=(a&32768)>>15;if(a&=16383,s==1)for(;i>524287;)i-=1048576;if(o==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:o,rRel:s}}function jU(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 zU(e,t,r){var n=(e[e.l++]&96)>>5,i=HO(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function WU(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var o=HO(e,a,r);return[n,i,o]}function qU(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 KU(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function YU(e,t,r){var n=(e[e.l++]&96)>>5,i=UU(e,t-1,r);return[n,i]}function XU(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function aS(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function JU(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function ZU(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 QU(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 e7(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function t7(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function WO(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function r7(e){return e.read_shift(2),WO(e)}function n7(e){return e.read_shift(2),WO(e)}function i7(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=zO(e,0,r);return[n,i]}function a7(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=HU(e,0,r);return[n,i]}function o7(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);
70r&&r.biff==5&&(e.l+=12);var a=zO(e,0,r);return[n,i,a]}function s7(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[l9[i],YO[i],n]}function l7(e,t,r){var n=e[e.l++],i=e.read_shift(1),a=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:u7(e);return[i,(a[0]===0?YO:s9)[a[1]]]}function u7(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function c7(e,t,r){e.l+=r&&r.biff==2?3:4}function f7(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 d7(e){return e.l++,Ls[e.read_shift(1)]}function h7(e){return e.l++,e.read_shift(2)}function p7(e){return e.l++,e.read_shift(1)!==0}function m7(e){return e.l++,en(e)}function v7(e,t,r){return e.l++,dd(e,t-1,r)}function g7(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]=qt(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Ls[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=en(e);break;case 2:r[1]=$s(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function y7(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((r.biff==12?Fs:Xp)(e));return i}function x7(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 a=0,o=[];a!=n&&(o[a]=[]);++a)for(var s=0;s!=i;++s)o[a][s]=g7(e,r.biff);return o}function _7(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=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,a]}function w7(e,t,r){if(r.biff==5)return E7(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function E7(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 T7(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 S7(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 A7(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 b7(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var C7=on,P7=on,k7=on;function pd(e,t,r){return e.l+=2,[VU(e)]}function C_(e){return e.l+=6,[]}var I7=pd,N7=C_,O7=C_,R7=pd;function qO(e){return e.l+=2,[er(e),e.read_shift(2)&1]}var M7=pd,D7=qO,F7=C_,L7=pd,$7=pd,B7=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function U7(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),a=e.read_shift(2),o=B7[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:i,C:a}}function G7(e){return e.l+=2,[e.read_shift(4)]}function V7(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function H7(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function j7(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function z7(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function W7(e){return e.l+=4,[0,0]}var oS={1:{n:"PtgExp",f:f7},2:{n:"PtgTbl",f:k7},3:{n:"PtgAdd",f:Zt},4:{n:"PtgSub",f:Zt},5:{n:"PtgMul",f:Zt},6:{n:"PtgDiv",f:Zt},7:{n:"PtgPower",f:Zt},8:{n:"PtgConcat",f:Zt},9:{n:"PtgLt",f:Zt},10:{n:"PtgLe",f:Zt},11:{n:"PtgEq",f:Zt},12:{n:"PtgGe",f:Zt},13:{n:"PtgGt",f:Zt},14:{n:"PtgNe",f:Zt},15:{n:"PtgIsect",f:Zt},16:{n:"PtgUnion",f:Zt},17:{n:"PtgRange",f:Zt},18:{n:"PtgUplus",f:Zt},19:{n:"PtgUminus",f:Zt},20:{n:"PtgPercent",f:Zt},21:{n:"PtgParen",f:Zt},22:{n:"PtgMissArg",f:Zt},23:{n:"PtgStr",f:v7},26:{n:"PtgSheet",f:V7},27:{n:"PtgEndSheet",f:H7},28:{n:"PtgErr",f:d7},29:{n:"PtgBool",f:p7},30:{n:"PtgInt",f:h7},31:{n:"PtgNum",f:m7},32:{n:"PtgArray",f:XU},33:{n:"PtgFunc",f:s7},34:{n:"PtgFuncVar",f:l7},35:{n:"PtgName",f:_7},36:{n:"PtgRef",f:i7},37:{n:"PtgArea",f:zU},38:{n:"PtgMemArea",f:T7},39:{n:"PtgMemErr",f:C7},40:{n:"PtgMemNoMem",f:P7},41:{n:"PtgMemFunc",f:S7},42:{n:"PtgRefErr",f:A7},43:{n:"PtgAreaErr",f:qU},44:{n:"PtgRefN",f:a7},45:{n:"PtgAreaN",f:YU},46:{n:"PtgMemAreaN",f:j7},47:{n:"PtgMemNoMemN",f:z7},57:{n:"PtgNameX",f:w7},58:{n:"PtgRef3d",f:o7}
vendor: 8,601 bytes, line 70
70,59:{n:"PtgArea3d",f:WU},60:{n:"PtgRefErr3d",f:b7},61:{n:"PtgAreaErr3d",f:KU},255:{}},q7={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},K7={1:{n:"PtgElfLel",f:qO},2:{n:"PtgElfRw",f:L7},3:{n:"PtgElfCol",f:I7},6:{n:"PtgElfRwV",f:$7},7:{n:"PtgElfColV",f:R7},10:{n:"PtgElfRadical",f:M7},11:{n:"PtgElfRadicalS",f:F7},13:{n:"PtgElfColS",f:N7},15:{n:"PtgElfColSV",f:O7},16:{n:"PtgElfRadicalLel",f:D7},25:{n:"PtgList",f:U7},29:{n:"PtgSxName",f:G7},255:{}},Y7={0:{n:"PtgAttrNoop",f:W7},1:{n:"PtgAttrSemi",f:t7},2:{n:"PtgAttrIf",f:QU},4:{n:"PtgAttrChoose",f:JU},8:{n:"PtgAttrGoto",f:ZU},16:{n:"PtgAttrSum",f:c7},32:{n:"PtgAttrBaxcel",f:aS},33:{n:"PtgAttrBaxcel",f:aS},64:{n:"PtgAttrSpace",f:r7},65:{n:"PtgAttrSpaceSemi",f:n7},128:{n:"PtgAttrIfError",f:e7},255:{}};function md(e,t,r,n){if(n.biff<8)return on(e,t);for(var i=e.l+t,a=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=x7(e,0,n),a.push(r[o][1]);break;case"PtgMemArea":r[o][2]=y7(e,r[o][1],n),a.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=e.read_shift(4),a.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return t=i-e.l,t!==0&&a.push(on(e,t)),a}function vd(e,t,r){for(var n=e.l+t,i,a,o=[];n!=e.l;)t=n-e.l,a=e[e.l],i=oS[a]||oS[q7[a]],(a===24||a===25)&&(i=(a===24?K7:Y7)[e[e.l+1]]),!i||!i.f?on(e,t):o.push([i.n,i.f(e,t,r)]);return o}function X7(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],a=0;a<n.length;++a){var o=n[a];if(o)switch(o[0]){case 2:i.push('"'+o[1].replace(/"/g,'""')+'"');break;default:i.push(o[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var J7={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Z7(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 KO(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(a){return a.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 sS(e,t,r){var n=KO(e,t,r);return n=="#REF"?n:Z7(n,r)}function Jr(e,t,r,n,i){var a=i&&i.biff||8,o={s:{c:0,r:0}},s=[],l,u,c,f=0,d=0,m,g="";if(!e[0]||!e[0][0])return"";for(var v=-1,y="",x=0,w=e[0].length;x<w;++x){var _=e[0][x];switch(_[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(),v>=0){switch(e[0][v][1][0]){case 0:y=jt(" ",e[0][v][1][1]);break;case 1:y=jt("\r",e[0][v][1][1]);break;default:if(y="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}u=u+y,v=-1}s.push(u+J7[_[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=Dc(_[1][1],o,i),s.push(Fc(c,a));break;case"PtgRefN":c=r?Dc(_[1][1],r,i):_[1][1],s.push(Fc(c,a));break;case"PtgRef3d":f=_[1][1],c=Dc(_[1][2],o,i),g=sS(n,f,i),s.push(g+"!"+Fc(c,a));break;case"PtgFunc":case"PtgFuncVar":var S=_[1][0],T=_[1][1];S||(S=0),S&=127;var E=S==0?[]:s.slice(-S);s.length-=S,T==="User"&&(T=E.shift()),s.push(T+"("+E.join(",")+")");break;case"PtgBool":s.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(_[1]);break;case"PtgNum":s.push(String(_[1]));break;case"PtgStr":s.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(_[1]);break;case"PtgAreaN":m=GT(_[1][1],r?{s:r}:o,i),s.push(Nv(m,i));break;case"PtgArea":m=GT(_[1][1],o,i),s.push(Nv(m,i));break;case"PtgArea3d":f=_[1][1],m=_[1][2],g=sS(n,f,i),s.push(g+"!"+Nv(m,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=_[1][2];var A=(n.names||[])[d-1]||(n[0]||[])[d],P=A?A.Name:"SH33TJSNAME"+String(d);P&&P.slice(0,6)=="_xlfn."&&!i.xlfn&&(P=P.slice(6)),s.push(P);break;case"PtgNameX":var C=_[1][1];d=_[1][2];var N;if(i.biff<=5)C<0&&(C=-C),n[C]&&(N=n[C][d]);else{var M="";if(((n[C]||[])[0]||[])[0]==14849||(((n[C]||[])[0]||[])[0]==1025?n[C][d]&&n[C][d].itab>0&&(M=n.SheetNames[n[C][d].itab-1]+"!"):M=n.SheetNames[d-1]+"!"),n[C]&&n[C][d])M+=n[C][d].Name;else if(n[0]&&n[0][d])M+=n[0][d].Name;else{var k=(KO(n,C,i)||"").split(";;");k[d-1]?M=k[d-1]:M+="SH33TJSERRX"}s.push(M);break}N||(N={Name:"SH33TJSERRY"}),s.push(N.Name);break;case"PtgParen":var H="(",K=")";if(v>=0){switch(y="",e[0][v][1][0]){case 2:H=jt(" ",e[0][v][1][1])+H;break;case 3:H=jt("\r",e[0][v][1][1])+H;break;case 4:K=jt(" ",e[0][v][1][1])+K;break;case 5:K=jt("\r",e[0][v][1][1])+K;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][v][1][0])}v=-1}s.push(H+s.pop()+K);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:_[1][1],r:_[1][0]};var U={c:r.c,r:r.r};if(n.sharedf[Ve(c)]){var Y=n.sharedf[Ve(c)];s.push(Jr(Y,o,U,n,i))}else{var W=!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(Jr(u[1],o,U,n,i)),W=!0;break}W||s.push(_[1])}break;case"PtgArray":s.push("{"+X7(_[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":v=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"+_[1].idx+"[#"+_[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(_));default:throw new Error("Unrecognized Formula Token: "+String(_))}var J=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&v>=0&&J.indexOf(e[0][x][0])==-1){_=e[0][v];var F=!0;switch(_[1][0]){case 4:F=!1;case 0:y=jt(" ",_[1][1]);break;case 5:F=!1;case 1:y=jt("\r",_[1][1]);break;default:if(y="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}s.push((F?y:"")+s.pop()+(F?"":y)),v=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]}function Q7(e,t,r){var n=e.l+t,i=r.biff==2?1:2,a,o=e.read_shift(i);if(o==65535)return[[],on(e,t-2)];var s=vd(e,o,r);return t!==o+i&&(a=md(e,t-o-i,s,r)),e.l=n,[s,a]}function e9(e,t,r){var n=e.l+t,i=r.biff==2?1:2,a,o=e.read_shift(i);if(o==65535)return[[],on(e,t-2)];var s=vd(e,o,r);return t!==o+i&&(a=md(e,t-o-i,s,r)),e.l=n,[s,a]}function t9(e,t,r,n){var i=e.l+t,a=vd(e,n,r),o;return i!==e.l&&(o=md(e,i-e.l,a,r)),[a,o]}function r9(e,t,r){var n=e.l+t,i,a=e.read_shift(2),o=vd(e,a,r);return a==65535?[[],on(e,t-2)]:(t!==a+2&&(i=md(e,n-a-2,o,r)),[o,i])}function n9(e){var t;if(xa(e,e.l+6)!==65535)return[en(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function Mv(e,t,r){var n=e.l+t,i=sa(e);r.biff==2&&++e.l;var a=n9(e),o=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var s=e9(e,n-e.l,r);return{cell:i,val:a[0],formula:s,shared:o>>3&1,tt:a[1]}}function Jp(e,t,r){var n=e.read_shift(4),i=vd(e,n,r),a=e.read_shift(4),o=a>0?md(e,a,i,r):null;return[i,o]}
70var i9=Jp,Zp=Jp,a9=Jp,o9=Jp,s9={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.
70NEXT",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"},YO
vendor: 6,535 bytes, line 70
70={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"},
vendor: 6,149 bytes, line 70
70l9={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 lS(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function Dv(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Uc={},kl={};function Gc(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 XO(e,t,r,n,i,a){try{n.cellNF&&(e.z=ze[t])}catch(s){if(n.WTF)throw s}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=Or(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(ze[t]==null&&hs(u8[t]||"General",t),e.t==="e")e.w=e.w||Ls[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=gf(e.v);else if(e.t==="d"){var o=xn(e.v);(o|0)===o?e.w=o.toString(10):e.w=gf(o)}else{if(e.v===void 0)return"";e.w=Ts(e.v,kl)}else e.t==="d"?e.w=ci(t,xn(e.v),kl):e.w=ci(t,e.v,kl)}catch(s){if(n.WTF)throw s}if(n.cellStyles&&r!=null)try{e.s=a.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=vh(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=vh(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(n.WTF&&a.Fills)throw s}}}function u9(e,t){var r=Wt(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=Ze(r))}var c9=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,f9=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,d9=/<(?:\w:)?hyperlink [^>]*>/mg,h9=/"(\w*:\w*)"/,p9=/<(?:\w:)?col\b[^>]*[\/]?>/g,m9=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,v9=/<(?:\w:)?pageMargins[^>]*\/>/g,JO=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,g9=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,y9=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function x9(e,t,r,n,i,a,o){if(!e)return e;n||(n={"!id":{}});var s=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},u="",c="",f=e.match(f9);f?(u=e.slice(0,f.index),c=e.slice(f.index+f[0].length)):u=c=e;var d=u.match(JO);d?P_(d[0],s,i,r):(d=u.match(g9))&&_9(d[0],d[1]||"",s,i,r);var m=(u.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(m>0){var g=u.slice(m,m+50).match(h9);g&&u9(s,g[1])}var v=u.match(y9);v&&v[1]&&b9(v[1],i);var y=[];if(t.cellStyles){var x=u.match(p9);x&&T9(y,x)}f&&C9(f[1],s,t,l,a,o);var w=c.match(m9);w&&(s["!autofilter"]=S9(w[0]));var _=[],S=c.match(c9);if(S)for(m=0;m!=S.length;++m)_[m]=Wt(S[m].slice(S[m].indexOf('"')+1));var T=c.match(d9);T&&w9(s,T,n);var E=c.match(v9);if(E&&(s["!margins"]=E9(Be(E[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=Ze(l)),t.sheetRows>0&&s["!ref"]){var A=Wt(s["!ref"]);t.sheetRows<=+A.e.r&&(A.e.r=t.sheetRows-1,A.e.r>l.e.r&&(A.e.r=l.e.r),A.e.r<A.s.r&&(A.s.r=A.e.r),A.e.c>l.e.c&&(A.e.c=l.e.c),A.e.c<A.s.c&&(A.s.c=A.e.c),s["!fullref"]=s["!ref"],s["!ref"]=Ze(A))}return y.length>0&&(s["!cols"]=y),_.length>0&&(s["!merges"]=_),s}function P_(e,t,r,n){var i=Be(e);r.Sheets[n]||(r.Sheets[n]={}),i.codeName&&(r.Sheets[n].CodeName=rt(_t(i.codeName)))}function _9(e,t,r,n,i){P_(e.slice(0,e.indexOf(">")),r,n,i)}function w9(e,t,r){for(var n=Array.isArray(e),i=0;i!=t.length;++i){var a=Be(_t(t[i]),!0);if(!a.ref)return;var o=((r||{})["!id"]||[])[a.id];o?(a.Target=o.Target,a.location&&(a.Target+="#"+rt(a.location))):(a.Target="#"+rt(a.location),o={Target:a.Target,TargetMode:"Internal"}),a.Rel=o,a.tooltip&&(a.Tooltip=a.tooltip,delete a.tooltip);for(var s=Wt(a.ref),l=s.s.r;l<=s.e.r;++l)for(var u=s.s.c;u<=s.e.c;++u){var c=Ve({c:u,r:l});n?(e[l]||(e[l]=[]),e[l][u]||(e[l][u]={t:"z",v:void 0}),e[l][u].l=a):(e[c]||(e[c]={t:"z",v:void 0}),e[c].l=a)}}}function E9(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function T9(e,t){for(var r=!1,n=0;n!=t.length;++n){var i=Be(t[n],!0);i.hidden&&(i.hidden=Rt(i.hidden));var a=parseInt(i.min,10)-1,o=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!r&&i.width&&(r=!0,b_(i.width)),Hl(i);a<=o;)e[a++]=Vr(i)}}function S9(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}
vendor: 5,152 bytes, lines 70-71
70var A9=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function b9(e,t){t.Views||(t.Views=[{}]),(e.match(A9)||[]).forEach(function(r,n){var i=Be(r);t.Views[n]||(t.Views[n]={}),+i.zoomScale&&(t.Views[n].zoom=+i.zoomScale),Rt(i.rightToLeft)&&(t.Views[n].RTL=!0)})}var C9=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,a=yf("v"),o=yf("f");return function(l,u,c,f,d,m){for(var g=0,v="",y=[],x=[],w=0,_=0,S=0,T="",E,A,P=0,C=0,N,M,k=0,H=0,K=Array.isArray(m.CellXf),U,Y=[],W=[],J=Array.isArray(u),F=[],ee={},le=!1,R=!!c.sheetStubs,X=l.split(t),q=0,z=X.length;q!=z;++q){v=X[q].trim();var se=v.length;if(se!==0){var pe=0;e:for(g=0;g<se;++g)switch(v[g]){case">":if(v[g-1]!="/"){++g;break e}if(c&&c.cellStyles){if(A=Be(v.slice(pe,g),!0),P=A.r!=null?parseInt(A.r,10):P+1,C=-1,c.sheetRows&&c.sheetRows<P)continue;ee={},le=!1,A.ht&&(le=!0,ee.hpt=parseFloat(A.ht),ee.hpx=Ef(ee.hpt)),A.hidden=="1"&&(le=!0,ee.hidden=!0),A.outlineLevel!=null&&(le=!0,ee.level=+A.outlineLevel),le&&(F[P-1]=ee)}break;case"<":pe=g;break}if(pe>=g)break;if(A=Be(v.slice(pe,g),!0),P=A.r!=null?parseInt(A.r,10):P+1,C=-1,!(c.sheetRows&&c.sheetRows<P)){f.s.r>P-1&&(f.s.r=P-1),f.e.r<P-1&&(f.e.r=P-1),c&&c.cellStyles&&(ee={},le=!1,A.ht&&(le=!0,ee.hpt=parseFloat(A.ht),ee.hpx=Ef(ee.hpt)),A.hidden=="1"&&(le=!0,ee.hidden=!0),A.outlineLevel!=null&&(le=!0,ee.level=+A.outlineLevel),le&&(F[P-1]=ee)),y=v.slice(g).split(e);for(var _e=0;_e!=y.length&&y[_e].trim().charAt(0)=="<";++_e);for(y=y.slice(_e),g=0;g!=y.length;++g)if(v=y[g].trim(),v.length!==0){if(x=v.match(r),w=g,_=0,S=0,v="<c "+(v.slice(0,1)=="<"?">":"")+v,x!=null&&x.length===2){for(w=0,T=x[1],_=0;_!=T.length&&!((S=T.charCodeAt(_)-64)<1||S>26);++_)w=26*w+S;--w,C=w}else++C;for(_=0;_!=v.length&&v.charCodeAt(_)!==62;++_);if(++_,A=Be(v.slice(0,_),!0),A.r||(A.r=Ve({r:P-1,c:C})),T=v.slice(_),E={t:""},(x=T.match(a))!=null&&x[1]!==""&&(E.v=rt(x[1])),c.cellFormula){if((x=T.match(o))!=null&&x[1]!==""){if(E.f=rt(_t(x[1])).replace(/\r\n/g,` 71`),c.xlfn||(E.f=iS(E.f)),x[0].indexOf('t="array"')>-1)E.F=(T.match(i)||[])[1],E.F.indexOf(":")>-1&&Y.push([Wt(E.F),E.F]);else if(x[0].indexOf('t="shared"')>-1){M=Be(x[0]);var te=rt(_t(x[1]));c.xlfn||(te=iS(te)),W[parseInt(M.si,10)]=[M,te,A.r]}}else(x=T.match(/<f[^>]*\/>/))&&(M=Be(x[0]),W[M.si]&&(E.f=$U(W[M.si][1],W[M.si][2],A.r)));var oe=dn(A.r);for(_=0;_<Y.length;++_)oe.r>=Y[_][0].s.r&&oe.r<=Y[_][0].e.r&&oe.c>=Y[_][0].s.c&&oe.c<=Y[_][0].e.c&&(E.F=Y[_][1])}if(A.t==null&&E.v===void 0)if(E.f||E.F)E.v=0,E.t="n";else if(R)E.t="z";else continue;else E.t=A.t||"n";switch(f.s.c>C&&(f.s.c=C),f.e.c<C&&(f.e.c=C),E.t){case"n":if(E.v==""||E.v==null){if(!R)continue;E.t="z"}else E.v=parseFloat(E.v);break;case"s":if(typeof E.v>"u"){if(!R)continue;E.t="z"}else N=Uc[parseInt(E.v,10)],E.v=N.t,E.r=N.r,c.cellHTML&&(E.h=N.h);break;case"str":E.t="s",E.v=E.v!=null?_t(E.v):"",c.cellHTML&&(E.h=m_(E.v));break;case"inlineStr":x=T.match(n),E.t="s",x!=null&&(N=A_(x[1]))?(E.v=N.t,c.cellHTML&&(E.h=N.h)):E.v="";break;case"b":E.v=Rt(E.v);break;case"d":c.cellDates?E.v=Or(E.v,1):(E.v=xn(Or(E.v,1)),E.t="n");break;case"e":(!c||c.cellText!==!1)&&(E.w=E.v),E.v=yO[E.v];break}if(k=H=0,U=null,K&&A.s!==void 0&&(U=m.CellXf[A.s],U!=null&&(U.numFmtId!=null&&(k=U.numFmtId),c.cellStyles&&U.fillId!=null&&(H=U.fillId))),XO(E,k,H,c,d,m),c.cellDates&&K&&E.t=="n"&&wu(ze[k])&&(E.t="d",E.v=Yp(E.v)),A.cm&&c.xlmeta){var Te=(c.xlmeta.Cell||[])[+A.cm-1];Te&&Te.type=="XLDAPR"&&(E.D=!0)}if(J){var O=dn(A.r);u[O.r]||(u[O.r]=[]),u[O.r][O.c]=E}else u[A.r]=E}}}}F.length>0&&(u["!rows"]=F)}}();function P9(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 a=e.read_shift(1);return e.l=n,a&7&&(r.level=a&7),a&16&&(r.hidden=!0),a&32&&(r.hpt=i/20),r}var k9=Fs;function I9(){}function N9(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=Q8(e),r}function O9(e){var t=mi(e);return[t]}function R9(e){var t=Ds(e);return[t]}function M9(e){var t=mi(e),r=e.read_shift(1);return[t,r,"b"]}function D9(e){var t=Ds(e),r=e.read_shift(1);return[t,r,"b"]}function F9(e){var t=mi(e),r=e.read_shift(1);return[t,r,"e"]}function L9(e){var t=Ds(e),r=e.read_shift(1);return[t,r,"e"]}function $9(e){var t=mi(e),r=e.read_shift(4);return[t,r,"s"]}function B9(e){var t=Ds(e),r=e.read_shift(4);return[t,r,"s"]}function U9(e){var t=mi(e),r=en(e);return[t,r,"n"]}function ZO(e){var t=Ds(e),r=en(e);return[t,r,"n"]}function G9(e){var t=mi(e),r=E_(e);return[t,r,"n"]}function V9(e){var t=Ds(e),r=E_(e);return[t,r,"n"]}function H9(e){var t=mi(e),r=__(e);return[t,r,"is"]}function j9(e){var t=mi(e),r=nn(e);return[t,r,"str"]}function z9(e){var t=Ds(e),r=nn(e);return[t,r,"str"]}function W9(e,t,r){var n=e.l+t,i=mi(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"b"];if(r.cellFormula){e.l+=2;var s=Zp(e,n-e.l,r);o[3]=Jr(s,null,i,r.supbooks,r)}else e.l=n;return o}function q9(e,t,r){var n=e.l+t,i=mi(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"e"];if(r.cellFormula){e.l+=2;var s=Zp(e,n-e.l,r);o[3]=Jr(s,null,i,r.supbooks,r)}else e.l=n;return o}function K9(e,t,r){var n=e.l+t,i=mi(e);i.r=r["!row"];var a=en(e),o=[i,a,"n"];
vendor: 9,085 bytes, line 71
71if(r.cellFormula){e.l+=2;var s=Zp(e,n-e.l,r);o[3]=Jr(s,null,i,r.supbooks,r)}else e.l=n;return o}function Y9(e,t,r){var n=e.l+t,i=mi(e);i.r=r["!row"];var a=nn(e),o=[i,a,"str"];if(r.cellFormula){e.l+=2;var s=Zp(e,n-e.l,r);o[3]=Jr(s,null,i,r.supbooks,r)}else e.l=n;return o}var X9=Fs;function J9(e,t){var r=e.l+t,n=Fs(e),i=w_(e),a=nn(e),o=nn(e),s=nn(e);e.l=r;var l={rfx:n,relId:i,loc:a,display:s};return o&&(l.Tooltip=o),l}function Z9(){}function Q9(e,t,r){var n=e.l+t,i=mO(e),a=e.read_shift(1),o=[i];if(o[2]=a,r.cellFormula){var s=i9(e,n-e.l,r);o[1]=s}else e.l=n;return o}function eG(e,t,r){var n=e.l+t,i=Fs(e),a=[i];if(r.cellFormula){var o=o9(e,n-e.l,r);a[1]=o,e.l=n}else e.l=n;return a}var tG=["left","right","top","bottom","header","footer"];function rG(e){var t={};return tG.forEach(function(r){t[r]=en(e)}),t}function nG(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function iG(){}function aG(){}function oG(e,t,r,n,i,a,o){if(!e)return e;var s=t||{};n||(n={"!id":{}});var l=s.dense?[]:{},u,c={s:{r:2e6,c:2e6},e:{r:0,c:0}},f=!1,d=!1,m,g,v,y,x,w,_,S,T,E=[];s.biff=12,s["!row"]=0;var A=0,P=!1,C=[],N={},M=s.supbooks||i.supbooks||[[]];if(M.sharedf=N,M.arrayf=C,M.SheetNames=i.SheetNames||i.Sheets.map(function(J){return J.name}),!s.supbooks&&(s.supbooks=M,i.Names))for(var k=0;k<i.Names.length;++k)M[0][k+1]=i.Names[k];var H=[],K=[],U=!1;xh[16]={n:"BrtShortReal",f:ZO};var Y;if($a(e,function(F,ee,le){if(!d)switch(le){case 148:u=F;break;case 0:m=F,s.sheetRows&&s.sheetRows<=m.r&&(d=!0),S=Hr(y=m.r),s["!row"]=m.r,(F.hidden||F.hpt||F.level!=null)&&(F.hpt&&(F.hpx=Ef(F.hpt)),K[F.r]=F);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(g={t:F[2]},F[2]){case"n":g.v=F[1];break;case"s":_=Uc[F[1]],g.v=_.t,g.r=_.r;break;case"b":g.v=!!F[1];break;case"e":g.v=F[1],s.cellText!==!1&&(g.w=Ls[g.v]);break;case"str":g.t="s",g.v=F[1];break;case"is":g.t="s",g.v=F[1].t;break}if((v=o.CellXf[F[0].iStyleRef])&&XO(g,v.numFmtId,null,s,a,o),x=F[0].c==-1?x+1:F[0].c,s.dense?(l[y]||(l[y]=[]),l[y][x]=g):l[vr(x)+S]=g,s.cellFormula){for(P=!1,A=0;A<C.length;++A){var R=C[A];m.r>=R[0].s.r&&m.r<=R[0].e.r&&x>=R[0].s.c&&x<=R[0].e.c&&(g.F=Ze(R[0]),P=!0)}!P&&F.length>3&&(g.f=F[3])}if(c.s.r>m.r&&(c.s.r=m.r),c.s.c>x&&(c.s.c=x),c.e.r<m.r&&(c.e.r=m.r),c.e.c<x&&(c.e.c=x),s.cellDates&&v&&g.t=="n"&&wu(ze[v.numFmtId])){var X=as(g.v);X&&(g.t="d",g.v=new Date(X.y,X.m-1,X.d,X.H,X.M,X.S,X.u))}Y&&(Y.type=="XLDAPR"&&(g.D=!0),Y=void 0);break;case 1:case 12:if(!s.sheetStubs||f)break;g={t:"z",v:void 0},x=F[0].c==-1?x+1:F[0].c,s.dense?(l[y]||(l[y]=[]),l[y][x]=g):l[vr(x)+S]=g,c.s.r>m.r&&(c.s.r=m.r),c.s.c>x&&(c.s.c=x),c.e.r<m.r&&(c.e.r=m.r),c.e.c<x&&(c.e.c=x),Y&&(Y.type=="XLDAPR"&&(g.D=!0),Y=void 0);break;case 176:E.push(F);break;case 49:Y=((s.xlmeta||{}).Cell||[])[F-1];break;case 494:var q=n["!id"][F.relId];for(q?(F.Target=q.Target,F.loc&&(F.Target+="#"+F.loc),F.Rel=q):F.relId==""&&(F.Target="#"+F.loc),y=F.rfx.s.r;y<=F.rfx.e.r;++y)for(x=F.rfx.s.c;x<=F.rfx.e.c;++x)s.dense?(l[y]||(l[y]=[]),l[y][x]||(l[y][x]={t:"z",v:void 0}),l[y][x].l=F):(w=Ve({c:x,r:y}),l[w]||(l[w]={t:"z",v:void 0}),l[w].l=F);break;case 426:if(!s.cellFormula)break;C.push(F),T=s.dense?l[y][x]:l[vr(x)+S],T.f=Jr(F[1],c,{r:m.r,c:x},M,s),T.F=Ze(F[0]);break;case 427:if(!s.cellFormula)break;N[Ve(F[0].s)]=F[1],T=s.dense?l[y][x]:l[vr(x)+S],T.f=Jr(F[1],c,{r:m.r,c:x},M,s);break;case 60:if(!s.cellStyles)break;for(;F.e>=F.s;)H[F.e--]={width:F.w/256,hidden:!!(F.flags&1),level:F.level},U||(U=!0,b_(F.w/256)),Hl(H[F.e+1]);break;case 161:l["!autofilter"]={ref:Ze(F)};break;case 476:l["!margins"]=F;break;case 147:i.Sheets[r]||(i.Sheets[r]={}),F.name&&(i.Sheets[r].CodeName=F.name),(F.above||F.left)&&(l["!outline"]={above:F.above,left:F.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),F.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:f=!0;break;case 36:f=!1;break;case 37:f=!0;break;case 38:f=!1;break;default:if(!ee.T){if(!f||s.WTF)throw new Error("Unexpected record 0x"+le.toString(16))}}},s),delete s.supbooks,delete s["!row"],!l["!ref"]&&(c.s.r<2e6||u&&(u.e.r>0||u.e.c>0||u.s.r>0||u.s.c>0))&&(l["!ref"]=Ze(u||c)),s.sheetRows&&l["!ref"]){var W=Wt(l["!ref"]);s.sheetRows<=+W.e.r&&(W.e.r=s.sheetRows-1,W.e.r>c.e.r&&(W.e.r=c.e.r),W.e.r<W.s.r&&(W.s.r=W.e.r),W.e.c>c.e.c&&(W.e.c=c.e.c),W.e.c<W.s.c&&(W.s.c=W.e.c),l["!fullref"]=l["!ref"],l["!ref"]=Ze(W))}return E.length>0&&(l["!merges"]=E),H.length>0&&(l["!cols"]=H),K.length>0&&(l["!rows"]=K),l}function sG(e){var t=[],r=e.match(/^<c:numCache>/),n;(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(a){var o=a.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);o&&(t[+o[1]]=r?+o[2]:o[2])});var i=rt((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(a){n=a.replace(/<.*?>/g,"")}),[t,i,n]}function lG(e,t,r,n,i,a){var o=a||{"!type":"chart"};if(!e)return a;var s=0,l=0,u="A",c={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(f){var d=sG(f);c.s.r=c.s.c=0,c.e.c=s,u=vr(s),d[0].forEach(function(m,g){o[u+Hr(g)]={t:"n",v:m,z:d[1]},l=g}),c.e.r<l&&(c.e.r=l),++s}),s>0&&(o["!ref"]=Ze(c)),o}function uG(e,t,r,n,i){if(!e)return e;n||(n={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},o,s=e.match(JO);return s&&P_(s[0],a,i,r),(o=e.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=o[1]),n["!id"][a["!rel"]]&&(a["!drawel"]=n["!id"][a["!rel"]]),a}function cG(e,t){e.l+=10;var r=nn(e);return{name:r}}function fG(e,t,r,n,i){if(!e)return e;n||(n={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},o=!1;return $a(e,function(l,u,c){switch(c){case 550:a["!rel"]=l;break;case 651:i.Sheets[r]||(i.Sheets[r]={}),l.name&&(i.Sheets[r].CodeName=l.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(!(u.T>0)){if(!(u.T<0)){if(!o||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}}},t),n["!id"][a["!rel"]]&&(a["!drawel"]=n["!id"][a["!rel"]]),a}var QO=[["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"]],dG=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],hG=[],pG=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function uS(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],i=0;i!=t.length;++i){var a=t[i];if(n[a[0]]==null)n[a[0]]=a[1];else switch(a[2]){case"bool":typeof n[a[0]]=="string"&&(n[a[0]]=Rt(n[a[0]]));break;case"int":typeof n[a[0]]=="string"&&(n[a[0]]=parseInt(n[a[0]],10));break}}}function cS(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(e[n[0]]==null)e[n[0]]=n[1];else switch(n[2]){case"bool":typeof e[n[0]]=="string"&&(e[n[0]]=Rt(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function eR(e){cS(e.WBProps,QO),cS(e.CalcPr,pG),uS(e.WBView,dG),uS(e.Sheets,hG),kl.date1904=Rt(e.WBProps.date1904)}var mG="][*?/\\".split("");function vG(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return mG.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}var gG=/<\w+:workbook/;function yG(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,i="xmlns",a={},o=0;if(e.replace(sn,function(l,u){var c=Be(l);switch(oa(c[0])){case"<?xml":break;case"<workbook":l.match(gG)&&(i="xmlns"+l.match(/<(\w+):/)[1]),r.xmlns=c[i];break;case"</workbook>":break;case"<fileVersion":delete c[0],r.AppVersion=c;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;
vendor: 9,219 bytes, lines 71-73
71case"<workbookPr":case"<workbookPr/>":QO.forEach(function(f){if(c[f[0]]!=null)switch(f[2]){case"bool":r.WBProps[f[0]]=Rt(c[f[0]]);break;case"int":r.WBProps[f[0]]=parseInt(c[f[0]],10);break;default:r.WBProps[f[0]]=c[f[0]]}}),c.codeName&&(r.WBProps.CodeName=_t(c.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete c[0],r.WBView.push(c);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(c.state){case"hidden":c.Hidden=1;break;case"veryHidden":c.Hidden=2;break;default:c.Hidden=0}delete c.state,c.name=rt(_t(c.name)),delete c[0],r.Sheets.push(c);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":n=!0;break;case"</definedNames>":n=!1;break;case"<definedName":a={},a.Name=_t(c.name),c.comment&&(a.Comment=c.comment),c.localSheetId&&(a.Sheet=+c.localSheetId),Rt(c.hidden||"0")&&(a.Hidden=!0),o=u+l.length;break;case"</definedName>":a.Ref=rt(_t(e.slice(o,u))),r.Names.push(a);break;case"<definedName/>":break;case"<calcPr":delete c[0],r.CalcPr=c;break;case"<calcPr/>":delete c[0],r.CalcPr=c;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</AlternateContent>":n=!1;break;case"<revisionPtr":break;default:if(!n&&t.WTF)throw new Error("unrecognized "+c[0]+" in workbook")}return l}),F8.indexOf(r.xmlns)===-1)throw new Error("Unknown Namespace: "+r.xmlns);return eR(r),r}function xG(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=dy(e),r.name=nn(e),r}function _G(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?nn(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 wG(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function EG(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=e$(e),o=a9(e,0,r),s=w_(e);e.l=n;var l={Name:a,Ptg:o};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function TG(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],i=!1;t||(t={}),t.biff=12;var a=[],o=[[]];return o.SheetNames=[],o.XTI=[],xh[16]={n:"BrtFRTArchID$",f:wG},$a(e,function(l,u,c){switch(c){case 156:o.SheetNames.push(l.name),r.Sheets.push(l);break;case 153:r.WBProps=l;break;case 39:l.Sheet!=null&&(t.SID=l.Sheet),l.Ref=Jr(l.Ptg,null,null,o,t),delete t.SID,delete l.Ptg,a.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:o[0].length?o.push([c,l]):o[0]=[c,l],o[o.length-1].XTI=[];break;case 362:o.length===0&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(l),o.XTI=o.XTI.concat(l);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(c),i=!0;break;case 36:n.pop(),i=!1;break;case 37:n.push(c),i=!0;break;case 38:n.pop(),i=!1;break;case 16:break;default:if(!u.T){if(!i||t.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+c.toString(16))}}},t),eR(r),r.Names=a,r.supbooks=o,r}function SG(e,t,r){return t.slice(-4)===".bin"?TG(e,r):yG(e,r)}function AG(e,t,r,n,i,a,o,s){return t.slice(-4)===".bin"?oG(e,n,r,i,a,o,s):x9(e,n,r,i,a,o,s)}function bG(e,t,r,n,i,a,o,s){return t.slice(-4)===".bin"?fG(e,n,r,i,a):uG(e,n,r,i,a)}function CG(e,t,r,n,i,a,o,s){return t.slice(-4)===".bin"?DU():FU()}function PG(e,t,r,n,i,a,o,s){return t.slice(-4)===".bin"?RU():MU()}function kG(e,t,r,n){return t.slice(-4)===".bin"?XB(e,r,n):jB(e,r,n)}function IG(e,t,r){return UO(e,r)}function NG(e,t,r){return t.slice(-4)===".bin"?dB(e,r):cB(e,r)}function OG(e,t,r){return t.slice(-4)===".bin"?IU(e,r):AU(e,r)}function RG(e,t,r){return t.slice(-4)===".bin"?EU(e):_U(e)}function MG(e,t,r,n){return r.slice(-4)===".bin"?TU(e,t,r,n):void 0}function DG(e,t,r){return t.slice(-4)===".bin"?yU(e,t,r):xU(e,t,r)}var tR=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,rR=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function _i(e,t){var r=e.split(/\s+/),n=[];if(n[0]=r[0],r.length===1)return n;var i=e.match(tR),a,o,s,l;if(i)for(l=0;l!=i.length;++l)a=i[l].match(rR),(o=a[1].indexOf(":"))===-1?n[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?s="xmlns"+a[1].slice(6):s=a[1].slice(o+1),n[s]=a[2].slice(1,a[2].length-1));return n}function FG(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var n=e.match(tR),i,a,o,s;if(n)for(s=0;s!=n.length;++s)i=n[s].match(rR),(a=i[1].indexOf(":"))===-1?r[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?o="xmlns"+i[1].slice(6):o=i[1].slice(a+1),r[o]=i[2].slice(1,i[2].length-1));return r}var Vc;function LG(e,t){var r=Vc[e]||rt(e);return r==="General"?Ts(t):ci(r,t)}function $G(e,t,r,n){var i=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Rt(n);break;case"i2":case"int":i=parseInt(n,10);break;case"r4":case"float":i=parseFloat(n);break;case"date":case"dateTime.tz":i=Or(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[rt(t)]=i}function BG(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||Ls[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=gf(e.v):e.w=Ts(e.v):e.w=LG(t||"General",e.v)}catch(a){if(r.WTF)throw a}try{var n=Vc[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&wu(n)){var i=as(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(a){if(r.WTF)throw a}}}function UG(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=$B[n.Pattern]||n.Pattern)}e[t.ID]=t}function GG(e,t,r,n,i,a,o,s,l,u){var c="General",f=n.StyleID,d={};u=u||{};var m=[],g=0;for(f===void 0&&s&&(f=s.StyleID),f===void 0&&o&&(f=o.StyleID);a[f]!==void 0&&(a[f].nf&&(c=a[f].nf),a[f].Interior&&m.push(a[f].Interior),!!a[f].Parent);)f=a[f].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=Rt(e);break;case"String":n.t="s",n.r=OT(rt(e)),n.v=e.indexOf("<")>-1?rt(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(Or(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=rt(e):n.v<60&&(n.v=n.v-1),(!c||c=="General")&&(c="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=yO[e],u.cellText!==!1&&(n.w=e);break;default:e==""&&t==""?n.t="z":(n.t="s",n.v=OT(t||e));break}if(BG(n,c,u),u.cellFormula!==!1)if(n.Formula){var v=rt(n.Formula);v.charCodeAt(0)==61&&(v=v.slice(1)),n.f=Pl(v,i),delete n.Formula,n.ArrayRange=="RC"?n.F=Pl("RC:RC",i):n.ArrayRange&&(n.F=Pl(n.ArrayRange,i),l.push([Wt(n.F),n.F]))}else for(g=0;g<l.length;++g)i.r>=l[g][0].s.r&&i.r<=l[g][0].e.r&&i.c>=l[g][0].s.c&&i.c<=l[g][0].e.c&&(n.F=l[g][1]);u.cellStyles&&(m.forEach(function(y){!d.patternType&&y.patternType&&(d.patternType=y.patternType)}),n.s=d),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function VG(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,` 72`).replace(/\r/g,` 73`),e.v=e.w=e.ixfe=void 0}function Fv(e,t){var r=t||{};jN();var n=xc(v_(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(n=_t(n));var i=n.slice(0,1024).toLowerCase(),a=!1;if(i=i.replace(/".*?"/g,""),(i.indexOf(">")&1023)>Math.min(i.indexOf(",")&1023,i.indexOf(";")&1023)){var o=Vr(r);return o.type="string",_f.to_workbook(n,o)}if(i.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Qe){i.indexOf("<"+Qe)>=0&&(a=!0)}),a)return JG(n,r);Vc={"General Number":"General","General Date":ze[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":ze[15],"
73Short Date":ze[14],"Long Time":ze[19],"Medium Time":ze[18],"Short Time":ze[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:ze[2],Standard:ze[4],Percent:ze[10],Scientific:ze[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var s,l=[],u,c={},f=[],d=r.dense?[]:{},m="",g={},v={},y=_i('<Data ss:Type="String">'),x=0,w=0,_=0,S={s:{r:2e6,c:2e6},e:{r:0,c:0}},T={},E={},A="",P=0,C=[],N={},M={},k=0,H=[],K=[],U={},Y=[],W,J=!1,F=[],ee=[],le={},R=0,X=0,q={Sheets:[],WBProps:{date1904:!1}},z={};xf.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var se="";s=xf.exec(n);)switch(s[3]=(se=s[3]).toLowerCase()){case"data":if(se=="data"){if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break}if(l[l.length-1][1])break;s[1]==="/"?GG(n.slice(x,s.index),A,y,l[l.length-1][0]=="comment"?U:g,{c:w,r:_},T,Y[w],v,F,r):(A="",y=_i(s[0]),x=s.index+s[0].length);break;case"cell":if(s[1]==="/")if(K.length>0&&(g.c=K),(!r.sheetRows||r.sheetRows>_)&&g.v!==void 0&&(r.dense?(d[_]||(d[_]=[]),d[_][w]=g):d[vr(w)+Hr(_)]=g),g.HRef&&(g.l={Target:rt(g.HRef)},g.HRefScreenTip&&(g.l.Tooltip=g.HRefScreenTip),delete g.HRef,delete g.HRefScreenTip),(g.MergeAcross||g.MergeDown)&&(R=w+(parseInt(g.MergeAcross,10)|0),X=_+(parseInt(g.MergeDown,10)|0),C.push({s:{c:w,r:_},e:{c:R,r:X}})),!r.sheetStubs)g.MergeAcross?w=R+1:++w;else if(g.MergeAcross||g.MergeDown){for(var pe=w;pe<=R;++pe)for(var _e=_;_e<=X;++_e)(pe>w||_e>_)&&(r.dense?(d[_e]||(d[_e]=[]),d[_e][pe]={t:"z"}):d[vr(pe)+Hr(_e)]={t:"z"});w=R+1}else++w;else g=FG(s[0]),g.Index&&(w=+g.Index-1),w<S.s.c&&(S.s.c=w),w>S.e.c&&(S.e.c=w),s[0].slice(-2)==="/>"&&++w,K=[];break;case"row":s[1]==="/"||s[0].slice(-2)==="/>"?(_<S.s.r&&(S.s.r=_),_>S.e.r&&(S.e.r=_),s[0].slice(-2)==="/>"&&(v=_i(s[0]),v.Index&&(_=+v.Index-1)),w=0,++_):(v=_i(s[0]),v.Index&&(_=+v.Index-1),le={},(v.AutoFitHeight=="0"||v.Height)&&(le.hpx=parseInt(v.Height,10),le.hpt=BO(le.hpx),ee[_]=le),v.Hidden=="1"&&(le.hidden=!0,ee[_]=le));break;case"worksheet":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"));f.push(m),S.s.r<=S.e.r&&S.s.c<=S.e.c&&(d["!ref"]=Ze(S),r.sheetRows&&r.sheetRows<=S.e.r&&(d["!fullref"]=d["!ref"],S.e.r=r.sheetRows-1,d["!ref"]=Ze(S))),C.length&&(d["!merges"]=C),Y.length>0&&(d["!cols"]=Y),ee.length>0&&(d["!rows"]=ee),c[m]=d}else S={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=w=0,l.push([s[3],!1]),u=_i(s[0]),m=rt(u.Name),d=r.dense?[]:{},C=[],F=[],ee=[],z={name:m,Hidden:0},q.Sheets.push(z);break;case"table":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else{if(s[0].slice(-2)=="/>")break;l.push([s[3],!1]),Y=[],J=!1}break;case"style":s[1]==="/"?UG(T,E,r):E=_i(s[0]);break;case"numberformat":E.nf=rt(_i(s[0]).Format||"General"),Vc[E.nf]&&(E.nf=Vc[E.nf]);for(var te=0;te!=392&&ze[te]!=E.nf;++te);if(te==392){for(te=57;te!=392;++te)if(ze[te]==null){hs(E.nf,te);break}}break;case"column":if(l[l.length-1][0]!=="table")break;if(W=_i(s[0]),W.Hidden&&(W.hidden=!0,delete W.Hidden),W.Width&&(W.wpx=parseInt(W.Width,10)),!J&&W.wpx>10){J=!0,fn=LO;for(var oe=0;oe<Y.length;++oe)Y[oe]&&Hl(Y[oe])}J&&Hl(W),Y[W.Index-1||Y.length]=W;for(var Te=0;Te<+W.Span;++Te)Y[Y.length]=Vr(W);break;case"namedrange":if(s[1]==="/")break;q.Names||(q.Names=[]);var O=Be(s[0]),$e={Name:O.Name,Ref:Pl(O.RefersTo.slice(1),{r:0,c:0})};q.Sheets.length>0&&($e.Sheet=q.Sheets.length-1),q.Names.push($e);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(s[0].slice(-2)==="/>")break;s[1]==="/"?A+=n.slice(P,s.index):P=s.index+s[0].length;break;case"interior":if(!r.cellStyles)break;E.Interior=_i(s[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(s[0].slice(-2)==="/>")break;s[1]==="/"?A$(N,se,n.slice(k,s.index)):k=s.index+s[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else l.push([s[3],!1]);break;case"comment":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"));VG(U),K.push(U)}else l.push([s[3],!1]),u=_i(s[0]),U={a:u.Author};break;case"autofilter":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else if(s[0].charAt(s[0].length-2)!=="/"){var Ce=_i(s[0]);d["!autofilter"]={ref:Pl(Ce.Range).replace(/\$/g,"")},l.push([s[3],!0])}break;case"name":break;case"datavalidation":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(s[1]==="/"){if((u=l.pop())[0]!==s[3])throw new Error("Bad state: "+u.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"null":break;default:if(l.length==0&&s[3]=="document"||l.length==0&&s[3]=="uof")return vS(n,r);var Me=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(s[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Me=!1}break;case"componentoptions":switch(s[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Me=!1}break;case"excelworkbook":switch(s[3]){case"date1904":q.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Me=!1}break;case"workbookoptions":switch(s[3]){case"owcversion":break;case"height":break;case"width":break;default:Me=!1}break;case"worksheetoptions":switch(s[3]){case"visible":if(s[0].slice(-2)!=="/>")if(s[1]==="/")switch(n.slice(k,s.index)){case"SheetHidden":z.Hidden=1;break;case"SheetVeryHidden":z.Hidden=2;break}else k=s.index+s[0].length;break;case"header":d["!margins"]||Gc(d["!margins"]={},"xlml"),isNaN(+Be(s[0]).Margin)||(d["!margins"].header=+Be(s[0]).Margin);break;case"footer":d["!margins"]||Gc(d["!margins"]={},"xlml"),isNaN(+Be(s[0]).Margin)||(d["!margins"].footer=+Be(s[0]).Margin);break;case"pagemargins":var Re=Be(s[0]);d["!margins"]||Gc(d["!margins"]={}
vendor: 68,380 bytes, lines 73-75
73,"xlml"),isNaN(+Re.Top)||(d["!margins"].top=+Re.Top),isNaN(+Re.Left)||(d["!margins"].left=+Re.Left),isNaN(+Re.Right)||(d["!margins"].right=+Re.Right),isNaN(+Re.Bottom)||(d["!margins"].bottom=+Re.Bottom);break;case"displayrighttoleft":q.Views||(q.Views=[]),q.Views[0]||(q.Views[0]={}),q.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:Me=!1}break;case"pivottable":case"pivotcache":switch(s[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:Me=!1}break;case"pagebreaks":switch(s[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:Me=!1}break;case"autofilter":switch(s[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:Me=!1}break;case"querytable":switch(s[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:Me=!1}break;case"datavalidation":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:Me=!1}break;case"sorting":case"conditionalformatting":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:Me=!1}break;case"mapinfo":case"schema":case"data":switch(s[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:Me=!1}break;case"smarttags":break;default:Me=!1;break}if(Me||s[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+s[3]+"|"+l.join("|");if(l[l.length-1][0]==="customdocumentproperties"){if(s[0].slice(-2)==="/>")break;s[1]==="/"?$G(M,se,H,n.slice(k,s.index)):(H=s,k=s.index+s[0].length);break}if(r.WTF)throw"Unrecognized tag: "+s[3]+"|"+l.join("|")}var he={};return!r.bookSheets&&!r.bookProps&&(he.Sheets=c),he.SheetNames=f,he.Workbook=q,he.SSF=Vr(ze),he.Props=N,he.Custprops=M,he}function vy(e,t){switch(N_(t=t||{}),t.type||"base64"){case"base64":return Fv(Hn(e),t);case"binary":case"buffer":case"file":return Fv(e,t);case"array":return Fv(Ms(e),t)}}function HG(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=n$(r),r.length-r.l<=4)return t;var n=r.read_shift(4);if(n==0||n>40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(n=r.read_shift(4),n!==1907505652)||(t.UnicodeClipboardFormat=i$(r),n=r.read_shift(4),n==0||n>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var jG=[60,1084,2066,2165,2175];function zG(e,t,r,n,i){var a=n,o=[],s=r.slice(r.l,r.l+a);if(i&&i.enc&&i.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(s)}o.push(s),r.l+=a;for(var l=xa(r,r.l),u=gy[l],c=0;u!=null&&jG.indexOf(l)>-1;)a=xa(r,r.l+2),c=r.l+4,l==2066?c+=4:(l==2165||l==2175)&&(c+=12),s=r.slice(c,r.l+4+a),o.push(s),r.l+=4+a,u=gy[l=xa(r,r.l)];var f=no(o);Ur(f,0);var d=0;f.lens=[];for(var m=0;m<o.length;++m)f.lens.push(d),d+=o[m].length;if(f.length<n)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+f.length+" < "+n;return t.f(f,f.length,i)}function Wi(e,t,r){if(e.t!=="z"&&e.XF){var n=0;try{n=e.z||e.XF.numFmtId||0,t.cellNF&&(e.z=ze[n])}catch(a){if(t.WTF)throw a}if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||Ls[e.v]:n===0||n=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=gf(e.v):e.w=Ts(e.v):e.w=ci(n,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(a){if(t.WTF)throw a}if(t.cellDates&&n&&e.t=="n"&&wu(ze[n]||String(n))){var i=as(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function o0(e,t,r){return{v:e,ixfe:t,t:r}}function WG(e,t){var r={opts:{}},n={},i=t.dense?[]:{},a={},o={},s=null,l=[],u="",c={},f,d="",m,g,v,y,x={},w=[],_,S,T=[],E=[],A={Sheets:[],WBProps:{date1904:!1},Views:[{}]},P={},C=function(je){return je<8?ps[je]:je<64&&E[je-8]||ps[je]},N=function(je,et,Mr){var Ft=et.XF.data;if(!(!Ft||!Ft.patternType||!Mr||!Mr.cellStyles)){et.s={},et.s.patternType=Ft.patternType;var Xt;(Xt=wf(C(Ft.icvFore)))&&(et.s.fgColor={rgb:Xt}),(Xt=wf(C(Ft.icvBack)))&&(et.s.bgColor={rgb:Xt})}},M=function(je,et,Mr){if(!(le>1)&&!(Mr.sheetRows&&je.r>=Mr.sheetRows)){if(Mr.cellStyles&&et.XF&&et.XF.data&&N(je,et,Mr),delete et.ixfe,delete et.XF,f=je,d=Ve(je),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),je.r<o.s.r&&(o.s.r=je.r),je.c<o.s.c&&(o.s.c=je.c),je.r+1>o.e.r&&(o.e.r=je.r+1),je.c+1>o.e.c&&(o.e.c=je.c+1),Mr.cellFormula&&et.f){for(var Ft=0;Ft<w.length;++Ft)if(!(w[Ft][0].s.c>je.c||w[Ft][0].s.r>je.r)&&!(w[Ft][0].e.c<je.c||w[Ft][0].e.r<je.r)){et.F=Ze(w[Ft][0]),(w[Ft][0].s.c!=je.c||w[Ft][0].s.r!=je.r)&&delete et.f,et.f&&(et.f=""+Jr(w[Ft][1],o,je,F,k));break}}Mr.dense?(i[je.r]||(i[je.r]=[]),i[je.r][je.c]=et):i[d]=et}},k={enc:!1,sbcch:0,snames:[],sharedf:x,arrayf:w,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(k.password=t.password);var H,K=[],U=[],Y=[],W=[],J=!1,F=[];F.SheetNames=k.snames,F.sharedf=k.sharedf,F.arrayf=k.arrayf,F.names=[],F.XTI=[];var ee=0,le=0,R=0,X=[],q=[],z;k.codepage=1200,Ni(1200);for(var se=!1;e.l<e.length-1;){var pe=e.l,_e=e.read_shift(2);if(_e===0&&ee===10)break;var te=e.l===e.length?0:e.read_shift(2),oe=gy[_e];if(oe&&oe.f){if(t.bookSheets&&ee===133&&_e!==133)break;if(ee=_e,oe.r===2||oe.r==12){var Te=e.read_shift(2);if(te-=2,!k.enc&&Te!==_e&&((Te&255)<<8|Te>>8)!==_e)throw new Error("rt mismatch: "+Te+"!="+_e);oe.r==12&&(e.l+=10,te-=10)}var O={};if(_e===10?O=oe.f(e,te,k):O=zG(_e,oe,e,te,k),le==0&&[9,521,1033,2057].indexOf(ee)===-1)continue;switch(_e){case 34:r.opts.Date1904=A.WBProps.date1904=O;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(k.enc||(e.l=0),k.enc=O,!t.password)throw new Error("File is password-protected");if(O.valid==null)throw new Error("Encryption scheme unsupported");if(!O.valid)throw new Error("Password is incorrect");break;case 92:k.lastuser=O;break;case 66:var $e=Number(O);switch($e){case 21010:$e=1200;break;case 32768:$e=1e4;break;case 32769:$e=1252;break}Ni(k.codepage=$e),se=!0;break;case 317:k.rrtabid=O;break;case 25:k.winlocked=O;break;case 439:r.opts.RefreshAll=O;break;case 12:r.opts.CalcCount=O;break;case 16:r.opts.CalcDelta=O;break;case 17:r.opts.CalcIter=O;break;case 13:r.opts.CalcMode=O;break;case 14:r.opts.CalcPrecision=O;break;case 95:r.opts.CalcSaveRecalc=O;break;case 15:k.CalcRefMode=O;break;case 2211:r.opts.FullCalc=O;break;case 129:O.fDialog&&(i["!type"]="dialog"),O.fBelow||((i["!outline"]||(i["!outline"]={})).above=!0),O.fRight||((i["!outline"]||(i["!outline"]={})).left=!0);break;case 224:T.push(O);break;case 430:F.push([O]),F[F.length-1].XTI=[];break;case 35:case 547:F[F.length-1].push(O);break;case 24:case 536:z={Name:O.Name,Ref:Jr(O.rgce,o,null,F,k)},O.itab>0&&(z.Sheet=O.itab-1),F.names.push(z),F[0]||(F[0]=[],F[0].XTI=[]),F[F.length-1].push(O),O.Name=="_xlnm._FilterDatabase"&&O.itab>0&&O.rgce&&O.rgce[0]&&O.rgce[0][0]&&O.rgce[0][0][0]=="PtgArea3d"&&(q[O.itab-1]={ref:Ze(O.rgce[0][0][1][2])});break;case 22:k.ExternCount=O;break;case 23:F.length==0&&(F[0]=[],F[0].XTI=[]),F[F.length-1].XTI=F[F.length-1].XTI.concat(O),F.XTI=F.XTI.concat(O);break;case 2196:if(k.biff<8)break;z!=null&&(z.Comment=O[1]);break;case 18:i["!protect"]=O;break;case 19:O!==0&&k.WTF&&console.error("Password verifier: "+O);break;case 133:a[O.pos]=O,k.snames.push(O.name);break;case 10:{if(--le)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,i["!ref"]=Ze(o),t.sheetRows&&t.sheetRows<=o.e.r){var Ce=o.e.r;o.e.r=t.sheetRows-1,i["!fullref"]=i["!ref"],i["!ref"]=Ze(o),o.e.r=Ce}o.e.r++,o.e.c++}K.length>0&&(i["!merges"]=K),U.length>0&&(i["!objects"]=U),Y.length>0&&(i["!cols"]=Y),W.length>0&&(i["!rows"]=W),A.Sheets.push(P)}u===""?c=i:n[u]=i,i=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(k.biff===8&&(k.biff={9:2,521:3,1033:4}[_e]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[O.BIFFVer]||8),k.biffguess=O.BIFFVer==0,O.BIFFVer==0&&O.dt==4096&&(k.biff=5,se=!0,Ni(k.codepage=28591)),k.biff==8&&O.BIFFVer==0&&O.dt==16&&(k.biff=2),le++)break;if(i=t.dense?[]:{},k.biff<8&&!se&&(se=!0,Ni(k.codepage=t.codepage||1252)),k.biff<5||O.BIFFVer==0&&O.dt==4096){u===""&&(u="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var Me={pos:e.l-te,name:u};a[Me.pos]=Me,k.snames.push(u)}else u=(a[pe]||{name:""}).name;O.dt==32&&(i["!type"]="chart"),O.dt==64&&(i["!type"]="macro"),K=[],U=[],k.arrayf=w=[],Y=[],W=[],J=!1,P={Hidden:(a[pe]||{hs:0}).hs,name:u}}break;case 515:case 3:case 2:i["!type"]=="chart"&&(t.dense?(i[O.r]||[])[O.c]:i[Ve({c:O.c,r:O.r})])&&++O.c,_={ixfe:O.ixfe,XF:T[O.ixfe]||{},v:O.val,t:"n"},R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M({c:O.c,r:O.r},_,t);break;case 5:case 517:_={ixfe:O.ixfe,XF:T[O.ixfe],v:O.val,t:O.t},R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M({c:O.c,r:O.r},_,t);break;case 638:_={ixfe:O.ixfe,XF:T[O.ixfe],v:O.rknum,t:"n"},R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M({c:O.c,r:O.r},_,t);break;case 189:for(var Re=O.c;Re<=O.C;++Re){var he=O.rkrec[Re-O.c][0];_={ixfe:he,XF:T[he],v:O.rkrec[Re-O.c][1],t:"n"},R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M({c:Re,r:O.r},_,t)}break;case 6:case 518:case 1030:{if(O.val=="String"){s=O;break}if(_=o0(O.val,O.cell.ixfe,O.tt),_.XF=T[_.ixfe],t.cellFormula){var Qe=O.formula;if(Qe&&Qe[0]&&Qe[0][0]&&Qe[0][0][0]=="PtgExp"){var Nt=Qe[0][0][1][0],ir=Qe[0][0][1][1],Gt=Ve({r:Nt,c:ir});x[Gt]?_.f=""+Jr(O.formula,o,O.cell,F,k):_.F=((t.dense?(i[Nt]||[])[ir]:i[Gt])||{}).F}else _.f=""+Jr(O.formula,o,O.cell,F,k)}R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M(O.cell,_,t),s=O}break;case 7:case 519:if(s)s.val=O,_=o0(O,s.cell.ixfe,"s"),_.XF=T[_.ixfe],t.cellFormula&&(_.f=""+Jr(s.formula,o,s.cell,F,k)),R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M(s.cell,_,t),s=null;else throw new Error("String record expects Formula");break;case 33:case 545:{w.push(O);var zr=Ve(O[0].s);if(m=t.dense?(i[O[0].s.r]||[])[O[0].s.c]:i[zr],t.cellFormula&&m){if(!s||!zr||!m)break;m.f=""+Jr(O[1],o,O[0],F,k),m.F=Ze(O[0])}}break;case 1212:{if(!t.cellFormula)break;if(d){if(!s)break;x[Ve(s.cell)]=O[0],m=t.dense?(i[s.cell.r]||[])[s.cell.c]:i[Ve(s.cell)],(m||{}).f=""+Jr(O[0],o,f,F,k)}}break;case 253:_=o0(l[O.isst].t,O.ixfe,"s"),l[O.isst].h&&(_.h=l[O.isst].h),_.XF=T[_.ixfe],R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M({c:O.c,r:O.r},_,t);break;case 513:t.sheetStubs&&(_={ixfe:O.ixfe,XF:T[O.ixfe],t:"z"},R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M({c:O.c,r:O.r},_,t));break;case 190:if(t.sheetStubs)for(var wr=O.c;wr<=O.C;++wr){var Er=O.ixfe[wr-O.c];_={ixfe:Er,XF:T[Er],t:"z"},R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M({c:wr,r:O.r},_,t)}break;case 214:case 516:case 4:_=o0(O.val,O.ixfe,"s"),_.XF=T[_.ixfe],R>0&&(_.z=X[_.ixfe>>8&63]),Wi(_,t,r.opts.Date1904),M({c:O.c,r:O.r},_,t);break;case 0:case 512:le===1&&(o=O);break;case 252:l=O;break;case 1054:if(k.biff==4){X[R++]=O[1];for(var Tr=0;Tr<R+163&&ze[Tr]!=O[1];++Tr);Tr>=163&&hs(O[1],R+163)}else hs(O[1],O[0]);break;case 30:{X[R++]=O;for(var Vi=0;Vi<R+163&&ze[Vi]!=O;++Vi);Vi>=163&&hs(O,R+163)}break;case 229:K=K.concat(O);break;case 93:U[O.cmo[0]]=k.lastobj=O;break;case 438:k.lastobj.TxO=O;break;case 127:k.lastobj.ImData=O;break;case 440:for(y=O[0].s.r;y<=O[0].e.r;++y)for(v=O[0].s.c;v<=O[0].e.c;++v)m=t.dense?(i[y]||[])[v]:i[Ve({c:v,r:y})],m&&(m.l=O[1]);break;case 2048:for(y=O[0].s.r;y<=O[0].e.r;++y)for(v=O[0].s.c;v<=O[0].e.c;++v)m=t.dense?(i[y]||[])[v]:i[Ve({c:v,r:y})],m&&m.l&&(m.l.Tooltip=O[1]);break;case 28:{if(k.biff<=5&&k.biff>=2)break;m=t.dense?(i[O[0].r]||[])[O[0].c]:i[Ve(O[0])];var ar=U[O[2]];m||(t.dense?(i[O[0].r]||(i[O[0].r]=[]),m=i[O[0].r][O[0].c]={t:"z"}):m=i[Ve(O[0])]={t:"z"},o.e.r=Math.max(o.e.r,O[0].r),o.s.r=Math.min(o.s.r,O[0].r),o.e.c=Math.max(o.e.c,O[0].c),o.s.c=Math.min(o.s.c,O[0].c)),m.c||(m.c=[]),g={a:O[1],t:ar.TxO.t},m.c.push(g)}break;case 2173:pU(T[O.ixfe],O.ext);break;case 125:{if(!k.cellStyles)break;for(;O.e>=O.s;)Y[O.e--]={width:O.w/256,level:O.level||0,hidden:!!(O.flags&1)},J||(J=!0,b_(O.w/256)),Hl(Y[O.e+1])}break;case 520:{var or={};O.level!=null&&(W[O.r]=or,or.level=O.level),O.hidden&&(W[O.r]=or,or.hidden=!0),O.hpt&&(W[O.r]=or,or.hpt=O.hpt,or.hpx=Ef(O.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||Gc(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[_e]]=O;break;case 161:i["!margins"]||Gc(i["!margins"]={}),i["!margins"].header=O.header,i["!margins"].footer=O.footer;break;case 574:O.RTL&&(A.Views[0].RTL=!0);break;case 146:E=O;break;case 2198:H=O;break;case 140:S=O;break;case 442:u?P.CodeName=O||P.name:A.WBProps.CodeName=O||"ThisWorkbook";break}}else oe||console.error("Missing Info for XLS Record 0x"+_e.toString(16)),e.l+=te}return r.SheetNames=ia(a).sort(function(Vt,je){return Number(Vt)-Number(je)}).map(function(Vt){return a[Vt].name}),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&c["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=c)):r.Preamble=c,r.Sheets&&q.forEach(function(Vt,je){r.Sheets[r.SheetNames[je]]["!autofilter"]=Vt}),r.Strings=l,r.SSF=Vr(ze),k.enc&&(r.Encryption=k.enc),H&&(r.Themes=H),r.Metadata={},S!==void 0&&(r.Metadata.Country=S),F.names.length>0&&(A.Names=F.names),r.Workbook=A,r}var fS={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function qG(e,t,r){var n=Je.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var i=KT(n,c$,fS.DSI);for(var a in i)t[a]=i[a]}catch(u){if(r.WTF)throw u}var o=Je.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var s=KT(o,f$,fS.SI);for(var l in s)t[l]==null&&(t[l]=s[l])}catch(u){if(r.WTF)throw u}t.HeadingPairs&&t.TitlesOfParts&&(_O(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function nR(e,t){t||(t={}),N_(t),ON(),t.codepage&&u_(t.codepage);var r,n;if(e.FullPaths){if(Je.find(e,"/encryption"))throw new Error("File is password-protected");r=Je.find(e,"!CompObj"),n=Je.find(e,"/Workbook")||Je.find(e,"/Book")}else{switch(t.type){case"base64":e=ki(Hn(e));break;case"binary":e=ki(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Ur(e,0),n={content:e}}var i,a;if(r&&HG(r),t.bookProps&&!t.bookSheets)i={};else{var o=Xe?"buffer":"array";if(n&&n.content)i=WG(n.content,t);else if((a=Je.find(e,"PerfectOffice_MAIN"))&&a.content)i=Bc.to_workbook(a.content,(t.type=o,t));else if((a=Je.find(e,"NativeContent_MAIN"))&&a.content)i=Bc.to_workbook(a.content,(t.type=o,t));else throw(a=Je.find(e,"MN0"))&&a.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&Je.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=OU(e))}var s={};return e.FullPaths&&qG(e,s,t),i.Props=i.Custprops=s,t.bookFiles&&(i.cfb=e),i}var xh={0:{f:P9},1:{f:O9},2:{f:G9},3:{f:F9},4:{f:M9},5:{f:U9},6:{f:j9},7:{f:$9},8:{f:Y9},9:{f:K9},10:{f:W9},11:{f:q9},12:{f:R9},13:{f:V9},14:{f:L9},15:{f:D9},16:{f:ZO},17:{f:z9},18:{f:B9},19:{f:__},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:EG},40:{},42:{},43:{f:WB},44:{f:zB},45:{f:qB},46:{f:YB},47:{f:KB},48:{},49:{f:X8},50:{},51:{f:vU},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:OO},62:{f:H9},63:{f:wU},64:{f:iG},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:on,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:nG},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:N9},148:{f:k9,p:16},151:{f:Z9},152:{},153:{f:_G},154:{},155:{},156:{f:xG},157:{},158:{},159:{T:1,f:fB},160:{T:-1},161:{T:1,f:Fs},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:X9},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:mU},336:{T:-1},337:{f:gU,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:dy},357:{},358:{},359:{},360:{T:1},361:{},362:{f:NO},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:Q9},427:{f:eG},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:rG},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:I9},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:J9},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:dy},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:kU},633:{T:1},634:{T:-1},635:{T:1,f:PU},636:{T:-1},637:{f:Z8},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:cG},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:aG},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:""}},gy={6:{f:Mv},10:{f:Ya},12:{f:er},13:{f:er},14:{f:qt},15:{f:qt},16:{f:en},17:{f:qt},18:{f:qt},19:{f:er},20:{f:ZT},21:{f:ZT},23:{f:NO},24:{f:eS},25:{f:qt},26:{},27:{},28:{f:b6},29:{},34:{f:qt},35:{f:QT},38:{f:en},39:{f:en},40:{f:en},41:{f:en},42:{f:qt},43:{f:qt},47:{f:IB},49:{f:s6},51:{f:er},60:{},61:{f:i6},64:{f:qt},65:{f:o6},66:{f:er},77:{},80:{},81:{},82:{},85:{f:er},89:{},90:{},91:{},92:{f:X$},93:{f:P6},94:{},95:{f:qt},96:{},97:{},99:{f:qt},125:{f:OO},128:{f:g6},129:{f:J$},130:{f:er},131:{f:qt},132:{f:qt},133:{f:Z$},134:{},140:{f:M6},141:{f:er},144:{},146:{f:F6},151:{},152:{},153:{},154:{},155:{},156:{f:er},157:{},158:{},160:{f:G6},161:{f:$6},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:h6},190:{f:p6},193:{f:Ya},197:{},198:{},199:{},200:{},201:{},202:{f:qt},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:er},220:{},221:{f:qt},222:{},224:{f:v6},225:{f:Y$},226:{f:Ya},227:{},229:{f:C6},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:Q$},253:{f:l6},255:{f:e6},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:AO},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:qt},353:{f:Ya},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:x6},431:{f:qt},432:{},433:{},434:{},437:{},438:{f:N6},439:{f:qt},440:{f:O6},441:{},442:{f:hd},443:{},444:{f:er},445:{},446:{},448:{f:Ya},449:{f:n6,r:2},450:{f:Ya},512:{f:XT},513:{f:U6},515:{f:y6},516:{f:u6},517:{f:JT},519:{f:V6},520:{f:t6},523:{},545:{f:tS},549:{f:YT},566:{},574:{f:a6},638:{f:d6},659:{},1048:{},1054:{f:c6},1084:{},1212:{f:T6},2048:{f:R6},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:n0},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Ya},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:L6,r:12},2173:{f:hU,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:qt,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:E6,r:12},2197:{},2198:{f:sU,r:12},2199:{},2200:{},2201:{},2202:{f:S6,r:12},2203:{f:Ya},2204:{},2205:{},2206:{},2207:{},2211:{f:r6},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:er},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:B6},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:D6},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:XT},1:{},2:{f:W6},3:{f:z6},4:{f:j6},5:{f:JT},7:{f:q6},8:{},9:{f:n0},11:{},22:{f:er},30:{f:f6},31:{},32:{},33:{f:tS},36:{},37:{f:YT},50:{f:K6},62:{},52:{},67:{},68:{f:er},69:{},86:{},126:{},127:{f:H6},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:Y6},223:{},234:{},354:{},421:{},518:{f:Mv},521:{f:n0},536:{f:eS},547:{f:QT},561:{},579:{},1030:{f:Mv},1033:{f:n0},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function wi(e,t,r,n){var i=t;if(!isNaN(i)){var a=(r||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,a),a>0&&dO(r)&&e.push(r)}}function dS(e,t){var r=t||{},n=r.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var i=e.match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var a=e.match(/<\/table/i),o=i.index,s=a&&a.index||e.length,l=y8(e.slice(o,s),/(:?<tr[^>]*>)/i,"<tr>"),u=-1,c=0,f=0,d=0,m={s:{r:1e7,c:1e7},e:{r:0,c:0}},g=[];for(o=0;o<l.length;++o){var v=l[o].trim(),y=v.slice(0,3).toLowerCase();if(y=="<tr"){if(++u,r.sheetRows&&r.sheetRows<=u){--u;break}c=0;continue}if(!(y!="<td"&&y!="<th")){var x=v.split(/<\/t[dh]>/i);for(s=0;s<x.length;++s){var w=x[s].trim();if(w.match(/<t[dh]/i)){for(var _=w,S=0;_.charAt(0)=="<"&&(S=_.indexOf(">"))>-1;)_=_.slice(S+1);for(var T=0;T<g.length;++T){var E=g[T];E.s.c==c&&E.s.r<u&&u<=E.e.r&&(c=E.e.c+1,T=-1)}var A=Be(w.slice(0,w.indexOf(">")));d=A.colspan?+A.colspan:1,((f=+A.rowspan)>1||d>1)&&g.push({s:{r:u,c},e:{r:u+(f||1)-1,c:c+d-1}});var P=A.t||A["data-t"]||"";if(!_.length){c+=d;continue}if(_=QN(_),m.s.r>u&&(m.s.r=u),m.e.r<u&&(m.e.r=u),m.s.c>c&&(m.s.c=c),m.e.c<c&&(m.e.c=c),!_.length){c+=d;continue}var C={t:"s",v:_};r.raw||!_.trim().length||P=="s"||(_==="TRUE"?C={t:"b",v:!0}:_==="FALSE"?C={t:"b",v:!1}:isNaN(Di(_))?isNaN(Vl(_).getDate())||(C={t:"d",v:Or(_)},r.cellDates||(C={t:"n",v:xn(C.v)}),C.z=r.dateNF||ze[14]):C={t:"n",v:Di(_)}),r.dense?(n[u]||(n[u]=[]),n[u][c]=C):n[Ve({r:u,c})]=C,c+=d}}}}return n["!ref"]=Ze(m),g.length&&(n["!merges"]=g),n}function KG(e,t,r,n){for(var i=e["!merges"]||[],a=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,l=0,u=0;u<i.length;++u)if(!(i[u].s.r>r||i[u].s.c>o)&&!(i[u].e.r<r||i[u].e.c<o)){if(i[u].s.r<r||i[u].s.c<o){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=Ve({r,c:o}),f=n.dense?(e[r]||[])[o]:e[c],d=f&&f.v!=null&&(f.h||m_(f.w||(Oa(f),f.w)||""))||"",m={};s>1&&(m.rowspan=s),l>1&&(m.colspan=l),n.editable?d='<span contenteditable="true">'+d+"</span>":f&&(m["data-t"]=f&&f.t||"z",f.v!=null&&(m["data-v"]=f.v),f.z!=null&&(m["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+f.l.Target+'">'+d+"</a>")),m.id=(n.id||"sjs")+"-"+c,a.push(M8("td",d,m))}}var g="<tr>";return g+a.join("")+"</tr>"}var YG='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',XG="</body></html>";function JG(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find <table>");if(r.length==1)return Do(dS(r[0],t),t);var n=R_();return r.forEach(function(i,a){M_(n,dS(i,t),"Sheet"+(a+1))}),n}function ZG(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function QG(e,t){var r=t||{},n=r.header!=null?r.header:YG,i=r.footer!=null?r.footer:XG,a=[n],o=Eu(e["!ref"]);r.dense=Array.isArray(e),a.push(ZG(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)a.push(KG(e,o,s,r));return a.push("</table>"+i),a.join("")}function iR(e,t,r){var n=r||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var o=typeof n.origin=="string"?dn(n.origin):n.origin;i=o.r,a=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var c=Eu(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,m=e["!rows"]||(e["!rows"]=[]),g=0,v=0,y=0,x=0,w=0,_=0;for(e["!cols"]||(e["!cols"]=[]);g<s.length&&v<l;++g){var S=s[g];if(hS(S)){if(n.display)continue;m[v]={hidden:!0}}var T=S.children;for(y=x=0;y<T.length;++y){var E=T[y];if(!(n.display&&hS(E))){var A=E.hasAttribute("data-v")?E.getAttribute("data-v"):E.hasAttribute("v")?E.getAttribute("v"):QN(E.innerHTML),P=E.getAttribute("data-z")||E.getAttribute("z");for(d=0;d<f.length;++d){var C=f[d];C.s.c==x+a&&C.s.r<v+i&&v+i<=C.e.r&&(x=C.e.c+1-a,d=-1)}_=+E.getAttribute("colspan")||1,((w=+E.getAttribute("rowspan")||1)>1||_>1)&&f.push({s:{r:v+i,c:x+a},e:{r:v+i+(w||1)-1,c:x+a+(_||1)-1}});var N={t:"s",v:A},M=E.getAttribute("data-t")||E.getAttribute("t")||"";A!=null&&(A.length==0?N.t=M||"z":n.raw||A.trim().length==0||M=="s"||(A==="TRUE"?N={t:"b",v:!0}:A==="FALSE"?N={t:"b",v:!1}:isNaN(Di(A))?isNaN(Vl(A).getDate())||(N={t:"d",v:Or(A)},n.cellDates||(N={t:"n",v:xn(N.v)}),N.z=n.dateNF||ze[14]):N={t:"n",v:Di(A)})),N.z===void 0&&P!=null&&(N.z=P);var k="",H=E.getElementsByTagName("A");if(H&&H.length)for(var K=0;K<H.length&&!(H[K].hasAttribute("href")&&(k=H[K].getAttribute("href"),k.charAt(0)!="#"));++K);k&&k.charAt(0)!="#"&&(N.l={Target:k}),n.dense?(e[v+i]||(e[v+i]=[]),e[v+i][x+a]=N):e[Ve({c:x+a,r:v+i})]=N,u.e.c<x+a&&(u.e.c=x+a),x+=_}}++v}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),u.e.r=Math.max(u.e.r,v-1+i),e["!ref"]=Ze(u),v>=l&&(e["!fullref"]=Ze((u.e.r=s.length-g+v-1+i,u))),e}function aR(e,t){var r=t||{},n=r.dense?[]:{};return iR(n,e,t)}function eV(e,t){return Do(aR(e,t),t)}function hS(e){var t="",r=tV(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function tV(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function rV(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(n,i){return Array(parseInt(i,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,` 74`),r=rt(t.replace(/<[^>]*>/g,""));return[r]}var pS={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function oR(e,t){var r=t||{},n=v_(e),i=[],a,o,s={name:""},l="",u=0,c,f,d={},m=[],g=r.dense?[]:{},v,y,x={value:""},w="",_=0,S=[],T=-1,E=-1,A={s:{r:1e6,c:1e7},e:{r:0,c:0}},P=0,C={},N=[],M={},k=0,H=0,K=[],U=1,Y=1,W=[],J={Names:[]},F={},ee=["",""],le=[],R={},X="",q=0,z=!1,se=!1,pe=0;for(xf.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");v=xf.exec(n);)switch(v[3]=v[3].replace(/_.*$/,"")){case"table":case"å·¥ä½è¡¨":v[1]==="/"?(A.e.c>=A.s.c&&A.e.r>=A.s.r?g["!ref"]=Ze(A):g["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=A.e.r&&(g["!fullref"]=g["!ref"],A.e.r=r.sheetRows-1,g["!ref"]=Ze(A)),N.length&&(g["!merges"]=N),K.length&&(g["!rows"]=K),c.name=c.åç§°||c.name,typeof JSON<"u"&&JSON.stringify(c),m.push(c.name),d[c.name]=g,se=!1):v[0].charAt(v[0].length-2)!=="/"&&(c=Be(v[0],!1),T=E=-1,A.s.r=A.s.c=1e7,A.e.r=A.e.c=0,g=r.dense?[]:{},N=[],K=[],se=!0);break;case"table-row-group":v[1]==="/"?--P:++P;break;case"table-row":case"è¡":if(v[1]==="/"){T+=U,U=1;break}if(f=Be(v[0],!1),f.è¡å·?T=f.è¡å·-1:T==-1&&(T=0),U=+f["number-rows-repeated"]||1,U<10)for(pe=0;pe<U;++pe)P>0&&(K[T+pe]={level:P});E=-1;break;case"covered-table-cell":v[1]!=="/"&&++E,r.sheetStubs&&(r.dense?(g[T]||(g[T]=[]),g[T][E]={t:"z"}):g[Ve({r:T,c:E})]={t:"z"}),w="",S=[];break;case"table-cell":case"æ°æ®":if(v[0].charAt(v[0].length-2)==="/")++E,x=Be(v[0],!1),Y=parseInt(x["number-columns-repeated"]||"1",10),y={t:"z",v:null},x.formula&&r.cellFormula!=!1&&(y.f=lS(rt(x.formula))),(x.æ°æ®ç±»å||x["value-type"])=="string"&&(y.t="s",y.v=rt(x["string-value"]||""),r.dense?(g[T]||(g[T]=[]),g[T][E]=y):g[Ve({r:T,c:E})]=y),E+=Y-1;else if(v[1]!=="/"){++E,w="",_=0,S=[],Y=1;var _e=U?T+U-1:T;if(E>A.e.c&&(A.e.c=E),E<A.s.c&&(A.s.c=E),T<A.s.r&&(A.s.r=T),_e>A.e.r&&(A.e.r=_e),x=Be(v[0],!1),le=[],R={},y={t:x.æ°æ®ç±»å||x["value-type"],v:null},r.cellFormula)if(x.formula&&(x.formula=rt(x.formula)),x["number-matrix-columns-spanned"]&&x["number-matrix-rows-spanned"]&&(k=parseInt(x["number-matrix-rows-spanned"],10)||0,H=parseInt(x["number-matrix-columns-spanned"],10)||0,M={s:{r:T,c:E},e:{r:T+k-1,c:E+H-1}},y.F=Ze(M),W.push([M,y.F])),x.formula)y.f=lS(x.formula);else for(pe=0;pe<W.length;++pe)T>=W[pe][0].s.r&&T<=W[pe][0].e.r&&E>=W[pe][0].s.c&&E<=W[pe][0].e.c&&(y.F=W[pe][1]);switch((x["number-columns-spanned"]||x["number-rows-spanned"])&&(k=parseInt(x["number-rows-spanned"],10)||0,H=parseInt(x["number-columns-spanned"],10)||0,M={s:{r:T,c:E},e:{r:T+k-1,c:E+H-1}},N.push(M)),x["number-columns-repeated"]&&(Y=parseInt(x["number-columns-repeated"],10)),y.t){case"boolean":y.t="b",y.v=Rt(x["boolean-value"]);break;case"float":y.t="n",y.v=parseFloat(x.value);break;case"percentage":y.t="n",y.v=parseFloat(x.value);break;case"currency":y.t="n",y.v=parseFloat(x.value);break;case"date":y.t="d",y.v=Or(x["date-value"]),r.cellDates||(y.t="n",y.v=xn(y.v)),y.z="m/d/yy";break;case"time":y.t="n",y.v=m8(x["time-value"])/86400,r.cellDates&&(y.t="d",y.v=Yp(y.v)),y.z="HH:MM:SS";break;case"number":y.t="n",y.v=parseFloat(x.æ°æ®æ°å¼);break;default:if(y.t==="string"||y.t==="text"||!y.t)y.t="s",x["string-value"]!=null&&(w=rt(x["string-value"]),S=[]);else throw new Error("Unsupported value type "+y.t)}}else{if(z=!1,y.t==="s"&&(y.v=w||"",S.length&&(y.R=S),z=_==0),F.Target&&(y.l=F),le.length>0&&(y.c=le,le=[]),w&&r.cellText!==!1&&(y.w=w),z&&(y.t="z",delete y.v),(!z||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=T))for(var te=0;te<U;++te){if(Y=parseInt(x["number-columns-repeated"]||"1",10),r.dense)for(g[T+te]||(g[T+te]=[]),g[T+te][E]=te==0?y:Vr(y);--Y>0;)g[T+te][E+Y]=Vr(y);else for(g[Ve({r:T+te,c:E})]=y;--Y>0;)g[Ve({r:T+te,c:E+Y})]=Vr(y);A.e.c<=E&&(A.e.c=E)}Y=parseInt(x["number-columns-repeated"]||"1",10),E+=Y-1,Y=0,y={},w="",S=[]}F={};break;case"document":case"document-content":case"çµåè¡¨æ ¼ææ¡£":case"spreadsheet":case"主ä½":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(v[1]==="/"){if((a=i.pop())[0]!==v[3])throw"Bad state: "+a}else v[0].charAt(v[0].length-2)!=="/"&&i.push([v[3],!0]);break;case"annotation":if(v[1]==="/"){if((a=i.pop())[0]!==v[3])throw"Bad state: "+a;R.t=w,S.length&&(R.R=S),R.a=X,le.push(R)}else v[0].charAt(v[0].length-2)!=="/"&&i.push([v[3],!1]);X="",q=0,w="",_=0,S=[];break;case"creator":v[1]==="/"?X=n.slice(q,v.index):q=v.index+v[0].length;break;case"meta":case"å æ°æ®":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(v[1]==="/"){if((a=i.pop())[0]!==v[3])throw"Bad state: "+a}else v[0].charAt(v[0].length-2)!=="/"&&i.push([v[3],!1]);w="",_=0,S=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(v[1]==="/"){if(C[s.name]=l,(a=i.pop())[0]!==v[3])throw"Bad state: "+a}else v[0].charAt(v[0].length-2)!=="/"&&(l="",s=Be(v[0],!1),i.push([v[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(i[i.length-1][0]){case"time-style":case"date-style":o=Be(v[0],!1),l+=pS[v[3]][o.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(i[i.length-1][0]){case"time-style":case"date-style":o=Be(v[0],!1),l+=pS[v[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(v[0].slice(-2)==="/>")break;if(v[1]==="/")switch(i[i.length-1][0]){case"number-style":case"date-style":case"time-style":l+=n.slice(u,v.index);break}else u=v.index+v[0].length;break;case"named-range":o=Be(v[0],!1),ee=Dv(o["cell-range-address"]);var oe={Name:o.name,Ref:ee[0]+"!"+ee[1]};se&&(oe.Sheet=m.length),J.Names.push(oe);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"çµåè¡¨æ ¼":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"ææ¬ä¸²":if(["master-styles"].indexOf(i[i.length-1][0])>-1)break;if(v[1]==="/"&&(!x||!x["string-value"])){var Te=rV(n.slice(_,v.index));w=(w.length>0?w+` 75`:"")+Te[0]}else Be(v[0],!1),_=v.index+v[0].length;break;case"s":break;case"database-range":if(v[1]==="/")break;try{ee=Dv(Be(v[0])["target-range-address"]),d[ee[0]]["!autofilter"]={ref:ee[1]}}catch{}break;case"date":break;case"object":break;case"title":case"æ é¢":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(v[1]!=="/"){if(F=Be(v[0],!1),!F.href)break;F.Target=rt(F.href),delete F.href,F.Target.charAt(0)=="#"&&F.Target.indexOf(".")>-1?(ee=Dv(F.Target.slice(1)),F.Target="#"+ee[0]+"!"+ee[1]):F.Target.match(/^\.\.[\\\/]/)&&(F.Target=F.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(v[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"å:":break;default:if(r.WTF)throw new Error(v)}}var O={Sheets:d,SheetNames:m,Workbook:J};return r.bookSheets&&delete O.Sheets,O}function mS(e,t){t=t||{},Qn(e,"META-INF/manifest.xml")&&y$(Qt(e,"META-INF/manifest.xml"),t);var r=Ln(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=oR(_t(r),t);return Qn(e,"meta.xml")&&(n.Props=xO(Qt(e,"meta.xml"))),n}function vS(e,t){return oR(e,t)}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function k_(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function yy(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):_t(Ms(e))}function xy(e){var t=e.reduce(function(i,a){return i+a.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function gS(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function nV(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,i=t+13;i>=t;--i)n=n*256+e[i];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function Tf(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 yr(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 rn(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=Tf(e,r),a=i&7;i=Math.floor(i/8);var o=0,s;if(i==0)break;switch(a){case 0:{for(var l=r[0];e[r[0]++]>=128;);s=e.slice(l,r[0])}break;case 5:o=4,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=Tf(e,r),s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var u={data:s,type:a};t[i]==null?t[i]=[u]:t[i].push(u)}return t}function I_(e,t){return(e==null?void 0:e.map(function(r){return t(r.data)}))||[]}function iV(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=Tf(e,n),a=rn(e.slice(n[0],n[0]+i));n[0]+=i;var o={id:yr(a[1][0].data),messages:[]};a[2].forEach(function(s){var l=rn(s.data),u=yr(l[3][0].data);o.messages.push({meta:l,data:e.slice(n[0],n[0]+u)}),n[0]+=u}),(t=a[3])!=null&&t[0]&&(o.merge=yr(a[3][0].data)>>>0>0),r.push(o)}return r}function aV(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Tf(t,r),i=[];r[0]<t.length;){var a=t[r[0]]&3;if(a==0){var o=t[r[0]++]>>2;if(o<60)++o;else{var s=o-59;o=t[r[0]],s>1&&(o|=t[r[0]+1]<<8),s>2&&(o|=t[r[0]+2]<<16),s>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}i.push(t.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,u=0;if(a==1?(u=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(u=(t[r[0]++]>>2)+1,a==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=[xy(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=xy(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function oV(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(aV(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return xy(t)}function sV(e,t,r,n){var i=k_(e),a=i.getUint32(4,!0),o=(n>1?12:8)+gS(a&(n>1?3470:398))*4,s=-1,l=-1,u=NaN,c=new Date(2001,0,1);a&512&&(s=i.getUint32(o,!0),o+=4),o+=gS(a&(n>1?12288:4096))*4,a&16&&(l=i.getUint32(o,!0),o+=4),a&32&&(u=i.getFloat64(o,!0),o+=8),a&64&&(c.setTime(c.getTime()+i.getFloat64(o,!0)*1e3),o+=8);var f;switch(e[2]){case 0:break;case 2:f={t:"n",v:u};break;case 3:f={t:"s",v:t[l]};break;case 5:f={t:"d",v:c};break;case 6:f={t:"b",v:u>0};break;case 7:f={t:"n",v:u/86400};break;case 8:f={t:"e",v:0};break;case 9:if(s>-1)f={t:"s",v:r[s]};else if(l>-1)f={t:"s",v:t[l]};else if(!isNaN(u))f={t:"n",v:u};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return f}function lV(e,t,r){var n=k_(e),i=n.getUint32(8,!0),a=12,o=-1,s=-1,l=NaN,u=NaN,c=new Date(2001,0,1);i&1&&(l=nV(e,a),a+=16),i&2&&(u=n.getFloat64(a,!0),a+=8),i&4&&(c.setTime(c.getTime()+n.getFloat64(a,!0)*1e3),a+=8),i&8&&(s=n.getUint32(a,!0),a+=4),i&16&&(o=n.getUint32(a,!0),a+=4);var f;switch(e[1]){case 0:break;case 2:f={t:"n",v:l};break;case 3:f={t:"s",v:t[s]};break;case 5:f={t:"d",v:c};break;case 6:f={t:"b",v:u>0};break;case 7:f={t:"n",v:u/86400};break;case 8:f={t:"e",v:0};break;case 9:if(o>-1)f={t:"s",v:r[o]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e.slice(0,4)));break;case 10:f={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e.slice(0,4)))}return f}function uV(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return sV(e,t,r,e[0]);case 5:return lV(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Eo(e){var t=rn(e);return Tf(t[1][0].data)}function yS(e,t){var r=rn(t.data),n=yr(r[1][0].data),i=r[3],a=[];return(i||[]).forEach(function(o){var s=rn(o.data),l=yr(s[1][0].data)>>>0;switch(n){case 1:a[l]=yy(s[3][0].data);break;case 8:{var u=e[Eo(s[9][0].data)][0],c=rn(u.data),f=e[Eo(c[1][0].data)][0],d=yr(f.meta[1][0].data);if(d!=2001)throw new Error("2000 unexpected reference to ".concat(d));var m=rn(f.data);a[l]=m[3].map(function(g){return yy(g.data)}).join("")}break}}),a}function cV(e,t){var r,n,i,a,o,s,l,u,c,f,d,m,g,v,y=rn(e),x=yr(y[1][0].data)>>>0,w=yr(y[2][0].data)>>>0,_=((n=(r=y[8])==null?void 0:r[0])==null?void 0:n.data)&&yr(y[8][0].data)>0||!1,S,T;if((a=(i=y[7])==null?void 0:i[0])!=null&&a.data&&t!=0)S=(s=(o=y[7])==null?void 0:o[0])==null?void 0:s.data,T=(u=(l=y[6])==null?void 0:l[0])==null?void 0:u.data;else if((f=(c=y[4])==null?void 0:c[0])!=null&&f.data&&t!=1)S=(m=(d=y[4])==null?void 0:d[0])==null?void 0:m.data,T=(v=(g=y[3])==null?void 0:g[0])==null?void 0:v.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var E=_?4:1,A=k_(S),P=[],C=0;C<S.length/2;++C){var N=A.getUint16(C*2,!0);N<65535&&P.push([C,N])}if(P.length!=w)throw"Expected ".concat(w," cells, found ").concat(P.length);var M=[];for(C=0;C<P.length-1;++C)M[P[C][0]]=T.subarray(P[C][1]*E,P[C+1][1]*E);return P.length>=1&&(M[P[P.length-1][0]]=T.subarray(P[P.length-1][1]*E)),{R:x,cells:M}}function fV(e,t){var r,n=rn(t.data),i=(r=n==null?void 0:n[7])!=null&&r[0]?yr(n[7][0].data)>>>0>0?1:0:-1,a=I_(n[5],function(o){return cV(o,i)});return{nrows:yr(n[4][0].data)>>>0,data:a.reduce(function(o,s){return o[s.R]||(o[s.R]=[]),s.cells.forEach(function(l,u){if(o[s.R][u])throw new Error("Duplicate cell r=".concat(s.R," c=").concat(u));o[s.R][u]=l}),o},[])}}function dV(e,t,r){var n,i=rn(t.data),a={s:{r:0,c:0},e:{r:0,c:0}};if(a.e.r=(yr(i[6][0].data)>>>0)-1,a.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(a.e.c=(yr(i[7][0].data)>>>0)-1,a.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));r["!ref"]=Ze(a);var o=rn(i[4][0].data),s=yS(e,e[Eo(o[4][0].data)][0]),l=(n=o[17])!=null&&n[0]?yS(e,e[Eo(o[17][0].data)][0]):[],u=rn(o[3][0].data),c=0;u[1].forEach(function(f){var d=rn(f.data),m=e[Eo(d[2][0].data)][0],g=yr(m.meta[1][0].data);if(g!=6002)throw new Error("6001 unexpected reference to ".concat(g));var v=fV(e,m);v.data.forEach(function(y,x){y.forEach(function(w,_){var S=Ve({r:c+x,c:_}),T=uV(w,s,l);T&&(r[S]=T)})}),c+=v.nrows})}function hV(e,t){var r=rn(t.data),n={"!ref":"A1"},i=e[Eo(r[2][0].data)],a=yr(i[0].meta[1][0].data);if(a!=6001)throw new Error("6000 unexpected reference to ".concat(a));return dV(e,i[0],n),n}function pV(e,t){var r,n=rn(t.data),i={name:(r=n[1])!=null&&r[0]?yy(n[1][0].data):"",sheets:[]},a=I_(n[2],Eo);return a.forEach(function(o){e[o].forEach(function(s){var l=yr(s.meta[1][0].data);l==6e3&&i.sheets.push(hV(e,s))})}),i}function mV(e,t){var r=R_(),n=rn(t.data),i=I_(n[1],Eo);if(i.forEach(function(a){e[a].forEach(function(o){var s=yr(o.meta[1][0].data);if(s==2){var l=pV(e,o);l.sheets.forEach(function(u,c){M_(r,u,c==0?l.name:l.name+"_"+c,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function Lv(e){var t,r,n,i,a={},o=[];if(e.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(l){if(l.name.match(/\.iwa$/)){var u;try{u=oV(l.content)}catch(f){return console.log("?? "+l.content.length+" "+(f.message||f))}var c;try{c=iV(u)}catch(f){return console.log("## "+(f.message||f))}c.forEach(function(f){a[f.id]=f.messages,o.push(f.id)})}}),!o.length)throw new Error("File has no messages");var s=((i=(n=(r=(t=a==null?void 0:a[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:i[0].data)&&yr(a[1][0].meta[1][0].data)==1&&a[1][0];if(s||o.forEach(function(l){a[l].forEach(function(u){var c=yr(u.meta[1][0].data)>>>0;if(c==1)if(!s)s=u;else throw new Error("Document has multiple roots")})}),!s)throw new Error("Cannot find Document root");return mV(a,s)}function vV(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 N_(e){vV([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function gV(e){return hl.WS.indexOf(e)>-1?"sheet":e==hl.CS?"chart":e==hl.DS?"dialog":e==hl.MS?"macro":e&&e.length?e:"sheet"}function yV(e,t){if(!e)return 0;try{e=t.map(function(n){return n.id||(n.id=n.strRelID),[n.name,e["!id"][n.id].Target,gV(e["!id"][n.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function xV(e,t,r,n,i,a,o,s,l,u,c,f){try{a[n]=Lc(Ln(e,r,!0),t);var d=Qt(e,t),m;switch(s){case"sheet":m=AG(d,t,i,l,a[n],u,c,f);break;case"chart":if(m=bG(d,t,i,l,a[n],u,c,f),!m||!m["!drawel"])break;var g=wc(m["!drawel"].Target,t),v=hy(g),y=SU(Ln(e,g,!0),Lc(Ln(e,v,!0),g)),x=wc(y,g),w=hy(x);m=lG(Ln(e,x,!0),x,l,Lc(Ln(e,w,!0),x),u,m);break;case"macro":m=CG(d,t,i,l,a[n],u,c,f);break;case"dialog":m=PG(d,t,i,l,a[n],u,c,f);break;default:throw new Error("Unrecognized sheet type "+s)}o[n]=m;var _=[];a&&a[n]&&ia(a[n]).forEach(function(S){var T="";if(a[n][S].Type==hl.CMNT){T=wc(a[n][S].Target,t);var E=OG(Qt(e,T,!0),T,l);if(!E||!E.length)return;nS(m,E,!1)}a[n][S].Type==hl.TCMNT&&(T=wc(a[n][S].Target,t),_=_.concat(bU(Qt(e,T,!0),l)))}),_&&_.length&&nS(m,_,!0,l.people||[])}catch(S){if(l.WTF)throw S}}function Kn(e){return e.charAt(0)=="/"?e.slice(1):e}function _V(e,t){if(jN(),t=t||{},N_(t),Qn(e,"META-INF/manifest.xml")||Qn(e,"objectdata.xml"))return mS(e,t);if(Qn(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof Lv<"u"){if(e.FileIndex)return Lv(e);var r=Je.utils.cfb_new();return IT(e).forEach(function(K){w8(r,K,_8(e,K))}),Lv(r)}throw new Error("Unsupported NUMBERS file")}if(!Qn(e,"[Content_Types].xml"))throw Qn(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Qn(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=IT(e),i=v$(Ln(e,"[Content_Types].xml")),a=!1,o,s;if(i.workbooks.length===0&&(s="xl/workbook.xml",Qt(e,s,!0)&&i.workbooks.push(s)),i.workbooks.length===0){if(s="xl/workbook.bin",!Qt(e,s,!0))throw new Error("Could not find workbook");i.workbooks.push(s),a=!0}i.workbooks[0].slice(-3)=="bin"&&(a=!0);var l={},u={};if(!t.bookSheets&&!t.bookProps){if(Uc=[],i.sst)try{Uc=NG(Qt(e,Kn(i.sst)),i.sst,t)}catch(K){if(t.WTF)throw K}t.cellStyles&&i.themes.length&&(l=IG(Ln(e,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],t)),i.style&&(u=kG(Qt(e,Kn(i.style)),i.style,l,t))}i.links.map(function(K){try{var U=Lc(Ln(e,hy(Kn(K))),K);return MG(Qt(e,Kn(K)),U,K,t)}catch{}});var c=SG(Qt(e,Kn(i.workbooks[0])),i.workbooks[0],t),f={},d="";i.coreprops.length&&(d=Qt(e,Kn(i.coreprops[0]),!0),d&&(f=xO(d)),i.extprops.length!==0&&(d=Qt(e,Kn(i.extprops[0]),!0),d&&w$(d,f,t)));var m={};(!t.bookSheets||t.bookProps)&&i.custprops.length!==0&&(d=Ln(e,Kn(i.custprops[0]),!0),d&&(m=T$(d,t)));var g={};if((t.bookSheets||t.bookProps)&&(c.Sheets?o=c.Sheets.map(function(U){return U.name}):f.Worksheets&&f.SheetNames.length>0&&(o=f.SheetNames),t.bookProps&&(g.Props=f,g.Custprops=m),t.bookSheets&&typeof o<"u"&&(g.SheetNames=o),t.bookSheets?g.SheetNames:t.bookProps))return g;o={};var v={};t.bookDeps&&i.calcchain&&(v=RG(Qt(e,Kn(i.calcchain)),i.calcchain));var y=0,x={},w,_;{var S=c.Sheets;f.Worksheets=S.length,f.SheetNames=[];for(var T=0;T!=S.length;++T)f.SheetNames[T]=S[T].name}var E=a?"bin":"xml",A=i.workbooks[0].lastIndexOf("/"),P=(i.workbooks[0].slice(0,A+1)+"_rels/"+i.workbooks[0].slice(A+1)+".rels").replace(/^\//,"");Qn(e,P)||(P="xl/_rels/workbook."+E+".rels");var C=Lc(Ln(e,P,!0),P.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(t.xlmeta=DG(Qt(e,Kn(i.metadata[0])),i.metadata[0],t)),(i.people||[]).length>=1&&(t.people=CU(Qt(e,Kn(i.people[0])),t)),C&&(C=yV(C,c.Sheets));var N=Qt(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(y=0;y!=f.Worksheets;++y){var M="sheet";if(C&&C[y]?(w="xl/"+C[y][1].replace(/[\/]?xl\//,""),Qn(e,w)||(w=C[y][1]),Qn(e,w)||(w=P.replace(/_rels\/.*$/,"")+C[y][1]),M=C[y][2]):(w="xl/worksheets/sheet"+(y+1-N)+"."+E,w=w.replace(/sheet0\./,"sheet.")),_=w.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(y!=t.sheets)continue e;break;case"string":if(f.SheetNames[y].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var k=!1,H=0;H!=t.sheets.length;++H)typeof t.sheets[H]=="number"&&t.sheets[H]==y&&(k=1),typeof t.sheets[H]=="string"&&t.sheets[H].toLowerCase()==f.SheetNames[y].toLowerCase()&&(k=1);if(!k)continue e}}xV(e,w,_,f.SheetNames[y],y,x,o,M,t,c,l,u)}return g={Directory:i,Workbook:c,Props:f,Custprops:m,Deps:v,Sheets:o,SheetNames:f.SheetNames,Strings:Uc,Styles:u,Themes:l,SSF:Vr(ze)},t&&t.bookFiles&&(e.files?(g.keys=n,g.files=e.files):(g.keys=[],g.files={},e.FullPaths.forEach(function(K,U){K=K.replace(/^Root Entry[\/]/,""),g.keys.push(K),g.files[K]=e.FileIndex[U]}))),t&&t.bookVBA&&(i.vba.length>0?g.vbaraw=Qt(e,Kn(i.vba[0]),!0):i.defaults&&i.defaults.bin===NU&&(g.vbaraw=Qt(e,"xl/vbaProject.bin",!0))),g}function wV(e,t){var r=t||{},n="Workbook",i=Je.find(e,n);try{if(n="/!DataSpaces/Version",i=Je.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(hB(i.content),n="/!DataSpaces/DataSpaceMap",i=Je.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var a=mB(i.content);if(a.length!==1||a[0].comps.length!==1||a[0].comps[0].t!==0||a[0].name!=="StrongEncryptionDataSpace"||a[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=Je.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=vB(i.content);if(o.length!=1||o[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=Je.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);yB(i.content)}catch{}if(n="/EncryptionInfo",i=Je.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=xB(i.content);if(n="/EncryptedPackage",i=Je.find(e,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(s[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(s[1],i.content,r.password||"",r);if(s[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(s[1],i.content,r.password||"",r);throw new Error("File is password-protected")}function O_(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=Hn(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 EV(e,t){return Je.find(e,"EncryptedPackage")?wV(e,t):nR(e,t)}function TV(e,t){var r,n=e,i=t||{};return i.type||(i.type=Xe&&Buffer.isBuffer(e)?"buffer":"base64"),r=XN(n,i),_V(r,i)}function sR(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return vy(e.slice(r),t);default:break e}return _f.to_workbook(e,t)}function SV(e,t){var r="",n=O_(e,t);switch(t.type){case"base64":r=Hn(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=Ss(e);break;default:throw new Error("Unrecognized type "+t.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(r=_t(r)),t.type="binary",sR(r,t)}function AV(e,t){var r=e;return t.type=="base64"&&(r=Hn(r)),r=vf.utils.decode(1200,r.slice(2),"str"),t.type="binary",sR(r,t)}function bV(e){return e.match(/[^\x00-\x7F]/)?Ec(e):e}function $v(e,t,r,n){return n?(r.type="string",_f.to_workbook(e,r)):_f.to_workbook(t,r)}function _y(e,t){ON();var r=t||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return _y(new Uint8Array(e),(r=Vr(r),r.type="array",r));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!r.type&&(r.type=typeof Deno<"u"?"buffer":"array");var n=e,i=[0,0,0,0],a=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),kl={},r.dateNF&&(kl.dateNF=r.dateNF),r.type||(r.type=Xe&&Buffer.isBuffer(e)?"buffer":"base64"),r.type=="file"&&(r.type=Xe?"buffer":"binary",n=h8(e),typeof Uint8Array<"u"&&!Xe&&(r.type="array")),r.type=="string"&&(a=!0,r.type="binary",r.codepage=65001,n=bV(e)),r.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var o=new ArrayBuffer(3),s=new Uint8Array(o);if(s.foo="bar",!s.foo)return r=Vr(r),r.type="array",_y(c_(n),r)}switch((i=O_(n,r))[0]){case 208:if(i[1]===207&&i[2]===17&&i[3]===224&&i[4]===161&&i[5]===177&&i[6]===26&&i[7]===225)return EV(Je.read(n,r),r);break;case 9:if(i[1]<=8)return nR(n,r);break;case 60:return vy(n,r);case 73:if(i[1]===73&&i[2]===42&&i[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(i[1]===68)return eB(n,r);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return Z6.to_workbook(n,r);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?TV(n,r):$v(e,n,r,a);case 239:return i[3]===60?vy(n,r):$v(e,n,r,a);case 255:if(i[1]===254)return AV(n,r);if(i[1]===0&&i[2]===2&&i[3]===0)return Bc.to_workbook(n,r);break;case 0:if(i[1]===0&&(i[2]>=2&&i[3]===0||i[2]===0&&(i[3]===8||i[3]===9)))return Bc.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return rS.to_workbook(n,r);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return NB.to_workbook(n,r);break;case 10:case 13:case 32:return SV(n,r);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return X6.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?rS.to_workbook(n,r):$v(e,n,r,a)}function CV(e,t,r,n,i,a,o,s){var l=Hr(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(!o||e[r])for(var m=t.s.c;m<=t.e.c;++m){var g=o?e[r][m]:e[n[m]+l];if(g===void 0||g.t===void 0){if(u===void 0)continue;a[m]!=null&&(d[a[m]]=u);continue}var v=g.v;switch(g.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+g.t)}if(a[m]!=null){if(v==null)if(g.t=="e"&&v===null)d[a[m]]=null;else if(u!==void 0)d[a[m]]=u;else if(c&&v===null)d[a[m]]=null;else continue;else d[a[m]]=c&&(g.t!=="n"||g.t==="n"&&s.rawNumbers!==!1)?v:Oa(g,v,s);v!=null&&(f=!1)}}return{row:d,isempty:f}}function wy(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,i=1,a=[],o=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=Wt(c);break;case"number":l=Wt(e["!ref"]),l.s.r=c;break;default:l=c}n>0&&(i=0);var f=Hr(l.s.r),d=[],m=[],g=0,v=0,y=Array.isArray(e),x=l.s.r,w=0,_={};y&&!e[x]&&(e[x]=[]);var S=u.skipHidden&&e["!cols"]||[],T=u.skipHidden&&e["!rows"]||[];for(w=l.s.c;w<=l.e.c;++w)if(!(S[w]||{}).hidden)switch(d[w]=vr(w),r=y?e[x][w]:e[d[w]+f],n){case 1:a[w]=w-l.s.c;break;case 2:a[w]=d[w];break;case 3:a[w]=u.header[w-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=Oa(r,null,u),v=_[o]||0,!v)_[o]=1;else{do s=o+"_"+v++;while(_[s]);_[o]=v,_[s]=1}a[w]=s}for(x=l.s.r+i;x<=l.e.r;++x)if(!(T[x]||{}).hidden){var E=CV(e,l,x,d,n,a,y,u);(E.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(m[g++]=E.row)}return m.length=g,m}var xS=/"/g;function PV(e,t,r,n,i,a,o,s){for(var l=!0,u=[],c="",f=Hr(r),d=t.s.c;d<=t.e.c;++d)if(n[d]){var m=s.dense?(e[r]||[])[d]:e[n[d]+f];if(m==null)c="";else if(m.v!=null){l=!1,c=""+(s.rawNumbers&&m.t=="n"?m.v:Oa(m,null,s));for(var g=0,v=0;g!==c.length;
75++g)if((v=c.charCodeAt(g))===i||v===a||v===34||s.forceQuotes){c='"'+c.replace(xS,'""')+'"';break}c=="ID"&&(c='"ID"')}else m.f!=null&&!m.F?(l=!1,c="="+m.f,c.indexOf(",")>=0&&(c='"'+c.replace(xS,'""')+'"')):c="";u.push(c)}return s.blankrows===!1&&l?null:u.join(o)}function lR(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Wt(e["!ref"]),a=n.FS!==void 0?n.FS:",",o=a.charCodeAt(0),s=n.RS!==void 0?n.RS:` 76`,l=s.charCodeAt(0),u=new RegExp((a=="|"?"\\|":a)+"+$"),c="",f=[];n.dense=Array.isArray(e);for(var d=n.skipHidden&&e["!cols"]||[],m=n.skipHidden&&e["!rows"]||[],g=i.s.c;g<=i.e.c;++g)(d[g]||{}).hidden||(f[g]=vr(g));for(var v=0,y=i.s.r;y<=i.e.r;++y)(m[y]||{}).hidden||(c=PV(e,i,y,f,o,l,a,n),c!=null&&(n.strip&&(c=c.replace(u,"")),(c||n.blankrows!==!1)&&r.push((v++?s:"")+c)));return delete n.dense,r.join("")}function kV(e,t){t||(t={}),t.FS=" ",t.RS=` 77`;var r=lR(e,t);return r}function IV(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Wt(e["!ref"]),a="",o=[],s,l=[],u=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)o[s]=vr(s);for(var c=i.s.r;c<=i.e.r;++c)for(a=Hr(c),s=i.s.c;s<=i.e.c;++s)if(t=o[s]+a,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 uR(e,t,r){var n=r||{},i=+!n.skipHeader,a=e||{},o=0,s=0;if(a&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?dn(n.origin):n.origin;o=l.r,s=l.c}var u,c={s:{c:0,r:0},e:{c:s,r:o+t.length-1+i}};if(a["!ref"]){var f=Wt(a["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),o==-1&&(o=f.e.r+1,c.e.r=o+t.length-1+i)}else o==-1&&(o=0,c.e.r=t.length-1+i);var d=n.header||[],m=0;t.forEach(function(v,y){ia(v).forEach(function(x){(m=d.indexOf(x))==-1&&(d[m=d.length]=x);var w=v[x],_="z",S="",T=Ve({c:s+m,r:o+y+i});u=Sf(a,T),w&&typeof w=="object"&&!(w instanceof Date)?a[T]=w:(typeof w=="number"?_="n":typeof w=="boolean"?_="b":typeof w=="string"?_="s":w instanceof Date?(_="d",n.cellDates||(_="n",w=xn(w)),S=n.dateNF||ze[14]):w===null&&n.nullError&&(_="e",w=0),u?(u.t=_,u.v=w,delete u.w,delete u.R,S&&(u.z=S)):a[T]=u={t:_,v:w},S&&(u.z=S))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var g=Hr(o);if(i)for(m=0;m<d.length;++m)a[vr(m+s)+g]={t:"s",v:d[m]};return a["!ref"]=Ze(c),a}function NV(e,t){return uR(null,e,t)}function Sf(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=dn(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"?Sf(e,Ve(t)):Sf(e,Ve({r:t,c:r||0}))}function OV(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 R_(){return{SheetNames:[],Sheets:{}}}function M_(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 a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var o=a&&a[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=o+i)!=-1;++i);}if(vG(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 RV(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=OV(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 MV(e,t){return e.z=t,e}function cR(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function DV(e,t,r){return cR(e,"#"+t,r)}function FV(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function LV(e,t,r,n){for(var i=typeof t!="string"?t:Wt(t),a=typeof t=="string"?t:Ze(t),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var l=Sf(e,o,s);l.t="n",l.F=a,delete l.v,o==i.s.r&&s==i.s.c&&(l.f=r,n&&(l.D=!0))}return e}var $V={encode_col:vr,encode_row:Hr,encode_cell:Ve,encode_range:Ze,decode_col:x_,decode_row:y_,split_cell:Y8,decode_cell:dn,decode_range:Eu,format_cell:Oa,sheet_add_aoa:pO,sheet_add_json:uR,sheet_add_dom:iR,aoa_to_sheet:Tu,json_to_sheet:NV,table_to_sheet:aR,table_to_book:eV,sheet_to_csv:lR,sheet_to_txt:kV,sheet_to_json:wy,sheet_to_html:QG,sheet_to_formulae:IV,sheet_to_row_object_array:wy,sheet_get_cell:Sf,book_new:R_,book_append_sheet:M_,book_set_sheet_visibility:RV,cell_set_number_format:MV,cell_set_hyperlink:cR,cell_set_internal_link:DV,cell_add_comment:FV,sheet_set_array_formula:LV,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},Qp={exports:{}},fR={};function fi(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var BV=fi;fi.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};fi.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};fi.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);else return!1;var n=this;return this._timer=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r),this._options.unref&&this._timer.unref(),!0};fi.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};fi.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};fi.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};fi.prototype.start=fi.prototype.try;fi.prototype.errors=function(){return this._errors};fi.prototype.attempts=function(){return this._attempts};fi.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],a=i.message,o=(e[a]||0)+1;e[a]=o,o>=r&&(t=i,r=o)}return t};(function(e){var t=BV;e.operation=function(r){var n=e.timeouts(r);return new t(n,{forever:r&&(r.forever||r.retries===1/0),unref:r&&r.unref,maxRetryTime:r&&r.maxRetryTime})},e.timeouts=function(r){if(r instanceof Array)return[].concat(r);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in r)n[i]=r[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var a=[],o=0;o<n.retries;o++)a.push(this.createTimeout(o,n));return r&&r.forever&&!a.length&&a.push(this.createTimeout(o,n)),a.sort(function(s,l){return s-l}),a},e.createTimeout=function(r,n){var i=n.randomize?Math.random()+1:1,a=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,r));return a=Math.min(a,n.maxTimeout),a},e.wrap=function(r,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var a in r)typeof r[a]=="function"&&i.push(a)}for(var o=0;o<i.length;o++){var s=i[o],l=r[s];r[s]=(function(c){var f=e.operation(n),d=Array.prototype.slice.call(arguments,1
77),m=d.pop();d.push(function(g){f.retry(g)||(g&&(arguments[0]=f.mainError()),m.apply(this,arguments))}),f.attempt(function(){c.apply(r,d)})}).bind(r,l),r[s].options=n}}})(fR);var UV=fR;const GV=UV,VV=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class dR extends Error{constructor(t){super(),t instanceof Error?(this.originalError=t,{message:t}=t):(this.originalError=new Error(t),this.originalError.stack=this.stack),this.name="AbortError",this.message=t}}const HV=(e,t,r)=>{const n=r.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=n,e},jV=e=>VV.includes(e),hR=(e,t)=>new Promise((r,n)=>{t={onFailedAttempt:()=>{},retries:10,...t};const i=GV.operation(t);i.attempt(async a=>{try{r(await e(a))}catch(o){if(!(o instanceof Error)){n(new TypeError(`Non-error was thrown: "${o}". You should only throw errors.`));return}if(o instanceof dR)i.stop(),n(o.originalError);else if(o instanceof TypeError&&!jV(o.message))i.stop(),n(o);else{HV(o,a,t);try{await t.onFailedAttempt(o)}catch(s){n(s);return}i.retry(o)||n(i.mainError())}}})});Qp.exports=hR;Qp.exports.default=hR;var zV=Qp.exports.AbortError=dR,WV=Qp.exports;const qV=ft(WV);var KV={};/** 78 * @license 79 * Copyright 2025 Google LLC 80 * SPDX-License-Identifier: Apache-2.0 81 */let YV,XV;function JV(){return{geminiUrl:YV,vertexUrl:XV}}function ZV(e,t,r,n){var i,a;if(!(e!=null&&e.baseUrl)){const o=JV();return t?(i=o.vertexUrl)!==null&&i!==void 0?i:r:(a=o.geminiUrl)!==null&&a!==void 0?a:n}return e.baseUrl}/** 82 * @license 83 * Copyright 2025 Google LLC 84 * SPDX-License-Identifier: Apache-2.0 85 */class Ba{}function Ae(e,t){const r=/\{([^}]+)\}/g;return e.replace(r,(n,i)=>{if(Object.prototype.hasOwnProperty.call(t,i)){const a=t[i];return a!=null?String(a):""}else throw new Error(`Key '${i}' not found in valueMap.`)})}function p(e,t,r){for(let a=0;a<t.length-1;a++){const o=t[a];if(o.endsWith("[]")){const s=o.slice(0,-2);if(!(s in e))if(Array.isArray(r))e[s]=Array.from({length:r.length},()=>({}));else throw new Error(`Value must be a list given an array path ${o}`);if(Array.isArray(e[s])){const l=e[s];if(Array.isArray(r))for(let u=0;u<l.length;u++){const c=l[u];p(c,t.slice(a+1),r[u])}else for(const u of l)p(u,t.slice(a+1),r)}return}else if(o.endsWith("[0]")){const s=o.slice(0,-3);s in e||(e[s]=[{}]);const l=e[s];p(l[0],t.slice(a+1),r);return}(!e[o]||typeof e[o]!="object")&&(e[o]={}),e=e[o]}const n=t[t.length-1],i=e[n];if(i!==void 0){if(!r||typeof r=="object"&&Object.keys(r).length===0||r===i)return;if(typeof i=="object"&&typeof r=="object"&&i!==null&&r!==null)Object.assign(i,r);else throw new Error(`Cannot set value for an existing key. Key: ${n}`)}else n==="_self"&&typeof r=="object"&&r!==null&&!Array.isArray(r)?Object.assign(e,r):e[n]=r}function h(e,t,r=void 0){try{if(t.length===1&&t[0]==="_self")return e;for(let n=0;n<t.length;n++){if(typeof e!="object"||e===null)return r;const i=t[n];if(i.endsWith("[]")){const a=i.slice(0,-2);if(a in e){const o=e[a];return Array.isArray(o)?o.map(s=>h(s,t.slice(n+1),r)):r}else return r}else e=e[i]}return e}catch(n){if(n instanceof TypeError)return r;throw n}}function QV(e,t){for(const[r,n]of Object.entries(t)){const i=r.split("."),a=n.split("."),o=new Set;let s=-1;for(let l=0;l<i.length;l++)if(i[l]==="*"){s=l;break}if(s!==-1&&a.length>s)for(let l=s;l<a.length;l++){const u=a[l];u!=="*"&&!u.endsWith("[]")&&!u.endsWith("[0]")&&o.add(u)}Ey(e,i,a,0,o)}}function Ey(e,t,r,n,i){if(n>=t.length||typeof e!="object"||e===null)return;const a=t[n];if(a.endsWith("[]")){const o=a.slice(0,-2),s=e;if(o in s&&Array.isArray(s[o]))for(const l of s[o])Ey(l,t,r,n+1,i)}else if(a==="*"){if(typeof e=="object"&&e!==null&&!Array.isArray(e)){const o=e,s=Object.keys(o).filter(u=>!u.startsWith("_")&&!i.has(u)),l={};for(const u of s)l[u]=o[u];for(const[u,c]of Object.entries(l)){const f=[];for(const d of r.slice(n))d==="*"?f.push(u):f.push(d);p(o,f,c)}for(const u of s)delete o[u]}}else{const o=e;a in o&&Ey(o[a],t,r,n+1,i)}}/** 86 * @license 87 * Copyright 2025 Google LLC 88 * SPDX-License-Identifier: Apache-2.0 89 */function D_(e){if(typeof e!="string")throw new Error("fromImageBytes must be a string");return e}/** 90 * @license 91 * Copyright 2025 Google LLC 92 * SPDX-License-Identifier: Apache-2.0 93 */function eH(e){const t={},r=h(e,["operationName"]);r!=null&&p(t,["operationName"],r);const n=h(e,["resourceName"]);return n!=null&&p(t,["_url","resourceName"],n),t}function tH(e){const t={},r=h(e,["name"]);r!=null&&p(t,["name"],r);const n=h(e,["metadata"]);n!=null&&p(t,["metadata"],n);const i=h(e,["done"]);i!=null&&p(t,["done"],i);const a=h(e,["error"]);a!=null&&p(t,["error"],a);const o=h(e,["response","generateVideoResponse"]);return o!=null&&p(t,["response"],nH(o)),t}function rH(e){const t={},r=h(e,["name"]);r!=null&&p(t,["name"],r);const n=h(e,["metadata"]);n!=null&&p(t,["metadata"],n);const i=h(e,["done"]);i!=null&&p(t,["done"],i);const a=h(e,["error"]);a!=null&&p(t,["error"],a);const o=h(e,["response"]);return o!=null&&p(t,["response"],iH(o)),t}function nH(e){const t={},r=h(e,["generatedSamples"]);if(r!=null){let a=r;Array.isArray(a)&&(a=a.map(o=>aH(o))),p(t,["generatedVideos"],a)}const n=h(e,["raiMediaFilteredCount"]);n!=null&&p(t,["raiMediaFilteredCount"],n);const i=h(e,["raiMediaFilteredReasons"]);return i!=null&&p(t,["raiMediaFilteredReasons"],i),t}function iH(e){const t={},r=h(e,["videos"]);if(r!=null){let a=r;Array.isArray(a)&&(a=a.map(o=>oH(o))),p(t,["generatedVideos"],a)}const n=h(e,["raiMediaFilteredCount"]);n!=null&&p(t,["raiMediaFilteredCount"],n);const i=h(e,["raiMediaFilteredReasons"]);return i!=null&&p(t,["raiMediaFilteredReasons"],i),t}function aH(e){const t={},r=h(e,["video"]);return r!=null&&p(t,["video"],dH(r)),t}function oH(e){const t={},r=h(e,["_self"]);return r!=null&&p(t,["video"],hH(r)),t}function sH(e){const t={},r=h(e,["operationName"]);return r!=null&&p(t,["_url","operationName"],r),t}function lH(e){const t={},r=h(e,["operationName"]);return r!=null&&p(t,["_url","operationName"],r),t}function uH(e){const t={},r=h(e,["name"]);r!=null&&p(t,["name"],r);const n=h(e,["metadata"]);n!=null&&p(t,["metadata"],n);const i=h(e,["done"]);i!=null&&p(t,["done"],i);const a=h(e,["error"]);a!=null&&p(t,["error"],a);const o=h(e,["response"]);return o!=null&&p(t,["response"],cH(o)),t}function cH(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["parent"]);n!=null&&p(t,["parent"],n);const i=h(e,["documentName"]);return i!=null&&p(t,["documentName"],i),t}function pR(e){const t={},r=h(e,["name"]);r!=null&&p(t,["name"],r);const n=h(e,["metadata"]);n!=null&&p(t,["metadata"],n);const i=h(e,["done"]);i!=null&&p(t,["done"],i);const a=h(e,["error"]);a!=null&&p(t,["error"],a);const o=h(e,["response"]);return o!=null&&p(t,["response"],fH(o)),t}function fH(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["parent"]);n!=null&&p(t,["parent"],n);const i=h(e,["documentName"]);return i!=null&&p(t,["documentName"],i),t}function dH(e){const t={},r=h(e,["uri"]);r!=null&&p(t,["uri"],r);const n=h(e,["encodedVideo"]);n!=null&&p(t,["videoBytes"],D_(n));const i=h(e,["encoding"]);return i!=null&&p(t,["mimeType"],i),t}function hH(e){const t={},r=h(e,["gcsUri"]);r!=null&&p(t,["uri"],r);
93const n=h(e,["bytesBase64Encoded"]);n!=null&&p(t,["videoBytes"],D_(n));const i=h(e,["mimeType"]);return i!=null&&p(t,["mimeType"],i),t}/** 94 * @license 95 * Copyright 2025 Google LLC 96 * SPDX-License-Identifier: Apache-2.0 97 */var _S;(function(e){e.LANGUAGE_UNSPECIFIED="LANGUAGE_UNSPECIFIED",e.PYTHON="PYTHON"})(_S||(_S={}));var wS;(function(e){e.OUTCOME_UNSPECIFIED="OUTCOME_UNSPECIFIED",e.OUTCOME_OK="OUTCOME_OK",e.OUTCOME_FAILED="OUTCOME_FAILED",e.OUTCOME_DEADLINE_EXCEEDED="OUTCOME_DEADLINE_EXCEEDED"})(wS||(wS={}));var ES;(function(e){e.SCHEDULING_UNSPECIFIED="SCHEDULING_UNSPECIFIED",e.SILENT="SILENT",e.WHEN_IDLE="WHEN_IDLE",e.INTERRUPT="INTERRUPT"})(ES||(ES={}));var Kt;(function(e){e.TYPE_UNSPECIFIED="TYPE_UNSPECIFIED",e.STRING="STRING",e.NUMBER="NUMBER",e.INTEGER="INTEGER",e.BOOLEAN="BOOLEAN",e.ARRAY="ARRAY",e.OBJECT="OBJECT",e.NULL="NULL"})(Kt||(Kt={}));var TS;(function(e){e.ENVIRONMENT_UNSPECIFIED="ENVIRONMENT_UNSPECIFIED",e.ENVIRONMENT_BROWSER="ENVIRONMENT_BROWSER"})(TS||(TS={}));var SS;(function(e){e.AUTH_TYPE_UNSPECIFIED="AUTH_TYPE_UNSPECIFIED",e.NO_AUTH="NO_AUTH",e.API_KEY_AUTH="API_KEY_AUTH",e.HTTP_BASIC_AUTH="HTTP_BASIC_AUTH",e.GOOGLE_SERVICE_ACCOUNT_AUTH="GOOGLE_SERVICE_ACCOUNT_AUTH",e.OAUTH="OAUTH",e.OIDC_AUTH="OIDC_AUTH"})(SS||(SS={}));var AS;(function(e){e.HTTP_IN_UNSPECIFIED="HTTP_IN_UNSPECIFIED",e.HTTP_IN_QUERY="HTTP_IN_QUERY",e.HTTP_IN_HEADER="HTTP_IN_HEADER",e.HTTP_IN_PATH="HTTP_IN_PATH",e.HTTP_IN_BODY="HTTP_IN_BODY",e.HTTP_IN_COOKIE="HTTP_IN_COOKIE"})(AS||(AS={}));var bS;(function(e){e.API_SPEC_UNSPECIFIED="API_SPEC_UNSPECIFIED",e.SIMPLE_SEARCH="SIMPLE_SEARCH",e.ELASTIC_SEARCH="ELASTIC_SEARCH"})(bS||(bS={}));var CS;(function(e){e.PHISH_BLOCK_THRESHOLD_UNSPECIFIED="PHISH_BLOCK_THRESHOLD_UNSPECIFIED",e.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",e.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",e.BLOCK_HIGH_AND_ABOVE="BLOCK_HIGH_AND_ABOVE",e.BLOCK_HIGHER_AND_ABOVE="BLOCK_HIGHER_AND_ABOVE",e.BLOCK_VERY_HIGH_AND_ABOVE="BLOCK_VERY_HIGH_AND_ABOVE",e.BLOCK_ONLY_EXTREMELY_HIGH="BLOCK_ONLY_EXTREMELY_HIGH"})(CS||(CS={}));var PS;(function(e){e.UNSPECIFIED="UNSPECIFIED",e.BLOCKING="BLOCKING",e.NON_BLOCKING="NON_BLOCKING"})(PS||(PS={}));var kS;(function(e){e.MODE_UNSPECIFIED="MODE_UNSPECIFIED",e.MODE_DYNAMIC="MODE_DYNAMIC"})(kS||(kS={}));var IS;(function(e){e.MODE_UNSPECIFIED="MODE_UNSPECIFIED",e.AUTO="AUTO",e.ANY="ANY",e.NONE="NONE",e.VALIDATED="VALIDATED"})(IS||(IS={}));var NS;(function(e){e.THINKING_LEVEL_UNSPECIFIED="THINKING_LEVEL_UNSPECIFIED",e.MINIMAL="MINIMAL",e.LOW="LOW",e.MEDIUM="MEDIUM",e.HIGH="HIGH"})(NS||(NS={}));var OS;(function(e){e.DONT_ALLOW="DONT_ALLOW",e.ALLOW_ADULT="ALLOW_ADULT",e.ALLOW_ALL="ALLOW_ALL"})(OS||(OS={}));var RS;(function(e){e.PROMINENT_PEOPLE_UNSPECIFIED="PROMINENT_PEOPLE_UNSPECIFIED",e.ALLOW_PROMINENT_PEOPLE="ALLOW_PROMINENT_PEOPLE",e.BLOCK_PROMINENT_PEOPLE="BLOCK_PROMINENT_PEOPLE"})(RS||(RS={}));var MS;(function(e){e.HARM_CATEGORY_UNSPECIFIED="HARM_CATEGORY_UNSPECIFIED",e.HARM_CATEGORY_HARASSMENT="HARM_CATEGORY_HARASSMENT",e.HARM_CATEGORY_HATE_SPEECH="HARM_CATEGORY_HATE_SPEECH",e.HARM_CATEGORY_SEXUALLY_EXPLICIT="HARM_CATEGORY_SEXUALLY_EXPLICIT",e.HARM_CATEGORY_DANGEROUS_CONTENT="HARM_CATEGORY_DANGEROUS_CONTENT",e.HARM_CATEGORY_CIVIC_INTEGRITY="HARM_CATEGORY_CIVIC_INTEGRITY",e.HARM_CATEGORY_IMAGE_HATE="HARM_CATEGORY_IMAGE_HATE",e.HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT="HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT",e.HARM_CATEGORY_IMAGE_HARASSMENT="HARM_CATEGORY_IMAGE_HARASSMENT",e.HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT="HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT",e.HARM_CATEGORY_JAILBREAK="HARM_CATEGORY_JAILBREAK"})(MS||(MS={}));var DS;(function(e){e.HARM_BLOCK_METHOD_UNSPECIFIED="HARM_BLOCK_METHOD_UNSPECIFIED",e.SEVERITY="SEVERITY",e.PROBABILITY="PROBABILITY"})(DS||(DS={}));var FS;(function(e){e.HARM_BLOCK_THRESHOLD_UNSPECIFIED="HARM_BLOCK_THRESHOLD_UNSPECIFIED",e.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",e.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",e.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",e.BLOCK_NONE="BLOCK_NONE",e.OFF="OFF"})(FS||(FS={}));var LS;(function(e){e.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",e.STOP="STOP",e.MAX_TOKENS="MAX_TOKENS",e.SAFETY="SAFETY",e.RECITATION="RECITATION",e.LANGUAGE="LANGUAGE",e.OTHER="OTHER",e.BLOCKLIST="BLOCKLIST",e.PROHIBITED_CONTENT="PROHIBITED_CONTENT",e.SPII="SPII",e.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",e.IMAGE_SAFETY="IMAGE_SAFETY",e.UNEXPECTED_TOOL_CALL="UNEXPECTED_TOOL_CALL",e.IMAGE_PROHIBITED_CONTENT="IMAGE_PROHIBITED_CONTENT",e.NO_IMAGE="NO_IMAGE",e.IMAGE_RECITATION="IMAGE_RECITATION",e.IMAGE_OTHER="IMAGE_OTHER"})(LS||(LS={}));var $S;(function(e){e.HARM_PROBABILITY_UNSPECIFIED="HARM_PROBABILITY_UNSPECIFIED",e.NEGLIGIBLE="NEGLIGIBLE",e.LOW="LOW",e.MEDIUM="MEDIUM",e.HIGH="HIGH"})($S||($S={}));var BS;(function(e){e.HARM_SEVERITY_UNSPECIFIED="HARM_SEVERITY_UNSPECIFIED",e.HARM_SEVERITY_NEGLIGIBLE="HARM_SEVERITY_NEGLIGIBLE",e.HARM_SEVERITY_LOW="HARM_SEVERITY_LOW",e.HARM_SEVERITY_MEDIUM="HARM_SEVERITY_MEDIUM",e.HARM_SEVERITY_HIGH="HARM_SEVERITY_HIGH"})(BS||(BS={}));var US;(function(e){e.URL_RETRIEVAL_STATUS_UNSPECIFIED="URL_RETRIEVAL_STATUS_UNSPECIFIED",e.URL_RETRIEVAL_STATUS_SUCCESS="URL_RETRIEVAL_STATUS_SUCCESS",e.URL_RETRIEVAL_STATUS_ERROR="URL_RETRIEVAL_STATUS_ERROR",e.URL_RETRIEVAL_STATUS_PAYWALL="URL_RETRIEVAL_STATUS_PAYWALL",e.URL_RETRIEVAL_STATUS_UNSAFE="URL_RETRIEVAL_STATUS_UNSAFE"})(US||(US={}));var GS;(function(e){e.BLOCKED_REASON_UNSPECIFIED="BLOCKED_REASON_UNSPECIFIED",e.SAFETY="SAFETY",e.OTHER="OTHER",e.BLOCKLIST="BLOCKLIST",e.PROHIBITED_CONTENT="PROHIBITED_CONTENT",e.IMAGE_SAFETY="IMAGE_SAFETY",e.MODEL_ARMOR="MODEL_ARMOR",e.JAILBREAK="JAILBREAK"})(GS||(GS={}));var VS;(function(e){e.TRAFFIC_TYPE_UNSPECIFIED="TRAFFIC_TYPE_UNSPECIFIED",e.ON_DEMAND="ON_DEMAND",e.ON_DEMAND_PRIORITY="ON_DEMAND_PRIORITY",e.ON_DEMAND_FLEX="ON_DEMAND_FLEX",e.PROVISIONED_THROUGHPUT="PROVISIONED_THROUGHPUT"})(VS||(VS={}));var _h;(function(e){e.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",e.TEXT="TEXT",e.IMAGE="IMAGE",e.AUDIO="AUDIO",e.VIDEO="VIDEO"})(_h||(_h={}));var HS;(function(e){e.MODEL_STAGE_UNSPECIFIED="MODEL_STAGE_UNSPECIFIED",e.UNSTABLE_EXPERIMENTAL="UNSTABLE_EXPERIMENTAL",e.EXPERIMENTAL="EXPERIMENTAL",e.PREVIEW="PREVIEW",e.STABLE="STABLE",e.LEGACY="LEGACY",e.DEPRECATED="DEPRECATED",e.RETIRED="RETIRED"})(HS||(HS={}));var jS;(function(e){e.MEDIA_RESOLUTION_UNSPECIFIED="MEDIA_RESOLUTION_UNSPECIFIED",e.MEDIA_RESOLUTION_LOW="MEDIA_RESOLUTION_LOW",e.MEDIA_RESOLUTION_MEDIUM="MEDIA_RESOLUTION_MEDIUM",e.MEDIA_RESOLUTION_HIGH="MEDIA_RESOLUTION_HIGH"})(jS||(jS={}));var zS;(function(e){e.TUNING_MODE_UNSPECIFIED="TUNING_MODE_UNSPECIFIED",e.TUNING_MODE_FULL="TUNING_MODE_FULL",e.TUNING_MODE_PEFT_ADAPTER="TUNING_MODE_PEFT_ADAPTER"})(zS||(zS={}));var WS;(function(e){e.ADAPTER_SIZE_UNSPECIFIED="ADAPTER_SIZE_UNSPECIFIED",e.ADAPTER_SIZE_ONE="ADAPTER_SIZE_ONE",e.ADAPTER_SIZE_TWO="ADAPTER_SIZE_TWO",e.ADAPTER_SIZE_FOUR="ADAPTER_SIZE_FOUR",e.ADAPTER_SIZE_EIGHT="ADAPTER_SIZE_EIGHT",e.ADAPTER_SIZE_SIXTEEN="ADAPTER_SIZE_SIXTEEN",e.ADAPTER_SIZE_THIRTY_TWO="ADAPTER_SIZE_THIRTY_TWO"})(WS||(WS={}));var Ty;(function(e){e.JOB_STATE_UNSPECIFIED="JOB_STATE_UNSPECIFIED",e.JOB_STATE_QUEUED="JOB_STATE_QUEUED",e.JOB_STATE_PENDING="JOB_STATE_PENDING",e.JOB_STATE_RUNNING="JOB_STATE_RUNNING",e.JOB_STATE_SUCCEEDED="JOB_STATE_SUCCEEDED",e.JOB_STATE_FAILED="JOB_STATE_FAILED",e.JOB_STATE_CANCELLING="JOB_STATE_CANCELLING",e.JOB_STATE_CANCELLED="JOB_STATE_CANCELLED",e.JOB_STATE_PAUSED="JOB_STATE_PAUSED",e.JOB_STATE_EXPIRED="JOB_STATE_EXPIRED",e.JOB_STATE_UPDATING="JOB_STATE_UPDATING",e.JOB_STATE_PARTIALLY_SUCCEEDED="JOB_STATE_PARTIALLY_SUCCEEDED"})(Ty||(Ty={}));var qS;(function(e){e.TUNING_JOB_STATE_UNSPECIFIED="TUNING_JOB_STATE_UNSPECIFIED",e.TUNING_JOB_STATE_WAITING_FOR_QUOTA="TUNING_JOB_STATE_WAITING_FOR_QUOTA",e.TUNING_JOB_STATE_PROCESSING_DATASET="TUNING_JOB_STATE_PROCESSING_DATASET",e.TUNING_JOB_STATE_WAITING_FOR_CAPACITY="TUNING_JOB_STATE_WAITING_FOR_CAPACITY",e.TUNING_JOB_STATE_TUNING="TUNING_JOB_STATE_TUNING",e.TUNING_JOB_STATE_POST_PROCESSING="TUNING_JOB_STATE_POST_PROCESSING"})(qS||(qS={}));var KS;(function(e){e.AGGREGATION_METRIC_UNSPECIFIED="AGGREGATION_METRIC_UNSPECIFIED",e.AVERAGE="AVERAGE",e.MODE="MODE",e.STANDARD_DEVIATION="STANDARD_DEVIATION",e.VARIANCE="VARIANCE",e.MINIMUM="MINIMUM",e.MAXIMUM="MAXIMUM",e.MEDIAN="MEDIAN",e.PERCENTILE_P90="PERCENTILE_P90",e.PERCENTILE_P95="PERCENTILE_P95",e.PERCENTILE_P99="PERCENTILE_P99"})(KS||(KS={}));var YS;(function(e){e.PAIRWISE_CHOICE_UNSPECIFIED="PAIRWISE_CHOICE_UNSPECIFIED",e.BASELINE="BASELINE",e.CANDIDATE="CANDIDATE",e.TIE="TIE"})(YS||(YS={}));var XS;(function(e){e.TUNING_TASK_UNSPECIFIED="TUNING_TASK_UNSPECIFIED",e.TUNING_TASK_I2V="TUNING_TASK_I2V",e.TUNING_TASK_T2V="TUNING_TASK_T2V",e.TUNING_TASK_R2V="TUNING_TASK_R2V"})(XS||(XS={}));var JS;(function(e){e.STATE_UNSPECIFIED="STATE_UNSPECIFIED",e.STATE_PENDING="STATE_PENDING",e.STATE_ACTIVE="STATE_ACTIVE",e.STATE_FAILED="STATE_FAILED"})(JS||(JS={}));var ZS;(function(e){e.MEDIA_RESOLUTION_UNSPECIFIED="MEDIA_RESOLUTION_UNSPECIFIED",e.MEDIA_RESOLUTION_LOW="MEDIA_RESOLUTION_LOW",e.MEDIA_RESOLUTION_MEDIUM="MEDIA_RESOLUTION_MEDIUM",e.MEDIA_RESOLUTION_HIGH="MEDIA_RESOLUTION_HIGH",e.MEDIA_RESOLUTION_ULTRA_HIGH="MEDIA_RESOLUTION_ULTRA_HIGH"})(ZS||(ZS={}));var QS;(function(e){e.TOOL_TYPE_UNSPECIFIED="TOOL_TYPE_UNSPECIFIED",e.GOOGLE_SEARCH_WEB="GOOGLE_SEARCH_WEB",e.GOOGLE_SEARCH_IMAGE="GOOGLE_SEARCH_IMAGE",e.URL_CONTEXT="URL_CONTEXT",e.GOOGLE_MAPS="GOOGLE_MAPS",e.FILE_SEARCH="FILE_SEARCH"})(QS||(QS={}));var Sy;(function(e){e.COLLECTION="COLLECTION"})(Sy||(Sy={}));var eA;(function(e){e.UNSPECIFIED="unspecified",e.FLEX="flex",e.STANDARD="standard",e.PRIORITY="priority"})(eA||(eA={}));var tA;(function(e){e.FEATURE_SELECTION_PREFERENCE_UNSPECIFIED="FEATURE_SELECTION_PREFERENCE_UNSPECIFIED",e.PRIORITIZE_QUALITY="PRIORITIZE_QUALITY",e.BALANCED="BALANCED",e.PRIORITIZE_COST="PRIORITIZE_COST"})(tA||(tA={}));var wh;(function(e){e.PREDICT="PREDICT",e.EMBED_CONTENT="EMBED_CONTENT"})(wh||(wh={}));var rA;(function(e){e.BLOCK_LOW_AND_ABOVE="BLOCK_LOW_AND_ABOVE",e.BLOCK_MEDIUM_AND_ABOVE="BLOCK_MEDIUM_AND_ABOVE",e.BLOCK_ONLY_HIGH="BLOCK_ONLY_HIGH",e.BLOCK_NONE="BLOCK_NONE"})(rA||(rA={}));var nA;(function(e){e.auto="auto",e.en="en",e.ja="ja",e.ko="ko",e.hi="hi",e.zh="zh",e.pt="pt",e.es="es"})(nA||(nA={}));var iA;(function(e){e.MASK_MODE_DEFAULT="MASK_MODE_DEFAULT",e.MASK_MODE_USER_PROVIDED="MASK_MODE_USER_PROVIDED",e.MASK_MODE_BACKGROUND="MASK_MODE_BACKGROUND",e.MASK_MODE_FOREGROUND="MASK_MODE_FOREGROUND",e.MASK_MODE_SEMANTIC="MASK_MODE_SEMANTIC"})(iA||(iA={}));var aA;(function(e){e.CONTROL_TYPE_DEFAULT="CONTROL_TYPE_DEFAULT",e.CONTROL_TYPE_CANNY="CONTROL_TYPE_CANNY",e.CONTROL_TYPE_SCRIBBLE="CONTROL_TYPE_SCRIBBLE",e.CONTROL_TYPE_FACE_MESH="CONTROL_TYPE_FACE_MESH"})(aA||(aA={}));var oA;(function(e){e.SUBJECT_TYPE_DEFAULT="SUBJECT_TYPE_DEFAULT",e.SUBJECT_TYPE_PERSON="SUBJECT_TYPE_PERSON",e.SUBJECT_TYPE_ANIMAL="SUBJECT_TYPE_ANIMAL",e.SUBJECT_TYPE_PRODUCT="SUBJECT_TYPE_PRODUCT"})(oA||(oA={}));var sA;(function(e){e.EDIT_MODE_DEFAULT="EDIT_MODE_DEFAULT",e.EDIT_MODE_INPAINT_REMOVAL="EDIT_MODE_INPAINT_REMOVAL",e.EDIT_MODE_INPAINT_INSERTION="EDIT_MODE_INPAINT_INSERTION",e.EDIT_MODE_OUTPAINT="EDIT_MODE_OUTPAINT",e.EDIT_MODE_CONTROLLED_EDITING="EDIT_MODE_CONTROLLED_EDITING",e.EDIT_MODE_STYLE="EDIT_MODE_STYLE",e.EDIT_MODE_BGSWAP="EDIT_MODE_BGSWAP",e.EDIT_MODE_PRODUCT_IMAGE="EDIT_MODE_PRODUCT_IMAGE"})(sA||(sA={}));var lA;(function(e){e.FOREGROUND="FOREGROUND",e.BACKGROUND="BACKGROUND",e.PROMPT="PROMPT",e.SEMANTIC="SEMANTIC",e.INTERACTIVE="INTERACTIVE"})(lA||(lA={}));var uA;(function(e){e.ASSET="ASSET",e.STYLE="STYLE"})(uA||(uA={}));var cA;(function(e){e.INSERT="INSERT",e.REMOVE="REMOVE",e.REMOVE_STATIC="REMOVE_STATIC",e.OUTPAINT="OUTPAINT"})(cA||(cA={}));var fA;(function(e){e.OPTIMIZED="OPTIMIZED",e.LOSSLESS="LOSSLESS"})(fA||(fA={}));var dA;(function(e){e.CROP="CROP",e.PAD="PAD"})(dA||(dA={}));var hA;(function(e){e.SUPERVISED_FINE_TUNING="SUPERVISED_FINE_TUNING",e.PREFERENCE_TUNING="PREFERENCE_TUNING",e.DISTILLATION="DISTILLATION"})(hA||(hA={}));var pA;(function(e){e.STATE_UNSPECIFIED="STATE_UNSPECIFIED",e.PROCESSING="PROCESSING",e.ACTIVE="ACTIVE",e.FAILED="FAILED"})(pA||(pA={}));var mA;(function(e){e.SOURCE_UNSPECIFIED="SOURCE_UNSPECIFIED",e.UPLOADED="UPLOADED",e.G
97ENERATED="GENERATED",e.REGISTERED="REGISTERED"})(mA||(mA={}));var vA;(function(e){e.TURN_COMPLETE_REASON_UNSPECIFIED="TURN_COMPLETE_REASON_UNSPECIFIED",e.MALFORMED_FUNCTION_CALL="MALFORMED_FUNCTION_CALL",e.RESPONSE_REJECTED="RESPONSE_REJECTED",e.NEED_MORE_INPUT="NEED_MORE_INPUT",e.PROHIBITED_INPUT_CONTENT="PROHIBITED_INPUT_CONTENT",e.IMAGE_PROHIBITED_INPUT_CONTENT="IMAGE_PROHIBITED_INPUT_CONTENT",e.INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED="INPUT_TEXT_CONTAIN_PROMINENT_PERSON_PROHIBITED",e.INPUT_IMAGE_CELEBRITY="INPUT_IMAGE_CELEBRITY",e.INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED="INPUT_IMAGE_PHOTO_REALISTIC_CHILD_PROHIBITED",e.INPUT_TEXT_NCII_PROHIBITED="INPUT_TEXT_NCII_PROHIBITED",e.INPUT_OTHER="INPUT_OTHER",e.INPUT_IP_PROHIBITED="INPUT_IP_PROHIBITED",e.BLOCKLIST="BLOCKLIST",e.UNSAFE_PROMPT_FOR_IMAGE_GENERATION="UNSAFE_PROMPT_FOR_IMAGE_GENERATION",e.GENERATED_IMAGE_SAFETY="GENERATED_IMAGE_SAFETY",e.GENERATED_CONTENT_SAFETY="GENERATED_CONTENT_SAFETY",e.GENERATED_AUDIO_SAFETY="GENERATED_AUDIO_SAFETY",e.GENERATED_VIDEO_SAFETY="GENERATED_VIDEO_SAFETY",e.GENERATED_CONTENT_PROHIBITED="GENERATED_CONTENT_PROHIBITED",e.GENERATED_CONTENT_BLOCKLIST="GENERATED_CONTENT_BLOCKLIST",e.GENERATED_IMAGE_PROHIBITED="GENERATED_IMAGE_PROHIBITED",e.GENERATED_IMAGE_CELEBRITY="GENERATED_IMAGE_CELEBRITY",e.GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER="GENERATED_IMAGE_PROMINENT_PEOPLE_DETECTED_BY_REWRITER",e.GENERATED_IMAGE_IDENTIFIABLE_PEOPLE="GENERATED_IMAGE_IDENTIFIABLE_PEOPLE",e.GENERATED_IMAGE_MINORS="GENERATED_IMAGE_MINORS",e.OUTPUT_IMAGE_IP_PROHIBITED="OUTPUT_IMAGE_IP_PROHIBITED",e.GENERATED_OTHER="GENERATED_OTHER",e.MAX_REGENERATION_REACHED="MAX_REGENERATION_REACHED"})(vA||(vA={}));var gA;(function(e){e.MODALITY_UNSPECIFIED="MODALITY_UNSPECIFIED",e.TEXT="TEXT",e.IMAGE="IMAGE",e.VIDEO="VIDEO",e.AUDIO="AUDIO",e.DOCUMENT="DOCUMENT"})(gA||(gA={}));var yA;(function(e){e.VAD_SIGNAL_TYPE_UNSPECIFIED="VAD_SIGNAL_TYPE_UNSPECIFIED",e.VAD_SIGNAL_TYPE_SOS="VAD_SIGNAL_TYPE_SOS",e.VAD_SIGNAL_TYPE_EOS="VAD_SIGNAL_TYPE_EOS"})(yA||(yA={}));var xA;(function(e){e.TYPE_UNSPECIFIED="TYPE_UNSPECIFIED",e.ACTIVITY_START="ACTIVITY_START",e.ACTIVITY_END="ACTIVITY_END"})(xA||(xA={}));var _A;(function(e){e.START_SENSITIVITY_UNSPECIFIED="START_SENSITIVITY_UNSPECIFIED",e.START_SENSITIVITY_HIGH="START_SENSITIVITY_HIGH",e.START_SENSITIVITY_LOW="START_SENSITIVITY_LOW"})(_A||(_A={}));var wA;(function(e){e.END_SENSITIVITY_UNSPECIFIED="END_SENSITIVITY_UNSPECIFIED",e.END_SENSITIVITY_HIGH="END_SENSITIVITY_HIGH",e.END_SENSITIVITY_LOW="END_SENSITIVITY_LOW"})(wA||(wA={}));var EA;(function(e){e.ACTIVITY_HANDLING_UNSPECIFIED="ACTIVITY_HANDLING_UNSPECIFIED",e.START_OF_ACTIVITY_INTERRUPTS="START_OF_ACTIVITY_INTERRUPTS",e.NO_INTERRUPTION="NO_INTERRUPTION"})(EA||(EA={}));var TA;(function(e){e.TURN_COVERAGE_UNSPECIFIED="TURN_COVERAGE_UNSPECIFIED",e.TURN_INCLUDES_ONLY_ACTIVITY="TURN_INCLUDES_ONLY_ACTIVITY",e.TURN_INCLUDES_ALL_INPUT="TURN_INCLUDES_ALL_INPUT",e.TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO="TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"})(TA||(TA={}));var SA;(function(e){e.SCALE_UNSPECIFIED="SCALE_UNSPECIFIED",e.C_MAJOR_A_MINOR="C_MAJOR_A_MINOR",e.D_FLAT_MAJOR_B_FLAT_MINOR="D_FLAT_MAJOR_B_FLAT_MINOR",e.D_MAJOR_B_MINOR="D_MAJOR_B_MINOR",e.E_FLAT_MAJOR_C_MINOR="E_FLAT_MAJOR_C_MINOR",e.E_MAJOR_D_FLAT_MINOR="E_MAJOR_D_FLAT_MINOR",e.F_MAJOR_D_MINOR="F_MAJOR_D_MINOR",e.G_FLAT_MAJOR_E_FLAT_MINOR="G_FLAT_MAJOR_E_FLAT_MINOR",e.G_MAJOR_E_MINOR="G_MAJOR_E_MINOR",e.A_FLAT_MAJOR_F_MINOR="A_FLAT_MAJOR_F_MINOR",e.A_MAJOR_G_FLAT_MINOR="A_MAJOR_G_FLAT_MINOR",e.B_FLAT_MAJOR_G_MINOR="B_FLAT_MAJOR_G_MINOR",e.B_MAJOR_A_FLAT_MINOR="B_MAJOR_A_FLAT_MINOR"})(SA||(SA={}));var AA;(function(e){e.MUSIC_GENERATION_MODE_UNSPECIFIED="MUSIC_GENERATION_MODE_UNSPECIFIED",e.QUALITY="QUALITY",e.DIVERSITY="DIVERSITY",e.VOCALIZATION="VOCALIZATION"})(AA||(AA={}));var pl;(function(e){e.PLAYBACK_CONTROL_UNSPECIFIED="PLAYBACK_CONTROL_UNSPECIFIED",e.PLAY="PLAY",e.PAUSE="PAUSE",e.STOP="STOP",e.RESET_CONTEXT="RESET_CONTEXT"})(pl||(pl={}));class Eh{constructor(t){const r={};for(const n of t.headers.entries())r[n[0]]=n[1];this.headers=r,this.responseInternal=t}json(){return this.responseInternal.json()}}class tc{get text(){var t,r,n,i,a,o,s,l;if(((i=(n=(r=(t=this.candidates)===null||t===void 0?void 0:t[0])===null||r===void 0?void 0:r.content)===null||n===void 0?void 0:n.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning text from the first one.");let u="",c=!1;const f=[];for(const d of(l=(s=(o=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||o===void 0?void 0:o.content)===null||s===void 0?void 0:s.parts)!==null&&l!==void 0?l:[]){for(const[m,g]of Object.entries(d))m!=="text"&&m!=="thought"&&m!=="thoughtSignature"&&(g!==null||g!==void 0)&&f.push(m);if(typeof d.text=="string"){if(typeof d.thought=="boolean"&&d.thought)continue;c=!0,u+=d.text}}return f.length>0&&console.warn(`there are non-text parts ${f} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),c?u:void 0}get data(){var t,r,n,i,a,o,s,l;if(((i=(n=(r=(t=this.candidates)===null||t===void 0?void 0:t[0])===null||r===void 0?void 0:r.content)===null||n===void 0?void 0:n.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning data from the first one.");let u="";const c=[];for(const f of(l=(s=(o=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||o===void 0?void 0:o.content)===null||s===void 0?void 0:s.parts)!==null&&l!==void 0?l:[]){for(const[d,m]of Object.entries(f))d!=="inlineData"&&(m!==null||m!==void 0)&&c.push(d);
97f.inlineData&&typeof f.inlineData.data=="string"&&(u+=atob(f.inlineData.data))}return c.length>0&&console.warn(`there are non-data parts ${c} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),u.length>0?btoa(u):void 0}get functionCalls(){var t,r,n,i,a,o,s,l;if(((i=(n=(r=(t=this.candidates)===null||t===void 0?void 0:t[0])===null||r===void 0?void 0:r.content)===null||n===void 0?void 0:n.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning function calls from the first one.");const u=(l=(s=(o=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||o===void 0?void 0:o.content)===null||s===void 0?void 0:s.parts)===null||l===void 0?void 0:l.filter(c=>c.functionCall).map(c=>c.functionCall).filter(c=>c!==void 0);if((u==null?void 0:u.length)!==0)return u}get executableCode(){var t,r,n,i,a,o,s,l,u;if(((i=(n=(r=(t=this.candidates)===null||t===void 0?void 0:t[0])===null||r===void 0?void 0:r.content)===null||n===void 0?void 0:n.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning executable code from the first one.");const c=(l=(s=(o=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||o===void 0?void 0:o.content)===null||s===void 0?void 0:s.parts)===null||l===void 0?void 0:l.filter(f=>f.executableCode).map(f=>f.executableCode).filter(f=>f!==void 0);if((c==null?void 0:c.length)!==0)return(u=c==null?void 0:c[0])===null||u===void 0?void 0:u.code}get codeExecutionResult(){var t,r,n,i,a,o,s,l,u;if(((i=(n=(r=(t=this.candidates)===null||t===void 0?void 0:t[0])===null||r===void 0?void 0:r.content)===null||n===void 0?void 0:n.parts)===null||i===void 0?void 0:i.length)===0)return;this.candidates&&this.candidates.length>1&&console.warn("there are multiple candidates in the response, returning code execution result from the first one.");const c=(l=(s=(o=(a=this.candidates)===null||a===void 0?void 0:a[0])===null||o===void 0?void 0:o.content)===null||s===void 0?void 0:s.parts)===null||l===void 0?void 0:l.filter(f=>f.codeExecutionResult).map(f=>f.codeExecutionResult).filter(f=>f!==void 0);if((c==null?void 0:c.length)!==0)return(u=c==null?void 0:c[0])===null||u===void 0?void 0:u.output}}class bA{}class CA{}class pH{}class mH{}class vH{}class gH{}class PA{}class kA{}class IA{}class yH{}class Th{_fromAPIResponse({apiResponse:t,_isVertexAI:r}){const n=new Th;let i;const a=t;return r?i=rH(a):i=tH(a),Object.assign(n,i),n}}class xH{}class NA{}class OA{}class RA{}class _H{}class wH{}class EH{}class F_{_fromAPIResponse({apiResponse:t,_isVertexAI:r}){const n=new F_,a=uH(t);return Object.assign(n,a),n}}class TH{}class SH{}class AH{}class bH{}class MA{}class CH{get text(){var t,r,n;let i="",a=!1;const o=[];for(const s of(n=(r=(t=this.serverContent)===null||t===void 0?void 0:t.modelTurn)===null||r===void 0?void 0:r.parts)!==null&&n!==void 0?n:[]){for(const[l,u]of Object.entries(s))l!=="text"&&l!=="thought"&&u!==null&&o.push(l);if(typeof s.text=="string"){if(typeof s.thought=="boolean"&&s.thought)continue;a=!0,i+=s.text}}return o.length>0&&console.warn(`there are non-text parts ${o} in the response, returning concatenation of all text parts. Please refer to the non text parts for a full response from model.`),a?i:void 0}get data(){var t,r,n;let i="";const a=[];for(const o of(n=(r=(t=this.serverContent)===null||t===void 0?void 0:t.modelTurn)===null||r===void 0?void 0:r.parts)!==null&&n!==void 0?n:[]){for(const[s,l]of Object.entries(o))s!=="inlineData"&&l!==null&&a.push(s);o.inlineData&&typeof o.inlineData.data=="string"&&(i+=atob(o.inlineData.data))}return a.length>0&&console.warn(`there are non-data parts ${a} in the response, returning concatenation of all data parts. Please refer to the non data parts for a full response from model.`),i.length>0?btoa(i):void 0}}class PH{get audioChunk(){if(this.serverContent&&this.serverContent.audioChunks&&this.serverContent.audioChunks.length>0)return this.serverContent.audioChunks[0]}}class L_{_fromAPIResponse({apiResponse:t,_isVertexAI:r}){const n=new L_,a=pR(t);return Object.assign(n,a),n}}/** 98 * @license 99 * Copyright 2025 Google LLC 100 * SPDX-License-Identifier: Apache-2.0 101 */function nt(e,t){if(!t||typeof t!="string")throw new Error("model is required and must be a string");if(t.includes("..")||t.includes("?")||t.includes("&"))throw new Error("invalid model parameter");if(e.isVertexAI()){if(t.startsWith("publishers/")||t.startsWith("projects/")||t.startsWith("models/"))return t;if(t.indexOf("/")>=0){const r=t.split("/",2);return`publishers/${r[0]}/models/${r[1]}`}else return`publishers/google/models/${t}`}else return t.startsWith("models/")||t.startsWith("tunedModels/")?t:`models/${t}`}function mR(e,t){const r=nt(e,t);return r?r.startsWith("publishers/")&&e.isVertexAI()?`projects/${e.getProject()}/locations/${e.getLocation()}/${r}`:r.startsWith("models/")&&e.isVertexAI()?`projects/${e.getProject()}/locations/${e.getLocation()}/publishers/google/${r}`:r:""}function vR(e){return Array.isArray(e)?e.map(t=>Sh(t)):[Sh(e)]}function Sh(e){if(typeof e=="object"&&e!==null)return e;throw new Error(`Could not parse input as Blob. Unsupported blob type: ${typeof e}`)}function gR(e){const t=Sh(e);if(t.mimeType&&t.mimeType.startsWith("image/"))return t;throw new Error(`Unsupported mime type: ${t.mimeType}`)}function yR(e){const t=Sh(e);if(t.mimeType&&t.mimeType.startsWith("audio/"))return t;throw new Error(`Unsupported mime type: ${t.mimeType}`)}function DA(e){if(e==null)throw new Error("PartUnion is required");if(typeof e=="object")return e;if(typeof e=="string")return{text:e};throw new Error(`Unsupported part type: ${typeof e}`)}function xR(e){if(e==null||Array.isArray(e)&&e.length===0)throw new Error("PartListUnion is required");return Array.isArray(e)?e.map(t=>DA(t)):[DA(e)]}function Ay(e){return e!=null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)}function FA(e){return e!=null&&typeof e=="object"&&"functionCall"in e}function LA(e){return e!=null&&typeof e=="object"&&"functionResponse"in e}function Ir(e){if(e==null)throw new Error("ContentUnion is required");return Ay(e)?e:{role:"user",parts:xR(e)}}function $_(e,t){if(!t)return[];if(e.isVertexAI()&&Array.isArray(t))return t.flatMap(r=>{const n=Ir(r);return n.parts&&n.parts.length>0&&n.parts[0].text!==void 0?[n.parts[0].text]:[]});if(e.isVertexAI()){const r=Ir(t);return r.parts&&r.parts.length>0&&r.parts[0].text!==void 0?[r.parts[0].text]:[]}return Array.isArray(t)?t.map(r=>Ir(r)):[Ir(t)]}function An(e){if(e==null||Array.isArray(e)&&e.length===0)throw new Error("contents are required");if(!Array.isArray(e)){if(FA(e)||LA(e))throw new Error("To specify functionCall or functionResponse parts, please wrap them in a Content object, specifying the role for them");return[Ir(e)]}const t=[],r=[],n=Ay(e[0]);for(const i of e){const a=Ay(i);if(a!=n)throw new Error("Mixing Content and Parts is not supported, please group the parts into a the appropriate Content objects and specify the roles for them");if(a)t.push(i);else{if(FA(i)||LA(i))throw new Error("To specify functionCall or functionResponse parts, please wrap them, and any other parts, in Content objects as appropriate, specifying the role for them");r.push(i)}}
101return n||t.push({role:"user",parts:xR(r)}),t}function kH(e,t){e.includes("null")&&(t.nullable=!0);const r=e.filter(n=>n!=="null");if(r.length===1)t.type=Object.values(Kt).includes(r[0].toUpperCase())?r[0].toUpperCase():Kt.TYPE_UNSPECIFIED;else{t.anyOf=[];for(const n of r)t.anyOf.push({type:Object.values(Kt).includes(n.toUpperCase())?n.toUpperCase():Kt.TYPE_UNSPECIFIED})}}function Il(e){const t={},r=["items"],n=["anyOf"],i=["properties"];if(e.type&&e.anyOf)throw new Error("type and anyOf cannot be both populated.");const a=e.anyOf;a!=null&&a.length==2&&(a[0].type==="null"?(t.nullable=!0,e=a[1]):a[1].type==="null"&&(t.nullable=!0,e=a[0])),e.type instanceof Array&&kH(e.type,t);for(const[o,s]of Object.entries(e))if(s!=null)if(o=="type"){if(s==="null")throw new Error("type: null can not be the only possible type for the field.");if(s instanceof Array)continue;t.type=Object.values(Kt).includes(s.toUpperCase())?s.toUpperCase():Kt.TYPE_UNSPECIFIED}else if(r.includes(o))t[o]=Il(s);else if(n.includes(o)){const l=[];for(const u of s){if(u.type=="null"){t.nullable=!0;continue}l.push(Il(u))}t[o]=l}else if(i.includes(o)){const l={};for(const[u,c]of Object.entries(s))l[u]=Il(c);t[o]=l}else{if(o==="additionalProperties")continue;t[o]=s}return t}function B_(e){return Il(e)}function U_(e){if(typeof e=="object")return e;if(typeof e=="string")return{voiceConfig:{prebuiltVoiceConfig:{voiceName:e}}};throw new Error(`Unsupported speechConfig type: ${typeof e}`)}function G_(e){if("multiSpeakerVoiceConfig"in e)throw new Error("multiSpeakerVoiceConfig is not supported in the live API.");return e}function Su(e){if(e.functionDeclarations)for(const t of e.functionDeclarations)t.parameters&&(Object.keys(t.parameters).includes("$schema")?t.parametersJsonSchema||(t.parametersJsonSchema=t.parameters,delete t.parameters):t.parameters=Il(t.parameters)),t.response&&(Object.keys(t.response).includes("$schema")?t.responseJsonSchema||(t.responseJsonSchema=t.response,delete t.response):t.response=Il(t.response));return e}function Au(e){if(e==null)throw new Error("tools is required");if(!Array.isArray(e))throw new Error("tools is required and must be an array of Tools");const t=[];for(const r of e)t.push(r);return t}function IH(e,t,r,n=1){const i=!t.startsWith(`${r}/`)&&t.split("/").length===n;return e.isVertexAI()?t.startsWith("projects/")?t:t.startsWith("locations/")?`projects/${e.getProject()}/${t}`:t.startsWith(`${r}/`)?`projects/${e.getProject()}/locations/${e.getLocation()}/${t}`:i?`projects/${e.getProject()}/locations/${e.getLocation()}/${r}/${t}`:t:i?`${r}/${t}`:t}function Ua(e,t){if(typeof t!="string")throw new Error("name must be a string");return IH(e,t,"cachedContents")}function _R(e){switch(e){case"STATE_UNSPECIFIED":return"JOB_STATE_UNSPECIFIED";case"CREATING":return"JOB_STATE_RUNNING";case"ACTIVE":return"JOB_STATE_SUCCEEDED";case"FAILED":return"JOB_STATE_FAILED";default:return e}}function Fo(e){return D_(e)}function NH(e){return e!=null&&typeof e=="object"&&"name"in e}function OH(e){return e!=null&&typeof e=="object"&&"video"in e}function RH(e){return e!=null&&typeof e=="object"&&"uri"in e}function wR(e){var t;let r;if(NH(e)&&(r=e.name),!(RH(e)&&(r=e.uri,r===void 0))&&!(OH(e)&&(r=(t=e.video)===null||t===void 0?void 0:t.uri,r===void 0))){if(typeof e=="string"&&(r=e),r===void 0)throw new Error("Could not extract file name from the provided input.");if(r.startsWith("https://")){const i=r.split("files/")[1].match(/[a-z0-9]+/);if(i===null)throw new Error(`Could not extract file name from URI ${r}`);r=i[0]}else r.startsWith("files/")&&(r=r.split("files/")[1]);return r}}function ER(e,t){let r;return e.isVertexAI()?r=t?"publishers/google/models":"models":r=t?"models":"tunedModels",r}function TR(e){for(const t of["models","tunedModels","publisherModels"])if(MH(e,t))return e[t];return[]}function MH(e,t){return e!==null&&typeof e=="object"&&t in e}function DH(e,t={}){const r=e,n={name:r.name,description:r.description,parametersJsonSchema:r.inputSchema};return r.outputSchema&&(n.responseJsonSchema=r.outputSchema),t.behavior&&(n.behavior=t.behavior),{functionDeclarations:[n]}}function FH(e,t={}){const r=[],n=new Set;for(const i of e){const a=i.name;if(n.has(a))throw new Error(`Duplicate function name ${a} found in MCP tools. Please ensure function names are unique.`);n.add(a);const o=DH(i,t);o.functionDeclarations&&r.push(...o.functionDeclarations)}return{functionDeclarations:r}}function SR(e,t){let r;if(typeof t=="string")if(e.isVertexAI())if(t.startsWith("gs://"))r={format:"jsonl",gcsUri:[t]};else if(t.startsWith("bq://"))r={format:"bigquery",bigqueryUri:t};else if(/^projects\/[^/]+\/locations\/[^/]+\/datasets\/[^/]+$/.test(t))r={format:"vertex-dataset",vertexDatasetN
101ame:t};else throw new Error(`Unsupported string source for Vertex AI: ${t}`);else if(t.startsWith("files/"))r={fileName:t};else throw new Error(`Unsupported string source for Gemini API: ${t}`);else if(Array.isArray(t)){if(e.isVertexAI())throw new Error("InlinedRequest[] is not supported in Vertex AI.");r={inlinedRequests:t}}else r=t;const n=[r.gcsUri,r.bigqueryUri,r.vertexDatasetName].filter(Boolean).length,i=[r.inlinedRequests,r.fileName].filter(Boolean).length;if(e.isVertexAI()){if(i>0||n!==1)throw new Error("Exactly one of `gcsUri`, `bigqueryUri`, or `vertexDatasetName` must be set for Vertex AI.")}else if(n>0||i!==1)throw new Error("Exactly one of `inlinedRequests`, `fileName`, must be set for Gemini API.");return r}function LH(e){if(typeof e!="string")return e;const t=e;if(t.startsWith("gs://"))return{format:"jsonl",gcsUri:t};if(t.startsWith("bq://"))return{format:"bigquery",bigqueryUri:t};throw new Error(`Unsupported destination: ${t}`)}function AR(e){if(typeof e!="object"||e===null)return{};const t=e,r=t.inlinedResponses;if(typeof r!="object"||r===null)return e;const i=r.inlinedResponses;if(!Array.isArray(i)||i.length===0)return e;let a=!1;for(const o of i){if(typeof o!="object"||o===null)continue;const l=o.response;if(typeof l!="object"||l===null)continue;if(l.embedding!==void 0){a=!0;break}}return a&&(t.inlinedEmbedContentResponses=t.inlinedResponses,delete t.inlinedResponses),e}function bu(e,t){const r=t;if(!e.isVertexAI()){if(/batches\/[^/]+$/.test(r))return r.split("/").pop();throw new Error(`Invalid batch job name: ${r}.`)}if(/^projects\/[^/]+\/locations\/[^/]+\/batchPredictionJobs\/[^/]+$/.test(r))return r.split("/").pop();if(/^\d+$/.test(r))return r;throw new Error(`Invalid batch job name: ${r}.`)}function bR(e){const t=e;return t==="BATCH_STATE_UNSPECIFIED"?"JOB_STATE_UNSPECIFIED":t==="BATCH_STATE_PENDING"?"JOB_STATE_PENDING":t==="BATCH_STATE_RUNNING"?"JOB_STATE_RUNNING":t==="BATCH_STATE_SUCCEEDED"?"JOB_STATE_SUCCEEDED":t==="BATCH_STATE_FAILED"?"JOB_STATE_FAILED":t==="BATCH_STATE_CANCELLED"?"JOB_STATE_CANCELLED":t==="BATCH_STATE_EXPIRED"?"JOB_STATE_EXPIRED":t}function $H(e){return e.includes("gemini")&&e!=="gemini-embedding-001"||e.includes("maas")}/** 102 * @license 103 * Copyright 2025 Google LLC 104 * SPDX-License-Identifier: Apache-2.0 105 */function BH(e){const t={},r=h(e,["apiKey"]);if(r!=null&&p(t,["apiKey"],r),h(e,["apiKeyConfig"])!==void 0)throw new Error("apiKeyConfig parameter is not supported in Gemini API.");if(h(e,["authType"])!==void 0)throw new Error("authType parameter is not supported in Gemini API.");if(h(e,["googleServiceAccountConfig"])!==void 0)throw new Error("googleServiceAccountConfig parameter is not supported in Gemini API.");if(h(e,["httpBasicAuthConfig"])!==void 0)throw new Error("httpBasicAuthConfig parameter is not supported in Gemini API.");if(h(e,["oauthConfig"])!==void 0)throw new Error("oauthConfig parameter is not supported in Gemini API.");if(h(e,["oidcConfig"])!==void 0)throw new Error("oidcConfig parameter is not supported in Gemini API.");return t}function UH(e){const t={},r=h(e,["responsesFile"]);r!=null&&p(t,["fileName"],r);const n=h(e,["inlinedResponses","inlinedResponses"]);if(n!=null){let a=n;Array.isArray(a)&&(a=a.map(o=>_j(o))),p(t,["inlinedResponses"],a)}const i=h(e,["inlinedEmbedContentResponses","inlinedResponses"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>o)),p(t,["inlinedEmbedContentResponses"],a)}return t}function GH(e){const t={},r=h(e,["predictionsFormat"]);r!=null&&p(t,["format"],r);const n=h(e,["gcsDestination","outputUriPrefix"]);n!=null&&p(t,["gcsUri"],n);const i=h(e,["bigqueryDestination","outputUri"]);i!=null&&p(t,["bigqueryUri"],i);const a=h(e,["vertexMultimodalDatasetDestination"]);return a!=null&&p(t,["vertexDataset"],Nj(a)),t}function VH(e){const t={},r=h(e,["format"]);r!=null&&p(t,["predictionsFormat"],r);const n=h(e,["gcsUri"]);n!=null&&p(t,["gcsDestination","outputUriPrefix"],n);const i=h(e,["bigqueryUri"]);if(i!=null&&p(t,["bigqueryDestination","outputUri"],i),h(e,["fileName"])!==void 0)throw new Error("fileName parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");if(h(e,["inlinedResponses"])!==void 0)throw new Error("inlinedResponses parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");if(h(e,["inlinedEmbedContentResponses"])!==void 0)throw new Error("inlinedEmbedContentResponses parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");const a=h(e,["vertexDataset"]);return a!=null&&p(t,["vertexMultimodalDatasetDestination"],Oj(a)),t}function F0(e){const t={},r=h(e,["name"]);r!=null&&p(t,["name"],r);const n=h(e,["metadata","displayName"]);n!=null&&p(t,["displayName"],n);
105const i=h(e,["metadata","state"]);i!=null&&p(t,["state"],bR(i));const a=h(e,["metadata","createTime"]);a!=null&&p(t,["createTime"],a);const o=h(e,["metadata","endTime"]);o!=null&&p(t,["endTime"],o);const s=h(e,["metadata","updateTime"]);s!=null&&p(t,["updateTime"],s);const l=h(e,["metadata","model"]);l!=null&&p(t,["model"],l);const u=h(e,["metadata","output"]);return u!=null&&p(t,["dest"],UH(AR(u))),t}function by(e){const t={},r=h(e,["name"]);r!=null&&p(t,["name"],r);const n=h(e,["displayName"]);n!=null&&p(t,["displayName"],n);const i=h(e,["state"]);i!=null&&p(t,["state"],bR(i));const a=h(e,["error"]);a!=null&&p(t,["error"],a);const o=h(e,["createTime"]);o!=null&&p(t,["createTime"],o);const s=h(e,["startTime"]);s!=null&&p(t,["startTime"],s);const l=h(e,["endTime"]);l!=null&&p(t,["endTime"],l);const u=h(e,["updateTime"]);u!=null&&p(t,["updateTime"],u);const c=h(e,["model"]);c!=null&&p(t,["model"],c);const f=h(e,["inputConfig"]);f!=null&&p(t,["src"],HH(f));const d=h(e,["outputConfig"]);d!=null&&p(t,["dest"],GH(AR(d)));const m=h(e,["completionStats"]);m!=null&&p(t,["completionStats"],m);const g=h(e,["outputInfo"]);return g!=null&&p(t,["outputInfo"],g),t}function HH(e){const t={},r=h(e,["instancesFormat"]);r!=null&&p(t,["format"],r);const n=h(e,["gcsSource","uris"]);n!=null&&p(t,["gcsUri"],n);const i=h(e,["bigquerySource","inputUri"]);i!=null&&p(t,["bigqueryUri"],i);const a=h(e,["vertexMultimodalDatasetSource","datasetName"]);return a!=null&&p(t,["vertexDatasetName"],a),t}function jH(e,t){const r={};if(h(t,["format"])!==void 0)throw new Error("format parameter is not supported in Gemini API.");if(h(t,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");if(h(t,["bigqueryUri"])!==void 0)throw new Error("bigqueryUri parameter is not supported in Gemini API.");const n=h(t,["fileName"]);n!=null&&p(r,["fileName"],n);const i=h(t,["inlinedRequests"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>xj(e,o))),p(r,["requests","requests"],a)}if(h(t,["vertexDatasetName"])!==void 0)throw new Error("vertexDatasetName parameter is not supported in Gemini API.");return r}function zH(e){const t={},r=h(e,["format"]);r!=null&&p(t,["instancesFormat"],r);const n=h(e,["gcsUri"]);n!=null&&p(t,["gcsSource","uris"],n);const i=h(e,["bigqueryUri"]);if(i!=null&&p(t,["bigquerySource","inputUri"],i),h(e,["fileName"])!==void 0)throw new Error("fileName parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");if(h(e,["inlinedRequests"])!==void 0)throw new Error("inlinedRequests parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");const a=h(e,["vertexDatasetName"]);return a!=null&&p(t,["vertexMultimodalDatasetSource","datasetName"],a),t}function WH(e){const t={},r=h(e,["data"]);if(r!=null&&p(t,["data"],r),h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(e,["mimeType"]);return n!=null&&p(t,["mimeType"],n),t}function qH(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],bu(e,n)),r}function KH(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],bu(e,n)),r}function YH(e){const t={},r=h(e,["content"]);r!=null&&p(t,["content"],r);const n=h(e,["citationMetadata"]);n!=null&&p(t,["citationMetadata"],XH(n));const i=h(e,["tokenCount"]);i!=null&&p(t,["tokenCount"],i);const a=h(e,["finishReason"]);a!=null&&p(t,["finishReason"],a);const o=h(e,["groundingMetadata"]);o!=null&&p(t,["groundingMetadata"],o);const s=h(e,["avgLogprobs"]);s!=null&&p(t,["avgLogprobs"],s);const l=h(e,["index"]);l!=null&&p(t,["index"],l);const u=h(e,["logprobsResult"]);u!=null&&p(t,["logprobsResult"],u);const c=h(e,["safetyRatings"]);if(c!=null){let d=c;Array.isArray(d)&&(d=d.map(m=>m)),p(t,["safetyRatings"],d)}const f=h(e,["urlContextMetadata"]);return f!=null&&p(t,["urlContextMetadata"],f),t}function XH(e){const t={},r=h(e,["citationSources"]);if(r!=null){let n=r;Array.isArray(n)&&(n=n.map(i=>i)),p(t,["citations"],n)}return t}function CR(e){const t={},r=h(e,["parts"]);if(r!=null){let i=r;Array.isArray(i)&&(i=i.map(a=>Cj(a))),p(t,["parts"],i)}const n=h(e,["role"]);return n!=null&&p(t,["role"],n),t}function JH(e,t){const r={},n=h(e,["displayName"]);if(t!==void 0&&n!=null&&p(t,["batch","displayName"],n),h(e,["dest"])!==void 0)throw new Error("dest parameter is not supported in Gemini API.");const i=h(e,["webhookConfig"]);return t!==void 0&&i!=null&&p(t,["batch","webhookConfig"],i),r}function ZH(e,t){const r={},n=h(e,["displayName"]);t!==void 0&&n!=null&&p(t,["displayName"],n);const i=h(e,["dest"]);if(t!==void 0&&i!=null&&p(t,["outputConfig"],VH(LH(i))),h(e,["webhookConfig"])!==void 0)throw new Error("webhookConfig parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return r}function $A(e,t){const r={},n=h(t,["model"]);n!=null&&p(r,["_url","model"],nt(e,n));const i=h(t,["src"]);i!=null&&p(r,["batch","inputConfig"],jH(e,SR(e,i)));const a=h(t,["config"]);return a!=null&&JH(a,r),r}function QH(e,t){const r={},n=h(t,["model"]);n!=null&&p(r,["model"],nt(e,n));const i=h(t,["src"]);i!=null&&p(r,["inputConfig"],zH(SR(e,i)));const a=h(t,["config"]);return a!=null&&ZH(a,r),r}function ej(e,t){const r={},n=h(e,["displayName"]);return t!==void 0&&n!=null&&p(t,["batch","displayName"],n),r}function tj(e,t){const r={},n=h(t,["model"]);n!=null&&p(r,["_url","model"],nt(e,n));const i=h(t,["src"]);i!=null&&p(r,["batch","inputConfig"],lj(e,i));const a=h(t,["config"]);return a!=null&&ej(a,r),r}function rj(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],bu(e,n)),r}function nj(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],bu(e,n)),r}function ij(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["name"]);n!=null&&p(t,["name"],n);const i=h(e,["done"]);i!=null&&p(t,["done"],i);const a=h(e,["error"]);return a!=null&&p(t,["error"],a),t}function aj(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["name"]);n!=null&&p(t,["name"],n);const i=h(e,["done"]);i!=null&&p(t,["done"],i);const a=h(e,["error"]);return a!=null&&p(t,["error"],a),t}function oj(e,t){const r={},n=h(t,["contents"]);if(n!=null){let a=$_(e,n);Array.isArray(a)&&(a=a.map(o=>o)),p(r,["requests[]","request","content"],a)}const i=h(t,["config"]);return i!=null&&(p(r,["_self"],sj(i,r)),QV(r,{"requests[].*":"requests[].request.*"})),r}function sj(e,t){const r={},n=h(e,["taskType"]);t!==void 0&&n!=null&&p(t,["requests[]","taskType"],n);const i=h(e,["title"]);t!==void 0&&i!=null&&p(t,["requests[]","title"],i);const a=h(e,["outputDimensionality"]);if(t!==void 0&&a!=null&&p(t,["requests[]","outputDimensionality"],a),h(e,["mimeType"])!==void 0)throw new Error("mimeType parameter is not supported in Gemini API.");if(h(e,["autoTruncate"])!==void 0)throw new Error("autoTruncate parameter is not supported in Gemini API.");if(h(e,["documentOcr"])!==void 0)throw new Error("documentOcr parameter is not supported in Gemini API.");if(h(e,["audioTrackExtraction"])!==void 0)throw new Error("audioTrackExtraction parameter is not supported in Gemini API.");return r}function lj(e,t){const r={},n=h(t,["fileName"]);n!=null&&p(r,["file_name"],n);const i=h(t,["inlinedRequests"]);return i!=null&&p(r,["requests"],oj(e,i)),r}function uj(e){const t={};if(h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=h(e,["fileUri"]);r!=null&&p(t,["fileUri"],r);const n=h(e,["mimeType"]);return n!=null&&p(t,["mimeType"],n),t}function cj(e){const t={},r=h(e,["id"]);r!=null&&p(t,["id"],r);const n=h(e,["args"]);n!=null&&p(t,["args"],n);const i=h(e,["name"]);if(i!=null&&p(t,["name"],i),h(e,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");
105if(h(e,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return t}function fj(e){const t={},r=h(e,["allowedFunctionNames"]);r!=null&&p(t,["allowedFunctionNames"],r);const n=h(e,["mode"]);if(n!=null&&p(t,["mode"],n),h(e,["streamFunctionCallArguments"])!==void 0)throw new Error("streamFunctionCallArguments parameter is not supported in Gemini API.");return t}function dj(e,t,r){const n={},i=h(t,["systemInstruction"]);r!==void 0&&i!=null&&p(r,["systemInstruction"],CR(Ir(i)));const a=h(t,["temperature"]);a!=null&&p(n,["temperature"],a);const o=h(t,["topP"]);o!=null&&p(n,["topP"],o);const s=h(t,["topK"]);s!=null&&p(n,["topK"],s);const l=h(t,["candidateCount"]);l!=null&&p(n,["candidateCount"],l);const u=h(t,["maxOutputTokens"]);u!=null&&p(n,["maxOutputTokens"],u);const c=h(t,["stopSequences"]);c!=null&&p(n,["stopSequences"],c);const f=h(t,["responseLogprobs"]);f!=null&&p(n,["responseLogprobs"],f);const d=h(t,["logprobs"]);d!=null&&p(n,["logprobs"],d);const m=h(t,["presencePenalty"]);m!=null&&p(n,["presencePenalty"],m);const g=h(t,["frequencyPenalty"]);g!=null&&p(n,["frequencyPenalty"],g);const v=h(t,["seed"]);v!=null&&p(n,["seed"],v);const y=h(t,["responseMimeType"]);y!=null&&p(n,["responseMimeType"],y);const x=h(t,["responseSchema"]);x!=null&&p(n,["responseSchema"],B_(x));const w=h(t,["responseJsonSchema"]);if(w!=null&&p(n,["responseJsonSchema"],w),h(t,["routingConfig"])!==void 0)throw new Error("routingConfig parameter is not supported in Gemini API.");if(h(t,["modelSelectionConfig"])!==void 0)throw new Error("modelSelectionConfig parameter is not supported in Gemini API.");const _=h(t,["safetySettings"]);if(r!==void 0&&_!=null){let K=_;Array.isArray(K)&&(K=K.map(U=>Pj(U))),p(r,["safetySettings"],K)}const S=h(t,["tools"]);if(r!==void 0&&S!=null){let K=Au(S);Array.isArray(K)&&(K=K.map(U=>Ij(Su(U)))),p(r,["tools"],K)}const T=h(t,["toolConfig"]);if(r!==void 0&&T!=null&&p(r,["toolConfig"],kj(T)),h(t,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const E=h(t,["cachedContent"]);r!==void 0&&E!=null&&p(r,["cachedContent"],Ua(e,E));const A=h(t,["responseModalities"]);A!=null&&p(n,["responseModalities"],A);const P=h(t,["mediaResolution"]);P!=null&&p(n,["mediaResolution"],P);const C=h(t,["speechConfig"]);if(C!=null&&p(n,["speechConfig"],U_(C)),h(t,["audioTimestamp"])!==void 0)throw new Error("audioTimestamp parameter is not supported in Gemini API.");const N=h(t,["thinkingConfig"]);N!=null&&p(n,["thinkingConfig"],N);const M=h(t,["imageConfig"]);M!=null&&p(n,["imageConfig"],yj(M));const k=h(t,["enableEnhancedCivicAnswers"]);if(k!=null&&p(n,["enableEnhancedCivicAnswers"],k),h(t,["modelArmorConfig"])!==void 0)throw new Error("modelArmorConfig parameter is not supported in Gemini API.");const H=h(t,["serviceTier"]);return r!==void 0&&H!=null&&p(r,["serviceTier"],H),n}function hj(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["candidates"]);if(n!=null){let u=n;Array.isArray(u)&&(u=u.map(c=>YH(c))),p(t,["candidates"],u)}const i=h(e,["modelVersion"]);i!=null&&p(t,["modelVersion"],i);const a=h(e,["promptFeedback"]);a!=null&&p(t,["promptFeedback"],a);const o=h(e,["responseId"]);o!=null&&p(t,["responseId"],o);const s=h(e,["usageMetadata"]);s!=null&&p(t,["usageMetadata"],s);const l=h(e,["modelStatus"]);return l!=null&&p(t,["modelStatus"],l),t}function pj(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],bu(e,n)),r}function mj(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],bu(e,n)),r}function vj(e){const t={},r=h(e,["authConfig"]);r!=null&&p(t,["authConfig"],BH(r));const n=h(e,["enableWidget"]);return n!=null&&p(t,["enableWidget"],n),t}function gj(e){const t={},r=h(e,["searchTypes"]);if(r!=null&&p(t,["searchTypes"],r),h(e,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");if(h(e,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");const n=h(e,["timeRangeFilter"]);return n!=null&&p(t,["timeRangeFilter"],n),t}function yj(e){const t={},r=h(e,["aspectRatio"]);r!=null&&p(t,["aspectRatio"],r);const n=h(e,["imageSize"]);if(n!=null&&p(t,["imageSize"],n),h(e,["personGeneration"])!==void 0)throw new Error("personGeneration parameter is not supported in Gemini API.");if(h(e,["prominentPeople"])!==void 0)throw new Error("prominentPeople parameter is not supported in Gemini API.");if(h(e,["outputMimeType"])!==void 0)throw new Error("outputMimeType parameter is not supported in Gemini API.");if(h(e,["outputCompressionQuality"])!==void 0)throw new Error("outputCompressionQuality parameter is not supported in Gemini API.");if(h(e,["imageOutputOptions"])!==void 0)throw new Error("imageOutputOptions parameter is not supported in Gemini API.");return t}function xj(e,t){const r={},n=h(t,["model"]);n!=null&&p(r,["request","model"],nt(e,n));const i=h(t,["contents"]);if(i!=null){let s=An(i);Array.isArray(s)&&(s=s.map(l=>CR(l))),p(r,["request","contents"],s)}const a=h(t,["metadata"]);a!=null&&p(r,["metadata"],a);const o=h(t,["config"]);return o!=null&&p(r,["request","generationConfig"],dj(e,o,h(r,["request"],{}))),r}function _j(e){const t={},r=h(e,["response"]);r!=null&&p(t,["response"],hj(r));const n=h(e,["metadata"]);n!=null&&p(t,["metadata"],n);const i=h(e,["error"]);return i!=null&&p(t,["error"],i),t}function wj(e,t){const r={},n=h(e,["pageSize"]);t!==void 0&&n!=null&&p(t,["_query","pageSize"],n);const i=h(e,["pageToken"]);if(t!==void 0&&i!=null&&p(t,["_query","pageToken"],i),h(e,["filter"])!==void 0)throw new Error("filter parameter is not supported in Gemini API.");return r}function Ej(e,t){const r={},n=h(e,["pageSize"]);t!==void 0&&n!=null&&p(t,["_query","pageSize"],n);const i=h(e,["pageToken"]);t!==void 0&&i!=null&&p(t,["_query","pageToken"],i);const a=h(e,["filter"]);return t!==void 0&&a!=null&&p(t,["_query","filter"],a),r}function Tj(e){const t={},r=h(e,["config"]);return r!=null&&wj(r,t),t}function Sj(e){const t={},r=h(e,["config"]);return r!=null&&Ej(r,t),t}function Aj(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["nextPageToken"]);n!=null&&p(t,["nextPageToken"],n);const i=h(e,["operations"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>F0(o))),p(t,["batchJobs"],a)}return t}function bj(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["nextPageToken"]);n!=null&&p(t,["nextPageToken"],n);const i=h(e,["batchPredictionJobs"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>by(o))),p(t,["batchJobs"],a)}return t}function Cj(e){const t={},r=h(e,["mediaResolution"]);r!=null&&p(t,["mediaResolution"],r);const n=h(e,["codeExecutionResult"]);n!=null&&p(t,["codeExecutionResult"],n);const i=h(e,["executableCode"]);i!=null&&p(t,["executableCode"],i);const a=h(e,["fileData"]);a!=null&&p(t,["fileData"],uj(a));const o=h(e,["functionCall"]);o!=null&&p(t,["functionCall"],cj(o));const s=h(e,["functionResponse"]);s!=null&&p(t,["functionResponse"],s);const l=h(e,["inlineData"]);l!=null&&p(t,["inlineData"],WH(l));const u=h(e,["text"]);u!=null&&p(t,["text"],u);const c=h(e,["thought"]);c!=null&&p(t,["thought"],c);const f=h(e,["thoughtSignature"]);f!=null&&p(t,["thoughtSignature"],f);const d=h(e,["videoMetadata"]);d!=null&&p(t,["videoMetadata"],d);const m=h(e,["toolCall"]);m!=null&&p(t,["toolCall"],m);const g=h(e,["toolResponse"]);g!=null&&p(t,["toolResponse"],g);const v=h(e,["partMetadata"]);return v!=null&&p(t,["partMetadata"],v),t}function Pj(e){const t={},r=h(e,["category"]);if(r!=null&&p(t,["category"],r),h(e,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const n=h(e,["threshold"]);return n!=null&&p(t,["threshold"],n),t}function kj(e){const t={},r=h(e,["retrievalConfig"]);r!=null&&p(t,["retrievalConfig"],r);const n=h(e,["functionCallingConfig"]);n!=null&&p(t,["functionCallingConfig"],fj(n));const i=h(e,["includeServerSideToolInvocations"]);return i!=null&&p(t,["includeServerSideToolInvocations"],i),t}function Ij(e){const t={};if(h(e,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=h(e,["computerUse"]);r!=null&&p(t,["computerUse"],r);const n=h(e,["fileSearch"]);n!=null&&p(t,["fileSearch"],n);const i=h(e,["googleSearch"]);i!=null&&p(t,["googleSearch"],gj(i));const a=h(e,["googleMaps"]);
105a!=null&&p(t,["googleMaps"],vj(a));const o=h(e,["codeExecution"]);if(o!=null&&p(t,["codeExecution"],o),h(e,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const s=h(e,["functionDeclarations"]);if(s!=null){let f=s;Array.isArray(f)&&(f=f.map(d=>d)),p(t,["functionDeclarations"],f)}const l=h(e,["googleSearchRetrieval"]);if(l!=null&&p(t,["googleSearchRetrieval"],l),h(e,["parallelAiSearch"])!==void 0)throw new Error("parallelAiSearch parameter is not supported in Gemini API.");const u=h(e,["urlContext"]);u!=null&&p(t,["urlContext"],u);const c=h(e,["mcpServers"]);if(c!=null){let f=c;Array.isArray(f)&&(f=f.map(d=>d)),p(t,["mcpServers"],f)}return t}function Nj(e){const t={},r=h(e,["bigqueryDestination","outputUri"]);r!=null&&p(t,["bigqueryDestination"],r);const n=h(e,["displayName"]);return n!=null&&p(t,["displayName"],n),t}function Oj(e){const t={},r=h(e,["bigqueryDestination"]);r!=null&&p(t,["bigqueryDestination","outputUri"],r);const n=h(e,["displayName"]);return n!=null&&p(t,["displayName"],n),t}/** 106 * @license 107 * Copyright 2025 Google LLC 108 * SPDX-License-Identifier: Apache-2.0 109 */var Ra;(function(e){e.PAGED_ITEM_BATCH_JOBS="batchJobs",e.PAGED_ITEM_MODELS="models",e.PAGED_ITEM_TUNING_JOBS="tuningJobs",e.PAGED_ITEM_FILES="files",e.PAGED_ITEM_CACHED_CONTENTS="cachedContents",e.PAGED_ITEM_FILE_SEARCH_STORES="fileSearchStores",e.PAGED_ITEM_DOCUMENTS="documents"})(Ra||(Ra={}));class Bs{constructor(t,r,n,i){this.pageInternal=[],this.paramsInternal={},this.requestInternal=r,this.init(t,n,i)}init(t,r,n){var i,a;this.nameInternal=t,this.pageInternal=r[this.nameInternal]||[],this.sdkHttpResponseInternal=r==null?void 0:r.sdkHttpResponse,this.idxInternal=0;let o={config:{}};!n||Object.keys(n).length===0?o={config:{}}:typeof n=="object"?o=Object.assign({},n):o=n,o.config&&(o.config.pageToken=r.nextPageToken),this.paramsInternal=o,this.pageInternalSize=(a=(i=o.config)===null||i===void 0?void 0:i.pageSize)!==null&&a!==void 0?a:this.pageInternal.length}initNextPage(t){this.init(this.nameInternal,t,this.paramsInternal)}get page(){return this.pageInternal}get name(){return this.nameInternal}get pageSize(){return this.pageInternalSize}get sdkHttpResponse(){return this.sdkHttpResponseInternal}get params(){return this.paramsInternal}get pageLength(){return this.pageInternal.length}getItem(t){return this.pageInternal[t]}[Symbol.asyncIterator](){return{next:async()=>{if(this.idxInternal>=this.pageLength)if(this.hasNextPage())await this.nextPage();else return{value:void 0,done:!0};const t=this.getItem(this.idxInternal);return this.idxInternal+=1,{value:t,done:!1}},return:async()=>({value:void 0,done:!0})}}async nextPage(){if(!this.hasNextPage())throw new Error("No more pages to fetch.");const t=await this.requestInternal(this.params);return this.initNextPage(t),this.page}hasNextPage(){var t;return((t=this.params.config)===null||t===void 0?void 0:t.pageToken)!==void 0}}/** 110 * @license 111 * Copyright 2025 Google LLC 112 * SPDX-License-Identifier: Apache-2.0 113 */class Rj extends Ba{constructor(t){super(),this.apiClient=t,this.list=async(r={})=>new Bs(Ra.PAGED_ITEM_BATCH_JOBS,n=>this.listInternal(n),await this.listInternal(r),r),this.create=async r=>(this.apiClient.isVertexAI()&&(r.config=this.formatDestination(r.src,r.config)),this.createInternal(r)),this.createEmbeddings=async r=>{if(console.warn("batches.createEmbeddings() is experimental and may change without notice."),this.apiClient.isVertexAI())throw new Error("Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support batches.createEmbeddings.");return this.createEmbeddingsInternal(r)}}createInlinedGenerateContentRequest(t){const r=$A(this.apiClient,t),n=r._url,i=Ae("{model}:batchGenerateContent",n),s=r.batch.inputConfig.requests,l=s.requests,u=[];for(const c of l){const f=Object.assign({},c);if(f.systemInstruction){const d=f.systemInstruction;delete f.systemInstruction;const m=f.request;m.systemInstruction=d,f.request=m}u.push(f)}return s.requests=u,delete r.config,delete r._url,delete r._query,{path:i,body:r}}getGcsUri(t){if(typeof t=="string")return t.startsWith("gs://")?t:void 0;if(!Array.isArray(t)&&t.gcsUri&&t.gcsUri.length>0)return t.gcsUri[0]}getBigqueryUri(t){if(typeof t=="string")return t.startsWith("bq://")?t:void 0;if(!Array.isArray(t))return t.bigqueryUri}formatDestination(t,r){const n=r?Object.assign({},r):{},i=Date.now().toString();if(n.displayName||(n.displayName=`genaiBatchJob_${i}`),n.dest===void 0){const a=this.getGcsUri(t),o=this.getBigqueryUri(t);if(a)a.endsWith(".jsonl")?n.dest=`${a.slice(0,-6)}/dest`:n.dest=`${a}_dest_${i}`;else if(o)n.dest=`${o}_dest_${i}`;else throw new Error("Unsupported source for Gemini Enterprise Agent Platform (previously known as Vertex AI): No GCS or BigQuery URI found.")}return n}async createInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=QH(this.apiClient,t);return s=Ae("batchPredictionJobs",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
113Signal}).then(c=>c.json()),o.then(c=>by(c))}else{const u=$A(this.apiClient,t);return s=Ae("{model}:batchGenerateContent",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json()),o.then(c=>F0(c))}}async createEmbeddingsInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=tj(this.apiClient,t);return a=Ae("{model}:asyncBatchEmbedContent",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json()),i.then(l=>F0(l))}}async get(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=mj(this.apiClient,t);return s=Ae("batchPredictionJobs/{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
113Signal}).then(c=>c.json()),o.then(c=>by(c))}else{const u=pj(this.apiClient,t);return s=Ae("batches/{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json()),o.then(c=>F0(c))}}async cancel(t){var r,n,i,a;let o="",s={};if(this.apiClient.isVertexAI()){const l=KH(this.apiClient,t);o=Ae("batchPredictionJobs/{name}:cancel",l._url),s=l._query,delete l._url,delete l._query,await this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(l),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal})}else{const l=qH(this.apiClient,t);o=Ae("batches/{name}:cancel",l._url),s=l._query,delete l._url,delete l._query,await this.apiClient.request({path:o,queryParams:s,body:JSON.stringify(l),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal})}}async listInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=Sj(t);return s=Ae("batchPredictionJobs",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
113Signal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=bj(c),d=new MA;return Object.assign(d,f),d})}else{const u=Tj(t);return s=Ae("batches",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=Aj(c),d=new MA;return Object.assign(d,f),d})}}async delete(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=nj(this.apiClient,t);return s=Ae("batchPredictionJobs/{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"DELETE",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>aj(c))}else{const u=rj(this.apiClient,t);return s=Ae("batches/{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"DELETE",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>ij(c))}}}/** 114 * @license 115 * Copyright 2025 Google LLC 116 * SPDX-License-Identifier: Apache-2.0 117 */function Mj(e){const t={},r=h(e,["apiKey"]);if(r!=null&&p(t,["apiKey"],r),h(e,["apiKeyConfig"])!==void 0)throw new Error("apiKeyConfig parameter is not supported in Gemini API.");if(h(e,["authType"])!==void 0)throw new Error("authType parameter is not supported in Gemini API.");if(h(e,["googleServiceAccountConfig"])!==void 0)throw new Error("googleServiceAccountConfig parameter is not supported in Gemini API.");if(h(e,["httpBasicAuthConfig"])!==void 0)throw new Error("httpBasicAuthConfig parameter is not supported in Gemini API.");if(h(e,["oauthConfig"])!==void 0)throw new Error("oauthConfig parameter is not supported in Gemini API.");if(h(e,["oidcConfig"])!==void 0)throw new Error("oidcConfig parameter is not supported in Gemini API.");return t}function Dj(e){const t={},r=h(e,["data"]);if(r!=null&&p(t,["data"],r),h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(e,["mimeType"]);return n!=null&&p(t,["mimeType"],n),t}function BA(e){const t={},r=h(e,["parts"]);if(r!=null){let i=r;Array.isArray(i)&&(i=i.map(a=>iz(a))),p(t,["parts"],i)}const n=h(e,["role"]);return n!=null&&p(t,["role"],n),t}function UA(e){const t={},r=h(e,["parts"]);if(r!=null){let i=r;Array.isArray(i)&&(i=i.map(a=>az(a))),p(t,["parts"],i)}const n=h(e,["role"]);return n!=null&&p(t,["role"],n),t}function Fj(e,t){const r={},n=h(e,["ttl"]);t!==void 0&&n!=null&&p(t,["ttl"],n);const i=h(e,["expireTime"]);t!==void 0&&i!=null&&p(t,["expireTime"],i);const a=h(e,["displayName"]);t!==void 0&&a!=null&&p(t,["displayName"],a);const o=h(e,["contents"]);if(t!==void 0&&o!=null){let c=An(o);Array.isArray(c)&&(c=c.map(f=>BA(f))),p(t,["contents"],c)}const s=h(e,["systemInstruction"]);t!==void 0&&s!=null&&p(t,["systemInstruction"],BA(Ir(s)));const l=h(e,["tools"]);if(t!==void 0&&l!=null){let c=l;Array.isArray(c)&&(c=c.map(f=>lz(f))),p(t,["tools"],c)}const u=h(e,["toolConfig"]);if(t!==void 0&&u!=null&&p(t,["toolConfig"],oz(u)),h(e,["kmsKeyName"])!==void 0)throw new Error("kmsKeyName parameter is not supported in Gemini API.");return r}function Lj(e,t){const r={},n=h(e,["ttl"]);t!==void 0&&n!=null&&p(t,["ttl"],n);const i=h(e,["expireTime"]);t!==void 0&&i!=null&&p(t,["expireTime"],i);const a=h(e,["displayName"]);t!==void 0&&a!=null&&p(t,["displayName"],a);const o=h(e,["contents"]);if(t!==void 0&&o!=null){let f=An(o);Array.isArray(f)&&(f=f.map(d=>UA(d))),p(t,["contents"],f)}const s=h(e,["systemInstruction"]);t!==void 0&&s!=null&&p(t,["systemInstruction"],UA(Ir(s)));const l=h(e,["tools"]);if(t!==void 0&&l!=null){let f=l;Array.isArray(f)&&(f=f.map(d=>uz(d))),p(t,["tools"],f)}const u=h(e,["toolConfig"]);t!==void 0&&u!=null&&p(t,["toolConfig"],sz(u));const c=h(e,["kmsKeyName"]);return t!==void 0&&c!=null&&p(t,["encryption_spec","kmsKeyName"],c),r}function $j(e,t){const r={},n=h(t,["model"]);n!=null&&p(r,["model"],mR(e,n));const i=h(t,["config"]);return i!=null&&Fj(i,r),r}function Bj(e,t){const r={},n=h(t,["model"]);n!=null&&p(r,["model"],mR(e,n));const i=h(t,["config"]);return i!=null&&Lj(i,r),r}function Uj(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],Ua(e,n)),r}function Gj(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],Ua(e,n)),r}function Vj(e){const t={},r=h(e,["sdkHttpResponse"]);return r!=null&&p(t,["sdkHttpResponse"],r),t}function Hj(e){const t={},r=h(e,["sdkHttpResponse"]);return r!=null&&p(t,["sdkHttpResponse"],r),t}function jj(e){const t={};if(h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=h(e,["fileUri"]);r!=null&&p(t,["fileUri"],r);const n=h(e,["mimeType"]);return n!=null&&p(t,["mimeType"],n),t}function zj(e){const t={},r=h(e,["id"]);r!=null&&p(t,["id"],r);const n=h(e,["args"]);n!=null&&p(t,["args"],n);const i=h(e,["name"]);if(i!=null&&p(t,["name"],i),h(e,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");
117if(h(e,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return t}function Wj(e){const t={},r=h(e,["allowedFunctionNames"]);r!=null&&p(t,["allowedFunctionNames"],r);const n=h(e,["mode"]);if(n!=null&&p(t,["mode"],n),h(e,["streamFunctionCallArguments"])!==void 0)throw new Error("streamFunctionCallArguments parameter is not supported in Gemini API.");return t}function qj(e){const t={},r=h(e,["description"]);r!=null&&p(t,["description"],r);const n=h(e,["name"]);n!=null&&p(t,["name"],n);const i=h(e,["parameters"]);i!=null&&p(t,["parameters"],i);const a=h(e,["parametersJsonSchema"]);a!=null&&p(t,["parametersJsonSchema"],a);const o=h(e,["response"]);o!=null&&p(t,["response"],o);const s=h(e,["responseJsonSchema"]);if(s!=null&&p(t,["responseJsonSchema"],s),h(e,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return t}function Kj(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],Ua(e,n)),r}function Yj(e,t){const r={},n=h(t,["name"]);return n!=null&&p(r,["_url","name"],Ua(e,n)),r}function Xj(e){const t={},r=h(e,["authConfig"]);r!=null&&p(t,["authConfig"],Mj(r));const n=h(e,["enableWidget"]);return n!=null&&p(t,["enableWidget"],n),t}function Jj(e){const t={},r=h(e,["searchTypes"]);if(r!=null&&p(t,["searchTypes"],r),h(e,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");if(h(e,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");const n=h(e,["timeRangeFilter"]);return n!=null&&p(t,["timeRangeFilter"],n),t}function Zj(e,t){const r={},n=h(e,["pageSize"]);t!==void 0&&n!=null&&p(t,["_query","pageSize"],n);const i=h(e,["pageToken"]);return t!==void 0&&i!=null&&p(t,["_query","pageToken"],i),r}function Qj(e,t){const r={},n=h(e,["pageSize"]);t!==void 0&&n!=null&&p(t,["_query","pageSize"],n);const i=h(e,["pageToken"]);return t!==void 0&&i!=null&&p(t,["_query","pageToken"],i),r}function ez(e){const t={},r=h(e,["config"]);return r!=null&&Zj(r,t),t}function tz(e){const t={},r=h(e,["config"]);return r!=null&&Qj(r,t),t}function rz(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["nextPageToken"]);n!=null&&p(t,["nextPageToken"],n);const i=h(e,["cachedContents"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>o)),p(t,["cachedContents"],a)}return t}function nz(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["nextPageToken"]);n!=null&&p(t,["nextPageToken"],n);const i=h(e,["cachedContents"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>o)),p(t,["cachedContents"],a)}return t}function iz(e){const t={},r=h(e,["mediaResolution"]);r!=null&&p(t,["mediaResolution"],r);const n=h(e,["codeExecutionResult"]);n!=null&&p(t,["codeExecutionResult"],n);const i=h(e,["executableCode"]);i!=null&&p(t,["executableCode"],i);const a=h(e,["fileData"]);a!=null&&p(t,["fileData"],jj(a));const o=h(e,["functionCall"]);o!=null&&p(t,["functionCall"],zj(o));const s=h(e,["functionResponse"]);s!=null&&p(t,["functionResponse"],s);const l=h(e,["inlineData"]);l!=null&&p(t,["inlineData"],Dj(l));const u=h(e,["text"]);u!=null&&p(t,["text"],u);const c=h(e,["thought"]);c!=null&&p(t,["thought"],c);const f=h(e,["thoughtSignature"]);f!=null&&p(t,["thoughtSignature"],f);const d=h(e,["videoMetadata"]);d!=null&&p(t,["videoMetadata"],d);const m=h(e,["toolCall"]);m!=null&&p(t,["toolCall"],m);const g=h(e,["toolResponse"]);g!=null&&p(t,["toolResponse"],g);const v=h(e,["partMetadata"]);return v!=null&&p(t,["partMetadata"],v),t}function az(e){const t={},r=h(e,["mediaResolution"]);r!=null&&p(t,["mediaResolution"],r);const n=h(e,["codeExecutionResult"]);n!=null&&p(t,["codeExecutionResult"],n);const i=h(e,["executableCode"]);i!=null&&p(t,["executableCode"],i);const a=h(e,["fileData"]);a!=null&&p(t,["fileData"],a);const o=h(e,["functionCall"]);o!=null&&p(t,["functionCall"],o);const s=h(e,["functionResponse"]);s!=null&&p(t,["functionResponse"],s);const l=h(e,["inlineData"]);l!=null&&p(t,["inlineData"],l);const u=h(e,["text"]);u!=null&&p(t,["text"],u);const c=h(e,["thought"]);c!=null&&p(t,["thought"],c);const f=h(e,["thoughtSignature"]);f!=null&&p(t,["thoughtSignature"],f);const d=h(e,["videoMetadata"]);if(d!=null&&p(t,["videoMetadata"],d),h(e,["toolCall"])!==void 0)throw new Error("toolCall parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");if(h(e,["toolResponse"])!==void 0)throw new Error("toolResponse parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");if(h(e,["partMetadata"])!==void 0)throw new Error("partMetadata parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return t}function oz(e){const t={},r=h(e,["retrievalConfig"]);r!=null&&p(t,["retrievalConfig"],r);const n=h(e,["functionCallingConfig"]);n!=null&&p(t,["functionCallingConfig"],Wj(n));const i=h(e,["includeServerSideToolInvocations"]);return i!=null&&p(t,["includeServerSideToolInvocations"],i),t}function sz(e){const t={},r=h(e,["retrievalConfig"]);r!=null&&p(t,["retrievalConfig"],r);const n=h(e,["functionCallingConfig"]);if(n!=null&&p(t,["functionCallingConfig"],n),h(e,["includeServerSideToolInvocations"])!==void 0)throw new Error("includeServerSideToolInvocations parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return t}function lz(e){const t={};if(h(e,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=h(e,["computerUse"]);r!=null&&p(t,["computerUse"],r);const n=h(e,["fileSearch"]);n!=null&&p(t,["fileSearch"],n);const i=h(e,["googleSearch"]);i!=null&&p(t,["googleSearch"],Jj(i));const a=h(e,["googleMaps"]);a!=null&&p(t,["googleMaps"],Xj(a));const o=h(e,["codeExecution"]);if(o!=null&&p(t,["codeExecution"],o),h(e,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const s=h(e,["functionDeclarations"]);if(s!=null){let f=s;Array.isArray(f)&&(f=f.map(d=>d)),p(t,["functionDeclarations"],f)}const l=h(e,["googleSearchRetrieval"]);if(l!=null&&p(t,["googleSearchRetrieval"],l),h(e,["parallelAiSearch"])!==void 0)throw new Error("parallelAiSearch parameter is not supported in Gemini API.");
117const u=h(e,["urlContext"]);u!=null&&p(t,["urlContext"],u);const c=h(e,["mcpServers"]);if(c!=null){let f=c;Array.isArray(f)&&(f=f.map(d=>d)),p(t,["mcpServers"],f)}return t}function uz(e){const t={},r=h(e,["retrieval"]);r!=null&&p(t,["retrieval"],r);const n=h(e,["computerUse"]);if(n!=null&&p(t,["computerUse"],n),h(e,["fileSearch"])!==void 0)throw new Error("fileSearch parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");const i=h(e,["googleSearch"]);i!=null&&p(t,["googleSearch"],i);const a=h(e,["googleMaps"]);a!=null&&p(t,["googleMaps"],a);const o=h(e,["codeExecution"]);o!=null&&p(t,["codeExecution"],o);const s=h(e,["enterpriseWebSearch"]);s!=null&&p(t,["enterpriseWebSearch"],s);const l=h(e,["functionDeclarations"]);if(l!=null){let d=l;Array.isArray(d)&&(d=d.map(m=>qj(m))),p(t,["functionDeclarations"],d)}const u=h(e,["googleSearchRetrieval"]);u!=null&&p(t,["googleSearchRetrieval"],u);const c=h(e,["parallelAiSearch"]);c!=null&&p(t,["parallelAiSearch"],c);const f=h(e,["urlContext"]);if(f!=null&&p(t,["urlContext"],f),h(e,["mcpServers"])!==void 0)throw new Error("mcpServers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return t}function cz(e,t){const r={},n=h(e,["ttl"]);t!==void 0&&n!=null&&p(t,["ttl"],n);const i=h(e,["expireTime"]);return t!==void 0&&i!=null&&p(t,["expireTime"],i),r}function fz(e,t){const r={},n=h(e,["ttl"]);t!==void 0&&n!=null&&p(t,["ttl"],n);const i=h(e,["expireTime"]);return t!==void 0&&i!=null&&p(t,["expireTime"],i),r}function dz(e,t){const r={},n=h(t,["name"]);n!=null&&p(r,["_url","name"],Ua(e,n));const i=h(t,["config"]);return i!=null&&cz(i,r),r}function hz(e,t){const r={},n=h(t,["name"]);n!=null&&p(r,["_url","name"],Ua(e,n));const i=h(t,["config"]);return i!=null&&fz(i,r),r}/** 118 * @license 119 * Copyright 2025 Google LLC 120 * SPDX-License-Identifier: Apache-2.0 121 */class pz extends Ba{constructor(t){super(),this.apiClient=t,this.list=async(r={})=>new Bs(Ra.PAGED_ITEM_CACHED_CONTENTS,n=>this.listInternal(n),await this.listInternal(r),r)}async create(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=Bj(this.apiClient,t);return s=Ae("cachedContents",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
121Signal}).then(c=>c.json()),o.then(c=>c)}else{const u=$j(this.apiClient,t);return s=Ae("cachedContents",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json()),o.then(c=>c)}}async get(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=Yj(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(c=>c.json()),o.then(c=>c)}else{const u=Kj(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json()),o.then(c=>c)}}async delete(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=Gj(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"DELETE",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
121Signal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=Hj(c),d=new OA;return Object.assign(d,f),d})}else{const u=Uj(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"DELETE",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=Vj(c),d=new OA;return Object.assign(d,f),d})}}async update(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=hz(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"PATCH",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(c=>c.json()),o.then(c=>c)}else{const u=dz(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"PATCH",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json()),o.then(c=>c)}}async listInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=tz(t);return s=Ae("cachedContents",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
121Signal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=nz(c),d=new RA;return Object.assign(d,f),d})}else{const u=ez(t);return s=Ae("cachedContents",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=rz(c),d=new RA;return Object.assign(d,f),d})}}}function uo(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 GA(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ge(e){return this instanceof Ge?(this.v=e,this):new Ge(e)}function Fi(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(m){return function(g){return Promise.resolve(g).then(m,f)}}function s(m,g){n[m]&&(i[m]=function(v){return new Promise(function(y,x){a.push([m,v,y,x])>1||l(m,v)})},g&&(i[m]=g(i[m])))}function l(m,g){try{u(n[m](g))}catch(v){d(a[0][3],v)}}function u(m){m.value instanceof Ge?Promise.resolve(m.value.v).then(c,f):d(a[0][2],m)}function c(m){l("next",m)}function f(m){l("throw",m)}function d(m,g){m(g),a.shift(),a.length&&l(a[0][0],a[0][1])}}function Li(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof GA=="function"?GA(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),i(s,l,o.done,o.value)})}}function i(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}/** 122 * @license 123 * Copyright 2025 Google LLC 124 * SPDX-License-Identifier: Apache-2.0 125 */function mz(e){var t;if(e.candidates==null||e.candidates.length===0)return!1;const r=(t=e.candidates[0])===null||t===void 0?void 0:t.content;return r===void 0?!1:PR(r)}function PR(e){if(e.parts===void 0||e.parts.length===0)return!1;for(const t of e.parts)if(t===void 0||Object.keys(t).length===0)return!1;return!0}function vz(e){if(e.length!==0){for(const t of e)if(t.role!=="user"&&t.role!=="model")throw new Error(`Role must be user or model, but got ${t.role}.`)}}function VA(e){if(e===void 0||e.length===0)return[];const t=[],r=e.length;let n=0;for(;n<r;)if(e[n].role==="user")t.push(e[n]),n++;else{const i=[];let a=!0;for(;n<r&&e[n].role==="model";)i.push(e[n]),a&&!PR(e[n])&&(a=!1),n++;a?t.push(...i):t.pop()}return t}class gz{constructor(t,r){this.modelsModule=t,this.apiClient=r}create(t){return new yz(this.apiClient,this.modelsModule,t.model,t.config,structuredClone(t.history))}}class yz{constructor(t,r,n,i={},a=[]){this.apiClient=t,this.modelsModule=r,this.model=n,this.config=i,this.history=a,this.sendPromise=Promise.resolve(),vz(a)}async sendMessage(t){var r;await this.sendPromise;const n=Ir(t.message),i=this.modelsModule.generateContent({model:this.model,contents:this.getHistory(!0).concat(n),config:(r=t.config)!==null&&r!==void 0?r:this.config});return this.sendPromise=(async()=>{var a,o,s;const l=await i,u=(o=(a=l.candidates)===null||a===void 0?void 0:a[0])===null||o===void 0?void 0:o.content,c=l.automaticFunctionCallingHistory,f=this.getHistory(!0).length;let d=[];c!=null&&(d=(s=c.slice(f))!==null&&s!==void 0?s:[]);const m=u?[u]:[];this.recordHistory(n,m,d)})(),await this.sendPromise.catch(()=>{this.sendPromise=Promise.resolve()}),i}async sendMessageStream(t){var r;await this.sendPromise;const n=Ir(t.message),i=this.modelsModule.generateContentStream({model:this.model,contents:this.getHistory(!0).concat(n),config:(r=t.config)!==null&&r!==void 0?r:this.config});this.sendPromise=i.then(()=>{}).catch(()=>{});const a=await i;return this.processStreamResponse(a,n)}getHistory(t=!1){const r=t?VA(this.history):this.history;return structuredClone(r)}processStreamResponse(t,r){return Fi(this,arguments,function*(){var i,a,o,s,l,u;const c=[];try{for(var f=!0,d=Li(t),m;m=yield Ge(d.next()),i=m.done,!i;f=!0){s=m.value,f=!1;const g=s;if(mz(g)){const v=(u=(l=g.candidates)===null||l===void 0?void 0:l[0])===null||u===void 0?void 0:u.content;v!==void 0&&c.push(v)}yield yield Ge(g)}}catch(g){a={error:g}}finally{try{!f&&!i&&(o=d.return)&&(yield Ge(o.call(d)))}finally{if(a)throw a.error}}this.recordHistory(r,c)})}recordHistory(t,r,n){let i=[];r.length>0&&r.every(a=>a.role!==void 0)?i=r:i.push({role:"model",parts:[]}),n&&n.length>0?this.history.push(...VA(n)):this.history.push(t),this.history.push(...i)}}/** 126 * @license 127 * Copyright 2025 Google LLC 128 * SPDX-License-Identifier: Apache-2.0
129 */class em extends Error{constructor(t){super(t.message),this.name="ApiError",this.status=t.status,Object.setPrototypeOf(this,em.prototype)}}/** 130 * @license 131 * Copyright 2025 Google LLC 132 * SPDX-License-Identifier: Apache-2.0 133 */function xz(e){const t={},r=h(e,["file"]);return r!=null&&p(t,["file"],r),t}function _z(e){const t={},r=h(e,["sdkHttpResponse"]);return r!=null&&p(t,["sdkHttpResponse"],r),t}function wz(e){const t={},r=h(e,["name"]);return r!=null&&p(t,["_url","file"],wR(r)),t}function Ez(e){const t={},r=h(e,["sdkHttpResponse"]);return r!=null&&p(t,["sdkHttpResponse"],r),t}function Tz(e){const t={},r=h(e,["name"]);return r!=null&&p(t,["_url","file"],wR(r)),t}function Sz(e){const t={},r=h(e,["uris"]);return r!=null&&p(t,["uris"],r),t}function Az(e,t){const r={},n=h(e,["pageSize"]);t!==void 0&&n!=null&&p(t,["_query","pageSize"],n);const i=h(e,["pageToken"]);return t!==void 0&&i!=null&&p(t,["_query","pageToken"],i),r}function bz(e){const t={},r=h(e,["config"]);return r!=null&&Az(r,t),t}function Cz(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["nextPageToken"]);n!=null&&p(t,["nextPageToken"],n);const i=h(e,["files"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>o)),p(t,["files"],a)}return t}function Pz(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["files"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(a=>a)),p(t,["files"],i)}return t}/** 134 * @license 135 * Copyright 2025 Google LLC 136 * SPDX-License-Identifier: Apache-2.0 137 */class kz extends Ba{constructor(t){super(),this.apiClient=t,this.list=async(r={})=>new Bs(Ra.PAGED_ITEM_FILES,n=>this.listInternal(n),await this.listInternal(r),r)}async upload(t){if(this.apiClient.isVertexAI())throw new Error("Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support uploading files. You can share files through a GCS bucket.");return this.apiClient.uploadFile(t.file,t.config).then(r=>r)}async download(t){await this.apiClient.downloadFile(t)}async registerFiles(t){throw new Error("registerFiles is only supported in Node.js environments.")}async _registerFiles(t){return this.registerFilesInternal(t)}async listInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=bz(t);return a=Ae("files",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
137Signal}).then(l=>l.json().then(u=>{const c=u;return c.sdkHttpResponse={headers:l.headers},c})),i.then(l=>{const u=Cz(l),c=new TH;return Object.assign(c,u),c})}}async createInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=xz(t);return a=Ae("upload/v1beta/files",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json()),i.then(l=>{const u=_z(l),c=new SH;return Object.assign(c,u),c})}}async get(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=Tz(t);return a=Ae("files/{file}",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
137Signal}).then(l=>l.json()),i.then(l=>l)}}async delete(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=wz(t);return a=Ae("files/{file}",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"DELETE",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json().then(u=>{const c=u;return c.sdkHttpResponse={headers:l.headers},c})),i.then(l=>{const u=Ez(l),c=new AH;return Object.assign(c,u),c})}}async registerFilesInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=Sz(t);return a=Ae("files:register",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
137Signal}).then(l=>l.json()),i.then(l=>{const u=Pz(l),c=new bH;return Object.assign(c,u),c})}}}/** 138 * @license 139 * Copyright 2025 Google LLC 140 * SPDX-License-Identifier: Apache-2.0 141 */function HA(e){const t={};if(h(e,["languageCodes"])!==void 0)throw new Error("languageCodes parameter is not supported in Gemini API.");return t}function Iz(e){const t={},r=h(e,["apiKey"]);if(r!=null&&p(t,["apiKey"],r),h(e,["apiKeyConfig"])!==void 0)throw new Error("apiKeyConfig parameter is not supported in Gemini API.");if(h(e,["authType"])!==void 0)throw new Error("authType parameter is not supported in Gemini API.");if(h(e,["googleServiceAccountConfig"])!==void 0)throw new Error("googleServiceAccountConfig parameter is not supported in Gemini API.");if(h(e,["httpBasicAuthConfig"])!==void 0)throw new Error("httpBasicAuthConfig parameter is not supported in Gemini API.");if(h(e,["oauthConfig"])!==void 0)throw new Error("oauthConfig parameter is not supported in Gemini API.");if(h(e,["oidcConfig"])!==void 0)throw new Error("oidcConfig parameter is not supported in Gemini API.");return t}function L0(e){const t={},r=h(e,["data"]);if(r!=null&&p(t,["data"],r),h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(e,["mimeType"]);return n!=null&&p(t,["mimeType"],n),t}function Nz(e){const t={},r=h(e,["parts"]);if(r!=null){let i=r;Array.isArray(i)&&(i=i.map(a=>Kz(a))),p(t,["parts"],i)}const n=h(e,["role"]);return n!=null&&p(t,["role"],n),t}function Oz(e){const t={},r=h(e,["parts"]);if(r!=null){let i=r;Array.isArray(i)&&(i=i.map(a=>Yz(a))),p(t,["parts"],i)}const n=h(e,["role"]);return n!=null&&p(t,["role"],n),t}function Rz(e){const t={};if(h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=h(e,["fileUri"]);r!=null&&p(t,["fileUri"],r);const n=h(e,["mimeType"]);return n!=null&&p(t,["mimeType"],n),t}function Mz(e){const t={},r=h(e,["id"]);r!=null&&p(t,["id"],r);const n=h(e,["args"]);n!=null&&p(t,["args"],n);const i=h(e,["name"]);if(i!=null&&p(t,["name"],i),h(e,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");if(h(e,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return t}function Dz(e){const t={},r=h(e,["description"]);r!=null&&p(t,["description"],r);const n=h(e,["name"]);n!=null&&p(t,["name"],n);const i=h(e,["parameters"]);i!=null&&p(t,["parameters"],i);const a=h(e,["parametersJsonSchema"]);a!=null&&p(t,["parametersJsonSchema"],a);const o=h(e,["response"]);o!=null&&p(t,["response"],o);const s=h(e,["responseJsonSchema"]);if(s!=null&&p(t,["responseJsonSchema"],s),h(e,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return t}function Fz(e){const t={},r=h(e,["modelSelectionConfig"]);r!=null&&p(t,["modelConfig"],r);const n=h(e,["responseJsonSchema"]);n!=null&&p(t,["responseJsonSchema"],n);const i=h(e,["audioTimestamp"]);i!=null&&p(t,["audioTimestamp"],i);const a=h(e,["candidateCount"]);a!=null&&p(t,["candidateCount"],a);const o=h(e,["enableAffectiveDialog"]);o!=null&&p(t,["enableAffectiveDialog"],o);const s=h(e,["frequencyPenalty"]);s!=null&&p(t,["frequencyPenalty"],s);const l=h(e,["logprobs"]);l!=null&&p(t,["logprobs"],l);const u=h(e,["maxOutputTokens"]);u!=null&&p(t,["maxOutputTokens"],u);const c=h(e,["mediaResolution"]);c!=null&&p(t,["mediaResolution"],c);const f=h(e,["presencePenalty"]);f!=null&&p(t,["presencePenalty"],f);const d=h(e,["responseLogprobs"]);d!=null&&p(t,["responseLogprobs"],d);const m=h(e,["responseMimeType"]);m!=null&&p(t,["responseMimeType"],m);const g=h(e,["responseModalities"]);g!=null&&p(t,["responseModalities"],g);const v=h(e,["responseSchema"]);v!=null&&p(t,["responseSchema"],v);const y=h(e,["routingConfig"]);y!=null&&p(t,["routingConfig"],y);const x=h(e,["seed"]);x!=null&&p(t,["seed"],x);const w=h(e,["speechConfig"]);w!=null&&p(t,["speechConfig"],w);const _=h(e,["stopSequences"]);_!=null&&p(t,["stopSequences"],_);const S=h(e,["temperature"]);S!=null&&p(t,["temperature"],S);const T=h(e,["thinkingConfig"]);T!=null&&p(t,["thinkingConfig"],T);const E=h(e,["topK"]);E!=null&&p(t,["topK"],E);const A=h(e,["topP"]);if(A!=null&&p(t,["topP"],A),h(e,["enableEnhancedCivicAnswers"])!==void 0)throw new Error("enableEnhancedCivicAnswers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return t}function Lz(e){const t={},r=h(e,["authConfig"]);r!=null&&p(t,["authConfig"],Iz(r));const n=h(e,["enableWidget"]);return n!=null&&p(t,["enableWidget"],n),t}function $z(e){const t={},r=h(e,["searchTypes"]);if(r!=null&&p(t,["searchTypes"],r),h(e,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");if(h(e,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");const n=h(e,["timeRangeFilter"]);return n!=null&&p(t,["timeRangeFilter"],n),t}function Bz(e,t){const r={},n=h(e,["generationConfig"]);t!==void 0&&n!=null&&p(t,["setup","generationConfig"],n);const i=h(e,["responseModalities"]);t!==void 0&&i!=null&&p(t,["setup","generationConfig","responseModalities"],i);const a=h(e,["temperature"]);t!==void 0&&a!=null&&p(t,["setup","generationConfig","temperature"],a);const o=h(e,["topP"]);t!==void 0&&o!=null&&p(t,["setup","generationConfig","topP"],o);const s=h(e,["topK"]);t!==void 0&&s!=null&&p(t,["setup","generationConfig","topK"],s);const l=h(e,["maxOutputTokens"]);t!==void 0&&l!=null&&p(t,["setup","generationConfig","maxOutputTokens"],l);const u=h(e,["mediaResolution"]);t!==void 0&&u!=null&&p(t,["setup","generationConfig","mediaResolution"],u);const c=h(e,["seed"]);t!==void 0&&c!=null&&p(t,["setup","generationConfig","seed"],c);const f=h(e,["speechConfig"]);t!==void 0&&f!=null&&p(t,["setup","generationConfig","speechConfig"],G_(f));const d=h(e,["thinkingConfig"]);t!==void 0&&d!=null&&p(t,["setup","generationConfig","thinkingConfig"],d);const m=h(e,["enableAffectiveDialog"]);t!==void 0&&m!=null&&p(t,["setup","generationConfig","enableAffectiveDialog"],m);const g=h(e,["systemInstruction"]);t!==void 0&&g!=null&&p(t,["setup","systemInstruction"],Nz(Ir(g)));const v=h(e,["tools"]);if(t!==void 0&&v!=null){let P=Au(v);Array.isArray(P)&&(P=P.map(C=>Zz(Su(C)))),p(t,["setup","tools"],P)}const y=h(e,["sessionResumption"]);t!==void 0&&y!=null&&p(t,["setup","sessionResumption"],Jz(y));const x=h(e,["inputAudioTranscription"]);t!==void 0&&x!=null&&p(t,["setup","inputAudioTranscription"],HA(x));const w=h(e,["outputAudioTranscription"]);t!==void 0&&w!=null&&p(t,["setup","outputAudioTranscription"],HA(w));const _=h(e,["realtimeInputConfig"]);t!==void 0&&_!=null&&p(t,["setup","realtimeInputConfig"],_);const S=h(e,["contextWindowCompression"]);t!==void 0&&S!=null&&p(t,["setup","contextWindowCompression"],S);const T=h(e,["proactivity"]);if(t!==void 0&&T!=null&&p(t,["setup","proactivity"],T),h(e,["explicitVadSignal"])!==void 0)throw new Error("explicitVadSignal parameter is not supported in Gemini API.");const E=h(e,["avatarConfig"]);t!==void 0&&E!=null&&p(t,["setup","avatarConfig"],E);const A=h(e,["safetySettings"]);if(t!==void 0&&A!=null){let P=A;Array.isArray(P)&&(P=P.map(C=>Xz(C))),p(t,["setup","safetySettings"],P)}return r}function Uz(e,t){const r={},n=h(e,["generationConfig"]);t!==void 0&&n!=null&&p(t,["setup","generationConfig"],Fz(n));const i=h(e,["responseModalities"]);t!==void 0&&i!=null&&p(t,["setup","generationConfig","responseModalities"],i);const a=h(e,["temperature"]);t!==void 0&&a!=null&&p(t,["setup","generationConfig","temperature"],a);const o=h(e,["topP"]);t!==void 0&&o!=null&&p(t,["setup","generationConfig","topP"],o);const s=h(e,["topK"]);t!==void 0&&s!=null&&p(t,["setup","generationConfig","topK"],s);const l=h(e,["maxOutputTokens"]);t!==void 0&&l!=null&&p(t,["setup","generationConfig","maxOutputTokens"],l);const u=h(e,["mediaResolution"]);t!==void 0&&u!=null&&p(t,["setup","generationConfig","mediaResolution"],u);const c=h(e,["seed"]);t!==void 0&&c!=null&&p(t,["setup","generationConfig","seed"],c);const f=h(e,["speechConfig"]);t!==void 0&&f!=null&&p(t,["setup","generationConfig","speechConfig"],G_(f));const d=h(e,["thinkingConfig"]);t!==void 0&&d!=null&&p(t,["setup","generationConfig","thinkingConfig"],d);const m=h(e,["enableAffectiveDialog"]);t!==void 0&&m!=null&&p(t,["setup","generationConfig","enableAffectiveDialog"],m);const g=h(e,["systemInstruction"]);t!==void 0&&g!=null&&p(t,["setup","systemInstruction"],Oz(Ir(g)));const v=h(e,["tools"]);if(t!==void 0&&v!=null){let C=Au(v);Array.isArray(C)&&(C=C.map(N=>Qz(Su(N)))),p(t,["setup","tools"],C)}const y=h(e,["sessionResumption"]);t!==void 0&&y!=null&&p(t,["setup","sessionResumption"],y);const x=h(e,["inputAudioTranscription"]);t!==void 0&&x!=null&&p(t,["setup","inputAudioTranscription"],x);const w=h(e,["outputAudioTranscription"]);t!==void 0&&w!=null&&p(t,["setup","outputAudioTranscription"],w);const _=h(e,["realtimeInputConfig"]);t!==void 0&&_!=null&&p(t,["setup","realtimeInputConfig"],_);const S=h(e,["contextWindowCompression"]);t!==void 0&&S!=null&&p(t,["setup","contextWindowCompression"],S);const T=h(e,["proactivity"]);t!==void 0&&T!=null&&p(t,["setup","proactivity"],T);const E=h(e,["explicitVadSignal"]);t!==void 0&&E!=null&&p(t,["setup","explicitVadSignal"],E);const A=h(e,["avatarConfig"]);t!==void 0&&A!=null&&p(t,["setup","avatarConfig"],A);const P=h(e,["safetySettings"]);if(t!==void 0&&P!=null){let C=P;Array.isArray(C)&&(C=C.map(N=>N)),p(t,["setup","safetySettings"],C)}return r}function Gz(e,t){const r={},n=h(t,["model"]);n!=null&&p(r,["setup","model"],nt(e,n));const i=h(t,["config"]);return i!=null&&p(r,["config"],Bz(i,r)),r}function Vz(e,t){const r={},n=h(t,["model"]);n!=null&&p(r,["setup","model"],nt(e,n));const i=h(t,["config"]);return i!=null&&p(r,["config"],Uz(i,r)),r}function Hz(e){const t={},r=h(e,["musicGenerationConfig"]);return r!=null&&p(t,["musicGenerationConfig"],r),t}function jz(e){const t={},r=h(e,["weightedPrompts"]);if(r!=null){let n=r;Array.isArray(n)&&(n=n.map(i=>i)),p(t,["weightedPrompts"],n)}return t}function zz(e){const t={},r=h(e,["media"]);if(r!=null){let u=vR(r);Array.isArray(u)&&(u=u.map(c=>L0(c))),p(t,["mediaChunks"],u)}const n=h(e,["audio"]);n!=null&&p(t,["audio"],L0(yR(n)));const i=h(e,["audioStreamEnd"]);i!=null&&p(t,["audioStreamEnd"],i);const a=h(e,["video"]);a!=null&&p(t,["video"],L0(gR(a)));const o=h(e,["text"]);o!=null&&p(t,["text"],o);const s=h(e,["activityStart"]);s!=null&&p(t,["activityStart"],s);const l=h(e,["activityEnd"]);return l!=null&&p(t,["activityEnd"],l),t}function Wz(e){const t={},r=h(e,["media"]);if(r!=null){let u=vR(r);Array.isArray(u)&&(u=u.map(c=>c)),p(t,["mediaChunks"],u)}const n=h(e,["audio"]);n!=null&&p(t,["audio"],yR(n));const i=h(e,["audioStreamEnd"]);i!=null&&p(t,["audioStreamEnd"],i);const a=h(e,["video"]);a!=null&&p(t,["video"],gR(a));const o=h(e,["text"]);o!=null&&p(t,["text"],o);const s=h(e,["activityStart"]);s!=null&&p(t,["activityStart"],s);const l=h(e,["activityEnd"]);return l!=null&&p(t,["activityEnd"],l),t}function qz(e){const t={},r=h(e,["setupComplete"]);r!=null&&p(t,["setupComplete"],r);const n=h(e,["serverContent"]);n!=null&&p(t,["serverContent"],n);const i=h(e,["toolCall"]);i!=null&&p(t,["toolCall"],i);const a=h(e,["toolCallCancellation"]);a!=null&&p(t,["toolCallCancellation"],a);const o=h(e,["usageMetadata"]);o!=null&&p(t,["usageMetadata"],eW(o));const s=h(e,["goAway"]);s!=null&&p(t,["goAway"],s);const l=h(e,["sessionResumptionUpdate"]);l!=null&&p(t,["sessionResumptionUpdate"],l);const u=h(e,["voiceActivityDetectionSignal"]);u!=null&&p(t,["voiceActivityDetectionSignal"],u);const c=h(e,["voiceActivity"]);return c!=null&&p(t,["voiceActivity"],tW(c)),t}function Kz(e){const t={},r=h(e,["mediaResolution"]);r!=null&&p(t,["mediaResolution"],r);const n=h(e,["codeExecutionResult"]);n!=null&&p(t,["codeExecutionResult"],n);const i=h(e,["executableCode"]);i!=null&&p(t,["executableCode"],i);const a=h(e,["fileData"]);a!=null&&p(t,["fileData"],Rz(a));const o=h(e,["functionCall"]);o!=null&&p(t,["functionCall"],Mz(o));const s=h(e,["functionResponse"]);s!=null&&p(t,["functionResponse"],s);const l=h(e,["inlineData"]);l!=null&&p(t,["inlineData"],L0(l));const u=h(e,["text"]);u!=null&&p(t,["text"],u);const c=h(e,["thought"]);c!=null&&p(t,["thought"],c);const f=h(e,["thoughtSignature"]);f!=null&&p(t,["thoughtSignature"],f);const d=h(e,["videoMetadata"]);d!=null&&p(t,["videoMetadata"],d);const m=h(e,["toolCall"]);m!=null&&p(t,["toolCall"],m);const g=h(e,["toolResponse"]);g!=null&&p(t,["toolResponse"],g);const v=h(e,["partMetadata"]);return v!=null&&p(t,["partMetadata"],v),t}function Yz(e){const t={},r=h(e,["mediaResolution"]);r!=null&&p(t,["mediaResolution"],r);const n=h(e,["codeExecutionResult"]);n!=null&&p(t,["codeExecutionResult"],n);const i=h(e,["executableCode"]);i!=null&&p(t,["executableCode"],i);const a=h(e,["fileData"]);a!=null&&p(t,["fileData"],a);const o=h(e,["functionCall"]);o!=null&&p(t,["functionCall"],o);const s=h(e,["functionResponse"]);s!=null&&p(t,["functionResponse"],s);const l=h(e,["inlineData"]);l!=null&&p(t,["inlineData"],l);const u=h(e,["text"]);u!=null&&p(t,["text"],u);const c=h(e,["thought"]);c!=null&&p(t,["thought"],c);const f=h(e,["thoughtSignature"]);f!=null&&p(t,["thoughtSignature"],f);const d=h(e,["videoMetadata"]);if(d!=null&&p(t,["videoMetadata"],d),h(e,["toolCall"])!==void 0)throw new Error("toolCall parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");if(h(e,["toolResponse"])!==void 0)throw new Error("toolResponse parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");if(h(e,["partMetadata"])!==void 0)throw new Error("partMetadata parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return t}function Xz(e){const t={},r=h(e,["category"]);if(r!=null&&p(t,["category"],r),h(e,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const n=h(e,["threshold"]);return n!=null&&p(t,["threshold"],n),t}function Jz(e){const t={},r=h(e,["handle"]);if(r!=null&&p(t,["handle"],r),h(e,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return t}function Zz(e){const t={};if(h(e,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=h(e,["computerUse"]);r!=null&&p(t,["computerUse"],r);const n=h(e,["fileSearch"]);n!=null&&p(t,["fileSearch"],n);const i=h(e,["googleSearch"]);i!=null&&p(t,["googleSearch"],$z(i));const a=h(e,["googleMaps"]);a!=null&&p(t,["googleMaps"],Lz(a));const o=h(e,["codeExecution"]);if(o!=null&&p(t,["codeExecution"],o),h(e,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const s=h(e,["functionDeclarations"]);if(s!=null){let f=s;Array.isArray(f)&&(f=f.map(d=>d)),p(t,["functionDeclarations"],f)}const l=h(e,["googleSearchRetrieval"]);if(l!=null&&p(t,["googleSearchRetrieval"],l),h(e,["parallelAiSearch"])!==void 0)throw new Error("parallelAiSearch parameter is not supported in Gemini API.");
141const u=h(e,["urlContext"]);u!=null&&p(t,["urlContext"],u);const c=h(e,["mcpServers"]);if(c!=null){let f=c;Array.isArray(f)&&(f=f.map(d=>d)),p(t,["mcpServers"],f)}return t}function Qz(e){const t={},r=h(e,["retrieval"]);r!=null&&p(t,["retrieval"],r);const n=h(e,["computerUse"]);if(n!=null&&p(t,["computerUse"],n),h(e,["fileSearch"])!==void 0)throw new Error("fileSearch parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");const i=h(e,["googleSearch"]);i!=null&&p(t,["googleSearch"],i);const a=h(e,["googleMaps"]);a!=null&&p(t,["googleMaps"],a);const o=h(e,["codeExecution"]);o!=null&&p(t,["codeExecution"],o);const s=h(e,["enterpriseWebSearch"]);s!=null&&p(t,["enterpriseWebSearch"],s);const l=h(e,["functionDeclarations"]);if(l!=null){let d=l;Array.isArray(d)&&(d=d.map(m=>Dz(m))),p(t,["functionDeclarations"],d)}const u=h(e,["googleSearchRetrieval"]);u!=null&&p(t,["googleSearchRetrieval"],u);const c=h(e,["parallelAiSearch"]);c!=null&&p(t,["parallelAiSearch"],c);const f=h(e,["urlContext"]);if(f!=null&&p(t,["urlContext"],f),h(e,["mcpServers"])!==void 0)throw new Error("mcpServers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return t}function eW(e){const t={},r=h(e,["promptTokenCount"]);r!=null&&p(t,["promptTokenCount"],r);const n=h(e,["cachedContentTokenCount"]);n!=null&&p(t,["cachedContentTokenCount"],n);const i=h(e,["candidatesTokenCount"]);i!=null&&p(t,["responseTokenCount"],i);const a=h(e,["toolUsePromptTokenCount"]);a!=null&&p(t,["toolUsePromptTokenCount"],a);const o=h(e,["thoughtsTokenCount"]);o!=null&&p(t,["thoughtsTokenCount"],o);const s=h(e,["totalTokenCount"]);s!=null&&p(t,["totalTokenCount"],s);const l=h(e,["promptTokensDetails"]);if(l!=null){let m=l;Array.isArray(m)&&(m=m.map(g=>g)),p(t,["promptTokensDetails"],m)}const u=h(e,["cacheTokensDetails"]);if(u!=null){let m=u;Array.isArray(m)&&(m=m.map(g=>g)),p(t,["cacheTokensDetails"],m)}
141const c=h(e,["candidatesTokensDetails"]);if(c!=null){let m=c;Array.isArray(m)&&(m=m.map(g=>g)),p(t,["responseTokensDetails"],m)}const f=h(e,["toolUsePromptTokensDetails"]);if(f!=null){let m=f;Array.isArray(m)&&(m=m.map(g=>g)),p(t,["toolUsePromptTokensDetails"],m)}const d=h(e,["trafficType"]);return d!=null&&p(t,["trafficType"],d),t}function tW(e){const t={},r=h(e,["type"]);return r!=null&&p(t,["voiceActivityType"],r),t}/** 142 * @license 143 * Copyright 2025 Google LLC 144 * SPDX-License-Identifier: Apache-2.0 145 */function rW(e,t){const r={},n=h(e,["apiKey"]);if(n!=null&&p(r,["apiKey"],n),h(e,["apiKeyConfig"])!==void 0)throw new Error("apiKeyConfig parameter is not supported in Gemini API.");if(h(e,["authType"])!==void 0)throw new Error("authType parameter is not supported in Gemini API.");if(h(e,["googleServiceAccountConfig"])!==void 0)throw new Error("googleServiceAccountConfig parameter is not supported in Gemini API.");if(h(e,["httpBasicAuthConfig"])!==void 0)throw new Error("httpBasicAuthConfig parameter is not supported in Gemini API.");if(h(e,["oauthConfig"])!==void 0)throw new Error("oauthConfig parameter is not supported in Gemini API.");if(h(e,["oidcConfig"])!==void 0)throw new Error("oidcConfig parameter is not supported in Gemini API.");return r}function nW(e,t){const r={},n=h(e,["data"]);if(n!=null&&p(r,["data"],n),h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const i=h(e,["mimeType"]);return i!=null&&p(r,["mimeType"],i),r}function iW(e,t){const r={},n=h(e,["content"]);n!=null&&p(r,["content"],n);const i=h(e,["citationMetadata"]);i!=null&&p(r,["citationMetadata"],aW(i));const a=h(e,["tokenCount"]);a!=null&&p(r,["tokenCount"],a);const o=h(e,["finishReason"]);o!=null&&p(r,["finishReason"],o);const s=h(e,["groundingMetadata"]);s!=null&&p(r,["groundingMetadata"],s);const l=h(e,["avgLogprobs"]);l!=null&&p(r,["avgLogprobs"],l);const u=h(e,["index"]);u!=null&&p(r,["index"],u);const c=h(e,["logprobsResult"]);c!=null&&p(r,["logprobsResult"],c);const f=h(e,["safetyRatings"]);if(f!=null){let m=f;Array.isArray(m)&&(m=m.map(g=>g)),p(r,["safetyRatings"],m)}const d=h(e,["urlContextMetadata"]);return d!=null&&p(r,["urlContextMetadata"],d),r}function aW(e,t){const r={},n=h(e,["citationSources"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(a=>a)),p(r,["citations"],i)}return r}function oW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["contents"]);if(a!=null){let o=An(a);Array.isArray(o)&&(o=o.map(s=>Cu(s))),p(n,["contents"],o)}return n}function sW(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["tokensInfo"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>o)),p(r,["tokensInfo"],a)}return r}function lW(e,t){const r={},n=h(e,["values"]);n!=null&&p(r,["values"],n);const i=h(e,["statistics"]);return i!=null&&p(r,["statistics"],uW(i)),r}function uW(e,t){const r={},n=h(e,["truncated"]);n!=null&&p(r,["truncated"],n);const i=h(e,["token_count"]);return i!=null&&p(r,["tokenCount"],i),r}function gd(e,t){const r={},n=h(e,["parts"]);if(n!=null){let a=n;Array.isArray(a)&&(a=a.map(o=>yq(o))),p(r,["parts"],a)}const i=h(e,["role"]);return i!=null&&p(r,["role"],i),r}function Cu(e,t){const r={},n=h(e,["parts"]);if(n!=null){let a=n;Array.isArray(a)&&(a=a.map(o=>xq(o))),p(r,["parts"],a)}const i=h(e,["role"]);return i!=null&&p(r,["role"],i),r}function cW(e,t){const r={},n=h(e,["controlType"]);n!=null&&p(r,["controlType"],n);const i=h(e,["enableControlImageComputation"]);return i!=null&&p(r,["computeControl"],i),r}function fW(e,t){const r={};if(h(e,["systemInstruction"])!==void 0)throw new Error("systemInstruction parameter is not supported in Gemini API.");if(h(e,["tools"])!==void 0)throw new Error("tools parameter is not supported in Gemini API.");if(h(e,["generationConfig"])!==void 0)throw new Error("generationConfig parameter is not supported in Gemini API.");return r}function dW(e,t,r){const n={},i=h(e,["systemInstruction"]);t!==void 0&&i!=null&&p(t,["systemInstruction"],Cu(Ir(i)));const a=h(e,["tools"]);if(t!==void 0&&a!=null){let s=a;Array.isArray(s)&&(s=s.map(l=>OR(l))),p(t,["tools"],s)}const o=h(e,["generationConfig"]);return t!==void 0&&o!=null&&p(t,["generationConfig"],nq(o)),n}function hW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["contents"]);if(a!=null){let s=An(a);Array.isArray(s)&&(s=s.map(l=>gd(l))),p(n,["contents"],s)}const o=h(t,["config"]);return o!=null&&fW(o),n}function pW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["contents"]);if(a!=null){let s=An(a);Array.isArray(s)&&(s=s.map(l=>Cu(l))),p(n,["contents"],s)}const o=h(t,["config"]);return o!=null&&dW(o,n),n}function mW(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["totalTokens"]);i!=null&&p(r,["totalTokens"],i);const a=h(e,["cachedContentTokenCount"]);return a!=null&&p(r,["cachedContentTokenCount"],a),r}function vW(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["totalTokens"]);return i!=null&&p(r,["totalTokens"],i),r}function gW(e,t,r){const n={},i=h(t,["model"]);return i!=null&&p(n,["_url","name"],nt(e,i)),n}function yW(e,t,r){const n={},i=h(t,["model"]);return i!=null&&p(n,["_url","name"],nt(e,i)),n}function xW(e,t){const r={},n=h(e,["sdkHttpResponse"]);return n!=null&&p(r,["sdkHttpResponse"],n),r}function _W(e,t){const r={},n=h(e,["sdkHttpResponse"]);return n!=null&&p(r,["sdkHttpResponse"],n),r}function wW(e,t,r){const n={},i=h(e,["outputGcsUri"]);t!==void 0&&i!=null&&p(t,["parameters","storageUri"],i);const a=h(e,["negativePrompt"]);t!==void 0&&a!=null&&p(t,["parameters","negativePrompt"],a);const o=h(e,["numberOfImages"]);
145t!==void 0&&o!=null&&p(t,["parameters","sampleCount"],o);const s=h(e,["aspectRatio"]);t!==void 0&&s!=null&&p(t,["parameters","aspectRatio"],s);const l=h(e,["guidanceScale"]);t!==void 0&&l!=null&&p(t,["parameters","guidanceScale"],l);const u=h(e,["seed"]);t!==void 0&&u!=null&&p(t,["parameters","seed"],u);const c=h(e,["safetyFilterLevel"]);t!==void 0&&c!=null&&p(t,["parameters","safetySetting"],c);const f=h(e,["personGeneration"]);t!==void 0&&f!=null&&p(t,["parameters","personGeneration"],f);const d=h(e,["includeSafetyAttributes"]);t!==void 0&&d!=null&&p(t,["parameters","includeSafetyAttributes"],d);const m=h(e,["includeRaiReason"]);t!==void 0&&m!=null&&p(t,["parameters","includeRaiReason"],m);const g=h(e,["language"]);t!==void 0&&g!=null&&p(t,["parameters","language"],g);const v=h(e,["outputMimeType"]);t!==void 0&&v!=null&&p(t,["parameters","outputOptions","mimeType"],v);const y=h(e,["outputCompressionQuality"]);t!==void 0&&y!=null&&p(t,["parameters","outputOptions","compressionQuality"],y);const x=h(e,["addWatermark"]);t!==void 0&&x!=null&&p(t,["parameters","addWatermark"],x);const w=h(e,["labels"]);t!==void 0&&w!=null&&p(t,["labels"],w);const _=h(e,["editMode"]);t!==void 0&&_!=null&&p(t,["parameters","editMode"],_);const S=h(e,["baseSteps"]);return t!==void 0&&S!=null&&p(t,["parameters","editConfig","baseSteps"],S),n}function EW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["prompt"]);a!=null&&p(n,["instances[0]","prompt"],a);const o=h(t,["referenceImages"]);if(o!=null){let l=o;Array.isArray(l)&&(l=l.map(u=>Aq(u))),p(n,["instances[0]","referenceImages"],l)}const s=h(t,["config"]);return s!=null&&wW(s,n),n}function TW(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["predictions"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>tm(o))),p(r,["generatedImages"],a)}return r}function SW(e,t,r){const n={},i=h(e,["taskType"]);t!==void 0&&i!=null&&p(t,["requests[]","taskType"],i);const a=h(e,["title"]);t!==void 0&&a!=null&&p(t,["requests[]","title"],a);const o=h(e,["outputDimensionality"]);if(t!==void 0&&o!=null&&p(t,["requests[]","outputDimensionality"],o),h(e,["mimeType"])!==void 0)throw new Error("mimeType parameter is not supported in Gemini API.");if(h(e,["autoTruncate"])!==void 0)throw new Error("autoTruncate parameter is not supported in Gemini API.");if(h(e,["documentOcr"])!==void 0)throw new Error("documentOcr parameter is not supported in Gemini API.");if(h(e,["audioTrackExtraction"])!==void 0)throw new Error("audioTrackExtraction parameter is not supported in Gemini API.");return n}function AW(e,t,r){const n={};let i=h(r,["embeddingApiType"]);if(i===void 0&&(i="PREDICT"),i==="PREDICT"){const f=h(e,["taskType"]);t!==void 0&&f!=null&&p(t,["instances[]","task_type"],f)}else if(i==="EMBED_CONTENT"){const f=h(e,["taskType"]);t!==void 0&&f!=null&&p(t,["embedContentConfig","taskType"],f)}let a=h(r,["embeddingApiType"]);if(a===void 0&&(a="PREDICT"),a==="PREDICT"){const f=h(e,["title"]);t!==void 0&&f!=null&&p(t,["instances[]","title"],f)}else if(a==="EMBED_CONTENT"){const f=h(e,["title"]);t!==void 0&&f!=null&&p(t,["embedContentConfig","title"],f)}let o=h(r,["embeddingApiType"]);if(o===void 0&&(o="PREDICT"),o==="PREDICT"){const f=h(e,["outputDimensionality"]);t!==void 0&&f!=null&&p(t,["parameters","outputDimensionality"],f)}else if(o==="EMBED_CONTENT"){const f=h(e,["outputDimensionality"]);t!==void 0&&f!=null&&p(t,["embedContentConfig","outputDimensionality"],f)}let s=h(r,["embeddingApiType"]);if(s===void 0&&(s="PREDICT"),s==="PREDICT"){const f=h(e,["mimeType"]);t!==void 0&&f!=null&&p(t,["instances[]","mimeType"],f)}let l=h(r,["embeddingApiType"]);if(l===void 0&&(l="PREDICT"),l==="PREDICT"){const f=h(e,["autoTruncate"]);t!==void 0&&f!=null&&p(t,["parameters","autoTruncate"],f)}else if(l==="EMBED_CONTENT"){const f=h(e,["autoTruncate"]);t!==void 0&&f!=null&&p(t,["embedContentConfig","autoTruncate"],f)}let u=h(r,["embeddingApiType"]);if(u===void 0&&(u="PREDICT"),u==="EMBED_CONTENT"){const f=h(e,["documentOcr"]);t!==void 0&&f!=null&&p(t,["embedContentConfig","documentOcr"],f)}let c=h(r,["embeddingApiType"]);if(c===void 0&&(c="PREDICT"),c==="EMBED_CONTENT"){const f=h(e,["audioTrackExtraction"]);t!==void 0&&f!=null&&p(t,["embedContentConfig","audioTrackExtraction"],f)}return n}function bW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["contents"]);if(a!=null){let u=$_(e,a);Array.isArray(u)&&(u=u.map(c=>c)),p(n,["requests[]","content"],u)}const o=h(t,["content"]);o!=null&&gd(Ir(o));const s=h(t,["config"]);s!=null&&SW(s,n);const l=h(t,["model"]);return l!==void 0&&p(n,["requests[]","model"],nt(e,l)),n}function CW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));let a=h(r,["embeddingApiType"]);if(a===void 0&&(a="PREDICT"),a==="PREDICT"){const l=h(t,["contents"]);if(l!=null){let u=$_(e,l);Array.isArray(u)&&(u=u.map(c=>c)),p(n,["instances[]","content"],u)}}let o=h(r,["embeddingApiType"]);if(o===void 0&&(o="PREDICT"),o==="EMBED_CONTENT"){const l=h(t,["content"]);l!=null&&p(n,["content"],Cu(Ir(l)))}const s=h(t,["config"]);return s!=null&&AW(s,n,r),n}function PW(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["embeddings"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>s)),p(r,["embeddings"],o)}const a=h(e,["metadata"]);return a!=null&&p(r,["metadata"],a),r}function kW(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["predictions[]","embeddings"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>lW(s))),p(r,["embeddings"],o)}const a=h(e,["metadata"]);if(a!=null&&p(r,["metadata"],a),t&&h(t,["embeddingApiType"])==="EMBED_CONTENT"){const o=h(e,["embedding"]),s=h(e,["usageMetadata"]),l=h(e,["truncated"]);if(o){const u={};s&&s.promptTokenCount&&(u.tokenCount=s.promptTokenCount),l&&(u.truncated=l),o.statistics=u,p(r,["embeddings"],[o])}}return r}function IW(e,t){const r={},n=h(e,["endpoint"]);n!=null&&p(r,["name"],n);const i=h(e,["deployedModelId"]);return i!=null&&p(r,["deployedModelId"],i),r}function NW(e,t){const r={};if(h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(e,["fileUri"]);n!=null&&p(r,["fileUri"],n);const i=h(e,["mimeType"]);return i!=null&&p(r,["mimeType"],i),r}function OW(e,t){const r={},n=h(e,["id"]);n!=null&&p(r,["id"],n);const i=h(e,["args"]);i!=null&&p(r,["args"],i);const a=h(e,["name"]);if(a!=null&&p(r,["name"],a),h(e,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");
145if(h(e,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return r}function RW(e,t){const r={},n=h(e,["allowedFunctionNames"]);n!=null&&p(r,["allowedFunctionNames"],n);const i=h(e,["mode"]);if(i!=null&&p(r,["mode"],i),h(e,["streamFunctionCallArguments"])!==void 0)throw new Error("streamFunctionCallArguments parameter is not supported in Gemini API.");return r}function MW(e,t){const r={},n=h(e,["description"]);n!=null&&p(r,["description"],n);const i=h(e,["name"]);i!=null&&p(r,["name"],i);const a=h(e,["parameters"]);a!=null&&p(r,["parameters"],a);const o=h(e,["parametersJsonSchema"]);o!=null&&p(r,["parametersJsonSchema"],o);const s=h(e,["response"]);s!=null&&p(r,["response"],s);const l=h(e,["responseJsonSchema"]);if(l!=null&&p(r,["responseJsonSchema"],l),h(e,["behavior"])!==void 0)throw new Error("behavior parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return r}function DW(e,t,r,n){const i={},a=h(t,["systemInstruction"]);r!==void 0&&a!=null&&p(r,["systemInstruction"],gd(Ir(a)));const o=h(t,["temperature"]);o!=null&&p(i,["temperature"],o);const s=h(t,["topP"]);s!=null&&p(i,["topP"],s);const l=h(t,["topK"]);l!=null&&p(i,["topK"],l);const u=h(t,["candidateCount"]);u!=null&&p(i,["candidateCount"],u);const c=h(t,["maxOutputTokens"]);c!=null&&p(i,["maxOutputTokens"],c);const f=h(t,["stopSequences"]);f!=null&&p(i,["stopSequences"],f);const d=h(t,["responseLogprobs"]);d!=null&&p(i,["responseLogprobs"],d);const m=h(t,["logprobs"]);m!=null&&p(i,["logprobs"],m);const g=h(t,["presencePenalty"]);g!=null&&p(i,["presencePenalty"],g);const v=h(t,["frequencyPenalty"]);v!=null&&p(i,["frequencyPenalty"],v);const y=h(t,["seed"]);y!=null&&p(i,["seed"],y);const x=h(t,["responseMimeType"]);x!=null&&p(i,["responseMimeType"],x);const w=h(t,["responseSchema"]);w!=null&&p(i,["responseSchema"],B_(w));const _=h(t,["responseJsonSchema"]);if(_!=null&&p(i,["responseJsonSchema"],_),h(t,["routingConfig"])!==void 0)throw new Error("routingConfig parameter is not supported in Gemini API.");if(h(t,["modelSelectionConfig"])!==void 0)throw new Error("modelSelectionConfig parameter is not supported in Gemini API.");const S=h(t,["safetySettings"]);if(r!==void 0&&S!=null){let U=S;Array.isArray(U)&&(U=U.map(Y=>bq(Y))),p(r,["safetySettings"],U)}const T=h(t,["tools"]);if(r!==void 0&&T!=null){let U=Au(T);Array.isArray(U)&&(U=U.map(Y=>Mq(Su(Y)))),p(r,["tools"],U)}const E=h(t,["toolConfig"]);if(r!==void 0&&E!=null&&p(r,["toolConfig"],Oq(E)),h(t,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const A=h(t,["cachedContent"]);r!==void 0&&A!=null&&p(r,["cachedContent"],Ua(e,A));const P=h(t,["responseModalities"]);P!=null&&p(i,["responseModalities"],P);const C=h(t,["mediaResolution"]);C!=null&&p(i,["mediaResolution"],C);const N=h(t,["speechConfig"]);if(N!=null&&p(i,["speechConfig"],U_(N)),h(t,["audioTimestamp"])!==void 0)throw new Error("audioTimestamp parameter is not supported in Gemini API.");const M=h(t,["thinkingConfig"]);M!=null&&p(i,["thinkingConfig"],M);const k=h(t,["imageConfig"]);k!=null&&p(i,["imageConfig"],lq(k));const H=h(t,["enableEnhancedCivicAnswers"]);if(H!=null&&p(i,["enableEnhancedCivicAnswers"],H),h(t,["modelArmorConfig"])!==void 0)throw new Error("modelArmorConfig parameter is not supported in Gemini API.");const K=h(t,["serviceTier"]);return r!==void 0&&K!=null&&p(r,["serviceTier"],K),i}function FW(e,t,r,n){const i={},a=h(t,["systemInstruction"]);r!==void 0&&a!=null&&p(r,["systemInstruction"],Cu(Ir(a)));const o=h(t,["temperature"]);o!=null&&p(i,["temperature"],o);const s=h(t,["topP"]);s!=null&&p(i,["topP"],s);const l=h(t,["topK"]);l!=null&&p(i,["topK"],l);const u=h(t,["candidateCount"]);u!=null&&p(i,["candidateCount"],u);const c=h(t,["maxOutputTokens"]);c!=null&&p(i,["maxOutputTokens"],c);const f=h(t,["stopSequences"]);f!=null&&p(i,["stopSequences"],f);const d=h(t,["responseLogprobs"]);d!=null&&p(i,["responseLogprobs"],d);const m=h(t,["logprobs"]);m!=null&&p(i,["logprobs"],m);const g=h(t,["presencePenalty"]);g!=null&&p(i,["presencePenalty"],g);const v=h(t,["frequencyPenalty"]);v!=null&&p(i,["frequencyPenalty"],v);const y=h(t,["seed"]);y!=null&&p(i,["seed"],y);const x=h(t,["responseMimeType"]);x!=null&&p(i,["responseMimeType"],x);const w=h(t,["responseSchema"]);w!=null&&p(i,["responseSchema"],B_(w));const _=h(t,["responseJsonSchema"]);_!=null&&p(i,["responseJsonSchema"],_);const S=h(t,["routingConfig"]);
145S!=null&&p(i,["routingConfig"],S);const T=h(t,["modelSelectionConfig"]);T!=null&&p(i,["modelConfig"],T);const E=h(t,["safetySettings"]);if(r!==void 0&&E!=null){let F=E;Array.isArray(F)&&(F=F.map(ee=>ee)),p(r,["safetySettings"],F)}const A=h(t,["tools"]);if(r!==void 0&&A!=null){let F=Au(A);Array.isArray(F)&&(F=F.map(ee=>OR(Su(ee)))),p(r,["tools"],F)}const P=h(t,["toolConfig"]);r!==void 0&&P!=null&&p(r,["toolConfig"],Rq(P));const C=h(t,["labels"]);r!==void 0&&C!=null&&p(r,["labels"],C);const N=h(t,["cachedContent"]);r!==void 0&&N!=null&&p(r,["cachedContent"],Ua(e,N));const M=h(t,["responseModalities"]);M!=null&&p(i,["responseModalities"],M);const k=h(t,["mediaResolution"]);k!=null&&p(i,["mediaResolution"],k);const H=h(t,["speechConfig"]);H!=null&&p(i,["speechConfig"],U_(H));const K=h(t,["audioTimestamp"]);K!=null&&p(i,["audioTimestamp"],K);const U=h(t,["thinkingConfig"]);U!=null&&p(i,["thinkingConfig"],U);const Y=h(t,["imageConfig"]);if(Y!=null&&p(i,["imageConfig"],uq(Y)),h(t,["enableEnhancedCivicAnswers"])!==void 0)throw new Error("enableEnhancedCivicAnswers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");const W=h(t,["modelArmorConfig"]);r!==void 0&&W!=null&&p(r,["modelArmorConfig"],W);const J=h(t,["serviceTier"]);return r!==void 0&&J!=null&&p(r,["serviceTier"],J),i}function jA(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["contents"]);if(a!=null){let s=An(a);Array.isArray(s)&&(s=s.map(l=>gd(l))),p(n,["contents"],s)}const o=h(t,["config"]);return o!=null&&p(n,["generationConfig"],DW(e,o,n)),n}function zA(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["contents"]);if(a!=null){let s=An(a);Array.isArray(s)&&(s=s.map(l=>Cu(l))),p(n,["contents"],s)}const o=h(t,["config"]);return o!=null&&p(n,["generationConfig"],FW(e,o,n)),n}function WA(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["candidates"]);if(i!=null){let c=i;Array.isArray(c)&&(c=c.map(f=>iW(f))),p(r,["candidates"],c)}const a=h(e,["modelVersion"]);a!=null&&p(r,["modelVersion"],a);const o=h(e,["promptFeedback"]);o!=null&&p(r,["promptFeedback"],o);const s=h(e,["responseId"]);s!=null&&p(r,["responseId"],s);const l=h(e,["usageMetadata"]);l!=null&&p(r,["usageMetadata"],l);const u=h(e,["modelStatus"]);return u!=null&&p(r,["modelStatus"],u),r}function qA(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["candidates"]);if(i!=null){let c=i;Array.isArray(c)&&(c=c.map(f=>f)),p(r,["candidates"],c)}const a=h(e,["createTime"]);a!=null&&p(r,["createTime"],a);const o=h(e,["modelVersion"]);o!=null&&p(r,["modelVersion"],o);const s=h(e,["promptFeedback"]);s!=null&&p(r,["promptFeedback"],s);const l=h(e,["responseId"]);l!=null&&p(r,["responseId"],l);const u=h(e,["usageMetadata"]);return u!=null&&p(r,["usageMetadata"],u),r}function LW(e,t,r){const n={};if(h(e,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(h(e,["negativePrompt"])!==void 0)throw new Error("negativePrompt parameter is not supported in Gemini API.");const i=h(e,["numberOfImages"]);t!==void 0&&i!=null&&p(t,["parameters","sampleCount"],i);const a=h(e,["aspectRatio"]);t!==void 0&&a!=null&&p(t,["parameters","aspectRatio"],a);const o=h(e,["guidanceScale"]);if(t!==void 0&&o!=null&&p(t,["parameters","guidanceScale"],o),h(e,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const s=h(e,["safetyFilterLevel"]);t!==void 0&&s!=null&&p(t,["parameters","safetySetting"],s);const l=h(e,["personGeneration"]);t!==void 0&&l!=null&&p(t,["parameters","personGeneration"],l);const u=h(e,["includeSafetyAttributes"]);t!==void 0&&u!=null&&p(t,["parameters","includeSafetyAttributes"],u);const c=h(e,["includeRaiReason"]);t!==void 0&&c!=null&&p(t,["parameters","includeRaiReason"],c);const f=h(e,["language"]);t!==void 0&&f!=null&&p(t,["parameters","language"],f);const d=h(e,["outputMimeType"]);t!==void 0&&d!=null&&p(t,["parameters","outputOptions","mimeType"],d);const m=h(e,["outputCompressionQuality"]);if(t!==void 0&&m!=null&&p(t,["parameters","outputOptions","compressionQuality"],m),h(e,["addWatermark"])!==void 0)throw new Error("addWatermark parameter is not supported in Gemini API.");if(h(e,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const g=h(e,["imageSize"]);if(t!==void 0&&g!=null&&p(t,["parameters","sampleImageSize"],g),h(e,["enhancePrompt"])!==void 0)throw new Error("enhancePrompt parameter is not supported in Gemini API.");return n}function $W(e,t,r){const n={},i=h(e,["outputGcsUri"]);t!==void 0&&i!=null&&p(t,["parameters","storageUri"],i);const a=h(e,["negativePrompt"]);t!==void 0&&a!=null&&p(t,["parameters","negativePrompt"],a);const o=h(e,["numberOfImages"]);
145t!==void 0&&o!=null&&p(t,["parameters","sampleCount"],o);const s=h(e,["aspectRatio"]);t!==void 0&&s!=null&&p(t,["parameters","aspectRatio"],s);const l=h(e,["guidanceScale"]);t!==void 0&&l!=null&&p(t,["parameters","guidanceScale"],l);const u=h(e,["seed"]);t!==void 0&&u!=null&&p(t,["parameters","seed"],u);const c=h(e,["safetyFilterLevel"]);t!==void 0&&c!=null&&p(t,["parameters","safetySetting"],c);const f=h(e,["personGeneration"]);t!==void 0&&f!=null&&p(t,["parameters","personGeneration"],f);const d=h(e,["includeSafetyAttributes"]);t!==void 0&&d!=null&&p(t,["parameters","includeSafetyAttributes"],d);const m=h(e,["includeRaiReason"]);t!==void 0&&m!=null&&p(t,["parameters","includeRaiReason"],m);const g=h(e,["language"]);t!==void 0&&g!=null&&p(t,["parameters","language"],g);const v=h(e,["outputMimeType"]);t!==void 0&&v!=null&&p(t,["parameters","outputOptions","mimeType"],v);const y=h(e,["outputCompressionQuality"]);t!==void 0&&y!=null&&p(t,["parameters","outputOptions","compressionQuality"],y);const x=h(e,["addWatermark"]);t!==void 0&&x!=null&&p(t,["parameters","addWatermark"],x);const w=h(e,["labels"]);t!==void 0&&w!=null&&p(t,["labels"],w);const _=h(e,["imageSize"]);t!==void 0&&_!=null&&p(t,["parameters","sampleImageSize"],_);const S=h(e,["enhancePrompt"]);return t!==void 0&&S!=null&&p(t,["parameters","enhancePrompt"],S),n}function BW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["prompt"]);a!=null&&p(n,["instances[0]","prompt"],a);const o=h(t,["config"]);return o!=null&&LW(o,n),n}function UW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["prompt"]);a!=null&&p(n,["instances[0]","prompt"],a);const o=h(t,["config"]);return o!=null&&$W(o,n),n}function GW(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["predictions"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>QW(s))),p(r,["generatedImages"],o)}const a=h(e,["positivePromptSafetyAttributes"]);return a!=null&&p(r,["positivePromptSafetyAttributes"],IR(a)),r}function VW(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["predictions"]);if(i!=null){let o=i;Array.isArray(o)&&(o=o.map(s=>tm(s))),p(r,["generatedImages"],o)}const a=h(e,["positivePromptSafetyAttributes"]);return a!=null&&p(r,["positivePromptSafetyAttributes"],NR(a)),r}function HW(e,t,r){const n={},i=h(e,["numberOfVideos"]);if(t!==void 0&&i!=null&&p(t,["parameters","sampleCount"],i),h(e,["outputGcsUri"])!==void 0)throw new Error("outputGcsUri parameter is not supported in Gemini API.");if(h(e,["fps"])!==void 0)throw new Error("fps parameter is not supported in Gemini API.");const a=h(e,["durationSeconds"]);if(t!==void 0&&a!=null&&p(t,["parameters","durationSeconds"],a),h(e,["seed"])!==void 0)throw new Error("seed parameter is not supported in Gemini API.");const o=h(e,["aspectRatio"]);t!==void 0&&o!=null&&p(t,["parameters","aspectRatio"],o);const s=h(e,["resolution"]);t!==void 0&&s!=null&&p(t,["parameters","resolution"],s);const l=h(e,["personGeneration"]);if(t!==void 0&&l!=null&&p(t,["parameters","personGeneration"],l),h(e,["pubsubTopic"])!==void 0)throw new Error("pubsubTopic parameter is not supported in Gemini API.");const u=h(e,["negativePrompt"]);t!==void 0&&u!=null&&p(t,["parameters","negativePrompt"],u);const c=h(e,["enhancePrompt"]);if(t!==void 0&&c!=null&&p(t,["parameters","enhancePrompt"],c),h(e,["generateAudio"])!==void 0)throw new Error("generateAudio parameter is not supported in Gemini API.");const f=h(e,["lastFrame"]);t!==void 0&&f!=null&&p(t,["instances[0]","lastFrame"],rm(f));const d=h(e,["referenceImages"]);if(t!==void 0&&d!=null){let g=d;Array.isArray(g)&&(g=g.map(v=>qq(v))),p(t,["instances[0]","referenceImages"],g)}if(h(e,["mask"])!==void 0)throw new Error("mask parameter is not supported in Gemini API.");if(h(e,["compressionQuality"])!==void 0)throw new Error("compressionQuality parameter is not supported in Gemini API.");if(h(e,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");const m=h(e,["webhookConfig"]);if(t!==void 0&&m!=null&&p(t,["webhookConfig"],m),h(e,["resizeMode"])!==void 0)throw new Error("resizeMode parameter is not supported in Gemini API.");return n}function jW(e,t,r){const n={},i=h(e,["numberOfVideos"]);
145t!==void 0&&i!=null&&p(t,["parameters","sampleCount"],i);const a=h(e,["outputGcsUri"]);t!==void 0&&a!=null&&p(t,["parameters","storageUri"],a);const o=h(e,["fps"]);t!==void 0&&o!=null&&p(t,["parameters","fps"],o);const s=h(e,["durationSeconds"]);t!==void 0&&s!=null&&p(t,["parameters","durationSeconds"],s);const l=h(e,["seed"]);t!==void 0&&l!=null&&p(t,["parameters","seed"],l);const u=h(e,["aspectRatio"]);t!==void 0&&u!=null&&p(t,["parameters","aspectRatio"],u);const c=h(e,["resolution"]);t!==void 0&&c!=null&&p(t,["parameters","resolution"],c);const f=h(e,["personGeneration"]);t!==void 0&&f!=null&&p(t,["parameters","personGeneration"],f);const d=h(e,["pubsubTopic"]);t!==void 0&&d!=null&&p(t,["parameters","pubsubTopic"],d);const m=h(e,["negativePrompt"]);t!==void 0&&m!=null&&p(t,["parameters","negativePrompt"],m);const g=h(e,["enhancePrompt"]);t!==void 0&&g!=null&&p(t,["parameters","enhancePrompt"],g);const v=h(e,["generateAudio"]);t!==void 0&&v!=null&&p(t,["parameters","generateAudio"],v);const y=h(e,["lastFrame"]);t!==void 0&&y!=null&&p(t,["instances[0]","lastFrame"],Ui(y));const x=h(e,["referenceImages"]);if(t!==void 0&&x!=null){let E=x;Array.isArray(E)&&(E=E.map(A=>Kq(A))),p(t,["instances[0]","referenceImages"],E)}const w=h(e,["mask"]);t!==void 0&&w!=null&&p(t,["instances[0]","mask"],Wq(w));const _=h(e,["compressionQuality"]);t!==void 0&&_!=null&&p(t,["parameters","compressionQuality"],_);const S=h(e,["labels"]);if(t!==void 0&&S!=null&&p(t,["labels"],S),h(e,["webhookConfig"])!==void 0)throw new Error("webhookConfig parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");const T=h(e,["resizeMode"]);return t!==void 0&&T!=null&&p(t,["parameters","resizeMode"],T),n}function zW(e,t){const r={},n=h(e,["name"]);n!=null&&p(r,["name"],n);const i=h(e,["metadata"]);i!=null&&p(r,["metadata"],i);const a=h(e,["done"]);a!=null&&p(r,["done"],a);const o=h(e,["error"]);o!=null&&p(r,["error"],o);const s=h(e,["response","generateVideoResponse"]);return s!=null&&p(r,["response"],YW(s)),r}function WW(e,t){const r={},n=h(e,["name"]);n!=null&&p(r,["name"],n);const i=h(e,["metadata"]);i!=null&&p(r,["metadata"],i);const a=h(e,["done"]);a!=null&&p(r,["done"],a);const o=h(e,["error"]);o!=null&&p(r,["error"],o);const s=h(e,["response"]);return s!=null&&p(r,["response"],XW(s)),r}function qW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["prompt"]);a!=null&&p(n,["instances[0]","prompt"],a);const o=h(t,["image"]);o!=null&&p(n,["instances[0]","image"],rm(o));const s=h(t,["video"]);s!=null&&p(n,["instances[0]","video"],RR(s));const l=h(t,["source"]);l!=null&&JW(l,n);const u=h(t,["config"]);return u!=null&&HW(u,n),n}function KW(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["prompt"]);a!=null&&p(n,["instances[0]","prompt"],a);const o=h(t,["image"]);o!=null&&p(n,["instances[0]","image"],Ui(o));const s=h(t,["video"]);s!=null&&p(n,["instances[0]","video"],MR(s));const l=h(t,["source"]);l!=null&&ZW(l,n);const u=h(t,["config"]);return u!=null&&jW(u,n),n}function YW(e,t){const r={},n=h(e,["generatedSamples"]);if(n!=null){let o=n;Array.isArray(o)&&(o=o.map(s=>tq(s))),p(r,["generatedVideos"],o)}const i=h(e,["raiMediaFilteredCount"]);i!=null&&p(r,["raiMediaFilteredCount"],i);const a=h(e,["raiMediaFilteredReasons"]);return a!=null&&p(r,["raiMediaFilteredReasons"],a),r}function XW(e,t){const r={},n=h(e,["videos"]);if(n!=null){let o=n;Array.isArray(o)&&(o=o.map(s=>rq(s))),p(r,["generatedVideos"],o)}const i=h(e,["raiMediaFilteredCount"]);i!=null&&p(r,["raiMediaFilteredCount"],i);const a=h(e,["raiMediaFilteredReasons"]);return a!=null&&p(r,["raiMediaFilteredReasons"],a),r}function JW(e,t,r){const n={},i=h(e,["prompt"]);t!==void 0&&i!=null&&p(t,["instances[0]","prompt"],i);const a=h(e,["image"]);t!==void 0&&a!=null&&p(t,["instances[0]","image"],rm(a));const o=h(e,["video"]);return t!==void 0&&o!=null&&p(t,["instances[0]","video"],RR(o)),n}function ZW(e,t,r){const n={},i=h(e,["prompt"]);t!==void 0&&i!=null&&p(t,["instances[0]","prompt"],i);const a=h(e,["image"]);t!==void 0&&a!=null&&p(t,["instances[0]","image"],Ui(a));const o=h(e,["video"]);return t!==void 0&&o!=null&&p(t,["instances[0]","video"],MR(o)),n}function QW(e,t){const r={},n=h(e,["_self"]);n!=null&&p(r,["image"],cq(n));const i=h(e,["raiFilteredReason"]);i!=null&&p(r,["raiFilteredReason"],i);const a=h(e,["_self"]);return a!=null&&p(r,["safetyAttributes"],IR(a)),r}function tm(e,t){const r={},n=h(e,["_self"]);n!=null&&p(r,["image"],kR(n));const i=h(e,["raiFilteredReason"]);i!=null&&p(r,["raiFilteredReason"],i);const a=h(e,["_self"]);a!=null&&p(r,["safetyAttributes"],NR(a));const o=h(e,["prompt"]);return o!=null&&p(r,["enhancedPrompt"],o),r}function eq(e,t){const r={},n=h(e,["_self"]);n!=null&&p(r,["mask"],kR(n));const i=h(e,["labels"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>o)),p(r,["labels"],a)}return r}function tq(e,t){const r={},n=h(e,["video"]);return n!=null&&p(r,["video"],jq(n)),r}function rq(e,t){const r={},n=h(e,["_self"]);return n!=null&&p(r,["video"],zq(n)),r}function nq(e,t){const r={},n=h(e,["modelSelectionConfig"]);n!=null&&p(r,["modelConfig"],n);const i=h(e,["responseJsonSchema"]);i!=null&&p(r,["responseJsonSchema"],i);const a=h(e,["audioTimestamp"]);a!=null&&p(r,["audioTimestamp"],a);const o=h(e,["candidateCount"]);o!=null&&p(r,["candidateCount"],o);const s=h(e,["enableAffectiveDialog"]);s!=null&&p(r,["enableAffectiveDialog"],s);const l=h(e,["frequencyPenalty"]);l!=null&&p(r,["frequencyPenalty"],l);const u=h(e,["logprobs"]);u!=null&&p(r,["logprobs"],u);const c=h(e,["maxOutputTokens"]);c!=null&&p(r,["maxOutputTokens"],c);const f=h(e,["mediaResolution"]);f!=null&&p(r,["mediaResolution"],f);const d=h(e,["presencePenalty"]);d!=null&&p(r,["presencePenalty"],d);const m=h(e,["responseLogprobs"]);m!=null&&p(r,["responseLogprobs"],m);const g=h(e,["responseMimeType"]);g!=null&&p(r,["responseMimeType"],g);const v=h(e,["responseModalities"]);v!=null&&p(r,["responseModalities"],v);const y=h(e,["responseSchema"]);y!=null&&p(r,["responseSchema"],y);const x=h(e,["routingConfig"]);x!=null&&p(r,["routingConfig"],x);const w=h(e,["seed"]);w!=null&&p(r,["seed"],w);const _=h(e,["speechConfig"]);_!=null&&p(r,["speechConfig"],_);const S=h(e,["stopSequences"]);
145S!=null&&p(r,["stopSequences"],S);const T=h(e,["temperature"]);T!=null&&p(r,["temperature"],T);const E=h(e,["thinkingConfig"]);E!=null&&p(r,["thinkingConfig"],E);const A=h(e,["topK"]);A!=null&&p(r,["topK"],A);const P=h(e,["topP"]);if(P!=null&&p(r,["topP"],P),h(e,["enableEnhancedCivicAnswers"])!==void 0)throw new Error("enableEnhancedCivicAnswers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return r}function iq(e,t,r){const n={},i=h(t,["model"]);return i!=null&&p(n,["_url","name"],nt(e,i)),n}function aq(e,t,r){const n={},i=h(t,["model"]);return i!=null&&p(n,["_url","name"],nt(e,i)),n}function oq(e,t){const r={},n=h(e,["authConfig"]);n!=null&&p(r,["authConfig"],rW(n));const i=h(e,["enableWidget"]);return i!=null&&p(r,["enableWidget"],i),r}function sq(e,t){const r={},n=h(e,["searchTypes"]);if(n!=null&&p(r,["searchTypes"],n),h(e,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");if(h(e,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");const i=h(e,["timeRangeFilter"]);return i!=null&&p(r,["timeRangeFilter"],i),r}function lq(e,t){const r={},n=h(e,["aspectRatio"]);n!=null&&p(r,["aspectRatio"],n);const i=h(e,["imageSize"]);if(i!=null&&p(r,["imageSize"],i),h(e,["personGeneration"])!==void 0)throw new Error("personGeneration parameter is not supported in Gemini API.");if(h(e,["prominentPeople"])!==void 0)throw new Error("prominentPeople parameter is not supported in Gemini API.");if(h(e,["outputMimeType"])!==void 0)throw new Error("outputMimeType parameter is not supported in Gemini API.");if(h(e,["outputCompressionQuality"])!==void 0)throw new Error("outputCompressionQuality parameter is not supported in Gemini API.");if(h(e,["imageOutputOptions"])!==void 0)throw new Error("imageOutputOptions parameter is not supported in Gemini API.");return r}function uq(e,t){const r={},n=h(e,["aspectRatio"]);n!=null&&p(r,["aspectRatio"],n);const i=h(e,["imageSize"]);i!=null&&p(r,["imageSize"],i);const a=h(e,["personGeneration"]);a!=null&&p(r,["personGeneration"],a);const o=h(e,["prominentPeople"]);o!=null&&p(r,["prominentPeople"],o);const s=h(e,["outputMimeType"]);s!=null&&p(r,["imageOutputOptions","mimeType"],s);const l=h(e,["outputCompressionQuality"]);l!=null&&p(r,["imageOutputOptions","compressionQuality"],l);const u=h(e,["imageOutputOptions"]);return u!=null&&p(r,["imageOutputOptions"],u),r}function cq(e,t){const r={},n=h(e,["bytesBase64Encoded"]);n!=null&&p(r,["imageBytes"],Fo(n));const i=h(e,["mimeType"]);return i!=null&&p(r,["mimeType"],i),r}function kR(e,t){const r={},n=h(e,["gcsUri"]);n!=null&&p(r,["gcsUri"],n);const i=h(e,["bytesBase64Encoded"]);i!=null&&p(r,["imageBytes"],Fo(i));const a=h(e,["mimeType"]);return a!=null&&p(r,["mimeType"],a),r}function rm(e,t){const r={};if(h(e,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");const n=h(e,["imageBytes"]);n!=null&&p(r,["bytesBase64Encoded"],Fo(n));const i=h(e,["mimeType"]);return i!=null&&p(r,["mimeType"],i),r}function Ui(e,t){const r={},n=h(e,["gcsUri"]);n!=null&&p(r,["gcsUri"],n);const i=h(e,["imageBytes"]);i!=null&&p(r,["bytesBase64Encoded"],Fo(i));const a=h(e,["mimeType"]);return a!=null&&p(r,["mimeType"],a),r}function fq(e,t,r,n){const i={},a=h(t,["pageSize"]);r!==void 0&&a!=null&&p(r,["_query","pageSize"],a);const o=h(t,["pageToken"]);r!==void 0&&o!=null&&p(r,["_query","pageToken"],o);const s=h(t,["filter"]);r!==void 0&&s!=null&&p(r,["_query","filter"],s);const l=h(t,["queryBase"]);return r!==void 0&&l!=null&&p(r,["_url","models_url"],ER(e,l)),i}function dq(e,t,r,n){const i={},a=h(t,["pageSize"]);r!==void 0&&a!=null&&p(r,["_query","pageSize"],a);const o=h(t,["pageToken"]);r!==void 0&&o!=null&&p(r,["_query","pageToken"],o);const s=h(t,["filter"]);r!==void 0&&s!=null&&p(r,["_query","filter"],s);const l=h(t,["queryBase"]);return r!==void 0&&l!=null&&p(r,["_url","models_url"],ER(e,l)),i}function hq(e,t,r){const n={},i=h(t,["config"]);return i!=null&&fq(e,i,n),n}function pq(e,t,r){const n={},i=h(t,["config"]);return i!=null&&dq(e,i,n),n}function mq(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["nextPageToken"]);i!=null&&p(r,["nextPageToken"],i);const a=h(e,["_self"]);if(a!=null){let o=TR(a);Array.isArray(o)&&(o=o.map(s=>
145Cy(s))),p(r,["models"],o)}return r}function vq(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["nextPageToken"]);i!=null&&p(r,["nextPageToken"],i);const a=h(e,["_self"]);if(a!=null){let o=TR(a);Array.isArray(o)&&(o=o.map(s=>Py(s))),p(r,["models"],o)}return r}function gq(e,t){const r={},n=h(e,["maskMode"]);n!=null&&p(r,["maskMode"],n);const i=h(e,["segmentationClasses"]);i!=null&&p(r,["maskClasses"],i);const a=h(e,["maskDilation"]);return a!=null&&p(r,["dilation"],a),r}function Cy(e,t){const r={},n=h(e,["name"]);n!=null&&p(r,["name"],n);const i=h(e,["displayName"]);i!=null&&p(r,["displayName"],i);const a=h(e,["description"]);a!=null&&p(r,["description"],a);const o=h(e,["version"]);o!=null&&p(r,["version"],o);const s=h(e,["_self"]);s!=null&&p(r,["tunedModelInfo"],Dq(s));const l=h(e,["inputTokenLimit"]);l!=null&&p(r,["inputTokenLimit"],l);const u=h(e,["outputTokenLimit"]);u!=null&&p(r,["outputTokenLimit"],u);const c=h(e,["supportedGenerationMethods"]);c!=null&&p(r,["supportedActions"],c);const f=h(e,["temperature"]);f!=null&&p(r,["temperature"],f);const d=h(e,["maxTemperature"]);d!=null&&p(r,["maxTemperature"],d);const m=h(e,["topP"]);m!=null&&p(r,["topP"],m);const g=h(e,["topK"]);g!=null&&p(r,["topK"],g);const v=h(e,["thinking"]);return v!=null&&p(r,["thinking"],v),r}function Py(e,t){const r={},n=h(e,["name"]);n!=null&&p(r,["name"],n);const i=h(e,["displayName"]);i!=null&&p(r,["displayName"],i);const a=h(e,["description"]);a!=null&&p(r,["description"],a);const o=h(e,["versionId"]);o!=null&&p(r,["version"],o);const s=h(e,["deployedModels"]);if(s!=null){let d=s;Array.isArray(d)&&(d=d.map(m=>IW(m))),p(r,["endpoints"],d)}const l=h(e,["labels"]);l!=null&&p(r,["labels"],l);const u=h(e,["_self"]);u!=null&&p(r,["tunedModelInfo"],Fq(u));const c=h(e,["defaultCheckpointId"]);c!=null&&p(r,["defaultCheckpointId"],c);const f=h(e,["checkpoints"]);if(f!=null){let d=f;Array.isArray(d)&&(d=d.map(m=>m)),p(r,["checkpoints"],d)}return r}function yq(e,t){const r={},n=h(e,["mediaResolution"]);n!=null&&p(r,["mediaResolution"],n);const i=h(e,["codeExecutionResult"]);i!=null&&p(r,["codeExecutionResult"],i);const a=h(e,["executableCode"]);a!=null&&p(r,["executableCode"],a);const o=h(e,["fileData"]);o!=null&&p(r,["fileData"],NW(o));const s=h(e,["functionCall"]);s!=null&&p(r,["functionCall"],OW(s));const l=h(e,["functionResponse"]);l!=null&&p(r,["functionResponse"],l);const u=h(e,["inlineData"]);u!=null&&p(r,["inlineData"],nW(u));const c=h(e,["text"]);c!=null&&p(r,["text"],c);const f=h(e,["thought"]);f!=null&&p(r,["thought"],f);const d=h(e,["thoughtSignature"]);d!=null&&p(r,["thoughtSignature"],d);const m=h(e,["videoMetadata"]);m!=null&&p(r,["videoMetadata"],m);const g=h(e,["toolCall"]);g!=null&&p(r,["toolCall"],g);const v=h(e,["toolResponse"]);v!=null&&p(r,["toolResponse"],v);const y=h(e,["partMetadata"]);return y!=null&&p(r,["partMetadata"],y),r}function xq(e,t){const r={},n=h(e,["mediaResolution"]);n!=null&&p(r,["mediaResolution"],n);const i=h(e,["codeExecutionResult"]);i!=null&&p(r,["codeExecutionResult"],i);const a=h(e,["executableCode"]);a!=null&&p(r,["executableCode"],a);const o=h(e,["fileData"]);o!=null&&p(r,["fileData"],o);const s=h(e,["functionCall"]);s!=null&&p(r,["functionCall"],s);const l=h(e,["functionResponse"]);l!=null&&p(r,["functionResponse"],l);const u=h(e,["inlineData"]);u!=null&&p(r,["inlineData"],u);const c=h(e,["text"]);c!=null&&p(r,["text"],c);const f=h(e,["thought"]);f!=null&&p(r,["thought"],f);const d=h(e,["thoughtSignature"]);d!=null&&p(r,["thoughtSignature"],d);const m=h(e,["videoMetadata"]);if(m!=null&&p(r,["videoMetadata"],m),h(e,["toolCall"])!==void 0)throw new Error("toolCall parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");if(h(e,["toolResponse"])!==void 0)throw new Error("toolResponse parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");if(h(e,["partMetadata"])!==void 0)throw new Error("partMetadata parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return r}function _q(e,t){const r={},n=h(e,["productImage"]);return n!=null&&p(r,["image"],Ui(n)),r}function wq(e,t,r){const n={},i=h(e,["numberOfImages"]);
145t!==void 0&&i!=null&&p(t,["parameters","sampleCount"],i);const a=h(e,["baseSteps"]);t!==void 0&&a!=null&&p(t,["parameters","baseSteps"],a);const o=h(e,["outputGcsUri"]);t!==void 0&&o!=null&&p(t,["parameters","storageUri"],o);const s=h(e,["seed"]);t!==void 0&&s!=null&&p(t,["parameters","seed"],s);const l=h(e,["safetyFilterLevel"]);t!==void 0&&l!=null&&p(t,["parameters","safetySetting"],l);const u=h(e,["personGeneration"]);t!==void 0&&u!=null&&p(t,["parameters","personGeneration"],u);const c=h(e,["addWatermark"]);t!==void 0&&c!=null&&p(t,["parameters","addWatermark"],c);const f=h(e,["outputMimeType"]);t!==void 0&&f!=null&&p(t,["parameters","outputOptions","mimeType"],f);const d=h(e,["outputCompressionQuality"]);t!==void 0&&d!=null&&p(t,["parameters","outputOptions","compressionQuality"],d);const m=h(e,["enhancePrompt"]);t!==void 0&&m!=null&&p(t,["parameters","enhancePrompt"],m);const g=h(e,["labels"]);return t!==void 0&&g!=null&&p(t,["labels"],g),n}function Eq(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["source"]);a!=null&&Sq(a,n);const o=h(t,["config"]);return o!=null&&wq(o,n),n}function Tq(e,t){const r={},n=h(e,["predictions"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(a=>tm(a))),p(r,["generatedImages"],i)}return r}function Sq(e,t,r){const n={},i=h(e,["prompt"]);t!==void 0&&i!=null&&p(t,["instances[0]","prompt"],i);const a=h(e,["personImage"]);t!==void 0&&a!=null&&p(t,["instances[0]","personImage","image"],Ui(a));const o=h(e,["productImages"]);if(t!==void 0&&o!=null){let s=o;Array.isArray(s)&&(s=s.map(l=>_q(l))),p(t,["instances[0]","productImages"],s)}return n}function Aq(e,t){const r={},n=h(e,["referenceImage"]);n!=null&&p(r,["referenceImage"],Ui(n));const i=h(e,["referenceId"]);i!=null&&p(r,["referenceId"],i);const a=h(e,["referenceType"]);a!=null&&p(r,["referenceType"],a);const o=h(e,["maskImageConfig"]);o!=null&&p(r,["maskImageConfig"],gq(o));const s=h(e,["controlImageConfig"]);s!=null&&p(r,["controlImageConfig"],cW(s));const l=h(e,["styleImageConfig"]);l!=null&&p(r,["styleImageConfig"],l);const u=h(e,["subjectImageConfig"]);return u!=null&&p(r,["subjectImageConfig"],u),r}function IR(e,t){const r={},n=h(e,["safetyAttributes","categories"]);n!=null&&p(r,["categories"],n);const i=h(e,["safetyAttributes","scores"]);i!=null&&p(r,["scores"],i);const a=h(e,["contentType"]);return a!=null&&p(r,["contentType"],a),r}function NR(e,t){const r={},n=h(e,["safetyAttributes","categories"]);n!=null&&p(r,["categories"],n);const i=h(e,["safetyAttributes","scores"]);i!=null&&p(r,["scores"],i);const a=h(e,["contentType"]);return a!=null&&p(r,["contentType"],a),r}function bq(e,t){const r={},n=h(e,["category"]);if(n!=null&&p(r,["category"],n),h(e,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const i=h(e,["threshold"]);return i!=null&&p(r,["threshold"],i),r}function Cq(e,t){const r={},n=h(e,["image"]);return n!=null&&p(r,["image"],Ui(n)),r}function Pq(e,t,r){const n={},i=h(e,["mode"]);t!==void 0&&i!=null&&p(t,["parameters","mode"],i);const a=h(e,["maxPredictions"]);t!==void 0&&a!=null&&p(t,["parameters","maxPredictions"],a);const o=h(e,["confidenceThreshold"]);t!==void 0&&o!=null&&p(t,["parameters","confidenceThreshold"],o);const s=h(e,["maskDilation"]);t!==void 0&&s!=null&&p(t,["parameters","maskDilation"],s);const l=h(e,["binaryColorThreshold"]);t!==void 0&&l!=null&&p(t,["parameters","binaryColorThreshold"],l);const u=h(e,["labels"]);return t!==void 0&&u!=null&&p(t,["labels"],u),n}function kq(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["source"]);a!=null&&Nq(a,n);const o=h(t,["config"]);return o!=null&&Pq(o,n),n}function Iq(e,t){const r={},n=h(e,["predictions"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(a=>eq(a))),p(r,["generatedMasks"],i)}return r}function Nq(e,t,r){const n={},i=h(e,["prompt"]);t!==void 0&&i!=null&&p(t,["instances[0]","prompt"],i);const a=h(e,["image"]);t!==void 0&&a!=null&&p(t,["instances[0]","image"],Ui(a));const o=h(e,["scribbleImage"]);return t!==void 0&&o!=null&&p(t,["instances[0]","scribble"],Cq(o)),n}function Oq(e,t){const r={},n=h(e,["retrievalConfig"]);n!=null&&p(r,["retrievalConfig"],n);const i=h(e,["functionCallingConfig"]);i!=null&&p(r,["functionCallingConfig"],RW(i));const a=h(e,["includeServerSideToolInvocations"]);return a!=null&&p(r,["includeServerSideToolInvocations"],a),r}function Rq(e,t){const r={},n=h(e,["retrievalConfig"]);n!=null&&p(r,["retrievalConfig"],n);const i=h(e,["functionCallingConfig"]);if(i!=null&&p(r,["functionCallingConfig"],i),h(e,["includeServerSideToolInvocations"])!==void 0)throw new Error("includeServerSideToolInvocations parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return r}function Mq(e,t){const r={};if(h(e,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const n=h(e,["computerUse"]);n!=null&&p(r,["computerUse"],n);const i=h(e,["fileSearch"]);i!=null&&p(r,["fileSearch"],i);const a=h(e,["googleSearch"]);a!=null&&p(r,["googleSearch"],sq(a));const o=h(e,["googleMaps"]);o!=null&&p(r,["googleMaps"],oq(o));const s=h(e,["codeExecution"]);if(s!=null&&p(r,["codeExecution"],s),h(e,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const l=h(e,["functionDeclarations"]);if(l!=null){let d=l;Array.isArray(d)&&(d=d.map(m=>m)),p(r,["functionDeclarations"],d)}const u=h(e,["googleSearchRetrieval"]);if(u!=null&&p(r,["googleSearchRetrieval"],u),h(e,["parallelAiSearch"])!==void 0)throw new Error("parallelAiSearch parameter is not supported in Gemini API.");
145const c=h(e,["urlContext"]);c!=null&&p(r,["urlContext"],c);const f=h(e,["mcpServers"]);if(f!=null){let d=f;Array.isArray(d)&&(d=d.map(m=>m)),p(r,["mcpServers"],d)}return r}function OR(e,t){const r={},n=h(e,["retrieval"]);n!=null&&p(r,["retrieval"],n);const i=h(e,["computerUse"]);if(i!=null&&p(r,["computerUse"],i),h(e,["fileSearch"])!==void 0)throw new Error("fileSearch parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");const a=h(e,["googleSearch"]);a!=null&&p(r,["googleSearch"],a);const o=h(e,["googleMaps"]);o!=null&&p(r,["googleMaps"],o);const s=h(e,["codeExecution"]);s!=null&&p(r,["codeExecution"],s);const l=h(e,["enterpriseWebSearch"]);l!=null&&p(r,["enterpriseWebSearch"],l);const u=h(e,["functionDeclarations"]);if(u!=null){let m=u;Array.isArray(m)&&(m=m.map(g=>MW(g))),p(r,["functionDeclarations"],m)}const c=h(e,["googleSearchRetrieval"]);c!=null&&p(r,["googleSearchRetrieval"],c);const f=h(e,["parallelAiSearch"]);f!=null&&p(r,["parallelAiSearch"],f);const d=h(e,["urlContext"]);if(d!=null&&p(r,["urlContext"],d),h(e,["mcpServers"])!==void 0)throw new Error("mcpServers parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return r}function Dq(e,t){const r={},n=h(e,["baseModel"]);n!=null&&p(r,["baseModel"],n);const i=h(e,["createTime"]);i!=null&&p(r,["createTime"],i);const a=h(e,["updateTime"]);return a!=null&&p(r,["updateTime"],a),r}function Fq(e,t){const r={},n=h(e,["labels","google-vertex-llm-tuning-base-model-id"]);n!=null&&p(r,["baseModel"],n);const i=h(e,["createTime"]);i!=null&&p(r,["createTime"],i);const a=h(e,["updateTime"]);return a!=null&&p(r,["updateTime"],a),r}function Lq(e,t,r){const n={},i=h(e,["displayName"]);t!==void 0&&i!=null&&p(t,["displayName"],i);const a=h(e,["description"]);t!==void 0&&a!=null&&p(t,["description"],a);const o=h(e,["defaultCheckpointId"]);return t!==void 0&&o!=null&&p(t,["defaultCheckpointId"],o),n}function $q(e,t,r){const n={},i=h(e,["displayName"]);t!==void 0&&i!=null&&p(t,["displayName"],i);const a=h(e,["description"]);t!==void 0&&a!=null&&p(t,["description"],a);const o=h(e,["defaultCheckpointId"]);return t!==void 0&&o!=null&&p(t,["defaultCheckpointId"],o),n}function Bq(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","name"],nt(e,i));const a=h(t,["config"]);return a!=null&&Lq(a,n),n}function Uq(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["config"]);return a!=null&&$q(a,n),n}function Gq(e,t,r){const n={},i=h(e,["outputGcsUri"]);t!==void 0&&i!=null&&p(t,["parameters","storageUri"],i);const a=h(e,["safetyFilterLevel"]);t!==void 0&&a!=null&&p(t,["parameters","safetySetting"],a);const o=h(e,["personGeneration"]);t!==void 0&&o!=null&&p(t,["parameters","personGeneration"],o);const s=h(e,["includeRaiReason"]);t!==void 0&&s!=null&&p(t,["parameters","includeRaiReason"],s);const l=h(e,["outputMimeType"]);t!==void 0&&l!=null&&p(t,["parameters","outputOptions","mimeType"],l);const u=h(e,["outputCompressionQuality"]);t!==void 0&&u!=null&&p(t,["parameters","outputOptions","compressionQuality"],u);const c=h(e,["enhanceInputImage"]);t!==void 0&&c!=null&&p(t,["parameters","upscaleConfig","enhanceInputImage"],c);const f=h(e,["imagePreservationFactor"]);t!==void 0&&f!=null&&p(t,["parameters","upscaleConfig","imagePreservationFactor"],f);const d=h(e,["labels"]);t!==void 0&&d!=null&&p(t,["labels"],d);const m=h(e,["numberOfImages"]);t!==void 0&&m!=null&&p(t,["parameters","sampleCount"],m);const g=h(e,["mode"]);return t!==void 0&&g!=null&&p(t,["parameters","mode"],g),n}function Vq(e,t,r){const n={},i=h(t,["model"]);i!=null&&p(n,["_url","model"],nt(e,i));const a=h(t,["image"]);a!=null&&p(n,["instances[0]","image"],Ui(a));const o=h(t,["upscaleFactor"]);o!=null&&p(n,["parameters","upscaleConfig","upscaleFactor"],o);const s=h(t,["config"]);return s!=null&&Gq(s,n),n}function Hq(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["predictions"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>tm(o))),p(r,["generatedImages"],a)}return r}function jq(e,t){const r={},n=h(e,["uri"]);n!=null&&p(r,["uri"],n);const i=h(e,["encodedVideo"]);i!=null&&p(r,["videoBytes"],Fo(i));const a=h(e,["encoding"]);return a!=null&&p(r,["mimeType"],a),r}function zq(e,t){const r={},n=h(e,["gcsUri"]);n!=null&&p(r,["uri"],n);
145const i=h(e,["bytesBase64Encoded"]);i!=null&&p(r,["videoBytes"],Fo(i));const a=h(e,["mimeType"]);return a!=null&&p(r,["mimeType"],a),r}function Wq(e,t){const r={},n=h(e,["image"]);n!=null&&p(r,["_self"],Ui(n));const i=h(e,["maskMode"]);return i!=null&&p(r,["maskMode"],i),r}function qq(e,t){const r={},n=h(e,["image"]);n!=null&&p(r,["image"],rm(n));const i=h(e,["referenceType"]);return i!=null&&p(r,["referenceType"],i),r}function Kq(e,t){const r={},n=h(e,["image"]);n!=null&&p(r,["image"],Ui(n));const i=h(e,["referenceType"]);return i!=null&&p(r,["referenceType"],i),r}function RR(e,t){const r={},n=h(e,["uri"]);n!=null&&p(r,["uri"],n);const i=h(e,["videoBytes"]);i!=null&&p(r,["encodedVideo"],Fo(i));const a=h(e,["mimeType"]);return a!=null&&p(r,["encoding"],a),r}function MR(e,t){const r={},n=h(e,["uri"]);n!=null&&p(r,["gcsUri"],n);const i=h(e,["videoBytes"]);i!=null&&p(r,["bytesBase64Encoded"],Fo(i));const a=h(e,["mimeType"]);return a!=null&&p(r,["mimeType"],a),r}/** 146 * @license 147 * Copyright 2025 Google LLC 148 * SPDX-License-Identifier: Apache-2.0 149 */function Yq(e,t,r){const n={},i=h(t,["displayName"]);r!==void 0&&i!=null&&p(r,["displayName"],i);const a=h(t,["embeddingModel"]);return r!==void 0&&a!=null&&p(r,["embeddingModel"],nt(e,a)),n}function Xq(e,t){const r={},n=h(t,["config"]);return n!=null&&Yq(e,n,r),r}function Jq(e,t){const r={},n=h(e,["force"]);return t!==void 0&&n!=null&&p(t,["_query","force"],n),r}function Zq(e){const t={},r=h(e,["name"]);r!=null&&p(t,["_url","name"],r);const n=h(e,["config"]);return n!=null&&Jq(n,t),t}function Qq(e){const t={},r=h(e,["name"]);return r!=null&&p(t,["_url","name"],r),t}function eK(e,t){const r={},n=h(e,["customMetadata"]);if(t!==void 0&&n!=null){let a=n;Array.isArray(a)&&(a=a.map(o=>o)),p(t,["customMetadata"],a)}const i=h(e,["chunkingConfig"]);return t!==void 0&&i!=null&&p(t,["chunkingConfig"],i),r}function tK(e){const t={},r=h(e,["name"]);r!=null&&p(t,["name"],r);const n=h(e,["metadata"]);n!=null&&p(t,["metadata"],n);const i=h(e,["done"]);i!=null&&p(t,["done"],i);const a=h(e,["error"]);a!=null&&p(t,["error"],a);const o=h(e,["response"]);return o!=null&&p(t,["response"],nK(o)),t}function rK(e){const t={},r=h(e,["fileSearchStoreName"]);r!=null&&p(t,["_url","file_search_store_name"],r);const n=h(e,["fileName"]);n!=null&&p(t,["fileName"],n);const i=h(e,["config"]);return i!=null&&eK(i,t),t}function nK(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["parent"]);n!=null&&p(t,["parent"],n);const i=h(e,["documentName"]);return i!=null&&p(t,["documentName"],i),t}function iK(e,t){const r={},n=h(e,["pageSize"]);t!==void 0&&n!=null&&p(t,["_query","pageSize"],n);const i=h(e,["pageToken"]);return t!==void 0&&i!=null&&p(t,["_query","pageToken"],i),r}function aK(e){const t={},r=h(e,["config"]);return r!=null&&iK(r,t),t}function oK(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["nextPageToken"]);n!=null&&p(t,["nextPageToken"],n);const i=h(e,["fileSearchStores"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>o)),p(t,["fileSearchStores"],a)}return t}function DR(e,t){const r={},n=h(e,["mimeType"]);t!==void 0&&n!=null&&p(t,["mimeType"],n);const i=h(e,["displayName"]);t!==void 0&&i!=null&&p(t,["displayName"],i);const a=h(e,["customMetadata"]);if(t!==void 0&&a!=null){let s=a;Array.isArray(s)&&(s=s.map(l=>l)),p(t,["customMetadata"],s)}const o=h(e,["chunkingConfig"]);return t!==void 0&&o!=null&&p(t,["chunkingConfig"],o),r}function sK(e){const t={},r=h(e,["fileSearchStoreName"]);r!=null&&p(t,["_url","file_search_store_name"],r);const n=h(e,["config"]);return n!=null&&DR(n,t),t}function lK(e){const t={},r=h(e,["sdkHttpResponse"]);return r!=null&&p(t,["sdkHttpResponse"],r),t}/** 150 * @license 151 * Copyright 2025 Google LLC 152 * SPDX-License-Identifier: Apache-2.0 153 */const uK="Content-Type",cK="X-Server-Timeout",fK="User-Agent",ky="x-goog-api-client",dK="1.52.0",hK=`google-genai-sdk/${dK}`,pK="v1beta1",mK="v1beta",vK=new Set(["us","eu"]),gK=5,yK=[408,429,500,502,503,504];class xK{constructor(t){var r,n,i;this.clientOptions=Object.assign({},t),this.customBaseUrl=(r=t.httpOptions)===null||r===void 0?void 0:r.baseUrl,this.clientOptions.vertexai&&(this.clientOptions.project&&this.clientOptions.location?this.clientOptions.apiKey=void 0:this.clientOptions.apiKey&&(this.clientOptions.project=void 0,this.clientOptions.location=void 0));const a={};if(this.clientOptions.vertexai){if(!this.clientOptions.location&&!this.clientOptions.apiKey&&!this.customBaseUrl&&(this.clientOptions.location="global"),!(this.clientOptions.project&&this.clientOptions.location||this.clientOptions.apiKey)&&!this.customBaseUrl)throw new Error("Authentication is not set up. Please provide either a project and location, or an API key, or a custom base URL.");const s=t.project&&t.location||!!t.apiKey;this.customBaseUrl&&!s?(a.baseUrl=this.customBaseUrl,this.clientOptions.project=void 0,this.clientOptions.location=void 0):this.clientOptions.apiKey||this.clientOptions.location==="global"?a.baseUrl="https://aiplatform.googleapis.com/":this.clientOptions.project&&this.clientOptions.location&&vK.has(this.clientOptions.location)?a.baseUrl=`https://aiplatform.${this.clientOptions.location}.rep.googleapis.com/`:this.clientOptions.project&&this.clientOptions.location&&(a.baseUrl=`https://${this.clientOptions.location}-aiplatform.googleapis.com/`),a.apiVersion=(n=this.clientOptions.apiVersion)!==null&&n!==void 0?n:pK}else this.clientOptions.apiKey||console.warn("API key should be set when using the Gemini API."),a.apiVersion=(i=this.clientOptions.apiVersion)!==null&&i!==void 0?i:mK,a.baseUrl="https://generativelanguage.googleapis.com/";a.headers=this.getDefaultHeaders(),this.clientOptions.httpOptions=a,t.httpOptions&&(this.clientOptions.httpOptions=this.patchHttpOptions(a,t.httpOptions))}isVertexAI(){var t;return(t=this.clientOptions.vertexai)!==null&&t!==void 0?t:!1}getProject(){return this.clientOptions.project}getLocation(){return this.clientOptions.location}getCustomBaseUrl(){return this.customBaseUrl}async getAuthHeaders(){const t=new Headers;return await this.clientOptions.auth.addAuthHeaders(t),t}getApiVersion(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.apiVersion!==void 0)return this.clientOptions.httpOptions.apiVersion;throw new Error("API version is not set.")}getBaseUrl(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.baseUrl!==void 0)return this.clientOptions.httpOptions.baseUrl;throw new Error("Base URL is not set.")}getRequestUrl(){return this.getRequestUrlInternal(this.clientOptions.httpOptions)}getHeaders(){if(this.clientOptions.httpOptions&&this.clientOptions.httpOptions.headers!==void 0)return this.clientOptions.httpOptions.headers;throw new Error("Headers are not set.")}getRequestUrlInternal(t){if(!t||t.baseUrl===void 0||t.apiVersion===void 0)throw new Error("HTTP options are not correctly set.");const n=[t.baseUrl.endsWith("/")?t.baseUrl.slice(0,-1):t.baseUrl];return t.apiVersion&&t.apiVersion!==""&&n.push(t.apiVersion),n.join("/")}getBaseResourcePath(){return`projects/${this.clientOptions.project}/locations/${this.clientOptions.location}`}getApiKey(){return this.clientOptions.apiKey}
153getWebsocketBaseUrl(){const t=this.getBaseUrl(),r=new URL(t);return r.protocol=r.protocol=="http:"?"ws":"wss",r.toString()}setBaseUrl(t){if(this.clientOptions.httpOptions)this.clientOptions.httpOptions.baseUrl=t;else throw new Error("HTTP options are not correctly set.")}constructUrl(t,r,n){const i=[this.getRequestUrlInternal(r)];return n&&i.push(this.getBaseResourcePath()),t!==""&&i.push(t),new URL(`${i.join("/")}`)}shouldPrependVertexProjectPath(t,r){return!(r.baseUrl&&r.baseUrlResourceScope===Sy.COLLECTION||this.clientOptions.apiKey||!this.clientOptions.vertexai||t.path.startsWith("projects/")||t.httpMethod==="GET"&&t.path.startsWith("publishers/google/models"))}async request(t){let r=this.clientOptions.httpOptions;t.httpOptions&&(r=this.patchHttpOptions(this.clientOptions.httpOptions,t.httpOptions));const n=this.shouldPrependVertexProjectPath(t,r),i=this.constructUrl(t.path,r,n);if(t.queryParams)for(const[o,s]of Object.entries(t.queryParams))i.searchParams.append(o,String(s));let a={};if(t.httpMethod==="GET"){if(t.body&&t.body!=="{}")throw new Error("Request body should be empty for GET request, but got non empty request body")}else a.body=t.body;return a=await this.includeExtraHttpOptionsToRequestInit(a,r,i.toString(),t.abortSignal),this.unaryApiCall(i,a,t.httpMethod)}patchHttpOptions(t,r){const n=JSON.parse(JSON.stringify(t));for(const[i,a]of Object.entries(r))typeof a=="object"?n[i]=Object.assign(Object.assign({},n[i]),a):a!==void 0&&(n[i]=a);return n}async requestStream(t){let r=this.clientOptions.httpOptions;t.httpOptions&&(r=this.patchHttpOptions(this.clientOptions.httpOptions,t.httpOptions));const n=this.shouldPrependVertexProjectPath(t,r),i=this.constructUrl(t.path,r,n);(!i.searchParams.has("alt")||i.searchParams.get("alt")!=="sse")&&i.searchParams.set("alt","sse");let a={};return a.body=t.body,a=await this.includeExtraHttpOptionsToRequestInit(a,r,i.toString(),t.abortSignal),this.streamApiCall(i,a,t.httpMethod)}async includeExtraHttpOptionsToRequestInit(t,r,n,i){if(r&&r.timeout||i){const a=new AbortController,o=a.signal;if(r.timeout&&(r==null?void 0:r.timeout)>0){const s=setTimeout(()=>a.abort(),r.timeout);s&&typeof s.unref=="function"&&s.unref()}i&&i.addEventListener("abort",()=>{a.abort()}),t.signal=o}return r&&r.extraBody!==null&&_K(t,r.extraBody),t.headers=await this.getHeadersInternal(r,n),t}async unaryApiCall(t,r,n){return this.apiCall(t.toString(),Object.assign(Object.assign({},r),{method:n})).then(async i=>(await KA(i),new Eh(i))).catch(i=>{throw i instanceof Error?i:new Error(JSON.stringify(i))})}async streamApiCall(t,r,n){return this.apiCall(t.toString(),Object.assign(Object.assign({},r),{method:n})).then(async i=>(await KA(i),this.processStreamResponse(i))).catch(i=>{throw i instanceof Error?i:new Error(JSON.stringify(i))})}processStreamResponse(t){return Fi(this,arguments,function*(){var n;const i=(n=t==null?void 0:t.body)===null||n===void 0?void 0:n.getReader(),a=new TextDecoder("utf-8");if(!i)throw new Error("Response body is empty");try{let o="";const s="data:",l=[` 154 155`,"\r\r",`\r 156\r 157`];for(;;){const{done:u,value:c}=yield Ge(i.read());if(u){if(o.trim().length>0)throw new Error("Incomplete JSON segment at the end");break}const f=a.decode(c,{stream:!0});try{const g=JSON.parse(f);if("error"in g){const v=JSON.parse(JSON.stringify(g.error)),y=v.status,x=v.code,w=`got status: ${y}. ${JSON.stringify(g)}`;if(x>=400&&x<600)throw new em({message:w,status:x})}}catch(g){if(g.name==="ApiError")throw g}o+=f;let d=-1,m=0;for(;;){d=-1,m=0;for(const y of l){const x=o.indexOf(y);x!==-1&&(d===-1||x<d)&&(d=x,m=y.length)}if(d===-1)break;const g=o.substring(0,d);o=o.substring(d+m);const v=g.trim();if(v.startsWith(s)){const y=v.substring(s.length).trim();try{const x=new Response(y,{headers:t==null?void 0:t.headers,status:t==null?void 0:t.status,statusText:t==null?void 0:t.statusText});yield yield Ge(new Eh(x))}catch(x){throw new Error(`exception parsing stream chunk ${y}. ${x}`)}}}}}finally{i.releaseLock()}})}async apiCall(t,r){var n;if(!this.clientOptions.httpOptions||!this.clientOptions.httpOptions.retryOptions)return fetch(t,r);const i=this.clientOptions.httpOptions.retryOptions;return qV(async()=>{const o=await fetch(t,r);if(o.ok)return o;throw yK.includes(o.status)?new Error(`Retryable HTTP Error: ${o.statusText}`):new zV(`Non-retryable exception ${o.statusText} sending request`)},{retries:((n=i.attempts)!==null&&n!==void 0?n:gK)-1})}getDefaultHeaders(){const t={},r=hK+" "+this.clientOptions.userAgentExtra;return t[fK]=r,t[ky]=r,t[uK]="application/json",t}async getHeadersInternal(t,r){const n=new Headers;if(t&&t.headers){for(const[i,a]of Object.entries(t.headers))n.append(i,a);t.timeout&&t.timeout>0&&n.append(cK,String(Math.ceil(t.timeout/1e3)))}return await this.clientOptions.auth.addAuthHeaders(n,r),n}getFileName(t){var r;let n="";return typeof t=="string"&&(n=t.replace(/[/\\]+$/,""),n=(r=n.split(/[/\\]/).pop())!==null&&r!==void 0?r:""),n}async uploadFile(t,r){var n;const i={};r!=null&&(i.mimeType=r.mimeType,i.name=r.name,i.displayName=r.displayName),i.name&&!i.name.startsWith("files/")&&(i.name=`files/${i.name}`);const a=this.clientOptions.uploader,o=await a.stat(t);i.sizeBytes=String(o.size);const s=(n=r==null?void 0:r.mimeType)!==null&&n!==void 0?n:o.type;if(s===void 0||s==="")throw new Error("Can not determine mimeType. Please provide mimeType in the config.");i.mimeType=s;const l={file:i},u=this.getFileName(t),c=Ae("upload/v1beta/files",l._url),f=await this.fetchUploadUrl(c,i.sizeBytes,i.mimeType,u,l,r==null?void 0:r.httpOptions);return a.upload(t,f,this)}async uploadFileToFileSearchStore(t,r,n){var i;const a=this.clientOptions.uploader,o=await a.stat(r),s=String(o.size),l=(i=n==null?void 0:n.mimeType)!==null&&i!==void 0?i:o.type;if(l===void 0||l==="")throw new Error("Can not determine mimeType. Please provide mimeType in the config.");const u=`upload/v1beta/${t}:uploadToFileSearchStore`,c=this.getFileName(r),f={};n!=null&&DR(n,f);const d=await this.fetchUploadUrl(u,s,l,c,f,n==null?void 0:n.httpOptions);return a.uploadToFileSearchStore(r,d,this)}async downloadFile(t){await this.clientOptions.downloader.download(t,this)}async fetchUploadUrl(t,r,n,i,a,o){var s;let l={};o?l=o:l={apiVersion:"",headers:Object.assign({"Content-Type":"application/json","X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${r}`,"X-Goog-Upload-Header-Content-Type":`${n}`},i?{"X-Goog-Upload-File-Name":i}:{})};const u=await this.request({path:t,body:JSON.stringify(a),httpMethod:"POST",httpOptions:l});if(!u||!(u!=null&&u.headers))throw new Error("Server did not return an HttpResponse or the returned HttpResponse did not have headers.");const c=(s=u==null?void 0:u.headers)===null||s===void 0?void 0:s["x-goog-upload-url"];if(c===void 0)throw new Error("Failed to get upload url. Server did not return the x-google-upload-url in the headers");return c}}async function KA(e){var t;if(e===void 0)throw new Error("response is undefined");if(!e.ok){const r=e.status;let n;!((t=e.headers.get("content-type"))===null||t===void 0)&&t.includes("application/json")?n=await e.json():n={error:{message:await e.text(),code:e.status,status:e.statusText}};const i=JSON.stringify(n);throw r>=400&&r<600?new em({message:i,status:r}):new Error(i)}}function _K(e,t){if(!t||Object.keys(t).length===0)return;if(e.body instanceof Blob){console.warn("includeExtraBodyToRequestInit: extraBody provided but current request body is a Blob. extraBody will be ignored as merging is not supported for Blob bodies.");return}let r={};
157if(typeof e.body=="string"&&e.body.length>0)try{const a=JSON.parse(e.body);if(typeof a=="object"&&a!==null&&!Array.isArray(a))r=a;else{console.warn("includeExtraBodyToRequestInit: Original request body is valid JSON but not a non-array object. Skip applying extraBody to the request body.");return}}catch{console.warn("includeExtraBodyToRequestInit: Original request body is not valid JSON. Skip applying extraBody to the request body.");return}function n(a,o){const s=Object.assign({},a);for(const l in o)if(Object.prototype.hasOwnProperty.call(o,l)){const u=o[l],c=s[l];u&&typeof u=="object"&&!Array.isArray(u)&&c&&typeof c=="object"&&!Array.isArray(c)?s[l]=n(c,u):(c&&u&&typeof c!=typeof u&&console.warn(`includeExtraBodyToRequestInit:deepMerge: Type mismatch for key "${l}". Original type: ${typeof c}, New type: ${typeof u}. Overwriting.`),s[l]=u)}return s}const i=n(r,t);e.body=JSON.stringify(i)}/** 158 * @license 159 * Copyright 2025 Google LLC 160 * SPDX-License-Identifier: Apache-2.0 161 */const wK="mcp_used/unknown";let EK=!1;function FR(e){for(const t of e)if(TK(t)||typeof t=="object"&&"inputSchema"in t)return!0;return EK}function LR(e){var t;const r=(t=e[ky])!==null&&t!==void 0?t:"";e[ky]=(r+` ${wK}`).trimStart()}function TK(e){return e!==null&&typeof e=="object"&&e instanceof V_}function SK(e){return Fi(this,arguments,function*(r,n=100){let i,a=0;for(;a<n;){const o=yield Ge(r.listTools({cursor:i}));for(const s of o.tools)yield yield Ge(s),a++;if(!o.nextCursor)break;i=o.nextCursor}})}class V_{constructor(t=[],r){this.mcpTools=[],this.functionNameToMcpClient={},this.mcpClients=t,this.config=r}static create(t,r){return new V_(t,r)}async initialize(){var t,r,n,i;if(this.mcpTools.length>0)return;const a={},o=[];for(const c of this.mcpClients)try{for(var s=!0,l=(r=void 0,Li(SK(c))),u;u=await l.next(),t=u.done,!t;s=!0){i=u.value,s=!1;const f=i;o.push(f);const d=f.name;if(a[d])throw new Error(`Duplicate function name ${d} found in MCP tools. Please ensure function names are unique.`);a[d]=c}}catch(f){r={error:f}}finally{try{!s&&!t&&(n=l.return)&&await n.call(l)}finally{if(r)throw r.error}}this.mcpTools=o,this.functionNameToMcpClient=a}async tool(){return await this.initialize(),FH(this.mcpTools,this.config)}async callTool(t){await this.initialize();const r=[];for(const n of t)if(n.name in this.functionNameToMcpClient){const i=this.functionNameToMcpClient[n.name];let a;this.config.timeout&&(a={timeout:this.config.timeout});const o=await i.callTool({name:n.name,arguments:n.args},void 0,a);r.push({functionResponse:{name:n.name,response:o.isError?{error:o}:o}})}return r}}/** 162 * @license 163 * Copyright 2025 Google LLC 164 * SPDX-License-Identifier: Apache-2.0 165 */async function AK(e,t,r){const n=new PH;let i;r.data instanceof Blob?i=JSON.parse(await r.data.text()):i=JSON.parse(r.data),Object.assign(n,i),t(n)}class bK{constructor(t,r,n){this.apiClient=t,this.auth=r,this.webSocketFactory=n}async connect(t){var r,n;if(this.apiClient.isVertexAI())throw new Error("Live music is not supported for Vertex AI.");console.warn("Live music generation is experimental and may change in future versions.");const i=this.apiClient.getWebsocketBaseUrl(),a=this.apiClient.getApiVersion(),o=kK(this.apiClient.getDefaultHeaders()),s=this.apiClient.getApiKey(),l=`${i}/ws/google.ai.generativelanguage.${a}.GenerativeService.BidiGenerateMusic?key=${s}`;let u=()=>{};const c=new Promise(_=>{u=_}),f=t.callbacks,d=function(){u({})},m=this.apiClient,g={onopen:d,onmessage:_=>{AK(m,f.onmessage,_)},onerror:(r=f==null?void 0:f.onerror)!==null&&r!==void 0?r:function(_){},onclose:(n=f==null?void 0:f.onclose)!==null&&n!==void 0?n:function(_){}},v=this.webSocketFactory.create(l,PK(o),g);v.connect(),await c;const w={setup:{model:nt(this.apiClient,t.model)}};return v.send(JSON.stringify(w)),new CK(v,this.apiClient)}}class CK{constructor(t,r){this.conn=t,this.apiClient=r}async setWeightedPrompts(t){if(!t.weightedPrompts||Object.keys(t.weightedPrompts).length===0)throw new Error("Weighted prompts must be set and contain at least one entry.");const r=jz(t);this.conn.send(JSON.stringify({clientContent:r}))}async setMusicGenerationConfig(t){t.musicGenerationConfig||(t.musicGenerationConfig={});const r=Hz(t);this.conn.send(JSON.stringify(r))}sendPlaybackControl(t){const r={playbackControl:t};this.conn.send(JSON.stringify(r))}play(){this.sendPlaybackControl(pl.PLAY)}pause(){this.sendPlaybackControl(pl.PAUSE)}stop(){this.sendPlaybackControl(pl.STOP)}resetContext(){this.sendPlaybackControl(pl.RESET_CONTEXT)}
165close(){this.conn.close()}}function PK(e){const t={};return e.forEach((r,n)=>{t[n]=r}),t}function kK(e){const t=new Headers;for(const[r,n]of Object.entries(e))t.append(r,n);return t}/** 166 * @license 167 * Copyright 2025 Google LLC 168 * SPDX-License-Identifier: Apache-2.0 169 */const IK="FunctionResponse request must have an `id` field from the response of a ToolCall.FunctionalCalls in Google AI.";async function NK(e,t,r){const n=new CH;let i;r.data instanceof Blob?i=await r.data.text():r.data instanceof ArrayBuffer?i=new TextDecoder().decode(r.data):i=r.data;const a=JSON.parse(i);if(e.isVertexAI()){const o=qz(a);Object.assign(n,o)}else Object.assign(n,a);t(n)}class OK{constructor(t,r,n){this.apiClient=t,this.auth=r,this.webSocketFactory=n,this.music=new bK(this.apiClient,this.auth,this.webSocketFactory)}async connect(t){var r,n,i,a,o,s;if(t.config&&t.config.httpOptions)throw new Error("The Live module does not support httpOptions at request-level in LiveConnectConfig yet. Please use the client-level httpOptions configuration instead.");const l=this.apiClient.getWebsocketBaseUrl(),u=this.apiClient.getApiVersion();let c;const f=this.apiClient.getHeaders();t.config&&t.config.tools&&FR(t.config.tools)&&LR(f);const d=FK(f);if(this.apiClient.isVertexAI()){const C=this.apiClient.getProject(),N=this.apiClient.getLocation(),M=this.apiClient.getApiKey(),k=!!C&&!!N||!!M;this.apiClient.getCustomBaseUrl()&&!k?c=l:(c=`${l}/ws/google.cloud.aiplatform.${u}.LlmBidiService/BidiGenerateContent`,await this.auth.addAuthHeaders(d,c))}else{const C=this.apiClient.getApiKey();let N="BidiGenerateContent",M="key";C!=null&&C.startsWith("auth_tokens/")&&(console.warn("Warning: Ephemeral token support is experimental and may change in future versions."),u!=="v1alpha"&&console.warn("Warning: The SDK's ephemeral token support is in v1alpha only. Please use const ai = new GoogleGenAI({apiKey: token.name, httpOptions: { apiVersion: 'v1alpha' }}); before session connection."),N="BidiGenerateContentConstrained",M="access_token"),c=`${l}/ws/google.ai.generativelanguage.${u}.GenerativeService.${N}?${M}=${C}`}let m=()=>{};const g=new Promise(C=>{m=C}),v=t.callbacks,y=function(){var C;(C=v==null?void 0:v.onopen)===null||C===void 0||C.call(v),m({})},x=this.apiClient,w={onopen:y,onmessage:C=>{NK(x,v.onmessage,C)},onerror:(r=v==null?void 0:v.onerror)!==null&&r!==void 0?r:function(C){},onclose:(n=v==null?void 0:v.onclose)!==null&&n!==void 0?n:function(C){}},_=this.webSocketFactory.create(c,DK(d),w);_.connect(),await g;let S=nt(this.apiClient,t.model);if(this.apiClient.isVertexAI()&&S.startsWith("publishers/")){const C=this.apiClient.getProject(),N=this.apiClient.getLocation();C&&N&&(S=`projects/${C}/locations/${N}/`+S)}let T={};this.apiClient.isVertexAI()&&((i=t.config)===null||i===void 0?void 0:i.responseModalities)===void 0&&(t.config===void 0?t.config={responseModalities:[_h.AUDIO]}:t.config.responseModalities=[_h.AUDIO]),!((a=t.config)===null||a===void 0)&&a.generationConfig&&console.warn("Setting `LiveConnectConfig.generation_config` is deprecated, please set the fields on `LiveConnectConfig` directly. This will become an error in a future version (not before Q3 2025).");const E=(s=(o=t.config)===null||o===void 0?void 0:o.tools)!==null&&s!==void 0?s:[],A=[];for(const C of E)if(this.isCallableTool(C)){const N=C;A.push(await N.tool())}else A.push(C);A.length>0&&(t.config.tools=A);const P={model:S,config:t.config,callbacks:t.callbacks};return this.apiClient.isVertexAI()?T=Vz(this.apiClient,P):T=Gz(this.apiClient,P),delete T.config,_.send(JSON.stringify(T)),new MK(_,this.apiClient)}isCallableTool(t){return"callTool"in t&&typeof t.callTool=="function"}}const RK={turnComplete:!0};class MK{constructor(t,r){this.conn=t,this.apiClient=r}tLiveClientContent(t,r){if(r.turns!==null&&r.turns!==void 0){let n=[];try{n=An(r.turns),t.isVertexAI()||(n=n.map(i=>gd(i)))}catch{throw new Error(`Failed to parse client content "turns", type: '${typeof r.turns}'`)}return{clientContent:{turns:n,turnComplete:r.turnComplete}}}return{clientContent:{turnComplete:r.turnComplete}}}tLiveClienttToolResponse(t,r){let n=[];if(r.functionResponses==null)throw new Error("functionResponses is required.");
169if(Array.isArray(r.functionResponses)?n=r.functionResponses:n=[r.functionResponses],n.length===0)throw new Error("functionResponses is required.");for(const a of n){if(typeof a!="object"||a===null||!("name"in a)||!("response"in a))throw new Error(`Could not parse function response, type '${typeof a}'.`);if(!t.isVertexAI()&&!("id"in a))throw new Error(IK)}return{toolResponse:{functionResponses:n}}}sendClientContent(t){t=Object.assign(Object.assign({},RK),t);const r=this.tLiveClientContent(this.apiClient,t);this.conn.send(JSON.stringify(r))}sendRealtimeInput(t){let r={};this.apiClient.isVertexAI()?r={realtimeInput:Wz(t)}:r={realtimeInput:zz(t)},this.conn.send(JSON.stringify(r))}sendToolResponse(t){if(t.functionResponses==null)throw new Error("Tool response parameters are required.");const r=this.tLiveClienttToolResponse(this.apiClient,t);this.conn.send(JSON.stringify(r))}close(){this.conn.close()}}function DK(e){const t={};return e.forEach((r,n)=>{t[n]=r}),t}function FK(e){const t=new Headers;for(const[r,n]of Object.entries(e))t.append(r,n);return t}/** 170 * @license 171 * Copyright 2025 Google LLC 172 * SPDX-License-Identifier: Apache-2.0 173 */const YA=10;function XA(e){var t,r,n;if(!((t=e==null?void 0:e.automaticFunctionCalling)===null||t===void 0)&&t.disable)return!0;let i=!1;for(const o of(r=e==null?void 0:e.tools)!==null&&r!==void 0?r:[])if(Nl(o)){i=!0;break}if(!i)return!0;const a=(n=e==null?void 0:e.automaticFunctionCalling)===null||n===void 0?void 0:n.maximumRemoteCalls;return a&&(a<0||!Number.isInteger(a))||a==0?(console.warn("Invalid maximumRemoteCalls value provided for automatic function calling. Disabled automatic function calling. Please provide a valid integer value greater than 0. maximumRemoteCalls provided:",a),!0):!1}function Nl(e){return"callTool"in e&&typeof e.callTool=="function"}function LK(e){var t,r,n;return(n=(r=(t=e.config)===null||t===void 0?void 0:t.tools)===null||r===void 0?void 0:r.some(i=>Nl(i)))!==null&&n!==void 0?n:!1}function JA(e){var t;const r=[];return!((t=e==null?void 0:e.config)===null||t===void 0)&&t.tools&&e.config.tools.forEach((n,i)=>{if(Nl(n))return;const a=n;a.functionDeclarations&&a.functionDeclarations.length>0&&r.push(i)}),r}function ZA(e){var t;return!(!((t=e==null?void 0:e.automaticFunctionCalling)===null||t===void 0)&&t.ignoreCallHistory)}/** 174 * @license 175 * Copyright 2025 Google LLC 176 * SPDX-License-Identifier: Apache-2.0 177 */class $K extends Ba{constructor(t){super(),this.apiClient=t,this.embedContent=async r=>{if(!this.apiClient.isVertexAI())return r.model.includes("gemini-embedding-2")&&(r.contents=An(r.contents)),await this.embedContentInternal(r);if(r.model.includes("gemini")&&r.model!=="gemini-embedding-001"||r.model.includes("maas")){const i=An(r.contents);if(i.length>1)throw new Error("The embedContent API for this model only supports one content at a time.");const a=Object.assign(Object.assign({},r),{content:i[0],embeddingApiType:wh.EMBED_CONTENT});return await this.embedContentInternal(a)}else{const i=Object.assign(Object.assign({},r),{embeddingApiType:wh.PREDICT});return await this.embedContentInternal(i)}},this.generateContent=async r=>{var n,i,a,o,s;const l=await this.processParamsMaybeAddMcpUsage(r);if(this.maybeMoveToResponseJsonSchem(r),!LK(r)||XA(r.config))return await this.generateContentInternal(l);const u=JA(r);if(u.length>0){const v=u.map(y=>`tools[${y}]`).join(", ");throw new Error(`Automatic function calling with CallableTools (or MCP objects) and basic FunctionDeclarations is not yet supported. Incompatible tools found at ${v}.`)}let c,f;const d=An(l.contents),m=(a=(i=(n=l.config)===null||n===void 0?void 0:n.automaticFunctionCalling)===null||i===void 0?void 0:i.maximumRemoteCalls)!==null&&a!==void 0?a:YA;let g=0;for(;g<m&&(c=await this.generateContentInternal(l),!(!c.functionCalls||c.functionCalls.length===0));){const v=c.candidates[0].content,y=[];for(const x of(s=(o=r.config)===null||o===void 0?void 0:o.tools)!==null&&s!==void 0?s:[])if(Nl(x)){const _=await x.callTool(c.functionCalls);y.push(..._)}g++,f={role:"user",parts:y},l.contents=An(l.contents),l.contents.push(v),l.contents.push(f),ZA(l.config)&&(d.push(v),d.push(f))}return ZA(l.config)&&(c.automaticFunctionCallingHistory=d),c},this.generateContentStream=async r=>{var n,i,a,o,s;if(this.maybeMoveToResponseJsonSchem(r),XA(r.config)){const f=await this.processParamsMaybeAddMcpUsage(r);return await this.generateContentStreamInternal(f)}const l=JA(r);if(l.length>0){const f=l.map(d=>`tools[${d}]`).join(", ");throw new Error(`Incompatible tools found at ${f}. Automatic function calling with CallableTools (or MCP objects) and basic FunctionDeclarations" is not yet supported.`)}const u=(a=(i=(n=r==null?void 0:r.config)===null||n===void 0?void 0:n.toolConfig)===null||i===void 0?void 0:i.functionCallingConfig)===null||a===void 0?void 0:a.streamFunctionCallArguments,c=(s=(o=r==null?void 0:r.config)===null||o===void 0?void 0:o.automaticFunctionCalling)===null||s===void 0?void 0:s.disable;if(u&&!c)throw new Error("Running in streaming mode with 'streamFunctionCallArguments' enabled, this feature is not compatible with automatic function calling (AFC). Please set 'config.automaticFunctionCalling.disable' to true to disable AFC or leave 'config.toolConfig.functionCallingConfig.streamFunctionCallArguments' to be undefined or set to false to disable streaming function call arguments feature.");return await this.processAfcStream(r)},this.generateImages=async r=>await this.generateImagesInternal(r).then(n=>{var i;let a;const o=[];if(n!=null&&n.generatedImages)for(const l of n.generatedImages)l&&(l!=null&&l.safetyAttributes)&&((i=l==null?void 0:l.safetyAttributes)===null||i===void 0?void 0:i.contentType)==="Positive Prompt"?a=l==null?void 0:l.safetyAttributes:o.push(l);let s;return a?s={generatedImages:o,positivePromptSafetyAttributes:a,sdkHttpResponse:n.sdkHttpResponse}:s={generatedImages:o,sdkHttpResponse:n.sdkHttpResponse},s}),this.list=async r=>{var n;const o={config:Object.assign(Object.assign({},{queryBase:!0}),r==null?void 0:r.config)};if(this.apiClient.isVertexAI()&&!o.config.queryBase){if(!((n=o.config)===null||n===void 0)&&n.filter)throw new Error("Filtering tuned models list for Gemini Enterprise Agent Platform (previously known as Vertex AI) is not currently supported");o.config.filter="labels.tune-type:*"}return new Bs(Ra.PAGED_ITEM_MODELS,s=>this.listInternal(s),await this.listInternal(o),o)},this.editImage=async r=>{const n={model:r.model,prompt:r.prompt,referenceImages:[],config:r.config};return r.referenceImages&&r.referenceImages&&(n.referenceImages=r.referenceImages.map(i=>i.toReferenceImageAPI())),await this.editImageInternal(n)},this.upscaleImage=async r=>{let n={numberOfImages:1,mode:"upscale"};r.config&&(n=Object.assign(Object.assign({},n),r.config));const i={model:r.model,image:r.image,upscaleFactor:r.upscaleFactor,config:n};return await this.upscaleImageInternal(i)},this.generateVideos=async r=>{var n,i,a,o,s,l;if((r.prompt||r.image||r.video)&&r.source)throw new Error("Source and prompt/image/video are mutually exclusive. Please only use source.");return this.apiClient.isVertexAI()||(!((n=r.video)===null||n===void 0)&&n.uri&&(!((i=r.video)===null||i===void 0)&&i.videoBytes)?r.video={uri:r.video.uri,mimeType:r.video.mimeType}:!((o=(a=r.source)===null||a===void 0?void 0:a.video)===null||o===void 0)&&o.uri&&
177(!((l=(s=r.source)===null||s===void 0?void 0:s.video)===null||l===void 0)&&l.videoBytes)&&(r.source.video={uri:r.source.video.uri,mimeType:r.source.video.mimeType})),await this.generateVideosInternal(r)}}maybeMoveToResponseJsonSchem(t){t.config&&t.config.responseSchema&&(t.config.responseJsonSchema||Object.keys(t.config.responseSchema).includes("$schema")&&(t.config.responseJsonSchema=t.config.responseSchema,delete t.config.responseSchema))}async processParamsMaybeAddMcpUsage(t){var r,n,i;const a=(r=t.config)===null||r===void 0?void 0:r.tools;if(!a)return t;const o=await Promise.all(a.map(async l=>Nl(l)?await l.tool():l)),s={model:t.model,contents:t.contents,config:Object.assign(Object.assign({},t.config),{tools:o})};if(s.config.tools=o,t.config&&t.config.tools&&FR(t.config.tools)){const l=(i=(n=t.config.httpOptions)===null||n===void 0?void 0:n.headers)!==null&&i!==void 0?i:{};let u=Object.assign({},l);Object.keys(u).length===0&&(u=this.apiClient.getDefaultHeaders()),LR(u),s.config.httpOptions=Object.assign(Object.assign({},t.config.httpOptions),{headers:u})}return s}async initAfcToolsMap(t){var r,n,i;const a=new Map;for(const o of(n=(r=t.config)===null||r===void 0?void 0:r.tools)!==null&&n!==void 0?n:[])if(Nl(o)){const s=o,l=await s.tool();for(const u of(i=l.functionDeclarations)!==null&&i!==void 0?i:[]){if(!u.name)throw new Error("Function declaration name is required.");if(a.has(u.name))throw new Error(`Duplicate tool declaration name: ${u.name}`);a.set(u.name,s)}}return a}async processAfcStream(t){var r,n,i;const a=(i=(n=(r=t.config)===null||r===void 0?void 0:r.automaticFunctionCalling)===null||n===void 0?void 0:n.maximumRemoteCalls)!==null&&i!==void 0?i:YA;let o=!1,s=0;const l=await this.initAfcToolsMap(t);return function(u,c,f){return Fi(this,arguments,function*(){for(var d,m,g,v,y,x;s<a;){o&&(s++,o=!1);const T=yield Ge(u.processParamsMaybeAddMcpUsage(f)),E=yield Ge(u.generateContentStreamInternal(T)),A=[],P=[];try{for(var w=!0,_=(m=void 0,Li(E)),S;S=yield Ge(_.next()),d=S.done,!d;w=!0){v=S.value,w=!1;const C=v;if(yield yield Ge(C),C.candidates&&(!((y=C.candidates[0])===null||y===void 0)&&y.content)){P.push(C.candidates[0].content);for(const N of(x=C.candidates[0].content.parts)!==null&&x!==void 0?x:[])if(s<a&&N.functionCall){if(!N.functionCall.name)throw new Error("Function call name was not returned by the model.");if(c.has(N.functionCall.name)){const M=yield Ge(c.get(N.functionCall.name).callTool([N.functionCall]));A.push(...M)}else throw new Error(`Automatic function calling was requested, but not all the tools the model used implement the CallableTool interface. Available tools: ${c.keys()}, mising tool: ${N.functionCall.name}`)}}}}catch(C){m={error:C}}finally{try{!w&&!d&&(g=_.return)&&(yield Ge(g.call(_)))}finally{if(m)throw m.error}}if(A.length>0){o=!0;const C=new tc;C.candidates=[{content:{role:"user",parts:A}}],yield yield Ge(C);const N=[];N.push(...P),N.push({role:"user",parts:A});const M=An(f.contents).concat(N);f.contents=M}else break}})}(this,l,t)}async generateContentInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=zA(this.apiClient,t);return s=Ae("{model}:generateContent",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=qA(c),d=new tc;return Object.assign(d,f),d})}else{const u=jA(this.apiClient,t);return s=Ae("{model}:generateContent",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=WA(c),d=new tc;return Object.assign(d,f),d})}}async generateContentStreamInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=zA(this.apiClient,t);return s=Ae("{model}:streamGenerateContent?alt=sse",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.requestStream({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}),o.then(function(f){return Fi(this,arguments,function*(){var d,m,g,v;try{for(var y=!0,x=Li(f),w;w=yield Ge(x.next()),d=w.done,!d;y=!0){v=w.value,y=!1;const _=v,S=qA(yield Ge(_.json()),t);S.sdkHttpResponse={headers:_.headers};const T=new tc;Object.assign(T,S),yield yield Ge(T)}}catch(_){m={error:_}}finally{try{!y&&!d&&(g=x.return)&&(yield Ge(g.call(x)))}finally{if(m)throw m.error}}})})}else{const u=jA(this.apiClient,t);return s=Ae("{model}:streamGenerateContent?alt=sse",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.requestStream({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}),o.then(function(f){return Fi(this,arguments,function*(){var d,m,g,v;try{for(var y=!0,x=Li(f),w;w=yield Ge(x.next()),d=w.done,!d;y=!0){v=w.value,y=!1;const _=v,S=WA(yield Ge(_.json()),t);S.sdkHttpResponse={headers:_.headers};const T=new tc;Object.assign(T,S),yield yield Ge(T)}}catch(_){m={error:_}}finally{try{!y&&!d&&(g=x.return)&&(yield Ge(g.call(x)))}finally{if(m)throw m.error}}})})}}async embedContentInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=CW(this.apiClient,t,t),c=$H(t.model)?"{model}:embedContent":"{model}:predict";return s=Ae(c,u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}).then(f=>f.json().then(d=>{const m=d;return m.sdkHttpResponse={headers:f.headers},m})),o.then(f=>{const d=kW(f,t),m=new bA;return Object.assign(m,d),m})}else{const u=bW(this.apiClient,t);return s=Ae("{model}:batchEmbedContents",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=PW(c),d=new bA;return Object.assign(d,f),d})}}async generateImagesInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=UW(this.apiClient,t);return s=Ae("{model}:predict",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=VW(c),d=new CA;return Object.assign(d,f),d})}else{const u=BW(this.apiClient,t);return s=Ae("{model}:predict",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=GW(c),d=new CA;return Object.assign(d,f),d})}}async editImageInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI()){const s=EW(this.apiClient,t);return a=Ae("{model}:predict",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}).then(l=>l.json().then(u=>{const c=u;return c.sdkHttpResponse={headers:l.headers},c})),i.then(l=>{const u=TW(l),c=new pH;return Object.assign(c,u),c})}else throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).")}async upscaleImageInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI()){const s=Vq(this.apiClient,t);return a=Ae("{model}:predict",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json().then(u=>{const c=u;return c.sdkHttpResponse={headers:l.headers},c})),i.then(l=>{const u=Hq(l),c=new mH;return Object.assign(c,u),c})}else throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).")}async recontextImage(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI()){const s=Eq(this.apiClient,t);return a=Ae("{model}:predict",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}).then(l=>l.json()),i.then(l=>{const u=Tq(l),c=new vH;return Object.assign(c,u),c})}else throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).")}async segmentImage(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI()){const s=kq(this.apiClient,t);return a=Ae("{model}:predict",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json()),i.then(l=>{const u=Iq(l),c=new gH;return Object.assign(c,u),c})}else throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).")}async get(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=aq(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}).then(c=>c.json()),o.then(c=>Py(c))}else{const u=iq(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json()),o.then(c=>Cy(c))}}async listInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=pq(this.apiClient,t);return s=Ae("{models_url}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=vq(c),d=new PA;return Object.assign(d,f),d})}else{const u=hq(this.apiClient,t);return s=Ae("{models_url}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=mq(c),d=new PA;return Object.assign(d,f),d})}}async update(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=Uq(this.apiClient,t);return s=Ae("{model}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"PATCH",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}).then(c=>c.json()),o.then(c=>Py(c))}else{const u=Bq(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"PATCH",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json()),o.then(c=>Cy(c))}}async delete(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=yW(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"DELETE",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=_W(c),d=new kA;return Object.assign(d,f),d})}else{const u=gW(this.apiClient,t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"DELETE",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=xW(c),d=new kA;return Object.assign(d,f),d})}}async countTokens(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=pW(this.apiClient,t);return s=Ae("{model}:countTokens",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=vW(c),d=new IA;return Object.assign(d,f),d})}else{const u=hW(this.apiClient,t);return s=Ae("{model}:countTokens",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=mW(c),d=new IA;return Object.assign(d,f),d})}}async computeTokens(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI()){const s=oW(this.apiClient,t);return a=Ae("{model}:computeTokens",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
177Signal}).then(l=>l.json().then(u=>{const c=u;return c.sdkHttpResponse={headers:l.headers},c})),i.then(l=>{const u=sW(l),c=new yH;return Object.assign(c,u),c})}else throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).")}async generateVideosInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=KW(this.apiClient,t);return s=Ae("{model}:predictLongRunning",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(c=>c.json()),o.then(c=>{const f=WW(c),d=new Th;return Object.assign(d,f),d})}else{const u=qW(this.apiClient,t);return s=Ae("{model}:predictLongRunning",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json()),o.then(c=>{const f=zW(c),d=new Th;return Object.assign(d,f),d})}}}/** 178 * @license 179 * Copyright 2025 Google LLC 180 * SPDX-License-Identifier: Apache-2.0 181 */class BK extends Ba{constructor(t){super(),this.apiClient=t}async getVideosOperation(t){const r=t.operation,n=t.config;if(r.name===void 0||r.name==="")throw new Error("Operation name is required.");if(this.apiClient.isVertexAI()){const i=r.name.split("/operations/")[0];let a;n&&"httpOptions"in n&&(a=n.httpOptions);const o=await this.fetchPredictVideosOperationInternal({operationName:r.name,resourceName:i,config:{httpOptions:a}});return r._fromAPIResponse({apiResponse:o,_isVertexAI:!0})}else{const i=await this.getVideosOperationInternal({operationName:r.name,config:n});return r._fromAPIResponse({apiResponse:i,_isVertexAI:!1})}}async get(t){const r=t.operation,n=t.config;if(r.name===void 0||r.name==="")throw new Error("Operation name is required.");if(this.apiClient.isVertexAI()){const i=r.name.split("/operations/")[0];let a;n&&"httpOptions"in n&&(a=n.httpOptions);const o=await this.fetchPredictVideosOperationInternal({operationName:r.name,resourceName:i,config:{httpOptions:a}});return r._fromAPIResponse({apiResponse:o,_isVertexAI:!0})}else{const i=await this.getVideosOperationInternal({operationName:r.name,config:n});return r._fromAPIResponse({apiResponse:i,_isVertexAI:!1})}}async getVideosOperationInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=lH(t);return s=Ae("{operationName}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
181Signal}).then(c=>c.json()),o}else{const u=sH(t);return s=Ae("{operationName}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json()),o}}async fetchPredictVideosOperationInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI()){const s=eH(t);return a=Ae("{resourceName}:fetchPredictOperation",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json()),i}else throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).")}}/** 182 * @license 183 * Copyright 2025 Google LLC 184 * SPDX-License-Identifier: Apache-2.0 185 */function QA(e){const t={};if(h(e,["languageCodes"])!==void 0)throw new Error("languageCodes parameter is not supported in Gemini API.");return t}function UK(e){const t={},r=h(e,["apiKey"]);if(r!=null&&p(t,["apiKey"],r),h(e,["apiKeyConfig"])!==void 0)throw new Error("apiKeyConfig parameter is not supported in Gemini API.");if(h(e,["authType"])!==void 0)throw new Error("authType parameter is not supported in Gemini API.");if(h(e,["googleServiceAccountConfig"])!==void 0)throw new Error("googleServiceAccountConfig parameter is not supported in Gemini API.");if(h(e,["httpBasicAuthConfig"])!==void 0)throw new Error("httpBasicAuthConfig parameter is not supported in Gemini API.");if(h(e,["oauthConfig"])!==void 0)throw new Error("oauthConfig parameter is not supported in Gemini API.");if(h(e,["oidcConfig"])!==void 0)throw new Error("oidcConfig parameter is not supported in Gemini API.");return t}function GK(e){const t={},r=h(e,["data"]);if(r!=null&&p(t,["data"],r),h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const n=h(e,["mimeType"]);return n!=null&&p(t,["mimeType"],n),t}function VK(e){const t={},r=h(e,["parts"]);if(r!=null){let i=r;Array.isArray(i)&&(i=i.map(a=>JK(a))),p(t,["parts"],i)}const n=h(e,["role"]);return n!=null&&p(t,["role"],n),t}function HK(e,t,r){const n={},i=h(t,["expireTime"]);r!==void 0&&i!=null&&p(r,["expireTime"],i);const a=h(t,["newSessionExpireTime"]);r!==void 0&&a!=null&&p(r,["newSessionExpireTime"],a);const o=h(t,["uses"]);r!==void 0&&o!=null&&p(r,["uses"],o);const s=h(t,["liveConnectConstraints"]);r!==void 0&&s!=null&&p(r,["bidiGenerateContentSetup"],XK(e,s));const l=h(t,["lockAdditionalFields"]);return r!==void 0&&l!=null&&p(r,["fieldMask"],l),n}function jK(e,t){const r={},n=h(t,["config"]);return n!=null&&p(r,["config"],HK(e,n,r)),r}function zK(e){const t={};if(h(e,["displayName"])!==void 0)throw new Error("displayName parameter is not supported in Gemini API.");const r=h(e,["fileUri"]);r!=null&&p(t,["fileUri"],r);const n=h(e,["mimeType"]);return n!=null&&p(t,["mimeType"],n),t}function WK(e){const t={},r=h(e,["id"]);r!=null&&p(t,["id"],r);const n=h(e,["args"]);n!=null&&p(t,["args"],n);const i=h(e,["name"]);if(i!=null&&p(t,["name"],i),h(e,["partialArgs"])!==void 0)throw new Error("partialArgs parameter is not supported in Gemini API.");if(h(e,["willContinue"])!==void 0)throw new Error("willContinue parameter is not supported in Gemini API.");return t}function qK(e){const t={},r=h(e,["authConfig"]);r!=null&&p(t,["authConfig"],UK(r));const n=h(e,["enableWidget"]);return n!=null&&p(t,["enableWidget"],n),t}function KK(e){const t={},r=h(e,["searchTypes"]);if(r!=null&&p(t,["searchTypes"],r),h(e,["blockingConfidence"])!==void 0)throw new Error("blockingConfidence parameter is not supported in Gemini API.");if(h(e,["excludeDomains"])!==void 0)throw new Error("excludeDomains parameter is not supported in Gemini API.");const n=h(e,["timeRangeFilter"]);return n!=null&&p(t,["timeRangeFilter"],n),t}function YK(e,t){const r={},n=h(e,["generationConfig"]);t!==void 0&&n!=null&&p(t,["setup","generationConfig"],n);const i=h(e,["responseModalities"]);t!==void 0&&i!=null&&p(t,["setup","generationConfig","responseModalities"],i);const a=h(e,["temperature"]);t!==void 0&&a!=null&&p(t,["setup","generationConfig","temperature"],a);const o=h(e,["topP"]);t!==void 0&&o!=null&&p(t,["setup","generationConfig","topP"],o);const s=h(e,["topK"]);t!==void 0&&s!=null&&p(t,["setup","generationConfig","topK"],s);const l=h(e,["maxOutputTokens"]);t!==void 0&&l!=null&&p(t,["setup","generationConfig","maxOutputTokens"],l);const u=h(e,["mediaResolution"]);t!==void 0&&u!=null&&p(t,["setup","generationConfig","mediaResolution"],u);const c=h(e,["seed"]);t!==void 0&&c!=null&&p(t,["setup","generationConfig","seed"],c);const f=h(e,["speechConfig"]);t!==void 0&&f!=null&&p(t,["setup","generationConfig","speechConfig"],G_(f));const d=h(e,["thinkingConfig"]);t!==void 0&&d!=null&&p(t,["setup","generationConfig","thinkingConfig"],d);const m=h(e,["enableAffectiveDialog"]);t!==void 0&&m!=null&&p(t,["setup","generationConfig","enableAffectiveDialog"],m);const g=h(e,["systemInstruction"]);t!==void 0&&g!=null&&p(t,["setup","systemInstruction"],VK(Ir(g)));const v=h(e,["tools"]);if(t!==void 0&&v!=null){let P=Au(v);Array.isArray(P)&&(P=P.map(C=>eY(Su(C)))),p(t,["setup","tools"],P)}const y=h(e,["sessionResumption"]);t!==void 0&&y!=null&&p(t,["setup","sessionResumption"],QK(y));const x=h(e,["inputAudioTranscription"]);t!==void 0&&x!=null&&p(t,["setup","inputAudioTranscription"],QA(x));const w=h(e,["outputAudioTranscription"]);t!==void 0&&w!=null&&p(t,["setup","outputAudioTranscription"],QA(w));const _=h(e,["realtimeInputConfig"]);t!==void 0&&_!=null&&p(t,["setup","realtimeInputConfig"],_);const S=h(e,["contextWindowCompression"]);t!==void 0&&S!=null&&p(t,["setup","contextWindowCompression"],S);const T=h(e,["proactivity"]);if(t!==void 0&&T!=null&&p(t,["setup","proactivity"],T),h(e,["explicitVadSignal"])!==void 0)throw new Error("explicitVadSignal parameter is not supported in Gemini API.");const E=h(e,["avatarConfig"]);t!==void 0&&E!=null&&p(t,["setup","avatarConfig"],E);const A=h(e,["safetySettings"]);if(t!==void 0&&A!=null){let P=A;Array.isArray(P)&&(P=P.map(C=>ZK(C))),p(t,["setup","safetySettings"],P)}return r}function XK(e,t){const r={},n=h(t,["model"]);n!=null&&p(r,["setup","model"],nt(e,n));const i=h(t,["config"]);return i!=null&&p(r,["config"],YK(i,r)),r}function JK(e){const t={},r=h(e,["mediaResolution"]);r!=null&&p(t,["mediaResolution"],r);const n=h(e,["codeExecutionResult"]);n!=null&&p(t,["codeExecutionResult"],n);const i=h(e,["executableCode"]);i!=null&&p(t,["executableCode"],i);const a=h(e,["fileData"]);a!=null&&p(t,["fileData"],zK(a));const o=h(e,["functionCall"]);o!=null&&p(t,["functionCall"],WK(o));const s=h(e,["functionResponse"]);s!=null&&p(t,["functionResponse"],s);const l=h(e,["inlineData"]);l!=null&&p(t,["inlineData"],GK(l));const u=h(e,["text"]);u!=null&&p(t,["text"],u);const c=h(e,["thought"]);c!=null&&p(t,["thought"],c);const f=h(e,["thoughtSignature"]);f!=null&&p(t,["thoughtSignature"],f);const d=h(e,["videoMetadata"]);d!=null&&p(t,["videoMetadata"],d);const m=h(e,["toolCall"]);m!=null&&p(t,["toolCall"],m);const g=h(e,["toolResponse"]);g!=null&&p(t,["toolResponse"],g);const v=h(e,["partMetadata"]);return v!=null&&p(t,["partMetadata"],v),t}function ZK(e){const t={},r=h(e,["category"]);if(r!=null&&p(t,["category"],r),h(e,["method"])!==void 0)throw new Error("method parameter is not supported in Gemini API.");const n=h(e,["threshold"]);return n!=null&&p(t,["threshold"],n),t}function QK(e){const t={},r=h(e,["handle"]);if(r!=null&&p(t,["handle"],r),h(e,["transparent"])!==void 0)throw new Error("transparent parameter is not supported in Gemini API.");return t}function eY(e){const t={};if(h(e,["retrieval"])!==void 0)throw new Error("retrieval parameter is not supported in Gemini API.");const r=h(e,["computerUse"]);r!=null&&p(t,["computerUse"],r);const n=h(e,["fileSearch"]);n!=null&&p(t,["fileSearch"],n);const i=h(e,["googleSearch"]);i!=null&&p(t,["googleSearch"],KK(i));const a=h(e,["googleMaps"]);a!=null&&p(t,["googleMaps"],qK(a));const o=h(e,["codeExecution"]);if(o!=null&&p(t,["codeExecution"],o),h(e,["enterpriseWebSearch"])!==void 0)throw new Error("enterpriseWebSearch parameter is not supported in Gemini API.");const s=h(e,["functionDeclarations"]);if(s!=null){let f=s;Array.isArray(f)&&(f=f.map(d=>d)),p(t,["functionDeclarations"],f)}const l=h(e,["googleSearchRetrieval"]);if(l!=null&&p(t,["googleSearchRetrieval"],l),h(e,["parallelAiSearch"])!==void 0)throw new Error("parallelAiSearch parameter is not supported in Gemini API.");
185const u=h(e,["urlContext"]);u!=null&&p(t,["urlContext"],u);const c=h(e,["mcpServers"]);if(c!=null){let f=c;Array.isArray(f)&&(f=f.map(d=>d)),p(t,["mcpServers"],f)}return t}/** 186 * @license 187 * Copyright 2025 Google LLC 188 * SPDX-License-Identifier: Apache-2.0 189 */function tY(e){const t=[];for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const n=e[r];if(typeof n=="object"&&n!=null&&Object.keys(n).length>0){const i=Object.keys(n).map(a=>`${r}.${a}`);t.push(...i)}else t.push(r)}return t.join(",")}function rY(e,t){let r=null;const n=e.bidiGenerateContentSetup;if(typeof n=="object"&&n!==null&&"setup"in n){const a=n.setup;typeof a=="object"&&a!==null?(e.bidiGenerateContentSetup=a,r=a):delete e.bidiGenerateContentSetup}else n!==void 0&&delete e.bidiGenerateContentSetup;const i=e.fieldMask;if(r){const a=tY(r);if(Array.isArray(t==null?void 0:t.lockAdditionalFields)&&(t==null?void 0:t.lockAdditionalFields.length)===0)a?e.fieldMask=a:delete e.fieldMask;else if(t!=null&&t.lockAdditionalFields&&t.lockAdditionalFields.length>0&&i!==null&&Array.isArray(i)&&i.length>0){const o=["temperature","topK","topP","maxOutputTokens","responseModalities","seed","speechConfig"];let s=[];i.length>0&&(s=i.map(u=>o.includes(u)?`generationConfig.${u}`:u));const l=[];a&&l.push(a),s.length>0&&l.push(...s),l.length>0?e.fieldMask=l.join(","):delete e.fieldMask}else delete e.fieldMask}else i!==null&&Array.isArray(i)&&i.length>0?e.fieldMask=i.join(","):delete e.fieldMask;return e}class nY extends Ba{constructor(t){super(),this.apiClient=t}async create(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("The client.tokens.create method is only supported by the Gemini Developer API.");{const s=jK(this.apiClient,t);a=Ae("auth_tokens",s._url),o=s._query,delete s.config,delete s._url,delete s._query;const l=rY(s,t.config);return i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(l),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
189Signal}).then(u=>u.json()),i.then(u=>u)}}}/** 190 * @license 191 * Copyright 2025 Google LLC 192 * SPDX-License-Identifier: Apache-2.0 193 */function iY(e,t){const r={},n=h(e,["force"]);return t!==void 0&&n!=null&&p(t,["_query","force"],n),r}function aY(e){const t={},r=h(e,["name"]);r!=null&&p(t,["_url","name"],r);const n=h(e,["config"]);return n!=null&&iY(n,t),t}function oY(e){const t={},r=h(e,["name"]);return r!=null&&p(t,["_url","name"],r),t}function sY(e,t){const r={},n=h(e,["pageSize"]);t!==void 0&&n!=null&&p(t,["_query","pageSize"],n);const i=h(e,["pageToken"]);return t!==void 0&&i!=null&&p(t,["_query","pageToken"],i),r}function lY(e){const t={},r=h(e,["parent"]);r!=null&&p(t,["_url","parent"],r);const n=h(e,["config"]);return n!=null&&sY(n,t),t}function uY(e){const t={},r=h(e,["sdkHttpResponse"]);r!=null&&p(t,["sdkHttpResponse"],r);const n=h(e,["nextPageToken"]);n!=null&&p(t,["nextPageToken"],n);const i=h(e,["documents"]);if(i!=null){let a=i;Array.isArray(a)&&(a=a.map(o=>o)),p(t,["documents"],a)}return t}/** 194 * @license 195 * Copyright 2025 Google LLC 196 * SPDX-License-Identifier: Apache-2.0 197 */class cY extends Ba{constructor(t){super(),this.apiClient=t,this.list=async r=>new Bs(Ra.PAGED_ITEM_DOCUMENTS,n=>this.listInternal({parent:r.parent,config:n.config}),await this.listInternal(r),r)}async get(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=oY(t);return a=Ae("{name}",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
197Signal}).then(l=>l.json()),i.then(l=>l)}}async delete(t){var r,n;let i="",a={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const o=aY(t);i=Ae("{name}",o._url),a=o._query,delete o._url,delete o._query,await this.apiClient.request({path:i,queryParams:a,body:JSON.stringify(o),httpMethod:"DELETE",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal})}}async listInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=lY(t);return a=Ae("{parent}/documents",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json()),i.then(l=>{const u=uY(l),c=new _H;return Object.assign(c,u),c})}}}/** 198 * @license 199 * Copyright 2025 Google LLC 200 * SPDX-License-Identifier: Apache-2.0 201 */class fY extends Ba{constructor(t,r=new cY(t)){super(),this.apiClient=t,this.documents=r,this.list=async(n={})=>new Bs(Ra.PAGED_ITEM_FILE_SEARCH_STORES,i=>this.listInternal(i),await this.listInternal(n),n)}async uploadToFileSearchStore(t){if(this.apiClient.isVertexAI())throw new Error("Gemini Enterprise Agent Platform (previously known as Vertex AI) does not support uploading files to a file search store.");return this.apiClient.uploadFileToFileSearchStore(t.fileSearchStoreName,t.file,t.config)}async downloadMedia(t,r){if(this.apiClient.isVertexAI())throw new Error("This method is only supported in the Gemini Developer client.");const n=new URL(t,"http://dummy.com");let i=n.pathname;if(i.startsWith("/")&&(i=i.slice(1)),!i.includes("/media/"))throw new Error(`Invalid uri format: ${t}. Expected to contain /media/`);const a={};n.searchParams.forEach((l,u)=>{a[u]=l}),a.alt="media";const o=Object.assign({},r==null?void 0:r.httpOptions),s=await this.apiClient.request({path:i,httpMethod:"GET",queryParams:a,httpOptions:o});if(s instanceof Eh){const l=await s.responseInternal.arrayBuffer();return new Uint8Array(l)}else throw new Error("Unexpected response type from downloadMedia")}async create(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=Xq(this.apiClient,t);return a=Ae("fileSearchStores",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
201Signal}).then(l=>l.json()),i.then(l=>l)}}async get(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=Qq(t);return a=Ae("{name}",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json()),i.then(l=>l)}}async delete(t){var r,n;let i="",a={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const o=Zq(t);i=Ae("{name}",o._url),a=o._query,delete o._url,delete o._query,await this.apiClient.request({path:i,queryParams:a,body:JSON.stringify(o),httpMethod:"DELETE",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal})}}async listInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=aK(t);return a=Ae("fileSearchStores",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
201Signal}).then(l=>l.json()),i.then(l=>{const u=oK(l),c=new wH;return Object.assign(c,u),c})}}async uploadToFileSearchStoreInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=sK(t);return a=Ae("upload/v1beta/{file_search_store_name}:uploadToFileSearchStore",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json()),i.then(l=>{const u=lK(l),c=new EH;return Object.assign(c,u),c})}}async importFile(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=rK(t);return a=Ae("{file_search_store_name}:importFile",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
201Signal}).then(l=>l.json()),i.then(l=>{const u=tK(l),c=new F_;return Object.assign(c,u),c})}}}/** 202 * @license 203 * Copyright 2025 Google LLC 204 * SPDX-License-Identifier: Apache-2.0 205 */let $R=function(){const{crypto:e}=globalThis;if(e!=null&&e.randomUUID)return $R=e.randomUUID.bind(e),e.randomUUID();const t=new Uint8Array(1),r=e?()=>e.getRandomValues(t)[0]:()=>Math.random()*255&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n=>(+n^r()&15>>+n/4).toString(16))};const dY=()=>$R();/** 206 * @license 207 * Copyright 2025 Google LLC 208 * SPDX-License-Identifier: Apache-2.0 209 */function Iy(e){return typeof e=="object"&&e!==null&&("name"in e&&e.name==="AbortError"||"message"in e&&String(e.message).includes("FetchRequestCanceledException"))}const Ny=e=>{if(e instanceof Error)return e;if(typeof e=="object"&&e!==null){try{if(Object.prototype.toString.call(e)==="[object Error]"){const t=new Error(e.message,e.cause?{cause:e.cause}:{});return e.stack&&(t.stack=e.stack),e.cause&&!t.cause&&(t.cause=e.cause),e.name&&(t.name=e.name),t}}catch{}try{return new Error(JSON.stringify(e))}catch{}}return new Error(e)};/** 210 * @license 211 * Copyright 2025 Google LLC 212 * SPDX-License-Identifier: Apache-2.0 213 */class di extends Error{}class _n extends di{constructor(t,r,n,i){super(`${_n.makeMessage(t,r,n)}`),this.status=t,this.headers=i,this.error=r}static makeMessage(t,r,n){const i=r!=null&&r.message?typeof r.message=="string"?r.message:JSON.stringify(r.message):r?JSON.stringify(r):n;return t&&i?`${t} ${i}`:t?`${t} status code (no body)`:i||"(no status code or body)"}static generate(t,r,n,i){if(!t||!i)return new nm({message:n,cause:Ny(r)});const a=r;return t===400?new UR(t,a,n,i):t===401?new GR(t,a,n,i):t===403?new VR(t,a,n,i):t===404?new HR(t,a,n,i):t===409?new jR(t,a,n,i):t===422?new zR(t,a,n,i):t===429?new WR(t,a,n,i):t>=500?new qR(t,a,n,i):new _n(t,a,n,i)}}class Oy extends _n{constructor({message:t}={}){super(void 0,void 0,t||"Request was aborted.",void 0)}}class nm extends _n{constructor({message:t,cause:r}){super(void 0,void 0,t||"Connection error.",void 0),r&&(this.cause=r)}}class BR extends nm{constructor({message:t}={}){super({message:t??"Request timed out."})}}class UR extends _n{}class GR extends _n{}class VR extends _n{}class HR extends _n{}class jR extends _n{}class zR extends _n{}class WR extends _n{}class qR extends _n{}/** 214 * @license 215 * Copyright 2025 Google LLC 216 * SPDX-License-Identifier: Apache-2.0 217 */const hY=/^[a-z][a-z0-9+.-]*:/i,pY=e=>hY.test(e);let Ry=e=>(Ry=Array.isArray,Ry(e));const mY=Ry;let vY=mY;const eb=vY;function tb(e){if(!e)return!0;for(const t in e)return!1;return!0}function gY(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const yY=(e,t)=>{if(typeof t!="number"||!Number.isInteger(t))throw new di(`${e} must be an integer`);if(t<0)throw new di(`${e} must be a positive integer`);return t},xY=e=>{try{return JSON.parse(e)}catch{return}};/** 218 * @license 219 * Copyright 2025 Google LLC 220 * SPDX-License-Identifier: Apache-2.0 221 */const _Y=e=>new Promise(t=>setTimeout(t,e));/** 222 * @license 223 * Copyright 2025 Google LLC 224 * SPDX-License-Identifier: Apache-2.0 225 */function wY(){if(typeof fetch<"u")return fetch;throw new Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new GeminiNextGenAPIClient({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}function KR(...e){const t=globalThis.ReadableStream;if(typeof t>"u")throw new Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new t(...e)}function EY(e){let t=Symbol.asyncIterator in e?e[Symbol.asyncIterator]():e[Symbol.iterator]();return KR({start(){},async pull(r){const{done:n,value:i}=await t.next();n?r.close():r.enqueue(i)},async cancel(){var r;await((r=t.return)===null||r===void 0?void 0:r.call(t))}})}function YR(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{async next(){try{const r=await t.read();return r!=null&&r.done&&t.releaseLock(),r}catch(r){throw t.releaseLock(),r}},async return(){const r=t.cancel();return t.releaseLock(),await r,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function TY(e){var t,r;if(e===null||typeof e!="object")return;if(e[Symbol.asyncIterator]){await((r=(t=e[Symbol.asyncIterator]()).return)===null||r===void 0?void 0:r.call(t));return}const n=e.getReader(),i=n.cancel();n.releaseLock(),await i}/** 226 * @license 227 * Copyright 2025 Google LLC 228 * SPDX-License-Identifier: Apache-2.0 229 */const SY=({headers:e,body:t})=>({bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(t)});/** 230 * @license 231 * Copyright 2025 Google LLC 232 * SPDX-License-Identifier: Apache-2.0 233 */function AY(e){return Object.entries(e).filter(([t,r])=>typeof r<"u").map(([t,r])=>
233{if(typeof r=="string"||typeof r=="number"||typeof r=="boolean")return`${encodeURIComponent(t)}=${encodeURIComponent(r)}`;if(r===null)return`${encodeURIComponent(t)}=`;throw new di(`Cannot stringify type ${typeof r}; Expected string, number, boolean, or null. If you need to pass nested query parameters, you can manually encode them, e.g. { query: { 'foo[key1]': value1, 'foo[key2]': value2 } }, and please open a GitHub issue requesting better support for your use case.`)}).join("&")}/** 234 * @license 235 * Copyright 2025 Google LLC 236 * SPDX-License-Identifier: Apache-2.0 237 */const bY="0.0.1";/** 238 * @license 239 * Copyright 2025 Google LLC 240 * SPDX-License-Identifier: Apache-2.0 241 */const XR=()=>{var e;if(typeof File>"u"){const{process:t}=globalThis,r=typeof((e=t==null?void 0:t.versions)===null||e===void 0?void 0:e.node)=="string"&&parseInt(t.versions.node.split("."))<20;throw new Error("`File` is not defined as a global, which is required for file uploads."+(r?" Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`.":""))}};function Bv(e,t,r){return XR(),new File(e,t??"unknown_file",r)}function CY(e){return(typeof e=="object"&&e!==null&&("name"in e&&e.name&&String(e.name)||"url"in e&&e.url&&String(e.url)||"filename"in e&&e.filename&&String(e.filename)||"path"in e&&e.path&&String(e.path))||"").split(/[\\/]/).pop()||void 0}const PY=e=>e!=null&&typeof e=="object"&&typeof e[Symbol.asyncIterator]=="function";/** 242 * @license 243 * Copyright 2025 Google LLC 244 * SPDX-License-Identifier: Apache-2.0 245 */const JR=e=>e!=null&&typeof e=="object"&&typeof e.size=="number"&&typeof e.type=="string"&&typeof e.text=="function"&&typeof e.slice=="function"&&typeof e.arrayBuffer=="function",kY=e=>e!=null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.lastModified=="number"&&JR(e),IY=e=>e!=null&&typeof e=="object"&&typeof e.url=="string"&&typeof e.blob=="function";async function NY(e,t,r){if(XR(),e=await e,kY(e))return e instanceof File?e:Bv([await e.arrayBuffer()],e.name);if(IY(e)){const i=await e.blob();return t||(t=new URL(e.url).pathname.split(/[\\/]/).pop()),Bv(await My(i),t,r)}const n=await My(e);if(t||(t=CY(e)),!(r!=null&&r.type)){const i=n.find(a=>typeof a=="object"&&"type"in a&&a.type);typeof i=="string"&&(r=Object.assign(Object.assign({},r),{type:i}))}return Bv(n,t,r)}async function My(e){var t,r,n,i,a;let o=[];if(typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)o.push(e);else if(JR(e))o.push(e instanceof Blob?e:await e.arrayBuffer());else if(PY(e))try{for(var s=!0,l=Li(e),u;u=await l.next(),t=u.done,!t;s=!0){i=u.value,s=!1;const c=i;o.push(...await My(c))}}catch(c){r={error:c}}finally{try{!s&&!t&&(n=l.return)&&await n.call(l)}finally{if(r)throw r.error}}else{const c=(a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name;throw new Error(`Unexpected data type: ${typeof e}${c?`; constructor: ${c}`:""}${OY(e)}`)}return o}function OY(e){return typeof e!="object"||e===null?"":`; props: [${Object.getOwnPropertyNames(e).map(r=>`"${r}"`).join(", ")}]`}/** 246 * @license 247 * Copyright 2025 Google LLC 248 * SPDX-License-Identifier: Apache-2.0 249 */class H_{constructor(t){this._client=t}}H_._key=[];/** 250 * @license 251 * Copyright 2025 Google LLC 252 * SPDX-License-Identifier: Apache-2.0 253 */function ZR(e){return e.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent)}const rb=Object.freeze(Object.create(null)),RY=(e=ZR)=>function(r,...n){if(r.length===1)return r[0];let i=!1;const a=[],o=r.reduce((c,f,d)=>{var m,g,v;/[?#]/.test(f)&&(i=!0);const y=n[d];let x=(i?encodeURIComponent:e)(""+y);return d!==n.length&&(y==null||typeof y=="object"&&y.toString===((v=Object.getPrototypeOf((g=Object.getPrototypeOf((m=y.hasOwnProperty)!==null&&m!==void 0?m:rb))!==null&&g!==void 0?g:rb))===null||v===void 0?void 0:v.toString))&&(x=y+"",a.push({start:c.length+f.length,length:x.length,error:`Value of type ${Object.prototype.toString.call(y).slice(8,-1)} is not a valid path parameter`})),c+f+(d===n.length?"":x)},""),s=o.split(/[?#]/,1)[0],l=/(^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;let u;for(;(u=l.exec(s))!==null;){const c=u[0].startsWith("/"),f=c?1:0,d=c?u[0].slice(1):u[0];a.push({start:u.index+f,length:d.length,error:`Value "${d}" can't be safely passed as a path parameter`})}
253if(a.sort((c,f)=>c.start-f.start),a.length>0){let c=0;const f=a.reduce((d,m)=>{const g=" ".repeat(m.start-c),v="^".repeat(m.length);return c=m.start+m.length,d+g+v},"");throw new di(`Path parameters result in path with invalid segments: 254${a.map(d=>d.error).join(` 255`)} 256${o} 257${f}`)}return o},Ai=RY(ZR);/** 258 * @license 259 * Copyright 2025 Google LLC 260 * SPDX-License-Identifier: Apache-2.0 261 */class QR extends H_{create(t,r){var n;const{api_version:i=this._client.apiVersion}=t,a=uo(t,["api_version"]);if("model"in a&&"agent_config"in a)throw new di("Invalid request: specified `model` and `agent_config`. If specifying `model`, use `generation_config`.");if("agent"in a&&"generation_config"in a)throw new di("Invalid request: specified `agent` and `generation_config`. If specifying `agent`, use `agent_config`.");return this._client.post(Ai`/${i}/interactions`,Object.assign(Object.assign({body:a},r),{stream:(n=t.stream)!==null&&n!==void 0?n:!1}))}delete(t,r={},n){const{api_version:i=this._client.apiVersion}=r??{};return this._client.delete(Ai`/${i}/interactions/${t}`,n)}cancel(t,r={},n){const{api_version:i=this._client.apiVersion}=r??{};return this._client.post(Ai`/${i}/interactions/${t}/cancel`,n)}get(t,r={},n){var i;const a=r??{},{api_version:o=this._client.apiVersion}=a,s=uo(a,["api_version"]);return this._client.get(Ai`/${o}/interactions/${t}`,Object.assign(Object.assign({query:s},n),{stream:(i=r==null?void 0:r.stream)!==null&&i!==void 0?i:!1}))}}QR._key=Object.freeze(["interactions"]);class eM extends QR{}/** 262 * @license 263 * Copyright 2025 Google LLC 264 * SPDX-License-Identifier: Apache-2.0 265 */class tM extends H_{create(t,r){const{api_version:n=this._client.apiVersion}=t,i=uo(t,["api_version"]);return this._client.post(Ai`/${n}/webhooks`,Object.assign({body:i},r))}update(t,r={},n){const i=r??{},{api_version:a=this._client.apiVersion,update_mask:o}=i,s=uo(i,["api_version","update_mask"]);return this._client.patch(Ai`/${a}/webhooks/${t}`,Object.assign({query:{update_mask:o},body:s},n))}list(t={},r){const n=t??{},{api_version:i=this._client.apiVersion}=n,a=uo(n,["api_version"]);return this._client.get(Ai`/${i}/webhooks`,Object.assign({query:a},r))}delete(t,r={},n){const{api_version:i=this._client.apiVersion}=r??{};return this._client.delete(Ai`/${i}/webhooks/${t}`,n)}get(t,r={},n){const{api_version:i=this._client.apiVersion}=r??{};return this._client.get(Ai`/${i}/webhooks/${t}`,n)}ping(t,r=void 0,n){const{api_version:i=this._client.apiVersion,body:a}=r??{};return this._client.post(Ai`/${i}/webhooks/${t}:ping`,Object.assign({body:a},n))}rotateSigningSecret(t,r={},n){const i=r??{},{api_version:a=this._client.apiVersion}=i,o=uo(i,["api_version"]);return this._client.post(Ai`/${a}/webhooks/${t}:rotateSigningSecret`,Object.assign({body:o},n))}}tM._key=Object.freeze(["webhooks"]);class rM extends tM{}/** 266 * @license 267 * Copyright 2025 Google LLC 268 * SPDX-License-Identifier: Apache-2.0 269 */function MY(e){let t=0;for(const i of e)t+=i.length;const r=new Uint8Array(t);let n=0;for(const i of e)r.set(i,n),n+=i.length;return r}let s0;function j_(e){let t;return(s0??(t=new globalThis.TextEncoder,s0=t.encode.bind(t)))(e)}let l0;function nb(e){let t;return(l0??(t=new globalThis.TextDecoder,l0=t.decode.bind(t)))(e)}/** 270 * @license 271 * Copyright 2025 Google LLC 272 * SPDX-License-Identifier: Apache-2.0 273 */class im{constructor(){this.buffer=new Uint8Array,this.carriageReturnIndex=null,this.searchIndex=0}decode(t){var r;if(t==null)return[];const n=t instanceof ArrayBuffer?new Uint8Array(t):typeof t=="string"?j_(t):t;this.buffer=MY([this.buffer,n]);const i=[];let a;for(;(a=DY(this.buffer,(r=this.carriageReturnIndex)!==null&&r!==void 0?r:this.searchIndex))!=null;){if(a.carriage&&this.carriageReturnIndex==null){this.carriageReturnIndex=a.index;continue}if(this.carriageReturnIndex!=null&&(a.index!==this.carriageReturnIndex+1||a.carriage)){i.push(nb(this.buffer.subarray(0,this.carriageReturnIndex-1))),this.buffer=this.buffer.subarray(this.carriageReturnIndex),this.carriageReturnIndex=null,this.searchIndex=0;continue}const o=this.carriageReturnIndex!==null?a.preceding-1:a.preceding,s=nb(this.buffer.subarray(0,o));i.push(s),this.buffer=this.buffer.subarray(a.index),this.carriageReturnIndex=null,this.searchIndex=0}return this.searchIndex=Math.max(0,this.buffer.length-1),i}flush(){return this.buffer.length?this.decode(` 274`):[]}}im.NEWLINE_CHARS=new Set([` 275`,"\r"]);im.NEWLINE_REGEXP=/\r\n|[\n\r]/g;function DY(e,t){const i=t??0,a=e.indexOf(10,i),o=e.indexOf(13,i);if(a===-1&&o===-1)return null;let s;return a!==-1&&o!==-1?s=Math.min(a,o):s=a!==-1?a:o,e[s]===10?{preceding:s,index:s+1,carriage:!1}:{preceding:s,index:s+1,carriage:!0}}/** 276 * @license 277 * Copyright 2025 Google LLC 278 * SPDX-License-Identifier: Apache-2.0 279 */const Ah={off:0,error:200,warn:300,info:400,debug:500},ib=(e,t,r)=>{if(e){if(gY(Ah,e))return e;ln(r).warn(`${t} was set to ${JSON.stringify(e)}, expected one of ${JSON.stringify(Object.keys(Ah))}`)}};function Tc(){}function u0(e,t,r){return!t||Ah[e]>Ah[r]?Tc:t[e].bind(t)}const FY={error:Tc,warn:Tc,info:Tc,debug:Tc};let ab=new WeakMap;function ln(e){var t;const r=e.logger,n=(t=e.logLevel)!==null&&t!==void 0?t:"off";if(!r)return FY;const i=ab.get(r);if(i&&i[0]===n)return i[1];const a={error:u0("error",r,n),warn:u0("warn",r,n),info:u0("info",r,n),debug:u0("debug",r,n)};return ab.set(r,[n,a]),a}const Xo=e=>(e.options&&(e.options=Object.assign({},e.options),delete e.options.headers),e.headers&&(e.headers=Object.fromEntries((e.headers instanceof Headers?[...e.headers]:Object.entries(e.headers)).map(([t,r])=>[t,t.toLowerCase()==="x-goog-api-key"||t.toLowerCase()==="authorization"||t.toLowerCase()==="cookie"||t.toLowerCase()==="set-cookie"?"***":r]))),"retryOfRequestLogID"in e&&(e.retryOfRequestLogID&&(e.retryOf=e.retryOfRequestLogID),delete e.retryOfRequestLogID),e);
279/** 280 * @license 281 * Copyright 2025 Google LLC 282 * SPDX-License-Identifier: Apache-2.0 283 */class ml{constructor(t,r,n){this.iterator=t,this.controller=r,this.client=n}static fromSSEResponse(t,r,n){let i=!1;const a=n?ln(n):console;function o(){return Fi(this,arguments,function*(){var l,u,c,f;if(i)throw new di("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");i=!0;let d=!1;try{try{for(var m=!0,g=Li(LY(t,r)),v;v=yield Ge(g.next()),l=v.done,!l;m=!0){f=v.value,m=!1;const y=f;if(!d)if(y.data.startsWith("[DONE]")){d=!0;continue}else try{yield yield Ge(JSON.parse(y.data))}catch(x){throw a.error("Could not parse message into JSON:",y.data),a.error("From chunk:",y.raw),x}}}catch(y){u={error:y}}finally{try{!m&&!l&&(c=g.return)&&(yield Ge(c.call(g)))}finally{if(u)throw u.error}}d=!0}catch(y){if(Iy(y))return yield Ge(void 0);throw y}finally{d||r.abort()}})}return new ml(o,r,n)}static fromReadableStream(t,r,n){let i=!1;function a(){return Fi(this,arguments,function*(){var l,u,c,f;const d=new im,m=YR(t);try{for(var g=!0,v=Li(m),y;y=yield Ge(v.next()),l=y.done,!l;g=!0){f=y.value,g=!1;const x=f;for(const w of d.decode(x))yield yield Ge(w)}}catch(x){u={error:x}}finally{try{!g&&!l&&(c=v.return)&&(yield Ge(c.call(v)))}finally{if(u)throw u.error}}for(const x of d.flush())yield yield Ge(x)})}function o(){return Fi(this,arguments,function*(){var l,u,c,f;if(i)throw new di("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");i=!0;let d=!1;try{try{for(var m=!0,g=Li(a()),v;v=yield Ge(g.next()),l=v.done,!l;m=!0){f=v.value,m=!1;const y=f;d||y&&(yield yield Ge(JSON.parse(y)))}}catch(y){u={error:y}}finally{try{!m&&!l&&(c=g.return)&&(yield Ge(c.call(g)))}finally{if(u)throw u.error}}d=!0}catch(y){if(Iy(y))return yield Ge(void 0);throw y}finally{d||r.abort()}})}return new ml(o,r,n)}[Symbol.asyncIterator](){return this.iterator()}tee(){const t=[],r=[],n=this.iterator(),i=a=>({next:()=>{if(a.length===0){const o=n.next();t.push(o),r.push(o)}return a.shift()}});return[new ml(()=>i(t),this.controller,this.client),new ml(()=>i(r),this.controller,this.client)]}toReadableStream(){const t=this;let r;return KR({async start(){r=t[Symbol.asyncIterator]()},async pull(n){try{const{value:i,done:a}=await r.next();if(a)return n.close();const o=j_(JSON.stringify(i)+` 284`);n.enqueue(o)}catch(i){n.error(i)}},async cancel(){var n;await((n=r.return)===null||n===void 0?void 0:n.call(r))}})}}function LY(e,t){return Fi(this,arguments,function*(){var n,i,a,o;if(!e.body)throw t.abort(),typeof globalThis.navigator<"u"&&globalThis.navigator.product==="ReactNative"?new di("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api"):new di("Attempted to iterate over a response with no body");const s=new BY,l=new im,u=YR(e.body);try{for(var c=!0,f=Li($Y(u)),d;d=yield Ge(f.next()),n=d.done,!n;c=!0){o=d.value,c=!1;const m=o;for(const g of l.decode(m)){const v=s.decode(g);v&&(yield yield Ge(v))}}}catch(m){i={error:m}}finally{try{!c&&!n&&(a=f.return)&&(yield Ge(a.call(f)))}finally{if(i)throw i.error}}for(const m of l.flush()){const g=s.decode(m);g&&(yield yield Ge(g))}})}function $Y(e){return Fi(this,arguments,function*(){var r,n,i,a;try{for(var o=!0,s=Li(e),l;l=yield Ge(s.next()),r=l.done,!r;o=!0){a=l.value,o=!1;const u=a;if(u==null)continue;const c=u instanceof ArrayBuffer?new Uint8Array(u):typeof u=="string"?j_(u):u;yield yield Ge(c)}}catch(u){n={error:u}}finally{try{!o&&!r&&(i=s.return)&&(yield Ge(i.call(s)))}finally{if(n)throw n.error}}})}class BY{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(t){if(t.endsWith("\r")&&(t=t.substring(0,t.length-1)),!t){if(!this.event&&!this.data.length)return null;const a={event:this.event,data:this.data.join(` 285`),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],a}if(this.chunks.push(t),t.startsWith(":"))return null;let[r,n,i]=UY(t,":");return i.startsWith(" ")&&(i=i.substring(1)),r==="event"?this.event=i:r==="data"&&this.data.push(i),null}}function UY(e,t){const r=e.indexOf(t);return r!==-1?[e.substring(0,r),t,e.substring(r+t.length)]:[e,"",""]}/** 286 * @license 287 * Copyright 2025 Google LLC 288 * SPDX-License-Identifier: Apache-2.0 289 */async function GY(e,t){const{response:r,requestLogID:n,retryOfRequestLogID:i,startTime:a}=t,o=await(async()=>{var s;if(t.options.stream)return ln(e).debug("response",r.status,r.url,r.headers,r.body),t.options.__streamClass?t.options.__streamClass.fromSSEResponse(r,t.controller,e):ml.fromSSEResponse(r,t.controller,e);if(r.status===204)return null;if(t.options.__binaryResponse)return r;const l=r.headers.get("content-type"),u=(s=l==null?void 0:l.split(";")[0])===null||s===void 0?void 0:s.trim();return(u==null?void 0:u.includes("application/json"))||(u==null?void 0:u.endsWith("+json"))?r.headers.get("content-length")==="0"?void 0:await r.json():await r.text()})();return ln(e).debug(`[${n}] response parsed`,Xo({retryOfRequestLogID:i,url:r.url,status:r.status,body:o,durationMs:Date.now()-a})),o}/** 290 * @license 291 * Copyright 2025 Google LLC 292 * SPDX-License-Identifier: Apache-2.0 293 */class z_ extends Promise{constructor(t,r,n=GY){super(i=>{i(null)}),this.responsePromise=r,this.parseResponse=n,this.client=t}_thenUnwrap(t){return new z_(this.client,this.responsePromise,async(r,n)=>t(await this.parseResponse(r,n),n))}asResponse(){return this.responsePromise.then(t=>t.response)}async withResponse(){const[t,r]=await Promise.all([this.parse(),this.asResponse()]);return{data:t,response:r}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(t=>this.parseResponse(this.client,t))),this.parsedPromise}then(t,r){return this.parse().then(t,r)}catch(t){return this.parse().catch(t)}finally(t){return this.parse().finally(t)}}/** 294 * @license 295 * Copyright 2025 Google LLC 296 * SPDX-License-Identifier: Apache-2.0 297 */const nM=Symbol("brand.privateNullableHeaders");function*VY(e){if(!e)return;if(nM in e){const{values:n,nulls:i}=e;yield*n.entries();for(const a of i)yield[a,null];return}let t=!1,r;e instanceof Headers?r=e.entries():eb(e)?r=e:(t=!0,r=Object.entries(e??{}));for(let n of r){const i=n[0];
297if(typeof i!="string")throw new TypeError("expected header name to be a string");const a=eb(n[1])?n[1]:[n[1]];let o=!1;for(const s of a)s!==void 0&&(t&&!o&&(o=!0,yield[i,null]),yield[i,s])}}const rc=e=>{const t=new Headers,r=new Set;for(const n of e){const i=new Set;for(const[a,o]of VY(n)){const s=a.toLowerCase();i.has(s)||(t.delete(a),i.add(s)),o===null?(t.delete(a),r.add(s)):(t.append(a,o),r.delete(s))}}return{[nM]:!0,values:t,nulls:r}};/** 298 * @license 299 * Copyright 2025 Google LLC 300 * SPDX-License-Identifier: Apache-2.0 301 */const Uv=e=>{var t,r,n,i,a;if(typeof globalThis.process<"u")return((r=(t=KV)===null||t===void 0?void 0:t[e])===null||r===void 0?void 0:r.trim())||void 0;if(typeof globalThis.Deno<"u")return((a=(i=(n=globalThis.Deno.env)===null||n===void 0?void 0:n.get)===null||i===void 0?void 0:i.call(n,e))===null||a===void 0?void 0:a.trim())||void 0};/** 302 * @license 303 * Copyright 2025 Google LLC 304 * SPDX-License-Identifier: Apache-2.0 305 */var iM;class am{constructor(t){var r,n,i,a,o,s,l,{baseURL:u=Uv("GEMINI_NEXT_GEN_API_BASE_URL"),apiKey:c=(r=Uv("GEMINI_API_KEY"))!==null&&r!==void 0?r:null,apiVersion:f="v1beta"}=t,d=uo(t,["baseURL","apiKey","apiVersion"]);const m=Object.assign(Object.assign({apiKey:c,apiVersion:f},d),{baseURL:u||"https://generativelanguage.googleapis.com"});this.baseURL=m.baseURL,this.timeout=(n=m.timeout)!==null&&n!==void 0?n:am.DEFAULT_TIMEOUT,this.logger=(i=m.logger)!==null&&i!==void 0?i:console;const g="warn";this.logLevel=g,this.logLevel=(o=(a=ib(m.logLevel,"ClientOptions.logLevel",this))!==null&&a!==void 0?a:ib(Uv("GEMINI_NEXT_GEN_API_LOG"),"process.env['GEMINI_NEXT_GEN_API_LOG']",this))!==null&&o!==void 0?o:g,this.fetchOptions=m.fetchOptions,this.maxRetries=(s=m.maxRetries)!==null&&s!==void 0?s:2,this.fetch=(l=m.fetch)!==null&&l!==void 0?l:wY(),this.encoder=SY,this._options=m,this.apiKey=c,this.apiVersion=f,this.clientAdapter=m.clientAdapter}withOptions(t){return new this.constructor(Object.assign(Object.assign(Object.assign({},this._options),{baseURL:this.baseURL,maxRetries:this.maxRetries,timeout:this.timeout,logger:this.logger,logLevel:this.logLevel,fetch:this.fetch,fetchOptions:this.fetchOptions,apiKey:this.apiKey,apiVersion:this.apiVersion}),t))}baseURLOverridden(){return this.baseURL!=="https://generativelanguage.googleapis.com"}defaultQuery(){return this._options.defaultQuery}validateHeaders({values:t,nulls:r}){if(!(t.has("authorization")||t.has("x-goog-api-key"))&&!(this.apiKey&&t.get("x-goog-api-key"))&&!r.has("x-goog-api-key"))throw new Error('Could not resolve authentication method. Expected the apiKey to be set. Or for the "x-goog-api-key" headers to be explicitly omitted')}async authHeaders(t){const r=rc([t.headers]);if(!(r.values.has("authorization")||r.values.has("x-goog-api-key"))){if(this.apiKey)return rc([{"x-goog-api-key":this.apiKey}]);if(this.clientAdapter&&this.clientAdapter.isVertexAI())return rc([await this.clientAdapter.getAuthHeaders()])}}stringifyQuery(t){return AY(t)}getUserAgent(){return`${this.constructor.name}/JS ${bY}`}defaultIdempotencyKey(){return`stainless-node-retry-${dY()}`}makeStatusError(t,r,n,i){return _n.generate(t,r,n,i)}buildURL(t,r,n){const i=!this.baseURLOverridden()&&n||this.baseURL,a=pY(t)?new URL(t):new URL(i+(i.endsWith("/")&&t.startsWith("/")?t.slice(1):t)),o=this.defaultQuery(),s=Object.fromEntries(a.searchParams);return(!tb(o)||!tb(s))&&(r=Object.assign(Object.assign(Object.assign({},s),o),r)),typeof r=="object"&&r&&!Array.isArray(r)&&(a.search=this.stringifyQuery(r)),a.toString()}async prepareOptions(t){if(this.clientAdapter&&this.clientAdapter.isVertexAI()&&!t.path.startsWith(`/${this.apiVersion}/projects/`)){const r=t.path.slice(this.apiVersion.length+1);t.path=`/${this.apiVersion}/projects/${this.clientAdapter.getProject()}/locations/${this.clientAdapter.getLocation()}${r}`}}async prepareRequest(t,{url:r,options:n}){}get(t,r){return this.methodRequest("get",t,r)}post(t,r){return this.methodRequest("post",t,r)}patch(t,r){return this.methodRequest("patch",t,r)}put(t,r){return this.methodRequest("put",t,r)}delete(t,r){return this.methodRequest("delete",t,r)}methodRequest(t,r,n){return this.request(Promise.resolve(n).then(i=>Object.assign({method:t,path:r},i)))}
305request(t,r=null){return new z_(this,this.makeRequest(t,r,void 0))}async makeRequest(t,r,n){var i,a,o;const s=await t,l=(i=s.maxRetries)!==null&&i!==void 0?i:this.maxRetries;r==null&&(r=l),await this.prepareOptions(s);const{req:u,url:c,timeout:f}=await this.buildRequest(s,{retryCount:l-r});await this.prepareRequest(u,{url:c,options:s});const d="log_"+(Math.random()*(1<<24)|0).toString(16).padStart(6,"0"),m=n===void 0?"":`, retryOf: ${n}`,g=Date.now();if(ln(this).debug(`[${d}] sending request`,Xo({retryOfRequestLogID:n,method:s.method,url:c,options:s,headers:u.headers})),!((a=s.signal)===null||a===void 0)&&a.aborted)throw new Oy;const v=new AbortController,y=await this.fetchWithTimeout(c,u,f,v).catch(Ny),x=Date.now();if(y instanceof globalThis.Error){const _=`retrying, ${r} attempts remaining`;if(!((o=s.signal)===null||o===void 0)&&o.aborted)throw new Oy;const S=Iy(y)||/timed? ?out/i.test(String(y)+("cause"in y?String(y.cause):""));if(r)return ln(this).info(`[${d}] connection ${S?"timed out":"failed"} - ${_}`),ln(this).debug(`[${d}] connection ${S?"timed out":"failed"} (${_})`,Xo({retryOfRequestLogID:n,url:c,durationMs:x-g,message:y.message})),this.retryRequest(s,r,n??d);throw ln(this).info(`[${d}] connection ${S?"timed out":"failed"} - error; no more retries left`),ln(this).debug(`[${d}] connection ${S?"timed out":"failed"} (error; no more retries left)`,Xo({retryOfRequestLogID:n,url:c,durationMs:x-g,message:y.message})),S?new BR:new nm({cause:y})}const w=`[${d}${m}] ${u.method} ${c} ${y.ok?"succeeded":"failed"} with status ${y.status} in ${x-g}ms`;if(!y.ok){const _=await this.shouldRetry(y);if(r&&_){const C=`retrying, ${r} attempts remaining`;return await TY(y.body),ln(this).info(`${w} - ${C}`),ln(this).debug(`[${d}] response error (${C})`,Xo({retryOfRequestLogID:n,url:y.url,status:y.status,headers:y.headers,durationMs:x-g})),this.retryRequest(s,r,n??d,y.headers)}const S=_?"error; no more retries left":"error; not retryable";ln(this).info(`${w} - ${S}`);const T=await y.text().catch(C=>Ny(C).message),E=xY(T),A=E?void 0:T;throw ln(this).debug(`[${d}] response error (${S})`,Xo({retryOfRequestLogID:n,url:y.url,status:y.status,headers:y.headers,message:A,durationMs:Date.now()-g})),this.makeStatusError(y.status,E,A,y.headers)}return ln(this).info(w),ln(this).debug(`[${d}] response start`,Xo({retryOfRequestLogID:n,url:y.url,status:y.status,headers:y.headers,durationMs:x-g})),{response:y,options:s,controller:v,requestLogID:d,retryOfRequestLogID:n,startTime:g}}async fetchWithTimeout(t,r,n,i){const a=r||{},{signal:o,method:s}=a,l=uo(a,["signal","method"]),u=this._makeAbort(i);o&&o.addEventListener("abort",u,{once:!0});const c=setTimeout(u,n),f=globalThis.ReadableStream&&l.body instanceof globalThis.ReadableStream||typeof l.body=="object"&&l.body!==null&&Symbol.asyncIterator in l.body,d=Object.assign(Object.assign(Object.assign({signal:i.signal},f?{duplex:"half"}:{}),{method:"GET"}),l);s&&(d.method=s.toUpperCase());try{return await this.fetch.call(void 0,t,d)}finally{clearTimeout(c)}}async shouldRetry(t){const r=t.headers.get("x-should-retry");return r==="true"?!0:r==="false"?!1:t.status===408||t.status===409||t.status===429||t.status>=500}async retryRequest(t,r,n,i){var a;let o;const s=i==null?void 0:i.get("retry-after-ms");if(s){const u=parseFloat(s);Number.isNaN(u)||(o=u)}const l=i==null?void 0:i.get("retry-after");if(l&&!o){const u=parseFloat(l);Number.isNaN(u)?o=Date.parse(l)-Date.now():o=u*1e3}if(o===void 0){const u=(a=t.maxRetries)!==null&&a!==void 0?a:this.maxRetries;o=this.calculateDefaultRetryTimeoutMillis(r,u)}return await _Y(o),this.makeRequest(t,r-1,n)}calculateDefaultRetryTimeoutMillis(t,r){const a=r-t,o=Math.min(.5*Math.pow(2,a),8),s=1-Math.random()*.25;return o*s*1e3}async buildRequest(t,{retryCount:r=0}={}){var n,i,a;const o=Object.assign({},t),{method:s,path:l,query:u,defaultBaseURL:c}=o,f=this.buildURL(l,u,c);"timeout"in o&&yY("timeout",o.timeout),o.timeout=(n=o.timeout)!==null&&n!==void 0?n:this.timeout;const{bodyHeaders:d,body:m}=this.buildBody({options:o}),g=await this.buildHeaders({options:t,method:s,bodyHeaders:d,retryCount:r});return{req:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({method:s,headers:g},o.signal&&{signal:o.signal}),globalThis.ReadableStream&&m instanceof globalThis.ReadableStream&&{duplex:"half"}),m&&{body:m}),(i=this.fetchOptions)!==null&&i!==void 0?i:{}),(a=o.fetchOptions)!==null&&a!==void 0?a:{}),url:f,timeout:o.timeout}}async buildHeaders({options:t,method:r,bodyHeaders:n,retryCount:i}){let a={};this.idempotencyHeader&&r!=="get"&&(t.idempotencyKey||(t.idempotencyKey=this.defaultIdempotencyKey()),a[this.idempotencyHeader]=t.idempotencyKey);const o=await this.authHeaders(t);let s=rc([a,{Accept:"application/json","User-Agent":this.getUserAgent()},this._options.defaultHeaders,n,t.headers,o]);return this.validateHeaders(s),s.values}_makeAbort(t){return()=>t.abort()}buildBody({options:{body:t,headers:r}}){if(!t)return{bodyHeaders:void 0,body:void 0};const n=rc([r]);return ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof DataView||typeof t=="string"&&n.values.has("content-type")||globalThis.Blob&&t instanceof globalThis.Blob||t instanceof FormData||t instanceof URLSearchParams||globalThis.ReadableStream&&t instanceof globalThis.ReadableStream?{bodyHeaders:void 0,body:t}:typeof t=="object"&&(Symbol.asyncIterator in t||Symbol.iterator in t&&"next"in t&&typeof t.next=="function")?{bodyHeaders:void 0,body:EY(t)}:typeof t=="object"&&n.values.get("content-type")==="application/x-www-form-urlencoded"?{bodyHeaders:{"content-type":"application/x-www-form-urlencoded"},body:this.stringifyQuery(t)}:this.encoder({body:t,headers:n})}}am.DEFAULT_TIMEOUT=6e4;class xr extends am{constructor(){super(...arguments),this.interactions=new eM(this),this.webhooks=new rM(this)}}iM=xr;xr.GeminiNextGenAPIClient=iM;xr.GeminiNextGenAPIClientError=di;xr.APIError=_n;xr.APIConnectionError=nm;xr.APIConnectionTimeoutError=BR;xr.APIUserAbortError=Oy;xr.NotFoundError=HR;xr.ConflictError=jR;xr.RateLimitError=WR;xr.BadRequestError=UR;xr.AuthenticationError=GR;xr.InternalServerError=qR;xr.PermissionDeniedError=VR;xr.UnprocessableEntityError=zR;xr.toFile=NY;xr.Interactions=eM;xr.Webhooks=rM;
305/** 306 * @license 307 * Copyright 2025 Google LLC 308 * SPDX-License-Identifier: Apache-2.0 309 */function HY(e,t){const r={},n=h(e,["name"]);return n!=null&&p(r,["_url","name"],n),r}function jY(e,t){const r={},n=h(e,["name"]);return n!=null&&p(r,["_url","name"],n),r}function zY(e,t){const r={},n=h(e,["sdkHttpResponse"]);return n!=null&&p(r,["sdkHttpResponse"],n),r}function WY(e,t){const r={},n=h(e,["sdkHttpResponse"]);return n!=null&&p(r,["sdkHttpResponse"],n),r}function qY(e,t,r){const n={};if(h(e,["validationDataset"])!==void 0)throw new Error("validationDataset parameter is not supported in Gemini API.");const i=h(e,["tunedModelDisplayName"]);if(t!==void 0&&i!=null&&p(t,["displayName"],i),h(e,["description"])!==void 0)throw new Error("description parameter is not supported in Gemini API.");const a=h(e,["epochCount"]);t!==void 0&&a!=null&&p(t,["tuningTask","hyperparameters","epochCount"],a);const o=h(e,["learningRateMultiplier"]);if(o!=null&&p(n,["tuningTask","hyperparameters","learningRateMultiplier"],o),h(e,["exportLastCheckpointOnly"])!==void 0)throw new Error("exportLastCheckpointOnly parameter is not supported in Gemini API.");if(h(e,["preTunedModelCheckpointId"])!==void 0)throw new Error("preTunedModelCheckpointId parameter is not supported in Gemini API.");if(h(e,["adapterSize"])!==void 0)throw new Error("adapterSize parameter is not supported in Gemini API.");if(h(e,["tuningMode"])!==void 0)throw new Error("tuningMode parameter is not supported in Gemini API.");if(h(e,["customBaseModel"])!==void 0)throw new Error("customBaseModel parameter is not supported in Gemini API.");const s=h(e,["batchSize"]);t!==void 0&&s!=null&&p(t,["tuningTask","hyperparameters","batchSize"],s);const l=h(e,["learningRate"]);if(t!==void 0&&l!=null&&p(t,["tuningTask","hyperparameters","learningRate"],l),h(e,["labels"])!==void 0)throw new Error("labels parameter is not supported in Gemini API.");if(h(e,["beta"])!==void 0)throw new Error("beta parameter is not supported in Gemini API.");if(h(e,["baseTeacherModel"])!==void 0)throw new Error("baseTeacherModel parameter is not supported in Gemini API.");if(h(e,["tunedTeacherModelSource"])!==void 0)throw new Error("tunedTeacherModelSource parameter is not supported in Gemini API.");if(h(e,["sftLossWeightMultiplier"])!==void 0)throw new Error("sftLossWeightMultiplier parameter is not supported in Gemini API.");if(h(e,["outputUri"])!==void 0)throw new Error("outputUri parameter is not supported in Gemini API.");if(h(e,["encryptionSpec"])!==void 0)throw new Error("encryptionSpec parameter is not supported in Gemini API.");return n}function KY(e,t,r){const n={};let i=h(r,["config","method"]);if(i===void 0&&(i="SUPERVISED_FINE_TUNING"),i==="SUPERVISED_FINE_TUNING"){const E=h(e,["validationDataset"]);t!==void 0&&E!=null&&p(t,["supervisedTuningSpec"],Gv(E))}else if(i==="PREFERENCE_TUNING"){const E=h(e,["validationDataset"]);t!==void 0&&E!=null&&p(t,["preferenceOptimizationSpec"],Gv(E))}else if(i==="DISTILLATION"){const E=h(e,["validationDataset"]);t!==void 0&&E!=null&&p(t,["distillationSpec"],Gv(E))}const a=h(e,["tunedModelDisplayName"]);t!==void 0&&a!=null&&p(t,["tunedModelDisplayName"],a);const o=h(e,["description"]);t!==void 0&&o!=null&&p(t,["description"],o);let s=h(r,["config","method"]);if(s===void 0&&(s="SUPERVISED_FINE_TUNING"),s==="SUPERVISED_FINE_TUNING"){const E=h(e,["epochCount"]);t!==void 0&&E!=null&&p(t,["supervisedTuningSpec","hyperParameters","epochCount"],E)}else if(s==="PREFERENCE_TUNING"){const E=h(e,["epochCount"]);t!==void 0&&E!=null&&p(t,["preferenceOptimizationSpec","hyperParameters","epochCount"],E)}else if(s==="DISTILLATION"){const E=h(e,["epochCount"]);t!==void 0&&E!=null&&p(t,["distillationSpec","hyperParameters","epochCount"],E)}let l=h(r,["config","method"]);if(l===void 0&&(l="SUPERVISED_FINE_TUNING"),l==="SUPERVISED_FINE_TUNING"){const E=h(e,["learningRateMultiplier"]);t!==void 0&&E!=null&&p(t,["supervisedTuningSpec","hyperParameters","learningRateMultiplier"],E)}else if(l==="PREFERENCE_TUNING"){const E=h(e,["learningRateMultiplier"]);t!==void 0&&E!=null&&p(t,["preferenceOptimizationSpec","hyperParameters","learningRateMultiplier"],E)}else if(l==="DISTILLATION"){const E=h(e,["learningRateMultiplier"]);t!==void 0&&E!=null&&p(t,["distillationSpec","hyperParameters","learningRateMultiplier"],E)}let u=h(r,["config","method"]);if(u===void 0&&(u="SUPERVISED_FINE_TUNING"),u==="SUPERVISED_FINE_TUNING"){const E=h(e,["exportLastCheckpointOnly"]);t!==void 0&&E!=null&&p(t,["supervisedTuningSpec","exportLastCheckpointOnly"],E)}else if(u==="PREFERENCE_TUNING"){const E=h(e,["exportLastCheckpointOnly"]);t!==void 0&&E!=null&&p(t,["preferenceOptimizationSpec","exportLastCheckpointOnly"],E)}else if(u==="DISTILLATION"){const E=h(e,["exportLastCheckpointOnly"]);t!==void 0&&E!=null&&p(t,["distillationSpec","exportLastCheckpointOnly"],E)}let c=h(r,["config","method"]);if(c===void 0&&(c="SUPERVISED_FINE_TUNING"),c==="SUPERVISED_FINE_TUNING"){const E=h(e,["adapterSize"]);t!==void 0&&E!=null&&p(t,["supervisedTuningSpec","hyperParameters","adapterSize"],E)}else if(c==="PREFERENCE_TUNING"){const E=h(e,["adapterSize"]);t!==void 0&&E!=null&&p(t,["preferenceOptimizationSpec","hyperParameters","adapterSize"],E)}else if(c==="DISTILLATION"){const E=h(e,["adapterSize"]);t!==void 0&&E!=null&&p(t,["distillationSpec","hyperParameters","adapterSize"],E)}let f=h(r,["config","method"]);if(f===void 0&&(f="SUPERVISED_FINE_TUNING"),f==="SUPERVISED_FINE_TUNING"){const E=h(e,["tuningMode"]);t!==void 0&&E!=null&&p(t,["supervisedTuningSpec","tuningMode"],E)}else if(f==="DISTILLATION"){const E=h(e,["tuningMode"]);t!==void 0&&E!=null&&p(t,["distillationSpec","tuningMode"],E)}const d=h(e,["customBaseModel"]);t!==void 0&&d!=null&&p(t,["customBaseModel"],d);let m=h(r,["config","method"]);if(m===void 0&&(m="SUPERVISED_FINE_TUNING"),m==="SUPERVISED_FINE_TUNING"){const E=h(e,["batchSize"]);t!==void 0&&E!=null&&p(t,["supervisedTuningSpec","hyperParameters","batchSize"],E)}else if(m==="DISTILLATION"){const E=h(e,["batchSize"]);t!==void 0&&E!=null&&p(t,["distillationSpec","hyperParameters","batchSize"],E)}let g=h(r,["config","method"]);if(g===void 0&&(g="SUPERVISED_FINE_TUNING"),g==="SUPERVISED_FINE_TUNING"){const E=h(e,["learningRate"]);t!==void 0&&E!=null&&p(t,["supervisedTuningSpec","hyperParameters","learningRate"],E)}else if(g==="DISTILLATION"){const E=h(e,["learningRate"]);t!==void 0&&E!=null&&p(t,["distillationSpec","hyperParameters","learningRate"],E)}const v=h(e,["labels"]);t!==void 0&&v!=null&&p(t,["labels"],v);const y=h(e,["beta"]);t!==void 0&&y!=null&&p(t,["preferenceOptimizationSpec","hyperParameters","beta"],y);const x=h(e,["baseTeacherModel"]);t!==void 0&&x!=null&&p(t,["distillationSpec","baseTeacherModel"],x);const w=h(e,["tunedTeacherModelSource"]);t!==void 0&&w!=null&&p(t,["distillationSpec","tunedTeacherModelSource"],w);const _=h(e,["sftLossWeightMultiplier"]);t!==void 0&&_!=null&&p(t,["distillationSpec","hyperParameters","sftLossWeightMultiplier"],_);const S=h(e,["outputUri"]);t!==void 0&&S!=null&&p(t,["outputUri"],S);const T=h(e,["encryptionSpec"]);return t!==void 0&&T!=null&&p(t,["encryptionSpec"],T),n}
309function YY(e,t){const r={},n=h(e,["baseModel"]);n!=null&&p(r,["baseModel"],n);const i=h(e,["preTunedModel"]);i!=null&&p(r,["preTunedModel"],i);const a=h(e,["trainingDataset"]);a!=null&&nX(a);const o=h(e,["config"]);return o!=null&&qY(o,r),r}function XY(e,t){const r={},n=h(e,["baseModel"]);n!=null&&p(r,["baseModel"],n);const i=h(e,["preTunedModel"]);i!=null&&p(r,["preTunedModel"],i);const a=h(e,["trainingDataset"]);a!=null&&iX(a,r,t);const o=h(e,["config"]);return o!=null&&KY(o,r,t),r}function JY(e,t){const r={},n=h(e,["name"]);return n!=null&&p(r,["_url","name"],n),r}function ZY(e,t){const r={},n=h(e,["name"]);return n!=null&&p(r,["_url","name"],n),r}function QY(e,t,r){const n={},i=h(e,["pageSize"]);t!==void 0&&i!=null&&p(t,["_query","pageSize"],i);const a=h(e,["pageToken"]);t!==void 0&&a!=null&&p(t,["_query","pageToken"],a);const o=h(e,["filter"]);return t!==void 0&&o!=null&&p(t,["_query","filter"],o),n}function eX(e,t){const r={},n=h(e,["config"]);return n!=null&&QY(n,r),r}function tX(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["nextPageToken"]);i!=null&&p(r,["nextPageToken"],i);const a=h(e,["tuningJobs"]);if(a!=null){let o=a;Array.isArray(o)&&(o=o.map(s=>Dy(s))),p(r,["tuningJobs"],o)}return r}function rX(e,t){const r={},n=h(e,["name"]);n!=null&&p(r,["model"],n);const i=h(e,["name"]);return i!=null&&p(r,["endpoint"],i),r}function nX(e,t){const r={};if(h(e,["gcsUri"])!==void 0)throw new Error("gcsUri parameter is not supported in Gemini API.");if(h(e,["vertexDatasetResource"])!==void 0)throw new Error("vertexDatasetResource parameter is not supported in Gemini API.");const n=h(e,["examples"]);if(n!=null){let i=n;Array.isArray(i)&&(i=i.map(a=>a)),p(r,["examples","examples"],i)}return r}function iX(e,t,r){const n={};let i=h(r,["config","method"]);if(i===void 0&&(i="SUPERVISED_FINE_TUNING"),i==="SUPERVISED_FINE_TUNING"){const o=h(e,["gcsUri"]);t!==void 0&&o!=null&&p(t,["supervisedTuningSpec","trainingDatasetUri"],o)}else if(i==="PREFERENCE_TUNING"){const o=h(e,["gcsUri"]);t!==void 0&&o!=null&&p(t,["preferenceOptimizationSpec","trainingDatasetUri"],o)}else if(i==="DISTILLATION"){const o=h(e,["gcsUri"]);t!==void 0&&o!=null&&p(t,["distillationSpec","promptDatasetUri"],o)}let a=h(r,["config","method"]);if(a===void 0&&(a="SUPERVISED_FINE_TUNING"),a==="SUPERVISED_FINE_TUNING"){const o=h(e,["vertexDatasetResource"]);t!==void 0&&o!=null&&p(t,["supervisedTuningSpec","trainingDatasetUri"],o)}else if(a==="PREFERENCE_TUNING"){const o=h(e,["vertexDatasetResource"]);t!==void 0&&o!=null&&p(t,["preferenceOptimizationSpec","trainingDatasetUri"],o)}else if(a==="DISTILLATION"){const o=h(e,["vertexDatasetResource"]);t!==void 0&&o!=null&&p(t,["distillationSpec","promptDatasetUri"],o)}if(h(e,["examples"])!==void 0)throw new Error("examples parameter is not supported in Gemini Enterprise Agent Platform (previously known as Vertex AI).");return n}function aX(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["name"]);i!=null&&p(r,["name"],i);const a=h(e,["state"]);a!=null&&p(r,["state"],_R(a));const o=h(e,["createTime"]);o!=null&&p(r,["createTime"],o);const s=h(e,["tuningTask","startTime"]);s!=null&&p(r,["startTime"],s);const l=h(e,["tuningTask","completeTime"]);l!=null&&p(r,["endTime"],l);const u=h(e,["updateTime"]);u!=null&&p(r,["updateTime"],u);const c=h(e,["description"]);c!=null&&p(r,["description"],c);const f=h(e,["baseModel"]);f!=null&&p(r,["baseModel"],f);const d=h(e,["_self"]);return d!=null&&p(r,["tunedModel"],rX(d)),r}function Dy(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["name"]);i!=null&&p(r,["name"],i);const a=h(e,["state"]);a!=null&&p(r,["state"],_R(a));const o=h(e,["createTime"]);o!=null&&p(r,["createTime"],o);const s=h(e,["startTime"]);s!=null&&p(r,["startTime"],s);const l=h(e,["endTime"]);l!=null&&p(r,["endTime"],l);const u=h(e,["updateTime"]);u!=null&&p(r,["updateTime"],u);const c=h(e,["error"]);c!=null&&p(r,["error"],c);const f=h(e,["description"]);f!=null&&p(r,["description"],f);const d=h(e,["baseModel"]);d!=null&&p(r,["baseModel"],d);const m=h(e,["tunedModel"]);m!=null&&p(r,["tunedModel"],m);const g=h(e,["preTunedModel"]);g!=null&&p(r,["preTunedModel"],g);const v=h(e,["supervisedTuningSpec"]);v!=null&&p(r,["supervisedTuningSpec"],v);const y=h(e,["preferenceOptimizationSpec"]);y!=null&&p(r,["preferenceOptimizationSpec"],y);const x=h(e,["distillationSpec"]);x!=null&&p(r,["distillationSpec"],x);const w=h(e,["tuningDataStats"]);w!=null&&p(r,["tuningDataStats"],w);const _=h(e,["encryptionSpec"]);_!=null&&p(r,["encryptionSpec"],_);const S=h(e,["partnerModelTuningSpec"]);S!=null&&p(r,["partnerModelTuningSpec"],S);const T=h(e,["customBaseModel"]);T!=null&&p(r,["customBaseModel"],T);const E=h(e,["evaluateDatasetRuns"]);if(E!=null){let J=E;Array.isArray(J)&&(J=J.map(F=>F)),p(r,["evaluateDatasetRuns"],J)}const A=h(e,["experiment"]);A!=null&&p(r,["experiment"],A);const P=h(e,["fullFineTuningSpec"]);P!=null&&p(r,["fullFineTuningSpec"],P);const C=h(e,["labels"]);C!=null&&p(r,["labels"],C);const N=h(e,["outputUri"]);N!=null&&p(r,["outputUri"],N);const M=h(e,["pipelineJob"]);M!=null&&p(r,["pipelineJob"],M);const k=h(e,["serviceAccount"]);k!=null&&p(r,["serviceAccount"],k);const H=h(e,["tunedModelDisplayName"]);H!=null&&p(r,["tunedModelDisplayName"],H);const K=h(e,["tuningJobState"]);K!=null&&p(r,["tuningJobState"],K);const U=h(e,["veoTuningSpec"]);U!=null&&p(r,["veoTuningSpec"],U);const Y=h(e,["distillationSamplingSpec"]);Y!=null&&p(r,["distillationSamplingSpec"],Y);const W=h(e,["tuningJobMetadata"]);return W!=null&&p(r,["tuningJobMetadata"],W),r}function oX(e,t){const r={},n=h(e,["sdkHttpResponse"]);n!=null&&p(r,["sdkHttpResponse"],n);const i=h(e,["name"]);i!=null&&p(r,["name"],i);const a=h(e,["metadata"]);a!=null&&p(r,["metadata"],a);const o=h(e,["done"]);o!=null&&p(r,["done"],o);const s=h(e,["error"]);return s!=null&&p(r,["error"],s),r}function Gv(e,t){const r={},n=h(e,["gcsUri"]);n!=null&&p(r,["validationDatasetUri"],n);const i=h(e,["vertexDatasetResource"]);return i!=null&&p(r,["validationDatasetUri"],i),r}
309/** 310 * @license 311 * Copyright 2025 Google LLC 312 * SPDX-License-Identifier: Apache-2.0 313 */class sX extends Ba{constructor(t){super(),this.apiClient=t,this.list=async(r={})=>new Bs(Ra.PAGED_ITEM_TUNING_JOBS,n=>this.listInternal(n),await this.listInternal(r),r),this.get=async r=>await this.getInternal(r),this.tune=async r=>{var n;if(this.apiClient.isVertexAI())if(r.baseModel.startsWith("projects/")){const i={tunedModelName:r.baseModel};!((n=r.config)===null||n===void 0)&&n.preTunedModelCheckpointId&&(i.checkpointId=r.config.preTunedModelCheckpointId);const a=Object.assign(Object.assign({},r),{preTunedModel:i});return a.baseModel=void 0,await this.tuneInternal(a)}else{const i=Object.assign({},r);return await this.tuneInternal(i)}else{const i=Object.assign({},r),a=await this.tuneMldevInternal(i);let o="";return a.metadata!==void 0&&a.metadata.tunedModel!==void 0?o=a.metadata.tunedModel:a.name!==void 0&&a.name.includes("/operations/")&&(o=a.name.split("/operations/")[0]),{name:o,state:Ty.JOB_STATE_QUEUED}}}}async getInternal(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=ZY(t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
313Signal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>Dy(c))}else{const u=JY(t);return s=Ae("{name}",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"GET",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>aX(c))}}async listInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI()){const s=eX(t);return a=Ae("tuningJobs",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"GET",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json().then(u=>{const c=u;return c.sdkHttpResponse={headers:l.headers},c})),i.then(l=>{const u=tX(l),c=new xH;return Object.assign(c,u),c})}else throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).")}async cancel(t){var r,n,i,a;let o,s="",l={};if(this.apiClient.isVertexAI()){const u=jY(t);return s=Ae("{name}:cancel",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
313Signal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=WY(c),d=new NA;return Object.assign(d,f),d})}else{const u=HY(t);return s=Ae("{name}:cancel",u._url),l=u._query,delete u._url,delete u._query,o=this.apiClient.request({path:s,queryParams:l,body:JSON.stringify(u),httpMethod:"POST",httpOptions:(i=t.config)===null||i===void 0?void 0:i.httpOptions,abortSignal:(a=t.config)===null||a===void 0?void 0:a.abortSignal}).then(c=>c.json().then(f=>{const d=f;return d.sdkHttpResponse={headers:c.headers},d})),o.then(c=>{const f=zY(c),d=new NA;return Object.assign(d,f),d})}}async tuneInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI()){const s=XY(t,t);return a=Ae("tuningJobs",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abortSignal}).then(l=>l.json().then(u=>{const c=u;return c.sdkHttpResponse={headers:l.headers},c})),i.then(l=>Dy(l))}else throw new Error("This method is only supported by the Gemini Enterprise Agent Platform (previously known as Vertex AI).")}async tuneMldevInternal(t){var r,n;let i,a="",o={};if(this.apiClient.isVertexAI())throw new Error("This method is only supported by the Gemini Developer API.");{const s=YY(t);return a=Ae("tunedModels",s._url),o=s._query,delete s._url,delete s._query,i=this.apiClient.request({path:a,queryParams:o,body:JSON.stringify(s),httpMethod:"POST",httpOptions:(r=t.config)===null||r===void 0?void 0:r.httpOptions,abortSignal:(n=t.config)===null||n===void 0?void 0:n.abort
313Signal}).then(l=>l.json().then(u=>{const c=u;return c.sdkHttpResponse={headers:l.headers},c})),i.then(l=>oX(l))}}}/** 314 * @license 315 * Copyright 2025 Google LLC 316 * SPDX-License-Identifier: Apache-2.0 317 */class lX{async download(t,r){throw new Error("Download to file is not supported in the browser, please use a browser compliant download like an <a> tag.")}}const uX=1024*1024*8,cX=3,fX=1e3,dX=2,bh="x-goog-upload-status";async function hX(e,t,r,n){var i;const a=await aM(e,t,r,n),o=await(a==null?void 0:a.json());if(((i=a==null?void 0:a.headers)===null||i===void 0?void 0:i[bh])!=="final")throw new Error("Failed to upload file: Upload status is not finalized.");return o.file}async function pX(e,t,r,n){var i;const a=await aM(e,t,r,n),o=await(a==null?void 0:a.json());if(((i=a==null?void 0:a.headers)===null||i===void 0?void 0:i[bh])!=="final")throw new Error("Failed to upload file: Upload status is not finalized.");const s=pR(o),l=new L_;return Object.assign(l,s),l}async function aM(e,t,r,n){var i,a,o;let s=t;const l=(n==null?void 0:n.baseUrl)||((i=r.clientOptions.httpOptions)===null||i===void 0?void 0:i.baseUrl);if(l){const m=new URL(l),g=new URL(t);g.protocol=m.protocol,g.host=m.host,g.port=m.port,s=g.toString()}let u=0,c=0,f=new Eh(new Response),d="upload";for(u=e.size;c<u;){const m=Math.min(uX,u-c),g=e.slice(c,c+m);c+m>=u&&(d+=", finalize");let v=0,y=fX;for(;v<cX;){const x=Object.assign(Object.assign({},(n==null?void 0:n.headers)||{}),{"X-Goog-Upload-Command":d,"X-Goog-Upload-Offset":String(c),"Content-Length":String(m)});if(f=await r.request({path:"",body:g,httpMethod:"POST",httpOptions:Object.assign(Object.assign({},n),{apiVersion:"",baseUrl:s,headers:x})}),!((a=f==null?void 0:f.headers)===null||a===void 0)&&a[bh])break;v++,await vX(y),y=y*dX}if(c+=m,((o=f==null?void 0:f.headers)===null||o===void 0?void 0:o[bh])!=="active")break;if(u<=c)throw new Error("All content has been uploaded, but the upload status is not finalized.")}return f}async function mX(e){return{size:e.size,type:e.type}}function vX(e){return new Promise(t=>setTimeout(t,e))}class gX{async upload(t,r,n,i){if(typeof t=="string")throw new Error("File path is not supported in browser uploader.");return await hX(t,r,n,i)}async uploadToFileSearchStore(t,r,n,i){if(typeof t=="string")throw new Error("File path is not supported in browser uploader.");return await pX(t,r,n,i)}async stat(t){if(typeof t=="string")throw new Error("File path is not supported in browser uploader.");return await mX(t)}}/** 318 * @license 319 * Copyright 2025 Google LLC 320 * SPDX-License-Identifier: Apache-2.0 321 */class yX{create(t,r,n){return new xX(t,r,n)}}class xX{constructor(t,r,n){this.url=t,this.headers=r,this.callbacks=n}connect(){this.ws=new WebSocket(this.url),this.ws.onopen=this.callbacks.onopen,this.ws.onerror=this.callbacks.onerror,this.ws.onclose=this.callbacks.onclose,this.ws.onmessage=this.callbacks.onmessage}send(t){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.send(t)}close(){if(this.ws===void 0)throw new Error("WebSocket is not connected");this.ws.close()}}/** 322 * @license 323 * Copyright 2025 Google LLC 324 * SPDX-License-Identifier: Apache-2.0 325 */const ob="x-goog-api-key";class _X{constructor(t){this.apiKey=t}async addAuthHeaders(t,r){if(t.get(ob)===null){if(this.apiKey.startsWith("auth_tokens/"))throw new Error("Ephemeral tokens are only supported by the live API.");if(!this.apiKey)throw new Error("API key is missing. Please provide a valid API key.");t.append(ob,this.apiKey)}}}/** 326 * @license 327 * Copyright 2025 Google LLC 328 * SPDX-License-Identifier: Apache-2.0 329 */const wX="gl-node/";class EX{getNextGenClient(){var t;const r=this.httpOptions;if(this._nextGenClient===void 0){const n=this.httpOptions;this._nextGenClient=new xr({baseURL:this.apiClient.getBaseUrl(),apiKey:this.apiKey,apiVersion:this.apiClient.getApiVersion(),clientAdapter:this.apiClient,defaultHeaders:this.apiClient.getDefaultHeaders(),timeout:n==null?void 0:n.timeout,maxRetries:(t=n==null?void 0:n.retryOptions)===null||t===void 0?void 0:t.attempts})}return r!=null&&r.extraBody&&console.warn("GoogleGenAI.interactions: Client level httpOptions.extraBody is not supported by the interactions client and will be ignored."),this._nextGenClient}get interactions(){return this._interactions!==void 0?this._interactions:(console.warn("GoogleGenAI.interactions: Interactions usage is experimental and may change in future versions."),this._interactions=this.getNextGenClient().interactions,this._interactions)}get webhooks(){return this._webhooks!==void 0?this._webhooks:(this._webhooks=this.getNextGenClient().webhooks,this._webhooks)}constructor(t){var r;if(t.apiKey==null)throw new Error("An API Key must be set when running in a browser");if(t.project||t.location)throw new Error("Vertex AI project based authentication is not supported on browser runtimes. Please do not provide a project or location.");this.vertexai=(r=t.vertexai)!==null&&r!==void 0?r:!1,this.apiKey=t.apiKey;const n=ZV(t.httpOptions,t.vertexai,void 0,void 0);n&&(t.httpOptions?t.httpOptions.baseUrl=n:t.httpOptions={baseUrl:n}),this.apiVersion=t.apiVersion,this.httpOptions=t.httpOptions;const i=new _X(this.apiKey);this.apiClient=new xK({auth:i,apiVersion:this.apiVersion,apiKey:this.apiKey,vertexai:this.vertexai,httpOptions:this.httpOptions,userAgentExtra:wX+"web",uploader:new gX,downloader:new lX}),this.models=new $K(this.apiClient),this.live=new OK(this.apiClient,i,new yX),this.batches=new Rj(this.apiClient),this.chats=new gz(this.models,this.apiClient),this.caches=new pz(this.apiClient),this.files=new kz(this.apiClient),this.operations=new BK(this.apiClient),this.authTokens=new nY(this.apiClient),this.tunings=new sX(this.apiClient),this.fileSearchStores=new fY(this.apiClient)}}const W_=new EX({apiKey:"AIzaSyCcq8TrVEKfMFhyDeOHO62_FqneCTVYhJU"}),TX=e=>` 330You are a Senior Data Journalism Design Specialist for Semanario Búsqueda, Uruguay's most influential newspaper. Your task is to analyze the provided journalistic text and propose potential data visualizations. Adhere to the highest global standards: Financial Times for logic, The Economist for rigor, and The New York Times for narrative. 331 332**STRICT RULES FOR INTERPRETATION:** 3331. **SOURCE OF TRUTH:** The provided text is the ONLY source of information. Do not use external knowledge, historical context, or general assumptions not explicitly written in the text. 3342. **LITERAL INTERPRETATION:** Interpret the text exactly as it is. Do not infer intent or meaning beyond what is strictly written. 3353. **NO HALLUCINATIONS:** Do not invent, infer, or hallucinate any numerical, statistical, or geographical data. If the data is not in the text, it does not exist for this analysis. 3364. **CHART SELECTION:** For the choice of chart type, strictly follow the decision tree guidelines from "From Data to Viz" (https://www.data-to-viz.com/#portfolio). Select the most appropriate chart type based *only* on the data structure present in the text. 337 338**INPUT TEXT:** 339--- 340${e} 341--- 342 343**OUTPUT FORMAT:** 344You MUST respond with a single, valid JSON object. Do not add any text before or after the JSON object. The JSON object must have the following structure: 345{ 346 "visualizations": [ 347 { 348 "title": "A concise, journalistic title derived ONLY from the text.", 349 "finding": "The single, most important journalistic finding explicitly supported by the text.", 350 "ftCategory": "The category from the FT Visual Vocabulary (e.g., 'Change over time', 'Magnitude').", 351 "chartType": "The proposed chart type (e.g., 'Line chart', 'Column chart', 'Stacked column chart', 'Table').", 352 "justification": "A brief explanation of why this chart type is the best choice based on the available data.", 353 "missingData": "A statement about what data is missing for this chart, if any. If no data is missing, this field should be an empty string ''.", 354 "keyLabels": [ { "key": "data_key_1", "label": "Etiqueta en Español 1" }, { "key": "data_key_2", "label": "Etiqueta en Español 2" } ] 355 } 356 ] 357} 358`,SX=(e,t)=>` 359You are a Strict Data Extraction Engine. Your task is to extract the EXACT numerical data from the provided journalistic text to populate a ${e.chartType}. 360 361**CRITICAL RULES:** 3621. **NO SIMULATION:** Do not simulate, invent, or estimate data. Use ONLY numbers explicitly present in the text. 3632. **PRECISION:** Map the data exactly as it appears. If the text says "20%", the value is 20. If the text says "about half", you may use 50, but do not invent arbitrary specific numbers (e.g., don't use 48.5 unless written). 3643. **CONSISTENCY:** The data must match the "Central Finding" identified: "${e.finding}". 3654. **STRUCTURE:** The output structure MUST be a valid JSON array of objects compatible with the 'recharts' library. 366 367**Original Journalistic Text:** 368--- 369${t} 370--- 371 372**Task:** 373Generate a JSON array of data points. 374- For a Column/Line/Area chart, each object should have a 'name' (category/year) and numeric data keys. 375- For a Pie chart, each object should have a 'name' and a 'value'. 376- For a Table, keys should be consistent columns. 377 378**OUTPUT FORMAT:** 379You MUST respond with a single, valid JSON array of objects. Do not add any text, explanations, or markdown formatting before or after the JSON array. 380`,AX=`You are a strict data extraction specialist. Your task is to transcribe all text, numbers, and tabular data from the provided file EXACTLY as they appear. 381- Do not summarize. 382- Do not correct typos. 383- Do not interpret. 384- If the file contains a table, output it as a Markdown table preserving the exact values. 385- If it is text, output the raw text.`,bX={type:Kt.OBJECT,properties:{visualizations:{type:Kt.ARRAY,items:{type:Kt.OBJECT,properties:{title:{type:Kt.STRING},finding:{type:Kt.STRING},ftCategory:{type:Kt.STRING},chartType:{type:Kt.STRING},justification:{type:Kt.STRING},missingData:{type:Kt.STRING},keyLabels:{type:Kt.ARRAY,items:{type:Kt.OBJECT,properties:{key:{type:Kt.STRING},label:{type:Kt.STRING}},required:["key","label"]}}},required:["title","finding","ftCategory","chartType","justification","missingData"]}}},required:["visualizations"]},CX=e=>e.replace(/^```json\s*/,"").replace(/^```\s*/,"").replace(/\s*```$/,""),PX=e=>new Promise(t=>setTimeout(t,e)),kX=async e=>{var t;try{const n=(t=(await W_.models.generateContent({model:"gemini-3.1-pro-preview",contents:TX(e),config:{responseMimeType:"application/json",responseSchema:bX}})).text)==null?void 0:t.trim();if(!n)throw new Error("No response received from Gemini.");return JSON.parse(n)}catch(r){throw console.error("Error analyzing text with Gemini:",r),new Error(`Failed to get analysis from Gemini API: ${r instanceof Error?r.message:String(r)}`)}},IX=async(e,t)=>{var r;try{const i=(r=(await W_.models.generateContent({model:"gemini-3.1-pro-preview",contents:SX(e,t),config:{responseMimeType:"application/json"}})).text)==null?void 0:r.trim();if(!i)throw new Error("No data received from Gemini.");const a=CX(i);return JSON.parse(a)}catch(n){throw console.error("Error generating visualization data with Gemini:",n),new Error(`Failed to get visualization data from Gemini API: ${n instanceof Error?n.message:String(n)}`)}},oM=async(e,t=3)=>{try{const r={inlineData:{data:e.data,mimeType:e.mimeType}},n={text:AX},i=await W_.models.generateContent({model:"gemini-3.1-pro-preview",contents:{parts:[r,n]}});if(!i.text)throw new Error("La IA no devolvió texto para este archivo.");return i.text.trim()}catch(r){if(r.message&&(r.message.includes("503")||r.message.toLowerCase().includes("overloaded")||r.message.toLowerCase().includes("unavailable"))&&t>0)return await PX(3e3),oM(e,t-1);throw new Error(`No se pudo extraer el texto del archivo: ${r.message||String(r)}`)}},NX=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})}),OX=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125v-1.5c0-.621.504-1.125 1.125-1.125h17.25c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm-17.25-3.375h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125v-1.5c0-.621.504-1.125 1.125-1.125h17.25c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm-17.25-3.375h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125v-1.5c0-.621.504-1.125 1.125-1.125h17.25c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Zm1.125 0h.008v.015h-.008v-.015Z"})}),RX=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})}),MX=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})}),c0=({icon:e,title:t,description:r,onClick:n})=>b.jsxs("button",{onClick:n,className:"flex flex-col items-center justify-start text-center p-6 bg-white rounded-lg shadow-md border border-gray-200 hover:shadow-lg hover:border-blue-800 transition-all duration-200 transform hover:-translate-y-1 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-800 h-full",children:[b.jsx("div",{className:"text-blue-800 mb-3",children:e}),b.jsx("h3",{className:"text-lg font-semibold text-gray-900",children:t}),b.jsx("p",{className:"text-sm text-gray-700 mt-1 flex-grow",children:r})]}),DX=({onSelectMode:e})=>b.jsxs("div",{className:"bg-white p-6 sm:p-8 rounded-lg shadow-md border border-gray-200",children:[b.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"1. Seleccione el formato de sus datos"}),b.jsx("p",{className:"text-gray-700 mb-8",children:"Elija el tipo de contenido que desea analizar para generar una visualización."}),b.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6",children:[b.jsx(c0,{icon:b.jsx(NX,{className:"w-12 h-12"}),title:"Texto",description:"Pegue un texto o una descripción de los datos.",onClick:()=>e("text")}),b.jsx(c0,{icon:b.jsx(OX,{className:"w-12 h-12"}),title:"Tabla (Excel/CSV)",description:"Suba una planilla Excel (.xlsx, .xls) o CSV.",onClick:()=>e("csv")}),b.jsx(c0,{icon:b.jsx(RX,{className:"w-12 h-12"}),title:"Imagen",description:"Suba una imagen que contenga una tabla o gráfico.",onClick:()=>e("image")}),b.jsx(c0,{icon:b.jsx(MX,{className:"w-12 h-12"}),title:"PDF",description:"Suba un documento PDF para extraer informació
385n.",onClick:()=>e("pdf")})]})]}),FX=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10V3L4 14h7v7l9-11h-7z"})}),LX=({journalistText:e,setJournalistText:t,onAnalyze:r,isLoading:n,onBack:i})=>b.jsxs("div",{className:"bg-white p-6 sm:p-8 rounded-lg shadow-md border border-gray-200",children:[b.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:"1. Ingrese el contenido periodÃstico"}),b.jsx("p",{className:"text-gray-700 mb-6",children:"Pegue aquà el texto, tabla o descripción de la información a visualizar. El sistema identificará el hallazgo central y propondrá la mejor forma de representarlo."}),b.jsx("textarea",{value:e,onChange:a=>t(a.target.value),placeholder:"Ejemplo: 'Según datos del INE, la desocupación en el último trimestre fue del 8%, dos puntos por debajo del mismo perÃodo del año anterior, que se ubicó en 10%...'",className:"w-full h-48 p-4 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-800 focus:border-blue-800 transition-shadow duration-200 resize-y",disabled:n,"aria-label":"Contenido periodÃstico"}),b.jsxs("div",{className:"mt-6 flex flex-col-reverse sm:flex-row justify-between items-center gap-4",children:[b.jsxs("button",{onClick:i,disabled:n,className:"flex items-center justify-center w-full sm:w-auto px-6 py-3 bg-white text-gray-700 font-bold rounded-md border border-gray-300 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-400 disabled:bg-gray-200 disabled:cursor-not-allowed transition-colors duration-200",children:[b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"})}),"Volver"]}),b.jsx("button",{onClick:r,disabled:n||!e.trim(),className:"flex items-center justify-center w-full sm:w-auto px-6 py-3 bg-blue-800 text-white font-bold rounded-md hover:bg-blue-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-800 disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors duration-200",children:n?b.jsxs(b.Fragment,{children:[b.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Analizando..."]}):b.jsxs(b.Fragment,{children:[b.jsx(FX,{className:"w-5 h-5 mr-2"}),"Analizar y Proponer"]})})]})]}),sM=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),q_=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"})}),lM=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 17.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"})}),$X={"Line chart":"Gráfico de LÃneas","Column chart":"Gráfico de Columnas","Bar chart":"Gráfico de Barras","Stacked bar chart":"Barras Apiladas","Pie chart":"Gráfico de Torta","Scatter plot":"Gráfico de Dispersión","Area chart":"Gráfico de Ãrea","Donut chart":"Gráfico de Dona","Bubble chart":"Gráfico de Burbujas",Table:"Tabla"}
385,BX=({analysis:e,onApprove:t,onNewAnalysis:r,isLoading:n,onChartTypeChange:i,hasMultipleOptions:a,onBackToOptions:o})=>{const s=Q.useMemo(()=>{const l=e.chartType,u=["Line chart","Column chart","Pie chart","Scatter plot","Area chart","Donut chart","Bubble chart","Table"],c=l.toLowerCase(),f=u.filter(d=>d.toLowerCase()!==c);return[l,...f]},[e.chartType]);return b.jsxs("div",{className:"bg-white p-6 sm:p-8 rounded-lg shadow-md border border-gray-200",children:[b.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"2. Propuesta de Visualización"}),b.jsxs("p",{className:"text-gray-700 mb-6",children:["Hemos analizado su contenido y proponemos la siguiente visualización basándonos en ",b.jsx("a",{href:"https://www.data-to-viz.com/",target:"_blank",rel:"noopener noreferrer",className:"text-blue-800 hover:underline",children:"criterios de Data To Viz"}),". Puede ajustar el tipo de gráfico antes de continuar."]}),b.jsxs("div",{className:"border border-gray-200 rounded-lg p-6 space-y-4",children:[b.jsxs("div",{children:[b.jsx("h3",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wider",children:"TÃtulo"}),b.jsx("p",{className:"text-lg font-semibold text-gray-900 mt-1",children:e.title})]}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wider",children:"Hallazgo Principal"}),b.jsx("p",{className:"text-gray-700 mt-1",children:e.finding})]}),b.jsxs("div",{children:[b.jsx("h3",{className:"text-sm font-semibold text-gray-500 uppercase tracking-wider",children:"Justificación"}),b.jsx("p",{className:"text-gray-700 mt-1",children:e.justification})]}),e.missingData&&b.jsxs("div",{children:[b.jsx("h3",{className:"text-sm font-semibold text-yellow-600 uppercase tracking-wider",children:"Datos Faltantes"}),b.jsx("p",{className:"text-yellow-700 mt-1",children:e.missingData})]}),b.jsxs("div",{children:[b.jsx("label",{htmlFor:"chartType",className:"text-sm font-semibold text-gray-500 uppercase tracking-wider",children:"Tipo de Gráfico Sugerido"}),b.jsx("select",{id:"chartType",value:e.chartType,onChange:l=>i(l.target.value),className:`mt-2 block w-full pl-3 pr-10 py-2 text-base sm:text-sm rounded-md focus:outline-none transition-colors ${e.chartType.toLowerCase()===s[0].toLowerCase()?"border-blue-500 ring-1 ring-blue-500 bg-blue-50 text-blue-900":"border-gray-300 focus:ring-blue-800 focus:border-blue-800"}`,disabled:n,children:s.map((l,u)=>b.jsxs("option",{value:l,className:u===0?"font-bold text-blue-800 bg-blue-50":"",children:[$X[l]||l," ",u===0?"(Recomendado)":""]},l))})]})]}),b.jsxs("div",{className:"mt-8 flex flex-col-reverse sm:flex-row justify-between items-center gap-4",children:[b.jsxs("div",{className:"flex flex-col-reverse sm:flex-row gap-4 w-full sm:w-auto",children:[b.jsxs("button",{onClick:r,disabled:n,className:"flex items-center justify-center w-full sm:w-auto px-6 py-3 bg-white text-gray-700 font-bold rounded-md border border-gray-300 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-400 disabled:bg-gray-200 disabled:cursor-not-allowed transition-colors duration-200",children:[b.jsx(q_,{className:"w-5 h-5 mr-2"}),"Nueva Propuesta"]}),a&&o&&b.jsxs("button",{onClick:o,disabled:n,className:"flex items-center justify-center w-full sm:w-auto px-6 py-3 bg-blue-50 text-blue-800 font-bold rounded-md border border-blue-200 hover:bg-blue-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-400 disabled:bg-gray-200 disabled:cursor-not-allowed transition-colors duration-200",children:[b.jsx(lM,{className:"w-5 h-5 mr-2"}),"Volver a Opciones"]})]}),b.jsx("button",{onClick:t,disabled:n,className:"flex items-center justify-center w-full sm:w-auto px-6 py-3 bg-blue-800 text-white font-bold rounded-md hover:bg-blue-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-800 disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors duration-200",children:n?b.jsxs(b.Fragment,{children:[b.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Generando..."]}):b.jsxs(b.Fragment,{children:[b.jsx(sM,{className:"w-5 h-5 mr-2"}),"Aprobar y Generar"]})})]})]})};function uM(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=uM(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function He(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=uM(e))&&(n&&(n+=" "),n+=t);return n}var UX=Array.isArray,Nn=UX,GX=typeof Md=="object"&&Md&&Md.Object===Object&&Md,cM=GX,VX=cM,HX=typeof self=="object"&&self&&self.Object===Object&&self,jX=VX||HX||Function("return this")(),la=jX,zX=la,WX=zX.Symbol,yd=WX,sb=yd,fM=Object.prototype,qX=fM.hasOwnProperty,KX=fM.toString,nc=sb?sb.toStringTag:void 0;function YX(e){var t=qX.call(e,nc),r=e[nc];try{e[nc]=void 0;var n=!0}catch{}var i=KX.call(e);return n&&(t?e[nc]=r:delete e[nc]),i}var XX=YX,JX=Object.prototype,ZX=JX.toString;function QX(e){return ZX.call(e)}var eJ=QX,lb=yd,tJ=XX,rJ=eJ,nJ="[object Null]",iJ="[object Undef
385ined]",ub=lb?lb.toStringTag:void 0;function aJ(e){return e==null?e===void 0?iJ:nJ:ub&&ub in Object(e)?tJ(e):rJ(e)}var Ga=aJ;function oJ(e){return e!=null&&typeof e=="object"}var Va=oJ,sJ=Ga,lJ=Va,uJ="[object Symbol]";function cJ(e){return typeof e=="symbol"||lJ(e)&&sJ(e)==uJ}var Pu=cJ,fJ=Nn,dJ=Pu,hJ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pJ=/^\w*$/;function mJ(e,t){if(fJ(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||dJ(e)?!0:pJ.test(e)||!hJ.test(e)||t!=null&&e in Object(t)}var K_=mJ;function vJ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lo=vJ;const ku=ft(Lo);var gJ=Ga,yJ=Lo,xJ="[object AsyncFunction]",_J="[object Function]",wJ="[object GeneratorFunction]",EJ="[object Proxy]";function TJ(e){if(!yJ(e))return!1;var t=gJ(e);return t==_J||t==wJ||t==xJ||t==EJ}var Y_=TJ;const Fe=ft(Y_);var SJ=la,AJ=SJ["__core-js_shared__"],bJ=AJ,Vv=bJ,cb=function(){var e=/[^.]+$/.exec(Vv&&Vv.keys&&Vv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function CJ(e){return!!cb&&cb in e}var PJ=CJ,kJ=Function.prototype,IJ=kJ.toString;function NJ(e){if(e!=null){try{return IJ.call(e)}catch{}try{return e+""}catch{}}return""}var dM=NJ,OJ=Y_,RJ=PJ,MJ=Lo,DJ=dM,FJ=/[\\^$.*+?()[\]{}|]/g,LJ=/^\[object .+?Constructor\]$/,$J=Function.prototype,BJ=Object.prototype,UJ=$J.toString,GJ=BJ.hasOwnProperty,VJ=RegExp("^"+UJ.call(GJ).replace(FJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function HJ(e){if(!MJ(e)||RJ(e))return!1;var t=OJ(e)?VJ:LJ;return t.test(DJ(e))}var jJ=HJ;function zJ(e,t){return e==null?void 0:e[t]}var WJ=zJ,qJ=jJ,KJ=WJ;function YJ(e,t){var r=KJ(e,t);return qJ(r)?r:void 0}var Us=YJ,XJ=Us,JJ=XJ(Object,"create"),om=JJ,fb=om;function ZJ(){this.__data__=fb?fb(null):{},this.size=0}var QJ=ZJ;function eZ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var tZ=eZ,rZ=om,nZ="__lodash_hash_undefined__",iZ=Object.prototype,aZ=iZ.hasOwnProperty;function oZ(e){var t=this.__data__;if(rZ){var r=t[e];return r===nZ?void 0:r}return aZ.call(t,e)?t[e]:void 0}var sZ=oZ,lZ=om,uZ=Object.prototype,cZ=uZ.hasOwnProperty;function fZ(e){var t=this.__data__;return lZ?t[e]!==void 0:cZ.call(t,e)}var dZ=fZ,hZ=om,pZ="__lodash_hash_undefined__";function mZ(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=hZ&&t===void 0?pZ:t,this}var vZ=mZ,gZ=QJ,yZ=tZ,xZ=sZ,_Z=dZ,wZ=vZ;function Iu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Iu.prototype.clear=gZ;Iu.prototype.delete=yZ;Iu.prototype.get=xZ;Iu.prototype.has=_Z;Iu.prototype.set=wZ;var EZ=Iu;function TZ(){this.__data__=[],this.size=0}var SZ=TZ;function AZ(e,t){return e===t||e!==e&&t!==t}var X_=AZ,bZ=X_;function CZ(e,t){for(var r=e.length;r--;)if(bZ(e[r][0],t))return r;return-1}var sm=CZ,PZ=sm,kZ=Array.prototype,IZ=kZ.splice;function NZ(e){var t=this.__data__,r=PZ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():IZ.call(t,r,1),--this.size,!0}var OZ=NZ,RZ=sm;function MZ(e){var t=this.__data__,r=RZ(t,e);return r<0?void 0:t[r][1]}var DZ=MZ,FZ=sm;function LZ(e){return FZ(this.__data__,e)>-1}var $Z=LZ,BZ=sm;function UZ(e,t){var r=this.__data__,n=BZ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var GZ=UZ,VZ=SZ,HZ=OZ,jZ=DZ,zZ=$Z,WZ=GZ;function Nu(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Nu.prototype.clear=VZ;Nu.prototype.delete=HZ;Nu.prototype.get=jZ;Nu.prototype.has=zZ;Nu.prototype.set=WZ;var lm=Nu,qZ=Us,KZ=la,YZ=qZ(KZ,"Map"),J_=YZ,db=EZ,XZ=lm,JZ=J_;function ZZ(){this.size=0,this.__data__={hash:new db,map:new(JZ||XZ),string:new db}}var QZ=ZZ;function eQ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var tQ=eQ,rQ=tQ;function nQ(e,t){var r=e.__data__;return rQ(t)?r[typeof t=="string"?"string":"hash"]:r.map}var um=nQ,iQ=um;function aQ(e){var t=iQ(this,e).delete(e);return this.size-=t?1:0,t}var oQ=aQ,sQ=um;function lQ(e){return sQ(this,e).get(e)}var uQ=lQ,cQ=um;function fQ(e){return cQ(this,e).has(e)}var dQ=fQ,hQ=um;function pQ(e,t){var r=hQ(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var mQ=pQ,vQ=QZ,gQ=oQ,yQ=uQ,xQ=dQ,_Q=mQ;function Ou(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ou.prototype.clear=vQ;Ou.prototype.delete=gQ;Ou.prototype.get=yQ;Ou.prototype.has=xQ;Ou.prototype.set=_Q;var Z_=Ou,hM=Z_,wQ="Expected a function";function Q_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(wQ);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Q_.Cache||hM),r}Q_.Cache=hM;var pM=Q_;
vendor: 7,052 bytes, lines 385-393
385const EQ=ft(pM);var TQ=pM,SQ=500;function AQ(e){var t=TQ(e,function(n){return r.size===SQ&&r.clear(),n}),r=t.cache;return t}var bQ=AQ,CQ=bQ,PQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kQ=/\\(\\)?/g,IQ=CQ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(PQ,function(r,n,i,a){t.push(i?a.replace(kQ,"$1"):n||r)}),t}),NQ=IQ;function OQ(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var ew=OQ,hb=yd,RQ=ew,MQ=Nn,DQ=Pu,pb=hb?hb.prototype:void 0,mb=pb?pb.toString:void 0;function mM(e){if(typeof e=="string")return e;if(MQ(e))return RQ(e,mM)+"";if(DQ(e))return mb?mb.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var FQ=mM,LQ=FQ;function $Q(e){return e==null?"":LQ(e)}var vM=$Q,BQ=Nn,UQ=K_,GQ=NQ,VQ=vM;function HQ(e,t){return BQ(e)?e:UQ(e,t)?[e]:GQ(VQ(e))}var gM=HQ,jQ=Pu;function zQ(e){if(typeof e=="string"||jQ(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var cm=zQ,WQ=gM,qQ=cm;function KQ(e,t){t=WQ(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[qQ(t[r++])];return r&&r==n?e:void 0}var tw=KQ,YQ=tw;function XQ(e,t,r){var n=e==null?void 0:YQ(e,t);return n===void 0?r:n}var yM=XQ;const Gn=ft(yM);function JQ(e){return e==null}var ZQ=JQ;const De=ft(ZQ);var QQ=Ga,eee=Nn,tee=Va,ree="[object String]";function nee(e){return typeof e=="string"||!eee(e)&&tee(e)&&QQ(e)==ree}var iee=nee;const bs=ft(iee);var xM={exports:{}},ht={};/** 386 * @license React 387 * react-is.production.min.js 388 * 389 * Copyright (c) Facebook, Inc. and its affiliates. 390 * 391 * This source code is licensed under the MIT license found in the 392 * LICENSE file in the root directory of this source tree. 393 */var rw=Symbol.for("react.element"),nw=Symbol.for("react.portal"),fm=Symbol.for("react.fragment"),dm=Symbol.for("react.strict_mode"),hm=Symbol.for("react.profiler"),pm=Symbol.for("react.provider"),mm=Symbol.for("react.context"),aee=Symbol.for("react.server_context"),vm=Symbol.for("react.forward_ref"),gm=Symbol.for("react.suspense"),ym=Symbol.for("react.suspense_list"),xm=Symbol.for("react.memo"),_m=Symbol.for("react.lazy"),oee=Symbol.for("react.offscreen"),_M;_M=Symbol.for("react.module.reference");function vi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rw:switch(e=e.type,e){case fm:case hm:case dm:case gm:case ym:return e;default:switch(e=e&&e.$$typeof,e){case aee:case mm:case vm:case _m:case xm:case pm:return e;default:return t}}case nw:return t}}}ht.ContextConsumer=mm;ht.ContextProvider=pm;ht.Element=rw;ht.ForwardRef=vm;ht.Fragment=fm;ht.Lazy=_m;ht.Memo=xm;ht.Portal=nw;ht.Profiler=hm;ht.StrictMode=dm;ht.Suspense=gm;ht.SuspenseList=ym;ht.isAsyncMode=function(){return!1};ht.isConcurrentMode=function(){return!1};ht.isContextConsumer=function(e){return vi(e)===mm};ht.isContextProvider=function(e){return vi(e)===pm};ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rw};ht.isForwardRef=function(e){return vi(e)===vm};ht.isFragment=function(e){return vi(e)===fm};ht.isLazy=function(e){return vi(e)===_m};ht.isMemo=function(e){return vi(e)===xm};ht.isPortal=function(e){return vi(e)===nw};ht.isProfiler=function(e){return vi(e)===hm};ht.isStrictMode=function(e){return vi(e)===dm};ht.isSuspense=function(e){return vi(e)===gm};ht.isSuspenseList=function(e){return vi(e)===ym};ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fm||e===hm||e===dm||e===gm||e===ym||e===oee||typeof e=="object"&&e!==null&&(e.$$typeof===_m||e.$$typeof===xm||e.$$typeof===pm||e.$$typeof===mm||e.$$typeof===vm||e.$$typeof===_M||e.getModuleId!==void 0)};ht.typeOf=vi;xM.exports=ht;var see=xM.exports,lee=Ga,uee=Va,cee="[object Number]";function fee(e){return typeof e=="number"||uee(e)&&lee(e)==cee}var wM=fee;const dee=ft(wM);var hee=wM;function pee(e){return hee(e)&&e!=+e}var mee=pee;const Ru=ft(mee);var hn=function(t){return t===0?0:t>0?1:-1},os=function(t){return bs(t)&&t.indexOf("%")===t.length-1},ge=function(t){return dee(t)&&!Ru(t)},vee=function(t){return De(t)},gr=function(t){return ge(t)||bs(t)},gee=0,$o=function(t){var r=++gee;return"".concat(t||"").concat(r)},pn=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ge(t)&&!bs(t))return n;var a;if(os(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Ru(a)&&(a=n),i&&a>r&&(a=r),a},io=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},yee=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},$t=function(t,r){return ge(t)&&ge(r)?function(n){return t+n*(r-t)}:function(){return r}};function Ch(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Gn(n,t))===r})}var xee=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,l=-1/0,u=0,c=0,f=0;f<r;f++)u=t[f].cx||0,c=t[f].cy||0,n+=u,i+=c,a+=u*c,o+=u*u,s=Math.min(s,u),l=Math.max(l,u);var d=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:l,a:d,b:(i-d*n)/r}},_ee=function(t,r){return ge(t)&&ge(r)?t-r:bs(t)&&bs(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ol(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Fy(e){"@babel/helpers - typeof";return Fy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fy(e)}var wee=["viewBox","children"],Eee=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
393dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],vb=["points","pathLength"],Hv={svg:wee,polygon:vb,polyline:vb},iw=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
393Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Ph=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(Q.isValidElement(t)&&(n=t.props),!ku(n))return null;var i={};return Object.keys(n).forEach(function(a){iw.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Tee=function(t,r,n){return function(i){return t(r,n,i),null}},ko=function(t,r,n){if(!ku(t)||Fy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];iw.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Tee(o,r,n))}),i},See=["children"],Aee=["children"];function gb(e,t){if(e==null)return{};var r=bee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ly(e){"@babel/helpers - typeof";return Ly=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ly(e)}var yb={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ba=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},xb=null,jv=null,aw=function e(t){if(t===xb&&Array.isArray(jv))return jv;var r=[];return Q.Children.forEach(t,function(n){De(n)||(see.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),jv=r,xb=t,r};function yn(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ba(i)}):n=[ba(t)],aw(e).forEach(function(i){var a=Gn(i,"type.displayName")||Gn(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Dn(e,t){var r=yn(e,t);return r&&r[0]}var _b=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!ge(n)||n<=0||!ge(i)||i<=0)},Cee=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Pee=function(t){return t&&t.type&&bs(t.type)&&Cee.indexOf(t.type)>=0},EM=function(t){return t&&Ly(t)==="object"&&"clipDot"in t},kee=function(t,r,n,i){var a,o=(a=Hv==null?void 0:Hv[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Fe(t)&&(i&&o.includes(r)||Eee.includes(r))||n&&iw.includes(r)},Oe=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(Q.isValidElement(t)&&(i=t.props),!ku(i))return null;var a={};
393return Object.keys(i).forEach(function(o){var s;kee((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},$y=function e(t,r){if(t===r)return!0;var n=Q.Children.count(t);if(n!==Q.Children.count(r))return!1;if(n===0)return!0;if(n===1)return wb(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!wb(a,o))return!1}return!0},wb=function(t,r){if(De(t)&&De(r))return!0;if(!De(t)&&!De(r)){var n=t.props||{},i=n.children,a=gb(n,See),o=r.props||{},s=o.children,l=gb(o,Aee);return i&&s?Ol(a,l)&&$y(i,s):!i&&!s?Ol(a,l):!1}return!1},Eb=function(t,r){var n=[],i={};return aw(t).forEach(function(a,o){if(Pee(a))n.push(a);else if(a){var s=ba(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},Iee=function(t){var r=t&&t.type;return r&&yb[r]?yb[r]:null},Nee=function(t,r){return aw(r).indexOf(t)},Oee=["children","width","height","viewBox","className","style","title","desc"];function By(){return By=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},By.apply(this,arguments)}function Ree(e,t){if(e==null)return{};var r=Mee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Uy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=Ree(e,Oee),c=i||{width:r,height:n,x:0,y:0},f=He("recharts-surface",a);return j.createElement("svg",By({},Oe(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),j.createElement("title",null,s),j.createElement("desc",null,l),t)}var Dee=["children","className"];function Gy(){return Gy=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},Gy.apply(this,arguments)}function Fee(e,t){if(e==null)return{};var r=Lee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Lee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var We=j.forwardRef(function(e,t){var r=e.children,n=e.className,i=Fee(e,Dee),a=He("recharts-layer",n);return j.createElement("g",Gy({className:a},Oe(i,!0),{ref:t}),r)}),$i=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function $ee(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var Bee=$ee,Uee=Bee;function Gee(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Uee(e,t,r)}var Vee=Gee,Hee="\\ud800-\\udfff",jee="\\u0300-\\u036f",zee="\\ufe20-\\ufe2f",Wee="\\u20d0-\\u20ff",qee=jee+zee+Wee,Kee="\\ufe0e\\ufe0f",Yee="\\u200d",Xee=RegExp("["+Yee+Hee+qee+Kee+"]");function Jee(e){return Xee.test(e)}var TM=Jee;function Zee(e){return e.split("")}var Qee=Zee,SM="\\ud800-\\udfff",ete="\\u0300-\\u036f",tte="\\ufe20-\\ufe2f",rte="\\u20d0-\\u20ff",nte=ete+tte+rte,ite="\\ufe0e\\ufe0f",ate="["+SM+"]",Vy="["+nte+"]",Hy="\\ud83c[\\udffb-\\udfff]",ote="(?:"+Vy+"|"+Hy+")",AM="[^"+SM+"]",bM="(?:\\ud83c[\\udde6-\\uddff]){2}",CM="[\\ud800-\\udbff][\\udc00-\\udfff]",ste="\\u200d",PM=ote+"?",kM="["+ite+"]?",lte="(?:"+ste+"(?:"+[AM,bM,CM].join("|")+")"+kM+PM+")*",ute=kM+PM+lte,cte="(?:"+[AM+Vy+"?",Vy,bM,CM,ate].join("|")+")",fte=RegExp(Hy+"(?="+Hy+")|"+cte+ute,"g");function dte(e){return e.match(fte)||[]}var hte=dte,pte=Qee,mte=TM,vte=hte;function gte(e){return mte(e)?vte(e):pte(e)}var yte=gte,xte=Vee,_te=TM,wte=yte,Ete=vM;function Tte(e){return function(t){t=Ete(t);var r=_te(t)?wte(t):void 0,n=r?r[0]:t.charAt(0),i=r?xte(r,1).join(""):t.slice(1);return n[e]()+i}}var Ste=Tte,Ate=Ste,bte=Ate("toUpperCase"),Cte=bte;const wm=ft(Cte);function yt(e){return function(){return e}}const IM=Math.cos,kh=Math.sin,Gi=Math.sqrt,Ih=Math.PI,Em=2*Ih,jy=Math.PI,zy=2*jy,Jo=1e-6,Pte=zy-Jo;function NM(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function kte(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return NM;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Ite{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?NM:kte(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n}
393,${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Jo)if(!(Math.abs(f*l-u*c)>Jo)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-o,g=i-s,v=l*l+u*u,y=m*m+g*g,x=Math.sqrt(v),w=Math.sqrt(d),_=a*Math.tan((jy-Math.acos((v+d-y)/(2*x*w)))/2),S=_/w,T=_/x;Math.abs(S-1)>Jo&&this._append`L${t+S*c},${r+S*f}`,this._append`A${a},${a},0,0,${+(f*m>c*g)},${this._x1=t+T*l},${this._y1=r+T*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Jo||Math.abs(this._y1-c)>Jo)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%zy+zy),d>Pte?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>Jo&&this._append`A${n},${n},0,${+(d>=jy)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function ow(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Ite(t)}function sw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function OM(e){this._context=e}OM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Tm(e){return new OM(e)}function RM(e){return e[0]}function MM(e){return e[1]}function DM(e,t){var r=yt(!0),n=null,i=Tm,a=null,o=ow(s);e=typeof e=="function"?e:e===void 0?RM:yt(e),t=typeof t=="function"?t:t===void 0?MM:yt(t);function s(l){var u,c=(l=sw(l)).length,f,d=!1,m;for(n==null&&(a=i(m=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,l),+t(f,u,l));if(m)return a=null,m+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:yt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:yt(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:yt(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function f0(e,t,r){var n=null,i=yt(!0),a=null,o=Tm,s=null,l=ow(u);e=typeof e=="function"?e:e===void 0?RM:yt(+e),t=typeof t=="function"?t:yt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?MM:yt(+r);function u(f){var d,m,g,v=(f=sw(f)).length,y,x=!1,w,_=new Array(v),S=new Array(v);for(a==null&&(s=o(w=l())),d=0;d<=v;++d){if(!(d<v&&i(y=f[d],d,f))===x)if(x=!x)m=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=d-1;g>=m;--g)s.point(_[g],S[g]);s.lineEnd(),s.areaEnd()}x&&(_[d]=+e(y,d,f),S[d]=+t(y,d,f),s.point(n?+n(y,d,f):_[d],r?+r(y,d,f):S[d]))}if(w)return s=null,w+""||null}function c(){return DM().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:yt(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:yt(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:yt(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:yt(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:yt(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:yt(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:yt(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class FM{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Nte(e){return new FM(e,!0)}function Ote(e){return new FM(e,!1)}const lw={draw(e,t){const r=Gi(t/Ih);e.moveTo(r,0),e.arc(0,0,r,0,Em)}},Rte={draw(e,t){const r=Gi(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},LM=Gi(1/3),Mte=LM*2,Dte={draw(e,t){const r=Gi(t/Mte),n=r*LM;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Fte={draw(e,t){const r=Gi(t),n=-r/2;e.rect(n,n,r,r)}}
vendor: 7,514 bytes, line 393
393,Lte=.8908130915292852,$M=kh(Ih/10)/kh(7*Ih/10),$te=kh(Em/10)*$M,Bte=-IM(Em/10)*$M,Ute={draw(e,t){const r=Gi(t*Lte),n=$te*r,i=Bte*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Em*a/5,s=IM(o),l=kh(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},zv=Gi(3),Gte={draw(e,t){const r=-Gi(t/(zv*3));e.moveTo(0,r*2),e.lineTo(-zv*r,-r),e.lineTo(zv*r,-r),e.closePath()}},Yn=-.5,Xn=Gi(3)/2,Wy=1/Gi(12),Vte=(Wy/2+1)*3,Hte={draw(e,t){const r=Gi(t/Vte),n=r/2,i=r*Wy,a=n,o=r*Wy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(Yn*n-Xn*i,Xn*n+Yn*i),e.lineTo(Yn*a-Xn*o,Xn*a+Yn*o),e.lineTo(Yn*s-Xn*l,Xn*s+Yn*l),e.lineTo(Yn*n+Xn*i,Yn*i-Xn*n),e.lineTo(Yn*a+Xn*o,Yn*o-Xn*a),e.lineTo(Yn*s+Xn*l,Yn*l-Xn*s),e.closePath()}};function jte(e,t){let r=null,n=ow(i);e=typeof e=="function"?e:yt(e||lw),t=typeof t=="function"?t:yt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:yt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:yt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Nh(){}function Oh(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function BM(e){this._context=e}BM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Oh(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Oh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zte(e){return new BM(e)}function UM(e){this._context=e}UM.prototype={areaStart:Nh,areaEnd:Nh,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Oh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Wte(e){return new UM(e)}function GM(e){this._context=e}GM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Oh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qte(e){return new GM(e)}function VM(e){this._context=e}VM.prototype={areaStart:Nh,areaEnd:Nh,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Kte(e){return new VM(e)}function Tb(e){return e<0?-1:1}function Sb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Tb(a)+Tb(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ab(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Wv(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Rh(e){this._context=e}Rh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Wv(this,this._t0,Ab(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Wv(this,Ab(this,r=Sb(this,e,t)),r);break;default:Wv(this,this._t0,r=Sb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function HM(e){this._context=new jM(e)}(HM.prototype=Object.create(Rh.prototype)).point=function(e,t){Rh.prototype.point.call(this,t,e)};function jM(e){this._context=e}jM.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Yte(e){return new Rh(e)}function Xte(e){return new HM(e)}function zM(e){this._context=e}zM.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=bb(e),i=bb(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function bb(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Jte(e){return new zM(e)}function Sm(e,t){this._context=e,this._t=t}Sm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 9,276 bytes, lines 393-396
393default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Zte(e){return new Sm(e,.5)}function Qte(e){return new Sm(e,0)}function ere(e){return new Sm(e,1)}function jl(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function qy(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function tre(e,t){return e[t]}function rre(e){const t=[];return t.key=e,t}function nre(){var e=yt([]),t=qy,r=jl,n=tre;function i(a){var o=Array.from(e.apply(this,arguments),rre),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=sw(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:yt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:yt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?qy:typeof a=="function"?a:yt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??jl,i):r},i}function ire(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}jl(e,t)}}function are(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}jl(e,t)}}function ore(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,d=c[n-1][1]||0,m=(f-d)/2,g=0;g<s;++g){var v=e[t[g]],y=v[n][1]||0,x=v[n-1][1]||0;m+=y-x}l+=f,u+=m*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,jl(e,t)}}function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Af(e)}var sre=["type","size","sizeType"];function Ky(){return Ky=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},Ky.apply(this,arguments)}function Cb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cb(Object(r),!0).forEach(function(n){lre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lre(e,t,r){return t=ure(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ure(e){var t=cre(e,"string");return Af(t)=="symbol"?t:t+""}function cre(e,t){if(Af(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Af(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fre(e,t){if(e==null)return{};var r=dre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var WM={symbolCircle:lw,symbolCross:Rte,symbolDiamond:Dte,symbolSquare:Fte,symbolStar:Ute,symbolTriangle:Gte,symbolWye:Hte},hre=Math.PI/180,pre=function(t){var r="symbol".concat(wm(t));return WM[r]||lw},mre=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*hre;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},vre=function(t,r){WM["symbol".concat(wm(t))]=r},Am=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=fre(t,sre),u=Pb(Pb({},l),{},{type:n,size:a,sizeType:s}),c=function(){var y=pre(n),x=jte().type(y).size(mre(a,s,n));return x()},f=u.className,d=u.cx,m=u.cy,g=Oe(u,!0);return d===+d&&m===+m&&a===+a?j.createElement("path",Ky({},g,{className:He("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(m,")"),d:c()})):null};Am.registerSymbol=vre;function zl(e){"@babel/helpers - typeof";return zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zl(e)}function Yy(){return Yy=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},Yy.apply(this,arguments)}function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gre(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){bf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xre(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KM(n.key),n)}}function _re(e,t,r){return t&&xre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wre(e,t,r){return t=Mh(t),Ere(e,qM()?Reflect.construct(t,r||[],Mh(e).constructor):t.apply(e,r))}function Ere(e,t){if(t&&(zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tre(e)}function Tre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qM=function(){return!!e})()}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mh(e)}function Sre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xy(e,t)}function Xy(e,t){return Xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xy(e,t)}function bf(e,t,r){return t=KM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KM(e){var t=Are(e,"string");return zl(t)=="symbol"?t:t+""}function Are(e,t){if(zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jn=32,uw=function(e){function t(){return yre(this,t),wre(this,t,arguments)}return Sre(t,e),_re(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Jn/2,o=Jn/6,s=Jn/3,l=n.inactive?i:n.color;if(n.type==="plainline")return j.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Jn,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return j.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,` 394 A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,` 395 H`).concat(Jn,"M").concat(2*s,",").concat(a,` 396 A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return j.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Jn/8,"h").concat(Jn,"v").concat(Jn*3/4,"h").concat(-Jn,"z"),className:"recharts-legend-icon"});if(j.isValidElement(n.legendIcon)){var u=gre({},n);return delete u.legendIcon,j.cloneElement(n.legendIcon,u)}return j.createElement(Am,{fill:l,cx:a,cy:a,size:Jn,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Jn,height:Jn},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};
396return a.map(function(m,g){var v=m.formatter||l,y=He(bf(bf({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",m.inactive));if(m.type==="none")return null;var x=Fe(m.value)?null:m.value;$i(!Fe(m.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var w=m.inactive?u:m.color;return j.createElement("li",Yy({className:y,style:f,key:"legend-item-".concat(g)},ko(n.props,m,g)),j.createElement(Uy,{width:o,height:o,viewBox:c,style:d},n.renderIcon(m)),j.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},v?v(x,m,g):x))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return j.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(Q.PureComponent);bf(uw,"displayName","Legend");bf(uw,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var bre=lm;function Cre(){this.__data__=new bre,this.size=0}var Pre=Cre;function kre(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Ire=kre;function Nre(e){return this.__data__.get(e)}var Ore=Nre;function Rre(e){return this.__data__.has(e)}var Mre=Rre,Dre=lm,Fre=J_,Lre=Z_,$re=200;function Bre(e,t){var r=this.__data__;if(r instanceof Dre){var n=r.__data__;if(!Fre||n.length<$re-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Lre(n)}return r.set(e,t),this.size=r.size,this}var Ure=Bre,Gre=lm,Vre=Pre,Hre=Ire,jre=Ore,zre=Mre,Wre=Ure;function Mu(e){var t=this.__data__=new Gre(e);this.size=t.size}Mu.prototype.clear=Vre;Mu.prototype.delete=Hre;Mu.prototype.get=jre;Mu.prototype.has=zre;Mu.prototype.set=Wre;var YM=Mu,qre="__lodash_hash_undefined__";function Kre(e){return this.__data__.set(e,qre),this}var Yre=Kre;function Xre(e){return this.__data__.has(e)}var Jre=Xre,Zre=Z_,Qre=Yre,ene=Jre;function Dh(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Zre;++t<r;)this.add(e[t])}Dh.prototype.add=Dh.prototype.push=Qre;Dh.prototype.has=ene;var XM=Dh;function tne(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var JM=tne;function rne(e,t){return e.has(t)}var ZM=rne,nne=XM,ine=JM,ane=ZM,one=1,sne=2;function lne(e,t,r,n,i,a){var o=r&one,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,m=r&sne?new nne:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var g=e[f],v=t[f];if(n)var y=o?n(v,g,f,t,e,a):n(g,v,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(m){if(!ine(t,function(x,w){if(!ane(m,w)&&(g===x||i(g,x,r,n,a)))return m.push(w)})){d=!1;break}}else if(!(g===v||i(g,v,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var QM=lne,une=la,cne=une.Uint8Array,fne=cne;function dne(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var hne=dne;function pne(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var cw=pne,Ib=yd,Nb=fne,mne=X_,vne=QM,gne=hne,yne=cw,xne=1,_ne=2,wne="[object Boolean]",Ene="[object Date]",Tne="[object Error]",Sne="[object Map]",Ane="[object Number]",bne="[object RegExp]",Cne="[object Set]",Pne="[object String]",kne="[object Symbol]",Ine="[object ArrayBuffer]",Nne="[object DataView]",Ob=Ib?Ib.prototype:void 0,qv=Ob?Ob.valueOf:void 0;function One(e,t,r,n,i,a,o){switch(r){case Nne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ine:return!(e.byteLength!=t.byteLength||!a(new Nb(e),new Nb(t)));case wne:case Ene:case Ane:return mne(+e,+t);case Tne:return e.name==t.name&&e.message==t.message;case bne:case Pne:return e==t+"";case Sne:var s=gne;case Cne:var l=n&xne;if(s||(s=yne),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=_ne,o.set(e,t);var c=vne(s(e),s(t),n,i,a,o);return o.delete(e),c;case kne:if(qv)return qv.call(e)==qv.call(t)}return!1}var Rne=One;function Mne(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}
vendor: 4,537 bytes, line 396
396var eD=Mne,Dne=eD,Fne=Nn;function Lne(e,t,r){var n=t(e);return Fne(e)?n:Dne(n,r(e))}var $ne=Lne;function Bne(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var Une=Bne;function Gne(){return[]}var Vne=Gne,Hne=Une,jne=Vne,zne=Object.prototype,Wne=zne.propertyIsEnumerable,Rb=Object.getOwnPropertySymbols,qne=Rb?function(e){return e==null?[]:(e=Object(e),Hne(Rb(e),function(t){return Wne.call(e,t)}))}:jne,Kne=qne;function Yne(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Xne=Yne,Jne=Ga,Zne=Va,Qne="[object Arguments]";function eie(e){return Zne(e)&&Jne(e)==Qne}var tie=eie,Mb=tie,rie=Va,tD=Object.prototype,nie=tD.hasOwnProperty,iie=tD.propertyIsEnumerable,aie=Mb(function(){return arguments}())?Mb:function(e){return rie(e)&&nie.call(e,"callee")&&!iie.call(e,"callee")},fw=aie,Fh={exports:{}};function oie(){return!1}var sie=oie;Fh.exports;(function(e,t){var r=la,n=sie,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(Fh,Fh.exports);var rD=Fh.exports,lie=9007199254740991,uie=/^(?:0|[1-9]\d*)$/;function cie(e,t){var r=typeof e;return t=t??lie,!!t&&(r=="number"||r!="symbol"&&uie.test(e))&&e>-1&&e%1==0&&e<t}var dw=cie,fie=9007199254740991;function die(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fie}var hw=die,hie=Ga,pie=hw,mie=Va,vie="[object Arguments]",gie="[object Array]",yie="[object Boolean]",xie="[object Date]",_ie="[object Error]",wie="[object Function]",Eie="[object Map]",Tie="[object Number]",Sie="[object Object]",Aie="[object RegExp]",bie="[object Set]",Cie="[object String]",Pie="[object WeakMap]",kie="[object ArrayBuffer]",Iie="[object DataView]",Nie="[object Float32Array]",Oie="[object Float64Array]",Rie="[object Int8Array]",Mie="[object Int16Array]",Die="[object Int32Array]",Fie="[object Uint8Array]",Lie="[object Uint8ClampedArray]",$ie="[object Uint16Array]",Bie="[object Uint32Array]",Ct={};Ct[Nie]=Ct[Oie]=Ct[Rie]=Ct[Mie]=Ct[Die]=Ct[Fie]=Ct[Lie]=Ct[$ie]=Ct[Bie]=!0;Ct[vie]=Ct[gie]=Ct[kie]=Ct[yie]=Ct[Iie]=Ct[xie]=Ct[_ie]=Ct[wie]=Ct[Eie]=Ct[Tie]=Ct[Sie]=Ct[Aie]=Ct[bie]=Ct[Cie]=Ct[Pie]=!1;function Uie(e){return mie(e)&&pie(e.length)&&!!Ct[hie(e)]}var Gie=Uie;function Vie(e){return function(t){return e(t)}}var nD=Vie,Lh={exports:{}};Lh.exports;(function(e,t){var r=cM,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Lh,Lh.exports);var Hie=Lh.exports,jie=Gie,zie=nD,Db=Hie,Fb=Db&&Db.isTypedArray,Wie=Fb?zie(Fb):jie,iD=Wie,qie=Xne,Kie=fw,Yie=Nn,Xie=rD,Jie=dw,Zie=iD,Qie=Object.prototype,eae=Qie.hasOwnProperty;function tae(e,t){var r=Yie(e),n=!r&&Kie(e),i=!r&&!n&&Xie(e),a=!r&&!n&&!i&&Zie(e),o=r||n||i||a,s=o?qie(e.length,String):[],l=s.length;for(var u in e)(t||eae.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Jie(u,l)))&&s.push(u);return s}var rae=tae,nae=Object.prototype;function iae(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nae;return e===r}var aae=iae;function oae(e,t){return function(r){return e(t(r))}}var aD=oae,sae=aD,lae=sae(Object.keys,Object),uae=lae,cae=aae,fae=uae,dae=Object.prototype,hae=dae.hasOwnProperty;function pae(e){if(!cae(e))return fae(e);var t=[];for(var r in Object(e))hae.call(e,r)&&r!="constructor"&&t.push(r);return t}var mae=pae,vae=Y_,gae=hw;function yae(e){return e!=null&&gae(e.length)&&!vae(e)}var xd=yae,xae=rae,_ae=mae,wae=xd;function Eae(e){return wae(e)?xae(e):_ae(e)}var bm=Eae,Tae=$ne,Sae=Kne,Aae=bm;function bae(e){return Tae(e,Aae,Sae)}var Cae=bae,Lb=Cae,Pae=1,kae=Object.prototype,Iae=kae.hasOwnProperty;function Nae(e,t,r,n,i,a){var o=r&Pae,s=Lb(e),l=s.length,u=Lb(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:Iae.call(t,d)))return!1}var m=a.get(e),g=a.get(t);if(m&&g)return m==t&&g==e;var v=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<l;){d=s[f];var x=e[d],w=t[d];if(n)var _=o?n(w,x,d,t,e,a):n(x,w,d,e,t,a);if(!(_===void 0?x===w||i(x,w,r,n,a):_)){v=!1;break}y||(y=d=="constructor")}if(v&&!y){var S=e.constructor,T=t.constructor;S!=T&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof T=="function"&&T instanceof T)&&(v=!1)}return a.delete(e),a.delete(t),v}var Oae=Nae,Rae=Us,Mae=la,Dae=Rae(Mae,"DataView"),Fae=Dae,Lae=Us,$ae=la,Bae=Lae($ae,"Promise"),Uae=Bae,Gae=Us,Vae=la,Hae=Gae(Vae,"Set"),oD=H
vendor: 5,211 bytes, line 396
396ae,jae=Us,zae=la,Wae=jae(zae,"WeakMap"),qae=Wae,Jy=Fae,Zy=J_,Qy=Uae,ex=oD,tx=qae,sD=Ga,Du=dM,$b="[object Map]",Kae="[object Object]",Bb="[object Promise]",Ub="[object Set]",Gb="[object WeakMap]",Vb="[object DataView]",Yae=Du(Jy),Xae=Du(Zy),Jae=Du(Qy),Zae=Du(ex),Qae=Du(tx),Zo=sD;(Jy&&Zo(new Jy(new ArrayBuffer(1)))!=Vb||Zy&&Zo(new Zy)!=$b||Qy&&Zo(Qy.resolve())!=Bb||ex&&Zo(new ex)!=Ub||tx&&Zo(new tx)!=Gb)&&(Zo=function(e){var t=sD(e),r=t==Kae?e.constructor:void 0,n=r?Du(r):"";if(n)switch(n){case Yae:return Vb;case Xae:return $b;case Jae:return Bb;case Zae:return Ub;case Qae:return Gb}return t});var eoe=Zo,Kv=YM,toe=QM,roe=Rne,noe=Oae,Hb=eoe,jb=Nn,zb=rD,ioe=iD,aoe=1,Wb="[object Arguments]",qb="[object Array]",d0="[object Object]",ooe=Object.prototype,Kb=ooe.hasOwnProperty;function soe(e,t,r,n,i,a){var o=jb(e),s=jb(t),l=o?qb:Hb(e),u=s?qb:Hb(t);l=l==Wb?d0:l,u=u==Wb?d0:u;var c=l==d0,f=u==d0,d=l==u;if(d&&zb(e)){if(!zb(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new Kv),o||ioe(e)?toe(e,t,r,n,i,a):roe(e,t,l,r,n,i,a);if(!(r&aoe)){var m=c&&Kb.call(e,"__wrapped__"),g=f&&Kb.call(t,"__wrapped__");if(m||g){var v=m?e.value():e,y=g?t.value():t;return a||(a=new Kv),i(v,y,r,n,a)}}return d?(a||(a=new Kv),noe(e,t,r,n,i,a)):!1}var loe=soe,uoe=loe,Yb=Va;function lD(e,t,r,n,i){return e===t?!0:e==null||t==null||!Yb(e)&&!Yb(t)?e!==e&&t!==t:uoe(e,t,r,n,lD,i)}var pw=lD,coe=YM,foe=pw,doe=1,hoe=2;function poe(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new coe;if(n)var d=n(u,c,l,e,t,f);if(!(d===void 0?foe(c,u,doe|hoe,n,f):d))return!1}}return!0}var moe=poe,voe=Lo;function goe(e){return e===e&&!voe(e)}var uD=goe,yoe=uD,xoe=bm;function _oe(e){for(var t=xoe(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,yoe(i)]}return t}var woe=_oe;function Eoe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var cD=Eoe,Toe=moe,Soe=woe,Aoe=cD;function boe(e){var t=Soe(e);return t.length==1&&t[0][2]?Aoe(t[0][0],t[0][1]):function(r){return r===e||Toe(r,e,t)}}var Coe=boe;function Poe(e,t){return e!=null&&t in Object(e)}var koe=Poe,Ioe=gM,Noe=fw,Ooe=Nn,Roe=dw,Moe=hw,Doe=cm;function Foe(e,t,r){t=Ioe(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Doe(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&Moe(i)&&Roe(o,i)&&(Ooe(e)||Noe(e)))}var Loe=Foe,$oe=koe,Boe=Loe;function Uoe(e,t){return e!=null&&Boe(e,t,$oe)}var Goe=Uoe,Voe=pw,Hoe=yM,joe=Goe,zoe=K_,Woe=uD,qoe=cD,Koe=cm,Yoe=1,Xoe=2;function Joe(e,t){return zoe(e)&&Woe(t)?qoe(Koe(e),t):function(r){var n=Hoe(r,e);return n===void 0&&n===t?joe(r,e):Voe(t,n,Yoe|Xoe)}}var Zoe=Joe;function Qoe(e){return e}var Fu=Qoe;function ese(e){return function(t){return t==null?void 0:t[e]}}var tse=ese,rse=tw;function nse(e){return function(t){return rse(t,e)}}var ise=nse,ase=tse,ose=ise,sse=K_,lse=cm;function use(e){return sse(e)?ase(lse(e)):ose(e)}var cse=use,fse=Coe,dse=Zoe,hse=Fu,pse=Nn,mse=cse;function vse(e){return typeof e=="function"?e:e==null?hse:typeof e=="object"?pse(e)?dse(e[0],e[1]):fse(e):mse(e)}var ua=vse;function gse(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var fD=gse;function yse(e){return e!==e}var xse=yse;function _se(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var wse=_se,Ese=fD,Tse=xse,Sse=wse;function Ase(e,t,r){return t===t?Sse(e,t,r):Ese(e,Tse,r)}var bse=Ase,Cse=bse;function Pse(e,t){var r=e==null?0:e.length;return!!r&&Cse(e,t,0)>-1}var kse=Pse;function Ise(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var Nse=Ise;function Ose(){}var Rse=Ose,Yv=oD,Mse=Rse,Dse=cw,Fse=1/0,Lse=Yv&&1/Dse(new Yv([,-0]))[1]==Fse?function(e){return new Yv(e)}:Mse,$se=Lse,Bse=XM,Use=kse,Gse=Nse,Vse=ZM,Hse=$se,jse=cw,zse=200;function Wse(e,t,r){var n=-1,i=Use,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=Gse;else if(a>=zse){var u=t?null:Hse(e);if(u)return jse(u);o=!1,i=Vse,l=new Bse}else l=t?[]:s;e:for(;++n<a;){var c=e[n],f=t?t(c):c;if(c=r||c!==0?c:0,o&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(c)}else i(l,f,r)||(l!==s&&l.push(f),s.push(c))}return s}var qse=Wse,Kse=ua,Yse=qse;function Xse(e,t){return e&&e.length?Yse(e,Kse(t)):[]}var Jse=Xse;const Xb=ft(Jse);function dD(e,t,r){return t===!0?Xb(e,r):Fe(t)?Xb(e,t):e}function Wl(e){"@babel/helpers - typeof";return Wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wl(e)}var Zse=["ref"];function Jb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function da(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jb(Object(r),!0).forEach(function(n){Cm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jb(Object(r)).forEac
vendor: 4,250 bytes, line 396
396h(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pD(n.key),n)}}function ele(e,t,r){return t&&Zb(e.prototype,t),r&&Zb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tle(e,t,r){return t=$h(t),rle(e,hD()?Reflect.construct(t,r||[],$h(e).constructor):t.apply(e,r))}function rle(e,t){if(t&&(Wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nle(e)}function nle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hD(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hD=function(){return!!e})()}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$h(e)}function ile(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rx(e,t)}function rx(e,t){return rx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rx(e,t)}function Cm(e,t,r){return t=pD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pD(e){var t=ale(e,"string");return Wl(t)=="symbol"?t:t+""}function ale(e,t){if(Wl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ole(e,t){if(e==null)return{};var r=sle(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sle(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function lle(e){return e.value}function ule(e,t){if(j.isValidElement(e))return j.cloneElement(e,t);if(typeof e=="function")return j.createElement(e,t);t.ref;var r=ole(t,Zse);return j.createElement(uw,r)}var Qb=1,ms=function(e){function t(){var r;Qse(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=tle(this,t,[].concat(i)),Cm(r,"lastBoundingBox",{width:-1,height:-1}),r}return ile(t,e),ele(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Qb||Math.abs(i.height-this.lastBoundingBox.height)>Qb)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?da({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var m=this.getBBoxSnapshot();f={left:((u||0)-m.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var g=this.getBBoxSnapsh
396ot();d={top:((c||0)-g.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return da(da({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=da(da({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return j.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(m){n.wrapperNode=m}},ule(a,da(da({},this.props),{},{payload:dD(c,u,lle)})))}}],[{key:"getWithHeight",value:function(n,i){var a=da(da({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&ge(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(Q.PureComponent);Cm(ms,"displayName","Legend");Cm(ms,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var e2=yd,cle=fw,fle=Nn,t2=e2?e2.isConcatSpreadable:void 0;function dle(e){return fle(e)||cle(e)||!!(t2&&e&&e[t2])}var hle=dle,ple=eD,mle=hle;function mD(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=mle),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?mD(s,t-1,r,n,i):ple(i,s):n||(i[i.length]=s)}return i}var vD=mD;function vle(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var gle=vle,yle=gle,xle=yle(),_le=xle,wle=_le,Ele=bm;function Tle(e,t){return e&&wle(e,t,Ele)}var gD=Tle,Sle=xd;function Ale(e,t){return function(r,n){if(r==null)return r;if(!Sle(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var ble=Ale,Cle=gD,Ple=ble,kle=Ple(Cle),mw=kle,Ile=mw,Nle=xd;function Ole(e,t){var r=-1,n=Nle(e)?Array(e.length):[];return Ile(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var yD=Ole;function Rle(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var Mle=Rle,r2=Pu;function Dle(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=r2(e),o=t!==void 0,s=t===null,l=t===t,u=r2(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&e<t||u&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}var Fle=Dle,Lle=Fle;function $le(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=Lle(i[n],a[n]);if(l){if(n>=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var Ble=$le,Xv=ew,Ule=tw,Gle=ua,Vle=yD,Hle=Mle,jle=nD,zle=Ble,Wle=Fu,qle=Nn;function Kle(e,t,r){t.length?t=Xv(t,function(a){return qle(a)?function(o){return Ule(o,a.length===1?a[0]:a)}:a}):t=[Wle];var n=-1;t=Xv(t,jle(Gle));var i=Vle(e,function(a,o,s){var l=Xv(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return Hle(i,function(a,o){return zle(a,o,r)})}var Yle=Kle;function Xle(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Jle=Xle,Zle=Jle,n2=Math.max;function Qle(e,t,r){return t=n2(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=n2(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),Zle(e,this,s)}}var eue=Qle;function tue(e){return function(){return e}}var rue=tue,nue=Us,iue=function(){try{var e=nue(Object,"defineProperty");return e({},"",{}),e}catch{}}(),xD=iue,aue=rue,i2=xD,oue=Fu,sue=i2?function(e,t){return i2(e,"toString",{configurable:!0,enumerable:!1,value:aue(t),writable:!0})}:oue,lue=sue,uue=800,cue=16,fue=Date.now;function due(e){var t=0,r=0;return function(){var n=fue(),i=cue-(n-r);if(r=n,i>0){if(++t>=uue)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var hue=due,pue=lue,mue=hue,vue=mue(pue),gue=vue,yue=Fu,xue=eue,_ue=gue;function wue(e,t){return _ue(xue(e,t,yue),e+"")}var Eue=wue,Tue=X_,Sue=xd,Aue=dw,bue=Lo;function Cue(e,t,r){if(!bue(r))return!1;var n=typeof t;return(n=="number"?Sue(r)&&Aue(t,r.length):n=="string"&&t in r)?Tue(r[t],e):!1}var Pm=Cue,Pue=vD,kue=Yle,Iue=Eue,a2=Pm,Nue=Iue(function(e,t){if(e==null)return[];var r=t.length;return r>1&&a2(e,t[0],t[1])?t=[]:r>2&&a2(t[0],t[1],t[2])&&(t=[t[0]]),kue(e,Pue(t,1),[])}),Oue=Nue;const vw=ft(Oue);function Cf(e){"@babel/helpers - typeof";return Cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(e)}function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 31,168 bytes, lines 396-404
396for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nx.apply(this,arguments)}function Rue(e,t){return Lue(e)||Fue(e,t)||Due(e,t)||Mue()}function Mue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 397In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Due(e,t){if(e){if(typeof e=="string")return o2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o2(e,t)}}function o2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Fue(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Lue(e){if(Array.isArray(e))return e}function s2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s2(Object(r),!0).forEach(function(n){$ue(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $ue(e,t,r){return t=Bue(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bue(e){var t=Uue(e,"string");return Cf(t)=="symbol"?t:t+""}function Uue(e,t){if(Cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gue(e){return Array.isArray(e)&&gr(e[0])&&gr(e[1])?e.join(" ~ "):e}var Vue=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,d=t.itemSorter,m=t.wrapperClassName,g=t.labelClassName,v=t.label,y=t.labelFormatter,x=t.accessibilityLayer,w=x===void 0?!1:x,_=function(){if(c&&c.length){var k={padding:0,margin:0},H=(d?vw(c,d):c).map(function(K,U){if(K.type==="none")return null;var Y=Jv({display:"block",paddingTop:4,paddingBottom:4,color:K.color||"#000"},s),W=K.formatter||f||Gue,J=K.value,F=K.name,ee=J,le=F;if(W&&ee!=null&&le!=null){var R=W(J,F,K,U,c);if(Array.isArray(R)){var X=Rue(R,2);ee=X[0],le=X[1]}else ee=R}return j.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(U),style:Y},gr(le)?j.createElement("span",{className:"recharts-tooltip-item-name"},le):null,gr(le)?j.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,j.createElement("span",{className:"recharts-tooltip-item-value"},ee),j.createElement("span",{className:"recharts-tooltip-item-unit"},K.unit||""))});return j.createElement("ul",{className:"recharts-tooltip-item-list",style:k},H)}return null},S=Jv({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),T=Jv({margin:0},u),E=!De(v),A=E?v:"",P=He("recharts-default-tooltip",m),C=He("recharts-tooltip-label",g);E&&y&&c!==void 0&&c!==null&&(A=y(v,c));var N=w?{role:"status","aria-live":"assertive"}:{};return j.createElement("div",nx({className:P,style:S},N),j.createElement("p",{className:C,style:T},j.isValidElement(A)?A:"".concat(A)),_())};function Pf(e){"@babel/helpers - typeof";return Pf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pf(e)}function h0(e,t,r){return t=Hue(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hue(e){var t=jue(e,"string");return Pf(t)=="symbol"?t:t+""}function jue(e,t){if(Pf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ic="recharts-tooltip-wrapper",zue={visibility:"hidden"};function Wue(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return He(ic,h0(h0(h0(h0({},"".concat(ic,"-right"),ge(r)&&t&&ge(t.x)&&r>=t.x),"".concat(ic,"-left"),ge(r)&&t&&ge(t.x)&&r<t.x),"".concat(ic,"-bottom"),ge(n)&&t&&ge(t.y)&&n>=t.y),"".concat(ic,"-top"),ge(n)&&t&&ge(t.y)&&n<t.y))}function l2(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&ge(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var d=c,m=l[n];return d<m?Math.max(f,l[n]):Math.max(c,l[n])}var g=f+s,v=l[n]+u;return g>v?Math.max(c,l[n]):Math.max(f,l[n])}function que(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Kue(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=l2({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=l2({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=que({translateX:c,translateY:f,useTranslate3d:s})):u=zue,{cssProperties:u,cssClasses:Wue({translateX:c,translateY:f,coordinate:r})}}function ql(e){"@babel/helpers - typeof";return ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ql(e)}function u2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u2(Object(r),!0).forEach(function(n){ax(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xue(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wD(n.key),n)}}function Jue(e,t,r){return t&&Xue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zue(e,t,r){return t=Bh(t),Que(e,_D()?Reflect.construct(t,r||[],Bh(e).constructor):t.apply(e,r))}function Que(e,t){if(t&&(ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ece(e)}function ece(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _D(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_D=function(){return!!e})()}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bh(e)}function tce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ix(e,t)}function ix(e,t){return ix=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ix(e,t)}function ax(e,t,r){return t=wD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wD(e){var t=rce(e,"string");return ql(t)=="symbol"?t:t+""}function rce(e,t){if(ql(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ql(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var f2=1,nce=function(e){function t(){var r;Yue(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Zue(this,t,[].concat(i)),ax(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ax(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return tce(t,e),Jue(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>f2||Math.abs(n.height-this.state.lastBoundingBox.height)>f2)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,m=i.offset,g=i.position,v=i.reverseDirection,y=i.useTranslate3d,x=i.viewBox,w=i.wrapperStyle,_=Kue({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:m,position:g,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:x}),S=_.cssClasses,T=_.cssProperties,E=c2(c2({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},T),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},w);return j.createElement("div",{tabIndex:-1,className:S,style:E,ref:function(P){n.wrapperNode=P}},u)}}])}(Q.PureComponent),ice=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ha={isSsr:ice()};function Kl(e){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kl(e)}function d2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d2(Object(r),!0).forEach(function(n){gw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ace(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oce(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TD(n.key),n)}}function sce(e,t,r){return t&&oce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lce(e,t,r){return t=Uh(t),uce(e,ED()?Reflect.construct(t,r||[],Uh(e).constructor):t.apply(e,r))}function uce(e,t){if(t&&(Kl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cce(e)}function cce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ED(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ED=function(){return!!e})()}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uh(e)}function fce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ox(e,t)}function ox(e,t){return ox=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ox(e,t)}function gw(e,t,r){return t=TD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TD(e){var t=dce(e,"string");return Kl(t)=="symbol"?t:t+""}function dce(e,t){if(Kl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hce(e){return e.dataKey}function pce(e,t){return j.isValidElement(e)?j.cloneElement(e,t):typeof e=="function"?j.createElement(e,t):j.createElement(Vue,t)}var ti=function(e){function t(){return ace(this,t),lce(this,t,arguments)}return fce(t,e),sce(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,m=i.offset,g=i.payload,v=i.payloadUniqBy,y=i.position,x=i.reverseDirection,w=i.useTranslate3d,_=i.viewBox,S=i.wrapperStyle,T=g??[];f&&T.length&&(T=dD(g.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),v,hce));var E=T.length>0;return j.createElement(nce,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:c,hasPayload:E,offset:m,position:y,reverseDirection:x,useTranslate3d:w,viewBox:_,wrapperStyle:S},pce(u,h2(h2({},this.props),{},{payload:T})))}}])}(Q.PureComponent);gw(ti,"displayName","Tooltip");gw(ti,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ha.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var mce=la,vce=function(){return mce.Date.now()},gce=vce,yce=/\s/;function xce(e){for(var t=e.length;t--&&yce.test(e.charAt(t)););return t}var _ce=xce,wce=_ce,Ece=/^\s+/;function Tce(e){return e&&e.slice(0,wce(e)+1).replace(Ece,"")}var Sce=Tce,Ace=Sce,p2=Lo,bce=Pu,m2=NaN,Cce=/^[-+]0x[0-9a-f]+$/i,Pce=/^0b[01]+$/i,kce=/^0o[0-7]+$/i,Ice=parseInt;function Nce(e){if(typeof e=="number")return e;if(bce(e))return m2;if(p2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=p2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ace(e);var r=Pce.test(e);return r||kce.test(e)?Ice(e.slice(2),r?2:8):Cce.test(e)?m2:+e}var SD=Nce,Oce=Lo,Zv=gce,v2=SD,Rce="Expected a function",Mce=Math.max,Dce=Math.min;function Fce(e,t,r){var n,i,a,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Rce);t=v2(t)||0,Oce(r)&&(c=!!r.leading,f="maxWait"in r,a=f?Mce(v2(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function m(E){var A=n,P=i;return n=i=void 0,u=E,o=e.apply(P,A),o}function g(E){return u=E,s=setTimeout(x,t),c?m(E):o}function v(E){var A=E-l,P=E-u,C=t-A;return f?Dce(C,a-P):C}function y(E){var A=E-l,P=E-u;return l===void 0||A>=t||A<0||f&&P>=a}function x(){var E=Zv();if(y(E))return w(E);s=setTimeout(x,v(E))}function w(E){return s=void 0,d&&n?m(E):(n=i=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function S(){return s===void 0?o:w(Zv())}function T(){var E=Zv(),A=y(E);if(n=arguments,i=this,l=E,A){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(x,t),m(l)}return s===void 0&&(s=setTimeout(x,t)),o}return T.cancel=_,T.flush=S,T}var Lce=Fce,$ce=Lce,Bce=Lo,Uce="Expected a function";function Gce(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Uce);return Bce(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),$ce(e,t,{leading:n,maxWait:t,trailing:i})}var Vce=Gce;const AD=ft(Vce);function kf(e){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kf(e)}function g2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function p0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g2(Object(r),!0).forEach(function(n){Hce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Hce(e,t,r){return t=jce(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jce(e){var t=zce(e,"string");return kf(t)=="symbol"?t:t+""}function zce(e,t){if(kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wce(e,t){return Xce(e)||Yce(e,t)||Kce(e,t)||qce()}function qce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 398In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kce(e,t){if(e){if(typeof e=="string")return y2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y2(e,t)}}function y2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Yce(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Xce(e){if(Array.isArray(e))return e}var ac=Q.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,m=e.children,g=e.debounce,v=g===void 0?0:g,y=e.id,x=e.className,w=e.onResize,_=e.style,S=_===void 0?{}:_,T=Q.useRef(null),E=Q.useRef();E.current=w,Q.useImperativeHandle(t,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var A=Q.useState({containerWidth:i.width,containerHeight:i.height}),P=Wce(A,2),C=P[0],N=P[1],M=Q.useCallback(function(H,K){N(function(U){var Y=Math.round(H),W=Math.round(K);return U.containerWidth===Y&&U.containerHeight===W?U:{containerWidth:Y,containerHeight:W}})},[]);Q.useEffect(function(){var H=function(F){var ee,le=F[0].contentRect,R=le.width,X=le.height;M(R,X),(ee=E.current)===null||ee===void 0||ee.call(E,R,X)};v>0&&(H=AD(H,v,{trailing:!0,leading:!1}));var K=new ResizeObserver(H),U=T.current.getBoundingClientRect(),Y=U.width,W=U.height;return M(Y,W),K.observe(T.current),function(){K.disconnect()}},[M,v]);var k=Q.useMemo(function(){var H=C.containerWidth,K=C.containerHeight;if(H<0||K<0)return null;$i(os(o)||os(l),`The width(%s) and height(%s) are both fixed numbers, 399 maybe you don't need to use a ResponsiveContainer.`,o,l),$i(!r||r>0,"The aspect(%s) must be greater than zero.",r);var U=os(o)?H:o,Y=os(l)?K:l;r&&r>0&&(U?Y=U/r:Y&&(U=Y*r),d&&Y>d&&(Y=d)),$i(U>0||Y>0,`The width(%s) and height(%s) of chart should be greater than 0, 400 please check the style of container, or the props width(%s) and height(%s), 401 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 402 height and width.`,U,Y,o,l,c,f,r);var W=!Array.isArray(m)&&ba(m.type).endsWith("Chart");return j.Children.map(m,function(J){return j.isValidElement(J)?Q.cloneElement(J,p0({width:U,height:Y},W?{style:p0({height:"100%",width:"100%",maxHeight:Y,maxWidth:U},J.props.style)}:{})):J})},[r,m,l,d,f,c,C,o]);return j.createElement("div",{id:y?"".concat(y):void 0,className:He("recharts-responsive-container",x),style:p0(p0({},S),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:T},k)}),_d=function(t){return null};_d.displayName="Cell";function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}function x2(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x2(Object(r),!0).forEach(function(n){Jce(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x2(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jce(e,t,r){return t=Zce(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zce(e){var t=Qce(e,"string");return If(t)=="symbol"?t:t+""}function Qce(e,t){if(If(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(If(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ys={widthCache:{},cacheCount:0},efe=2e3,tfe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_2="recharts_measurement_span";function rfe(e){var t=sx({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Hc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ha.isSsr)return{width:0,height:0};var n=rfe(r),i=JSON.stringify({text:t,copyStyle:n});if(Ys.widthCache[i])return Ys.widthCache[i];try{var a=document.getElementById(_2);a||(a=document.createElement("span"),a.setAttribute("id",_2),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=sx(sx({},tfe),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Ys.widthCache[i]=l,++Ys.cacheCount>efe&&(Ys.cacheCount=0,Ys.widthCache={}),l}catch{return{width:0,height:0}}},nfe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Nf(e){"@babel/helpers - typeof";return Nf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nf(e)}function Gh(e,t){return sfe(e)||ofe(e,t)||afe(e,t)||ife()}function ife(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 403In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function afe(e,t){if(e){if(typeof e=="string")return w2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w2(e,t)}}function w2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ofe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function sfe(e){if(Array.isArray(e))return e}function lfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cfe(n.key),n)}}function ufe(e,t,r){return t&&E2(e.prototype,t),r&&E2(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cfe(e){var t=ffe(e,"string");return Nf(t)=="symbol"?t:t+""}function ffe(e,t){if(Nf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var T2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,S2=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,dfe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,hfe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,bD={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},pfe=Object.keys(bD),vl="NaN";function mfe(e,t){return e*bD[t]}var m0=function(){function e(t,r){lfe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!dfe.test(r)&&(this.num=NaN,this.unit=""),pfe.includes(r)&&(this.num=mfe(t,r),this.unit="px")}return ufe(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=hfe.exec(r))!==null&&n!==void 0?n:[],a=Gh(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function CD(e){if(e.includes(vl))return vl;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=T2.exec(t))!==null&&r!==void 0?r:[],i=Gh(n,4),a=i[1],o=i[2],s=i[3],l=m0.parse(a??""),u=m0.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return vl;t=t.replace(T2,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=S2.exec(t))!==null&&f!==void 0?f:[],m=Gh(d,4),g=m[1],v=m[2],y=m[3],x=m0.parse(g??""),w=m0.parse(y??""),_=v==="+"?x.add(w):x.subtract(w);if(_.isNaN())return vl;t=t.replace(S2,_.toString())}return t}var A2=/\(([^()]*)\)/;function vfe(e){for(var t=e;t.includes("(");){var r=A2.exec(t),n=Gh(r,2),i=n[1];t=t.replace(A2,CD(i))}return t}function gfe(e){var t=e.replace(/\s+/g,"");return t=vfe(t),t=CD(t),t}function yfe(e){try{return gfe(e)}catch{return vl}}function Qv(e){var t=yfe(e.slice(5,-1));return t===vl?"":t}var xfe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],_fe=["dx","dy","angle","className","breakAll"];function lx(){return lx=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},lx.apply(this,arguments)}function b2(e,t){if(e==null)return{};var r=wfe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wfe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function C2(e,t){return Afe(e)||Sfe(e,t)||Tfe(e,t)||Efe()}function Efe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 404In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tfe(e,t){if(e){if(typeof e=="string")return P2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P2(e,t)}}function P2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Sfe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Afe(e){if(Array.isArray(e))return e}var PD=/[ \f\n\r\t\v\u2028\u2029]+/,kD=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];De(r)||(n?a=r.toString().split(""):a=r.toString().split(PD));var o=a.map(function(l){return{word:l,width:Hc(l,i).width}}),s=n?0:Hc("Â ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},bfe=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=ge(o),f=s,d=function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return U.reduce(function(Y,W){var J=W.word,F=W.width,ee=Y[Y.length-1];if(ee&&(i==null||a||ee.width+F+n<Number(i)))ee.words.push(J),ee.width+=F+n;else{var le={words:[J],width:F};Y.push(le)}return Y},[])}
404,m=d(r),g=function(U){return U.reduce(function(Y,W){return Y.width>W.width?Y:W})};if(!c)return m;for(var v="â¦",y=function(U){var Y=f.slice(0,U),W=kD({breakAll:u,style:l,children:Y+v}).wordsWithComputedWidth,J=d(W),F=J.length>o||g(J).width>Number(i);return[F,J]},x=0,w=f.length-1,_=0,S;x<=w&&_<=f.length-1;){var T=Math.floor((x+w)/2),E=T-1,A=y(E),P=C2(A,2),C=P[0],N=P[1],M=y(T),k=C2(M,1),H=k[0];if(!C&&!H&&(x=T+1),C&&H&&(w=T-1),!C&&H){S=N;break}_++}return S||m},k2=function(t){var r=De(t)?[]:t.toString().split(PD);return[{words:r}]},Cfe=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Ha.isSsr){var l,u,c=kD({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return k2(i);return bfe({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return k2(i)},I2="#808080",Cs=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,m=d===void 0?"start":d,g=t.verticalAnchor,v=g===void 0?"end":g,y=t.fill,x=y===void 0?I2:y,w=b2(t,xfe),_=Q.useMemo(function(){return Cfe({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:f,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,f,w.style,w.width]),S=w.dx,T=w.dy,E=w.angle,A=w.className,P=w.breakAll,C=b2(w,_fe);if(!gr(n)||!gr(a))return null;var N=n+(ge(S)?S:0),M=a+(ge(T)?T:0),k;switch(v){case"start":k=Qv("calc(".concat(u,")"));break;case"middle":k=Qv("calc(".concat((_.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:k=Qv("calc(".concat(_.length-1," * -").concat(s,")"));break}var H=[];if(f){var K=_[0].width,U=w.width;H.push("scale(".concat((ge(U)?U/K:1)/K,")"))}return E&&H.push("rotate(".concat(E,", ").concat(N,", ").concat(M,")")),H.length&&(C.transform=H.join(" ")),j.createElement("text",lx({},Oe(C,!0),{x:N,y:M,className:He("recharts-text",A),textAnchor:m,fill:x.includes("url")?I2:x}),_.map(function(Y,W){var J=Y.words.join(P?"":" ");return j.createElement("tspan",{x:N,dy:W===0?k:s,key:"".concat(J,"-").concat(W)},J)}))};function To(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Pfe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yw(e){let t,r,n;e.length!==2?(t=To,r=(s,l)=>To(e(s),l),n=(s,l)=>e(s)-l):(t=e===To||e===Pfe?e:kfe,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function kfe(){return 0}function ID(e){return e===null?NaN:+e}function*Ife(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Nfe=yw(To),wd=Nfe.right;yw(ID).center;class N2 extends Map{constructor(t,r=Mfe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(O2(this,t))}has(t){return super.has(O2(this,t))}set(t,r){return super.set(Ofe(this,t),r)}delete(t){return super.delete(Rfe(this,t))}}function O2({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Ofe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Rfe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Mfe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Dfe(e=To){if(e===To)return ND;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function ND(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Ffe=Math.sqrt(50),Lfe=Math.sqrt(10),$fe=Math.sqrt(2);function Vh(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=Ffe?10:a>=Lfe?5:a>=$fe?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?Vh(e,t,r*2):[s,l,u]}function ux(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Vh(t,e,r):Vh(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function cx(e,t,r){return t=+t,e=+e,r=+r,Vh(e,t,r)[2]}function fx(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?cx(t,e,r):cx(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function R2(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function M2(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}
404function OD(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?ND:Dfe(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),m=Math.max(r,Math.floor(t-u*f/l+d)),g=Math.min(n,Math.floor(t+(l-u)*f/l+d));OD(e,t,m,g,i)}const a=e[t];let o=r,s=n;for(oc(e,r,t),i(e[n],a)>0&&oc(e,r,n);o<s;){for(oc(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?oc(e,r,s):(++s,oc(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function oc(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Bfe(e,t,r){if(e=Float64Array.from(Ife(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return M2(e);if(t>=1)return R2(e);var n,i=(n-1)*t,a=Math.floor(i),o=R2(OD(e,a).subarray(0,a+1)),s=M2(e.subarray(a+1));return o+(s-o)*(i-a)}}function Ufe(e,t,r=ID){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function Gfe(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function gi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ja(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const dx=Symbol("implicit");function xw(){var e=new N2,t=[],r=[],n=dx;function i(a){let o=e.get(a);if(o===void 0){if(n!==dx)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new N2;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return xw(t,r).unknown(n)},gi.apply(i,arguments),i}function Of(){var e=xw().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,m=i<n,g=m?i:n,v=m?n:i;a=(v-g)/Math.max(1,d-l+u*2),s&&(a=Math.floor(a)),g+=(v-g-a*(d-l))*c,o=a*(1-l),s&&(g=Math.round(g),o=Math.round(o));var y=Gfe(d).map(function(x){return g+a*x});return r(m?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Of(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},gi.apply(f(),arguments)}function RD(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return RD(t())},e}function jc(){return RD(Of.apply(null,arguments).paddingInner(1))}function _w(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function MD(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ed(){}var Rf=.7,Hh=1/Rf,Rl="\\s*([+-]?\\d+)\\s*",Mf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ra="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vfe=/^#([0-9a-f]{3,8})$/,Hfe=new RegExp(`^rgb\\(${Rl},${Rl},${Rl}\\)$`),jfe=new RegExp(`^rgb\\(${ra},${ra},${ra}\\)$`),zfe=new RegExp(`^rgba\\(${Rl},${Rl},${Rl},${Mf}\\)$`),Wfe=new RegExp(`^rgba\\(${ra},${ra},${ra},${Mf}\\)$`),qfe=new RegExp(`^hsl\\(${Mf},${ra},${ra}\\)$`),Kfe=new RegExp(`^hsla\\(${Mf},${ra},${ra},${Mf}\\)$`),D2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};_w(Ed,Df,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:F2,formatHex:F2,formatHex8:Yfe,formatHsl:Xfe,formatRgb:L2,toString:L2});function F2(){return this.rgb().formatHex()}function Yfe(){return this.rgb().formatHex8()}
vendor: 4,228 bytes, line 404
404function Xfe(){return DD(this).formatHsl()}function L2(){return this.rgb().formatRgb()}function Df(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Vfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?$2(t):r===3?new Cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?v0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?v0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Hfe.exec(e))?new Cn(t[1],t[2],t[3],1):(t=jfe.exec(e))?new Cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zfe.exec(e))?v0(t[1],t[2],t[3],t[4]):(t=Wfe.exec(e))?v0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=qfe.exec(e))?G2(t[1],t[2]/100,t[3]/100,1):(t=Kfe.exec(e))?G2(t[1],t[2]/100,t[3]/100,t[4]):D2.hasOwnProperty(e)?$2(D2[e]):e==="transparent"?new Cn(NaN,NaN,NaN,0):null}function $2(e){return new Cn(e>>16&255,e>>8&255,e&255,1)}function v0(e,t,r,n){return n<=0&&(e=t=r=NaN),new Cn(e,t,r,n)}function Jfe(e){return e instanceof Ed||(e=Df(e)),e?(e=e.rgb(),new Cn(e.r,e.g,e.b,e.opacity)):new Cn}function hx(e,t,r,n){return arguments.length===1?Jfe(e):new Cn(e,t,r,n??1)}function Cn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}_w(Cn,hx,MD(Ed,{brighter(e){return e=e==null?Hh:Math.pow(Hh,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Rf:Math.pow(Rf,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cn(vs(this.r),vs(this.g),vs(this.b),jh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:B2,formatHex:B2,formatHex8:Zfe,formatRgb:U2,toString:U2}));function B2(){return`#${ss(this.r)}${ss(this.g)}${ss(this.b)}`}function Zfe(){return`#${ss(this.r)}${ss(this.g)}${ss(this.b)}${ss((isNaN(this.opacity)?1:this.opacity)*255)}`}function U2(){const e=jh(this.opacity);return`${e===1?"rgb(":"rgba("}${vs(this.r)}, ${vs(this.g)}, ${vs(this.b)}${e===1?")":`, ${e})`}`}function jh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ss(e){return e=vs(e),(e<16?"0":"")+e.toString(16)}function G2(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ii(e,t,r,n)}function DD(e){if(e instanceof Ii)return new Ii(e.h,e.s,e.l,e.opacity);if(e instanceof Ed||(e=Df(e)),!e)return new Ii;if(e instanceof Ii)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Ii(o,s,l,e.opacity)}function Qfe(e,t,r,n){return arguments.length===1?DD(e):new Ii(e,t,r,n??1)}function Ii(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}_w(Ii,Qfe,MD(Ed,{brighter(e){return e=e==null?Hh:Math.pow(Hh,e),new Ii(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Rf:Math.pow(Rf,e),new Ii(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Cn(eg(e>=240?e-240:e+120,i,n),eg(e,i,n),eg(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ii(V2(this.h),g0(this.s),g0(this.l),jh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=jh(this.opacity);return`${e===1?"hsl(":"hsla("}${V2(this.h)}, ${g0(this.s)*100}%, ${g0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function V2(e){return e=(e||0)%360,e<0?e+360:e}function g0(e){return Math.max(0,Math.min(1,e||0))}function eg(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ww=e=>()=>e;function ede(e,t){return function(r){return e+r*t}}function tde(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function rde(e){return(e=+e)==1?FD:function(t,r){return r-t?tde(t,r,e):ww(isNaN(t)?r:t)}}function FD(e,t){var r=t-e;return r?ede(e,r):ww(isNaN(e)?t:e)}const H2=function e(t){var r=rde(t);function n(i,a){var o=r((i=hx(i)).r,(a=hx(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=FD(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n}(1);
vendor: 5,909 bytes, line 404
404function nde(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function ide(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ade(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Lu(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function ode(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function zh(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function sde(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Lu(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var px=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tg=new RegExp(px.source,"g");function lde(e){return function(){return e}}function ude(e){return function(t){return e(t)+""}}function cde(e,t){var r=px.lastIndex=tg.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=px.exec(e))&&(i=tg.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:zh(n,i)})),r=tg.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?ude(l[0].x):lde(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function Lu(e,t){var r=typeof t,n;return t==null||r==="boolean"?ww(t):(r==="number"?zh:r==="string"?(n=Df(t))?(t=n,H2):cde:t instanceof Df?H2:t instanceof Date?ode:ide(t)?nde:Array.isArray(t)?ade:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?sde:zh)(e,t)}function Ew(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function fde(e,t){t===void 0&&(t=e,e=Lu);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function dde(e){return function(){return e}}function Wh(e){return+e}var j2=[0,1];function mn(e){return e}function mx(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:dde(isNaN(t)?NaN:.5)}function hde(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function pde(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=mx(i,n),a=r(o,a)):(n=mx(n,i),a=r(a,o)),function(s){return a(n(s))}}function mde(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=mx(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=wd(e,s,1,n)-1;return a[l](i[l](s))}}function Td(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function km(){var e=j2,t=j2,r=Lu,n,i,a,o=mn,s,l,u;function c(){var d=Math.min(e.length,t.length);return o!==mn&&(o=hde(e[0],e[d-1])),s=d>2?mde:pde,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=s(t,e.map(n),zh)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,Wh),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Ew,c()},f.clamp=function(d){return arguments.length?(o=d?!0:mn,c()):o!==mn},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,m){return n=d,i=m,c()}}function Tw(){return km()(mn,mn)}function vde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function qh(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Yl(e){return e=qh(Math.abs(e)),e?e[1]:NaN}function gde(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function yde(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var xde=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ff(e){if(!(t=xde.exec(e)))throw new Error("invalid format: "+e);var t;return new Sw({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ff.prototype=Sw.prototype;function Sw(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Sw.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _de(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Kh;function wde(e,t){var r=qh(e,t);if(!r)return Kh=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Kh=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+qh(e,Math.max(0,t+a-1))[0]}function z2(e,t){var r=qh(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const W2={"%":(e,t)=>
vendor: 5,723 bytes, line 404
404(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:vde,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>z2(e*100,t),r:z2,s:wde,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function q2(e){return e}var K2=Array.prototype.map,Y2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ede(e){var t=e.grouping===void 0||e.thousands===void 0?q2:gde(K2.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?q2:yde(K2.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"â":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f,d){f=Ff(f);var m=f.fill,g=f.align,v=f.sign,y=f.symbol,x=f.zero,w=f.width,_=f.comma,S=f.precision,T=f.trim,E=f.type;E==="n"?(_=!0,E="g"):W2[E]||(S===void 0&&(S=12),T=!0,E="g"),(x||m==="0"&&g==="=")&&(x=!0,m="0",g="=");var A=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(E)?"0"+E.toLowerCase():""),P=(y==="$"?n:/[%p]/.test(E)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),C=W2[E],N=/[defgprs%]/.test(E);S=S===void 0?6:/[gprs]/.test(E)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function M(k){var H=A,K=P,U,Y,W;if(E==="c")K=C(k)+K,k="";else{k=+k;var J=k<0||1/k<0;if(k=isNaN(k)?l:C(Math.abs(k),S),T&&(k=_de(k)),J&&+k==0&&v!=="+"&&(J=!1),H=(J?v==="("?v:s:v==="-"||v==="("?"":v)+H,K=(E==="s"&&!isNaN(k)&&Kh!==void 0?Y2[8+Kh/3]:"")+K+(J&&v==="("?")":""),N){for(U=-1,Y=k.length;++U<Y;)if(W=k.charCodeAt(U),48>W||W>57){K=(W===46?i+k.slice(U+1):k.slice(U))+K,k=k.slice(0,U);break}}}_&&!x&&(k=t(k,1/0));var F=H.length+k.length+K.length,ee=F<w?new Array(w-F+1).join(m):"";switch(_&&x&&(k=t(ee+k,ee.length?w-K.length:1/0),ee=""),g){case"<":k=H+k+K+ee;break;case"=":k=H+ee+k+K;break;case"^":k=ee.slice(0,F=ee.length>>1)+H+k+K+ee.slice(F);break;default:k=ee+H+k+K;break}return a(k)}return M.toString=function(){return f+""},M}function c(f,d){var m=Math.max(-8,Math.min(8,Math.floor(Yl(d)/3)))*3,g=Math.pow(10,-m),v=u((f=Ff(f),f.type="f",f),{suffix:Y2[8+m/3]});return function(y){return v(g*y)}}return{format:u,formatPrefix:c}}var y0,Aw,LD;Tde({thousands:",",grouping:[3],currency:["$",""]});function Tde(e){return y0=Ede(e),Aw=y0.format,LD=y0.formatPrefix,y0}function Sde(e){return Math.max(0,-Yl(Math.abs(e)))}function Ade(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yl(t)/3)))*3-Yl(Math.abs(e)))}function bde(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yl(t)-Yl(e))+1}function $D(e,t,r,n){var i=fx(e,t,r),a;switch(n=Ff(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Ade(i,o))&&(n.precision=a),LD(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=bde(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Sde(i))&&(n.precision=a-(n.type==="%")*2);break}}return Aw(n)}function Bo(e){var t=e.domain;return e.ticks=function(r){var n=t();return ux(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return $D(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=cx(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Yh(){var e=Tw();return e.copy=function(){return Td(e,Yh())},gi.apply(e,arguments),Bo(e)}function BD(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Wh),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return BD(e).unknown(t)},e=arguments.length?Array.from(e,Wh):[0,1],Bo(r)}function UD(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function X2(e){return Math.log(e)}function J2(e){return Math.exp(e)}function Cde(e){return-Math.log(-e)}function Pde(e){return-Math.exp(-e)}function kde(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Ide(e){return e===10?kde:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Nde(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Z2(e){return(t,r)=>-e(-t,r)}function bw(e){const t=e(X2,J2),r=t.domain;let n=10,i,a;function o(){return i=Nde(n),a=Ide(n),r()[0]<0?(i=Z2(i),a=Z2(a),e(Cde,Pde)):e(X2,J2),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),m=i(c),g,v;const y=s==null?10:+s;let x=[];if(!(n%1)&&m-d<y){if(d=Math.floor(d),m=Math.ceil(m),u>0){for(;d<=m;++d)for(g=1;g<n;++g)if(v=d<0?g/a(-d):g*a(d),!(v<u)){if(v>c)break;x.push(v)}}else for(;d<=m;++d)for(g=n-1;g>=1;--g)if(v=d>0?g/a(-d):g*a(d),!(v<u)){if(v>c)break;x.push(v)}x.length*2<y&&(x=ux(u,c,y))}else x=ux(d,m,Math.min(m-d,y)).map(a);return f?x.reverse():x},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ff(l)).precision==null&&(l.trim=!0),l=Aw(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(UD(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function GD(){const e=bw(km()).domain([1,10]);return e.copy=()=>Td(e,GD()).base(e.base()),gi.apply(e,arguments),e}
404function Q2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function eC(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Cw(e){var t=1,r=e(Q2(t),eC(t));return r.constant=function(n){return arguments.length?e(Q2(t=+n),eC(t)):t},Bo(r)}function VD(){var e=Cw(km());return e.copy=function(){return Td(e,VD()).constant(e.constant())},gi.apply(e,arguments)}function tC(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ode(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Rde(e){return e<0?-e*e:e*e}function Pw(e){var t=e(mn,mn),r=1;function n(){return r===1?e(mn,mn):r===.5?e(Ode,Rde):e(tC(r),tC(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Bo(t)}function kw(){var e=Pw(km());return e.copy=function(){return Td(e,kw()).exponent(e.exponent())},gi.apply(e,arguments),e}function Mde(){return kw.apply(null,arguments).exponent(.5)}function rC(e){return Math.sign(e)*e*e}function Dde(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function HD(){var e=Tw(),t=[0,1],r=!1,n;function i(a){var o=Dde(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(rC(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Wh)).map(rC)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return HD(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},gi.apply(i,arguments),Bo(i)}function jD(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=Ufe(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[wd(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(To),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return jD().domain(e).range(t).unknown(n)},gi.apply(a,arguments)}function zD(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[wd(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return zD().domain([e,t]).range(i).unknown(a)},gi.apply(Bo(o),arguments)}function WD(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[wd(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return WD().domain(e).range(t).unknown(r)},gi.apply(i,arguments)}const rg=new Date,ng=new Date;function _r(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>_r(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(rg.setTime(+a),ng.setTime(+o),e(rg),e(ng),Math.floor(r(rg,ng))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Xh=_r(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Xh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?_r(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Xh);Xh.range;const _a=1e3,oi=_a*60,wa=oi*60,Ma=wa*24,Iw=Ma*7,nC=Ma*30,ig=Ma*365,ls=_r(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*_a)},(e,t)=>(t-e)/_a,e=>e.getUTCSeconds());ls.range;const Nw=_r(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_a)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getMinutes());Nw.range;const Ow=_r(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*oi)},(e,t)=>(t-e)/oi,e=>e.getUTCMinutes());Ow.range;const Rw=_r(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_a-e.getMinutes()*oi)},(e,t)=>{e.setTime(+e+t*wa)},(e,t)=>(t-e)/wa,e=>e.getHours());Rw.range;const Mw=_r(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*wa)},(e,t)=>(t-e)/wa,e=>e.getUTCHours());Mw.range;const Sd=_r(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*oi)/Ma,e=>e.getDate()-1);Sd.range;const Im=_r(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ma,e=>e.getUTCDate()-1);Im.range;const qD=_r(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ma,e=>Math.floor(e/Ma));qD.range;function Gs(e){return _r(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*oi)/Iw)}const Nm=Gs(0),Jh=Gs(1),Fde=Gs(2),Lde=Gs(3),Xl=Gs(4),$de=Gs(5),Bde=Gs(6);Nm.range;Jh.range;Fde.range;Lde.range;Xl.range;$de.range;Bde.range;function Vs(e){return _r(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Iw)}const Om=Vs(0),Zh=Vs(1),Ude=Vs(2),Gde=Vs(3),Jl=Vs(4),Vde=Vs(5),Hde=Vs(6);Om.range;Zh.range;Ude.range;Gde.range;Jl.range;Vde.range;Hde.range;const Dw=_r(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Dw.range;const Fw=_r(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Fw.range;const Da=_r(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Da.every=e=>
vendor: 10,212 bytes, line 404
404!isFinite(e=Math.floor(e))||!(e>0)?null:_r(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Da.range;const Fa=_r(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Fa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:_r(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Fa.range;function KD(e,t,r,n,i,a){const o=[[ls,1,_a],[ls,5,5*_a],[ls,15,15*_a],[ls,30,30*_a],[a,1,oi],[a,5,5*oi],[a,15,15*oi],[a,30,30*oi],[i,1,wa],[i,3,3*wa],[i,6,6*wa],[i,12,12*wa],[n,1,Ma],[n,2,2*Ma],[r,1,Iw],[t,1,nC],[t,3,3*nC],[e,1,ig]];function s(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const m=f&&typeof f.range=="function"?f:l(u,c,f),g=m?m.range(u,+c+1):[];return d?g.reverse():g}function l(u,c,f){const d=Math.abs(c-u)/f,m=yw(([,,y])=>y).right(o,d);if(m===o.length)return e.every(fx(u/ig,c/ig,f));if(m===0)return Xh.every(Math.max(fx(u,c,f),1));const[g,v]=o[d/o[m-1][2]<o[m][2]/d?m-1:m];return g.every(v)}return[s,l]}const[jde,zde]=KD(Fa,Fw,Om,qD,Mw,Ow),[Wde,qde]=KD(Da,Dw,Nm,Sd,Rw,Nw);function ag(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function og(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function sc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function Kde(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=lc(i),c=uc(i),f=lc(a),d=uc(a),m=lc(o),g=uc(o),v=lc(s),y=uc(s),x=lc(l),w=uc(l),_={a:W,A:J,b:F,B:ee,c:null,d:uC,e:uC,f:g0e,g:C0e,G:k0e,H:p0e,I:m0e,j:v0e,L:YD,m:y0e,M:x0e,p:le,q:R,Q:dC,s:hC,S:_0e,u:w0e,U:E0e,V:T0e,w:S0e,W:A0e,x:null,X:null,y:b0e,Y:P0e,Z:I0e,"%":fC},S={a:X,A:q,b:z,B:se,c:null,d:cC,e:cC,f:M0e,g:j0e,G:W0e,H:N0e,I:O0e,j:R0e,L:JD,m:D0e,M:F0e,p:pe,q:_e,Q:dC,s:hC,S:L0e,u:$0e,U:B0e,V:U0e,w:G0e,W:V0e,x:null,X:null,y:H0e,Y:z0e,Z:q0e,"%":fC},T={a:N,A:M,b:k,B:H,c:K,d:sC,e:sC,f:c0e,g:oC,G:aC,H:lC,I:lC,j:o0e,L:u0e,m:a0e,M:s0e,p:C,q:i0e,Q:d0e,s:h0e,S:l0e,u:Qde,U:e0e,V:t0e,w:Zde,W:r0e,x:U,X:Y,y:oC,Y:aC,Z:n0e,"%":f0e};_.x=E(r,_),_.X=E(n,_),_.c=E(t,_),S.x=E(r,S),S.X=E(n,S),S.c=E(t,S);function E(te,oe){return function(Te){var O=[],$e=-1,Ce=0,Me=te.length,Re,he,Qe;for(Te instanceof Date||(Te=new Date(+Te));++$e<Me;)te.charCodeAt($e)===37&&(O.push(te.slice(Ce,$e)),(he=iC[Re=te.charAt(++$e)])!=null?Re=te.charAt(++$e):he=Re==="e"?" ":"0",(Qe=oe[Re])&&(Re=Qe(Te,he)),O.push(Re),Ce=$e+1);return O.push(te.slice(Ce,$e)),O.join("")}}function A(te,oe){return function(Te){var O=sc(1900,void 0,1),$e=P(O,te,Te+="",0),Ce,Me;if($e!=Te.length)return null;if("Q"in O)return new Date(O.Q);if("s"in O)return new Date(O.s*1e3+("L"in O?O.L:0));if(oe&&!("Z"in O)&&(O.Z=0),"p"in O&&(O.H=O.H%12+O.p*12),O.m===void 0&&(O.m="q"in O?O.q:0),"V"in O){if(O.V<1||O.V>53)return null;"w"in O||(O.w=1),"Z"in O?(Ce=og(sc(O.y,0,1)),Me=Ce.getUTCDay(),Ce=Me>4||Me===0?Zh.ceil(Ce):Zh(Ce),Ce=Im.offset(Ce,(O.V-1)*7),O.y=Ce.getUTCFullYear(),O.m=Ce.getUTCMonth(),O.d=Ce.getUTCDate()+(O.w+6)%7):(Ce=ag(sc(O.y,0,1)),Me=Ce.getDay(),Ce=Me>4||Me===0?Jh.ceil(Ce):Jh(Ce),Ce=Sd.offset(Ce,(O.V-1)*7),O.y=Ce.getFullYear(),O.m=Ce.getMonth(),O.d=Ce.getDate()+(O.w+6)%7)}else("W"in O||"U"in O)&&("w"in O||(O.w="u"in O?O.u%7:"W"in O?1:0),Me="Z"in O?og(sc(O.y,0,1)).getUTCDay():ag(sc(O.y,0,1)).getDay(),O.m=0,O.d="W"in O?(O.w+6)%7+O.W*7-(Me+5)%7:O.w+O.U*7-(Me+6)%7);return"Z"in O?(O.H+=O.Z/100|0,O.M+=O.Z%100,og(O)):ag(O)}}function P(te,oe,Te,O){for(var $e=0,Ce=oe.length,Me=Te.length,Re,he;$e<Ce;){if(O>=Me)return-1;if(Re=oe.charCodeAt($e++),Re===37){if(Re=oe.charAt($e++),he=T[Re in iC?oe.charAt($e++):Re],!he||(O=he(te,Te,O))<0)return-1}else if(Re!=Te.charCodeAt(O++))return-1}return O}function C(te,oe,Te){var O=u.exec(oe.slice(Te));return O?(te.p=c.get(O[0].toLowerCase()),Te+O[0].length):-1}function N(te,oe,Te){var O=m.exec(oe.slice(Te));return O?(te.w=g.get(O[0].toLowerCase()),Te+O[0].length):-1}function M(te,oe,Te){var O=f.exec(oe.slice(Te));return O?(te.w=d.get(O[0].toLowerCase()),Te+O[0].length):-1}function k(te,oe,Te){var O=x.exec(oe.slice(Te));return O?(te.m=w.get(O[0].toLowerCase()),Te+O[0].length):-1}function H(te,oe,Te){var O=v.exec(oe.slice(Te));return O?(te.m=y.get(O[0].toLowerCase()),Te+O[0].length):-1}function K(te,oe,Te){return P(te,t,oe,Te)}function U(te,oe,Te){return P(te,r,oe,Te)}function Y(te,oe,Te){return P(te,n,oe,Te)}function W(te){return o[te.getDay()]}function J(te){return a[te.getDay()]}function F(te){return l[te.getMonth()]}function ee(te){return s[te.getMonth()]}function le(te){return i[+(te.getHours()>=12)]}function R(te){return 1+~~(te.getMonth()/3)}function X(te){return o[te.getUTCDay()]}function q(te){return a[te.getUTCDay()]}function z(te){return l[te.getUTCMonth()]}function se(te){return s[te.getUTCMonth()]}function pe(te){return i[+(te.getUTCHours()>=12)]}function _e(te){return 1+~~(te.getUTCMonth()/3)}return{format:function(te){var oe=E(te+="",_);return oe.toString=function(){return te},oe},parse:function(te){var oe=A(te+="",!1);return oe.toString=function(){return te},oe},utcFormat:function(te){var oe=E(te+="",S);return oe.toString=function(){return te},oe},utcParse:function(te){var oe=A(te+="",!0);return oe.toString=function(){return te},oe}}}var iC={"-":"",_:" ",0:"0"},Rr=/^\s*\d+/,Yde=/^%/,Xde=/[\\^$*+?|[\]().{}]/g;function lt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Jde(e){return e.replace(Xde,"\\$&")}function lc(e){return new RegExp("^(?:"+e.map(Jde).join("|")+")","i")}function uc(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function Zde(e,t,r){var n=Rr.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Qde(e,t,r){var n=Rr.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function e0e(e,t,r){var n=Rr.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function t0e(e,t,r){var n=Rr.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function r0e(e,t,r){var n=Rr.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function aC(e,t,r){var n=Rr.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function oC(e,t,r){var n=Rr.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function n0e(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function i0e(e,t,r){var n=Rr.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function a0e(e,t,r){var n=Rr.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function sC(e,t,r){var n=Rr.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function o0e(e,t,r){var n=Rr.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function lC(e,t,r){var n=Rr.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function s0e(e,t,r){var n=Rr.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function l0e(e,t,r){var n=Rr.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function u0e(e,t,r){var n=Rr.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function c0e(e,t,r){var n=Rr.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function f0e(e,t,r){var n=Yde.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function d0e(e,t,r){var n=Rr.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function h0e(e,t,r){var n=Rr.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function uC(e,t){return lt(e.getDate(),t,2)}function p0e(e,t){return lt(e.getHours(),t,2)}function m0e(e,t){return lt(e.getHours()%12||12,t,2)}function v0e(e,t){return lt(1+Sd.count(Da(e),e),t,3)}function YD(e,t){return lt(e.getMilliseconds(),t,3)}function g0e(e,t){return YD(e,t)+"000"}function y0e(e,t){return lt(e.getMonth()+1,t,2)}function x0e(e,t){return lt(e.getMinutes(),t,2)}function _0e(e,t){return lt(e.getSeconds(),t,2)}function w0e(e){var t=e.getDay();return t===0?7:t}function E0e(e,t){return lt(Nm.count(Da(e)-1,e),t,2)}function XD(e){var t=e.getDay();return t>=4||t===0?Xl(e):Xl.ceil(e)}function T0e(e,t){return e=XD(e),lt(Xl.count(Da(e),e)+(Da(e).getDay()===4),t,2)}function S0e(e){return e.getDay()}function A0e(e,t){return lt(Jh.count(Da(e)-1,e),t,2)}function b0e(e,t){return lt(e.getFullYear()%100,t,2)}function C0e(e,t){return e=XD(e),lt(e.getFullYear()%100,t,2)}function P0e(e,t){return lt(e.getFullYear()%1e4,t,4)}function k0e(e,t){var r=e.getDay();return e=r>=4||r===0?Xl(e):Xl.ceil(e),lt(e.getFullYear()%1e4,t,4)}function I0e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lt(t/60|0,"0",2)+lt(t%60,"0",2)}function cC(e,t){return lt(e.getUTCDate(),t,2)}function N0e(e,t){return lt(e.getUTCHours(),t,2)}function O0e(e,t){return lt(e.getUTCHours()%12||12,t,2)}function R0e(e,t){return lt(1+Im.count(Fa(e),e),t,3)}function JD(e,t){return lt(e.getUTCMilliseconds(),t,3)}function M0e(e,t){return JD(e,t)+"000"}function D0e(e,t){return lt(e.getUTCMonth()+1,t,2)}function F0e(e,t){return lt(e.getUTCMinutes(),t,2)}function L0e(e,t){return lt(e.getUTCSeconds(),t,2)}function $0e(e){var t=e.getUTCDay();return t===0?7:t}function B0e(e,t){return lt(Om.count(Fa(e)-1,e),t,2)}function ZD(e){var t=e.getUTCDay();return t>=4||t===0?Jl(e):Jl.ceil(e)}function U0e(e,t){return e=ZD(e),lt(Jl.count(Fa(e),e)+(Fa(e).getUTCDay()===4),t,2)}function G0e(e){return e.getUTCDay()}function V0e(e,t){return lt(Zh.count(Fa(e)-1,e),t,2)}function H0e(e,t){return lt(e.getUTCFullYear()%100,t,2)}function j0e(e,t){return e=ZD(e),lt(e.getUTCFullYear()%100,t,2)}function z0e(e,t){return lt(e.getUTCFullYear()%1e4,t,4)}function W0e(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Jl(e):Jl.ceil(e),lt(e.getUTCFullYear()%1e4,t,4)}function q0e(){return"+0000"}function fC(){return"%"}function dC(e){return+e}function hC(e){return Math.floor(+e/1e3)}var Xs,QD,eF;K0e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
404ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function K0e(e){return Xs=Kde(e),QD=Xs.format,Xs.parse,eF=Xs.utcFormat,Xs.utcParse,Xs}function Y0e(e){return new Date(e)}function X0e(e){return e instanceof Date?+e:+new Date(+e)}function Lw(e,t,r,n,i,a,o,s,l,u){var c=Tw(),f=c.invert,d=c.domain,m=u(".%L"),g=u(":%S"),v=u("%I:%M"),y=u("%I %p"),x=u("%a %d"),w=u("%b %d"),_=u("%B"),S=u("%Y");function T(E){return(l(E)<E?m:s(E)<E?g:o(E)<E?v:a(E)<E?y:n(E)<E?i(E)<E?x:w:r(E)<E?_:S)(E)}return c.invert=function(E){return new Date(f(E))},c.domain=function(E){return arguments.length?d(Array.from(E,X0e)):d().map(Y0e)},c.ticks=function(E){var A=d();return e(A[0],A[A.length-1],E??10)},c.tickFormat=function(E,A){return A==null?T:u(A)},c.nice=function(E){var A=d();return(!E||typeof E.range!="function")&&(E=t(A[0],A[A.length-1],E??10)),E?d(UD(A,E)):c},c.copy=function(){return Td(c,Lw(e,t,r,n,i,a,o,s,l,u))},c}function J0e(){return gi.apply(Lw(Wde,qde,Da,Dw,Nm,Sd,Rw,Nw,ls,QD).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Z0e(){return gi.apply(Lw(jde,zde,Fa,Fw,Om,Im,Mw,Ow,ls,eF).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Rm(){var e=0,t=1,r,n,i,a,o=mn,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var m,g;return arguments.length?([m,g]=d,o=f(m,g),u):[o(0),o(1)]}}return u.range=c(Lu),u.rangeRound=c(Ew),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function Uo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function tF(){var e=Bo(Rm()(mn));return e.copy=function(){return Uo(e,tF())},ja.apply(e,arguments)}function rF(){var e=bw(Rm()).domain([1,10]);return e.copy=function(){return Uo(e,rF()).base(e.base())},ja.apply(e,arguments)}function nF(){var e=Cw(Rm());return e.copy=function(){return Uo(e,nF()).constant(e.constant())},ja.apply(e,arguments)}function $w(){var e=Pw(Rm());return e.copy=function(){return Uo(e,$w()).exponent(e.exponent())},ja.apply(e,arguments)}function Q0e(){return $w.apply(null,arguments).exponent(.5)}function iF(){var e=[],t=mn;function r(n){if(n!=null&&!isNaN(n=+n))return t((wd(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(To),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>Bfe(e,a/n))},r.copy=function(){return iF(t).domain(e)},ja.apply(r,arguments)}function Mm(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=mn,c,f=!1,d;function m(v){return isNaN(v=+v)?d:(v=.5+((v=+c(v))-a)*(n*v<n*a?s:l),u(f?Math.max(0,Math.min(1,v)):v))}m.domain=function(v){return arguments.length?([e,t,r]=v,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,m):[e,t,r]},m.clamp=function(v){return arguments.length?(f=!!v,m):f},m.interpolator=function(v){return arguments.length?(u=v,m):u};function g(v){return function(y){var x,w,_;return arguments.length?([x,w,_]=y,u=fde(v,[x,w,_]),m):[u(0),u(.5),u(1)]}}return m.range=g(Lu),m.rangeRound=g(Ew),m.unknown=function(v){return arguments.length?(d=v,m):d},function(v){return c=v,i=v(e),a=v(t),o=v(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,m}}function aF(){var e=Bo(Mm()(mn));return e.copy=function(){return Uo(e,aF())},ja.apply(e,arguments)}function oF(){var e=bw(Mm()).domain([.1,1,10]);return e.copy=function(){return Uo(e,oF()).base(e.base())},ja.apply(e,arguments)}function sF(){var e=Cw(Mm());return e.copy=function(){return Uo(e,sF()).constant(e.constant())},ja.apply(e,arguments)}function Bw(){var e=Pw(Mm());return e.copy=function(){return Uo(e,Bw()).exponent(e.exponent())},ja.apply(e,arguments)}function ehe(){return Bw.apply(null,arguments).exponent(.5)}const pC=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Of,scaleDiverging:aF,scaleDivergingLog:oF,scaleDivergingPow:Bw,scaleDivergingSqrt:ehe,scaleDivergingSymlog:sF,scaleIdentity:BD,scaleImplicit:dx,scaleLinear:Yh,scaleLog:GD,scaleOrdinal:xw,scalePoint:jc,scalePow:kw,scaleQuantile:jD,scaleQuantize:zD,scaleRadial:HD,scaleSequential:tF,scaleSequentialLog:rF,scaleSequentialPow:$w,scaleSequentialQuantile:iF,scaleSequentialSqrt:Q0e,scaleSequentialSymlog:nF,scaleSqrt:Mde,scaleSymlog:VD,scaleThreshold:WD,scaleTime:J0e,scaleUtc:Z0e,tickFormat:$D},Symbol.toStringTag,{value:"Module"}));var the=Pu;function rhe(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!the(o):r(o,s)))var s=o,l=a}return l}var Dm=rhe;function nhe(e,t){return e>t}var lF=nhe,ihe=Dm,ahe=lF,ohe=Fu;
vendor: 65,686 bytes, lines 404-431
404function she(e){return e&&e.length?ihe(e,ohe,ahe):void 0}var lhe=she;const co=ft(lhe);function uhe(e,t){return e<t}var uF=uhe,che=Dm,fhe=uF,dhe=Fu;function hhe(e){return e&&e.length?che(e,dhe,fhe):void 0}var phe=hhe;const Fm=ft(phe);var mhe=ew,vhe=ua,ghe=yD,yhe=Nn;function xhe(e,t){var r=yhe(e)?mhe:ghe;return r(e,vhe(t))}var _he=xhe,whe=vD,Ehe=_he;function The(e,t){return whe(Ehe(e,t),1)}var She=The;const Ahe=ft(She);var bhe=pw;function Che(e,t){return bhe(e,t)}var Phe=Che;const Io=ft(Phe);var $u=1e9,khe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Gw,Dt=!0,hi="[DecimalError] ",gs=hi+"Invalid argument: ",Uw=hi+"Exponent out of range: ",Bu=Math.floor,Qo=Math.pow,Ihe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$n,Cr=1e7,Pt=7,cF=9007199254740991,Qh=Bu(cF/Pt),Ie={};Ie.absoluteValue=Ie.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Ie.comparedTo=Ie.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};Ie.decimalPlaces=Ie.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Pt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Ie.dividedBy=Ie.div=function(e){return Ca(this,new this.constructor(e))};Ie.dividedToIntegerBy=Ie.idiv=function(e){var t=this,r=t.constructor;return vt(Ca(t,new r(e),0,1),r.precision)};Ie.equals=Ie.eq=function(e){return!this.cmp(e)};Ie.exponent=function(){return nr(this)};Ie.greaterThan=Ie.gt=function(e){return this.cmp(e)>0};Ie.greaterThanOrEqualTo=Ie.gte=function(e){return this.cmp(e)>=0};Ie.isInteger=Ie.isint=function(){return this.e>this.d.length-2};Ie.isNegative=Ie.isneg=function(){return this.s<0};Ie.isPositive=Ie.ispos=function(){return this.s>0};Ie.isZero=function(){return this.s===0};Ie.lessThan=Ie.lt=function(e){return this.cmp(e)<0};Ie.lessThanOrEqualTo=Ie.lte=function(e){return this.cmp(e)<1};Ie.logarithm=Ie.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq($n))throw Error(hi+"NaN");if(r.s<1)throw Error(hi+(r.s?"NaN":"-Infinity"));return r.eq($n)?new n(0):(Dt=!1,t=Ca(Lf(r,a),Lf(e,a),a),Dt=!0,vt(t,i))};Ie.minus=Ie.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?hF(t,e):fF(t,(e.s=-e.s,e))};Ie.modulo=Ie.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(hi+"NaN");return r.s?(Dt=!1,t=Ca(r,e,0,1).times(e),Dt=!0,r.minus(t)):vt(new n(r),i)};Ie.naturalExponential=Ie.exp=function(){return dF(this)};Ie.naturalLogarithm=Ie.ln=function(){return Lf(this)};Ie.negated=Ie.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Ie.plus=Ie.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?fF(t,e):hF(t,(e.s=-e.s,e))};Ie.precision=Ie.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(gs+e);if(t=nr(i)+1,n=i.d.length-1,r=n*Pt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Ie.squareRoot=Ie.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(hi+"NaN")}for(e=nr(s),Dt=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Xi(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Bu((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Ca(s,a,o+2)).times(.5),Xi(a.d).slice(0,o)===(t=Xi(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(vt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Dt=!0,vt(n,r)};Ie.times=Ie.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,d=c.d,m=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=m.length,l<u&&(a=d,d=m,m=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+m[n]*d[i-n-1]+t,a[i--]=s%Cr|0,t=s/Cr|0;a[i]=(a[i]+t)%Cr|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Dt?vt(e,f.precision):e};Ie.toDecimalPlaces=Ie.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(aa(e,0,$u),t===void 0?t=n.rounding:aa(t,0,8),vt(r,e+nr(r)+1,t))};Ie.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ps(n,!0):(aa(e,0,$u),t===void 0?t=i.rounding:aa(t,0,8),n=vt(new i(n),e+1,t),r=Ps(n,!0,e+1)),r};Ie.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Ps(i):(aa(e,0,$u),t===void 0?t=a.rounding:aa(t,0,8),n=vt(new a(i),e+nr(i)+1,t),r=Ps(n.abs(),!1,e+nr(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Ie.toInteger=Ie.toint=function(){var e=this,t=e.constructor;return vt(new t(e),nr(e)+1,t.rounding)};Ie.toNumber=function(){return+this};Ie.toPower=Ie.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l($n);if(s=new l(s),!s.s){if(e.s<1)throw Error(hi+"Infinity");return s}if(s.eq($n))return s;if(n=l.precision,e.eq($n))return vt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=cF){for(i=new l($n),t=Math.ceil(n/Pt+4),Dt=!1;r%2&&(i=i.times(s),vC(i.d,t)),r=Bu(r/2),r!==0;)s=s.times(s),vC(s.d,t);return Dt=!0,e.s<0?new l($n).div(i):vt(i,n)}}else if(a<0)throw Error(hi+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Dt=!1,i=e.times(Lf(s,n+u)),Dt=!0,i=dF(i),i.s=a,i};Ie.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=nr(i),n=Ps(i,r<=a.toExpNeg||r>=a.toExpPos)):(aa(e,1,$u),t===void 0?t=a.rounding:aa(t,0,8),i=vt(new a(i),e,t),r=nr(i),n=Ps(i,e<=r||r<=a.toExpNeg,e)),n};Ie.toSignificantDigits=Ie.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(aa(e,1,$u),t===void 0?t=n.rounding:aa(t,0,8)),vt(new n(r),e,t)};Ie.toString=Ie.valueOf=Ie.val=Ie.toJSON=Ie[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=nr(e),r=e.constructor;return Ps(e,t<=r.toExpNeg||t>=r.toExpPos)};function fF(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Dt?vt(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/Pt),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/Cr|0,l[a]%=Cr;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Dt?vt(t,f):t}function aa(e,t,r){if(e!==~~e||e<t||e>r)throw Error(gs+e)}function Xi(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Pt-n.length,r&&(a+=eo(r)),a+=n;o=e[t],n=o+"",r=Pt-n.length,r&&(a+=eo(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Ca=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Cr|0,o=a/Cr|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Cr+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,d,m,g,v,y,x,w,_,S,T,E,A,P,C=n.constructor,N=n.s==i.s?1:-1,M=n.d,k=i.d;if(!n.s)return new C(n);if(!i.s)throw Error(hi+"Division by zero");for(l=n.e-i.e,A=k.length,T=M.length,m=new C(N),g=m.d=[],u=0;k[u]==(M[u]||0);)++u;if(k[u]>(M[u]||0)&&--l,a==null?w=a=C.precision:o?w=a+(nr(n)-nr(i))+1:w=a,w<0)return new C(0);if(w=w/Pt+2|0,u=0,A==1)for(c=0,k=k[0],w++;(u<T||c)&&w--;u++)_=c*Cr+(M[u]||0),g[u]=_/k|0,c=_%k|0;else{for(c=Cr/(k[0]+1)|0,c>1&&(k=e(k,c),M=e(M,c),A=k.length,T=M.length),S=A,v=M.slice(0,A),y=v.length;y<A;)v[y++]=0;P=k.slice(),P.unshift(0),E=k[0],k[1]>=Cr/2&&++E;do c=0,s=t(k,v,A,y),s<0?(x=v[0],A!=y&&(x=x*Cr+(v[1]||0)),c=x/E|0,c>1?(c>=Cr&&(c=Cr-1),f=e(k,c),d=f.length,y=v.length,s=t(f,v,d,y),s==1&&(c--,r(f,A<d?P:k,d))):(c==0&&(s=c=1),f=k.slice()),d=f.length,d<y&&f.unshift(0),r(v,f,y),s==-1&&(y=v.length,s=t(k,v,A,y),s<1&&(c++,r(v,A<y?P:k,y))),y=v.length):s===0&&(c++,v=[0]),g[u++]=c,s&&v[0]?v[y++]=M[S]||0:(v=[M[S]],y=1);while((S++<T||v[0]!==void 0)&&w--)}return g[0]||g.shift(),m.e=l,vt(m,o?a+nr(m)+1:a)}}();function dF(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(nr(e)>16)throw Error(Uw+nr(e));if(!e.s)return new c($n);for(Dt=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Qo(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c($n),c.precision=s;;){if(i=vt(i.times(e),s),r=r.times(++l),o=a.plus(Ca(i,r,s)),Xi(o.d).slice(0,s)===Xi(a.d).slice(0,s)){for(;u--;)a=vt(a.times(a),s);return c.precision=f,t==null?(Dt=!0,vt(a,f)):a}a=o}}function nr(e){for(var t=e.e*Pt,r=e.d[0];r>=10;r/=10)t++;return t}function sg(e,t,r){if(t>e.LN10.sd())throw Dt=!0,r&&(e.precision=r),Error(hi+"LN10 precision limit exceeded");return vt(new e(e.LN10),t)}function eo(e){for(var t="";e--;)t+="0";return t}function Lf(e,t){var r,n,i,a,o,s,l,u,c,f=1,d=10,m=e,g=m.d,v=m.constructor,y=v.precision;if(m.s<1)throw Error(hi+(m.s?"NaN":"-Infinity"));if(m.eq($n))return new v(0);if(t==null?(Dt=!1,u=y):u=t,m.eq(10))return t==null&&(Dt=!0),sg(v,u);if(u+=d,v.precision=u,r=Xi(g),n=r.charAt(0),a=nr(m),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)m=m.times(e),r=Xi(m.d),n=r.charAt(0),f++;a=nr(m),n>1?(m=new v("0."+r),a++):m=new v(n+"."+r.slice(1))}else return l=sg(v,u+2,y).times(a+""),m=Lf(new v(n+"."+r.slice(1)),u-d).plus(l),v.precision=y,t==null?(Dt=!0,vt(m,y)):m;for(s=o=m=Ca(m.minus($n),m.plus($n),u),c=vt(m.times(m),u),i=3;;){if(o=vt(o.times(c),u),l=s.plus(Ca(o,new v(i),u)),Xi(l.d).slice(0,u)===Xi(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(sg(v,u+2,y).times(a+""))),s=Ca(s,new v(f),u),v.precision=y,t==null?(Dt=!0,vt(s,y)):s;s=l,i+=2}}function mC(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Bu(r/Pt),e.d=[],n=(r+1)%Pt,r<0&&(n+=Pt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Pt;n<i;)e.d.push(+t.slice(n,n+=Pt));t=t.slice(n),n=Pt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Dt&&(e.e>Qh||e.e<-Qh))throw Error(Uw+r)}else e.s=0,e.e=0,e.d=[0];return e}function vt(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Pt,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Pt),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=Pt,i=n-Pt+o}if(r!==void 0&&(a=Qo(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Qo(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=nr(e),f.length=1,t=t-a-1,f[0]=Qo(10,(Pt-t%Pt)%Pt),e.e=Bu(-t/Pt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Qo(10,Pt-n),f[c]=i>0?(u/Qo(10,o-i)%Qo(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==Cr&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Cr)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Dt&&(e.e>Qh||e.e<-Qh))throw Error(Uw+nr(e));return e}function hF(e,t){var r,n,i,a,o,s,l,u,c,f,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Dt?vt(t,m):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(m/Pt),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=Cr-1;--l[a],l[i]+=Cr}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Dt?vt(t,m):t):new d(0)}function Ps(e,t,r){var n,i=nr(e),a=Xi(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+eo(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+eo(-i-1)+a,r&&(n=r-o)>0&&(a+=eo(n))):i>=o?(a+=eo(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+eo(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=eo(n))),e.s<0?"-"+a:a}function vC(e,t){if(e.length>t)return e.length=t,!0}function pF(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(gs+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return mC(o,a.toString())}else if(typeof a!="string")throw Error(gs+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Ihe.test(a))mC(o,a);else throw Error(gs+a)}if(i.prototype=Ie,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=pF,i.config=i.set=Nhe,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function Nhe(e){if(!e||typeof e!="object")throw Error(hi+"Object expected");var t,r,n,i=["precision",1,$u,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Bu(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(gs+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(gs+r+": "+n);return this}var Gw=pF(khe);$n=new Gw(1);const mt=Gw;function Ohe(e){return Fhe(e)||Dhe(e)||Mhe(e)||Rhe()}function Rhe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 405In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mhe(e,t){if(e){if(typeof e=="string")return vx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vx(e,t)}}function Dhe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Fhe(e){if(Array.isArray(e))return vx(e)}function vx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Lhe=function(t){return t},mF={},vF=function(t){return t===mF},gC=function(t){return function r(){return arguments.length===0||arguments.length===1&&vF(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},$he=function e(t,r){return t===1?r:gC(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==mF}).length;return o>=t?r.apply(void 0,i):e(t-o,gC(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return vF(f)?l.shift():f});return r.apply(void 0,Ohe(c).concat(l))}))})},Lm=function(t){return $he(t.length,t)},gx=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},Bhe=Lm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),Uhe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Lhe;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},yx=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},gF=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function Ghe(e){var t;return e===0?t=1:t=Math.floor(new mt(e).abs().log(10).toNumber())+1,t}function Vhe(e,t,r){for(var n=new mt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Hhe=Lm(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),jhe=Lm(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),zhe=Lm(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const $m={rangeStep:Vhe,getDigitCount:Ghe,interpolateNumber:Hhe,uninterpolateNumber:jhe,uninterpolateTruncation:zhe};function xx(e){return Khe(e)||qhe(e)||yF(e)||Whe()}function Whe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 406In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qhe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Khe(e){if(Array.isArray(e))return _x(e)}function $f(e,t){return Jhe(e)||Xhe(e,t)||yF(e,t)||Yhe()}function Yhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 407In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yF(e,t){if(e){if(typeof e=="string")return _x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _x(e,t)}}function _x(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xhe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function Jhe(e){if(Array.isArray(e))return e}function xF(e){var t=$f(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function _F(e,t,r){if(e.lte(0))return new mt(0);var n=$m.getDigitCount(e.toNumber()),i=new mt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new mt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new mt(Math.ceil(l))}function Zhe(e,t,r){var n=1,i=new mt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new mt(10).pow($m.getDigitCount(e)-1),i=new mt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new mt(Math.floor(e)))}else e===0?i=new mt(Math.floor((t-1)/2)):r||(i=new mt(Math.floor(e)));var o=Math.floor((t-1)/2),s=Uhe(Bhe(function(l){return i.add(new mt(l-o).mul(n)).toNumber()}),gx);return s(0,t)}function wF(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new mt(0),tickMin:new mt(0),tickMax:new mt(0)};var a=_F(new mt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new mt(0):(o=new mt(e).add(t).div(2),o=o.sub(new mt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new mt(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?wF(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new mt(s).mul(a)),tickMax:o.add(new mt(l).mul(a))})}function Qhe(e){var t=$f(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=xF([r,n]),l=$f(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(xx(gx(0,i-1).map(function(){return 1/0}))):[].concat(xx(gx(0,i-1).map(function(){return-1/0})),[c]);return r>n?yx(f):f}if(u===c)return Zhe(u,i,a);var d=wF(u,c,o,a),m=d.step,g=d.tickMin,v=d.tickMax,y=$m.rangeStep(g,v.add(new mt(.1).mul(m)),m);return r>n?yx(y):y}function epe(e,t){var r=$f(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=xF([n,i]),s=$f(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=_F(new mt(u).sub(l).div(c-1),a,0),d=[].concat(xx($m.rangeStep(new mt(l),new mt(u).sub(new mt(.99).mul(f)),f)),[u]);return n>i?yx(d):d}var tpe=gF(Qhe),rpe=gF(epe),npe="Invariant failed";function ks(e,t){throw new Error(npe)}var ipe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Zl(e){"@babel/helpers - typeof";return Zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zl(e)}function ep(){return ep=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},ep.apply(this,arguments)}function ape(e,t){return upe(e)||lpe(e,t)||spe(e,t)||ope()}function ope(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 408In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function spe(e,t){if(e){if(typeof e=="string")return yC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yC(e,t)}}function yC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function lpe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function upe(e){if(Array.isArray(e))return e}function cpe(e,t){if(e==null)return{};var r=fpe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fpe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dpe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hpe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SF(n.key),n)}}function ppe(e,t,r){return t&&hpe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mpe(e,t,r){return t=tp(t),vpe(e,EF()?Reflect.construct(t,r||[],tp(e).constructor):t.apply(e,r))}function vpe(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gpe(e)}function gpe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EF=function(){return!!e})()}function tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tp(e)}function ype(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wx(e,t)}function wx(e,t){return wx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wx(e,t)}function TF(e,t,r){return t=SF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SF(e){var t=xpe(e,"string");return Zl(t)=="symbol"?t:t+""}function xpe(e,t){if(Zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Uu=function(e){function t(){return dpe(this,t),mpe(this,t,arguments)}return ype(t,e),ppe(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,d=cpe(n,ipe),m=Oe(d,!1);this.props.direction==="x"&&c.type!=="number"&&ks();var g=l.map(function(v){var y=u(v,s),x=y.x,w=y.y,_=y.value,S=y.errorVal;if(!S)return null;var T=[],E,A;if(Array.isArray(S)){var P=ape(S,2);E=P[0],A=P[1]}else E=A=S;if(a==="vertical"){var C=c.scale,N=w+i,M=N+o,k=N-o,H=C(_-E),K=C(_+A);T.push({x1:K,y1:M,x2:K,y2:k}),T.push({x1:H,y1:N,x2:K,y2:N}),T.push({x1:H,y1:M,x2:H,y2:k})}else if(a==="horizontal"){var U=f.scale,Y=x+i,W=Y-o,J=Y+o,F=U(_-E),ee=U(_+A);T.push({x1:W,y1:ee,x2:J,y2:ee}),T.push({x1:Y,y1:F,x2:Y,y2:ee}),T.push({x1:W,y1:F,x2:J,y2:F})}return j.createElement(We,ep({className:"recharts-errorBar",key:"bar-".concat(T.map(function(le){return"".concat(le.x1,"-").concat(le.x2,"-").concat(le.y1,"-").concat(le.y2)}))},m),T.map(function(le){return j.createElement("line",ep({},le,{key:"line-".concat(le.x1,"-").concat(le.x2,"-").concat(le.y1,"-").concat(le.y2)}))}))});return j.createElement(We,{className:"recharts-errorBars"},g)}}])}(j.Component);TF(Uu,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});TF(Uu,"displayName","ErrorBar");function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function xC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xC(Object(r),!0).forEach(function(n){_pe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _pe(e,t,r){return t=wpe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wpe(e){var t=Epe(e,"string");return Bf(t)=="symbol"?t:t+""}function Epe(e,t){if(Bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AF=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Dn(r,ms);if(!o)return null;var s=ms.defaultProps,l=s!==void 0?zo(zo({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var d=f.item,m=f.props,g=m.sectors||m.data||[];return c.concat(g.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(n||[]).map(function(c){var f=c.item,d=f.type.defaultProps,m=d!==void 0?zo(zo({},d),f.props):{},g=m.dataKey,v=m.name,y=m.legendType,x=m.hide;return{inactive:x,dataKey:g,type:l.iconType||y||"square",color:Vw(f),value:v||g,payload:m}}),zo(zo(zo({},l),ms.getWithHeight(o,i)),{},{payload:u,item:o})};function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function _C(e){return bpe(e)||Ape(e)||Spe(e)||Tpe()}function Tpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 409In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Spe(e,t){if(e){if(typeof e=="string")return Ex(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ex(e,t)}}function Ape(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bpe(e){if(Array.isArray(e))return Ex(e)}function Ex(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wC(Object(r),!0).forEach(function(n){Ml(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ml(e,t,r){return t=Cpe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cpe(e){var t=Ppe(e,"string");return Uf(t)=="symbol"?t:t+""}function Ppe(e,t){if(Uf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kt(e,t,r){return De(e)||De(t)?r:gr(t)?Gn(e,t,r):Fe(t)?t(e):r}function zc(e,t,r,n){var i=Ahe(e,function(s){return kt(s,t)});if(r==="number"){var a=i.filter(function(s){return ge(s)||parseFloat(s)});return a.length?[Fm(a),co(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!De(s)}):i;return o.map(function(s){return gr(s)||s instanceof Date?s:""})}var kpe=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,m=void 0;if(hn(f-c)!==hn(d-f)){var g=[];if(hn(d-f)===hn(l[1]-l[0])){m=d;var v=f+l[1]-l[0];g[0]=Math.min(v,(v+c)/2),g[1]=Math.max(v,(v+c)/2)}else{m=c;var y=d+l[1]-l[0];g[0]=Math.min(f,(y+f)/2),g[1]=Math.max(f,(y+f)/2)}var x=[Math.min(f,(m+f)/2),Math.max(f,(m+f)/2)];if(t>x[0]&&t<=x[1]||t>=g[0]&&t<=g[1]){o=i[u].index;break}}else{var w=Math.min(c,d),_=Math.max(c,d);if(t>(w+f)/2&&t<=(_+f)/2){o=i[u].index;break}}}else for(var S=0;S<s;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===s-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},Vw=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?zt(zt({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},Ipe=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),d=0,m=f.length;d<m;d++){var g=c[f[d]],v=g.items,y=g.cateAxisId,x=v.filter(function(A){return ba(A.type).indexOf("Bar")>=0});if(x&&x.length){var w=x[0].type.defaultProps,_=w!==void 0?zt(zt({},w),x[0].props):x[0].props,S=_.barSize,T=_[y];o[T]||(o[T]=[]);var E=De(S)?r:S;o[T].push({item:x[0],stackList:x.slice(1),barSize:De(E)?void 0:pn(E,n,0)})}}return o},Npe=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=pn(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,m=i/l,g=o.reduce(function(S,T){return S+T.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&m>0&&(d=!0,m*=.9,g=l*m);var v=(i-g)/2>>0,y={offset:v-u,size:0};c=o.reduce(function(S,T){var E={item:T.item,position:{offset:y.offset+y.size+u,size:d?m:T.barSize}},A=[].concat(_C(S),[E]);return y=A[A.length-1].position,T.stackList&&T.stackList.length&&T.stackList.forEach(function(P){A.push({item:P,position:y})}),A},f)}else{var x=pn(n,i,0,!0);i-2*x-(l-1)*u<=0&&(u=0);var w=(i-2*x-(l-1)*u)/l;w>1&&(w>>=0);var _=s===+s?Math.min(w,s):w;c=o.reduce(function(S,T,E){var A=[].concat(_C(S),[{item:T.item,position:{offset:x+(w+u)*E+(w-_)/2,size:_}}]);return T.stackList&&T.stackList.length&&T.stackList.forEach(function(P){A.push({item:P,position:A[A.length-1].position})}),A},f)}return c},Ope=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=AF({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,d=c.height,m=u.align,g=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&g==="middle")&&m!=="center"&&ge(t[m]))return zt(zt({},t),{},Ml({},m,t[m]+(f||0)));if((v==="horizontal"||v==="vertical"&&m==="center")&&g!=="middle"&&ge(t[g]))return zt(zt({},t),{},Ml({},g,t[g]+(d||0)))}return t},Rpe=function(t,r,n){return De(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},bF=function(t,r,n,i,a){var o=r.props.children,s=yn(o,Uu).filter(function(u){return Rpe(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=kt(c,n);if(De(f))return u;var d=Array.isArray(f)?[Fm(f),co(f)]:[f,f],m=l.reduce(function(g,v){var y=kt(c,v,0),x=d[0]-Math.abs(Array.isArray(y)?y[0]:y),w=d[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(x,g[0]),Math.max(w,g[1])]},[1/0,-1/0]);return[Math.min(m[0],u[0]),Math.max(m[1],u[1])]},[1/0,-1/0])}return null},Mpe=function(t,r,n,i,a){var o=r.map(function(s){return bF(t,s,n,a,i)}).filter(function(s){return!De(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},CF=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&bF(t,l,u,i)||zc(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},PF=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},kF=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Ea=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?hn(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!Ru(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},lg=new WeakMap,x0=function(t,r){if(typeof r!="function")return t;lg.has(t)||lg.set(t,new WeakMap);var n=lg.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},IF=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Of(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Yh(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:jc(),realScaleType:"point"}:a==="category"?{scale:Of(),realScaleType:"band"}:{scale:Yh(),realScaleType:"linear"};if(bs(i)){var l="scale".concat(wm(i));return{scale:(pC[l]||jc)(),realScaleType:pC[l]?l:"point"}}return Fe(i)?{scale:i}:{scale:jc(),realScaleType:"point"}},EC=1e-4,NF=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-EC,o=Math.max(i[0],i[1])+EC,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},Dpe=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},Fpe=function(t,r){if(!r||r.length!==2||!ge(r[0])||!ge(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!ge(t[0])||t[0]<n)&&(a[0]=n),(!ge(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},Lpe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Ru(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},$pe=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Ru(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Bpe={sign:Lpe,expand:ire,none:jl,silhouette:are,wiggle:ore,positive:$pe},Upe=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=Bpe[n],o=nre().keys(i).value(function(s,l){return+kt(s,l,0)}).order(qy).offset(a);return o(t)},Gpe=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,d){var m,g=(m=d.type)!==null&&m!==void 0&&m.defaultProps?zt(zt({},d.type.defaultProps),d.props):d.props,v=g.stackId,y=g.hide;if(y)return f;var x=g[n],w=f[x]||{hasStack:!1,stackGroups:{}};if(gr(v)){var _=w.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};_.items.push(d),w.hasStack=!0,w.stackGroups[v]=_}else w.stackGroups[$o("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return zt(zt({},f),{},Ml({},x,w))},l),c={};return Object.keys(u).reduce(function(f,d){var m=u[d];if(m.hasStack){var g={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(v,y){var x=m.stackGroups[y];return zt(zt({},v),{},Ml({},y,{numericAxisId:n,cateAxisId:i,items:x.items,stackedData:Upe(t,x.items,a)}))},g)}return zt(zt({},f),{},Ml({},d,m))},c)},OF=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=tpe(u,a,s);return t.domain([Fm(c),co(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=rpe(f,a,s);return{niceTicks:d}}return null};function Ql(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!De(i[t.dataKey])){var s=Ch(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=kt(i,De(o)?t.dataKey:o);return De(l)?null:t.scale(l)}var TC=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=kt(o,r.dataKey,r.domain[s]);return De(l)?null:r.scale(l)-a/2+i},Vpe=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},Hpe=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?zt(zt({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(gr(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},jpe=function(t){return t.reduce(function(r,n){return[Fm(n.concat([r[0]]).filter(ge)),co(n.concat([r[1]]).filter(ge))]},[1/0,-1/0])},RF=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=jpe(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},SC=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,AC=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Tx=function(t,r,n){if(Fe(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(ge(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(SC.test(t[0])){var a=+SC.exec(t[0])[1];i[0]=r[0]-a}else Fe(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(ge(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(AC.test(t[1])){var o=+AC.exec(t[1])[1];i[1]=r[1]+o}else Fe(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},rp=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=vw(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},bC=function(t,r,n){return!t||!t.length||Io(t,Gn(n,"type.defaultProps.domain"))?r:t},MF=function(t,r){var n=t.type.defaultProps?zt(zt({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return zt(zt({},Oe(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:Vw(t),value:kt(r,i),type:l,payload:r,chartType:u,hide:c})};function Gf(e){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(e)}function CC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ma(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CC(Object(r),!0).forEach(function(n){DF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DF(e,t,r){return t=zpe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zpe(e){var t=Wpe(e,"string");return Gf(t)=="symbol"?t:t+""}function Wpe(e,t){if(Gf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qpe(e,t){return Jpe(e)||Xpe(e,t)||Ype(e,t)||Kpe()}function Kpe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 410In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ype(e,t){if(e){if(typeof e=="string")return PC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PC(e,t)}}function PC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Xpe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Jpe(e){if(Array.isArray(e))return e}var np=Math.PI/180,Zpe=function(t){return t*180/Math.PI},wt=function(t,r,n,i){return{x:t+Math.cos(-np*i)*n,y:r+Math.sin(-np*i)*n}},FF=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},Qpe=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,c=pn(t.cx,o,o/2),f=pn(t.cy,s,s/2),d=FF(o,s,n),m=pn(t.innerRadius,d,0),g=pn(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(y,x){var w=r[x],_=w.domain,S=w.reversed,T;if(De(w.range))i==="angleAxis"?T=[l,u]:i==="radiusAxis"&&(T=[m,g]),S&&(T=[T[1],T[0]]);else{T=w.range;var E=T,A=qpe(E,2);l=A[0],u=A[1]}var P=IF(w,a),C=P.realScaleType,N=P.scale;N.domain(_).range(T),NF(N);var M=OF(N,ma(ma({},w),{},{realScaleType:C})),k=ma(ma(ma({},w),M),{},{range:T,radius:g,realScaleType:C,scale:N,cx:c,cy:f,innerRadius:m,outerRadius:g,startAngle:l,endAngle:u});return ma(ma({},y),{},DF({},x,k))},{})},eme=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},tme=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=eme({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:Zpe(u),angleInRadian:u}},rme=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},nme=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},kC=function(t,r){var n=t.x,i=t.y,a=tme({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=rme(r),f=c.startAngle,d=c.endAngle,m=s,g;if(f<=d){for(;m>d;)m-=360;for(;m<f;)m+=360;g=m>=f&&m<=d}else{for(;m>f;)m-=360;for(;m<d;)m+=360;g=m>=d&&m<=f}return g?ma(ma({},r),{},{radius:o,angle:nme(m,r)}):null},LF=function(t){return!Q.isValidElement(t)&&!Fe(t)&&typeof t!="boolean"?t.className:""};function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}var ime=["offset"];function ame(e){return ume(e)||lme(e)||sme(e)||ome()}function ome(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 411In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sme(e,t){if(e){if(typeof e=="string")return Sx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sx(e,t)}}function lme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ume(e){if(Array.isArray(e))return Sx(e)}function Sx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function cme(e,t){if(e==null)return{};var r=fme(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fme(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function IC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IC(Object(r),!0).forEach(function(n){dme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dme(e,t,r){return t=hme(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hme(e){var t=pme(e,"string");return Vf(t)=="symbol"?t:t+""}function pme(e,t){if(Vf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hf(){return Hf=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},Hf.apply(this,arguments)}var mme=function(t){var r=t.value,n=t.formatter,i=De(t.children)?r:t.children;return Fe(n)?n(i):i},vme=function(t,r){var n=hn(r-t),i=Math.min(Math.abs(r-t),360);return n*i},gme=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,d=l.outerRadius,m=l.startAngle,g=l.endAngle,v=l.clockWise,y=(f+d)/2,x=vme(m,g),w=x>=0?1:-1,_,S;i==="insideStart"?(_=m+w*o,S=v):i==="insideEnd"?(_=g-w*o,S=!v):i==="end"&&(_=g+w*o,S=v),S=x<=0?S:!S;var T=wt(u,c,y,_),E=wt(u,c,y,_+(S?1:-1)*359),A="M".concat(T.x,",").concat(T.y,` 412 A`).concat(y,",").concat(y,",0,1,").concat(S?0:1,`, 413 `).concat(E.x,",").concat(E.y),P=De(t.id)?$o("recharts-radial-line-"):t.id;return j.createElement("text",Hf({},n,{dominantBaseline:"central",className:He("recharts-radial-bar-label",s)}),j.createElement("defs",null,j.createElement("path",{id:P,d:A})),j.createElement("textPath",{xlinkHref:"#".concat(P)},r))},yme=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(i==="outside"){var m=wt(o,s,u+n,d),g=m.x,v=m.y;return{x:g,y:v,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var y=(l+u)/2,x=wt(o,s,y,d),w=x.x,_=x.y;return{x:w,y:_,textAnchor:"middle",verticalAnchor:"middle"}},xme=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,d=f*i,m=f>0?"end":"start",g=f>0?"start":"end",v=u>=0?1:-1,y=v*i,x=v>0?"end":"start",w=v>0?"start":"end";if(a==="top"){var _={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:m};return dr(dr({},_),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var S={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:g};return dr(dr({},S),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var T={x:s-y,y:l+c/2,textAnchor:x,verticalAnchor:"middle"};return dr(dr({},T),n?{width:Math.max(T.x-n.x,0),height:c}:{})}if(a==="right"){var E={x:s+u+y,y:l+c/2,textAnchor:w,verticalAnchor:"middle"};return dr(dr({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:c}:{})}var A=n?{width:u,height:c}:{};return a==="insideLeft"?dr({x:s+y,y:l+c/2,textAnchor:w,verticalAnchor:"middle"},A):a==="insideRight"?dr({x:s+u-y,y:l+c/2,textAnchor:x,verticalAnchor:"middle"},A):a==="insideTop"?dr({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:g},A):a==="insideBottom"?dr({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:m},A):a==="insideTopLeft"?dr({x:s+y,y:l+d,textAnchor:w,verticalAnchor:g},A):a==="insideTopRight"?dr({x:s+u-y,y:l+d,textAnchor:x,verticalAnchor:g},A):a==="insideBottomLeft"?dr({x:s+y,y:l+c-d,textAnchor:w,verticalAnchor:m},A):a==="insideBottomRight"?dr({x:s+u-y,y:l+c-d,textAnchor:x,verticalAnchor:m},A):ku(a)&&(ge(a.x)||os(a.x))&&(ge(a.y)||os(a.y))?dr({x:s+pn(a.x,u),y:l+pn(a.y,c),textAnchor:"end",verticalAnchor:"end"},A):dr({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},A)},_me=function(t){return"cx"in t&&ge(t.cx)};function kr(e){var t=e.offset,r=t===void 0?5:t,n=cme(e,ime),i=dr({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!a||De(s)&&De(l)&&!Q.isValidElement(u)&&!Fe(u))return null;if(Q.isValidElement(u))return Q.cloneElement(u,i);var m;if(Fe(u)){if(m=Q.createElement(u,i),Q.isValidElement(m))return m}else m=mme(i);var g=_me(a),v=Oe(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return gme(i,m,v);var y=g?yme(i):xme(i);return j.createElement(Cs,Hf({className:He("recharts-label",f)},v,y,{breakAll:d}),m)}kr.displayName="Label";var $F=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,m=t.top,g=t.left,v=t.width,y=t.height,x=t.clockWise,w=t.labelViewBox;if(w)return w;if(ge(v)&&ge(y)){if(ge(f)&&ge(d))return{x:f,y:d,width:v,height:y};if(ge(m)&&ge(g))return{x:m,y:g,width:v,height:y}}return ge(f)&&ge(d)?{x:f,y:d,width:0,height:0}:ge(r)&&ge(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:x}:t.viewBox?t.viewBox:{}},wme=function(t,r){return t?t===!0?j.createElement(kr,{key:"label-implicit",viewBox:r}):gr(t)?j.createElement(kr,{key:"label-implicit",viewBox:r,value:t}):Q.isValidElement(t)?t.type===kr?Q.cloneElement(t,{key:"label-implicit",viewBox:r}):j.createElement(kr,{key:"label-implicit",content:t,viewBox:r}):Fe(t)?j.createElement(kr,{key:"label-implicit",content:t,viewBox:r}):ku(t)?j.createElement(kr,Hf({viewBox:r},t,{key:"label-implicit"})):null:null},Eme=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=$F(t),o=yn(i,kr).map(function(l,u){return Q.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=wme(t.label,r||a);return[s].concat(ame(o))};kr.parseViewBox=$F;kr.renderCallByParent=Eme;function Tme(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Sme=Tme;const Ame=ft(Sme);function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}var bme=["valueAccessor"],Cme=["data","dataKey","clockWise","id","textBreakAll"];function Pme(e){return Ome(e)||Nme(e)||Ime(e)||kme()}function kme(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 414In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ime(e,t){if(e){if(typeof e=="string")return Ax(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ax(e,t)}}function Nme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ome(e){if(Array.isArray(e))return Ax(e)}function Ax(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ip(){return ip=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},ip.apply(this,arguments)}function NC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function OC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NC(Object(r),!0).forEach(function(n){Rme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rme(e,t,r){return t=Mme(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mme(e){var t=Dme(e,"string");return jf(t)=="symbol"?t:t+""}function Dme(e,t){if(jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RC(e,t){if(e==null)return{};var r=Fme(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Fme(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Lme=function(t){return Array.isArray(t.value)?Ame(t.value):t.value};function tn(e){var t=e.valueAccessor,r=t===void 0?Lme:t,n=RC(e,bme),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=RC(n,Cme);return!i||!i.length?null:j.createElement(We,{className:"recharts-label-list"},i.map(function(c,f){var d=De(a)?r(c,f):kt(c&&c.payload,a),m=De(s)?{}:{id:"".concat(s,"-").concat(f)};return j.createElement(kr,ip({},Oe(c,!0),u,m,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:kr.parseViewBox(De(o)?c:OC(OC({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}tn.displayName="LabelList";function $me(e,t){return e?e===!0?j.createElement(tn,{key:"labelList-implicit",data:t}):j.isValidElement(e)||Fe(e)?j.createElement(tn,{key:"labelList-implicit",data:t,content:e}):ku(e)?j.createElement(tn,ip({data:t},e,{key:"labelList-implicit"})):null:null}function Bme(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=yn(n,tn).map(function(o,s){return Q.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=$me(e.label,t);return[a].concat(Pme(i))}tn.renderCallByParent=Bme;function zf(e){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(e)}function bx(){return bx=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},bx.apply(this,arguments)}function MC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function DC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MC(Object(r),!0).forEach(function(n){Ume(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ume(e,t,r){return t=Gme(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gme(e){var t=Vme(e,"string");return zf(t)=="symbol"?t:t+""}function Vme(e,t){if(zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hme=function(t,r){var n=hn(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},_0=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/np,d=u?a:a+o*f,m=wt(r,n,c,d),g=wt(r,n,i,d),v=u?a-o*f:a,y=wt(r,n,c*Math.cos(f*np),v);return{center:m,circleTangency:g,lineTangency:y,theta:f}},BF=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=Hme(o,s),u=o+l,c=wt(r,n,a,o),f=wt(r,n,a,u),d="M ".concat(c.x,",").concat(c.y,` 415 A `).concat(a,",").concat(a,`,0, 416 `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`, 417 `).concat(f.x,",").concat(f.y,` 418 `);if(i>0){var m=wt(r,n,i,o),g=wt(r,n,i,u);d+="L ".concat(g.x,",").concat(g.y,` 419 A `).concat(i,",").concat(i,`,0, 420 `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`, 421 `).concat(m.x,",").concat(m.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},jme=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=hn(c-u),d=_0({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),m=d.circleTangency,g=d.lineTangency,v=d.theta,y=_0({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),x=y.circleTangency,w=y.lineTangency,_=y.theta,S=l?Math.abs(u-c):Math.abs(u-c)-v-_;if(S<0)return s?"M ".concat(g.x,",").concat(g.y,` 422 a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 423 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 424 `):BF({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var T="M ".concat(g.x,",").concat(g.y,` 425 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.y,` 426 A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(x.x,",").concat(x.y,` 427 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,` 428 `);if(i>0){var E=_0({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),A=E.circleTangency,P=E.lineTangency,C=E.theta,N=_0({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),M=N.circleTangency,k=N.lineTangency,H=N.theta,K=l?Math.abs(u-c):Math.abs(u-c)-C-H;if(K<0&&o===0)return"".concat(T,"L").concat(r,",").concat(n,"Z");T+="L".concat(k.x,",").concat(k.y,` 429 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,` 430 A`).concat(i,",").concat(i,",0,").concat(+(K>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,` 431 A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,"Z")}else T+="L".concat(r,",").concat(n,"Z");return T},zme={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},UF=function(t){var r=DC(DC({},zme),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(o<a||c===f)return null;var m=He("recharts-sector",d),g=o-a,v=pn(s,g,0,!0),y;return v>0&&Math.abs(c-f)<360?y=jme({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):y=BF({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),j.createElement("path",bx({},Oe(r,!0),{className:m,d:y,role:"img"}))};function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}function Cx(){return Cx=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},Cx.apply(this,arguments)}function FC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FC(Object(r),!0).forEach(function(n){Wme(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wme(e,t,r){return t=qme(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qme(e){var t=Kme(e,"string");return Wf(t)=="symbol"?t:t+""}function Kme(e,t){if(Wf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $C={curveBasisClosed:Wte,curveBasisOpen:qte,curveBasis:zte,curveBumpX:Nte,curveBumpY:Ote,curveLinearClosed:Kte,curveLinear:Tm,curveMonotoneX:Yte,curveMonotoneY:Xte,curveNatural:Jte,curveStep:Zte,curveStepAfter:ere,curveStepBefore:Qte},w0=function(t){return t.x===+t.x&&t.y===+t.y},cc=function(t){return t.x},fc=function(t){return t.y},Yme=function(t,r){if(Fe(t))return t;var n="curve".concat(wm(t));return(n==="curveMonotone"||n==="curveBump")&&r?$C["".concat(n).concat(r==="vertical"?"Y":"X")]:$C[n]||Tm},Xme=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=Yme(n,s),f=u?a.filter(function(v){return w0(v)}):a,d;if(Array.isArray(o)){var m=u?o.filter(function(v){return w0(v)}):o,g=f.map(function(v,y){return LC(LC({},v),{},{base:m[y]})});return s==="vertical"?d=f0().y(fc).x1(cc).x0(function(v){return v.base.x}):d=f0().x(cc).y1(fc).y0(function(v){return v.base.y}),d.defined(w0).curve(c),d(g)}return s==="vertical"&&ge(o)?d=f0().y(fc).x1(cc).x0(o):ge(o)?d=f0().x(cc).y1(fc).y0(o):d=DM().x(cc).y(fc),d.defined(w0).curve(c),d(f)},So=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?Xme(t):i;return Q.createElement("path",Cx({},Oe(t,!1),Ph(t),{className:He("recharts-curve",r),d:o,ref:a}))},GF={exports:{}},Jme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Zme=Jme,Qme=Zme;function VF(){}function HF(){}HF.resetWarningCache=VF;var eve=function(){function e(n,i,a,o,s,l){if(l!==Qme){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
431:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:HF,resetWarningCache:VF};return r.PropTypes=r,r};GF.exports=eve();var tve=GF.exports;const ct=ft(tve),{getOwnPropertyNames:rve,getOwnPropertySymbols:nve}=Object,{hasOwnProperty:ive}=Object.prototype;function dc(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function hc(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const l=e(r,n,i);return a.delete(r),a.delete(n),l}}function ave(e){return e!=null?e[Symbol.toStringTag]:void 0}function BC(e){return rve(e).concat(nve(e))}const ove=Object.hasOwn||((e,t)=>ive.call(e,t));function Hs(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const sve="__v",lve="__o",uve="_owner",cve=typeof Float16Array<"u",{getOwnPropertyDescriptor:UC,keys:GC}=Object;function fve(e,t){return e.byteLength===t.byteLength&&ap(new Uint8Array(e),new Uint8Array(t))}function dve(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function hve(e,t){return e.byteLength===t.byteLength&&ap(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function pve(e,t){return Hs(e.getTime(),t.getTime())}function VC(e,t,r){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&r.equals(e.cause,t.cause,"cause","cause",e,t,r)}function mve(e,t){return e===t}function HC(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let c=!1,f=0;for(;(s=u.next())&&!s.done;){if(i[f]){f++;continue}const d=o.value,m=s.value;if(r.equals(d[0],m[0],l,f,e,t,r)&&r.equals(d[1],m[1],d[0],m[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}const vve=Hs;function jC(e,t,r){const n=GC(e);let i=n.length;if(GC(t).length!==i)return!1;for(;i-- >0;)if(!jF(e,t,r,n[i]))return!1;return!0}function Js(e,t,r){const n=BC(e);let i=n.length;if(BC(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!jF(e,t,r,a)||(o=UC(e,a),s=UC(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function gve(e,t){return Hs(e.valueOf(),t.valueOf())}function yve(e,t){return e.source===t.source&&e.flags===t.flags}function zC(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let u=!1,c=0;for(;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function ap(e,t){let r=e.length;if(t.length!==r||e.byteOffset!==t.byteOffset)return!1;if(e instanceof Float64Array||e instanceof Float32Array||cve&&e instanceof Float16Array){for(;r-- >0;)if(e[r]!==t[r]&&(e[r]===e[r]||t[r]===t[r]))return!1;return!0}for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function xve(e,t){return e.href===t.href?!0:e.protocol===t.protocol&&e.username===t.username&&e.password===t.password&&e.host===t.host&&e.pathname===t.pathname&&e.hash===t.hash&&_ve(e.searchParams,t.searchParams)}function _ve(e,t){const r=e.toString(),n=t.toString();return r===n||WC(r)===WC(n)}function WC(e){return e.split("&").sort().join("&")}function jF(e,t,r,n){return(n===uve||n===lve||n===sve)&&(e.$$typeof||t.$$typeof)?!0:ove(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const wve="[object ArrayBuffer]",Eve="[object Arguments]",Tve="[object Boolean]",Sve="[object DataView]",Ave="[object Date]",bve="[object Error]",Cve="[object Map]",Pve="[object Number]",kve="[object Object]",Ive="[object RegExp]",Nve="[object Set]",Ove="[object String]",Rve={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array
431]":!0},Mve="[object URL]",Dve=Object.prototype.toString;function Fve({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:m,unknownTagComparators:g}){return function(y,x,w){if(y===x)return!0;if(y==null||x==null)return!1;const _=typeof y;if(_!==typeof x)return!1;if(_!=="object")return _==="number"?s(y,x,w):_==="function"?a(y,x,w):!1;const S=y.constructor;if(S!==x.constructor)return!1;if(S===Object)return l(y,x,w);if(Array.isArray(y))return t(y,x,w);if(S===Date)return n(y,x,w);if(S===RegExp)return c(y,x,w);if(S===Map)return o(y,x,w);if(S===Set)return f(y,x,w);const T=Dve.call(y);if(T===Ave)return n(y,x,w);if(T===Ive)return c(y,x,w);if(T===Cve)return o(y,x,w);if(T===Nve)return f(y,x,w);if(T===kve)return typeof y.then!="function"&&typeof x.then!="function"&&l(y,x,w);if(T===Mve)return m(y,x,w);if(T===bve)return i(y,x,w);if(T===Eve)return l(y,x,w);if(Rve[T])return d(y,x,w);if(T===wve)return e(y,x,w);if(T===Sve)return r(y,x,w);if(T===Tve||T===Pve||T===Ove)return u(y,x,w);if(g){let E=g[T];if(!E){const A=ave(y);A&&(E=g[A])}if(E)return E(y,x,w)}return!1}}function Lve({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:fve,areArraysEqual:r?Js:dve,areDataViewsEqual:hve,areDatesEqual:pve,areErrorsEqual:r?dc(VC,Js):dc(VC,jC),areFunctionsEqual:mve,areMapsEqual:r?dc(HC,Js):HC,areNumbersEqual:vve,areObjectsEqual:r?Js:jC,arePrimitiveWrappersEqual:gve,areRegExpsEqual:yve,areSetsEqual:r?dc(zC,Js):zC,areTypedArraysEqual:r?dc(ap,Js):ap,areUrlsEqual:xve,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=hc(n.areArraysEqual),a=hc(n.areErrorsEqual),o=hc(n.areMapsEqual),s=hc(n.areObjectsEqual),l=hc(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areErrorsEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return n}function $ve(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function Bve({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(s,l,{cache:u,equals:n,meta:c,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const Uve=Go();Go({strict:!0});Go({circular:!0});Go({circular:!0,strict:!0});Go({createInternalComparator:()=>Hs});Go({strict:!0,createInternalComparator:()=>Hs});Go({circular:!0,createInternalComparator:()=>Hs});Go({circular:!0,createInternalComparator:()=>Hs,strict:!0});function Go(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=Lve(e),o=Fve(a),s=r?r(o):$ve(o);return Bve({circular:t,comparator:o,createState:n,equals:s,strict:i})}function Gve(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function qC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):Gve(i)};requestAnimationFrame(n)}function Px(e){"@babel/helpers - typeof";return Px=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Px(e)}function Vve(e){return Wve(e)||zve(e)||jve(e)||Hve()}function Hve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 432In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jve(e,t){if(e){if(typeof e=="string")return KC(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return KC(e,t)}}function KC(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wve(e){if(Array.isArray(e))return e}function qve(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=Vve(o),l=s[0],u=s.slice(1);if(typeof l=="number"){qC(i.bind(null,u),l);return}i(l),qC(i.bind(null,u));return}Px(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function YC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 58,573 bytes, lines 432-450
432t%2?YC(Object(r),!0).forEach(function(n){zF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zF(e,t,r){return t=Kve(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kve(e){var t=Yve(e,"string");return qf(t)==="symbol"?t:String(t)}function Yve(e,t){if(qf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xve=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},Jve=function(t){return t},Zve=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Wc=function(t,r){return Object.keys(r).reduce(function(n,i){return XC(XC({},n),{},zF({},i,t(i,r[i])))},{})},JC=function(t,r,n){return t.map(function(i){return"".concat(Zve(i)," ").concat(r,"ms ").concat(n)}).join(",")};function Qve(e,t){return rge(e)||tge(e,t)||WF(e,t)||ege()}function ege(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 433In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tge(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function rge(e){if(Array.isArray(e))return e}function nge(e){return oge(e)||age(e)||WF(e)||ige()}function ige(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 434In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WF(e,t){if(e){if(typeof e=="string")return kx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kx(e,t)}}function age(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oge(e){if(Array.isArray(e))return kx(e)}function kx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var op=1e-4,qF=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},KF=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},ZC=function(t,r){return function(n){var i=qF(t,r);return KF(i,n)}},sge=function(t,r){return function(n){var i=qF(t,r),a=[].concat(nge(i.map(function(o,s){return o*s}).slice(1)),[0]);return KF(a,n)}},QC=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),c=Qve(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}}}var f=ZC(i,o),d=ZC(a,s),m=sge(i,o),g=function(x){return x>1?1:x<0?0:x},v=function(x){for(var w=x>1?1:x,_=w,S=0;S<8;++S){var T=f(_)-w,E=m(_);if(Math.abs(T-w)<op||E<op)return d(_);_=g(_-T/E)}return d(_)};return v.isStepper=!1,v},lge=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,d){var m=-(c-f)*n,g=d*a,v=d+(m-g)*s/1e3,y=d*s/1e3+c;return Math.abs(y-f)<op&&Math.abs(v)<op?[f,0]:[y,v]};return l.isStepper=!0,l.dt=s,l},uge=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return QC(i);case"spring":return lge();default:if(i.split("(")[0]==="cubic-bezier")return QC(i)}return typeof i=="function"?i:null};function Kf(e){"@babel/helpers - typeof";return Kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kf(e)}function eP(e){return dge(e)||fge(e)||YF(e)||cge()}function cge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 435In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dge(e){if(Array.isArray(e))return Nx(e)}function tP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tP(Object(r),!0).forEach(function(n){Ix(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ix(e,t,r){return t=hge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hge(e){var t=pge(e,"string");return Kf(t)==="symbol"?t:String(t)}function pge(e,t){if(Kf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mge(e,t){return yge(e)||gge(e,t)||YF(e,t)||vge()}function vge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 436In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YF(e,t){if(e){if(typeof e=="string")return Nx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nx(e,t)}}function Nx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gge(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function yge(e){if(Array.isArray(e))return e}var sp=function(t,r,n){return t+(r-t)*n},Ox=function(t){var r=t.from,n=t.to;return r!==n},xge=function e(t,r,n){var i=Wc(function(a,o){if(Ox(o)){var s=t(o.from,o.to,o.velocity),l=mge(s,2),u=l[0],c=l[1];return $r($r({},o),{},{from:u,velocity:c})}return o},r);return n<1?Wc(function(a,o){return Ox(o)?$r($r({},o),{},{velocity:sp(o.velocity,i[a].velocity,n),from:sp(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const _ge=function(e,t,r,n,i){var a=Xve(e,t),o=a.reduce(function(y,x){return $r($r({},y),{},Ix({},x,[e[x],t[x]]))},{}),s=a.reduce(function(y,x){return $r($r({},y),{},Ix({},x,{from:e[x],velocity:0,to:t[x]}))},{}),l=-1,u,c,f=function(){return null},d=function(){return Wc(function(x,w){return w.from},s)},m=function(){return!Object.values(s).filter(Ox).length},g=function(x){u||(u=x);var w=x-u,_=w/r.dt;s=xge(r,s,_),i($r($r($r({},e),t),d())),u=x,m()||(l=requestAnimationFrame(f))},v=function(x){c||(c=x);var w=(x-c)/n,_=Wc(function(T,E){return sp.apply(void 0,eP(E).concat([r(w)]))},o);if(i($r($r($r({},e),t),_)),w<1)l=requestAnimationFrame(f);else{var S=Wc(function(T,E){return sp.apply(void 0,eP(E).concat([r(1)]))},o);i($r($r($r({},e),t),S))}};return f=r.isStepper?g:v,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}};function eu(e){"@babel/helpers - typeof";return eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eu(e)}var wge=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Ege(e,t){if(e==null)return{};var r=Tge(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tge(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function ug(e){return Cge(e)||bge(e)||Age(e)||Sge()}function Sge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 437In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Age(e,t){if(e){if(typeof e=="string")return Rx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rx(e,t)}}function bge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cge(e){if(Array.isArray(e))return Rx(e)}function Rx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ei(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rP(Object(r),!0).forEach(function(n){Sc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sc(e,t,r){return t=XF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kge(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XF(n.key),n)}}function Ige(e,t,r){return t&&kge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XF(e){var t=Nge(e,"string");return eu(t)==="symbol"?t:String(t)}function Nge(e,t){if(eu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mx(e,t)}function Mx(e,t){return Mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mx(e,t)}function Rge(e){var t=Mge();return function(){var n=lp(e),i;if(t){var a=lp(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Dx(this,i)}}function Dx(e,t){if(t&&(eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fx(e)}function Fx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mge(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lp(e){return lp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},lp(e)}var pi=function(e){Oge(r,e);var t=Rge(r);function r(n,i){var a;Pge(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,d=o.children,m=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Fx(a)),a.changeStyle=a.changeStyle.bind(Fx(a)),!s||m<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),Dx(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},Dx(a);a.state={style:l?Sc({},l,u):u}}else a.state={style:{}};return a}return Ige(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(s){if(!o){var m={style:l?Sc({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(m);return}if(!(Uve(i.to,c)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=g||u?f:i.to;if(this.state&&d){var y={style:l?Sc({},l,v):v};(l&&d[l]!==v||!l&&d!==v)&&this.setState(y)}this.runAnimation(Ei(Ei({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,m=_ge(o,s,uge(u),l,this.changeStyle),g=function(){a.stopJSAnimation=m()};this.manager.start([d,c,g,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,d=f===void 0?0:f,m=function(v,y,x){if(x===0)return v;var w=y.duration,_=y.easing,S=_===void 0?"ease":_,T=y.style,E=y.properties,A=y.onAnimationEnd,P=x>0?o[x-1]:y,C=E||Object.keys(T);if(typeof S=="function"||S==="spring")return[].concat(ug(v),[a.runJSAnimation.bind(a,{from:P.style,to:T,duration:w,easing:S}),w]);var N=JC(C,w,S),M=Ei(Ei(Ei({},P.style),T),{},{transition:N});return[].concat(ug(v),[M,w,A]).filter(Jve)};return this.manager.start([l].concat(ug(o.reduce(m,[c,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=qve());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,m=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof m=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=s?Sc({},s,l):l,y=JC(Object.keys(v),o,u);g.start([c,a,Ei(Ei({},v),{},{transition:y}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=Ege(i,wge),u=Q.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(m){var g=m.props,v=g.style,y=v===void 0?{}:v,x=g.className,w=Q.cloneElement(m,Ei(Ei({},l),{},{style:Ei(Ei({},y),c),className:x}));return w};return u===1?f(Q.Children.only(a)):j.createElement("div",null,Q.Children.map(a,function(d){return f(d)}))}}]),r}(Q.PureComponent);pi.displayName="Animate";pi.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};pi.propTypes={from:ct.oneOfType([ct.object,ct.string]),to:ct.oneOfType([ct.object,ct.string]),attributeName:ct.string,duration:ct.number,begin:ct.number,easing:ct.oneOfType([ct.string,ct.func]),steps:ct.arrayOf(ct.shape({duration:ct.number.isRequired,style:ct.object.isRequired,easing:ct.oneOfType([ct.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ct.func]),properties:ct.arrayOf("string"),onAnimationEnd:ct.func})),children:ct.oneOfType([ct.node,ct.func]),isActive:ct.bool,canBegin:ct.bool,onAnimationEnd:ct.func,shouldReAnimate:ct.bool,onAnimationStart:ct.func,onAnimationReStart:ct.func};function Yf(e){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}function up(){return up=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},up.apply(this,arguments)}function Dge(e,t){return Bge(e)||$ge(e,t)||Lge(e,t)||Fge()}function Fge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 438In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lge(e,t){if(e){if(typeof e=="string")return nP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nP(e,t)}}function nP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $ge(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Bge(e){if(Array.isArray(e))return e}function iP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function aP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iP(Object(r),!0).forEach(function(n){Uge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uge(e,t,r){return t=Gge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gge(e){var t=Vge(e,"string");return Yf(t)=="symbol"?t:t+""}function Vge(e,t){if(Yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oP=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,m=4;d<m;d++)f[d]=a[d]>o?o:a[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`, 439 `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`, 440 `).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`, 441 `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);c="M ".concat(t,",").concat(r+s*g,` 442 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+l*g,",").concat(r,` 443 L `).concat(t+n-l*g,",").concat(r,` 444 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*g,` 445 L `).concat(t+n,",").concat(r+i-s*g,` 446 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n-l*g,",").concat(r+i,` 447 L `).concat(t+l*g,",").concat(r+i,` 448 A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*g," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},Hge=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=d}return!1},jge={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Hw=function(t){var r=aP(aP({},jge),t),n=Q.useRef(),i=Q.useState(-1),a=Dge(i,2),o=a[0],s=a[1];Q.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,m=r.className,g=r.animationEasing,v=r.animationDuration,y=r.animationBegin,x=r.isAnimationActive,w=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var _=He("recharts-rectangle",m);return w?j.createElement(pi,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:v,animationEasing:g,isActive:w},function(S){var T=S.width,E=S.height,A=S.x,P=S.y;return j.createElement(pi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:x,easing:g},j.createElement("path",up({},Oe(r,!0),{className:_,d:oP(A,P,T,E,d),ref:n})))}):j.createElement("path",up({},Oe(r,!0),{className:_,d:oP(l,u,c,f,d)}))},zge=["points","className","baseLinePoints","connectNulls"];function gl(){return gl=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},gl.apply(this,arguments)}function Wge(e,t){if(e==null)return{};var r=qge(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qge(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function sP(e){return Jge(e)||Xge(e)||Yge(e)||Kge()}function Kge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 449In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yge(e,t){if(e){if(typeof e=="string")return Lx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lx(e,t)}}function Xge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jge(e){if(Array.isArray(e))return Lx(e)}function Lx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var lP=function(t){return t&&t.x===+t.x&&t.y===+t.y},Zge=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){lP(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),lP(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},qc=function(t,r){var n=Zge(t);r&&(n=[n.reduce(function(a,o){return[].concat(sP(a),sP(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},Qge=function(t,r,n){var i=qc(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(qc(r.reverse(),n).slice(1))},eye=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=Wge(t,zge);if(!r||!r.length)return null;var s=He("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=Qge(r,i,a);return j.createElement("g",{className:s},j.createElement("path",gl({},Oe(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?j.createElement("path",gl({},Oe(o,!0),{fill:"none",d:qc(r,a)})):null,l?j.createElement("path",gl({},Oe(o,!0),{fill:"none",d:qc(i,a)})):null)}var c=qc(r,a);return j.createElement("path",gl({},Oe(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",className:s,d:c}))};function $x(){return $x=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},$x.apply(this,arguments)}var Ad=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=He("recharts-dot",a);return r===+r&&n===+n&&i===+i?Q.createElement("circle",$x({},Oe(t,!1),Ph(t),{className:o,cx:r,cy:n,r:i})):null};function Xf(e){"@babel/helpers - typeof";return Xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xf(e)}var tye=["x","y","top","left","width","height","className"];function Bx(){return Bx=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},Bx.apply(this,arguments)}function uP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uP(Object(r),!0).forEach(function(n){nye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nye(e,t,r){return t=iye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iye(e){var t=aye(e,"string");return Xf(t)=="symbol"?t:t+""}function aye(e,t){if(Xf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oye(e,t){if(e==null)return{};var r=sye(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sye(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var lye=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},uye=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,d=t.height,m=d===void 0?0:d,g=t.className,v=oye(t,tye),y=rye({x:n,y:a,top:s,left:u,width:f,height:m},v);return!ge(n)||!ge(a)||!ge(f)||!ge(m)||!ge(s)||!ge(u)?null:j.createElement("path",Bx({},Oe(y,!0),{className:He("recharts-cross",g),d:lye(n,a,f,m,s,u)}))},cye=Dm,fye=lF,dye=ua;function hye(e,t){return e&&e.length?cye(e,dye(t),fye):void 0}var pye=hye;const mye=ft(pye);var vye=Dm,gye=ua,yye=uF;function xye(e,t){return e&&e.length?vye(e,gye(t),yye):void 0}var _ye=xye;const wye=ft(_ye);var Eye=["cx","cy","angle","ticks","axisLine"],Tye=["ticks","tick","angle","tickFormatter","stroke"];function tu(e){"@babel/helpers - typeof";return tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tu(e)}function Kc(){return Kc=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},Kc.apply(this,arguments)}function cP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cP(Object(r),!0).forEach(function(n){Bm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fP(e,t){if(e==null)return{};var r=Sye(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Sye(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Aye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZF(n.key),n)}}function bye(e,t,r){return t&&dP(e.prototype,t),r&&dP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cye(e,t,r){return t=cp(t),Pye(e,JF()?Reflect.construct(t,r||[],cp(e).constructor):t.apply(e,r))}function Pye(e,t){if(t&&(tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kye(e)}function kye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JF=function(){return!!e})()}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cp(e)}function Iye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ux(e,t)}function Ux(e,t){return Ux=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ux(e,t)}function Bm(e,t,r){return t=ZF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZF(e){var t=Nye(e,"string");return tu(t)=="symbol"?t:t+""}function Nye(e,t){if(tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Um=function(e){function t(){return Aye(this,t),Cye(this,t,arguments)}return Iye(t,e),bye(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return wt(s,l,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=mye(s,function(c){return c.coordinate||0}),u=wye(s,function(c){return c.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,u=fP(n,Eye),c=s.reduce(function(g,v){return[Math.min(g[0],v.coordinate),Math.max(g[1],v.coordinate)]},[1/0,-1/0]),f=wt(i,a,c[0],o),d=wt(i,a,c[1],o),m=Wo(Wo(Wo({},Oe(u,!1)),{},{fill:"none"},Oe(l,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return j.createElement("line",Kc({className:"recharts-polar-radius-axis-line"},m))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,c=fP(i,Tye),f=this.getTickTextAnchor(),d=Oe(c,!1),m=Oe(o,!1),g=a.map(function(v,y){var x=n.getTickValueCoord(v),w=Wo(Wo(Wo(Wo({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(x.x,", ").concat(x.y,")")},d),{},{stroke:"none",fill:u},m),{},{index:y},x),{},{payload:v});return j.createElement(We,Kc({className:He("recharts-polar-radius-axis-tick",LF(o)),key:"tick-".concat(v.coordinate)},ko(n.props,v,y)),t.renderTickItem(o,w,l?l(v.value,y):v.value))});return j.createElement(We,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:j.createElement(We,{className:He("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),kr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return j.isValidElement(n)?o=j.cloneElement(n,i):Fe(n)?o=n(i):o=j.createElement(Cs,Kc({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(Q.PureComponent);Bm(Um,"displayName","PolarRadiusAxis");Bm(Um,"axisType","radiusAxis");Bm(Um,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function ru(e){"@babel/helpers - typeof";return ru=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ru(e)}function ts(){return ts=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},ts.apply(this,arguments)}function hP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(r),!0).forEach(function(n){Gm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e4(n.key),n)}}function Rye(e,t,r){return t&&pP(e.prototype,t),r&&pP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mye(e,t,r){return t=fp(t),Dye(e,QF()?Reflect.construct(t,r||[],fp(e).constructor):t.apply(e,r))}function Dye(e,t){if(t&&(ru(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fye(e)}function Fye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QF=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fp(e)}function Lye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gx(e,t)}function Gx(e,t){return Gx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gx(e,t)}function Gm(e,t,r){return t=e4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e4(e){var t=$ye(e,"string");return ru(t)=="symbol"?t:t+""}function $ye(e,t){if(ru(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ru(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bye=Math.PI/180,mP=1e-5,Vm=function(e){function t(){return Oye(this,t),Mye(this,t,arguments)}return Lye(t,e),Rye(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,c=u||8,f=wt(a,o,s,n.coordinate),d=wt(a,o,s+(l==="inner"?-1:1)*c,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Bye),o;return a>mP?o=i==="outer"?"start":"end":a<-mP?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=qo(qo({},Oe(this.props,!1)),{},{fill:"none"},Oe(s,!1));if(l==="circle")return j.createElement(Ad,ts({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var c=this.props.ticks,f=c.map(function(d){return wt(i,a,o,d.coordinate)});return j.createElement(eye,ts({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,c=Oe(this.props,!1),f=Oe(o,!1),d=qo(qo({},c),{},{fill:"none"},Oe(s,!1)),m=a.map(function(g,v){var y=n.getTickLineCoord(g),x=n.getTickTextAnchor(g),w=qo(qo(qo({textAnchor:x},c),{},{stroke:"none",fill:u},f),{},{index:v,payload:g,x:y.x2,y:y.y2});return j.createElement(We,ts({className:He("recharts-polar-angle-axis-tick",LF(o)),key:"tick-".concat(g.coordinate)},ko(n.props,g,v)),s&&j.createElement("line",ts({className:"recharts-polar-angle-axis-tick-line"},d,y)),o&&t.renderTickItem(o,w,l?l(g.value,v):g.value))});return j.createElement(We,{className:"recharts-polar-angle-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:j.createElement(We,{className:He("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return j.isValidElement(n)?o=j.cloneElement(n,i):Fe(n)?o=n(i):o=j.createElement(Cs,ts({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(Q.PureComponent);Gm(Vm,"displayName","PolarAngleAxis");Gm(Vm,"axisType","angleAxis");Gm(Vm,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Uye=aD,Gye=Uye(Object.getPrototypeOf,Object),Vye=Gye,Hye=Ga,jye=Vye,zye=Va,Wye="[object Object]",qye=Function.prototype,Kye=Object.prototype,t4=qye.toString,Yye=Kye.hasOwnProperty,Xye=t4.call(Object);function Jye(e){if(!zye(e)||Hye(e)!=Wye)return!1;var t=jye(e);if(t===null)return!0;var r=Yye.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&t4.call(r)==Xye}var Zye=Jye;const Qye=ft(Zye);var exe=Ga,txe=Va,rxe="[object Boolean]";function nxe(e){return e===!0||e===!1||txe(e)&&exe(e)==rxe}var ixe=nxe;const axe=ft(ixe);function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function dp(){return dp=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},dp.apply(this,arguments)}function oxe(e,t){return cxe(e)||uxe(e,t)||lxe(e,t)||sxe()}function sxe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 450In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lxe(e,t){if(e){if(typeof e=="string")return vP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vP(e,t)}}function vP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uxe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function cxe(e){if(Array.isArray(e))return e}function gP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(r),!0).forEach(function(n){fxe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fxe(e,t,r){return t=dxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dxe(e){var t=hxe(e,"string");return Jf(t)=="symbol"?t:t+""}function hxe(e,t){if(Jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xP=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},pxe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},mxe=function(t){var r=yP(yP({},pxe),t),n=Q.useRef(),i=Q.useState(-1),a=oxe(i,2),o=a[0],s=a[1];Q.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,d=r.height,m=r.className,g=r.animationEasing,v=r.animationDuration,y=r.animationBegin,x=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var w=He("recharts-trapezoid",m);return x?j.createElement(pi,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:l,y:u},duration:v,animationEasing:g,isActive:x},function(_){var S=_.upperWidth,T=_.lowerWidth,E=_.height,A=_.x,P=_.y;return j.createElement(pi,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,easing:g},j.createElement("path",dp({},Oe(r,!0),{className:w,d:xP(A,P,S,T,E),ref:n})))}):j.createElement("g",null,j.createElement("path",dp({},Oe(r,!0),{className:w,d:xP(l,u,c,f,d)})))},vxe=["option","shapeType","propTransformer","activeClassName","isActive"];function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}function gxe(e,t){if(e==null)return{};var r=yxe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yxe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_P(Object(r),!0).forEach(function(n){xxe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_P(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xxe(e,t,r){return t=_xe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _xe(e){var t=wxe(e,"string");return Zf(t)=="symbol"?t:t+""}function wxe(e,t){if(Zf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Exe(e,t){return hp(hp({},t),e)}function Txe(e,t){return e==="symbols"}function wP(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return j.createElement(Hw,r);case"trapezoid":return j.createElement(mxe,r);case"sector":return j.createElement(UF,r);case"symbols":if(Txe(t))return j.createElement(Am,r);break;default:return null}}function Sxe(e){return Q.isValidElement(e)?e.props:e}function pp(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?Exe:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=gxe(e,vxe),u;if(Q.isValidElement(t))u=Q.cloneElement(t,hp(hp({},l),Sxe(t)));else if(Fe(t))u=t(l);else if(Qye(t)&&!axe(t)){var c=i(t,l);u=j.createElement(wP,{shapeType:r,elementProps:c})}else{var f=l;u=j.createElement(wP,{shapeType:r,elementProps:f})}return s?j.createElement(We,{className:o},u):u}function Hm(e,t){return t!=null&&"trapezoids"in e.props}function jm(e,t){return t!=null&&"sectors"in e.props}function Qf(e,t){return t!=null&&"points"in e.props}function Axe(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function bxe(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function Cxe(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function Pxe(e,t){var r;return Hm(e,t)?r=Axe:jm(e,t)?r=bxe:Qf(e,t)&&(r=Cxe),r}function kxe(e,t){var r;return Hm(e,t)?r="trapezoids":jm(e,t)?r="sectors":Qf(e,t)&&(r="points"),r}function Ixe(e,t){if(Hm(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(jm(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Qf(e,t)?t.payload:{}}function Nxe(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=kxe(r,t),a=Ixe(r,t),o=n.filter(function(l,u){var c=Io(a,l),f=r.props[i].filter(function(g){var v=Pxe(r,t);return v(g,t)}),d=r.props[i].indexOf(f[f.length-1]),m=u===d;return c&&m}),s=n.indexOf(o[o.length-1]);return s}var $0;function nu(e){"@babel/helpers - typeof";return nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nu(e)}function yl(){return yl=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},yl.apply(this,arguments)}function EP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EP(Object(r),!0).forEach(function(n){ii(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n4(n.key),n)}}function Rxe(e,t,r){return t&&TP(e.prototype,t),r&&TP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mxe(e,t,r){return t=mp(t),Dxe(e,r4()?Reflect.construct(t,r||[],mp(e).constructor):t.apply(e,r))}function Dxe(e,t){if(t&&(nu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fxe(e)}function Fxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r4=function(){return!!e})()}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mp(e)}function Lxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vx(e,t)}function Vx(e,t){return Vx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vx(e,t)}function ii(e,t,r){return t=n4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n4(e){var t=$xe(e,"string");return nu(t)=="symbol"?t:t+""}function $xe(e,t){if(nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var za=function(e){function t(r){var n;return Oxe(this,t),n=Mxe(this,t,[r]),ii(n,"pieRef",null),ii(n,"sectorRefs",[]),ii(n,"id",$o("recharts-pie-")),ii(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Fe(i)&&i()}),ii(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Fe(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return Lxe(t,e),Rxe(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,l=a.dataKey,u=a.valueKey,c=Oe(this.props,!1),f=Oe(o,!1),d=Oe(s,!1),m=o&&o.offsetRadius||20,g=n.map(function(v,y){var x=(v.startAngle+v.endAngle)/2,w=wt(v.cx,v.cy,v.outerRadius+m,x),_=gt(gt(gt(gt({},c),v),{},{stroke:"none"},f),{},{index:y,textAnchor:t.getTextAnchor(w.x,v.cx)},w),S=gt(gt(gt(gt({},c),v),{},{fill:"none",stroke:v.fill},d),{},{index:y,points:[wt(v.cx,v.cy,v.outerRadius,x),w]}),T=l;return De(l)&&De(u)?T="value":De(l)&&(T=u),j.createElement(We,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(y)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(o,_,kt(v,T)))});return j.createElement(We,{className:"recharts-pie-labels"},g)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,l=a.inactiveShape;return n.map(function(u,c){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var f=i.isActiveIndex(c),d=l&&i.hasActiveIndex()?l:null,m=f?o:d,g=gt(gt({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return j.createElement(We,yl({ref:function(y){y&&!i.sectorRefs.includes(y)&&i.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},ko(i.props,u,c),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(c)}),j.createElement(pp,yl({option:m,isActive:f,shapeType:"sector"},g)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state,d=f.prevSectors,m=f.prevIsAnimationActive;return j.createElement(pi,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(m),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(g){var v=g.t,y=[],x=a&&a[0],w=x.startAngle;return a.forEach(function(_,S){var T=d&&d[S],E=S>0?Gn(_,"paddingAngle",0):0;if(T){var A=$t(T.endAngle-T.startAngle,_.endAngle-_.startAngle),P=gt(gt({},_),{},{startAngle:w+E,endAngle:w+A(v)+E});y.push(P),w=P.endAngle}else{var C=_.endAngle,N=_.startAngle,M=$t(0,C-N),k=M(v),H=gt(gt({},_),{},{startAngle:w+E,endAngle:w+k+E});y.push(H),w=H.endAngle}}),j.createElement(We,null,n.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Io(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,l=i.label,u=i.cx,c=i.cy,f=i.innerRadius,d=i.outerRadius,m=i.isAnimationActive,g=this.state.isAnimationFinished;if(a||!o||!o.length||!ge(u)||!ge(c)||!ge(f)||!ge(d))return null;var v=He("recharts-pie",s);return j.createElement(We,{tabIndex:this.props.rootTabIndex,className:v,ref:function(x){n.pieRef=x}},this.renderSectors(),l&&this.renderLabels(o),kr.renderCallByParent(this.props,null,!1),(!m||g)&&tn.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(j.isValidElement(n))return j.cloneElement(n,i);if(Fe(n))return n(i);var o=He("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return j.createElement(So,yl({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(j.isValidElement(n))return j.cloneElement(n,i);var o=a;if(Fe(n)&&(o=n(i),j.isValidElement(o)))return o;var s=He("recharts-pie-label-text",typeof n!="boolean"&&!Fe(n)?n.className:"");return j.createElement(Cs,yl({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(Q.PureComponent);$0=za;ii(za,"displayName","Pie");ii(za,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ha.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ii(za,"parseDeltaAngle",function(e,t){var r=hn(t-e),n=Math.min(Math.abs(t-e),360);return r*n});ii(za,"getRealPieData",function(e){var t=e.data,r=e.children,n=Oe(e,!1),i=yn(r,_d);return t&&t.length?t.map(function(a,o){return gt(gt(gt({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return gt(gt({},n),a.props)}):[]});ii(za,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=FF(i,a),s=n+pn(e.cx,i,i/2),l=r+pn(e.cy,a,a/2),u=pn(e.innerRadius,o,0),c=pn(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:c,maxRadius:f}});ii(za,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?gt(gt({},t.type.defaultProps),t.props):t.props,i=$0.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,l=n.paddingAngle,u=n.dataKey,c=n.nameKey,f=n.valueKey,d=n.tooltipType,m=Math.abs(n.minAngle),g=$0.parseCoordinateOfPie(n,r),v=$0.parseDeltaAngle(o,s),y=Math.abs(v),x=u;De(u)&&De(f)?($i(!1,`Use "dataKey" to specify the value of pie,
451 the props "valueKey" will be deprecated in 1.1.0`),x="value"):De(u)&&($i(!1,`Use "dataKey" to specify the value of pie, 452 the props "valueKey" will be deprecated in 1.1.0`),x=f);var w=i.filter(function(P){return kt(P,x,0)!==0}).length,_=(y>=360?w:w-1)*l,S=y-w*m-_,T=i.reduce(function(P,C){var N=kt(C,x,0);return P+(ge(N)?N:0)},0),E;if(T>0){var A;E=i.map(function(P,C){var N=kt(P,x,0),M=kt(P,c,C),k=(ge(N)?N:0)/T,H;C?H=A.endAngle+hn(v)*l*(N!==0?1:0):H=o;var K=H+hn(v)*((N!==0?m:0)+k*S),U=(H+K)/2,Y=(g.innerRadius+g.outerRadius)/2,W=[{name:M,value:N,payload:P,dataKey:x,type:d}],J=wt(g.cx,g.cy,Y,U);return A=gt(gt(gt({percent:k,cornerRadius:a,name:M,tooltipPayload:W,midAngle:U,middleRadius:Y,tooltipPosition:J},P),g),{},{value:kt(P,x),startAngle:H,endAngle:K,payload:P,paddingAngle:hn(v)*l}),A})}return gt(gt({},g),{},{sectors:E,data:i})});var Bxe=Math.ceil,Uxe=Math.max;function Gxe(e,t,r,n){for(var i=-1,a=Uxe(Bxe((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Vxe=Gxe,Hxe=SD,SP=1/0,jxe=17976931348623157e292;function zxe(e){if(!e)return e===0?e:0;if(e=Hxe(e),e===SP||e===-SP){var t=e<0?-1:1;return t*jxe}return e===e?e:0}var i4=zxe,Wxe=Vxe,qxe=Pm,cg=i4;function Kxe(e){return function(t,r,n){return n&&typeof n!="number"&&qxe(t,r,n)&&(r=n=void 0),t=cg(t),r===void 0?(r=t,t=0):r=cg(r),n=n===void 0?t<r?1:-1:cg(n),Wxe(t,r,n,e)}}var Yxe=Kxe,Xxe=Yxe,Jxe=Xxe(),Zxe=Jxe;const vp=ft(Zxe);function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function AP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AP(Object(r),!0).forEach(function(n){a4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a4(e,t,r){return t=Qxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qxe(e){var t=e1e(e,"string");return ed(t)=="symbol"?t:t+""}function e1e(e,t){if(ed(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ed(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t1e=["Webkit","Moz","O","ms"],r1e=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=t1e.reduce(function(a,o){return bP(bP({},a),{},a4({},o+n,r))},{});return i[t]=r,i};function iu(e){"@babel/helpers - typeof";return iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iu(e)}function gp(){return gp=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},gp.apply(this,arguments)}function CP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CP(Object(r),!0).forEach(function(n){Rn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s4(n.key),n)}}function i1e(e,t,r){return t&&PP(e.prototype,t),r&&PP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function a1e(e,t,r){return t=yp(t),o1e(e,o4()?Reflect.construct(t,r||[],yp(e).constructor):t.apply(e,r))}function o1e(e,t){if(t&&(iu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s1e(e)}function s1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o4=function(){return!!e})()}
vendor: 144,919 bytes, lines 452-457
452function yp(e){return yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yp(e)}function l1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hx(e,t)}function Hx(e,t){return Hx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hx(e,t)}function Rn(e,t,r){return t=s4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s4(e){var t=u1e(e,"string");return iu(t)=="symbol"?t:t+""}function u1e(e,t){if(iu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(iu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var c1e=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=jc().domain(vp(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},kP=function(t){return t.changedTouches&&!!t.changedTouches.length},No=function(e){function t(r){var n;return n1e(this,t),n=a1e(this,t,[r]),Rn(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Rn(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Rn(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Rn(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Rn(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Rn(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Rn(n,"handleSlideDragStart",function(i){var a=kP(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return l1e(t,e),i1e(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),d=Math.max(i,a),m=t.getIndexInRange(o,f),g=t.getIndexInRange(o,d);return{startIndex:m-m%l,endIndex:g===c?c:g-g%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=kt(a[n],s,n);return Fe(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,d=l.startIndex,m=l.endIndex,g=l.onChange,v=n.pageX-a;v>0?v=Math.min(v,u+c-f-s,u+c-f-o):v<0&&(v=Math.max(v,u-o,u-s));var y=this.getIndex({startX:o+v,endX:s+v});(y.startIndex!==d||y.endIndex!==m)&&g&&g(y),this.setState({startX:o+v,endX:s+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=kP(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,d=c.width,m=c.travellerWidth,g=c.onChange,v=c.gap,y=c.data,x={startX:this.state.startX,endX:this.state.endX},w=n.pageX-a;w>0?w=Math.min(w,f+d-m-u):w<0&&(w=Math.max(w,f-u)),x[o]=u+w;var _=this.getIndex(x),S=_.startIndex,T=_.endIndex,E=function(){var P=y.length-1;return o==="startX"&&(s>l?S%v===0:T%v===0)||s<l&&T===P||o==="endX"&&(s>l?T%v===0:S%v===0)||s>l&&T===P};this.setState(Rn(Rn({},o,u+w),"brushMoveStartX",n.pageX),function(){g&&E()&&g(_)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var m=s[d];i==="startX"&&m>=u||i==="endX"&&m<=l||this.setState(Rn({},i,m),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return j.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=Q.Children.only(u);return f?j.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,d=l.traveller,m=l.ariaLabel,g=l.data,v=l.startIndex,y=l.endIndex,x=Math.max(n,this.props.x),w=fg(fg({},Oe(this.props,!1)),{},{x,y:u,width:c,height:f}),_=m||"Min value: ".concat((a=g[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=g[y])===null||o===void 0?void 0:o.name);return j.createElement(We,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(T){["ArrowLeft","ArrowRight"].includes(T.key)&&(T.preventDefault(),T.stopPropagation(),s.handleTravellerMoveKeyboard(T.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,w))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return j.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,d=c.endX,m=5,g={pointerEvents:"none",fill:u};return j.createElement(We,{className:"recharts-brush-texts"},j.createElement(Cs,gp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-m,y:o+s/2},g),this.getTextOfTick(i)),j.createElement(Cs,gp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+m,y:o+s/2},g),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,d=this.state,m=d.startX,g=d.endX,v=d.isTextActive,y=d.isSlideMoving,x=d.isTravellerMoving,w=d.isTravellerFocused;if(!i||!i.length||!ge(s)||!ge(l)||!ge(u)||!ge(c)||u<=0||c<=0)return null;var _=He("recharts-brush",a),S=j.Children.count(o)===1,T=r1e("userSelect","none");return j.createElement(We,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:T},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(m,g),this.renderTravellerLayer(m,"startX"),this.renderTravellerLayer(g,"endX"),(v||y||x||w||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return j.createElement(j.Fragment,null,j.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),j.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),j.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return j.isValidElement(n)?a=j.cloneElement(n,i):Fe(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return fg({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?c1e({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var d=i.scale.domain().map(function(m){return i.scale(m)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(Q.PureComponent);Rn(No,"displayName","Brush");Rn(No,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var f1e=mw;function d1e(e,t){var r;return f1e(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var h1e=d1e,p1e=JM,m1e=ua,v1e=h1e,g1e=Nn,y1e=Pm;function x1e(e,t,r){var n=g1e(e)?p1e:v1e;return r&&y1e(e,t,r)&&(t=void 0),n(e,m1e(t))}var _1e=x1e;const w1e=ft(_1e);var na=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},IP=xD;function E1e(e,t,r){t=="__proto__"&&IP?IP(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var T1e=E1e,S1e=T1e,A1e=gD,b1e=ua;function C1e(e,t){var r={};return t=b1e(t),A1e(e,function(n,i,a){S1e(r,i,t(n,i,a))}),r}var P1e=C1e;const k1e=ft(P1e);function I1e(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var N1e=I1e,O1e=mw;function R1e(e,t){var r=!0;return O1e(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var M1e=R1e,D1e=N1e,F1e=M1e,L1e=ua,$1e=Nn,B1e=Pm;function U1e(e,t,r){var n=$1e(e)?D1e:F1e;return r&&B1e(e,t,r)&&(t=void 0),n(e,L1e(t))}var G1e=U1e;const l4=ft(G1e);var V1e=["x","y"];function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function jx(){return jx=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},jx.apply(this,arguments)}function NP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NP(Object(r),!0).forEach(function(n){H1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H1e(e,t,r){return t=j1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j1e(e){var t=z1e(e,"string");return td(t)=="symbol"?t:t+""}function z1e(e,t){if(td(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(td(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W1e(e,t){if(e==null)return{};var r=q1e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function q1e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function K1e(e,t){var r=e.x,n=e.y,i=W1e(e,V1e),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return pc(pc(pc(pc(pc({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function OP(e){return j.createElement(pp,jx({shapeType:"rectangle",propTransformer:K1e,activeClassName:"recharts-active-bar"},e))}var Y1e=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=ge(n)||vee(n);return a?t(n,i):(a||ks(),r)}},X1e=["value","background"],u4;function au(e){"@babel/helpers - typeof";return au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},au(e)}function J1e(e,t){if(e==null)return{};var r=Z1e(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z1e(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function xp(){return xp=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},xp.apply(this,arguments)}function RP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RP(Object(r),!0).forEach(function(n){fo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,f4(n.key),n)}}function e_e(e,t,r){return t&&MP(e.prototype,t),r&&MP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function t_e(e,t,r){return t=_p(t),r_e(e,c4()?Reflect.construct(t,r||[],_p(e).constructor):t.apply(e,r))}function r_e(e,t){if(t&&(au(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n_e(e)}function n_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(c4=function(){return!!e})()}function _p(e){return _p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_p(e)}function i_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zx(e,t)}function zx(e,t){return zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zx(e,t)}function fo(e,t,r){return t=f4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f4(e){var t=a_e(e,"string");return au(t)=="symbol"?t:t+""}function a_e(e,t){if(au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var js=function(e){function t(){var r;Q1e(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=t_e(this,t,[].concat(i)),fo(r,"state",{isAnimationFinished:!1}),fo(r,"id",$o("recharts-bar-")),fo(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),fo(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return i_e(t,e),e_e(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=Oe(this.props,!1);return n&&n.map(function(f,d){var m=d===l,g=m?u:o,v=tr(tr(tr({},c),f),{},{isActive:m,option:g,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return j.createElement(We,xp({className:"recharts-bar-rectangle"},ko(i.props,f,d),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(d)}),j.createElement(OP,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,d=this.state.prevData;return j.createElement(pi,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var g=m.t,v=a.map(function(y,x){var w=d&&d[x];if(w){var _=$t(w.x,y.x),S=$t(w.y,y.y),T=$t(w.width,y.width),E=$t(w.height,y.height);return tr(tr({},y),{},{x:_(g),y:S(g),width:T(g),height:E(g)})}if(o==="horizontal"){var A=$t(0,y.height),P=A(g);return tr(tr({},y),{},{y:y.y+y.height-P,height:P})}var C=$t(0,y.width),N=C(g);return tr(tr({},y),{},{width:N})});return j.createElement(We,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Io(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=Oe(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,d=J1e(u,X1e);if(!f)return null;var m=tr(tr(tr(tr(tr({},d),{},{fill:"#eee"},f),l),ko(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return j.createElement(OP,xp({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},m))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=yn(c,Uu);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,m=function(y,x){var w=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:w,errorVal:kt(y,x)}},g={clipPath:n?"url(#clipPath-".concat(i,")"):null};return j.createElement(We,g,f.map(function(v){return j.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:m})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,d=n.height,m=n.isAnimationActive,g=n.background,v=n.id;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,x=He("recharts-bar",o),w=s&&s.allowDataOverflow,_=l&&l.allowDataOverflow,S=w||_,T=De(v)?this.id:v;return j.createElement(We,{className:x},w||_?j.createElement("defs",null,j.createElement("clipPath",{id:"clipPath-".concat(T)},j.createElement("rect",{x:w?u:u-f/2,y:_?c:c-d/2,width:w?f:f*2,height:_?d:d*2}))):null,j.createElement(We,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(T,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,T),(!m||y)&&tn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(Q.PureComponent);u4=js;fo(js,"displayName","Bar");fo(js,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ha.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});fo(js,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,m=Dpe(n,r);if(!m)return null;var g=t.layout,v=r.type.defaultProps,y=v!==void 0?tr(tr({},v),r.props):r.props,x=y.dataKey,w=y.children,_=y.minPointSize,S=g==="horizontal"?o:a,T=u?S.scale.domain():null,E=Vpe({numericAxis:S}),A=yn(w,_d),P=f.map(function(C,N){var M,k,H,K,U,Y;u?M=Fpe(u[c+N],T):(M=kt(C,x),Array.isArray(M)||(M=[E,M]));var W=Y1e(_,u4.defaultProps.minPointSize)(M[1],N);if(g==="horizontal"){var J,F=[o.scale(M[0]),o.scale(M[1])],ee=F[0],le=F[1];k=TC({axis:a,ticks:s,bandSize:i,offset:m.offset,entry:C,index:N}),H=(J=le??ee)!==null&&J!==void 0?J:void 0,K=m.size;var R=ee-le;if(U=Number.isNaN(R)?0:R,Y={x:k,y:o.y,width:K,height:o.height},Math.abs(W)>0&&Math.abs(U)<Math.abs(W)){var X=hn(U||W)*(Math.abs(W)-Math.abs(U));H-=X,U+=X}}else{var q=[a.scale(M[0]),a.scale(M[1])],z=q[0],se=q[1];if(k=z,H=TC({axis:o,ticks:l,bandSize:i,offset:m.offset,entry:C,index:N}),K=se-z,U=m.size,Y={x:a.x,y:H,width:a.width,height:U},Math.abs(W)>0&&Math.abs(K)<Math.abs(W)){var pe=hn(K||W)*(Math.abs(W)-Math.abs(K));K+=pe}}return tr(tr(tr({},C),{},{x:k,y:H,width:K,height:U,value:u?M:M[1],payload:C,background:Y},A&&A[N]&&A[N].props),{},{tooltipPayload:[MF(r,C)],tooltipPosition:{x:k+K/2,y:H+U/2}})});return tr({data:P,layout:g},d)});function rd(e){"@babel/helpers - typeof";return rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rd(e)}function o_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d4(n.key),n)}}function s_e(e,t,r){return t&&DP(e.prototype,t),r&&DP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FP(Object(r),!0).forEach(function(n){zm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zm(e,t,r){return t=d4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d4(e){var t=l_e(e,"string");return rd(t)=="symbol"?t:t+""}function l_e(e,t){if(rd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wm=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!Dn(u,js);return c.reduce(function(m,g){var v=r[g],y=v.orientation,x=v.domain,w=v.padding,_=w===void 0?{}:w,S=v.mirror,T=v.reversed,E="".concat(y).concat(S?"Mirror":""),A,P,C,N,M;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var k=x[1]-x[0],H=1/0,K=v.categoricalDomain.sort(_ee);if(K.forEach(function(q,z){z>0&&(H=Math.min((q||0)-(K[z-1]||0),H))}),Number.isFinite(H)){var U=H/k,Y=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(A=U*Y/2),v.padding==="no-gap"){var W=pn(t.barCategoryGap,U*Y),J=U*Y/2;A=J-W-(J-W)/Y*W}}}i==="xAxis"?P=[n.left+(_.left||0)+(A||0),n.left+n.width-(_.right||0)-(A||0)]:i==="yAxis"?P=l==="horizontal"?[n.top+n.height-(_.bottom||0),n.top+(_.top||0)]:[n.top+(_.top||0)+(A||0),n.top+n.height-(_.bottom||0)-(A||0)]:P=v.range,T&&(P=[P[1],P[0]]);var F=IF(v,a,d),ee=F.scale,le=F.realScaleType;ee.domain(x).range(P),NF(ee);var R=OF(ee,bi(bi({},v),{},{realScaleType:le}));i==="xAxis"?(M=y==="top"&&!S||y==="bottom"&&S,C=n.left,N=f[E]-M*v.height):i==="yAxis"&&(M=y==="left"&&!S||y==="right"&&S,C=f[E]-M*v.width,N=n.top);var X=bi(bi(bi({},v),R),{},{realScaleType:le,x:C,y:N,scale:ee,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=rp(X,R),!v.hide&&i==="xAxis"?f[E]+=(M?-1:1)*X.height:v.hide||(f[E]+=(M?-1:1)*X.width),bi(bi({},m),{},zm({},g,X))},{})},h4=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},u_e=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return h4({x:r,y:n},{x:i,y:a})},p4=function(){function e(t){o_e(this,e),this.scale=t}return s_e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();zm(p4,"EPS",1e-4);var jw=function(t){var r=Object.keys(t).reduce(function(n,i){return bi(bi({},n),{},zm({},i,p4.create(t[i])))},{});return bi(bi({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return k1e(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return l4(i,function(a,o){return r[o].isInRange(a)})}})};function c_e(e){return(e%180+180)%180}var f_e=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=c_e(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},d_e=ua,h_e=xd,p_e=bm;function m_e(e){return function(t,r,n){var i=Object(t);if(!h_e(t)){var a=d_e(r);t=p_e(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var v_e=m_e,g_e=i4;function y_e(e){var t=g_e(e),r=t%1;return t===t?r?t-r:t:0}var x_e=y_e,__e=fD,w_e=ua,E_e=x_e,T_e=Math.max;function S_e(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:E_e(r);return i<0&&(i=T_e(n+i,0)),__e(e,w_e(t),i)}var A_e=S_e,b_e=v_e,C_e=A_e,P_e=b_e(C_e),k_e=P_e;const I_e=ft(k_e);var N_e=EQ(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),zw=Q.createContext(void 0),Ww=Q.createContext(void 0),m4=Q.createContext(void 0),v4=Q.createContext({}),g4=Q.createContext(void 0),y4=Q.createContext(0),x4=Q.createContext(0),LP=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=N_e(a);return j.createElement(zw.Provider,{value:n},j.createElement(Ww.Provider,{value:i},j.createElement(v4.Provider,{value:a},j.createElement(m4.Provider,{value:c},j.createElement(g4.Provider,{value:o},j.createElement(y4.Provider,{value:u},j.createElement(x4.Provider,{value:l},s)))))))},O_e=function(){return Q.useContext(g4)},_4=function(t){var r=Q.useContext(zw);r==null&&ks();var n=r[t];return n==null&&ks(),n},R_e=function(){var t=Q.useContext(zw);return io(t)},M_e=function(){var t=Q.useContext(Ww),r=I_e(t,function(n){return l4(n.domain,Number.isFinite)});return r||io(t)},w4=function(t){var r=Q.useContext(Ww);r==null&&ks();var n=r[t];return n==null&&ks(),n},D_e=function(){var t=Q.useContext(m4);return t},F_e=function(){return Q.useContext(v4)},qw=function(){return Q.useContext(x4)},Kw=function(){return Q.useContext(y4)};function ou(e){"@babel/helpers - typeof";return ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ou(e)}function L_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $_e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T4(n.key),n)}}function B_e(e,t,r){return t&&$_e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U_e(e,t,r){return t=wp(t),G_e(e,E4()?Reflect.construct(t,r||[],wp(e).constructor):t.apply(e,r))}function G_e(e,t){if(t&&(ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V_e(e)}function V_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(E4=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wp(e)}function H_e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wx(e,t)}function Wx(e,t){return Wx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wx(e,t)}function $P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function BP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$P(Object(r),!0).forEach(function(n){Yw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$P(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yw(e,t,r){return t=T4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T4(e){var t=j_e(e,"string");return ou(t)=="symbol"?t:t+""}function j_e(e,t){if(ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function z_e(e,t){return Y_e(e)||K_e(e,t)||q_e(e,t)||W_e()}function W_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 453In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q_e(e,t){if(e){if(typeof e=="string")return UP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return UP(e,t)}}function UP(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function K_e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Y_e(e){if(Array.isArray(e))return e}function qx(){return qx=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},qx.apply(this,arguments)}var X_e=function(t,r){var n;return j.isValidElement(t)?n=j.cloneElement(t,r):Fe(t)?n=t(r):n=j.createElement("line",qx({},r,{className:"recharts-reference-line-line"})),n},J_e=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,d=a.width,m=a.height;if(n){var g=u.y,v=t.y.apply(g,{position:o});if(na(u,"discard")&&!t.y.isInRange(v))return null;var y=[{x:c+d,y:v},{x:c,y:v}];return l==="left"?y.reverse():y}if(r){var x=u.x,w=t.x.apply(x,{position:o});if(na(u,"discard")&&!t.x.isInRange(w))return null;var _=[{x:w,y:f+m},{x:w,y:f}];return s==="top"?_.reverse():_}if(i){var S=u.segment,T=S.map(function(E){return t.apply(E,{position:o})});return na(u,"discard")&&w1e(T,function(E){return!t.isInRange(E)})?null:T}return null};function Z_e(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=O_e(),c=_4(i),f=w4(a),d=D_e();if(!u||!d)return null;$i(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=jw({x:c.scale,y:f.scale}),g=gr(t),v=gr(r),y=n&&n.length===2,x=J_e(m,g,v,y,d,e.position,c.orientation,f.orientation,e);if(!x)return null;var w=z_e(x,2),_=w[0],S=_.x,T=_.y,E=w[1],A=E.x,P=E.y,C=na(e,"hidden")?"url(#".concat(u,")"):void 0,N=BP(BP({clipPath:C},Oe(e,!0)),{},{x1:S,y1:T,x2:A,y2:P});return j.createElement(We,{className:He("recharts-reference-line",s)},X_e(o,N),kr.renderCallByParent(e,u_e({x1:S,y1:T,x2:A,y2:P})))}var Xw=function(e){function t(){return L_e(this,t),U_e(this,t,arguments)}return H_e(t,e),B_e(t,[{key:"render",value:function(){return j.createElement(Z_e,this.props)}}])}(j.Component);Yw(Xw,"displayName","ReferenceLine");Yw(Xw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Kx(){return Kx=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},Kx.apply(this,arguments)}function su(e){"@babel/helpers - typeof";return su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(e)}function GP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GP(Object(r),!0).forEach(function(n){qm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Q_e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ewe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,A4(n.key),n)}}function twe(e,t,r){return t&&ewe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rwe(e,t,r){return t=Ep(t),nwe(e,S4()?Reflect.construct(t,r||[],Ep(e).constructor):t.apply(e,r))}function nwe(e,t){if(t&&(su(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iwe(e)}function iwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(S4=function(){return!!e})()}function Ep(e){return Ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ep(e)}function awe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yx(e,t)}function Yx(e,t){return Yx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yx(e,t)}function qm(e,t,r){return t=A4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A4(e){var t=owe(e,"string");return su(t)=="symbol"?t:t+""}function owe(e,t){if(su(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(su(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var swe=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=jw({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return na(t,"discard")&&!o.isInRange(s)?null:s},Km=function(e){function t(){return Q_e(this,t),rwe(this,t,arguments)}return awe(t,e),twe(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=gr(i),c=gr(a);if($i(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=swe(this.props);if(!f)return null;var d=f.x,m=f.y,g=this.props,v=g.shape,y=g.className,x=na(this.props,"hidden")?"url(#".concat(l,")"):void 0,w=VP(VP({clipPath:x},Oe(this.props,!0)),{},{cx:d,cy:m});return j.createElement(We,{className:He("recharts-reference-dot",y)},t.renderDot(v,w),kr.renderCallByParent(this.props,{x:d-o,y:m-o,width:2*o,height:2*o}))}}])}(j.Component);qm(Km,"displayName","ReferenceDot");qm(Km,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});qm(Km,"renderDot",function(e,t){var r;return j.isValidElement(e)?r=j.cloneElement(e,t):Fe(e)?r=e(t):r=j.createElement(Ad,Kx({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Xx(){return Xx=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},Xx.apply(this,arguments)}function lu(e){"@babel/helpers - typeof";return lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lu(e)}function HP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HP(Object(r),!0).forEach(function(n){Ym(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uwe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,C4(n.key),n)}}function cwe(e,t,r){return t&&uwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fwe(e,t,r){return t=Tp(t),dwe(e,b4()?Reflect.construct(t,r||[],Tp(e).constructor):t.apply(e,r))}function dwe(e,t){if(t&&(lu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hwe(e)}function hwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b4=function(){return!!e})()}function Tp(e){return Tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tp(e)}function pwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jx(e,t)}function Jx(e,t){return Jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jx(e,t)}function Ym(e,t,r){return t=C4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C4(e){var t=mwe(e,"string");return lu(t)=="symbol"?t:t+""}function mwe(e,t){if(lu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vwe=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var d=jw({x:c.scale,y:f.scale}),m={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},g={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return na(a,"discard")&&(!d.isInRange(m)||!d.isInRange(g))?null:h4(m,g)},Xm=function(e){function t(){return lwe(this,t),fwe(this,t,arguments)}return pwe(t,e),cwe(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;$i(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=gr(i),d=gr(a),m=gr(o),g=gr(s),v=this.props.shape;if(!f&&!d&&!m&&!g&&!v)return null;var y=vwe(f,d,m,g,this.props);if(!y&&!v)return null;var x=na(this.props,"hidden")?"url(#".concat(c,")"):void 0;return j.createElement(We,{className:He("recharts-reference-area",l)},t.renderRect(v,jP(jP({clipPath:x},Oe(this.props,!0)),y)),kr.renderCallByParent(this.props,y))}}])}(j.Component);Ym(Xm,"displayName","ReferenceArea");Ym(Xm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Ym(Xm,"renderRect",function(e,t){var r;return j.isValidElement(e)?r=j.cloneElement(e,t):Fe(e)?r=e(t):r=j.createElement(Hw,Xx({},t,{className:"recharts-reference-area-rect"})),r});function P4(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function gwe(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return f_e(n,r)}function ywe(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Sp(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function xwe(e,t){return P4(e,t+1)}function _we(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var g=n==null?void 0:n[l];if(g===void 0)return{v:P4(n,u)};var v=l,y,x=function(){return y===void 0&&(y=r(g,v)),y},w=g.coordinate,_=l===0||Sp(e,w,x,c,s);_||(l=0,c=o,u+=1),_&&(c=w+e*(x()/2+i),l+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function nd(e){"@babel/helpers - typeof";return nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nd(e)}function zP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zP(Object(r),!0).forEach(function(n){wwe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wwe(e,t,r){return t=Ewe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ewe(e){var t=Twe(e,"string");return nd(t)=="symbol"?t:t+""}function Twe(e,t){if(nd(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nd(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Swe(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(d){var m=a[d],g,v=function(){return g===void 0&&(g=r(m,d)),g};if(d===o-1){var y=e*(m.coordinate+e*v()/2-l);a[d]=m=Xr(Xr({},m),{},{tickCoord:y>0?m.coordinate-y*e:m.coordinate})}else a[d]=m=Xr(Xr({},m),{},{tickCoord:m.coordinate});var x=Sp(e,m.tickCoord,v,s,l);x&&(l=m.tickCoord-e*(v()/2+i),a[d]=Xr(Xr({},m),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function Awe(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),d=e*(c.coordinate+e*f/2-u);o[s-1]=c=Xr(Xr({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate});var m=Sp(e,c.tickCoord,function(){return f},l,u);m&&(u=c.tickCoord-e*(f/2+i),o[s-1]=Xr(Xr({},c),{},{isShow:!0}))}for(var g=a?s-1:s,v=function(w){var _=o[w],S,T=function(){return S===void 0&&(S=r(_,w)),S};if(w===0){var E=e*(_.coordinate-e*T()/2-l);o[w]=_=Xr(Xr({},_),{},{tickCoord:E<0?_.coordinate-E*e:_.coordinate})}else o[w]=_=Xr(Xr({},_),{},{tickCoord:_.coordinate});var A=Sp(e,_.tickCoord,T,l,u);A&&(l=_.tickCoord+e*(T()/2+i),o[w]=Xr(Xr({},_),{},{isShow:!0}))},y=0;y<g;y++)v(y);return o}function Jw(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(ge(l)||Ha.isSsr)return xwe(i,typeof l=="number"&&ge(l)?l:0);var d=[],m=s==="top"||s==="bottom"?"width":"height",g=c&&m==="width"?Hc(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(_,S){var T=Fe(u)?u(_.value,S):_.value;return m==="width"?gwe(Hc(T,{fontSize:t,letterSpacing:r}),g,f):Hc(T,{fontSize:t,letterSpacing:r})[m]},y=i.length>=2?hn(i[1].coordinate-i[0].coordinate):1,x=ywe(a,y,m);return l==="equidistantPreserveStart"?_we(y,x,v,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=Awe(y,x,v,i,o,l==="preserveStartEnd"):d=Swe(y,x,v,i,o),d.filter(function(w){return w.isShow}))}var bwe=["viewBox"],Cwe=["viewBox"],Pwe=["ticks"];function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function xl(){return xl=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},xl.apply(this,arguments)}function WP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WP(Object(r),!0).forEach(function(n){Zw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dg(e,t){if(e==null)return{};var r=kwe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kwe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Iwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I4(n.key),n)}}function Nwe(e,t,r){return t&&qP(e.prototype,t),r&&qP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Owe(e,t,r){return t=Ap(t),Rwe(e,k4()?Reflect.construct(t,r||[],Ap(e).constructor):t.apply(e,r))}function Rwe(e,t){if(t&&(uu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mwe(e)}function Mwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k4=function(){return!!e})()}function Ap(e){return Ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ap(e)}function Dwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zx(e,t)}function Zx(e,t){return Zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zx(e,t)}function Zw(e,t,r){return t=I4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I4(e){var t=Fwe(e,"string");return uu(t)=="symbol"?t:t+""}function Fwe(e,t){if(uu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gu=function(e){function t(r){var n;return Iwe(this,t),n=Owe(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Dwe(t,e),Nwe(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=dg(n,bwe),s=this.props,l=s.viewBox,u=dg(s,Cwe);return!Ol(a,l)||!Ol(o,u)||!Ol(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,d=i.tickMargin,m,g,v,y,x,w,_=f?-1:1,S=n.tickSize||c,T=ge(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":m=g=n.coordinate,y=o+ +!f*l,v=y-_*S,w=v-_*d,x=T;break;case"left":v=y=n.coordinate,g=a+ +!f*s,m=g-_*S,x=m-_*d,w=T;break;case"right":v=y=n.coordinate,g=a+ +f*s,m=g+_*S,x=m+_*d,w=T;break;default:m=g=n.coordinate,y=o+ +f*l,v=y+_*S,w=v+_*d,x=T;break}return{line:{x1:m,y1:v,x2:g,y2:y},tick:{x,y:w}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=fr(fr(fr({},Oe(this.props,!1)),Oe(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);f=fr(fr({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var m=+(l==="left"&&!u||l==="right"&&u);f=fr(fr({},f),{},{x1:i+m*o,y1:a,x2:i+m*o,y2:a+s})}return j.createElement("line",xl({},f,{className:He("recharts-cartesian-axis-line",Gn(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,d=s.unit,m=Jw(fr(fr({},this.props),{},{ticks:n}),i,a),g=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),y=Oe(this.props,!1),x=Oe(c,!1),w=fr(fr({},y),{},{fill:"none"},Oe(l,!1)),_=m.map(function(S,T){var E=o.getTickLineCoord(S),A=E.line,P=E.tick,C=fr(fr(fr(fr({textAnchor:g,verticalAnchor:v},y),{},{stroke:"none",fill:u},x),P),{},{index:T,payload:S,visibleTicksCount:m.length,tickFormatter:f});return j.createElement(We,xl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},ko(o.props,S,T)),l&&j.createElement("line",xl({},w,A,{className:He("recharts-cartesian-axis-tick-line",Gn(l,"className"))})),c&&t.renderTickItem(c,C,"".concat(Fe(f)?f(S.value,T):S.value).concat(d||"")))});return j.createElement("g",{className:"recharts-cartesian-axis-ticks"},_)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,d=f.ticks,m=dg(f,Pwe),g=d;return Fe(l)&&(g=d&&d.length>0?l(this.props):l(m)),o<=0||s<=0||!g||!g.length?null:j.createElement(We,{className:He("recharts-cartesian-axis",u),ref:function(y){n.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),kr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=He(i.className,"recharts-cartesian-axis-tick-value");return j.isValidElement(n)?o=j.cloneElement(n,fr(fr({},i),{},{className:s})):Fe(n)?o=n(fr(fr({},i),{},{className:s})):o=j.createElement(Cs,xl({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(Q.Component);Zw(Gu,"displayName","CartesianAxis");Zw(Gu,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Lwe=["x1","y1","x2","y2","key"],$we=["offset"];function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}function KP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KP(Object(r),!0).forEach(function(n){Bwe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bwe(e,t,r){return t=Uwe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uwe(e){var t=Gwe(e,"string");return Is(t)=="symbol"?t:t+""}function Gwe(e,t){if(Is(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Is(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function us(){return us=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},us.apply(this,arguments)}function YP(e,t){if(e==null)return{};var r=Vwe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Vwe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Hwe=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return j.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function N4(e,t){var r;if(j.isValidElement(e))r=j.cloneElement(e,t);else if(Fe(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=YP(t,Lwe),u=Oe(l,!1);u.offset;var c=YP(u,$we);r=j.createElement("line",us({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function jwe(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Qr(Qr({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return N4(i,u)});return j.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function zwe(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Qr(Qr({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return N4(i,u)});return j.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Wwe(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,m){return d-m});i!==c[0]&&c.unshift(0);var f=c.map(function(d,m){var g=!c[m+1],v=g?i+o-d:c[m+1]-d;if(v<=0)return null;var y=m%t.length;return j.createElement("rect",{key:"react-".concat(m),y:d,x:n,height:v,width:a,stroke:"none",fill:t[y],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return j.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function qwe(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,m){return d-m});a!==c[0]&&c.unshift(0);var f=c.map(function(d,m){var g=!c[m+1],v=g?a+s-d:c[m+1]-d;if(v<=0)return null;var y=m%n.length;return j.createElement("rect",{key:"react-".concat(m),x:d,y:o,width:v,height:l,stroke:"none",fill:n[y],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return j.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Kwe=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return kF(Jw(Qr(Qr(Qr({},Gu.defaultProps),n),{},{ticks:Ea(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Ywe=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return kF(Jw(Qr(Qr(Qr({},Gu.defaultProps),n),{},{ticks:Ea(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Zs={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function O4(e){var t,r,n,i,a,o,s=qw(),l=Kw(),u=F_e(),c=Qr(Qr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Zs.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Zs.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Zs.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Zs.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Zs.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Zs.verticalFill,x:ge(e.x)?e.x:u.left,y:ge(e.y)?e.y:u.top,width:ge(e.width)?e.width:u.width,height:ge(e.height)?e.height:u.height}),f=c.x,d=c.y,m=c.width,g=c.height,v=c.syncWithTicks,y=c.horizontalValues,x=c.verticalValues,w=R_e(),_=M_e();if(!ge(m)||m<=0||!ge(g)||g<=0||!ge(f)||f!==+f||!ge(d)||d!==+d)return null;var S=c.verticalCoordinatesGenerator||Kwe,T=c.horizontalCoordinatesGenerator||Ywe,E=c.horizontalPoints,A=c.verticalPoints;if((!E||!E.length)&&Fe(T)){var P=y&&y.length,C=T({yAxis:_?Qr(Qr({},_),{},{ticks:P?y:_.ticks}):void 0,width:s,height:l,offset:u},P?!0:v);$i(Array.isArray(C),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Is(C),"]")),Array.isArray(C)&&(E=C)}if((!A||!A.length)&&Fe(S)){var N=x&&x.length,M=S({xAxis:w?Qr(Qr({},w),{},{ticks:N?x:w.ticks}):void 0,width:s,height:l,offset:u},N?!0:v);$i(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Is(M),"]")),Array.isArray(M)&&(A=M)}return j.createElement("g",{className:"recharts-cartesian-grid"},j.createElement(Hwe,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),j.createElement(jwe,us({},c,{offset:u,horizontalPoints:E,xAxis:w,yAxis:_})),j.createElement(zwe,us({},c,{offset:u,verticalPoints:A,xAxis:w,yAxis:_})),j.createElement(Wwe,us({},c,{horizontalPoints:E})),j.createElement(qwe,us({},c,{verticalPoints:A})))}O4.displayName="CartesianGrid";var Xwe=["type","layout","connectNulls","ref"],Jwe=["key"];function cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}function XP(e,t){if(e==null)return{};var r=Zwe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Zwe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yc(){return Yc=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},Yc.apply(this,arguments)}function JP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JP(Object(r),!0).forEach(function(n){Ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qs(e){return rEe(e)||tEe(e)||eEe(e)||Qwe()}function Qwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 454In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eEe(e,t){if(e){if(typeof e=="string")return Qx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qx(e,t)}}function tEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rEe(e){if(Array.isArray(e))return Qx(e)}function Qx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZP(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,M4(n.key),n)}}function iEe(e,t,r){return t&&ZP(e.prototype,t),r&&ZP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aEe(e,t,r){return t=bp(t),oEe(e,R4()?Reflect.construct(t,r||[],bp(e).constructor):t.apply(e,r))}function oEe(e,t){if(t&&(cu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sEe(e)}function sEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R4=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bp(e)}function lEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&e1(e,t)}function e1(e,t){return e1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},e1(e,t)}function Ci(e,t,r){return t=M4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M4(e){var t=uEe(e,"string");return cu(t)=="symbol"?t:t+""}function uEe(e,t){if(cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bd=function(e){function t(){var r;nEe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=aEe(this,t,[].concat(i)),Ci(r,"state",{isAnimationFinished:!0,totalLength:0}),Ci(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Ci(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(x,w){return x+w});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,d=s-o,m=[],g=0,v=0;g<l.length;v+=l[g],++g)if(v+l[g]>f){m=[].concat(Qs(l.slice(0,g)),[f-v]);break}var y=m.length%2===0?[0,d]:[d];return[].concat(Qs(t.repeat(l,c)),Qs(m),y).map(function(x){return"".concat(x,"px")}).join(", ")}),Ci(r,"id",$o("recharts-line-")),Ci(r,"pathRef",function(o){r.mainCurve=o}),Ci(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ci(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return lEe(t,e),iEe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=yn(c,Uu);if(!f)return null;var d=function(v,y){return{x:v.x,y:v.y,value:v.value,errorVal:kt(v.payload,y)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return j.createElement(We,m,f.map(function(g){return j.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=Oe(this.props,!1),d=Oe(l,!0),m=u.map(function(v,y){var x=On(On(On({key:"dot-".concat(y),r:3},f),d),{},{index:y,cx:v.x,cy:v.y,value:v.value,dataKey:c,payload:v.payload,points:u});return t.renderDotItem(l,x)}),g={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return j.createElement(We,Yc({className:"recharts-line-dots",key:"dots"},g),m)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=XP(s,Xwe),d=On(On(On({},Oe(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return j.createElement(So,Yc({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,d=o.animationEasing,m=o.animationId,g=o.animateNewValues,v=o.width,y=o.height,x=this.state,w=x.prevPoints,_=x.totalLength;return j.createElement(pi,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var T=S.t;if(w){var E=w.length/s.length,A=s.map(function(k,H){var K=Math.floor(H*E);if(w[K]){var U=w[K],Y=$t(U.x,k.x),W=$t(U.y,k.y);return On(On({},k),{},{x:Y(T),y:W(T)})}if(g){var J=$t(v*2,k.x),F=$t(y/2,k.y);return On(On({},k),{},{x:J(T),y:F(T)})}return On(On({},k),{},{x:k.x,y:k.y})});return a.renderCurveStatically(A,n,i)}var P=$t(0,_),C=P(T),N;if(l){var M="".concat(l).split(/[,\s]+/gim).map(function(k){return parseFloat(k)});N=a.getStrokeDasharray(C,_,M)}else N=a.generateSimpleStrokeDasharray(_,C);return a.renderCurveStatically(s,n,i,{strokeDasharray:N})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!Io(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,d=i.left,m=i.width,g=i.height,v=i.isAnimationActive,y=i.id;if(a||!s||!s.length)return null;var x=this.state.isAnimationFinished,w=s.length===1,_=He("recharts-line",l),S=u&&u.allowDataOverflow,T=c&&c.allowDataOverflow,E=S||T,A=De(y)?this.id:y,P=(n=Oe(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},C=P.r,N=C===void 0?3:C,M=P.strokeWidth,k=M===void 0?2:M,H=EM(o)?o:{},K=H.clipDot,U=K===void 0?!0:K,Y=N*2+k;return j.createElement(We,{className:_},S||T?j.createElement("defs",null,j.createElement("clipPath",{id:"clipPath-".concat(A)},j.createElement("rect",{x:S?d:d-m/2,y:T?f:f-g/2,width:S?m:m*2,height:T?g:g*2})),!U&&j.createElement("clipPath",{id:"clipPath-dots-".concat(A)},j.createElement("rect",{x:d-Y/2,y:f-Y/2,width:m+Y,height:g+Y}))):null,!w&&this.renderCurve(E,A),this.renderErrorBar(E,A),(w||o)&&this.renderDots(E,U,A),(!v||x)&&tn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Qs(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Qs(o),Qs(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(j.isValidElement(n))a=j.cloneElement(n,i);else if(Fe(n))a=n(i);else{var o=i.key,s=XP(i,Jwe),l=He("recharts-line-dot",typeof n!="boolean"?n.className:"");a=j.createElement(Ad,Yc({key:o},s,{className:l}))}return a}}])}(Q.PureComponent);Ci(bd,"displayName","Line");Ci(bd,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ha.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ci(bd,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(d,m){var g=kt(d,o);return c==="horizontal"?{x:Ql({axis:r,ticks:i,bandSize:s,entry:d,index:m}),y:De(g)?null:n.scale(g),value:g,payload:d}:{x:De(g)?null:r.scale(g),y:Ql({axis:n,ticks:a,bandSize:s,entry:d,index:m}),value:g,payload:d}});return On({points:f,layout:c},u)});var cEe=["layout","type","stroke","connectNulls","isRange","ref"],fEe=["key"],D4;function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function F4(e,t){if(e==null)return{};var r=dEe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dEe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cs(){return cs=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},cs.apply(this,arguments)}function QP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QP(Object(r),!0).forEach(function(n){Ji(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ek(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$4(n.key),n)}}function pEe(e,t,r){return t&&ek(e.prototype,t),r&&ek(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mEe(e,t,r){return t=Cp(t),vEe(e,L4()?Reflect.construct(t,r||[],Cp(e).constructor):t.apply(e,r))}function vEe(e,t){if(t&&(fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gEe(e)}function gEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L4=function(){return!!e})()}function Cp(e){return Cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cp(e)}function yEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&t1(e,t)}function t1(e,t){return t1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},t1(e,t)}function Ji(e,t,r){return t=$4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $4(e){var t=xEe(e,"string");return fu(t)=="symbol"?t:t+""}function xEe(e,t){if(fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Vo=function(e){function t(){var r;hEe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=mEe(this,t,[].concat(i)),Ji(r,"state",{isAnimationFinished:!0}),Ji(r,"id",$o("recharts-area-")),Ji(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Fe(o)&&o()}),Ji(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Fe(o)&&o()}),r}return yEe(t,e),pEe(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,d=Oe(this.props,!1),m=Oe(u,!0),g=c.map(function(y,x){var w=Xa(Xa(Xa({key:"dot-".concat(x),r:3},d),m),{},{index:x,cx:y.x,cy:y.y,dataKey:f,value:y.value,payload:y.payload,points:c});return t.renderDotItem(u,w)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return j.createElement(We,cs({className:"recharts-area-dots"},v),g)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,c=n*Math.abs(l-u),f=co(o.map(function(d){return d.y||0}));return ge(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(co(a.map(function(d){return d.y||0})),f)),ge(f)?j.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,c=n*Math.abs(l-u),f=co(o.map(function(d){return d.x||0}));return ge(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(co(a.map(function(d){return d.x||0})),f)),ge(f)?j.createElement("rect",{x:0,y:l<u?l:l-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,c=s.stroke,f=s.connectNulls,d=s.isRange;s.ref;var m=F4(s,cEe);return j.createElement(We,{clipPath:a?"url(#clipPath-".concat(o,")"):null},j.createElement(So,cs({},Oe(m,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&j.createElement(So,cs({},Oe(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&d&&j.createElement(So,cs({},Oe(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,d=o.animationEasing,m=o.animationId,g=this.state,v=g.prevPoints,y=g.prevBaseLine;return j.createElement(pi,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"area-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var w=x.t;if(v){var _=v.length/s.length,S=s.map(function(P,C){var N=Math.floor(C*_);if(v[N]){var M=v[N],k=$t(M.x,P.x),H=$t(M.y,P.y);return Xa(Xa({},P),{},{x:k(w),y:H(w)})}return P}),T;if(ge(l)&&typeof l=="number"){var E=$t(y,l);T=E(w)}else if(De(l)||Ru(l)){var A=$t(y,0);T=A(w)}else T=l.map(function(P,C){var N=Math.floor(C*_);if(y[N]){var M=y[N],k=$t(M.x,P.x),H=$t(M.y,P.y);return Xa(Xa({},P),{},{x:k(w),y:H(w)})}return P});return a.renderAreaStatically(S,T,n,i)}return j.createElement(We,null,j.createElement("defs",null,j.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(w))),j.createElement(We,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,c=u.prevPoints,f=u.prevBaseLine,d=u.totalLength;return l&&o&&o.length&&(!c&&d>0||!Io(c,o)||!Io(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,c=i.left,f=i.xAxis,d=i.yAxis,m=i.width,g=i.height,v=i.isAnimationActive,y=i.id;if(a||!s||!s.length)return null;var x=this.state.isAnimationFinished,w=s.length===1,_=He("recharts-area",l),S=f&&f.allowDataOverflow,T=d&&d.allowDataOverflow,E=S||T,A=De(y)?this.id:y,P=(n=Oe(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},C=P.r,N=C===void 0?3:C,M=P.strokeWidth,k=M===void 0?2:M,H=EM(o)?o:{},K=H.clipDot,U=K===void 0?!0:K,Y=N*2+k;return j.createElement(We,{className:_},S||T?j.createElement("defs",null,j.createElement("clipPath",{id:"clipPath-".concat(A)},j.createElement("rect",{x:S?c:c-m/2,y:T?u:u-g/2,width:S?m:m*2,height:T?g:g*2})),!U&&j.createElement("clipPath",{id:"clipPath-dots-".concat(A)},j.createElement("rect",{x:c-Y/2,y:u-Y/2,width:m+Y,height:g+Y}))):null,w?null:this.renderArea(E,A),(o||w)&&this.renderDots(E,U,A),(!v||x)&&tn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(Q.PureComponent);D4=Vo;Ji(Vo,"displayName","Area");Ji(Vo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ha.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ji(Vo,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(ge(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Ji(Vo,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,m=t.layout,g=u&&u.length,v=D4.getBaseValue(t,r,n,i),y=m==="horizontal",x=!1,w=f.map(function(S,T){var E;g?E=u[c+T]:(E=kt(S,l),Array.isArray(E)?x=!0:E=[v,E]);var A=E[1]==null||g&&kt(S,l)==null;return y?{x:Ql({axis:n,ticks:a,bandSize:s,entry:S,index:T}),y:A?null:i.scale(E[1]),value:E,payload:S}:{x:A?null:n.scale(E[1]),y:Ql({axis:i,ticks:o,bandSize:s,entry:S,index:T}),value:E,payload:S}}),_;return g||x?_=w.map(function(S){var T=Array.isArray(S.value)?S.value[0]:null;return y?{x:S.x,y:T!=null&&S.y!=null?i.scale(T):null}:{x:T!=null?n.scale(T):null,y:S.y}}):_=y?i.scale(v):n.scale(v),Xa({points:w,baseLine:_,layout:m,isRange:x},d)});Ji(Vo,"renderDotItem",function(e,t){var r;if(j.isValidElement(e))r=j.cloneElement(e,t);else if(Fe(e))r=e(t);else{var n=He("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=F4(t,fEe);r=j.createElement(Ad,cs({},a,{key:i,className:n}))}return r});function du(e){"@babel/helpers - typeof";return du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},du(e)}function _Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wEe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,G4(n.key),n)}}function EEe(e,t,r){return t&&wEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TEe(e,t,r){return t=Pp(t),SEe(e,B4()?Reflect.construct(t,r||[],Pp(e).constructor):t.apply(e,r))}function SEe(e,t){if(t&&(du(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AEe(e)}function AEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B4=function(){return!!e})()}function Pp(e){return Pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pp(e)}function bEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r1(e,t)}function r1(e,t){return r1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},r1(e,t)}function U4(e,t,r){return t=G4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G4(e){var t=CEe(e,"string");return du(t)=="symbol"?t:t+""}function CEe(e,t){if(du(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(du(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jm=function(e){function t(){return _Ee(this,t),TEe(this,t,arguments)}return bEe(t,e),EEe(t,[{key:"render",value:function(){return null}}])}(Q.Component);U4(Jm,"displayName","ZAxis");U4(Jm,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var PEe=["option","isActive"];function Xc(){return Xc=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},Xc.apply(this,arguments)}function kEe(e,t){if(e==null)return{};var r=IEe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function IEe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function NEe(e){var t=e.option,r=e.isActive,n=kEe(e,PEe);return typeof t=="string"?Q.createElement(pp,Xc({option:Q.createElement(Am,Xc({type:t},n)),isActive:r,shapeType:"symbols"},n)):Q.createElement(pp,Xc({option:t,isActive:r,shapeType:"symbols"},n))}function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(e)}function Jc(){return Jc=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},Jc.apply(this,arguments)}function tk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ei(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tk(Object(r),!0).forEach(function(n){ho(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rk(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H4(n.key),n)}}function REe(e,t,r){return t&&rk(e.prototype,t),r&&rk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function MEe(e,t,r){return t=kp(t),DEe(e,V4()?Reflect.construct(t,r||[],kp(e).constructor):t.apply(e,r))}function DEe(e,t){if(t&&(hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FEe(e)}function FEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V4=function(){return!!e})()}function kp(e){return kp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},kp(e)}function LEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n1(e,t)}function n1(e,t){return n1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},n1(e,t)}function ho(e,t,r){return t=H4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H4(e){var t=$Ee(e,"string");return hu(t)=="symbol"?t:t+""}function $Ee(e,t){if(hu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cd=function(e){function t(){var r;OEe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=MEe(this,t,[].concat(i)),ho(r,"state",{isAnimationFinished:!1}),ho(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),ho(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),ho(r,"id",$o("recharts-scatter-")),r}return LEe(t,e),REe(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,u=Oe(this.props,!1);return n.map(function(c,f){var d=l===f,m=d?s:o,g=ei(ei({},u),c);return j.createElement(We,Jc({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},ko(i.props,c,f),{role:"img"}),j.createElement(NEe,Jc({option:m,isActive:d,key:"symbol-".concat(f)},g)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return j.createElement(pi,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var m=d.t,g=a.map(function(v,y){var x=f&&f[y];if(x){var w=$t(x.cx,v.cx),_=$t(x.cy,v.cy),S=$t(x.size,v.size);return ei(ei({},v),{},{cx:w(m),cy:_(m),size:S(m)})}var T=$t(0,v.size);return ei(ei({},v),{},{size:T(m)})});return j.createElement(We,null,n.renderSymbolsStatically(g))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!Io(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,l=i.children,u=yn(l,Uu);return u?u.map(function(c,f){var d=c.props,m=d.direction,g=d.dataKey;return j.cloneElement(c,{key:"".concat(m,"-").concat(g,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:m==="x"?"vertical":"horizontal",dataPointFormatter:function(y,x){return{x:y.cx,y:y.cy,value:m==="x"?+y.node.x:+y.node.y,errorVal:kt(y,x)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,l=Oe(this.props,!1),u=Oe(a,!1),c,f;if(o==="joint")c=i.map(function(_){return{x:_.cx,y:_.cy}});else if(o==="fitting"){var d=xee(i),m=d.xmin,g=d.xmax,v=d.a,y=d.b,x=function(S){return v*S+y};c=[{x:m,y:x(m)},{x:g,y:x(g)}]}var w=ei(ei(ei({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return j.isValidElement(a)?f=j.cloneElement(a,w):Fe(a)?f=a(w):f=j.createElement(So,Jc({},w,{type:s})),j.createElement(We,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,l=n.xAxis,u=n.yAxis,c=n.left,f=n.top,d=n.width,m=n.height,g=n.id,v=n.isAnimationActive;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,x=He("recharts-scatter",s),w=l&&l.allowDataOverflow,_=u&&u.allowDataOverflow,S=w||_,T=De(g)?this.id:g;return j.createElement(We,{className:x,clipPath:S?"url(#clipPath-".concat(T,")"):null},w||_?j.createElement("defs",null,j.createElement("clipPath",{id:"clipPath-".concat(T)},j.createElement("rect",{x:w?c:c-d/2,y:_?f:f-m/2,width:w?d:d*2,height:_?m:m*2}))):null,o&&this.renderLine(),this.renderErrorBar(),j.createElement(We,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!v||y)&&tn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])}(Q.PureComponent);ho(Cd,"displayName","Scatter");ho(Cd,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Ha.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});ho(Cd,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,c=yn(i.props.children,_d),f=De(t.dataKey)?i.props.dataKey:t.dataKey,d=De(r.dataKey)?i.props.dataKey:r.dataKey,m=n&&n.dataKey,g=n?n.range:Jm.defaultProps.range,v=g&&g[0],y=t.scale.bandwidth?t.scale.bandwidth():0,x=r.scale.bandwidth?r.scale.bandwidth():0,w=a.map(function(_,S){var T=kt(_,f),E=kt(_,d),A=!De(m)&&kt(_,m)||"-",P=[{name:De(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:T,payload:_,dataKey:f,type:u},{name:De(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:E,payload:_,dataKey:d,type:u}];A!=="-"&&P.push({name:n.name||n.dataKey,unit:n.unit||"",value:A,payload:_,dataKey:m,type:u});var C=Ql({axis:t,ticks:o,bandSize:y,entry:_,index:S,dataKey:f}),N=Ql({axis:r,ticks:s,bandSize:x,entry:_,index:S,dataKey:d}),M=A!=="-"?n.scale(A):v,k=Math.sqrt(Math.max(M,0)/Math.PI);return ei(ei({},_),{},{cx:C,cy:N,x:C-k,y:N-k,xAxis:t,yAxis:r,zAxis:n,width:2*k,height:2*k,size:M,node:{x:T,y:E,z:A},tooltipPayload:P,tooltipPosition:{x:C,y:N},payload:_},c&&c[S]&&c[S].props)});return ei({points:w},l)});function pu(e){"@babel/helpers - typeof";return pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pu(e)}function BEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UEe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,W4(n.key),n)}}function GEe(e,t,r){return t&&UEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VEe(e,t,r){return t=Ip(t),HEe(e,j4()?Reflect.construct(t,r||[],Ip(e).constructor):t.apply(e,r))}function HEe(e,t){if(t&&(pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jEe(e)}function jEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j4=function(){return!!e})()}function Ip(e){return Ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ip(e)}function zEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i1(e,t)}function i1(e,t){return i1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},i1(e,t)}function z4(e,t,r){return t=W4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W4(e){var t=WEe(e,"string");return pu(t)=="symbol"?t:t+""}function WEe(e,t){if(pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function a1(){return a1=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},a1.apply(this,arguments)}function qEe(e){var t=e.xAxisId,r=qw(),n=Kw(),i=_4(t);return i==null?null:Q.createElement(Gu,a1({},i,{className:He("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Ea(o,!0)}}))}var Zi=function(e){function t(){return BEe(this,t),VEe(this,t,arguments)}return zEe(t,e),GEe(t,[{key:"render",value:function(){return Q.createElement(qEe,this.props)}}])}(Q.Component);z4(Zi,"displayName","XAxis");z4(Zi,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function mu(e){"@babel/helpers - typeof";return mu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mu(e)}function KEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YEe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Y4(n.key),n)}}function XEe(e,t,r){return t&&YEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JEe(e,t,r){return t=Np(t),ZEe(e,q4()?Reflect.construct(t,r||[],Np(e).constructor):t.apply(e,r))}function ZEe(e,t){if(t&&(mu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QEe(e)}function QEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q4=function(){return!!e})()}function Np(e){return Np=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Np(e)}function eTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&o1(e,t)}function o1(e,t){return o1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},o1(e,t)}function K4(e,t,r){return t=Y4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y4(e){var t=tTe(e,"string");return mu(t)=="symbol"?t:t+""}function tTe(e,t){if(mu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function s1(){return s1=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},s1.apply(this,arguments)}var rTe=function(t){var r=t.yAxisId,n=qw(),i=Kw(),a=w4(r);return a==null?null:Q.createElement(Gu,s1({},a,{className:He("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Ea(s,!0)}}))},Qi=function(e){function t(){return KEe(this,t),JEe(this,t,arguments)}return eTe(t,e),XEe(t,[{key:"render",value:function(){return Q.createElement(rTe,this.props)}}])}(Q.Component);K4(Qi,"displayName","YAxis");K4(Qi,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function nk(e){return oTe(e)||aTe(e)||iTe(e)||nTe()}function nTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 455In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iTe(e,t){if(e){if(typeof e=="string")return l1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l1(e,t)}}function aTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oTe(e){if(Array.isArray(e))return l1(e)}function l1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var u1=function(t,r,n,i,a){var o=yn(t,Xw),s=yn(t,Km),l=[].concat(nk(o),nk(s)),u=yn(t,Xm),c="".concat(i,"Id"),f=i[0],d=r;if(l.length&&(d=l.reduce(function(v,y){if(y.props[c]===n&&na(y.props,"extendDomain")&&ge(y.props[f])){var x=y.props[f];return[Math.min(v[0],x),Math.max(v[1],x)]}return v},d)),u.length){var m="".concat(f,"1"),g="".concat(f,"2");d=u.reduce(function(v,y){if(y.props[c]===n&&na(y.props,"extendDomain")&&ge(y.props[m])&&ge(y.props[g])){var x=y.props[m],w=y.props[g];return[Math.min(v[0],x,w),Math.max(v[1],x,w)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,y){return ge(y)?[Math.min(v[0],y),Math.max(v[1],y)]:v},d)),d},X4={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var m=new i(c,f||l,d),g=r?r+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],m]:l._events[g].push(m):(l._events[g]=m,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,m=f.length,g=new Array(m);d<m;d++)g[d]=f[d].fn;return g},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,d,m,g){var v=r?r+u:u;if(!this._events[v])return!1;var y=this._events[v],x=arguments.length,w,_;if(y.fn){switch(y.once&&this.removeListener(u,y.fn,void 0,!0),x){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,c),!0;case 3:return y.fn.call(y.context,c,f),!0;case 4:return y.fn.call(y.context,c,f,d),!0;case 5:return y.fn.call(y.context,c,f,d,m),!0;case 6:return y.fn.call(y.context,c,f,d,m,g),!0}for(_=1,w=new Array(x-1);_<x;_++)w[_-1]=arguments[_];y.fn.apply(y.context,w)}else{var S=y.length,T;for(_=0;_<S;_++)switch(y[_].once&&this.removeListener(u,y[_].fn,void 0,!0),x){case 1:y[_].fn.call(y[_].context);break;case 2:y[_].fn.call(y[_].context,c);break;case 3:y[_].fn.call(y[_].context,c,f);break;case 4:y[_].fn.call(y[_].context,c,f,d);break;default:if(!w)for(T=1,w=new Array(x-1);T<x;T++)w[T-1]=arguments[T];y[_].fn.apply(y[_].context,w)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,d){var m=r?r+u:u;if(!this._events[m])return this;if(!c)return o(this,m),this;var g=this._events[m];if(g.fn)g.fn===c&&(!d||g.once)&&(!f||g.context===f)&&o(this,m);else{for(var v=0,y=[],x=g.length;v<x;v++)(g[v].fn!==c||d&&!g[v].once||f&&g[v].context!==f)&&y.push(g[v]);y.length?this._events[m]=y.length===1?y[0]:y:o(this,m)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(X4);var sTe=X4.exports;const lTe=ft(sTe);var hg=new lTe,pg="recharts.syncMouseEvents";function id(e){"@babel/helpers - typeof";return id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},id(e)}function uTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cTe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,J4(n.key),n)}}function fTe(e,t,r){return t&&cTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mg(e,t,r){return t=J4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J4(e){var t=dTe(e,"string");return id(t)=="symbol"?t:t+""}function dTe(e,t){if(id(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(id(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hTe=function(){function e(){uTe(this,e),mg(this,"activeIndex",0),mg(this,"coordinateList",[]),mg(this,"layout","horizontal")}return fTe(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,d=r.mouseHandlerCallback,m=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=m??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,d=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])}();function pTe(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&ge(n)&&ge(i))return!0}return!1}function mTe(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Z4(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=wt(t,r,n,i),s=wt(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function vTe(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,d=wt(s,l,u,f),m=wt(s,l,c,f);n=d.x,i=d.y,a=m.x,o=m.y}else return Z4(t);return[{x:n,y:i},{x:a,y:o}]}function ad(e){"@babel/helpers - typeof";return ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ad(e)}function ik(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function E0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ik(Object(r),!0).forEach(function(n){gTe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ik(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gTe(e,t,r){return t=yTe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yTe(e){var t=xTe(e,"string");return ad(t)=="symbol"?t:t+""}function xTe(e,t){if(ad(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ad(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _Te(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,m=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!m||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var g,v=So;if(d==="ScatterChart")g=o,v=uye;else if(d==="BarChart")g=mTe(f,o,l,c),v=Hw;else if(f==="radial"){var y=Z4(o),x=y.cx,w=y.cy,_=y.radius,S=y.startAngle,T=y.endAngle;g={cx:x,cy:w,startAngle:S,endAngle:T,innerRadius:_,outerRadius:_},v=UF}else g={points:vTe(f,o,l)},v=So;var E=E0(E0(E0(E0({stroke:"#ccc",pointerEvents:"none"},l),g),Oe(m,!1)),{},{payload:s,payloadIndex:u,className:He("recharts-tooltip-cursor",m.className)});return Q.isValidElement(m)?Q.cloneElement(m,E):Q.createElement(v,E)}var wTe=["item"],ETe=["children","className","width","height","style","compact","title","desc"];function vu(e){"@babel/helpers - typeof";return vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vu(e)}function _l(){return _l=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},_l.apply(this,arguments)}function ak(e,t){return ATe(e)||STe(e,t)||e3(e,t)||TTe()}function TTe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 456In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function STe(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function ATe(e){if(Array.isArray(e))return e}function ok(e,t){if(e==null)return{};var r=bTe(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function bTe(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function CTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PTe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t3(n.key),n)}}function kTe(e,t,r){return t&&PTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ITe(e,t,r){return t=Op(t),NTe(e,Q4()?Reflect.construct(t,r||[],Op(e).constructor):t.apply(e,r))}function NTe(e,t){if(t&&(vu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OTe(e)}function OTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q4=function(){return!!e})()}function Op(e){return Op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Op(e)}function RTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c1(e,t)}function c1(e,t){return c1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},c1(e,t)}function gu(e){return FTe(e)||DTe(e)||e3(e)||MTe()}function MTe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 457In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e3(e,t){if(e){if(typeof e=="string")return f1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f1(e,t)}}function DTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FTe(e){if(Array.isArray(e))return f1(e)}function f1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sk(Object(r),!0).forEach(function(n){Le(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Le(e,t,r){return t=t3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t3(e){var t=LTe(e,"string");return vu(t)=="symbol"?t:t+""}function LTe(e,t){if(vu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $Te={xAxis:["bottom","top"],yAxis:["left","right"]},BTe={width:"100%",height:"100%"},r3={x:0,y:0};function T0(e){return e}var UTe=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},GTe=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return ce(ce(ce({},i),wt(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return ce(ce(ce({},i),wt(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return r3},Zm=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(gu(s),gu(u)):s},[]);return o.length>0?o:t&&t.length&&ge(i)&&ge(a)?t.slice(i,a+1):[]};function n3(e){return e==="number"?[0,"auto"]:void 0}var d1=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Zm(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var m=f===void 0?s:f;d=Ch(m,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(gu(l),[MF(u,d)]):l},[])},lk=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=UTe(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=kpe(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,d=d1(t,r,c,f),m=GTe(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:m}}return null},VTe=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,m=PF(c,a);return n.reduce(function(g,v){var y,x=v.type.defaultProps!==void 0?ce(ce({},v.type.defaultProps),v.props):v.props,w=x.type,_=x.dataKey,S=x.allowDataOverflow,T=x.allowDuplicatedCategory,E=x.scale,A=x.ticks,P=x.includeHidden,C=x[o];if(g[C])return g;var N=Zm(t.data,{graphicalItems:i.filter(function(R){var X,q=o in R.props?R.props[o]:(X=R.type.defaultProps)===null||X===void 0?void 0:X[o];return q===C}),dataStartIndex:l,dataEndIndex:u}),M=N.length,k,H,K;pTe(x.domain,S,w)&&(k=Tx(x.domain,null,S),m&&(w==="number"||E!=="auto")&&(K=zc(N,_,"category")));var U=n3(w);if(!k||k.length===0){var Y,W=(Y=x.domain)!==null&&Y!==void 0?Y:U;if(_){if(k=zc(N,_,w),w==="category"&&m){var J=yee(k);T&&J?(H=k,k=vp(0,M)):T||(k=bC(W,k,v).reduce(function(R,X){return R.indexOf(X)>=0?R:[].concat(gu(R),[X])},[]))}else if(w==="category")T?k=k.filter(function(R){return R!==""&&!De(R)}):k=bC(W,k,v).reduce(function(R,X){return R.indexOf(X)>=0||X===""||De(X)?R:[].concat(gu(R),[X])},[]);else if(w==="number"){var F=Mpe(N,i.filter(function(R){var X,q,z=o in R.props?R.props[o]:(X=R.type.defaultProps)===null||X===void 0?void 0:X[o],se="hide"in R.props?R.props.hide:(q=R.type.defaultProps)===null||q===void 0?void 0:q.hide;return z===C&&(P||!se)}),_,a,c);F&&(k=F)}m&&(w==="number"||E!=="auto")&&(K=zc(N,_,"category"))}else m?k=vp(0,M):s&&s[C]&&s[C].hasStack&&w==="number"?k=d==="expand"?[0,1]:RF(s[C].stackGroups,l,u):k=CF(N,i.filter(function(R){var X=o in R.props?R.props[o]:R.type.defaultProps[o],q="hide"in R.props?R.props.hide:R.type.defaultProps.hide;return X===C&&(P||!q)}),w,c,!0);if(w==="number")k=u1(f,k,C,a,A),W&&(k=Tx(W,k,S));else if(w==="category"&&W){var ee=W,le=k.every(function(R){return ee.indexOf(R)>=0});le&&(k=ee)}}return ce(ce({},g),{},Le({},C,ce(ce({},x),{},{axisType:a,domain:k,categoricalDomain:K,duplicateDomain:H,originalDomain:(y=x.domain)!==null&&y!==void 0?y:U,isCategorical:m,layout:c})))},{})},HTe=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=Zm(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),m=d.length,g=PF(c,a),v=-1;return n.reduce(function(y,x){var w=x.type.defaultProps!==void 0?ce(ce({},x.type.defaultProps),x.props):x.props,_=w[o],S=n3("number");if(!y[_]){v++;var T;return g?T=vp(0,m):s&&s[_]&&s[_].hasStack?(T=RF(s[_].stackGroups,l,u),T=u1(f,T,_,a)):(T=Tx(S,CF(d,n.filter(function(E){var A,P,C=o in E.props?E.props[o]:(A=E.type.defaultProps)===null||A===void 0?void 0:A[o],N="hide"in E.props?E.props.hide:(P=E.type.defaultProps)===null||P===void 0?void 0:P.hide;return C===_&&!N}),"number",c),i.defaultProps.allowDataOverflow),T=u1(f,T,_,a)),ce(ce({},y),{},Le({},_,ce(ce({axisType:a},i.defaultProps),{},{hide:!0,orientation:Gn($Te,"".concat(a,".").concat(v%2),null),domain:T,originalDomain:S,isCategorical:g,layout:c})))}return y},{})},jTe=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=yn(c,a),m={};return d&&d.length?m=VTe(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(m=HTe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),m},zTe=function(t){var r=io(t),n=Ea(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:vw(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:rp(r,n)}},uk=function(t){var r=t.children,n=t.defaultShowTooltip,i=Dn(r,No),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},WTe=function(t){return!t||!t.length?!1:t.some(function(r){var n=ba(r&&r.type);return n&&n.indexOf("Bar")>=0})},ck=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},qTe=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,d=n.margin||{},m=Dn(f,No),g=Dn(f,ms),v=Object.keys(l).reduce(function(T,E){var A=l[E],P=A.orientation;return!A.mirror&&!A.hide?ce(ce({},T),{},Le({},P,T[P]+A.width)):T},{left:d.left||0,right:d.right||0}),y=Object.keys(o).reduce(function(T,E){var A=o[E],P=A.orientation;return!A.mirror&&!A.hide?ce(ce({},T),{},Le({},P,Gn(T,"".concat(P))+A.height)):T},{top:d.top||0,bottom:d.bottom||0}),x=ce(ce({},y),v),w=x.bottom;m&&(x.bottom+=m.props.height||No.defaultProps.height),g&&r&&(x=Ope(x,i,n,r));var _=u-x.left-x.right,S=c-x.top-x.bottom;return ce(ce({brushBottom:w},x),{},{width:Math.max(_,0),height:Math.max(S,0)})},KTe=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Pd=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(x,w){var _=w.graphicalItems,S=w.stackGroups,T=w.offset,E=w.updateId,A=w.dataStartIndex,P=w.dataEndIndex,C=x.barSize,N=x.layout,M=x.barGap,k=x.barCategoryGap,H=x.maxBarSize,K=ck(N),U=K.numericAxisName,Y=K.cateAxisName,W=WTe(_),J=[];return _.forEach(function(F,ee){var le=Zm(x.data,{graphicalItems:[F],dataStartIndex:A,dataEndIndex:P}),R=F.type.defaultProps!==void 0?ce(ce({},F.type.defaultProps),F.props):F.props,X=R.dataKey,q=R.maxBarSize,z=R["".concat(U,"Id")],se=R["".concat(Y,"Id")],pe={},_e=l.reduce(function(Gt,zr){var wr=w["".concat(zr.axisType,"Map")],Er=R["".concat(zr.axisType,"Id")];wr&&wr[Er]||zr.axisType==="zAxis"||ks();var Tr=wr[Er];return ce(ce({},Gt),{},Le(Le({},zr.axisType,Tr),"".concat(zr.axisType,"Ticks"),Ea(Tr)))},pe),te=_e[Y],oe=_e["".concat(Y,"Ticks")],Te=S&&S[z]&&S[z].hasStack&&Hpe(F,S[z].stackGroups),O=ba(F.type).indexOf("Bar")>=0,$e=rp(te,oe),Ce=[],Me=W&&Ipe({barSize:C,stackGroups:S,totalSize:KTe(_e,Y)});if(O){var Re,he,Qe=De(q)?H:q,Nt=(Re=(he=rp(te,oe,!0))!==null&&he!==void 0?he:Qe)!==null&&Re!==void 0?Re:0;Ce=Npe({barGap:M,barCategoryGap:k,bandSize:Nt!==$e?Nt:$e,sizeList:Me[se],maxBarSize:Qe}),Nt!==$e&&(Ce=Ce.map(function(Gt){return ce(ce({},Gt),{},{position:ce(ce({},Gt.position),{},{offset:Gt.position.offset-Nt/2})})}))}var ir=F&&F.type&&F.type.getComposedData;ir&&J.push({props:ce(ce({},ir(ce(ce({},_e),{},{displayedData:le,props:x,dataKey:X,item:F,bandSize:$e,barPosition:Ce,offset:T,stackedData:Te,layout:N,dataStartIndex:A,dataEndIndex:P}))),{},Le(Le(Le({key:F.key||"item-".concat(ee)},U,_e[U]),Y,_e[Y]),"animationId",E)),childIndex:Nee(F,x.children),item:F})}),J},m=function(x,w){var _=x.props,S=x.dataStartIndex,T=x.dataEndIndex,E=x.updateId;if(!_b({props:_}))return null;var A=_.children,P=_.layout,C=_.stackOffset,N=_.data,M=_.reverseStackOrder,k=ck(P),H=k.numericAxisName,K=k.cateAxisName,U=yn(A,n),Y=Gpe(N,U,"".concat(H,"Id"),"".concat(K,"Id"),C,M),W=l.reduce(function(R,X){var q="".concat(X.axisType,"Map");return ce(ce({},R),{},Le({},q,jTe(_,ce(ce({},X),{},{graphicalItems:U,stackGroups:X.axisType===H&&Y,dataStartIndex:S,dataEndIndex:T}))))},{}),J=qTe(ce(ce({},W),{},{props:_,graphicalItems:U}),w==null?void 0:w.legendBBox);Object.keys(W).forEach(function(R){W[R]=c(_,W[R],J,R.replace("Map",""),r)});var F=W["".concat(K,"Map")],ee=zTe(F),le=d(_,ce(ce({},W),{},{dataStartIndex:S,dataEndIndex:T,updateId:E,graphicalItems:U,stackGroups:Y,offset:J}));return ce(ce({formattedGraphicalItems:le,graphicalItems:U,offset:J,stackGroups:Y},ee),W)},g=function(y){function x(w){var _,S,T;return CTe(this,x),T=ITe(this,x,[w]),Le(T,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Le(T,"accessibilityManager",new hTe),Le(T,"handleLegendBBoxUpdate",function(E){if(E){var A=T.state,P=A.dataStartIndex,C=A.dataEndIndex,N=A.updateId;T.setState(ce({legendBBox:E},m({props:T.props,dataStartIndex:P,dataEndIndex:C,updateId:N},ce(ce({},T.state),{},{legendBBox:E}))))}}),Le(T,"handleReceiveSyncEvent",function(E,A,P){if(T.props.syncId===E){if(P===T.eventEmitterSymbol&&typeof T.props.syncMethod!="function")return;T.applySyncEvent(A)}}),Le(T,"handleBrushChange",function(E){var A=E.startIndex,P=E.endIndex;if(A!==T.state.dataStartIndex||P!==T.state.dataEndIndex){var C=T.state.updateId;T.setState(function(){return ce({dataStartIndex:A,dataEndIndex:P},m({props:T.props,dataStartIndex:A,dataEndIndex:P,updateId:C},T.state))}),T.triggerSyncEvent({dataStartIndex:A,dataEndIndex:P})}}),Le(T,"handleMouseEnter",function(E){var A=T.getMouseInfo(E);if(A){var P=ce(ce({},A),{},{isTooltipActive:!0});T.setState(P),T.triggerSyncEvent(P);var C=T.props.onMouseEnter;Fe(C)&&C(P,E)}}),Le(T,"triggeredAfterMouseMove",function(E){var A=T.getMouseInfo(E),P=A?ce(ce({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};T.setState(P),T.triggerSyncEvent(P);var C=T.props.onMouseMove;Fe(C)&&C(P,E)}),Le(T,"handleItemMouseEnter",function(E){T.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),Le(T,"handleItemMouseLeave",function(){T.setState(function(){return{isTooltipActive:!1}})}),Le(T,"handleMouseMove",function(E){E.persist(),T.throttleTriggeredAfterMouseMove(E)}),Le(T,"handleMouseLeave",function(E){T.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};T.setState(A),T.triggerSyncEvent(A);var P=T.props.onMouseLeave;Fe(P)&&P(A,E)}),Le(T,"handleOuterEvent",function(E){var A=Iee(E),P=Gn(T.props,"".concat(A));if(A&&Fe(P)){var C,N;/.*touch.*/i.test(A)?N=T.getMouseInfo(E.changedTouches[0]):N=T.getMouseInfo(E),P((C=N)!==null&&C!==void 0?C:{},E)}}),Le(T,"handleClick",function(E){var A=T.getMouseInfo(E);if(A){var P=ce(ce({},A),{},{isTooltipActive:!0});T.setState(P),T.triggerSyncEvent(P);var C=T.props.onClick;Fe(C)&&C(P,E)}}),Le(T,"handleMouseDown",function(E){var A=T.props.onMouseDown;if(Fe(A)){var P=T.getMouseInfo(E);A(P,E)}}),Le(T,"handleMouseUp",function(E){var A=T.props.onMouseUp;if(Fe(A)){var P=T.getMouseInfo(E);A(P,E)}}),Le(T,"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&T.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),Le(T,"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&T.handleMouseDown(E.changedTouches[0])}),Le(T,"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&T.handleMouseUp(E.changedTouches[0])}),Le(T,"handleDoubleClick",function(E){var A=T.props.onDoubleClick;if(Fe(A)){var P=T.getMouseInfo(E);A(P,E)}}),Le(T,"handleContextMenu",function(E){var A=T.props.onContextMenu;if(Fe(A)){var P=T.getMouseInfo(E);A(P,E)}}),Le(T,"triggerSyncEvent",function(E){T.props.syncId!==void 0&&hg.emit(pg,T.props.syncId,E,T.eventEmitterSymbol)}),Le(T,"applySyncEvent",function(E){var A=T.props,P=A.layout,C=A.syncMethod,N=T.state.updateId,M=E.dataStartIndex,k=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)T.setState(ce({dataStartIndex:M,dataEndIndex:k},m({props:T.props,dataStartIndex:M,dataEndIndex:k,updateId:N},T.state)));else if(E.activeTooltipIndex!==void 0){var H=E.chartX,K=E.chartY,U=E.activeTooltipIndex,Y=T.state,W=Y.offset,J=Y.tooltipTicks;if(!W)return;if(typeof C=="function")U=C(J,E);else if(C==="value"){U=-1;for(var F=0;F<J.length;F++)if(J[F].value===E.activeLabel){U=F;break}}var ee=ce(ce({},W),{},{x:W.left,y:W.top}),le=Math.min(H,ee.x+ee.width),R=Math.min(K,ee.y+ee.height),X=J[U]&&J[U].value,q=d1(T.state,T.props.data,U),z=J[U]?{x:P==="horizontal"?J[U].coordinate:le,y:P==="horizontal"?R:J[U].coordinate}:r3;T.setState(ce(ce({},E),{},{activeLabel:X,activeCoordinate:z,activePayload:q,activeTooltipIndex:U}))}else T.setState(E)}),Le(T,"renderCursor",function(E){var A,P=T.state,C=P.isTooltipActive,N=P.activeCoordinate,M=P.activePayload,k=P.offset,H=P.activeTooltipIndex,K=P.tooltipAxisBandSize,U=T.getTooltipEventType(),Y=(A=E.props.active)!==null&&A!==void 0?A:C,W=T.props.layout,J=E.key||"_recharts-cursor";return j.createElement(_Te,{key:J,activeCoordinate:N,activePayload:M,activeTooltipIndex:H,chartName:r,element:E,isActive:Y,layout:W,offset:k,tooltipAxisBandSize:K,tooltipEventType:U})}),Le(T,"renderPolarAxis",function(E,A,P){var C=Gn(E,"type.axisType"),N=Gn(T.state,"".concat(C,"Map")),M=E.type.defaultProps,k=M!==void 0?ce(ce({},M),E.props):E.props,H=N&&N[k["".concat(C,"Id")]];return Q.cloneElement(E,ce(ce({},H),{},{className:He(C,H.className),key:E.key||"".concat(A,"-").concat(P),ticks:Ea(H,!0)}))}),Le(T,"renderPolarGrid",function(E){var A=E.props,P=A.radialLines,C=A.polarAngles,N=A.polarRadius,M=T.state,k=M.radiusAxisMap,H=M.angleAxisMap,K=io(k),U=io(H),Y=U.cx,W=U.cy,J=U.innerRadius,F=U.outerRadius;return Q.cloneElement(E,{polarAngles:Array.isArray(C)?C:Ea(U,!0).map(function(ee){return ee.coordinate}),polarRadius:Array.isArray(N)?N:Ea(K,!0).map(function(ee){return ee.coordinate}),cx:Y,cy:W,innerRadius:J,outerRadius:F,key:E.key||"polar-grid",radialLines:P})}),Le(T,"renderLegend",function(){var E=T.state.formattedGraphicalItems,A=T.props,P=A.children,C=A.width,N=A.height,M=T.props.margin||{},k=C-(M.left||0)-(M.right||0),H=AF({children:P,formattedGraphicalItems:E,legendWidth:k,legendContent:u});if(!H)return null;var K=H.item,U=ok(H,wTe);return Q.cloneElement(K,ce(ce({},U),{},{chartWidth:C,chartHeight:N,margin:M,onBBoxUpdate:T.handleLegendBBoxUpdate}))}),Le(T,"renderTooltip",function(){var E,A=T.props,P=A.children,C=A.accessibilityLayer,N=Dn(P,ti);if(!N)return null;var M=T.state,k=M.isTooltipActive,H=M.activeCoordinate,K=M.activePayload,U=M.activeLabel,Y=M.offset,W=(E=N.props.active)!==null&&E!==void 0?E:k;return Q.cloneElement(N,{viewBox:ce(ce({},Y),{},{x:Y.left,y:Y.top}),active:W,label:U,payload:W?K:[],coordinate:H,accessibilityLayer:C})}),Le(T,"renderBrush",function(E){var A=T.props,P=A.margin,C=A.data,N=T.state,M=N.offset,k=N.dataStartIndex,H=N.dataEndIndex,K=N.updateId;return Q.cloneElement(E,{key:E.key||"_recharts-brush",onChange:x0(T.handleBrushChange,E.props.onChange),data:C,x:ge(E.props.x)?E.props.x:M.left,y:ge(E.props.y)?E.props.y:M.top+M.height+M.brushBottom-(P.bottom||0),width:ge(E.props.width)?E.props.width:M.width,startIndex:k,endIndex:H,updateId:"brush-".concat(K)})}),Le(T,"renderReferenceElement",function(E,A,P){if(!E)return null;var C=T,N=C.clipPathId,M=T.state,k=M.xAxisMap,H=M.yAxisMap,K=M.offset,U=E.type.defaultProps||{},Y=E.props,W=Y.xAxisId,J=W===void 0?U.xAxisId:W,F=Y.yAxisId,ee=F===void 0?U.yAxisId:F;return Q.cloneElement(E,{key:E.key||"".concat(A,"-").concat(P),xAxis:k[J],yAxis:H[ee],viewBox:{x:K.left,y:K.top,width:K.width,height:K.height},clipPathId:N})}),Le(T,"renderActivePoints",function(E){var A=E.item,P=E.activePoint,C=E.basePoint,N=E.childIndex,M=E.isRange,k=[],H=A.props.key,K=A.item.type.defaultProps!==void 0?ce(ce({},A.item.type.defaultProps),A.item.props):A.item.props,U=K.activeDot,Y=K.dataKey,W=ce(ce({index:N,dataKey:Y,cx:P.x,cy:P.y,r:4,fill:Vw(A.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},Oe(U,!1)),Ph(U));return k.push(x.renderActiveDot(U,W,"".concat(H,"-activePoint-").concat(N))),C?k.push(x.renderActiveDot(U,ce(ce({},W),{},{cx:C.x,cy:C.y}),"".concat(H,"-basePoint-").concat(N))):M&&k.push(null),k}),Le(T,"renderGraphicChild",function(E,A,P){var C=T.filterFormatItem(E,A,P);if(!C)return null;var N=T.getTooltipEventType(),M=T.state,k=M.isTooltipActive,H=M.tooltipAxis,K=M.activeTooltipIndex,U=M.activeLabel,Y=T.props.children,W=Dn(Y,ti),J=C.props,F=J.points,ee=J.isRange,le=J.baseLine,R=C.item.type.defaultProps!==void 0?ce(ce({},C.item.type.defaultProps),C.item.props):C.item.props,X=R.activeDot,q=R.hide,z=R.activeBar,se=R.activeShape,pe=!!(!q&&k&&W&&(X||z||se)),_e={};N!=="axis"&&W&&W.props.trigger==="click"?_e={onClick:x0(T.handleItemMouseEnter,E.props.onClick)}:N!=="axis"&&(_e={onMouseLeave:x0(T.handleItemMouseLeave,E.props.onMouseLeave),onMouseEnter:x0(T.handleItemMouseEnter,E.props.onMouseEnter)});var te=Q.cloneElement(E,ce(ce({},C.props),_e));function oe(zr){return typeof H.dataKey=="function"?H.dataKey(zr.payload):null}if(pe)if(K>=0){var Te,O;if(H.dataKey&&!H.allowDuplicatedCategory){var $e=typeof H.dataKey=="function"?oe:"payload.".concat(H.dataKey.toString());Te=Ch(F,$e,U),O=ee&&le&&Ch(le,$e,U)}else Te=F==null?void 0:F[K],O=ee&&le&&le[K];if(se||z){var Ce=E.props.activeIndex!==void 0?E.props.activeIndex:K;return[Q.cloneElement(E,ce(ce(ce({},C.props),_e),{},{activeIndex:Ce})),null,null]}if(!De(Te))return[te].concat(gu(T.renderActivePoints({item:C,activePoint:Te,basePoint:O,childIndex:K,isRange:ee})))}else{var Me,Re=(Me=T.getItemByXY(T.state.activeCoordinate))!==null&&Me!==void 0?Me:{graphicalItem:te},he=Re.graphicalItem,Qe=he.item,Nt=Qe===void 0?E:Qe,ir=he.childIndex,Gt=ce(ce(ce({},C.props),_e),{},{activeIndex:ir});return[Q.cloneElement(Nt,Gt),null,null]}return ee?[te,null,null]:[te,null]}),Le(T,"renderCustomized",function(E,A,P){return Q.cloneElement(E,ce(ce({key:"recharts-customized-".concat(P)},T.props),T.state))}),Le(T,"renderMap",{CartesianGrid:{handler:T0,once:!0},ReferenceArea:{handler:T.renderReferenceElement},ReferenceLine:{handler:T0},ReferenceDot:{handler:T.renderReferenceElement},XAxis:{handler:T0},YAxis:{handler:T0},Brush:{handler:T.renderBrush,once:!0},Bar:{handler:T.renderGraphicChild},Line:{handler:T.renderGraphicChild},Area:{handler:T.renderGraphicChild},Radar:{handler:T.renderGraphicChild},RadialBar:{handler:T.renderGraphicChild},Scatter:{handler:T.renderGraphicChild},Pie:{handler:T.renderGraphicChild},Funnel:{handler:T.renderGraphicChild},Tooltip:{handler:T.renderCursor,once:!0},PolarGrid:{handler:T.renderPolarGrid,once:!0},PolarAngleAxis:{handler:T.renderPolarAxis},PolarRadiusAxis:{handler:T.renderPolarAxis},Customized:{handler:T.renderCustomized}}),T.clipPathId="".concat((_=w.id)!==null&&_!==void 0?_:$o("recharts"),"-clip"),T.throttleTriggeredAfterMouseMove=AD(T.triggeredAfterMouseMove,(S=w.throttleDelay)!==null&&S!==void 0?S:1e3/60),T.state={},T}return RTe(x,y),kTe(x,[{key:"componentDidMount",value:function(){var _,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var _=this.props,S=_.children,T=_.data,E=_.height,A=_.layout,P=Dn(S,ti);if(P){var C=P.props.defaultIndex;if(!(typeof C!="number"||C<0||C>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[C]&&this.state.tooltipTicks[C].value,M=d1(this.state,T,C,N),k=this.state.tooltipTicks[C].coordinate,H=(this.state.offset.top+E)/2,K=A==="horizontal",U=K?{x:k,y:H}:{y:k,x:H},Y=this.state.formattedGraphicalItems.find(function(J){var F=J.item;return F.type.name==="Scatter"});Y&&(U=ce(ce({},U),Y.props.points[C].tooltipPosition),M=Y.props.points[C].tooltipPayload);var W={activeTooltipIndex:C,isTooltipActive:!0,activeLabel:N,activePayload:M,activeCoordinate:U};this.setState(W),this.renderCursor(P),this.accessibilityManager.setIndex(C)}}}},{key:"getSnapshotBeforeUpdate",value:function(_,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==_.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==_.margin){var T,E;this.accessibilityManager.setDetails({offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(_){$y([Dn(_.children,ti)],[Dn(this.props.children,ti)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var _=Dn(this.props.children,ti);if(_&&typeof _.props.shared=="boolean"){var S=_.props.shared?"axis":"item";return s.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(_){if(!this.container)return null;var S=this.container,T=S.getBoundingClientRect(),E=nfe(T),A={chartX:Math.round(_.pageX-E.left),chartY:Math.round(_.pageY-E.top)},P=T.width/S.offsetWidth||1,C=this.inRange(A.chartX,A.chartY,P);if(!C)return null;var N=this.state,M=N.xAxisMap,k=N.yAxisMap,H=this.getTooltipEventType(),K=lk(this.state,this.props.data,this.props.layout,C);if(H!=="axis"&&M&&k){var U=io(M).scale,Y=io(k).scale,W=U&&U.invert?U.invert(A.chartX):null,J=Y&&Y.invert?Y.invert(A.chartY):null;return ce(ce({},A),{},{xValue:W,yValue:J},K)}return K?ce(ce({},A),K):null}},{key:"inRange",value:function(_,S){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,A=_/T,P=S/T;if(E==="horizontal"||E==="vertical"){var C=this.state.offset,N=A>=C.left&&A<=C.left+C.width&&P>=C.top&&P<=C.top+C.height;return N?{x:A,y:P}:null}var M=this.state,k=M.angleAxisMap,H=M.radiusAxisMap;if(k&&H){var K=io(k);return kC({x:A,y:P},K)}return null}},{key:"parseEventsOfWrapper",value:function(){var _=this.props.children,S=this.getTooltipEventType(),T=Dn(_,ti),E={};T&&S==="axis"&&(T.props.trigger==="click"?E={onClick:this.handleClick}:E={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=Ph(this.props,this.handleOuterEvent);return ce(ce({},A),E)}},{key:"addListener",value:function(){hg.on(pg,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){hg.removeListener(pg,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(_,S,T){for(var E=this.state.formattedGraphicalItems,A=0,P=E.length;A<P;A++){var C=E[A];if(C.item===_||C.props.key===_.key||S===ba(C.item.type)&&T===C.childIndex)return C}return null}},{key:"renderClipPath",value:function(){var _=this.clipPathId,S=this.state.offset,T=S.left,E=S.top,A=S.height,P=S.width;return j.createElement("defs",null,j.createElement("clipPath",{id:_},j.createElement("rect",{x:T,y:E,height:A,width:P})))}},{key:"getXScales",value:function(){var _=this.state.xAxisMap;return _?Object.entries(_).reduce(function(S,T){var E=ak(T,2),A=E[0],P=E[1];return ce(ce({},S),{},Le({},A,P.scale))},{}):null}},{key:"getYScales",value:function(){var _=this.state.yAxisMap;return _?Object.entries(_).reduce(function(S,T){var E=ak(T,2),A=E[0],P=E[1];return ce(ce({},S),{},Le({},A,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(_){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[_])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(_){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[_])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(_){var S=this.state,T=S.formattedGraphicalItems,E=S.activeItem;if(T&&T.length)for(var A=0,P=T.length;A<P;A++){var C=T[A],N=C.props,M=C.item,k=M.type.defaultProps!==void 0?ce(ce({},M.type.defaultProps),M.props):M.props,H=ba(M.type);if(H==="Bar"){var K=(N.data||[]).find(function(J){return Hge(_,J)});if(K)return{graphicalItem:C,payload:K}}else if(H==="RadialBar"){var U=(N.data||[]).find(function(J){return kC(_,J)});if(U)return{graphicalItem:C,payload:U}}else if(Hm(C,E)||jm(C,E)||Qf(C,E)){var Y=Nxe({graphicalItem:C,activeTooltipItem:E,itemData:k.data}),W=k.activeIndex===void 0?Y:k.activeIndex;return{graphicalItem:ce(ce({},C),{},{childIndex:W}),payload:Qf(C,E)?k.data[Y]:C.props.data[Y]}}}return null}},{key:"render",value:function(){var _=this;if(!_b(this))return null;var S=this.props,T=S.children,E=S.className,A=S.width,P=S.height,C=S.style,N=S.compact,M=S.title,k=S.desc,H=ok(S,ETe),K=Oe(H,!1);if(N)return j.createElement(LP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement(Uy,_l({},K,{width:A,height:P,title:M,desc:k}),this.renderClipPath(),Eb(T,this.renderMap)));if(this.props.accessibilityLayer){var U,Y;K.tabIndex=(U=this.props.tabIndex)!==null&&U!==void 0?U:0,K.role=(Y=this.props.role)!==null&&Y!==void 0?Y:"application",K.onKeyDown=function(J){_.accessibilityManager.keyboardEvent(J)},K.onFocus=function(){_.accessibilityManager.focus()}}var W=this.parseEventsOfWrapper();return j.createElement(LP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement("div",_l({className:He("recharts-wrapper",E),style:ce({position:"relative",cursor:"default",width:A,height:P},C)},W,{ref:function(F){_.container=F}}),j.createElement(Uy,_l({},K,{width:A,height:P,title:M,desc:k,style:BTe}),this.renderClipPath(),Eb(T,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(Q.Component);Le(g,"displayName",r),Le(g,"defaultProps",ce({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Le(g,"getDerivedStateFromProps",function(y,x){var w=y.dataKey,_=y.data,S=y.children,T=y.width,E=y.height,A=y.layout,P=y.stackOffset,C=y.margin,N=x.dataStartIndex,M=x.dataEndIndex;if(x.updateId===void 0){var k=uk(y);return ce(ce(ce({},k),{},{updateId:0},m(ce(ce({props:y},k),{},{updateId:0}),x)),{},{prevDataKey:w,prevData:_,prevWidth:T,prevHeight:E,prevLayout:A,prevStackOffset:P,prevMargin:C,prevChildren:S})}if(w!==x.prevDataKey||_!==x.prevData||T!==x.prevWidth||E!==x.prevHeight||A!==x.prevLayout||P!==x.prevStackOffset||!Ol(C,x.prevMargin)){var H=uk(y),K={chartX:x.chartX,chartY:x.chartY,isTooltipActive:x.isTooltipActive},U=ce(ce({},lk(x,_,A)),{},{updateId:x.updateId+1}),Y=ce(ce(ce({},H),K),U);return ce(ce(ce({},Y),m(ce({props:y},Y),x)),{},{prevDataKey:w,prevData:_,prevWidth:T,prevHeight:E,prevLayout:A,prevStackOffset:P,prevMargin:C,prevChildren:S})}if(!$y(S,x.prevChildren)){var W,J,F,ee,le=Dn(S,No),R=le&&(W=(J=le.props)===null||J===void 0?void 0:J.startIndex)!==null&&W!==void 0?W:N,X=le&&(F=(ee=le.props)===null||ee===void 0?void 0:ee.endIndex)!==null&&F!==void 0?F:M,q=R!==N||X!==M,z=!De(_),se=z&&!q?x.updateId:x.updateId+1;return ce(ce({updateId:se},m(ce(ce({props:y},x),{},{updateId:se,dataStartIndex:R,dataEndIndex:X}),x)),{},{prevChildren:S,dataStartIndex:R,dataEndIndex:X})}return null}),Le(g,"renderActiveDot",function(y,x,w){var _;return Q.isValidElement(y)?_=Q.cloneElement(y,x):Fe(y)?_=y(x):_=j.createElement(Ad,x),j.createElement(We,{className:"recharts-active-dot",ke
457y:w},_)});var v=Q.forwardRef(function(x,w){return j.createElement(g,_l({},x,{ref:w}))});return v.displayName=g.displayName,v},YTe=Pd({chartName:"LineChart",GraphicalChild:bd,axisComponents:[{axisType:"xAxis",AxisComp:Zi},{axisType:"yAxis",AxisComp:Qi}],formatAxisMap:Wm}),XTe=Pd({chartName:"BarChart",GraphicalChild:js,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Zi},{axisType:"yAxis",AxisComp:Qi}],formatAxisMap:Wm}),JTe=Pd({chartName:"PieChart",GraphicalChild:za,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Vm},{axisType:"radiusAxis",AxisComp:Um}],formatAxisMap:Qpe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),ZTe=Pd({chartName:"ScatterChart",GraphicalChild:Cd,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:Zi},{axisType:"yAxis",AxisComp:Qi},{axisType:"zAxis",AxisComp:Jm}],formatAxisMap:Wm}),QTe=Pd({chartName:"AreaChart",GraphicalChild:Vo,axisComponents:[{axisType:"xAxis",AxisComp:Zi},{axisType:"yAxis",AxisComp:Qi}],formatAxisMap:Wm});const i3="/api/chart-view",eSe=e=>btoa(unescape(encodeURIComponent(JSON.stringify(e)))),tSe=e=>
457JSON.parse(decodeURIComponent(escape(atob(e)))),rSe=async e=>{try{const t=await fetch(i3,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)return null;const r=await t.json();return typeof(r==null?void 0:r.id)=="string"&&r.id?r.id:null}catch(t){return console.error("No se pudo guardar la visualización compartida",t),null}},nSe=async e=>{const t=await fetch(`${i3}/${encodeURIComponent(e)}`);if(!t.ok)throw new Error(`No se pudo cargar la visualización (${t.status})`);return t.json()},iSe=(e,t,r)=>r?`${e}?v=${r}`:`${e}?view=${eSe(t)}`,aSe=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"})}),oSe=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"})}),fk=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"})}),h1=e=>b.jsx("svg",{viewBox:"0 0 180 30",xmlns:"http://www.w3.org/2000/svg","aria-label":"Logo de Búsqueda",...e,style:{height:"1.25rem",width:"auto",...e.style},children:b.jsx("text",{x:"0",y:"22",fill:"currentColor",fontSize:"24",fontFamily:"'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:"bold",letterSpacing:"0.05em",children:"BÃSQUEDA"})}),sSe=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})}),vg=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"})}),a3=["#0042AA","#1E56B0","#3971CB","#6292DF","#7FB6F0"],o3=["#27187e","#610345","#058896","#ffd877","#d16666","#3f89c5"],s3=["#CA99C5","#FBE0EE","#99CDCD","#D6ECED","#FFF2CC","#8FA86A","#b4b4b4"],gg="Visualización creada con Inteligencia Artificial bajo supervisión periodÃstica.",dk={"Line chart":"Gráfico de LÃneas","Bar chart":"Gráfico de Barras","Stacked bar chart":"Barras Apiladas","Column chart":"Gráfico de Columnas","Stacked column chart":"Columnas Apiladas","Pie chart":"Gráfico de Torta","Scatter plot":"Gráfico de Dispersión","Area chart":"Gráfico de Ãrea","Donut chart":"Gráfico de Dona","Bubble chart":"Gráfico de Burbujas",Table:"Tabla"};[...a3,...o3,...s3];const ha=e=>{const t=e.toLowerCase();return t.includes("bar")&&!t.includes("column")},hk=40,Ja=e=>Number(e.toPrecision(12)),pk=(e,t)=>{const r=Math.floor(Math.log10(e)),n=Math.pow(10,r),i=e/n,a=[1,2,5,10],o=t==="down"?[...a].reverse().find(s=>s<=i+1e-9)??1:a.find(s=>s>=i-1e-9)??10;return Ja(o*n)},mk=e=>{const t=Math.round(e*1e3)/1e3,r=t<0,[n,i]=Math.abs(t).toString().split("."),a=n.replace(/\B(?=(\d{3})+(?!\d))/g,"."),o=i?`${a},${i}`:a;return r?`-${o}`:o},yg=({active:e,payload:t,categoricalKey:r,formatValue:n})=>{if(!e||!t||t.length===0)return null;const a=t[0].payload[r],o=n(a,r);return b.jsxs("div",{style:{backgroundColor:"#fff",padding:"8px 12px",borderRadius:"8px",border:"none",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)",pointerEvents:"none",zIndex:1e3},children:[b.jsx("p",{style:{color:"#000000",fontWeight:"bold",marginBottom:"4px",fontSize:"14px",fontFamily:"'Helvetica Neue', Helvetica, Arial, sans-serif"},children:o}),t.map((s,l)=>b.jsxs("div",{style:{marginBottom:l===t.length-1?0:"4px"},children:[b.jsx("p",{style:{color:s.color||"#4B5563",fontSize:"12px",fontWeight:"bold",fontFamily:"'Helvetica Neue', Helvetica, Arial, sans-serif",marginBottom:"2px"},children:s.name}),b.jsx("p",{style:{color:"#111827",margin:0,fontSize:"13px",fontFamily:"'Helvetica Neue', Helvetica, Arial, sans-serif"},children:n(s.value,String(s.name))})]},l))]})}
457,vk=({color:e,onChange:t,palette:r})=>{const[n,i]=Q.useState(!1),a=Q.useRef(null);return Q.useEffect(()=>{const o=s=>{a.current&&!a.current.contains(s.target)&&i(!1)};return n&&document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[n]),b.jsxs("div",{className:"relative",ref:a,children:[b.jsx("button",{onClick:()=>i(!n),className:"w-6 h-6 rounded-md border border-gray-200 shadow-sm focus:outline-none focus:ring-2 focus:ring-blue-500",style:{backgroundColor:e}}),n&&b.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 bg-white p-2 rounded-md shadow-lg border border-gray-200 grid grid-cols-4 gap-1 w-32",children:r.map(o=>b.jsx("button",{onClick:()=>{t(o),i(!1)},className:"w-6 h-6 rounded-full border border-gray-100 hover:scale-110 transition-transform focus:outline-none",style:{backgroundColor:o},title:o},o))})]})},lSe=e=>{const{x:t,y:r,value:n,isMobile:i}=e,a=i?26:34;return b.jsx("text",{x:t,y:r-a,fill:"#111827",fontSize:i?12:14,fontWeight:"700",textAnchor:"start",fontFamily:"'Helvetica Neue', Helvetica, Arial, sans-serif",children:n})},uSe=e=>{const{x:t,y:r,payload:n,fontSize:i=11,maxChars:a=22}=e,s=((n==null?void 0:n.value)||"").split(" "),l=[];let u="";s.forEach(d=>{(u+d).length>a?(u&&l.push(u.trim()),u=d+" "):u+=d+" "}),u&&l.push(u.trim());const c=l.slice(0,4),f=i+2;return b.jsx("g",{transform:`translate(${t},${r})`,children:c.map((d,m)=>b.jsxs("text",{x:-10,y:m*f,dy:-(c.length-1)*(f/2.2),textAnchor:"end",fill:"#4B5563",fontSize:i,fontFamily:"'Helvetica Neue', Helvetica, Arial, sans-serif",fontWeight:"500",children:[d,m===3&&l.length>4?"...":""]},m))})},gk=({analysis:e,data:t,onReset:r,isEmbed:n=!1,hasMultipleOptions:i,onBackToOptions:a,initialConfig:o})=>{var cr;const s=Q.useRef(null),l=Q.useRef(null),u=Q.useRef(null),c=60,[f,d]=Q.useState(""),[m,g]=Q.useState(!1),[v,y]=Q.useState(""),[x,w]=Q.useState(!1),[_,S]=Q.useState(null),[T,E]=Q.useState(!1);Q.useEffect(()=>{E(!0)},[]);const[A,P]=Q.useState(!1),[C,N]=Q.useState(e.title),[M,k]=Q.useState(e.finding),[H,K]=Q.useState(t),[U,Y]=Q.useState(e.keyLabels||[]),[W,J]=Q.useState(e.chartType),[F,ee]=Q.useState(e.footnote||""),[le,R]=Q.useState(e.source||"Elaboración Propia"),[X,q]=Q.useState(!1),[z,se]=Q.useState(!0),[pe,_e]=Q.useState((o==null?void 0:o.showLegend)??!0),[te,oe]=Q.useState((o==null?void 0:o.barLabelPosition)||"axis"),[Te,O]=Q.useState((o==null?void 0:o.forceDecimalZero)||!1),[$e,Ce]=Q.useState((o==null?void 0:o.showDots)??!0),[Me,Re]=Q.useState((o==null?void 0:o.yAxisMin)||""),[he,Qe]=Q.useState((o==null?void 0:o.yAxisMax)||""),[Nt,ir]=Q.useState((o==null?void 0:o.yAxisScale)==="log"?"log":"linear"),[Gt,zr]=Q.useState((o==null?void 0:o.yAxisTickStep)||""),[wr,Er]=Q.useState((o==null?void 0:o.xAxisInterval)||""),[Tr,Vi]=Q.useState((o==null?void 0:o.yAxisTickCount)||""),[ar,or]=Q.useState((o==null?void 0:o.annotations)||{}),[Vt,je]=Q.useState((o==null?void 0:o.paletteType)||"blues"),et=Vt==="blues"?a3:Vt==="disinfo"?s3:o3,[Mr,Ft]=Q.useState((o==null?void 0:o.colorMode)||"series"),[Xt,zs]=Q.useState((o==null?void 0:o.colors)||{}),[kd,Vu]=Q.useState(!1),[Wn,Ho]=Q.useState({axis:"x",value:"",label:""}),[sr,Id]=Q.useState(()=>typeof window<"u"?window.innerWidth<640:!1);Q.useEffect(()=>{const Z=()=>{n&&l.current?Id(l.current.clientWidth<640):Id(window.innerWidth<640)};return Z(),window.addEventListener("resize",Z),()=>window.removeEventListener("resize",Z)},[n]),Q.useEffect(()=>{if(!n||typeof window>"u"||window.self===window.top)return;const Z=()=>{const ve=l.current;if(!ve)return;const we=Math.ceil(Math.max(ve.getBoundingClientRect().height||0,ve.offsetHeight||0,ve.scrollHeight||0));we>0&&window.parent.postMessage({type:"busqueda-embed-height",height:we},"*")};Z();const fe=typeof ResizeObserver<"u"?new ResizeObserver(Z):null;fe&&l.current&&fe.observe(l.current),window.addEventListener("resize",Z);const de=setTimeout(Z,400);return()=>{fe==null||fe.disconnect(),window.removeEventListener("resize",Z),clearTimeout(de)}},[n]);const{categoricalKey:lr,numericalKeys:Ye}=Q.useMemo(()=>{if(!H||H.length===0)return{categoricalKey:"name",numericalKeys:[]};const Z=H[0],fe=Object.keys(Z);let de=fe.find(we=>we.toLowerCase()==="name");de||(de=fe.find(we=>
457typeof Z[we]=="string"&&isNaN(Number(Z[we])))),de||(de=fe.find(we=>typeof Z[we]=="string")||fe[0]);const ve=fe.filter(we=>{if(we===de)return!1;const be=Z[we];return typeof be=="number"||typeof be=="string"&&!isNaN(Number(be))&&be.trim()!==""});return{categoricalKey:de,numericalKeys:ve}},[H]),Sr=Q.useMemo(()=>{const Z=Ye.length;if(Vt==="blues"){if(Z===2)return[et[0],et[4]];if(Z===3)return[et[0],et[2],et[4]]}return et},[Ye,et,Vt]),ur=Q.useMemo(()=>{const Z=W.toLowerCase(),fe=ha(W);if(Z.includes("table"))return"auto";if(fe){const de=Ye.length,ve=H.length,be=!Z.includes("stacked")&&de>1?de*.8:1,pt=Math.max(300,ve*(sr?40:50)*be+80);return n?pt:sr?320:pt}return Z.includes("column")||Z.includes("bar")?sr?n?300:320:n?typeof window<"u"&&window.self!==window.top?460:450:400:sr?n?280:320:n?typeof window<"u"&&window.self!==window.top?460:450:Z.includes("line")?400:360},[W,sr,n,H,Ye]),Ar=Q.useCallback((Z,fe)=>{let de;if(typeof Z=="number")de=Z;else if(typeof Z=="string"&&!isNaN(Number(Z))&&Z.trim()!=="")de=Number(Z);else return String(Z);return(()=>{if(Number.isInteger(de)&&de>=1800&&de<=2100)return!0;if(fe){const we=String(fe).toLowerCase();if(["año","anio","year","fecha","periodo","ejercicio","semestre","trimestre"].some(pt=>we.includes(pt)))return!0}return!1})()?String(de):Te&&Number.isInteger(de)?mk(de)+",0":mk(de)},[Te]),Qm=Q.useMemo(()=>{const Z=e.chartType,fe=["Line chart","Column chart","Stacked column chart","Pie chart","Scatter plot","Area chart","Donut chart","Table"],de=Z.toLowerCase(),ve=fe.filter(we=>we.toLowerCase()!==de);return[Z,...ve]},[e.chartType]);Q.useEffect(()=>{if(N(e.title),k(e.finding),K(t),J(e.chartType),ee(e.footnote||""),R(e.source||"Elaboración Propia"),P(!1),q(!1),se(!0),!n&&!o&&(zs({}),je("blues"),Ft("series"),oe("axis"),_e(!0),Re(""),Qe(""),ir("linear"),zr(""),Er(""),Vi(""),O(!1),Ce(!0)),t&&t.length>0){const Z=Object.keys(t[0]);let fe=Z.find(be=>be.toLowerCase()==="name")||Z.find(be=>typeof t[0][be]=="string");const de=fe?[fe,...Z.filter(be=>be!==fe)]:Z,ve=e.keyLabels||[],we=new Map(ve.map(be=>[be.key,be.label]));Y(de.map(be=>({key:be,label:we.get(be)||be})))}else Y(e.keyLabels||[])},[e,t,n,o]),Q.useEffect(()=>{const Z=fe=>{u.current&&!u.current.contains(fe.target)&&Vu(!1)};return document.addEventListener("mousedown",Z),()=>document.removeEventListener("mousedown",Z)},[]),Q.useMemo(()=>W.toLowerCase()!=="table",[W]);const Hu=W.toLowerCase().includes("table"),ev=!["table","pie","donut"].some(Z=>W.toLowerCase().includes(Z)),jo=Q.useMemo(()=>{const Z=W.toLowerCase();let fe=Ye;return Z.includes("scatter")&&Ye.length>1&&(fe=[Ye[1]]),fe.flatMap(de=>H.map(ve=>{const we=ve[de];return typeof we=="number"?we:Number(we)})).filter(de=>!isNaN(de))},[H,Ye,W]),Wa=Q.useMemo(()=>jo.length>0&&jo.every(Z=>Z>0),[jo]),Dr=Nt==="log"&&Wa?"log":"linear",ju=Q.useMemo(()=>{const Z=jo;let fe=Math.min(...Z),de=Math.max(...Z);Z.length===0&&(fe=0,de=100);const ve=Me!==""&&!isNaN(Number(Me))?Number(Me):null,we=he!==""&&!isNaN(Number(he))?Number(he):null;if(Dr==="log"){const At=ve!==null&&ve>0?ve:fe,Jt=we!==null&&we>0?we:de,ot=At>0?At:1,Lr=Jt>ot?Jt:ot*10,qn=pk(ot,"down"),Hi=pk(Lr,"up");return{domain:Hi>qn?[qn,Hi]:[qn,Ja(qn*10)],tickStep:null,stepMessage:null}}const be=ve!==null?ve:fe<0?fe:0,pt=we!==null?we:de,Fr=()=>{let At=pt;if(he===""&&Me===""){const Jt=At-be;Jt===0?At+=10:At+=Jt*.1}return[be,At]},it=String(Gt??"").trim();if(it==="")return{domain:Fr(),tickStep:null,stepMessage:null};const at=Number(it);if(!isFinite(at)||at<=0)return{domain:Fr(),tickStep:null,stepMessage:"El paso tiene que ser un número mayor a 0."};const St=pt-be;if(St>0&&at>St)return{domain:Fr(),tickStep:null,stepMessage:"El paso es más grande que el rango de los datos: se usan las marcas automáticas."};if(St>0&&St/at>hk)return{domain:Fr(),tickStep:null,stepMessage:`Con ese paso el eje superarÃa las ${hk} marcas: se usan las automáticas.`};const Ne=ve!==null?be:0,qe=ve!==null?be:Ja(Ne-Math.ceil((Ne-be)/at)*at);let ut=we!==null?pt:Ja(Ne+Math.ceil((pt-Ne)/at)*at);return ut<=qe&&(ut=Ja(qe+at)),{domain:[qe,ut],tickStep:at,stepMessage:null}},[jo,Me,he,Dr,Gt]),ca=ju.domain,qa=ju.tickStep,I=ju.stepMessage,B=Q.useMemo(()=>{const[Z,fe]=ca;if(Dr==="log"){const ve=Math.floor(Math.log10(Z)),we=Math.ceil(Math.log10(fe)),be=Math.log10(Z),pt=Math.log10(fe),Fr=Ne=>{const qe=[];for(let ut=ve;ut<=we;ut++)Ne.forEach(At=>{const Jt=Ja(At*Math.pow(10,ut));Jt>=Z&&Jt<=fe&&qe.push(Jt)});return qe};let it=Fr([1,2,5]);it.length>8?it=Fr([1]):it.length<3&&(it=Fr([1,1.5,2,3,5,7]));const at=(pt-be)*.05,St=it.filter(Ne=>{const qe=Math.log10(Ne);return qe-be>at&&pt-qe>at});return Array.from(new Set([Z,...St,fe])).sort((Ne,qe)=>Ne-qe)}if(qa===null)return;const de=[];for(let ve=Z;ve<=fe+qa/1e3;ve=Ja(ve+qa))de.push(Ja(ve));return de.length>1?de:void 0},[ca,Dr,qa]),D=Q.useCallback((Z,fe)=>{const[de,ve]=fe;if(isNaN(Z))return-1;if(Dr==="log"){if(Z<=0||de<=0||ve<=0)return-1;const we=Math.log10(de),be=Math.log10(ve);return be===we?.5:(Math.log10(Z)-we)/(be-we)}return ve===de?.5:(Z-de)/(ve-de)},[Dr]),L=Q.useMemo(()=>
457{if(!W.toLowerCase().includes("scatter"))return null;const fe=H.map(be=>Number(be[Ye[0]])).filter(be=>!isNaN(be));if(fe.length===0)return[0,100];let de=Math.min(...fe),ve=Math.max(...fe);const we=ve-de;if(we===0)ve+=10,de-=10;else{const be=we*.05;de-=be,ve+=be}return[de,ve]},[H,Ye,W]),G=Q.useMemo(()=>W.toLowerCase().includes("scatter")?"continuous":"categorical",[W]),V=()=>{const Z=W.toLowerCase(),fe=ha(W);let de={top:30,right:30,left:20,bottom:5},ve=z?60:0,we=z?30:0;return Z.includes("bar")||Z.includes("column")?(de={top:(te==="on-bar"?60:20)+10,right:40,left:fe?10:0,bottom:20},fe?(ve=z?te==="on-bar"?0:sr?120:200:0,we=z?30:0):(ve=z?60:0,we=z?30:0)):Z.includes("scatter")?(de={top:20,right:20,bottom:20,left:20},ve=z?60:0,we=z?30:0):Z.includes("area")&&(de={top:10,right:30,left:0,bottom:0},ve=z?60:0,we=z?30:0),{left:de.left+ve,top:de.top,widthPct:`calc(100% - ${de.left+de.right+ve}px)`,heightPct:`calc(100% - ${de.top+de.bottom+we}px)`}},ne=()=>{if(!T||!(ar!=null&&ar.enable_annotations)||!ar.line_annotations||["pie","donut","table"].some(it=>W.toLowerCase().includes(it)))return null;const Z=V(),fe=W.toLowerCase(),de=ha(W),[ve,we]=ca,be=H.map(it=>String(it[lr])),pt=fe.includes("bar")||fe.includes("column"),Fr=de?"continuous":G;return b.jsx("div",{className:"absolute inset-0 pointer-events-none overflow-hidden",style:{left:Z.left,top:Z.top,width:Z.widthPct,height:Z.heightPct,zIndex:20},children:ar.line_annotations.map((it,at)=>{let St=-1;const Ne=it.axis==="x";let qe=!1;if(Ne)if(Fr==="categorical"){qe=!0;const ot=be.indexOf(String(it.value));if(ot===-1)return console.warn(`Annotation value "${it.value}" not found in X axis categories.`),null;const Lr=be.length;pt?St=(ot+.5)/Lr:St=Lr>1?ot/(Lr-1):.5}else{let ot=0,Lr=100;const qn=de;qn?[ot,Lr]=ca:fe.includes("scatter")&&([ot,Lr]=L||[0,100]);let Hi=it.value,yi=Number(Hi);isNaN(yi)||(qn?St=D(yi,[ot,Lr]):Lr===ot?St=.5:St=(yi-ot)/(Lr-ot))}else if(de){const ot=be.indexOf(String(it.value));if(ot===-1)return null;St=(ot+.5)/be.length}else St=D(Number(it.value),[ve,we]);if(St<0||St>1)return null;const ut=Ne&&qe,At=ut?"border-dashed border-gray-400 opacity-60":"border-solid border-blue-800",Jt=ut?`PerÃodo: ${it.value}`:it.label;if(Ne)return b.jsx("div",{className:`absolute top-0 bottom-0 border-l ${At}`,style:{left:`${St*100}%`},children:b.jsx("span",{className:"absolute top-2 -translate-x-1/2 left-0 ml-1 text-[10px] bg-white bg-opacity-90 px-1 py-0.5 text-gray-600 font-medium whitespace-nowrap rounded shadow-sm border border-gray-100",children:Jt})},at);{const ot=de?{top:`${St*100}%`}:{bottom:`${St*100}%`};return b.jsx("div",{className:"absolute left-0 right-0 border-t border-gray-500 border-dashed",style:ot,children:b.jsx("span",{className:"absolute right-0 -translate-y-1/2 translate-x-0 mr-1 text-[10px] bg-white bg-opacity-90 px-1 py-0.5 text-gray-600 font-medium whitespace-nowrap rounded shadow-sm border border-gray-100",children:it.label})},at)}})})},ue=()=>{if(!T)return null;const Z=ca,fe=wr&&!isNaN(Number(wr))&&Number(wr)>0?Number(wr)-1:"preserveStartEnd",de=Tr&&!isNaN(Number(Tr))&&Number(Tr)>1?Number(Tr):void 0,ve={scale:Dr,ticks:B,tickCount:B?void 0:de},we=z?b.jsx(Zi,{dataKey:lr,type:"category",stroke:"#9CA3AF",fontSize:12,tickLine:!1,axisLine:!1,dy:10,interval:fe,tickFormatter:Ne=>Ar(Ne,lr)}):b.jsx(Zi,{dataKey:lr,hide:!0,type:"category"}),be=z?b.jsx(Qi,{type:"number",stroke:"#9CA3AF",fontSize:12,tickLine:!1,axisLine:!1,tickFormatter:Ne=>Ar(Ne),domain:Z,allowDataOverflow:!0,...ve,width:c}):b.jsx(Qi,{hide:!0,type:"number",domain:Z,allowDataOverflow:!0,scale:Dr}),pt=b.jsx(O4,{strokeDasharray:"3 3",vertical:!1,stroke:"#E5E7EB"}),Fr=b.jsx(ti,{shared:!0,trigger:"hover",cursor:{fill:"#F3F4F6"},isAnimationActive:!1,content:b.jsx(yg,{categoricalKey:lr,formatValue:Ar})}),it=pe?b.jsx(ms,{verticalAlign:"top",wrapperStyle:{marginBottom:"20px"}}):null,at=W.toLowerCase(),St=ha(W);if(n&&St&&(Ye.length,H.length,at.includes("stacked")),at.includes("table"))return b.jsx("div",{className:"overflow-x-auto w-full max-w-full",style:{flex:"1 1 auto",minHeight:0,minWidth:0,height:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"},children:b.jsxs("table",{className:"min-w-full border-separate border-spacing-0",style:{fontFamily:"'Helvetica Neue', Helvetica, Arial, sans-serif"},children:[b.jsx("thead",{className:"bg-gray-50",children:b.jsx("tr",{children:U.map(Ne=>b.jsx("th",{className:`sticky top-0 z-10 bg-gray-50 px-6 py-3 text-xs font-medium text-gray-500 uppercase tracking-wider border-b border-gray-200 ${Ye.includes(Ne.key)?"text-right":"text-left"}`,children:Ne.label},Ne.key))})}),b.jsx("tbody",{className:"bg-white",children:H.map((Ne,qe)=>b.jsx("tr",{className:qe%2===0?"bg-white":"bg-gray-50",children:U.map((ut,At)=>b.jsx("td",{className:`px-6 py-4 whitespace-nowrap text-sm text-gray-900 border-b border-gray-100 ${Ye.includes(ut.key)?"text-right":"text-left"}`,children:Ar(Ne[ut.key],ut.key)},At))},qe))})]})});if(at.includes("bar")||at.includes("column")){const Ne=at.includes("stacked"),qe=at.includes("bar")&&!at.includes("column"),ut=te==="on-bar"?60:20,At=qe?"vertical":"horizontal",Jt=!Ne&&Ye.length===1;return b.jsx(ac,{width:"100%",height:ur,children:b.jsxs(XTe,{data:H,layout:At,margin:{top:ut+10,right:40,left:qe?10:0,bottom:20},barSize:qe&&te==="on-bar"?sr?24:32:void 0,children:[pt,qe?b.jsxs(b.Fragment,{children:[b.jsx(Zi,{type:"number",hide:!z,domain:Z,allowDataOverflow:!0,...ve,tickFormatter:ot=>Ar(ot)}),b.jsx(Qi,{dataKey:lr,type:"category",width:te==="on-bar"?0:sr?120:200,hide:!z,interval:0,tick:te==="on-bar"?!1:b.jsx(uSe,{fontSize:sr?10:12,maxChars:sr?18:28})})]}):b.jsxs(b.Fragment,{children:[we,be]}),b.jsx(ti,{cursor:{fill:"transparent"},shared:!Ne,isAnimationActive:!1,content:b.jsx(yg,{categoricalKey:lr,formatValue:Ar})}),it,Ye.map((ot,Lr)=>{var Hi;const qn=Xt[ot]||Sr[Lr%Sr.length];return b.jsxs(js,{dataKey:ot,name:((Hi=U.find(yi=>yi.key===ot))==null?void 0:Hi.label)||ot,stackId:Ne?"a":void 0,fill:qn,radius:[4,4,0,0],children:[te==="on-bar"&&qe&&Lr===0&&b.jsx(tn,{dataKey:lr,content:b.jsx(lSe,{isMobile:sr})}),X&&b.jsx(tn,{dataKey:ot,position:Ne?"center":qe?"right":"top",style:{fill:Ne?"#fff":"#4B5563",fontSize:"11px",fontWeight:"bold"},formatter:yi=>Ar(yi,ot)})]},ot)}),!Jt&&H.length>20&&b.jsx(No,{dataKey:lr,height:30,stroke:"#9CA3AF"})]})},sr?"mobile-bar":"desktop-bar")}if(at.includes("pie")||at.includes("donut")){const Ne=at.includes("donut")?"60%":"0%";return b.jsx(ac,{width:"100%",height:ur,children:b.jsxs(JTe,{children:[b.jsx(za,{data:H,dataKey:Ye[0],nameKey:lr,cx:"50%",cy:"50%",innerRadius:Ne,outerRadius:"80%",fill:et[0],label:X?({name:qe,percent:ut})=>`${qe} ${(ut*100).toFixed(0)}%`:!1,children:H.map((qe,ut)=>b.jsx(_d,{fill:Xt[qe[lr]]||Sr[ut%Sr.length]},`cell-${ut}`))}),Fr,it]})},sr?"mobile-pie":"desktop-pie")}return at.includes("area")?b.jsx(ac,{width:"100%",height:ur,children:b.jsxs(QTe,{data:H,margin:{top:10,right:30,left:0,bottom:0},children:[b.jsx("defs",{children:Ye.map((Ne,qe)=>b.jsxs("linearGradient",{id:`color${Ne}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[b.jsx("stop",{offset:"5%",
457stopColor:Xt[Ne]||Sr[qe%Sr.length],stopOpacity:1}),b.jsx("stop",{offset:"95%",stopColor:Xt[Ne]||Sr[qe%Sr.length],stopOpacity:1})]},Ne))}),we,be,pt,Fr,it,Ye.map((Ne,qe)=>{var ut;return b.jsx(Vo,{type:"monotone",dataKey:Ne,name:((ut=U.find(At=>At.key===Ne))==null?void 0:ut.label)||Ne,stroke:Xt[Ne]||Sr[qe%Sr.length],fillOpacity:1,fill:`url(#color${Ne})`,children:X&&b.jsx(tn,{dataKey:Ne,position:"top",style:{fill:"#4B5563",fontSize:"12px"},formatter:At=>Ar(At,Ne)})},Ne)}),H.length>20&&b.jsx(No,{dataKey:lr,height:30,stroke:"#9CA3AF"})]})},sr?"mobile-area":"desktop-area"):at.includes("scatter")?b.jsx(ac,{width:"100%",height:ur,children:b.jsxs(ZTe,{margin:{top:20,right:20,bottom:20,left:20},children:[pt,b.jsx(Zi,{type:"number",dataKey:Ye[0],name:Ye[0],hide:!z,tickFormatter:Ne=>Ar(Ne,Ye[0]),domain:L||[0,"auto"],allowDataOverflow:!0}),b.jsx(Qi,{type:"number",dataKey:Ye[1],name:Ye[1],hide:!z,domain:Z,allowDataOverflow:!0,...ve,tickFormatter:Ne=>Ar(Ne,Ye[1]),width:c}),b.jsx(ti,{cursor:{strokeDasharray:"3 3"},shared:!1,isAnimationActive:!1,content:b.jsx(yg,{categoricalKey:lr,formatValue:Ar})}),it,b.jsx(Cd,{name:"Datos",data:H,fill:Xt[Ye[1]]||et[0],children:X&&b.jsx(tn,{dataKey:Ye[1],position:"top",formatter:Ne=>Ar(Ne,Ye[1])})})]})},sr?"mobile-scatter":"desktop-scatter"):b.jsx(ac,{width:"100%",height:ur,children:b.jsxs(YTe,{data:H,margin:{top:30,right:30,left:20,bottom:5},children:[pt,we,be,Fr,it,Ye.map((Ne,qe)=>{var At;const ut=Xt[Ne]||Sr[qe%Sr.length];return b.jsx(bd,{type:"monotone",dataKey:Ne,name:((At=U.find(Jt=>Jt.key===Ne))==null?void 0:At.label)||Ne,stroke:ut,strokeWidth:3,dot:$e?{r:4,fill:ut,strokeWidth:2,stroke:"#fff"}:!1,activeDot:{r:8},children:X&&b.jsx(tn,{dataKey:Ne,position:"top",offset:10,style:{fill:ut,fontSize:"12px",fontWeight:"bold"},formatter:Jt=>Ar(Jt,Ne)})},Ne)})]})},sr?"mobile-line":"desktop-line")};if(n){const Z=typeof window<"u"&&window.self!==window.top;return ha(W),b.jsxs("div",{ref:l,className:"bg-white w-full font-sans px-4 py-4 flex flex-col h-auto min-h-0",style:{display:"flex",flexDirection:"column",width:"100%",fontFamily:"ui-sans-serif, system-ui, sans-serif",backgroundColor:"#ffffff",boxSizing:"border-box",padding:"1rem",height:"auto",minHeight:"0"},children:[Z&&b.jsx("style",{children:` 458 html, body, #root { margin: 0 !important; padding: 0 !important; height: auto !important; min-height: 0 !important; overflow-x: hidden !important; } 459 `}),b.jsxs("div",{className:"flex-none",style:{flex:"none",marginBottom:"1rem"},children:[b.jsx("h3",{className:"text-lg font-bold text-gray-900 leading-tight mb-1",style:{fontSize:"1.125rem",fontWeight:"bold",margin:"0 0 0.25rem 0",color:"#111827"},children:C}),b.jsx("p",{className:"text-gray-600 leading-relaxed mb-4",style:{margin:0,color:"#4B5563",fontSize:"1rem"},children:M})]}),b.jsxs("div",{ref:s,className:"w-full relative",style:{width:"100%",minWidth:"100%",position:"relative",height:ur!==void 0&&ur!=="auto"?`${ur}px`:"auto",minHeight:ur!==void 0&&ur!=="auto"?`${ur}px`:"unset"},children:[ue(),ne()]}),b.jsx("div",{className:"flex-none mt-2 pt-3 border-t border-gray-100 flex justify-between items-end",style:{flex:"none",marginTop:"0.5rem",paddingTop:"0.75rem",borderTop:"1px solid #F3F4F6",display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"},children:b.jsxs("div",{className:"flex flex-col w-full",style:{display:"flex",flexDirection:"column",width:"100%"},children:[F&&b.jsx("p",{className:"text-[10px] text-gray-500 italic leading-tight mb-2 pb-2 border-b border-gray-50",style:{fontSize:"10px",color:"#6B7280",fontStyle:"italic",margin:"0 0 0.5rem 0",paddingBottom:"0.5rem",borderBottom:"1px solid #F9FAFB"},children:F}),b.jsxs("div",{className:"flex justify-between items-end",style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"},children:[b.jsxs("div",{className:"flex flex-col",style:{display:"flex",flexDirection:"column"},children:[b.jsxs("p",{className:"text-xs text-gray-500",style:{fontSize:"0.75rem",margin:0,color:"#6B7280"},children:["Fuente: ",le]}),b.jsx("p",{className:"text-[10px] text-gray-400 mt-1 italic",style:{fontSize:"10px",margin:"0.25rem 0 0 0",color:"#9
459CA3AF",fontStyle:"italic"},children:gg})]}),b.jsx(h1,{className:"h-5 text-gray-400",style:{height:"1.25rem",width:"auto",color:"#9CA3AF"}})]})]})})]})}const re=async Z=>{if(!s.current)return;const fe=s.current.querySelector("svg");if(!fe)return;const de=2,ve=800,we=24,be=ve-we*2,pt=(Wr,zu,Wu)=>{const fa=zu.split(" "),rv=[];let Ws=fa[0]||"";for(let Rd=1;Rd<fa.length;Rd++){const sE=Ws+" "+fa[Rd];Wr.measureText(sE).width>Wu?(rv.push(Ws),Ws=fa[Rd]):Ws=sE}return Ws&&rv.push(Ws),rv},Fr=Wr=>new Promise((zu,Wu)=>{const fa=new Image;fa.onload=()=>zu(fa),fa.onerror=Wu,fa.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(Wr)))}),it=fe.cloneNode(!0),at=fe.getBoundingClientRect(),St=be,Ne=St*(at.height/at.width);it.setAttribute("width",String(St)),it.setAttribute("height",String(Ne));const qe="bold 18px system-ui, -apple-system, sans-serif",ut="15px system-ui, -apple-system, sans-serif",At="italic 10px system-ui, -apple-system, sans-serif",Jt="12px system-ui, -apple-system, sans-serif",ot="italic 10px system-ui, -apple-system, sans-serif",Lr=22,qn=20,Hi=14,yi=16,Qw=14,ji=document.createElement("canvas").getContext("2d");ji.font=qe;const eE=pt(ji,C,be);ji.font=ut;const tE=pt(ji,M,be);ji.font=At;const Nd=F?pt(ji,F,be):[];ji.font=Jt;const rE=pt(ji,`Fuente: ${le}`,be-110);ji.font=ot;const nE=pt(ji,gg,be-110),u3=eE.length*Lr+4+tE.length*qn+16,c3=24+(Nd.length>0?Nd.length*Hi+16:0)+rE.length*yi+4+nE.length*Qw+8,iE=we+u3+Ne+c3+we,Od=document.createElement("canvas");Od.width=ve*de,Od.height=iE*de;const st=Od.getContext("2d");st.scale(de,de),st.fillStyle="#ffffff",st.fillRect(0,0,ve,iE),st.textBaseline="top";let Ot=we;st.fillStyle="#111827",st.font=qe,eE.forEach(Wr=>{st.fillText(Wr,we,Ot),Ot+=Lr}),Ot+=4,st.fillStyle="#4B5563",st.font=ut,tE.forEach(Wr=>{st.fillText(Wr,we,Ot),Ot+=qn}),Ot+=16;const aE=Ot;try{const Wr=await Fr(new XMLSerializer().serializeToString(it));st.drawImage(Wr,we,aE,St,Ne)}catch{return}Ot=aE+Ne+12,st.strokeStyle="#E5E7EB",st.lineWidth=1,st.beginPath(),st.moveTo(we,Ot),st.lineTo(ve-we,Ot),st.stroke(),Ot+=12,Nd.length>0&&(st.fillStyle="#6B7280",st.font=At,Nd.forEach(Wr=>{st.fillText(Wr,we,Ot),Ot+=Hi}),Ot+=8,st.strokeStyle="#F3F4F6",st.beginPath(),st.moveTo(we,Ot),st.lineTo(ve-we,Ot),st.stroke(),Ot+=8);const oE=Ot;st.fillStyle="#6B7280",st.font=Jt,rE.forEach(Wr=>{st.fillText(Wr,we,Ot),Ot+=yi}),Ot+=4,st.fillStyle="#9CA3AF",st.font=ot,nE.forEach(Wr=>{st.fillText(Wr,we,Ot),Ot+=Qw});try{const zu=await Fr('<svg viewBox="0 0 180 30" xmlns="http://www.w3.org/2000/svg" width="90" height="15"><text x="0" y="22" fill="#9CA3AF" font-size="24" font-family="Helvetica Neue, Helvetica, Arial, sans-serif" font-weight="bold" letter-spacing="0.05em">BÃSQUEDA</text></svg>'),Wu=oE+(Ot-oE)/2-7;st.drawImage(zu,ve-we-90,Wu,90,15)}catch{}const tv=document.createElement("a");tv.download=`${C||"visualizacion"}.png`,tv.href=Od.toDataURL("image/png"),tv.click()},ie=()=>{console.warn("Transpose not implemented")},ae=(Z,fe)=>{Y(de=>de.map(ve=>ve.key===Z?{...ve,label:fe}:ve))},me=Z=>{K(fe=>fe.map(de=>{const ve={...de};return delete ve[Z],ve})),Y(fe=>fe.filter(de=>de.key!==Z))},Ee=(Z,fe,de)=>{K(ve=>{const we=[...ve];return we[Z]={...we[Z],[fe]:de},we})},Pe=Z=>{K(fe=>fe.filter((de,ve)=>ve!==Z))},xe=()=>{K(Z=>{if(Z.length===0)return Z;const fe={...Z[0]};return Object.keys(fe).forEach(de=>fe[de]=typeof fe[de]=="number"?0:""),[...Z,fe]})},Se=Z=>{navigator.clipboard.writeText(Z).then(()=>{S("Copiado al portapapeles"),setTimeout(()=>S(null),2e3)})},Ue=()=>({analysis:{...e,title:C,finding:M,footnote:F,source:le,chartType:W,keyLabels:U},data:H,colors:Xt,paletteType:Vt,colorMode:Mr,barLabelPosition:te,showLegend:pe,yAxisMin:Me,yAxisMax:he,yAxisScale:Nt,yAxisTickStep:Gt,xAxisInterval:wr,yAxisTickCount:Tr,forceDecimalZero:Te,showDots:$e,annotations:ar}),Et=Z=>{const fe=W.toLowerCase(),de=300,ve=(be,pt)=>Math.max(1,Math.ceil((be||"").length*pt/de));ve(C,9.5),ve(M,8),F&&ve(F,5),ve(`Fuente: ${le}`,6.5),ha(W)?(fe.includes("stacked"),Ye.length,H.length):fe.includes("table")&&70+H.length*54;const we=(C||"Visualización").replace(/"/g,""");return`<div class="td-embed-frame" style="position:relative; width:100%; height:0; padding-bottom:100% !important; overflow:hidden;"> 460 <iframe src="${Z}" title="${we}" style="position:absolute; top:0; left:0; width:100% !important; height:520px !important; border:0;" frameborder="0" allowfullscreen></iframe> 461</div>`},Tt=async()=>{g(!0),w(!0),y(""),d("");const Z=Ue(),fe=await rSe(Z),de=iSe(window.location.origin,Z,fe);y(de),d(Et(de)),w(!1)};return b.jsxs("div",{className:"space-y-6",children:[b.jsxs("div",{className:"flex justify-between items-center flex-wrap gap-2",children:[b.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"3. Visualización Generada"}),b.jsxs("div",{className:"flex items-center gap-3",children:[i&&a&&b.jsxs("button",{onClick:a,className:"text-sm text-blue-700 hover:text-blue-900 flex items-center font-medium",children:[b.jsx(lM,{className:"w-4 h-4 mr-1"})," Ver otras opciones"]}),b.jsxs("button",{onClick:r,className:"text-sm text-gray-500 hover:text-gray-700 flex items-center",children:[b.jsx(q_,{className:"w-4 h-4 mr-1"})," Empezar de nuevo"]})]})]}),_&&b.jsx("div",{className:"fixed top-4 right-4 bg-gray-800 text-white px-4 py-2 rounded shadow-lg z-50 text-sm animate-fade-in-out",children:_}),b.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:[b.jsxs("div",{className:"bg-gray-50 border-b border-gray-200 px-4 py-3 flex flex-wrap justify-between items-center gap-2",children:[b.jsxs("div",{className:"relative",ref:u,children:[b.jsxs("button",{onClick:()=>Vu(!kd),className:"flex items-center space-x-2 text-sm font-medium text-gray-700 hover:text-blue-800 transition-colors focus:outline-none",children:[b.jsx(fk,{className:"w-4 h-4"}),b.jsxs("span",{children:["Tipo: ",dk[W]||W]}),b.jsx("svg",{className:"w-4 h-4 ml-1",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})]}),kd&&b.jsx("div",{className:"absolute top-full left-0 mt-1 w-56 bg-white rounded-md shadow-lg z-50 border border-gray-100 max-h-60 overflow-y-auto",children:b.jsx("div",{className:"py-1",children:Qm.map(Z=>b.jsx("button",{onClick:()=>{J(Z),Vu(!1)},className:`block w-full text-left px-4 py-2 text-sm hover:bg-blue-50 hover:text-blue-800 ${W===Z?"bg-blue-50 text-blue-800 font-medium":"text-gray-700"}`,children:dk[Z]||Z},Z))})})]}),b.jsxs("div",{className:"flex space-x-2",children:[b.jsx("button",{onClick:()=>re(),className:"p-2 text-gray-500 hover:text-blue-800 hover:bg-blue-50 rounded transition-colors",title:"Descargar PNG",children:b.jsx(aSe,{className:"w-5 h-5"})}),b.jsx("button",{onClick:Tt,className:"p-2 text-gray-500 hover:text-blue-800 hover:bg-blue-50 rounded transition-colors",title:"Obtener código HTML",children:b.jsx(oSe,{className:"w-5 h-5"})})]})]}),b.jsxs("div",{className:"p-6 bg-white",children:[A?b.jsxs("div",{className:"space-y-6 mb-6 border-b border-gray-100 pb-6 bg-gray-50 p-4 rounded-lg",children:[b.jsxs("div",{className:"flex justify-between items-center border-b border-gray-200 pb-2 mb-4",children:[b.jsx("h4",{className:"font-bold text-gray-800",children:"Editor de Visualización"}),b.jsx("button",{onClick:()=>P(!1),className:"text-sm bg-blue-800 text-white px-3 py-1 rounded font-medium hover:bg-blue-900 transition-colors",children:"Guardar Cambios"})]}),b.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[b.jsxs("div",{className:"space-y-4",children:[b.jsx("h5",{className:"text-xs font-bold text-gray-500 uppercase tracking-wider",children:"Textos Generales"}),b.jsxs("div",{children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"TÃtulo"}),b.jsx("input",{type:"text",value:C,onChange:Z=>N(Z.target.value),className:"w-full p-2 text-sm border border-gray-300 rounded focus:ring-2 focus:ring-blue-800 focus:border-blue-800"})]}),b.jsxs("div",{children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"SubtÃtulo (Hallazgo)"}),b.jsx("textarea",{value:M,onChange:Z=>k(Z.target.value),className:"w-full p-2 text-sm border border-gray-300 rounded focus:ring-2 focus:ring-blue-800 focus:border-blue-800 h-20 resize-none"})]}),b.jsxs("div",{children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Nota al Pie"}),b.jsx("input",{type:"text",value:F,onChange:Z=>ee(Z.target.value),className:"w-full p-2 text-sm border border-gray-300 rounded focus:ring-2 focus:ring-blue-800 focus:border-blue-800"})]}),b.jsxs("div",{children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Fuente"}),b.jsx("input",{type:"text",value:le,onChange:Z=>R(Z.target.value),className:"w-full p-2 text-sm border border-gray-300 rounded focus:ring-2 focus:ring-blue-800 focus:border-blue-800"})]}),b.jsx("h5",{className:"text-xs font-bold text-gray-500 uppercase tracking-wider pt-2",children:"Opciones Visuales"}),b.jsxs("div",{className:"flex flex-col space-y-2",children:[!Hu&&b.jsxs(b.Fragment,{children:[b.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[b.jsx("input",{type:"checkbox",checked:X,onChange:Z=>q(Z.target.checked),className:"rounded text-blue-800 h-4 w-4"}),b.jsx("span",{className:"text-sm text-gray-700",children:"Mostrar Valores en Gráfico"})]}),W.toLowerCase().includes("line")&&b.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[b.jsx("input",{type:"checkbox",checked:$e,onChange:Z=>Ce(Z.target.checked),className:"rounded text-blue-800 h-4 w-4"}),b.jsx("span",{className:"text-sm text-gray-700",children:"Mostrar Puntos"})]}),b.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[b.jsx("input",{type:"checkbox",checked:z,onChange:Z=>se(Z.target.checked),className:"rounded text-blue-800 h-4 w-4"}),b.jsx("span",{className:"text-sm text-gray-700",children:"Mostrar Ejes"})]}),b.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[b.jsx("input",{type:"checkbox",checked:pe,onChange:Z=>_e(Z.target.checked),className:"rounded text-blue-800 h-4 w-4"}),b.jsx("span",{className:"text-sm text-gray-700",children:"Mostrar Referencias"})]})]}),W.toLowerCase().includes("bar")&&b.jsxs("div",{className:"pt-1",children:[b.jsx("label",{className:"block text-[10px] font-bold text-gray-500 uppercase mb-1",children:"Etiquetas de CategorÃa"}),b.jsxs("div",{className:"flex bg-white border border-gray-200 rounded-md overflow-hidden",children:[b.jsx("button",{onClick:()=>oe("axis"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors ${te==="axis"?"bg-blue-800 text-white":"text-gray-600 hover:bg-gray-50"}`,children:"Eje"}),b.jsx("button",{onClick:()=>oe("on-bar"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors ${te==="on-bar"?"bg-blue-800 text-white":"text-gray-600 hover:bg-gray-50"}`,children:"Sobre Barras"})]})]}),b.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[b.jsx("input",{type:"checkbox",checked:Te,onChange:Z=>O(Z.target.checked),className:"rounded text-blue-800 h-4 w-4"}),b.jsx("span",{className:"text-sm text-gray-700",children:"Forzar decimal en enteros (,0)"})]}),ev&&b.jsxs("div",{className:"mt-2 pt-2 border-t border-gray-100 space-y-2",children:[b.jsx("label",{className:"block text-[10px] font-bold text-gray-500 uppercase",children:"Escala del Eje Y"}),b.jsxs("div",{className:"flex bg-white border border-gray-200 rounded-md overflow-hidden",children:[b.jsx("button",{onClick:()=>ir("linear"),title:"Distancias iguales entre valores iguales",className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors ${Nt==="linear"?"bg-blue-800 text-white":"text-gray-600 hover:bg-gray-50"}`,children:"Lineal"}),b.jsx("button",{onClick:()=>ir("log"),disabled:!Wa,title:Wa?"Cada marca multiplica por 10: útil cuando los valores abarcan órdenes de magnitud muy distintos":"Requiere que todos los valores sean mayores a 0",className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors ${Nt==="log"&&Wa?"bg-blue-800 text-white":"text-gray-600 hover:bg-gray-50"}
461 ${Wa?"":"opacity-40 cursor-not-allowed hover:bg-transparent"}`,children:"LogarÃtmica"})]}),!Wa&&b.jsx("p",{className:"text-[10px] text-gray-500 leading-snug",children:"La escala logarÃtmica necesita que todos los valores sean mayores a 0."}),Dr==="log"&&b.jsx("p",{className:"text-[10px] text-gray-500 leading-snug",children:"Cada marca multiplica la anterior. El rango se ajusta a lÃmites prolijos."}),b.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[b.jsxs("div",{children:[b.jsx("label",{className:"block text-[10px] font-bold text-gray-500 uppercase mb-1",children:"Min"}),b.jsx("input",{type:"number",value:Me,onChange:Z=>Re(Z.target.value),className:"w-full p-1.5 text-xs border border-gray-300 rounded focus:border-blue-800 focus:ring-1 focus:ring-blue-800",placeholder:"Auto"})]}),b.jsxs("div",{children:[b.jsx("label",{className:"block text-[10px] font-bold text-gray-500 uppercase mb-1",children:"Max"}),b.jsx("input",{type:"number",value:he,onChange:Z=>Qe(Z.target.value),className:"w-full p-1.5 text-xs border border-gray-300 rounded focus:border-blue-800 focus:ring-1 focus:ring-blue-800",placeholder:"Auto"})]})]}),b.jsxs("div",{children:[b.jsx("label",{className:"block text-[10px] font-bold text-gray-500 uppercase mb-1",children:"Distancia entre marcas (paso)"}),b.jsx("input",{type:"number",min:"0",step:"any",value:Dr==="log"?"":Gt,disabled:Dr==="log",onChange:Z=>zr(Z.target.value),title:Dr==="log"?"En escala logarÃtmica el paso lo definen las potencias de 10":"Distancia numérica entre las marcas visibles del eje Y",className:"w-full p-1.5 text-xs border border-gray-300 rounded focus:border-blue-800 focus:ring-1 focus:ring-blue-800 disabled:bg-gray-100 disabled:text-gray-400 disabled:cursor-not-allowed",placeholder:"Auto"}),Dr==="log"?b.jsx("p",{className:"text-[10px] text-gray-500 leading-snug mt-1",children:"En escala logarÃtmica el paso lo definen las potencias de 10."}):I?b.jsx("p",{className:"text-[10px] text-amber-700 leading-snug mt-1",children:I}):qa!==null?b.jsxs("p",{className:"text-[10px] text-gray-500 leading-snug mt-1",children:["Una marca cada ",Ar(qa),": ",(B==null?void 0:B.length)??0," marcas entre ",Ar(ca[0])," y ",Ar(ca[1]),"."]}):b.jsx("p",{className:"text-[10px] text-gray-500 leading-snug mt-1",children:"VacÃo deja que las marcas se calculen automáticamente."})]})]})]}),!Hu&&b.jsxs("div",{className:"pt-2 border-t border-gray-200 mt-2 space-y-3",children:[b.jsx("h5",{className:"text-xs font-bold text-gray-500 uppercase tracking-wider",children:"Colores"}),b.jsxs("div",{children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Paleta de Colores"}),b.jsxs("div",{className:"flex flex-col space-y-2 mt-1",children:[b.jsxs("button",{onClick:()=>je("blues"),className:`w-full px-3 py-2 text-xs font-medium transition-colors rounded-md text-left flex items-center justify-between border ${Vt==="blues"?"bg-blue-50 border-blue-200 text-blue-800":"bg-white border-gray-200 text-gray-600 hover:bg-gray-50"}`,children:[b.jsx("span",{children:"Búsqueda"}),Vt==="blues"&&b.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-800"})]}),b.jsxs("button",{onClick:()=>je("multicolor"),className:`w-full px-3 py-2 text-xs font-medium transition-colors rounded-md text-left flex items-center justify-between border ${Vt==="multicolor"?"bg-blue-50 border-blue-200 text-blue-800":"bg-white border-gray-200 text-gray-600 hover:bg-gray-50"}`,children:[b.jsx("span",{children:"Paleta Alternativa"}),Vt==="multicolor"&&b.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-800"})]}),b.jsxs("button",{onClick:()=>je("disinfo"),className:`w-full px-3 py-2 text-xs font-medium transition-colors rounded-md text-left flex items-center justify-between border ${Vt==="disinfo"?"bg-blue-50 border-blue-200 text-blue-800":"bg-white border-gray-200 text-gray-600 hover:bg-gray-50"}`,children:[b.jsx("span",{children:"Desinformación"}),Vt==="disinfo"&&b.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-800"})]})]})]}),b.jsxs("div",{children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-1",children:"Colorear por"}),b.jsxs("div",{className:"flex bg-white border border-gray-200 rounded-md overflow-hidden",children:[b.jsx("button",{onClick:()=>Ft("series"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors ${Mr==="series"?"bg-blue-800 text-white":"text-gray-600 hover:bg-gray-50"}`,children:"Series"}),b.jsx("button",{onClick:()=>Ft("category"),className:`flex-1 px-3 py-1.5 text-xs font-medium transition-colors ${Mr==="category"?"bg-blue-800 text-white":"text-gray-600 hover:bg-gray-50"}`,children:"CategorÃas"})]})]}),b.jsxs("div",{className:"space-y-2",children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600",children:"Asignar Colores"}),b.jsx("div",{className:"grid grid-cols-2 gap-2",children:Mr==="series"?Ye.map((Z,fe)=>{var de,ve;return b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(vk,{color:Xt[Z]||Sr[fe%Sr.length],palette:et,onChange:we=>zs({...Xt,[Z]:we})}),b.jsx("span",{className:"text-xs text-gray-600 truncate flex-1",title:((de=U.find(we=>we.key===Z))==null?void 0:de.label)||Z,children:((ve=U.find(we=>we.key===Z))==null?void 0:ve.label)||Z})]},Z)}):H.map((Z,fe)=>{const de=String(Z[lr]);return b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(vk,{color:Xt[de]||Sr[fe%Sr.length],palette:et,onChange:ve=>zs({...Xt,[de]:ve})}),b.jsx("span",{className:"text-xs text-gray-600 truncate flex-1",title:de,children:de})]},fe)}
461)})]})]})]}),b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("h5",{className:"text-xs font-bold text-gray-500 uppercase tracking-wider",children:"Datos y Etiquetas"}),b.jsxs("button",{onClick:ie,className:"flex items-center text-xs text-blue-700 hover:text-blue-900 font-medium",title:"Intercambiar filas y columnas",children:[b.jsx(sSe,{className:"w-4 h-4 mr-1"}),"Invertir Ejes"]})]}),b.jsx("div",{className:"max-h-64 overflow-y-auto pr-2 space-y-4",children:Hu?b.jsxs("div",{children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-2",children:"Columnas"}),b.jsx("div",{className:"space-y-2",children:U.map(Z=>b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx("input",{type:"text",value:Z.label,onChange:fe=>ae(Z.key,fe.target.value),className:"flex-1 p-1.5 text-sm border border-gray-300 rounded"}),b.jsx("button",{onClick:()=>me(Z.key),className:"p-1.5 text-gray-400 hover:text-red-600",children:b.jsx(vg,{className:"w-4 h-4"})})]},Z.key))})]}):b.jsxs(b.Fragment,{children:[b.jsxs("div",{children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-2",children:"Series (Leyenda)"}),b.jsx("div",{className:"space-y-2",children:U.filter(Z=>Z.key!==lr).map(Z=>b.jsx("div",{className:"flex items-center space-x-2",children:b.jsx("input",{type:"text",value:Z.label,onChange:fe=>ae(Z.key,fe.target.value),className:"flex-1 p-1.5 text-sm border border-gray-300 rounded"})},Z.key))})]}),b.jsxs("div",{children:[b.jsx("label",{className:"block text-xs font-medium text-gray-600 mb-2",children:"CategorÃas (Eje X)"}),b.jsx("div",{className:"space-y-2",children:H.map((Z,fe)=>b.jsx("div",{className:"flex items-center space-x-2",children:b.jsx("input",{type:"text",value:Z[lr]||"",onChange:de=>Ee(fe,lr,de.target.value),className:"flex-1 p-1.5 text-sm border border-gray-300 rounded"})},fe))})]})]})}),b.jsxs("div",{className:"pt-4 border-t border-gray-100",children:[b.jsxs("div",{className:"flex justify-between items-center mb-2",children:[b.jsx("h5",{className:"text-xs font-bold text-gray-500 uppercase tracking-wider",children:"Anotaciones"}),b.jsxs("label",{className:"flex items-center space-x-2 cursor-pointer",children:[b.jsx("input",{type:"checkbox",checked:(ar==null?void 0:ar.enable_annotations)||!1,onChange:Z=>or(fe=>({...fe,enable_annotations:Z.target.checked})),className:"rounded text-blue-800 h-4 w-4"}),b.jsx("span",{className:"text-xs text-gray-600",children:"Habilitar"})]})]}),(ar==null?void 0:ar.enable_annotations)&&b.jsxs("div",{className:"space-y-3 bg-gray-50 p-3 rounded-md border border-gray-200",children:[b.jsx("div",{className:"space-y-2",children:(cr=ar.line_annotations)==null?void 0:cr.map((Z,fe)=>b.jsxs("div",{className:"flex items-center gap-2 bg-white p-2 rounded border border-gray-100 shadow-sm",children:[b.jsx("span",{className:"text-[10px] font-bold text-gray-500 w-4",children:Z.axis.toUpperCase()}),b.jsxs("div",{className:"flex-1 text-xs text-gray-700 truncate",children:[b.jsxs("span",{className:"font-medium mr-1",children:[Z.value,":"]}),Z.axis==="x"&&G==="categorical"&&!ha(W)?`PerÃodo: ${Z.value}`:Z.label]}),b.jsx("button",{onClick:()=>or(de=>{var ve;return{...de,line_annotations:(ve=de.line_annotations)==null?void 0:ve.filter((we,be)=>be!==fe)}}),className:"text-gray-400 hover:text-red-600",children:b.jsx(vg,{className:"w-3 h-3"})})]},fe))}),b.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[b.jsxs("select",{value:Wn.axis,onChange:Z=>Ho(fe=>({...fe,axis:Z.target.value})),className:"col-span-1 p-1.5 text-xs border border-gray-300 rounded",children:[b.jsx("option",{value:"x",children:"Eje X"}),b.jsx("option",{value:"y",children:"Eje Y"})]}),b.jsx("input",{type:"text",value:Wn.value,onChange:Z=>Ho(fe=>({...fe,value:Z.target.value})),placeholder:"Valor",className:"col-span-2 p-1.5 text-xs border border-gray-300 rounded"})]}),Wn.axis==="x"&&G==="categorical"&&!ha(W)?b.jsx("div",{className:"p-1",children:b.jsx("p",{className:"text-[10px] text-gray-500 italic",children:"El rótulo se genera automáticamente porque el eje X es categórico."})}):b.jsx("div",{className:"flex gap-2",children:b.jsx("input",{type:"text",value:Wn.label,onChange:Z=>Ho(fe=>({...fe,label:Z.target.value})),placeholder:"Texto de la etiqueta",className:"flex-1 p-1.5 text-xs border border-gray-300 rounded"})}),b.jsx("button",{onClick:()=>{const Z=Wn.axis==="x"&&G==="categorical"&&!ha(W);Wn.value&&(Wn.label||Z)&&(or(fe=>({...fe,line_annotations:[...fe.line_annotations||[],Wn]})),Ho({...Wn,value:"",label:""}))},className:"w-full bg-blue-800 text-white px-3 py-1 text-xs rounded font-medium hover:bg-blue-900 mt-1",children:"Agregar Anotación"}),b.jsx("p",{className:"text-[10px] text-gray-500 italic",children:"* Para fechas/números usar valor exacto. Para categorÃas usar nombre exacto."})]})]})]})]})]}):b.jsxs("div",{className:"group relative mb-6 cursor-pointer hover:bg-gray-50 rounded p-2 transition-all",onClick:()=>P(!0),children:[b.jsx("h3",{className:"text-lg font-bold text-gray-900 leading-tight pr-8",children:C}),b.jsx("p",{className:"text-gray-600 mt-1 leading-relaxed",children:M}),b.jsx("div",{className:"absolute top-2 right-2 p-1.5",children:b.jsx(fk,{className:"w-4 h-4 text-blue-800"})})]}),b.jsxs("div",{ref:s,style:{position:"relative",width:"100%",maxWidth:"100%",minWidth:"100%",height:ur!==void 0&&ur!=="auto"?`${ur}px`:"auto",minHeight:ur!==void 0&&ur!=="auto"?`${ur}px`:"unset",maxHeight:"unset",overflow:"visible"},children:[ue(),ne()]})," ",b.jsx("div",{className:"mt-2 flex justify-between items-end pt-3 border-t border-gray-100",children:b.jsxs("div",{className:"flex flex-col w-full",children:[F&&b.jsx("p",{className:"text-[10px] text-gray-500 italic leading-tight mb-2 pb-2 border-b border-gray-50",children:F}),b.jsxs("div",{className:"flex justify-between items-end",children:[b.jsxs("div",{className:"flex flex-col",children:[b.jsxs("p",{className:"text-xs text-gray-500",children:["Fuente: ",le]}),b.jsx("p",{className:"text-[10px] text-gray-400 mt-1 italic",children:gg})]}),b.jsx(h1,{className:"h-5 text-gray-400"})]})]})})]})]}),b.jsxs("div",{className:"bg-white rounded-lg shadow-md border border-gray-200 overflow-hidden",children:[b.jsx("div",{className:"bg-gray-50 border-b border-gray-200 px-4 py-3",children:b.jsx("h3",{className:"text-sm font-bold text-gray-800 uppercase tracking-wider",children:"4. Datos Estructurados"})}),b.jsxs("div",{className:"p-4 overflow-x-auto",children:[b.jsxs("table",{className:"min-w-full divide-y divide-gray-200 border border-gray-200 rounded-sm",children:[b.jsx("thead",{className:"bg-gray-50",children:b.jsxs("tr",{children:[U.map(Z=>b.jsx("th",{className:"px-4 py-2 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:Z.label},Z.key)),b.jsx("th",{className:"px-4 py-2 w-10"})]})}),b.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:H.map((Z,fe)=>b.jsxs("tr",{children:[U.map(de=>b.jsx("td",{className:"px-2 py-2",children:b.jsx("input",{type:Ye.includes(de.key)?"number":"text",value:Z[de.key],onChange:ve=>
461Ee(fe,de.key,ve.target.value),className:"w-full text-sm border-gray-200 rounded p-1"})},de.key)),b.jsx("td",{className:"px-2 py-2 text-center",children:b.jsx("button",{onClick:()=>Pe(fe),className:"text-gray-400 hover:text-red-600",children:b.jsx(vg,{className:"w-4 h-4"})})})]},fe))})]}),b.jsx("div",{className:"mt-3",children:b.jsxs("button",{onClick:xe,className:"flex items-center text-sm font-medium text-blue-700 hover:text-blue-900",children:[b.jsx("svg",{className:"w-4 h-4 mr-1",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Agregar Fila"]})})]})]}),m&&b.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center p-4",children:b.jsxs("div",{className:"bg-white rounded-lg shadow-xl max-w-2xl w-full p-6",children:[b.jsxs("div",{className:"flex justify-between items-start mb-4",children:[b.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"Compartir"}),b.jsx("button",{onClick:()=>g(!1),className:"text-gray-400 hover:text-gray-600",children:b.jsx("svg",{className:"w-6 h-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:b.jsx("path",{d:"M6 18L18 6M6 6l12 12",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),b.jsxs("div",{className:"space-y-4",children:[b.jsxs("div",{children:[b.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"HTML"}),b.jsx("textarea",{readOnly:!0,value:x?"Generando enlaceâ¦":f,className:"w-full bg-gray-50 border border-gray-300 text-gray-600 text-xs font-mono rounded-md p-2.5 h-24 resize-none"}),b.jsx("div",{className:"mt-2 flex justify-end",children:b.jsx("button",{onClick:()=>Se(f),disabled:x||!f,className:"px-4 py-2 bg-blue-800 text-white rounded-md text-sm font-bold disabled:opacity-50 disabled:cursor-not-allowed",children:"Copiar Código"})})]}),b.jsxs("div",{className:"pt-4 border-t border-gray-100",children:[b.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Link"}),b.jsxs("div",{className:"flex space-x-2",children:[b.jsx("input",{readOnly:!0,value:x?"Generando enlaceâ¦":v,className:"flex-1 bg-gray-50 border border-gray-300 text-gray-600 text-sm rounded-md p-2.5"}),b.jsx("button",{onClick:()=>Se(v),disabled:x||!v,className:"px-4 py-2 bg-white border border-gray-300 rounded-md text-sm font-medium text-gray-700 disabled:opacity-50 disabled:cursor-not-allowed",children:"Copiar"})]})]})]})]})})]})},cSe={csv:{title:"Subir Tabla (Excel o CSV)",description:"Seleccione o arrastre un archivo Excel (.xlsx, .xls) o CSV para analizar.",accept:".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel, .xlsx, .xls"},image:{title:"Subir Imagen",description:"Seleccione o arrastre una imagen (JPG, PNG) con tablas o datos.",accept:"image/jpeg,image/png"},pdf:{title:"Subir PDF",description:"Seleccione o arrastre un documento PDF para el análisis.",accept:"application/pdf"}},fSe=({fileType:e,onBack:t,onAnalyzeFile:r,isLoading:n})=>{const i=cSe[e],[a,o]=Q.useState(null),[s,l]=Q.useState(!1),u=e==="image"||e==="csv"||e==="pdf",c=Q.useCallback(v=>{v&&v.length>0&&o(v[0])},[]),f=Q.useCallback(v=>{v.preventDefault(),l(!0)},[]),d=Q.useCallback(v=>{v.preventDefault(),l(!1)},[]),m=Q.useCallback(v=>{v.preventDefault(),l(!1),v.dataTransfer.files&&v.dataTransfer.files.length>0&&(c(v.dataTransfer.files),v.dataTransfer.clearData())},[c]),g=()=>{a&&r(a)};return b.jsxs("div",{className:"bg-white p-6 sm:p-8 rounded-lg shadow-md border border-gray-200",children:[b.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-4",children:i.title}),b.jsx("p",{className:"text-gray-700 mb-6",children:i.description}),b.jsx("div",{className:"flex items-center justify-center w-full",children:b.jsxs("label",{htmlFor:"dropzone-file",className:`flex flex-col items-center justify-center w-full h-48 border-2 border-dashed rounded-lg transition-colors duration-200 ${s?"border-blue-800 bg-blue-50":"border-gray-300 bg-gray-50"} ${u?"cursor-pointer hover:bg-gray-100":"cursor-not-allowed bg-gray-100"}`,onDragOver:u?f:void 0,onDragLeave:u?d:void 0,onDrop:u?m:void 0,children:[a?b.jsxs("div",{className:"text-center p-4",children:[b.jsx("p",{className:"font-semibold text-gray-800 break-all",children:a.name}),b.jsxs("p",{className:"text-sm text-gray-600 mt-1",children:[Math.round(a.size/1024)," KB"]}
461),u&&b.jsx("p",{className:"text-xs text-blue-700 mt-2",children:"Suelte otro archivo o haga click para reemplazar"})]}):b.jsxs("div",{className:"flex flex-col items-center justify-center pt-5 pb-6",children:[b.jsx("svg",{className:"w-8 h-8 mb-4 text-gray-500","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 16",children:b.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13 13h3a3 3 0 0 0 0-6h-.025A5.56 5.56 0 0 0 16 6.5 5.5 5.5 0 0 0 5.207 5.021C5.137 5.017 5.071 5 5 5a4 4 0 0 0 0 8h2.167M10 15V6m0 0L8 8m2-2 2 2"})}),b.jsxs("p",{className:"mb-2 text-sm text-gray-500",children:[b.jsx("span",{className:"font-semibold",children:"Click para subir"})," o arrastre el archivo"]}),b.jsx("p",{className:"text-xs text-gray-500",children:e==="csv"?"Excel (.xlsx) o CSV":`Tipo: ${e.toUpperCase()}`})]}),b.jsx("input",{id:"dropzone-file",type:"file",className:"hidden",accept:i.accept,disabled:!u||n,onChange:v=>c(v.target.files)})]})}),b.jsxs("div",{className:"mt-6 flex flex-col-reverse sm:flex-row justify-between items-center gap-4",children:[b.jsxs("button",{onClick:t,className:"flex items-center justify-center w-full sm:w-auto px-6 py-3 bg-white text-gray-700 font-bold rounded-md border border-gray-300 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-400 transition-colors duration-200",children:[b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"})}),"Volver"]}),u?b.jsx("button",{onClick:g,disabled:!a||n,className:"w-full sm:w-auto flex items-center justify-center px-6 py-3 bg-blue-800 text-white font-bold rounded-md hover:bg-blue-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-800 disabled:bg-gray-400 disabled:cursor-not-allowed transition-colors duration-200",children:n?b.jsxs(b.Fragment,{children:[b.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[b.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),b.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Analizando..."]}):"Analizar Archivo"}):b.jsxs("div",{className:"relative group w-full sm:w-auto",children:[b.jsx("button",{disabled:!0,className:"w-full flex items-center justify-center px-6 py-3 bg-gray-400 text-white font-bold rounded-md cursor-not-allowed",children:"Analizar Archivo"}),b.jsx("div",{className:"absolute bottom-full mb-2 hidden group-hover:block w-full sm:w-72",children:b.jsxs("div",{className:"bg-gray-800 text-white text-xs rounded py-1 px-2 text-center",children:["Funcionalidad para ",e.toUpperCase()," en desarrollo."]})})]})]})]})},dSe=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-4.25m-1.5 4.25a6.01 6.01 0 0 1-1.5-4.25m3.75 7.5h.75a2.25 2.25 0 0 0 2.25-2.25v-1.5a2.25 2.25 0 0 0-2.25-2.25h-7.5a2.25 2.25 0 0 0-2.25 2.25v1.5a2.25 2.25 0 0 0 2.25 2.25h.75m3.75 7.5a3.75 3.75 0 0 1-7.5 0"})}),hSe=({proposals:e,onSelect:t,onBack:r})=>b.jsxs("div",{className:"bg-white p-6 sm:p-8 rounded-lg shadow-md border border-gray-200",children:[b.jsxs("div",{className:"flex items-start mb-6",children:[b.jsx("div",{className:"flex-shrink-0 mr-4",children:b.jsx("div",{className:"flex items-center justify-center h-12 w-12 rounded-full bg-blue-100",children:b.jsx(dSe,{className:"h-7 w-7 text-blue-800"})})}),b.jsxs("div",{children:[b.jsx("h2",{className:"text-xl font-semibold text-gray-900",children:"2. Se encontraron múltiples opciones"}),b.jsx("p",{className:"text-gray-700 mt-1",children:"Hemos identificado varias visualizaciones posibles en su texto. Por favor, seleccione una para continuar."})]})]}),b.jsx("div",{className:"space-y-4",children:e.map((n,i)=>b.jsxs("div",{className:"border border-gray-200 rounded-lg p-4 transition-shadow hover:shadow-md",children:[b.jsx("h3",{className:"font-semibold text-gray-900",children:n.title}),b.jsx("p",{className:"text-sm text-gray-600 mt-1",children:n.finding}),b.jsxs("div",{className:"mt-3 flex items-center justify-between",children:[b.jsxs("span",{className:"text-xs font-mono bg-gray-100 text-gray-700 px-2 py-1 rounded",children:["Sugerencia: ",n.chartType]}),b.jsxs("button",{onClick:()=>t(n),className:"flex items-center px-4 py-2 bg-blue-800 text-white text-sm font-bold rounded-md hover:bg-blue-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-800",children:[b.jsx(sM,{className:"w-4 h-4 mr-2"}),"Seleccionar"]})]})]},i))}),b.jsx("div",{className:"mt-8 pt-6 border-t border-gray-200 flex justify-start",children:b.jsxs("button",{onClick:r,className:"flex items-center justify-center px-6 py-3 bg-white text-gray-700 font-bold rounded-md border border-gray-300 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-gray-400 transition-colors duration-200",children:[b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5 mr-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 17l-5-5m0 0l5-5m-5 5h12"})}),"Comenzar de Nuevo"]})})]}),pSe=e=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"})}),mSe=({onReset:e})=>b.jsxs("div",{className:"bg-white p-6 sm:p-8 rounded-lg shadow-md border border-gray-200 text-center",children:[b.jsx("div",{className:"mx-auto flex items-center justify-center h-16 w-16 rounded-full bg-yellow-100 mb-4",children:b.jsx(pSe,{className:"h-8 w-8 text-yellow-500"})}),b.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-2",children:"No se encontró información graficable"}),b.jsx("p",{className:"text-gray-700 mb-6 max-w-2xl mx-auto",children:"Nuestro análisis no pudo identificar datos o relaciones en el texto que pudieran convert
461irse en una visualización. Intente con otro texto o asegúrese de que contenga cifras, porcentajes o comparaciones claras."}),b.jsxs("button",{onClick:e,className:"inline-flex items-center justify-center px-6 py-3 bg-blue-800 text-white font-bold rounded-md hover:bg-blue-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-800 transition-colors duration-200",children:[b.jsx(q_,{className:"w-5 h-5 mr-2"}),"Comenzar de Nuevo"]})]}),vSe=e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>t(n.result),n.onerror=i=>r(i),n.readAsText(e)}),gSe=e=>new Promise((t,r)=>{const n=new FileReader;n.onload=()=>{const a=n.result.split(",")[1];t(a)},n.onerror=i=>r(i),n.readAsDataURL(e)});function ySe(){const[e,t]=Q.useState("select_input"),[r,n]=Q.useState(null),[i,a]=Q.useState(""),[o,s]=Q.useState(null),[l,u]=Q.useState(null),[c,f]=Q.useState(null),[d,m]=Q.useState(!1),[g,v]=Q.useState(null),[y,x]=Q.useState(null),[w,_]=Q.useState(()=>typeof window>"u"?!1:new URLSearchParams(window.location.search).has("v"));Q.useEffect(()=>{const U=new URLSearchParams(window.location.search),Y=U.get("v"),W=U.get("view"),J=F=>{const{analysis:ee,data:le,...R}=F;if(!ee||!le)throw new Error("Datos de visualización incompletos");u(ee),f(le),x(R),t("embed")};if(Y){let F=!1;return nSe(Y).then(ee=>{F||J(ee)}).catch(ee=>{F||(console.error("Failed to load embed data",ee),v("No se pudo cargar la visualización embebida."))}).finally(()=>{F||_(!1)}),()=>{F=!0}}if(W)try{J(tSe(W))}catch(F){console.error("Failed to parse embed data from URL",F),v("No se pudo cargar la visualización embebida.")}},[]);const S=Q.useCallback(()=>{if(window.location.protocol!=="blob:")try{window.history.pushState({},document.title,window.location.pathname)}catch(U){console.warn("Could not reset URL state:",U)}t("select_input"),n(null),a(""),s(null),u(null),f(null),m(!1),v(null)},[]),T=Q.useCallback(()=>{t("select_input"),n(null),v(null)},[]),E=Q.useCallback(()=>{t("select_proposal"),u(null),f(null),v(null)},[]),A=Q.useCallback(U=>{n(U),t("provide_input")},[]),P=Q.useCallback(async U=>{if(!U.trim()){v("El contenido para analizar no puede estar vacÃo.");return}m(!0),v(null);try{const Y=await kX(U);a(U),Y.visualizations.length===0?t("no_results"):Y.visualizations.length===1?(u(Y.visualizations[0]),t("proposal_details")):(s(Y.visualizations),t("select_proposal"))}catch(Y){console.error(Y),v(Y instanceof Error?Y.message:"Ocurrió un error desconocido durante el análisis.")}finally{m(!1)}},[]),C=Q.useCallback(()=>{P(i)},[i,P]),N=Q.useCallback(async U=>{m(!0),v(null);const Y=6;if(U.size>Y*1024*1024){v(`El archivo es demasiado grande (${(U.size/(1024*1024)).toFixed(2)}MB). Por favor suba archivos menores a ${Y}MB para garantizar la estabilidad de la conexión.`),m(!1);return}try{let W="";const J=U.name.toLowerCase().endsWith(".xlsx")||U.name.toLowerCase().endsWith(".xls");if(r==="csv"&&J)W=await new Promise((F,ee)=>{const le=new FileReader;le.onload=R=>{var X;try{const q=new Uint8Array((X=R.target)==null?void 0:X.result),z=_y(q,{type:"array"}),se=z.SheetNames[0],pe=z.Sheets[se],_e=$V.sheet_to_csv(pe);F(_e)}catch{ee(new Error("No se pudo leer el archivo Excel. Asegúrese de que el formato sea válido."))}},le.onerror=()=>ee(new Error("Error de lectura de archivo.")),le.readAsArrayBuffer(U)});else if(r==="image"||r==="pdf"){const F=await gSe(U);W=await oM({data:F,mimeType:U.type})}else r==="csv"&&(W=await vSe(U));W?(a(W),await P(W)):v("No se pudo extraer texto del archivo.")}catch(W){console.error(W),v(W instanceof Error?W.message:"Ocurrió un error al procesar el archivo.")}finally{m(!1)}},[r,P]),M=Q.useCallback(U=>{u(U),t("proposal_details")},[]),k=Q.useCallback(async()=>{if(!(!l||!i)){m(!0),v(null);try{const U=await IX(l,i);f(U),t("visualization")}catch(U){console.error(U),v(U instanceof Error?U.message:"Ocurrió un error al generar los datos de la visualización.")}finally{m(!1)}}},[l,i]),H=Q.useCallback(U=>{l&&u({...l,chartType:U})},[l]),K=()=>{switch(e){case"select_input":return b.jsx(DX,{onSelectMode:A});case"provide_input":return r==="text"?b.jsx(LX,{journalistText:i,setJournalistText:a,onAnalyze:C,isLoading:d,onBack:T}):r==="csv"||r==="image"||r==="pdf"?b.jsx(fSe,{fileType:r,onBack:T,onAnalyzeFile:N,isLoading:d}):null;case"select_proposal":return o?b.jsx(hSe,{proposals:o,onSelect:M,onBack:S}):null;case"no_results":return b.jsx(mSe,{onReset:S});case"proposal_details":return l?b.jsx(BX,{analysis:l,onApprove:k,onNewAnalysis:S,isLoading:d,onChartTypeChange:H,hasMultipleOptions:o&&o.length>1,onBackToOptions:E}):null;case"visualization":return l&&c?b.jsx(gk,{analysis:l,data:c,onReset:S,hasMultipleOptions:o&&o.length>1,onBackToOptions:E}):null;case"embed":return l&&c?b.jsx(gk,{analysis:l,data:c,onReset:()=>{},isEmbed:!0,initialConfig:y||void 0}):null;default:return b.jsx("p",{children:"Estado desconocido"})}};return w?b.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white",children:b.jsx("p",{className:"text-sm text-gray-500",children:"Cargando visualizaciónâ¦"})}):e==="embed"?K():b.jsxs("div",{className:"bg-gray-100 min-h-screen font-sans antialiased text-gray-900",children:[b.jsx("header",{className:"bg-white border-b border-gray-200",children:b.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8",children:b.jsxs("div",{className:"flex justify-between items-center py-4",children:[b.jsxs("div",{className:"flex items-center space-x-2",children:[b.jsx(h1,{className:"h-7 text-gray-800"}),b.jsx("span",{className:"text-xl font-semibold text-gray-500 tracking-tight",children:"DataViz Assistant"})]}),b.jsx("a",{href:"https://www.busqueda.com.uy",target:"_blank",rel:"noopener noreferrer",className:"text-sm font-medium text-blue-800 hover:text-blue-900",children:"busqueda.com.uy"})]})})}),b.jsxs("main",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-8 sm:py-12",children:[g&&b.jsxs("div",{className:"bg-red-100 border-l-4 border-red-500 text-red-700 p-4 mb-6 rounded-md shadow-sm",role:"alert",children:[b.jsx("p",{className:"font-bold",children:"Error"}),b.jsx("p",{children:g})]}),b.jsx("div",{className:"max-w-4xl mx-auto",children:K()})]}),b.jsx("footer",{className:"bg-white border-t border-gray-200 mt-8",children:b.jsx("div",{className:"container mx-auto px-4 sm:px-6 lg:px-8 py-4 text-center text-sm text-gray-500",children:b.jsxs("p",{children:["© ",new Date().getFullYear()," BÃSQUEDA. Una herramienta para la redacción potenciada por IA."]})})})]})}const l3=document.getElementById("root");
461if(!l3)throw new Error("Could not find root element to mount to");const xSe=IN(l3);xSe.render(b.jsx(j.StrictMode,{children:b.jsx(ySe,{})}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.