JezK
Edit File: index-BxyI5M65.js
var vq=Object.defineProperty;var yq=(e,t,r)=>t in e?vq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ar=(e,t,r)=>yq(e,typeof t!="symbol"?t+"":t,r);function xq(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const 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 U1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UD={exports:{}},A2={},WD={exports:{}},rr={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Fg=Symbol.for("react.element"),bq=Symbol.for("react.portal"),wq=Symbol.for("react.fragment"),Sq=Symbol.for("react.strict_mode"),_q=Symbol.for("react.profiler"),Aq=Symbol.for("react.provider"),Eq=Symbol.for("react.context"),Nq=Symbol.for("react.forward_ref"),Pq=Symbol.for("react.suspense"),Tq=Symbol.for("react.memo"),Cq=Symbol.for("react.lazy"),MT=Symbol.iterator;function Oq(e){return e===null||typeof e!="object"?null:(e=MT&&e[MT]||e["@@iterator"],typeof e=="function"?e:null)}var zD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},HD=Object.assign,VD={};function cp(e,t,r){this.props=e,this.context=t,this.refs=VD,this.updater=r||zD}cp.prototype.isReactComponent={};cp.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")};cp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function GD(){}GD.prototype=cp.prototype;function _3(e,t,r){this.props=e,this.context=t,this.refs=VD,this.updater=r||zD}var A3=_3.prototype=new GD;A3.constructor=_3;HD(A3,cp.prototype);A3.isPureReactComponent=!0;var FT=Array.isArray,qD=Object.prototype.hasOwnProperty,E3={current:null},KD={key:!0,ref:!0,__self:!0,__source:!0};function XD(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)qD.call(t,n)&&!KD.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),c=0;c<s;c++)l[c]=arguments[c+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:Fg,type:e,key:a,ref:o,props:i,_owner:E3.current}}function kq(e,t){return{$$typeof:Fg,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function N3(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fg}function jq(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var $T=/\/+/g;function i5(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jq(""+e.key):t.toString(36)}function Vv(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 Fg:case bq:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+i5(o,0):n,FT(i)?(r="",e!=null&&(r=e.replace($T,"$&/")+"/"),Vv(i,t,r,"",function(c){return c})):i!=null&&(N3(i)&&(i=kq(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace($T,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",FT(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+i5(a,s);o+=Vv(a,t,r,l,i)}else if(l=Oq(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+i5(a,s++),o+=Vv(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 W1(e,t,r){if(e==null)return e;var n=[],i=0;return Vv(e,n,"","",function(a){return t.call(r,a,i++)}),n}function Lq(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 ma={current:null},Gv={transition:null},Iq={ReactCurrentDispatcher:ma,ReactCurrentBatchConfig:Gv,ReactCurrentOwner:E3};function YD(){throw Error("act(...) is not supported in production builds of React.")}rr.Children={map:W1,forEach:function(e,t,r){W1(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return W1(e,function(){t++}),t},toArray:function(e){return W1(e,function(t){return t})||[]},only:function(e){if(!N3(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};rr.Component=cp;rr.Fragment=wq;rr.Profiler=_q;rr.PureComponent=_3;rr.StrictMode=Sq;rr.Suspense=Pq;rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Iq;rr.act=YD;rr.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=HD({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=E3.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)qD.call(t,l)&&!KD.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 c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:Fg,type:e.type,key:i,ref:a,props:n,_owner:o}};rr.createContext=function(e){return e={$$typeof:Eq,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Aq,_context:e},e.Consumer=e};rr.createElement=XD;rr.createFactory=function(e){var t=XD.bind(null,e);return t.type=e,t};rr.createRef=function(){return{current:null}};rr.forwardRef=function(e){return{$$typeof:Nq,render:e}};rr.isValidElement=N3;rr.lazy=function(e){return{$$typeof:Cq,_payload:{_status:-1,_result:e},_init:Lq}};rr.memo=function(e,t){return{$$typeof:Tq,type:e,compare:t===void 0?null:t}};rr.startTransition=function(e){var t=Gv.transition;Gv.transition={};try{e()}finally{Gv.transition=t}};rr.unstable_act=YD;rr.useCallback=function(e,t){return ma.current.useCallback(e,t)};rr.useContext=function(e){return ma.current.useContext(e)};rr.useDebugValue=function(){};rr.useDeferredValue=function(e){return ma.current.useDeferredValue(e)};rr.useEffect=function(e,t){return ma.current.useEffect(e,t)};rr.useId=function(){return ma.current.useId()};rr.useImperativeHandle=function(e,t,r){return ma.current.useImperativeHandle(e,t,r)};rr.useInsertionEffect=function(e,t){return ma.current.useInsertionEffect(e,t)};rr.useLayoutEffect=function(e,t){return ma.current.useLayoutEffect(e,t)};rr.useMemo=function(e,t){return ma.current.useMemo(e,t)};rr.useReducer=function(e,t,r){return ma.current.useReducer(e,t,r)};rr.useRef=function(e){return ma.current.useRef(e)};rr.useState=function(e){return ma.current.useState(e)};rr.useSyncExternalStore=function(e,t,r){return ma.current.useSyncExternalStore(e,t,r)};rr.useTransition=function(){return ma.current.useTransition()};rr.version="18.3.1";WD.exports=rr;var E=WD.exports;const ge=gr(E),E2=xq({__proto__:null,default:ge},[E]);/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Dq=E,Rq=Symbol.for("react.element"),Mq=Symbol.for("react.fragment"),Fq=Object.prototype.hasOwnProperty,$q=Dq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bq={key:!0,ref:!0,__self:!0,__source:!0};function JD(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)Fq.call(t,n)&&!Bq.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:Rq,type:e,key:a,ref:o,props:i,_owner:$q.current}}A2.Fragment=Mq;A2.jsx=JD;A2.jsxs=JD;UD.exports=A2;var g=UD.exports,d_={},ZD={exports:{}},oo={},QD={exports:{}},eR={};/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(e){function t(K,re){var ye=K.length;K.push(re);e:for(;0<ye;){var xe=ye-1>>>1,O=K[xe];if(0<i(O,re))K[xe]=re,K[ye]=O,ye=xe;else break e}}function r(K){return K.length===0?null:K[0]}function n(K){if(K.length===0)return null;var re=K[0],ye=K.pop();if(ye!==re){K[0]=ye;e:for(var xe=0,O=K.length,M=O>>>1;xe<M;){var F=2*(xe+1)-1,U=K[F],Z=F+1,se=K[Z];if(0>i(U,ye))Z<O&&0>i(se,U)?(K[xe]=se,K[Z]=ye,xe=Z):(K[xe]=U,K[F]=ye,xe=F);else if(Z<O&&0>i(se,ye))K[xe]=se,K[Z]=ye,xe=Z;else break e}}return re}function i(K,re){var ye=K.sortIndex-re.sortIndex;return ye!==0?ye:K.id-re.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=[],c=[],u=1,f=null,d=3,h=!1,v=!1,p=!1,m=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(K){for(var re=r(c);re!==null;){if(re.callback===null)n(c);else if(re.startTime<=K)n(c),re.sortIndex=re.expirationTime,t(l,re);else break;re=r(c)}}function S(K){if(p=!1,w(K),!v)if(r(l)!==null)v=!0,Q(A);else{var re=r(c);re!==null&&ae(S,re.startTime-K)}}function A(K,re){v=!1,p&&(p=!1,y(j),j=-1),h=!0;var ye=d;try{for(w(re),f=r(l);f!==null&&(!(f.expirationTime>re)||K&&!L());){var xe=f.callback;if(typeof xe=="function"){f.callback=null,d=f.priorityLevel;var O=xe(f.expirationTime<=re);re=e.unstable_now(),typeof O=="function"?f.callback=O:f===r(l)&&n(l),w(re)}else n(l);f=r(l)}if(f!==null)var M=!0;else{var F=r(c);F!==null&&ae(S,F.startTime-re),M=!1}return M}finally{f=null,d=ye,h=!1}}var N=!1,P=null,j=-1,C=5,R=-1;function L(){return!(e.unstable_now()-R<C)}function I(){if(P!==null){var K=e.unstable_now();R=K;var re=!0;try{re=P(!0,K)}finally{re?B():(N=!1,P=null)}}else N=!1}var B;if(typeof x=="function")B=function(){x(I)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,V=z.port2;z.port1.onmessage=I,B=function(){V.postMessage(null)}}else B=function(){m(I,0)};function Q(K){P=K,N||(N=!0,B())}function ae(K,re){j=m(function(){K(e.unstable_now())},re)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,Q(A))},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(K){switch(d){case 1:case 2:case 3:var re=3;break;default:re=d}var ye=d;d=re;try{return K()}finally{d=ye}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,re){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var ye=d;d=K;try{return re()}finally{d=ye}},e.unstable_scheduleCallback=function(K,re,ye){var xe=e.unstable_now();switch(typeof ye=="object"&&ye!==null?(ye=ye.delay,ye=typeof ye=="number"&&0<ye?xe+ye:xe):ye=xe,K){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=ye+O,K={id:u++,callback:re,priorityLevel:K,startTime:ye,expirationTime:O,sortIndex:-1},ye>xe?(K.sortIndex=ye,t(c,K),r(l)===null&&K===r(c)&&(p?(y(j),j=-1):p=!0,ae(S,ye-xe))):(K.sortIndex=O,t(l,K),v||h||(v=!0,Q(A))),K},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(K){var re=d;return function(){var ye=d;d=re;try{return K.apply(this,arguments)}finally{d=ye}}}})(eR);QD.exports=eR;var Uq=QD.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Wq=E,io=Uq;function Ke(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 tR=new Set,vm={};function Vf(e,t){bh(e,t),bh(e+"Capture",t)}function bh(e,t){for(vm[e]=t,e=0;e<t.length;e++)tR.add(t[e])}var Dl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h_=Object.prototype.hasOwnProperty,zq=/^[: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]*$/,BT={},UT={};function Hq(e){return h_.call(UT,e)?!0:h_.call(BT,e)?!1:zq.test(e)?UT[e]=!0:(BT[e]=!0,!1)}function Vq(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 Gq(e,t,r,n){if(t===null||typeof t>"u"||Vq(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 ga(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 Ri={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ri[e]=new ga(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ri[t]=new ga(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ri[e]=new ga(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ri[e]=new ga(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){Ri[e]=new ga(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ri[e]=new ga(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ri[e]=new ga(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ri[e]=new ga(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ri[e]=new ga(e,5,!1,e.toLowerCase(),null,!1,!1)});var P3=/[\-:]([a-z])/g;function T3(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(P3,T3);Ri[t]=new ga(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(P3,T3);Ri[t]=new ga(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(P3,T3);Ri[t]=new ga(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ri[e]=new ga(e,1,!1,e.toLowerCase(),null,!1,!1)});Ri.xlinkHref=new ga("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ri[e]=new ga(e,1,!1,e.toLowerCase(),null,!0,!0)});function C3(e,t,r,n){var i=Ri.hasOwnProperty(t)?Ri[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Gq(t,r,i,n)&&(r=null),n||i===null?Hq(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 Xl=Wq.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z1=Symbol.for("react.element"),Od=Symbol.for("react.portal"),kd=Symbol.for("react.fragment"),O3=Symbol.for("react.strict_mode"),p_=Symbol.for("react.profiler"),rR=Symbol.for("react.provider"),nR=Symbol.for("react.context"),k3=Symbol.for("react.forward_ref"),m_=Symbol.for("react.suspense"),g_=Symbol.for("react.suspense_list"),j3=Symbol.for("react.memo"),Tc=Symbol.for("react.lazy"),iR=Symbol.for("react.offscreen"),WT=Symbol.iterator;function f0(e){return e===null||typeof e!="object"?null:(e=WT&&e[WT]||e["@@iterator"],typeof e=="function"?e:null)}var mn=Object.assign,a5;function M0(e){if(a5===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);a5=t&&t[1]||""}return` `+a5+e}var o5=!1;function s5(e,t){if(!e||o5)return"";o5=!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(c){var n=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){n=c}e.call(t.prototype)}else{try{throw Error()}catch(c){n=c}e()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var i=c.stack.split(` `),a=n.stack.split(` `),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=` `+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{o5=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?M0(e):""}function qq(e){switch(e.tag){case 5:return M0(e.type);case 16:return M0("Lazy");case 13:return M0("Suspense");case 19:return M0("SuspenseList");case 0:case 2:case 15:return e=s5(e.type,!1),e;case 11:return e=s5(e.type.render,!1),e;case 1:return e=s5(e.type,!0),e;default:return""}}function v_(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 kd:return"Fragment";case Od:return"Portal";case p_:return"Profiler";case O3:return"StrictMode";case m_:return"Suspense";case g_:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nR:return(e.displayName||"Context")+".Consumer";case rR:return(e._context.displayName||"Context")+".Provider";case k3:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case j3:return t=e.displayName||null,t!==null?t:v_(e.type)||"Memo";case Tc:t=e._payload,e=e._init;try{return v_(e(t))}catch{}}return null}function Kq(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 v_(t);case 8:return t===O3?"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 au(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function aR(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xq(e){var t=aR(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 H1(e){e._valueTracker||(e._valueTracker=Xq(e))}function oR(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=aR(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function py(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 y_(e,t){var r=t.checked;return mn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function zT(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=au(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 sR(e,t){t=t.checked,t!=null&&C3(e,"checked",t,!1)}function x_(e,t){sR(e,t);var r=au(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")?b_(e,t.type,r):t.hasOwnProperty("defaultValue")&&b_(e,t.type,au(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function HT(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 b_(e,t,r){(t!=="number"||py(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var F0=Array.isArray;function Yd(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=""+au(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 w_(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ke(91));return mn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function VT(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(Ke(92));if(F0(r)){if(1<r.length)throw Error(Ke(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:au(r)}}function lR(e,t){var r=au(t.value),n=au(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 GT(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cR(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 S_(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cR(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var V1,uR=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(V1=V1||document.createElement("div"),V1.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=V1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ym(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var H0={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},Yq=["Webkit","ms","Moz","O"];Object.keys(H0).forEach(function(e){Yq.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),H0[t]=H0[e]})});function fR(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||H0.hasOwnProperty(e)&&H0[e]?(""+t).trim():t+"px"}function dR(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=fR(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Jq=mn({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 __(e,t){if(t){if(Jq[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ke(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ke(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ke(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ke(62))}}function A_(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 E_=null;function L3(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var N_=null,Jd=null,Zd=null;function qT(e){if(e=Ug(e)){if(typeof N_!="function")throw Error(Ke(280));var t=e.stateNode;t&&(t=O2(t),N_(e.stateNode,e.type,t))}}function hR(e){Jd?Zd?Zd.push(e):Zd=[e]:Jd=e}function pR(){if(Jd){var e=Jd,t=Zd;if(Zd=Jd=null,qT(e),t)for(e=0;e<t.length;e++)qT(t[e])}}function mR(e,t){return e(t)}function gR(){}var l5=!1;function vR(e,t,r){if(l5)return e(t,r);l5=!0;try{return mR(e,t,r)}finally{l5=!1,(Jd!==null||Zd!==null)&&(gR(),pR())}}function xm(e,t){var r=e.stateNode;if(r===null)return null;var n=O2(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(Ke(231,t,typeof r));return r}var P_=!1;if(Dl)try{var d0={};Object.defineProperty(d0,"passive",{get:function(){P_=!0}}),window.addEventListener("test",d0,d0),window.removeEventListener("test",d0,d0)}catch{P_=!1}function Zq(e,t,r,n,i,a,o,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(u){this.onError(u)}}var V0=!1,my=null,gy=!1,T_=null,Qq={onError:function(e){V0=!0,my=e}};function eK(e,t,r,n,i,a,o,s,l){V0=!1,my=null,Zq.apply(Qq,arguments)}function tK(e,t,r,n,i,a,o,s,l){if(eK.apply(this,arguments),V0){if(V0){var c=my;V0=!1,my=null}else throw Error(Ke(198));gy||(gy=!0,T_=c)}}function Gf(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 yR(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 KT(e){if(Gf(e)!==e)throw Error(Ke(188))}function rK(e){var t=e.alternate;if(!t){if(t=Gf(e),t===null)throw Error(Ke(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 KT(i),e;if(a===n)return KT(i),t;a=a.sibling}throw Error(Ke(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(Ke(189))}}if(r.alternate!==n)throw Error(Ke(190))}if(r.tag!==3)throw Error(Ke(188));return r.stateNode.current===r?e:t}function xR(e){return e=rK(e),e!==null?bR(e):null}function bR(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bR(e);if(t!==null)return t;e=e.sibling}return null}var wR=io.unstable_scheduleCallback,XT=io.unstable_cancelCallback,nK=io.unstable_shouldYield,iK=io.unstable_requestPaint,In=io.unstable_now,aK=io.unstable_getCurrentPriorityLevel,I3=io.unstable_ImmediatePriority,SR=io.unstable_UserBlockingPriority,vy=io.unstable_NormalPriority,oK=io.unstable_LowPriority,_R=io.unstable_IdlePriority,N2=null,Bs=null;function sK(e){if(Bs&&typeof Bs.onCommitFiberRoot=="function")try{Bs.onCommitFiberRoot(N2,e,void 0,(e.current.flags&128)===128)}catch{}}var us=Math.clz32?Math.clz32:uK,lK=Math.log,cK=Math.LN2;function uK(e){return e>>>=0,e===0?32:31-(lK(e)/cK|0)|0}var G1=64,q1=4194304;function $0(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 yy(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=$0(s):(a&=o,a!==0&&(n=$0(a)))}else o=r&~i,o!==0?n=$0(o):a!==0&&(n=$0(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-us(t),i=1<<r,n|=e[r],t&=~i;return n}function fK(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 dK(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-us(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=fK(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function C_(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function AR(){var e=G1;return G1<<=1,!(G1&4194240)&&(G1=64),e}function c5(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function $g(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-us(t),e[t]=r}function hK(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-us(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function D3(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-us(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var Cr=0;function ER(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var NR,R3,PR,TR,CR,O_=!1,K1=[],Wc=null,zc=null,Hc=null,bm=new Map,wm=new Map,jc=[],pK="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 YT(e,t){switch(e){case"focusin":case"focusout":Wc=null;break;case"dragenter":case"dragleave":zc=null;break;case"mouseover":case"mouseout":Hc=null;break;case"pointerover":case"pointerout":bm.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wm.delete(t.pointerId)}}function h0(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=Ug(t),t!==null&&R3(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function mK(e,t,r,n,i){switch(t){case"focusin":return Wc=h0(Wc,e,t,r,n,i),!0;case"dragenter":return zc=h0(zc,e,t,r,n,i),!0;case"mouseover":return Hc=h0(Hc,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return bm.set(a,h0(bm.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,wm.set(a,h0(wm.get(a)||null,e,t,r,n,i)),!0}return!1}function OR(e){var t=rf(e.target);if(t!==null){var r=Gf(t);if(r!==null){if(t=r.tag,t===13){if(t=yR(r),t!==null){e.blockedOn=t,CR(e.priority,function(){PR(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 qv(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=k_(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);E_=n,r.target.dispatchEvent(n),E_=null}else return t=Ug(r),t!==null&&R3(t),e.blockedOn=r,!1;t.shift()}return!0}function JT(e,t,r){qv(e)&&r.delete(t)}function gK(){O_=!1,Wc!==null&&qv(Wc)&&(Wc=null),zc!==null&&qv(zc)&&(zc=null),Hc!==null&&qv(Hc)&&(Hc=null),bm.forEach(JT),wm.forEach(JT)}function p0(e,t){e.blockedOn===t&&(e.blockedOn=null,O_||(O_=!0,io.unstable_scheduleCallback(io.unstable_NormalPriority,gK)))}function Sm(e){function t(i){return p0(i,e)}if(0<K1.length){p0(K1[0],e);for(var r=1;r<K1.length;r++){var n=K1[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Wc!==null&&p0(Wc,e),zc!==null&&p0(zc,e),Hc!==null&&p0(Hc,e),bm.forEach(t),wm.forEach(t),r=0;r<jc.length;r++)n=jc[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<jc.length&&(r=jc[0],r.blockedOn===null);)OR(r),r.blockedOn===null&&jc.shift()}var Qd=Xl.ReactCurrentBatchConfig,xy=!0;function vK(e,t,r,n){var i=Cr,a=Qd.transition;Qd.transition=null;try{Cr=1,M3(e,t,r,n)}finally{Cr=i,Qd.transition=a}}function yK(e,t,r,n){var i=Cr,a=Qd.transition;Qd.transition=null;try{Cr=4,M3(e,t,r,n)}finally{Cr=i,Qd.transition=a}}function M3(e,t,r,n){if(xy){var i=k_(e,t,r,n);if(i===null)x5(e,t,n,by,r),YT(e,n);else if(mK(i,e,t,r,n))n.stopPropagation();else if(YT(e,n),t&4&&-1<pK.indexOf(e)){for(;i!==null;){var a=Ug(i);if(a!==null&&NR(a),a=k_(e,t,r,n),a===null&&x5(e,t,n,by,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else x5(e,t,n,null,r)}}var by=null;function k_(e,t,r,n){if(by=null,e=L3(n),e=rf(e),e!==null)if(t=Gf(e),t===null)e=null;else if(r=t.tag,r===13){if(e=yR(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 by=e,null}function kR(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(aK()){case I3:return 1;case SR:return 4;case vy:case oK:return 16;case _R:return 536870912;default:return 16}default:return 16}}var Dc=null,F3=null,Kv=null;function jR(){if(Kv)return Kv;var e,t=F3,r=t.length,n,i="value"in Dc?Dc.value:Dc.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 Kv=i.slice(e,1<n?1-n:void 0)}function Xv(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 X1(){return!0}function ZT(){return!1}function so(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)?X1:ZT,this.isPropagationStopped=ZT,this}return mn(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=X1)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=X1)},persist:function(){},isPersistent:X1}),t}var up={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$3=so(up),Bg=mn({},up,{view:0,detail:0}),xK=so(Bg),u5,f5,m0,P2=mn({},Bg,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:B3,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!==m0&&(m0&&e.type==="mousemove"?(u5=e.screenX-m0.screenX,f5=e.screenY-m0.screenY):f5=u5=0,m0=e),u5)},movementY:function(e){return"movementY"in e?e.movementY:f5}}),QT=so(P2),bK=mn({},P2,{dataTransfer:0}),wK=so(bK),SK=mn({},Bg,{relatedTarget:0}),d5=so(SK),_K=mn({},up,{animationName:0,elapsedTime:0,pseudoElement:0}),AK=so(_K),EK=mn({},up,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NK=so(EK),PK=mn({},up,{data:0}),eC=so(PK),TK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CK={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"},OK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kK(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=OK[e])?!!t[e]:!1}function B3(){return kK}var jK=mn({},Bg,{key:function(e){if(e.key){var t=TK[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xv(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?CK[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:B3,charCode:function(e){return e.type==="keypress"?Xv(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xv(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),LK=so(jK),IK=mn({},P2,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tC=so(IK),DK=mn({},Bg,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:B3}),RK=so(DK),MK=mn({},up,{propertyName:0,elapsedTime:0,pseudoElement:0}),FK=so(MK),$K=mn({},P2,{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}),BK=so($K),UK=[9,13,27,32],U3=Dl&&"CompositionEvent"in window,G0=null;Dl&&"documentMode"in document&&(G0=document.documentMode);var WK=Dl&&"TextEvent"in window&&!G0,LR=Dl&&(!U3||G0&&8<G0&&11>=G0),rC=" ",nC=!1;function IR(e,t){switch(e){case"keyup":return UK.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DR(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jd=!1;function zK(e,t){switch(e){case"compositionend":return DR(t);case"keypress":return t.which!==32?null:(nC=!0,rC);case"textInput":return e=t.data,e===rC&&nC?null:e;default:return null}}function HK(e,t){if(jd)return e==="compositionend"||!U3&&IR(e,t)?(e=jR(),Kv=F3=Dc=null,jd=!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 LR&&t.locale!=="ko"?null:t.data;default:return null}}var VK={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 iC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!VK[e.type]:t==="textarea"}function RR(e,t,r,n){hR(n),t=wy(t,"onChange"),0<t.length&&(r=new $3("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var q0=null,_m=null;function GK(e){qR(e,0)}function T2(e){var t=Dd(e);if(oR(t))return e}function qK(e,t){if(e==="change")return t}var MR=!1;if(Dl){var h5;if(Dl){var p5="oninput"in document;if(!p5){var aC=document.createElement("div");aC.setAttribute("oninput","return;"),p5=typeof aC.oninput=="function"}h5=p5}else h5=!1;MR=h5&&(!document.documentMode||9<document.documentMode)}function oC(){q0&&(q0.detachEvent("onpropertychange",FR),_m=q0=null)}function FR(e){if(e.propertyName==="value"&&T2(_m)){var t=[];RR(t,_m,e,L3(e)),vR(GK,t)}}function KK(e,t,r){e==="focusin"?(oC(),q0=t,_m=r,q0.attachEvent("onpropertychange",FR)):e==="focusout"&&oC()}function XK(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return T2(_m)}function YK(e,t){if(e==="click")return T2(t)}function JK(e,t){if(e==="input"||e==="change")return T2(t)}function ZK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ps=typeof Object.is=="function"?Object.is:ZK;function Am(e,t){if(ps(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(!h_.call(t,i)||!ps(e[i],t[i]))return!1}return!0}function sC(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lC(e,t){var r=sC(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=sC(r)}}function $R(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$R(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function BR(){for(var e=window,t=py();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=py(e.document)}return t}function W3(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 QK(e){var t=BR(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&$R(r.ownerDocument.documentElement,r)){if(n!==null&&W3(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=lC(r,a);var o=lC(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 eX=Dl&&"documentMode"in document&&11>=document.documentMode,Ld=null,j_=null,K0=null,L_=!1;function cC(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;L_||Ld==null||Ld!==py(n)||(n=Ld,"selectionStart"in n&&W3(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),K0&&Am(K0,n)||(K0=n,n=wy(j_,"onSelect"),0<n.length&&(t=new $3("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Ld)))}function Y1(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Id={animationend:Y1("Animation","AnimationEnd"),animationiteration:Y1("Animation","AnimationIteration"),animationstart:Y1("Animation","AnimationStart"),transitionend:Y1("Transition","TransitionEnd")},m5={},UR={};Dl&&(UR=document.createElement("div").style,"AnimationEvent"in window||(delete Id.animationend.animation,delete Id.animationiteration.animation,delete Id.animationstart.animation),"TransitionEvent"in window||delete Id.transitionend.transition);function C2(e){if(m5[e])return m5[e];if(!Id[e])return e;var t=Id[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in UR)return m5[e]=t[r];return e}var WR=C2("animationend"),zR=C2("animationiteration"),HR=C2("animationstart"),VR=C2("transitionend"),GR=new Map,uC="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 gu(e,t){GR.set(e,t),Vf(t,[e])}for(var g5=0;g5<uC.length;g5++){var v5=uC[g5],tX=v5.toLowerCase(),rX=v5[0].toUpperCase()+v5.slice(1);gu(tX,"on"+rX)}gu(WR,"onAnimationEnd");gu(zR,"onAnimationIteration");gu(HR,"onAnimationStart");gu("dblclick","onDoubleClick");gu("focusin","onFocus");gu("focusout","onBlur");gu(VR,"onTransitionEnd");bh("onMouseEnter",["mouseout","mouseover"]);bh("onMouseLeave",["mouseout","mouseover"]);bh("onPointerEnter",["pointerout","pointerover"]);bh("onPointerLeave",["pointerout","pointerover"]);Vf("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Vf("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Vf("onBeforeInput",["compositionend","keypress","textInput","paste"]);Vf("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Vf("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Vf("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var B0="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(" "),nX=new Set("cancel close invalid load scroll toggle".split(" ").concat(B0));function fC(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,tK(n,t,void 0,e),e.currentTarget=null}function qR(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,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;fC(i,s,c),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;fC(i,s,c),a=l}}}if(gy)throw e=T_,gy=!1,T_=null,e}function Qr(e,t){var r=t[F_];r===void 0&&(r=t[F_]=new Set);var n=e+"__bubble";r.has(n)||(KR(t,e,2,!1),r.add(n))}function y5(e,t,r){var n=0;t&&(n|=4),KR(r,e,n,t)}var J1="_reactListening"+Math.random().toString(36).slice(2);function Em(e){if(!e[J1]){e[J1]=!0,tR.forEach(function(r){r!=="selectionchange"&&(nX.has(r)||y5(r,!1,e),y5(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[J1]||(t[J1]=!0,y5("selectionchange",!1,t))}}function KR(e,t,r,n){switch(kR(t)){case 1:var i=vK;break;case 4:i=yK;break;default:i=M3}r=i.bind(null,t,r,e),i=void 0,!P_||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 x5(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;if(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=rf(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}vR(function(){var c=a,u=L3(r),f=[];e:{var d=GR.get(e);if(d!==void 0){var h=$3,v=e;switch(e){case"keypress":if(Xv(r)===0)break e;case"keydown":case"keyup":h=LK;break;case"focusin":v="focus",h=d5;break;case"focusout":v="blur",h=d5;break;case"beforeblur":case"afterblur":h=d5;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=QT;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=wK;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=RK;break;case WR:case zR:case HR:h=AK;break;case VR:h=FK;break;case"scroll":h=xK;break;case"wheel":h=BK;break;case"copy":case"cut":case"paste":h=NK;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=tC}var p=(t&4)!==0,m=!p&&e==="scroll",y=p?d!==null?d+"Capture":null:d;p=[];for(var x=c,w;x!==null;){w=x;var S=w.stateNode;if(w.tag===5&&S!==null&&(w=S,y!==null&&(S=xm(x,y),S!=null&&p.push(Nm(x,S,w)))),m)break;x=x.return}0<p.length&&(d=new h(d,v,null,r,u),f.push({event:d,listeners:p}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&r!==E_&&(v=r.relatedTarget||r.fromElement)&&(rf(v)||v[Rl]))break e;if((h||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,h?(v=r.relatedTarget||r.toElement,h=c,v=v?rf(v):null,v!==null&&(m=Gf(v),v!==m||v.tag!==5&&v.tag!==6)&&(v=null)):(h=null,v=c),h!==v)){if(p=QT,S="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(p=tC,S="onPointerLeave",y="onPointerEnter",x="pointer"),m=h==null?d:Dd(h),w=v==null?d:Dd(v),d=new p(S,x+"leave",h,r,u),d.target=m,d.relatedTarget=w,S=null,rf(u)===c&&(p=new p(y,x+"enter",v,r,u),p.target=w,p.relatedTarget=m,S=p),m=S,h&&v)t:{for(p=h,y=v,x=0,w=p;w;w=pd(w))x++;for(w=0,S=y;S;S=pd(S))w++;for(;0<x-w;)p=pd(p),x--;for(;0<w-x;)y=pd(y),w--;for(;x--;){if(p===y||y!==null&&p===y.alternate)break t;p=pd(p),y=pd(y)}p=null}else p=null;h!==null&&dC(f,d,h,p,!1),v!==null&&m!==null&&dC(f,m,v,p,!0)}}e:{if(d=c?Dd(c):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var A=qK;else if(iC(d))if(MR)A=JK;else{A=XK;var N=KK}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(A=YK);if(A&&(A=A(e,c))){RR(f,A,r,u);break e}N&&N(e,d,c),e==="focusout"&&(N=d._wrapperState)&&N.controlled&&d.type==="number"&&b_(d,"number",d.value)}switch(N=c?Dd(c):window,e){case"focusin":(iC(N)||N.contentEditable==="true")&&(Ld=N,j_=c,K0=null);break;case"focusout":K0=j_=Ld=null;break;case"mousedown":L_=!0;break;case"contextmenu":case"mouseup":case"dragend":L_=!1,cC(f,r,u);break;case"selectionchange":if(eX)break;case"keydown":case"keyup":cC(f,r,u)}var P;if(U3)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else jd?IR(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(LR&&r.locale!=="ko"&&(jd||j!=="onCompositionStart"?j==="onCompositionEnd"&&jd&&(P=jR()):(Dc=u,F3="value"in Dc?Dc.value:Dc.textContent,jd=!0)),N=wy(c,j),0<N.length&&(j=new eC(j,e,null,r,u),f.push({event:j,listeners:N}),P?j.data=P:(P=DR(r),P!==null&&(j.data=P)))),(P=WK?zK(e,r):HK(e,r))&&(c=wy(c,"onBeforeInput"),0<c.length&&(u=new eC("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:c}),u.data=P))}qR(f,t)})}function Nm(e,t,r){return{instance:e,listener:t,currentTarget:r}}function wy(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=xm(e,r),a!=null&&n.unshift(Nm(e,a,i)),a=xm(e,t),a!=null&&n.push(Nm(e,a,i))),e=e.return}return n}function pd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function dC(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,i?(l=xm(r,a),l!=null&&o.unshift(Nm(r,l,s))):i||(l=xm(r,a),l!=null&&o.push(Nm(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var iX=/\r\n?/g,aX=/\u0000|\uFFFD/g;function hC(e){return(typeof e=="string"?e:""+e).replace(iX,` `).replace(aX,"")}function Z1(e,t,r){if(t=hC(t),hC(e)!==t&&r)throw Error(Ke(425))}function Sy(){}var I_=null,D_=null;function R_(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 M_=typeof setTimeout=="function"?setTimeout:void 0,oX=typeof clearTimeout=="function"?clearTimeout:void 0,pC=typeof Promise=="function"?Promise:void 0,sX=typeof queueMicrotask=="function"?queueMicrotask:typeof pC<"u"?function(e){return pC.resolve(null).then(e).catch(lX)}:M_;function lX(e){setTimeout(function(){throw e})}function b5(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),Sm(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Sm(t)}function Vc(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 mC(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 fp=Math.random().toString(36).slice(2),Ds="__reactFiber$"+fp,Pm="__reactProps$"+fp,Rl="__reactContainer$"+fp,F_="__reactEvents$"+fp,cX="__reactListeners$"+fp,uX="__reactHandles$"+fp;function rf(e){var t=e[Ds];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Rl]||r[Ds]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=mC(e);e!==null;){if(r=e[Ds])return r;e=mC(e)}return t}e=r,r=e.parentNode}return null}function Ug(e){return e=e[Ds]||e[Rl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Dd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ke(33))}function O2(e){return e[Pm]||null}var $_=[],Rd=-1;function vu(e){return{current:e}}function nn(e){0>Rd||(e.current=$_[Rd],$_[Rd]=null,Rd--)}function Kr(e,t){Rd++,$_[Rd]=e.current,e.current=t}var ou={},Zi=vu(ou),Aa=vu(!1),gf=ou;function wh(e,t){var r=e.type.contextTypes;if(!r)return ou;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 Ea(e){return e=e.childContextTypes,e!=null}function _y(){nn(Aa),nn(Zi)}function gC(e,t,r){if(Zi.current!==ou)throw Error(Ke(168));Kr(Zi,t),Kr(Aa,r)}function XR(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(Ke(108,Kq(e)||"Unknown",i));return mn({},r,n)}function Ay(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ou,gf=Zi.current,Kr(Zi,e),Kr(Aa,Aa.current),!0}function vC(e,t,r){var n=e.stateNode;if(!n)throw Error(Ke(169));r?(e=XR(e,t,gf),n.__reactInternalMemoizedMergedChildContext=e,nn(Aa),nn(Zi),Kr(Zi,e)):nn(Aa),Kr(Aa,r)}var wl=null,k2=!1,w5=!1;function YR(e){wl===null?wl=[e]:wl.push(e)}function fX(e){k2=!0,YR(e)}function yu(){if(!w5&&wl!==null){w5=!0;var e=0,t=Cr;try{var r=wl;for(Cr=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}wl=null,k2=!1}catch(i){throw wl!==null&&(wl=wl.slice(e+1)),wR(I3,yu),i}finally{Cr=t,w5=!1}}return null}var Md=[],Fd=0,Ey=null,Ny=0,Ao=[],Eo=0,vf=null,_l=1,Al="";function Gu(e,t){Md[Fd++]=Ny,Md[Fd++]=Ey,Ey=e,Ny=t}function JR(e,t,r){Ao[Eo++]=_l,Ao[Eo++]=Al,Ao[Eo++]=vf,vf=e;var n=_l;e=Al;var i=32-us(n)-1;n&=~(1<<i),r+=1;var a=32-us(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,_l=1<<32-us(t)+i|r<<i|n,Al=a+e}else _l=1<<a|r<<i|n,Al=e}function z3(e){e.return!==null&&(Gu(e,1),JR(e,1,0))}function H3(e){for(;e===Ey;)Ey=Md[--Fd],Md[Fd]=null,Ny=Md[--Fd],Md[Fd]=null;for(;e===vf;)vf=Ao[--Eo],Ao[Eo]=null,Al=Ao[--Eo],Ao[Eo]=null,_l=Ao[--Eo],Ao[Eo]=null}var Qa=null,Ya=null,cn=!1,as=null;function ZR(e,t){var r=Po(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 yC(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,Qa=e,Ya=Vc(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Qa=e,Ya=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=vf!==null?{id:_l,overflow:Al}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Po(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Qa=e,Ya=null,!0):!1;default:return!1}}function B_(e){return(e.mode&1)!==0&&(e.flags&128)===0}function U_(e){if(cn){var t=Ya;if(t){var r=t;if(!yC(e,t)){if(B_(e))throw Error(Ke(418));t=Vc(r.nextSibling);var n=Qa;t&&yC(e,t)?ZR(n,r):(e.flags=e.flags&-4097|2,cn=!1,Qa=e)}}else{if(B_(e))throw Error(Ke(418));e.flags=e.flags&-4097|2,cn=!1,Qa=e}}}function xC(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Qa=e}function Q1(e){if(e!==Qa)return!1;if(!cn)return xC(e),cn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!R_(e.type,e.memoizedProps)),t&&(t=Ya)){if(B_(e))throw QR(),Error(Ke(418));for(;t;)ZR(e,t),t=Vc(t.nextSibling)}if(xC(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ke(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ya=Vc(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ya=null}}else Ya=Qa?Vc(e.stateNode.nextSibling):null;return!0}function QR(){for(var e=Ya;e;)e=Vc(e.nextSibling)}function Sh(){Ya=Qa=null,cn=!1}function V3(e){as===null?as=[e]:as.push(e)}var dX=Xl.ReactCurrentBatchConfig;function g0(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(Ke(309));var n=r.stateNode}if(!n)throw Error(Ke(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(Ke(284));if(!r._owner)throw Error(Ke(290,e))}return e}function ev(e,t){throw e=Object.prototype.toString.call(t),Error(Ke(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bC(e){var t=e._init;return t(e._payload)}function eM(e){function t(y,x){if(e){var w=y.deletions;w===null?(y.deletions=[x],y.flags|=16):w.push(x)}}function r(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function n(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function i(y,x){return y=Xc(y,x),y.index=0,y.sibling=null,y}function a(y,x,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<x?(y.flags|=2,x):w):(y.flags|=2,x)):(y.flags|=1048576,x)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,x,w,S){return x===null||x.tag!==6?(x=T5(w,y.mode,S),x.return=y,x):(x=i(x,w),x.return=y,x)}function l(y,x,w,S){var A=w.type;return A===kd?u(y,x,w.props.children,S,w.key):x!==null&&(x.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Tc&&bC(A)===x.type)?(S=i(x,w.props),S.ref=g0(y,x,w),S.return=y,S):(S=ry(w.type,w.key,w.props,null,y.mode,S),S.ref=g0(y,x,w),S.return=y,S)}function c(y,x,w,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=C5(w,y.mode,S),x.return=y,x):(x=i(x,w.children||[]),x.return=y,x)}function u(y,x,w,S,A){return x===null||x.tag!==7?(x=ff(w,y.mode,S,A),x.return=y,x):(x=i(x,w),x.return=y,x)}function f(y,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=T5(""+x,y.mode,w),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case z1:return w=ry(x.type,x.key,x.props,null,y.mode,w),w.ref=g0(y,null,x),w.return=y,w;case Od:return x=C5(x,y.mode,w),x.return=y,x;case Tc:var S=x._init;return f(y,S(x._payload),w)}if(F0(x)||f0(x))return x=ff(x,y.mode,w,null),x.return=y,x;ev(y,x)}return null}function d(y,x,w,S){var A=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return A!==null?null:s(y,x,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case z1:return w.key===A?l(y,x,w,S):null;case Od:return w.key===A?c(y,x,w,S):null;case Tc:return A=w._init,d(y,x,A(w._payload),S)}if(F0(w)||f0(w))return A!==null?null:u(y,x,w,S,null);ev(y,w)}return null}function h(y,x,w,S,A){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(w)||null,s(x,y,""+S,A);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case z1:return y=y.get(S.key===null?w:S.key)||null,l(x,y,S,A);case Od:return y=y.get(S.key===null?w:S.key)||null,c(x,y,S,A);case Tc:var N=S._init;return h(y,x,w,N(S._payload),A)}if(F0(S)||f0(S))return y=y.get(w)||null,u(x,y,S,A,null);ev(x,S)}return null}function v(y,x,w,S){for(var A=null,N=null,P=x,j=x=0,C=null;P!==null&&j<w.length;j++){P.index>j?(C=P,P=null):C=P.sibling;var R=d(y,P,w[j],S);if(R===null){P===null&&(P=C);break}e&&P&&R.alternate===null&&t(y,P),x=a(R,x,j),N===null?A=R:N.sibling=R,N=R,P=C}if(j===w.length)return r(y,P),cn&&Gu(y,j),A;if(P===null){for(;j<w.length;j++)P=f(y,w[j],S),P!==null&&(x=a(P,x,j),N===null?A=P:N.sibling=P,N=P);return cn&&Gu(y,j),A}for(P=n(y,P);j<w.length;j++)C=h(P,y,j,w[j],S),C!==null&&(e&&C.alternate!==null&&P.delete(C.key===null?j:C.key),x=a(C,x,j),N===null?A=C:N.sibling=C,N=C);return e&&P.forEach(function(L){return t(y,L)}),cn&&Gu(y,j),A}function p(y,x,w,S){var A=f0(w);if(typeof A!="function")throw Error(Ke(150));if(w=A.call(w),w==null)throw Error(Ke(151));for(var N=A=null,P=x,j=x=0,C=null,R=w.next();P!==null&&!R.done;j++,R=w.next()){P.index>j?(C=P,P=null):C=P.sibling;var L=d(y,P,R.value,S);if(L===null){P===null&&(P=C);break}e&&P&&L.alternate===null&&t(y,P),x=a(L,x,j),N===null?A=L:N.sibling=L,N=L,P=C}if(R.done)return r(y,P),cn&&Gu(y,j),A;if(P===null){for(;!R.done;j++,R=w.next())R=f(y,R.value,S),R!==null&&(x=a(R,x,j),N===null?A=R:N.sibling=R,N=R);return cn&&Gu(y,j),A}for(P=n(y,P);!R.done;j++,R=w.next())R=h(P,y,j,R.value,S),R!==null&&(e&&R.alternate!==null&&P.delete(R.key===null?j:R.key),x=a(R,x,j),N===null?A=R:N.sibling=R,N=R);return e&&P.forEach(function(I){return t(y,I)}),cn&&Gu(y,j),A}function m(y,x,w,S){if(typeof w=="object"&&w!==null&&w.type===kd&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case z1:e:{for(var A=w.key,N=x;N!==null;){if(N.key===A){if(A=w.type,A===kd){if(N.tag===7){r(y,N.sibling),x=i(N,w.props.children),x.return=y,y=x;break e}}else if(N.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Tc&&bC(A)===N.type){r(y,N.sibling),x=i(N,w.props),x.ref=g0(y,N,w),x.return=y,y=x;break e}r(y,N);break}else t(y,N);N=N.sibling}w.type===kd?(x=ff(w.props.children,y.mode,S,w.key),x.return=y,y=x):(S=ry(w.type,w.key,w.props,null,y.mode,S),S.ref=g0(y,x,w),S.return=y,y=S)}return o(y);case Od:e:{for(N=w.key;x!==null;){if(x.key===N)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){r(y,x.sibling),x=i(x,w.children||[]),x.return=y,y=x;break e}else{r(y,x);break}else t(y,x);x=x.sibling}x=C5(w,y.mode,S),x.return=y,y=x}return o(y);case Tc:return N=w._init,m(y,x,N(w._payload),S)}if(F0(w))return v(y,x,w,S);if(f0(w))return p(y,x,w,S);ev(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(r(y,x.sibling),x=i(x,w),x.return=y,y=x):(r(y,x),x=T5(w,y.mode,S),x.return=y,y=x),o(y)):r(y,x)}return m}var _h=eM(!0),tM=eM(!1),Py=vu(null),Ty=null,$d=null,G3=null;function q3(){G3=$d=Ty=null}function K3(e){var t=Py.current;nn(Py),e._currentValue=t}function W_(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 eh(e,t){Ty=e,G3=$d=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Sa=!0),e.firstContext=null)}function Lo(e){var t=e._currentValue;if(G3!==e)if(e={context:e,memoizedValue:t,next:null},$d===null){if(Ty===null)throw Error(Ke(308));$d=e,Ty.dependencies={lanes:0,firstContext:e}}else $d=$d.next=e;return t}var nf=null;function X3(e){nf===null?nf=[e]:nf.push(e)}function rM(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,X3(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ml(e,n)}function Ml(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 Cc=!1;function Y3(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function nM(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 Cl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Gc(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,fr&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ml(e,r)}return i=n.interleaved,i===null?(t.next=t,X3(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ml(e,r)}function Yv(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,D3(e,r)}}function wC(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 Cy(e,t,r,n){var i=e.updateQueue;Cc=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;o=0,u=c=l=null,s=a;do{var d=s.lane,h=s.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,p=s;switch(d=t,h=r,p.tag){case 1:if(v=p.payload,typeof v=="function"){f=v.call(h,f,d);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,d=typeof v=="function"?v.call(h,f,d):v,d==null)break e;f=mn({},f,d);break e;case 2:Cc=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,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(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,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);xf|=o,e.lanes=o,e.memoizedState=f}}function SC(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(Ke(191,i));i.call(n)}}}var Wg={},Us=vu(Wg),Tm=vu(Wg),Cm=vu(Wg);function af(e){if(e===Wg)throw Error(Ke(174));return e}function J3(e,t){switch(Kr(Cm,t),Kr(Tm,e),Kr(Us,Wg),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:S_(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=S_(t,e)}nn(Us),Kr(Us,t)}function Ah(){nn(Us),nn(Tm),nn(Cm)}function iM(e){af(Cm.current);var t=af(Us.current),r=S_(t,e.type);t!==r&&(Kr(Tm,e),Kr(Us,r))}function Z3(e){Tm.current===e&&(nn(Us),nn(Tm))}var dn=vu(0);function Oy(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 S5=[];function Q3(){for(var e=0;e<S5.length;e++)S5[e]._workInProgressVersionPrimary=null;S5.length=0}var Jv=Xl.ReactCurrentDispatcher,_5=Xl.ReactCurrentBatchConfig,yf=0,hn=null,ii=null,fi=null,ky=!1,X0=!1,Om=0,hX=0;function Bi(){throw Error(Ke(321))}function eE(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ps(e[r],t[r]))return!1;return!0}function tE(e,t,r,n,i,a){if(yf=a,hn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Jv.current=e===null||e.memoizedState===null?vX:yX,e=r(n,i),X0){a=0;do{if(X0=!1,Om=0,25<=a)throw Error(Ke(301));a+=1,fi=ii=null,t.updateQueue=null,Jv.current=xX,e=r(n,i)}while(X0)}if(Jv.current=jy,t=ii!==null&&ii.next!==null,yf=0,fi=ii=hn=null,ky=!1,t)throw Error(Ke(300));return e}function rE(){var e=Om!==0;return Om=0,e}function Is(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fi===null?hn.memoizedState=fi=e:fi=fi.next=e,fi}function Io(){if(ii===null){var e=hn.alternate;e=e!==null?e.memoizedState:null}else e=ii.next;var t=fi===null?hn.memoizedState:fi.next;if(t!==null)fi=t,ii=e;else{if(e===null)throw Error(Ke(310));ii=e,e={memoizedState:ii.memoizedState,baseState:ii.baseState,baseQueue:ii.baseQueue,queue:ii.queue,next:null},fi===null?hn.memoizedState=fi=e:fi=fi.next=e}return fi}function km(e,t){return typeof t=="function"?t(e):t}function A5(e){var t=Io(),r=t.queue;if(r===null)throw Error(Ke(311));r.lastRenderedReducer=e;var n=ii,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,c=a;do{var u=c.lane;if((yf&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=f,o=n):l=l.next=f,hn.lanes|=u,xf|=u}c=c.next}while(c!==null&&c!==a);l===null?o=n:l.next=s,ps(n,t.memoizedState)||(Sa=!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,hn.lanes|=a,xf|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function E5(e){var t=Io(),r=t.queue;if(r===null)throw Error(Ke(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);ps(a,t.memoizedState)||(Sa=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function aM(){}function oM(e,t){var r=hn,n=Io(),i=t(),a=!ps(n.memoizedState,i);if(a&&(n.memoizedState=i,Sa=!0),n=n.queue,nE(cM.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||fi!==null&&fi.memoizedState.tag&1){if(r.flags|=2048,jm(9,lM.bind(null,r,n,i,t),void 0,null),vi===null)throw Error(Ke(349));yf&30||sM(r,t,i)}return i}function sM(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=hn.updateQueue,t===null?(t={lastEffect:null,stores:null},hn.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function lM(e,t,r,n){t.value=r,t.getSnapshot=n,uM(t)&&fM(e)}function cM(e,t,r){return r(function(){uM(t)&&fM(e)})}function uM(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ps(e,r)}catch{return!0}}function fM(e){var t=Ml(e,1);t!==null&&fs(t,e,1,-1)}function _C(e){var t=Is();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:km,lastRenderedState:e},t.queue=e,e=e.dispatch=gX.bind(null,hn,e),[t.memoizedState,e]}function jm(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=hn.updateQueue,t===null?(t={lastEffect:null,stores:null},hn.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 dM(){return Io().memoizedState}function Zv(e,t,r,n){var i=Is();hn.flags|=e,i.memoizedState=jm(1|t,r,void 0,n===void 0?null:n)}function j2(e,t,r,n){var i=Io();n=n===void 0?null:n;var a=void 0;if(ii!==null){var o=ii.memoizedState;if(a=o.destroy,n!==null&&eE(n,o.deps)){i.memoizedState=jm(t,r,a,n);return}}hn.flags|=e,i.memoizedState=jm(1|t,r,a,n)}function AC(e,t){return Zv(8390656,8,e,t)}function nE(e,t){return j2(2048,8,e,t)}function hM(e,t){return j2(4,2,e,t)}function pM(e,t){return j2(4,4,e,t)}function mM(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 gM(e,t,r){return r=r!=null?r.concat([e]):null,j2(4,4,mM.bind(null,t,e),r)}function iE(){}function vM(e,t){var r=Io();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&eE(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function yM(e,t){var r=Io();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&eE(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function xM(e,t,r){return yf&21?(ps(r,t)||(r=AR(),hn.lanes|=r,xf|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Sa=!0),e.memoizedState=r)}function pX(e,t){var r=Cr;Cr=r!==0&&4>r?r:4,e(!0);var n=_5.transition;_5.transition={};try{e(!1),t()}finally{Cr=r,_5.transition=n}}function bM(){return Io().memoizedState}function mX(e,t,r){var n=Kc(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},wM(e))SM(t,r);else if(r=rM(e,t,r,n),r!==null){var i=ha();fs(r,e,n,i),_M(r,t,n)}}function gX(e,t,r){var n=Kc(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(wM(e))SM(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,ps(s,o)){var l=t.interleaved;l===null?(i.next=i,X3(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=rM(e,t,i,n),r!==null&&(i=ha(),fs(r,e,n,i),_M(r,t,n))}}function wM(e){var t=e.alternate;return e===hn||t!==null&&t===hn}function SM(e,t){X0=ky=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function _M(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,D3(e,r)}}var jy={readContext:Lo,useCallback:Bi,useContext:Bi,useEffect:Bi,useImperativeHandle:Bi,useInsertionEffect:Bi,useLayoutEffect:Bi,useMemo:Bi,useReducer:Bi,useRef:Bi,useState:Bi,useDebugValue:Bi,useDeferredValue:Bi,useTransition:Bi,useMutableSource:Bi,useSyncExternalStore:Bi,useId:Bi,unstable_isNewReconciler:!1},vX={readContext:Lo,useCallback:function(e,t){return Is().memoizedState=[e,t===void 0?null:t],e},useContext:Lo,useEffect:AC,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Zv(4194308,4,mM.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Zv(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zv(4,2,e,t)},useMemo:function(e,t){var r=Is();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Is();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=mX.bind(null,hn,e),[n.memoizedState,e]},useRef:function(e){var t=Is();return e={current:e},t.memoizedState=e},useState:_C,useDebugValue:iE,useDeferredValue:function(e){return Is().memoizedState=e},useTransition:function(){var e=_C(!1),t=e[0];return e=pX.bind(null,e[1]),Is().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=hn,i=Is();if(cn){if(r===void 0)throw Error(Ke(407));r=r()}else{if(r=t(),vi===null)throw Error(Ke(349));yf&30||sM(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,AC(cM.bind(null,n,a,e),[e]),n.flags|=2048,jm(9,lM.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Is(),t=vi.identifierPrefix;if(cn){var r=Al,n=_l;r=(n&~(1<<32-us(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Om++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=hX++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yX={readContext:Lo,useCallback:vM,useContext:Lo,useEffect:nE,useImperativeHandle:gM,useInsertionEffect:hM,useLayoutEffect:pM,useMemo:yM,useReducer:A5,useRef:dM,useState:function(){return A5(km)},useDebugValue:iE,useDeferredValue:function(e){var t=Io();return xM(t,ii.memoizedState,e)},useTransition:function(){var e=A5(km)[0],t=Io().memoizedState;return[e,t]},useMutableSource:aM,useSyncExternalStore:oM,useId:bM,unstable_isNewReconciler:!1},xX={readContext:Lo,useCallback:vM,useContext:Lo,useEffect:nE,useImperativeHandle:gM,useInsertionEffect:hM,useLayoutEffect:pM,useMemo:yM,useReducer:E5,useRef:dM,useState:function(){return E5(km)},useDebugValue:iE,useDeferredValue:function(e){var t=Io();return ii===null?t.memoizedState=e:xM(t,ii.memoizedState,e)},useTransition:function(){var e=E5(km)[0],t=Io().memoizedState;return[e,t]},useMutableSource:aM,useSyncExternalStore:oM,useId:bM,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){t=mn({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function z_(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:mn({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var L2={isMounted:function(e){return(e=e._reactInternals)?Gf(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ha(),i=Kc(e),a=Cl(n,i);a.payload=t,r!=null&&(a.callback=r),t=Gc(e,a,i),t!==null&&(fs(t,e,i,n),Yv(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ha(),i=Kc(e),a=Cl(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=Gc(e,a,i),t!==null&&(fs(t,e,i,n),Yv(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ha(),n=Kc(e),i=Cl(r,n);i.tag=2,t!=null&&(i.callback=t),t=Gc(e,i,n),t!==null&&(fs(t,e,n,r),Yv(t,e,n))}};function EC(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?!Am(r,n)||!Am(i,a):!0}function AM(e,t,r){var n=!1,i=ou,a=t.contextType;return typeof a=="object"&&a!==null?a=Lo(a):(i=Ea(t)?gf:Zi.current,n=t.contextTypes,a=(n=n!=null)?wh(e,i):ou),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=L2,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function NC(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&&L2.enqueueReplaceState(t,t.state,null)}function H_(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Y3(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Lo(a):(a=Ea(t)?gf:Zi.current,i.context=wh(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(z_(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&&L2.enqueueReplaceState(i,i.state,null),Cy(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Eh(e,t){try{var r="",n=t;do r+=qq(n),n=n.return;while(n);var i=r}catch(a){i=` Error generating stack: `+a.message+` `+a.stack}return{value:e,source:t,stack:i,digest:null}}function N5(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function V_(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var bX=typeof WeakMap=="function"?WeakMap:Map;function EM(e,t,r){r=Cl(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Iy||(Iy=!0,tA=n),V_(e,t)},r}function NM(e,t,r){r=Cl(-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(){V_(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){V_(e,t),typeof n!="function"&&(qc===null?qc=new Set([this]):qc.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function PC(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new bX;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=IX.bind(null,e,t,r),t.then(e,e))}function TC(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 CC(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=Cl(-1,1),t.tag=2,Gc(r,t,1))),r.lanes|=1),e)}var wX=Xl.ReactCurrentOwner,Sa=!1;function oa(e,t,r,n){t.child=e===null?tM(t,null,r,n):_h(t,e.child,r,n)}function OC(e,t,r,n,i){r=r.render;var a=t.ref;return eh(t,i),n=tE(e,t,r,n,a,i),r=rE(),e!==null&&!Sa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fl(e,t,i)):(cn&&r&&z3(t),t.flags|=1,oa(e,t,n,i),t.child)}function kC(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!dE(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,PM(e,t,a,n,i)):(e=ry(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:Am,r(o,n)&&e.ref===t.ref)return Fl(e,t,i)}return t.flags|=1,e=Xc(a,n),e.ref=t.ref,e.return=t,t.child=e}function PM(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Am(a,n)&&e.ref===t.ref)if(Sa=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(Sa=!0);else return t.lanes=e.lanes,Fl(e,t,i)}return G_(e,t,r,n,i)}function TM(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},Kr(Ud,za),za|=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,Kr(Ud,za),za|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Kr(Ud,za),za|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Kr(Ud,za),za|=n;return oa(e,t,i,r),t.child}function CM(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function G_(e,t,r,n,i){var a=Ea(r)?gf:Zi.current;return a=wh(t,a),eh(t,i),r=tE(e,t,r,n,a,i),n=rE(),e!==null&&!Sa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Fl(e,t,i)):(cn&&n&&z3(t),t.flags|=1,oa(e,t,r,i),t.child)}function jC(e,t,r,n,i){if(Ea(r)){var a=!0;Ay(t)}else a=!1;if(eh(t,i),t.stateNode===null)Qv(e,t),AM(t,r,n),H_(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Lo(c):(c=Ea(r)?gf:Zi.current,c=wh(t,c));var u=r.getDerivedStateFromProps,f=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==c)&&NC(t,o,n,c),Cc=!1;var d=t.memoizedState;o.state=d,Cy(t,n,o,i),l=t.memoizedState,s!==n||d!==l||Aa.current||Cc?(typeof u=="function"&&(z_(t,r,u,n),l=t.memoizedState),(s=Cc||EC(t,r,s,n,d,l,c))?(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=c,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,nM(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:rs(t.type,s),o.props=c,f=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Lo(l):(l=Ea(r)?gf:Zi.current,l=wh(t,l));var h=r.getDerivedStateFromProps;(u=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==f||d!==l)&&NC(t,o,n,l),Cc=!1,d=t.memoizedState,o.state=d,Cy(t,n,o,i);var v=t.memoizedState;s!==f||d!==v||Aa.current||Cc?(typeof h=="function"&&(z_(t,r,h,n),v=t.memoizedState),(c=Cc||EC(t,r,c,n,d,v,l)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,v,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,v,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=v),o.props=n,o.state=v,o.context=l,n=c):(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 q_(e,t,r,n,a,i)}function q_(e,t,r,n,i,a){CM(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&vC(t,r,!1),Fl(e,t,a);n=t.stateNode,wX.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=_h(t,e.child,null,a),t.child=_h(t,null,s,a)):oa(e,t,s,a),t.memoizedState=n.state,i&&vC(t,r,!0),t.child}function OM(e){var t=e.stateNode;t.pendingContext?gC(e,t.pendingContext,t.pendingContext!==t.context):t.context&&gC(e,t.context,!1),J3(e,t.containerInfo)}function LC(e,t,r,n,i){return Sh(),V3(i),t.flags|=256,oa(e,t,r,n),t.child}var K_={dehydrated:null,treeContext:null,retryLane:0};function X_(e){return{baseLanes:e,cachePool:null,transitions:null}}function kM(e,t,r){var n=t.pendingProps,i=dn.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),Kr(dn,i&1),e===null)return U_(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=R2(o,n,0,null),e=ff(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=X_(r),t.memoizedState=K_,e):aE(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return SX(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=Xc(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=Xc(s,a):(a=ff(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?X_(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=K_,n}return a=e.child,e=a.sibling,n=Xc(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 aE(e,t){return t=R2({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function tv(e,t,r,n){return n!==null&&V3(n),_h(t,e.child,null,r),e=aE(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function SX(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=N5(Error(Ke(422))),tv(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=R2({mode:"visible",children:n.children},i,0,null),a=ff(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&_h(t,e.child,null,o),t.child.memoizedState=X_(o),t.memoizedState=K_,a);if(!(t.mode&1))return tv(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(Ke(419)),n=N5(a,n,void 0),tv(e,t,o,n)}if(s=(o&e.childLanes)!==0,Sa||s){if(n=vi,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,Ml(e,i),fs(n,e,i,-1))}return fE(),n=N5(Error(Ke(421))),tv(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=DX.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Ya=Vc(i.nextSibling),Qa=t,cn=!0,as=null,e!==null&&(Ao[Eo++]=_l,Ao[Eo++]=Al,Ao[Eo++]=vf,_l=e.id,Al=e.overflow,vf=t),t=aE(t,n.children),t.flags|=4096,t)}function IC(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),W_(e.return,t,r)}function P5(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 jM(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(oa(e,t,n.children,r),n=dn.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&&IC(e,r,t);else if(e.tag===19)IC(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(Kr(dn,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&&Oy(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),P5(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&&Oy(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}P5(t,!0,r,null,a);break;case"together":P5(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qv(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Fl(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),xf|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ke(153));if(t.child!==null){for(e=t.child,r=Xc(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Xc(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function _X(e,t,r){switch(t.tag){case 3:OM(t),Sh();break;case 5:iM(t);break;case 1:Ea(t.type)&&Ay(t);break;case 4:J3(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Kr(Py,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Kr(dn,dn.current&1),t.flags|=128,null):r&t.child.childLanes?kM(e,t,r):(Kr(dn,dn.current&1),e=Fl(e,t,r),e!==null?e.sibling:null);Kr(dn,dn.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return jM(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Kr(dn,dn.current),n)break;return null;case 22:case 23:return t.lanes=0,TM(e,t,r)}return Fl(e,t,r)}var LM,Y_,IM,DM;LM=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}};Y_=function(){};IM=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,af(Us.current);var a=null;switch(r){case"input":i=y_(e,i),n=y_(e,n),a=[];break;case"select":i=mn({},i,{value:void 0}),n=mn({},n,{value:void 0}),a=[];break;case"textarea":i=w_(e,i),n=w_(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Sy)}__(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(vm.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var l=n[c];if(s=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="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(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(vm.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Qr("scroll",e),a||s===l||(a=[])):(a=a||[]).push(c,l))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};DM=function(e,t,r,n){r!==n&&(t.flags|=4)};function v0(e,t){if(!cn)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 Ui(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 AX(e,t,r){var n=t.pendingProps;switch(H3(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ui(t),null;case 1:return Ea(t.type)&&_y(),Ui(t),null;case 3:return n=t.stateNode,Ah(),nn(Aa),nn(Zi),Q3(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Q1(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,as!==null&&(iA(as),as=null))),Y_(e,t),Ui(t),null;case 5:Z3(t);var i=af(Cm.current);if(r=t.type,e!==null&&t.stateNode!=null)IM(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(Ke(166));return Ui(t),null}if(e=af(Us.current),Q1(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Ds]=t,n[Pm]=a,e=(t.mode&1)!==0,r){case"dialog":Qr("cancel",n),Qr("close",n);break;case"iframe":case"object":case"embed":Qr("load",n);break;case"video":case"audio":for(i=0;i<B0.length;i++)Qr(B0[i],n);break;case"source":Qr("error",n);break;case"img":case"image":case"link":Qr("error",n),Qr("load",n);break;case"details":Qr("toggle",n);break;case"input":zT(n,a),Qr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Qr("invalid",n);break;case"textarea":VT(n,a),Qr("invalid",n)}__(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&&Z1(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&Z1(n.textContent,s,e),i=["children",""+s]):vm.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Qr("scroll",n)}switch(r){case"input":H1(n),HT(n,a,!0);break;case"textarea":H1(n),GT(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=Sy)}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=cR(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",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[Ds]=t,e[Pm]=n,LM(e,t,!1,!1),t.stateNode=e;e:{switch(o=A_(r,n),r){case"dialog":Qr("cancel",e),Qr("close",e),i=n;break;case"iframe":case"object":case"embed":Qr("load",e),i=n;break;case"video":case"audio":for(i=0;i<B0.length;i++)Qr(B0[i],e);i=n;break;case"source":Qr("error",e),i=n;break;case"img":case"image":case"link":Qr("error",e),Qr("load",e),i=n;break;case"details":Qr("toggle",e),i=n;break;case"input":zT(e,n),i=y_(e,n),Qr("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=mn({},n,{value:void 0}),Qr("invalid",e);break;case"textarea":VT(e,n),i=w_(e,n),Qr("invalid",e);break;default:i=n}__(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?dR(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&uR(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&ym(e,l):typeof l=="number"&&ym(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(vm.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Qr("scroll",e):l!=null&&C3(e,a,l,o))}switch(r){case"input":H1(e),HT(e,n,!1);break;case"textarea":H1(e),GT(e);break;case"option":n.value!=null&&e.setAttribute("value",""+au(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?Yd(e,!!n.multiple,a,!1):n.defaultValue!=null&&Yd(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Sy)}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 Ui(t),null;case 6:if(e&&t.stateNode!=null)DM(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(Ke(166));if(r=af(Cm.current),af(Us.current),Q1(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ds]=t,(a=n.nodeValue!==r)&&(e=Qa,e!==null))switch(e.tag){case 3:Z1(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Z1(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ds]=t,t.stateNode=n}return Ui(t),null;case 13:if(nn(dn),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(cn&&Ya!==null&&t.mode&1&&!(t.flags&128))QR(),Sh(),t.flags|=98560,a=!1;else if(a=Q1(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(Ke(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(Ke(317));a[Ds]=t}else Sh(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ui(t),a=!1}else as!==null&&(iA(as),as=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||dn.current&1?ai===0&&(ai=3):fE())),t.updateQueue!==null&&(t.flags|=4),Ui(t),null);case 4:return Ah(),Y_(e,t),e===null&&Em(t.stateNode.containerInfo),Ui(t),null;case 10:return K3(t.type._context),Ui(t),null;case 17:return Ea(t.type)&&_y(),Ui(t),null;case 19:if(nn(dn),a=t.memoizedState,a===null)return Ui(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)v0(a,!1);else{if(ai!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Oy(e),o!==null){for(t.flags|=128,v0(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 Kr(dn,dn.current&1|2),t.child}e=e.sibling}a.tail!==null&&In()>Nh&&(t.flags|=128,n=!0,v0(a,!1),t.lanes=4194304)}else{if(!n)if(e=Oy(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),v0(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!cn)return Ui(t),null}else 2*In()-a.renderingStartTime>Nh&&r!==1073741824&&(t.flags|=128,n=!0,v0(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=In(),t.sibling=null,r=dn.current,Kr(dn,n?r&1|2:r&1),t):(Ui(t),null);case 22:case 23:return uE(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?za&1073741824&&(Ui(t),t.subtreeFlags&6&&(t.flags|=8192)):Ui(t),null;case 24:return null;case 25:return null}throw Error(Ke(156,t.tag))}function EX(e,t){switch(H3(t),t.tag){case 1:return Ea(t.type)&&_y(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ah(),nn(Aa),nn(Zi),Q3(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Z3(t),null;case 13:if(nn(dn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ke(340));Sh()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nn(dn),null;case 4:return Ah(),null;case 10:return K3(t.type._context),null;case 22:case 23:return uE(),null;case 24:return null;default:return null}}var rv=!1,qi=!1,NX=typeof WeakSet=="function"?WeakSet:Set,st=null;function Bd(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){_n(e,t,n)}else r.current=null}function J_(e,t,r){try{r()}catch(n){_n(e,t,n)}}var DC=!1;function PX(e,t){if(I_=xy,e=BR(),W3(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,c=0,u=0,f=e,d=null;t:for(;;){for(var h;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),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===r&&++c===i&&(s=o),d===a&&++u===n&&(l=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(D_={focusedElem:e,selectionRange:r},xy=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){t=st;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,m=v.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:rs(t.type,p),m);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ke(163))}}catch(S){_n(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}return v=DC,DC=!1,v}function Y0(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&&J_(t,r,a)}i=i.next}while(i!==n)}}function I2(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 Z_(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 RM(e){var t=e.alternate;t!==null&&(e.alternate=null,RM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ds],delete t[Pm],delete t[F_],delete t[cX],delete t[uX])),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 MM(e){return e.tag===5||e.tag===3||e.tag===4}function RC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||MM(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 Q_(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=Sy));else if(n!==4&&(e=e.child,e!==null))for(Q_(e,t,r),e=e.sibling;e!==null;)Q_(e,t,r),e=e.sibling}function eA(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(eA(e,t,r),e=e.sibling;e!==null;)eA(e,t,r),e=e.sibling}var Ci=null,ns=!1;function wc(e,t,r){for(r=r.child;r!==null;)FM(e,t,r),r=r.sibling}function FM(e,t,r){if(Bs&&typeof Bs.onCommitFiberUnmount=="function")try{Bs.onCommitFiberUnmount(N2,r)}catch{}switch(r.tag){case 5:qi||Bd(r,t);case 6:var n=Ci,i=ns;Ci=null,wc(e,t,r),Ci=n,ns=i,Ci!==null&&(ns?(e=Ci,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Ci.removeChild(r.stateNode));break;case 18:Ci!==null&&(ns?(e=Ci,r=r.stateNode,e.nodeType===8?b5(e.parentNode,r):e.nodeType===1&&b5(e,r),Sm(e)):b5(Ci,r.stateNode));break;case 4:n=Ci,i=ns,Ci=r.stateNode.containerInfo,ns=!0,wc(e,t,r),Ci=n,ns=i;break;case 0:case 11:case 14:case 15:if(!qi&&(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)&&J_(r,t,o),i=i.next}while(i!==n)}wc(e,t,r);break;case 1:if(!qi&&(Bd(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){_n(r,t,s)}wc(e,t,r);break;case 21:wc(e,t,r);break;case 22:r.mode&1?(qi=(n=qi)||r.memoizedState!==null,wc(e,t,r),qi=n):wc(e,t,r);break;default:wc(e,t,r)}}function MC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new NX),t.forEach(function(n){var i=RX.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Yo(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:Ci=s.stateNode,ns=!1;break e;case 3:Ci=s.stateNode.containerInfo,ns=!0;break e;case 4:Ci=s.stateNode.containerInfo,ns=!0;break e}s=s.return}if(Ci===null)throw Error(Ke(160));FM(a,o,i),Ci=null,ns=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){_n(i,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$M(t,e),t=t.sibling}function $M(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Yo(t,e),Cs(e),n&4){try{Y0(3,e,e.return),I2(3,e)}catch(p){_n(e,e.return,p)}try{Y0(5,e,e.return)}catch(p){_n(e,e.return,p)}}break;case 1:Yo(t,e),Cs(e),n&512&&r!==null&&Bd(r,r.return);break;case 5:if(Yo(t,e),Cs(e),n&512&&r!==null&&Bd(r,r.return),e.flags&32){var i=e.stateNode;try{ym(i,"")}catch(p){_n(e,e.return,p)}}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&&sR(i,a),A_(s,o);var c=A_(s,a);for(o=0;o<l.length;o+=2){var u=l[o],f=l[o+1];u==="style"?dR(i,f):u==="dangerouslySetInnerHTML"?uR(i,f):u==="children"?ym(i,f):C3(i,u,f,c)}switch(s){case"input":x_(i,a);break;case"textarea":lR(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?Yd(i,!!a.multiple,h,!1):d!==!!a.multiple&&(a.defaultValue!=null?Yd(i,!!a.multiple,a.defaultValue,!0):Yd(i,!!a.multiple,a.multiple?[]:"",!1))}i[Pm]=a}catch(p){_n(e,e.return,p)}}break;case 6:if(Yo(t,e),Cs(e),n&4){if(e.stateNode===null)throw Error(Ke(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(p){_n(e,e.return,p)}}break;case 3:if(Yo(t,e),Cs(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Sm(t.containerInfo)}catch(p){_n(e,e.return,p)}break;case 4:Yo(t,e),Cs(e);break;case 13:Yo(t,e),Cs(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(lE=In())),n&4&&MC(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(qi=(c=qi)||u,Yo(t,e),qi=c):Yo(t,e),Cs(e),n&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&e.mode&1)for(st=e,u=e.child;u!==null;){for(f=st=u;st!==null;){switch(d=st,h=d.child,d.tag){case 0:case 11:case 14:case 15:Y0(4,d,d.return);break;case 1:Bd(d,d.return);var v=d.stateNode;if(typeof v.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(p){_n(n,r,p)}}break;case 5:Bd(d,d.return);break;case 22:if(d.memoizedState!==null){$C(f);continue}}h!==null?(h.return=d,st=h):$C(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{i=f.stateNode,c?(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=fR("display",o))}catch(p){_n(e,e.return,p)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(p){_n(e,e.return,p)}}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;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Yo(t,e),Cs(e),n&4&&MC(e);break;case 21:break;default:Yo(t,e),Cs(e)}}function Cs(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(MM(r)){var n=r;break e}r=r.return}throw Error(Ke(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(ym(i,""),n.flags&=-33);var a=RC(e);eA(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=RC(e);Q_(e,s,o);break;default:throw Error(Ke(161))}}catch(l){_n(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function TX(e,t,r){st=e,BM(e)}function BM(e,t,r){for(var n=(e.mode&1)!==0;st!==null;){var i=st,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||rv;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||qi;s=rv;var c=qi;if(rv=o,(qi=l)&&!c)for(st=i;st!==null;)o=st,l=o.child,o.tag===22&&o.memoizedState!==null?BC(i):l!==null?(l.return=o,st=l):BC(i);for(;a!==null;)st=a,BM(a),a=a.sibling;st=i,rv=s,qi=c}FC(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,st=a):FC(e)}}function FC(e){for(;st!==null;){var t=st;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qi||I2(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!qi)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&SC(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}SC(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 c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&Sm(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ke(163))}qi||t.flags&512&&Z_(t)}catch(d){_n(t,t.return,d)}}if(t===e){st=null;break}if(r=t.sibling,r!==null){r.return=t.return,st=r;break}st=t.return}}function $C(e){for(;st!==null;){var t=st;if(t===e){st=null;break}var r=t.sibling;if(r!==null){r.return=t.return,st=r;break}st=t.return}}function BC(e){for(;st!==null;){var t=st;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{I2(4,t)}catch(l){_n(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){_n(t,i,l)}}var a=t.return;try{Z_(t)}catch(l){_n(t,a,l)}break;case 5:var o=t.return;try{Z_(t)}catch(l){_n(t,o,l)}}}catch(l){_n(t,t.return,l)}if(t===e){st=null;break}var s=t.sibling;if(s!==null){s.return=t.return,st=s;break}st=t.return}}var CX=Math.ceil,Ly=Xl.ReactCurrentDispatcher,oE=Xl.ReactCurrentOwner,Oo=Xl.ReactCurrentBatchConfig,fr=0,vi=null,Vn=null,Ii=0,za=0,Ud=vu(0),ai=0,Lm=null,xf=0,D2=0,sE=0,J0=null,wa=null,lE=0,Nh=1/0,xl=null,Iy=!1,tA=null,qc=null,nv=!1,Rc=null,Dy=0,Z0=0,rA=null,ey=-1,ty=0;function ha(){return fr&6?In():ey!==-1?ey:ey=In()}function Kc(e){return e.mode&1?fr&2&&Ii!==0?Ii&-Ii:dX.transition!==null?(ty===0&&(ty=AR()),ty):(e=Cr,e!==0||(e=window.event,e=e===void 0?16:kR(e.type)),e):1}function fs(e,t,r,n){if(50<Z0)throw Z0=0,rA=null,Error(Ke(185));$g(e,r,n),(!(fr&2)||e!==vi)&&(e===vi&&(!(fr&2)&&(D2|=r),ai===4&&Lc(e,Ii)),Na(e,n),r===1&&fr===0&&!(t.mode&1)&&(Nh=In()+500,k2&&yu()))}function Na(e,t){var r=e.callbackNode;dK(e,t);var n=yy(e,e===vi?Ii:0);if(n===0)r!==null&&XT(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&XT(r),t===1)e.tag===0?fX(UC.bind(null,e)):YR(UC.bind(null,e)),sX(function(){!(fr&6)&&yu()}),r=null;else{switch(ER(n)){case 1:r=I3;break;case 4:r=SR;break;case 16:r=vy;break;case 536870912:r=_R;break;default:r=vy}r=KM(r,UM.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function UM(e,t){if(ey=-1,ty=0,fr&6)throw Error(Ke(327));var r=e.callbackNode;if(th()&&e.callbackNode!==r)return null;var n=yy(e,e===vi?Ii:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Ry(e,n);else{t=n;var i=fr;fr|=2;var a=zM();(vi!==e||Ii!==t)&&(xl=null,Nh=In()+500,uf(e,t));do try{jX();break}catch(s){WM(e,s)}while(!0);q3(),Ly.current=a,fr=i,Vn!==null?t=0:(vi=null,Ii=0,t=ai)}if(t!==0){if(t===2&&(i=C_(e),i!==0&&(n=i,t=nA(e,i))),t===1)throw r=Lm,uf(e,0),Lc(e,n),Na(e,In()),r;if(t===6)Lc(e,n);else{if(i=e.current.alternate,!(n&30)&&!OX(i)&&(t=Ry(e,n),t===2&&(a=C_(e),a!==0&&(n=a,t=nA(e,a))),t===1))throw r=Lm,uf(e,0),Lc(e,n),Na(e,In()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(Ke(345));case 2:qu(e,wa,xl);break;case 3:if(Lc(e,n),(n&130023424)===n&&(t=lE+500-In(),10<t)){if(yy(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){ha(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=M_(qu.bind(null,e,wa,xl),t);break}qu(e,wa,xl);break;case 4:if(Lc(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-us(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=In()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*CX(n/1960))-n,10<n){e.timeoutHandle=M_(qu.bind(null,e,wa,xl),n);break}qu(e,wa,xl);break;case 5:qu(e,wa,xl);break;default:throw Error(Ke(329))}}}return Na(e,In()),e.callbackNode===r?UM.bind(null,e):null}function nA(e,t){var r=J0;return e.current.memoizedState.isDehydrated&&(uf(e,t).flags|=256),e=Ry(e,t),e!==2&&(t=wa,wa=r,t!==null&&iA(t)),e}function iA(e){wa===null?wa=e:wa.push.apply(wa,e)}function OX(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(!ps(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 Lc(e,t){for(t&=~sE,t&=~D2,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-us(t),n=1<<r;e[r]=-1,t&=~n}}function UC(e){if(fr&6)throw Error(Ke(327));th();var t=yy(e,0);if(!(t&1))return Na(e,In()),null;var r=Ry(e,t);if(e.tag!==0&&r===2){var n=C_(e);n!==0&&(t=n,r=nA(e,n))}if(r===1)throw r=Lm,uf(e,0),Lc(e,t),Na(e,In()),r;if(r===6)throw Error(Ke(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,qu(e,wa,xl),Na(e,In()),null}function cE(e,t){var r=fr;fr|=1;try{return e(t)}finally{fr=r,fr===0&&(Nh=In()+500,k2&&yu())}}function bf(e){Rc!==null&&Rc.tag===0&&!(fr&6)&&th();var t=fr;fr|=1;var r=Oo.transition,n=Cr;try{if(Oo.transition=null,Cr=1,e)return e()}finally{Cr=n,Oo.transition=r,fr=t,!(fr&6)&&yu()}}function uE(){za=Ud.current,nn(Ud)}function uf(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,oX(r)),Vn!==null)for(r=Vn.return;r!==null;){var n=r;switch(H3(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&_y();break;case 3:Ah(),nn(Aa),nn(Zi),Q3();break;case 5:Z3(n);break;case 4:Ah();break;case 13:nn(dn);break;case 19:nn(dn);break;case 10:K3(n.type._context);break;case 22:case 23:uE()}r=r.return}if(vi=e,Vn=e=Xc(e.current,null),Ii=za=t,ai=0,Lm=null,sE=D2=xf=0,wa=J0=null,nf!==null){for(t=0;t<nf.length;t++)if(r=nf[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}nf=null}return e}function WM(e,t){do{var r=Vn;try{if(q3(),Jv.current=jy,ky){for(var n=hn.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}ky=!1}if(yf=0,fi=ii=hn=null,X0=!1,Om=0,oE.current=null,r===null||r.return===null){ai=1,Lm=t,Vn=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=Ii,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,f=u.tag;if(!(u.mode&1)&&(f===0||f===11||f===15)){var d=u.alternate;d?(u.updateQueue=d.updateQueue,u.memoizedState=d.memoizedState,u.lanes=d.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=TC(o);if(h!==null){h.flags&=-257,CC(h,o,s,a,t),h.mode&1&&PC(a,c,t),t=h,l=c;var v=t.updateQueue;if(v===null){var p=new Set;p.add(l),t.updateQueue=p}else v.add(l);break e}else{if(!(t&1)){PC(a,c,t),fE();break e}l=Error(Ke(426))}}else if(cn&&s.mode&1){var m=TC(o);if(m!==null){!(m.flags&65536)&&(m.flags|=256),CC(m,o,s,a,t),V3(Eh(l,s));break e}}a=l=Eh(l,s),ai!==4&&(ai=2),J0===null?J0=[a]:J0.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=EM(a,l,t);wC(a,y);break e;case 1:s=l;var x=a.type,w=a.stateNode;if(!(a.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(qc===null||!qc.has(w)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=NM(a,s,t);wC(a,S);break e}}a=a.return}while(a!==null)}VM(r)}catch(A){t=A,Vn===r&&r!==null&&(Vn=r=r.return);continue}break}while(!0)}function zM(){var e=Ly.current;return Ly.current=jy,e===null?jy:e}function fE(){(ai===0||ai===3||ai===2)&&(ai=4),vi===null||!(xf&268435455)&&!(D2&268435455)||Lc(vi,Ii)}function Ry(e,t){var r=fr;fr|=2;var n=zM();(vi!==e||Ii!==t)&&(xl=null,uf(e,t));do try{kX();break}catch(i){WM(e,i)}while(!0);if(q3(),fr=r,Ly.current=n,Vn!==null)throw Error(Ke(261));return vi=null,Ii=0,ai}function kX(){for(;Vn!==null;)HM(Vn)}function jX(){for(;Vn!==null&&!nK();)HM(Vn)}function HM(e){var t=qM(e.alternate,e,za);e.memoizedProps=e.pendingProps,t===null?VM(e):Vn=t,oE.current=null}function VM(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=EX(r,t),r!==null){r.flags&=32767,Vn=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ai=6,Vn=null;return}}else if(r=AX(r,t,za),r!==null){Vn=r;return}if(t=t.sibling,t!==null){Vn=t;return}Vn=t=e}while(t!==null);ai===0&&(ai=5)}function qu(e,t,r){var n=Cr,i=Oo.transition;try{Oo.transition=null,Cr=1,LX(e,t,r,n)}finally{Oo.transition=i,Cr=n}return null}function LX(e,t,r,n){do th();while(Rc!==null);if(fr&6)throw Error(Ke(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(Ke(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(hK(e,a),e===vi&&(Vn=vi=null,Ii=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||nv||(nv=!0,KM(vy,function(){return th(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=Oo.transition,Oo.transition=null;var o=Cr;Cr=1;var s=fr;fr|=4,oE.current=null,PX(e,r),$M(r,e),QK(D_),xy=!!I_,D_=I_=null,e.current=r,TX(r),iK(),fr=s,Cr=o,Oo.transition=a}else e.current=r;if(nv&&(nv=!1,Rc=e,Dy=i),a=e.pendingLanes,a===0&&(qc=null),sK(r.stateNode),Na(e,In()),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(Iy)throw Iy=!1,e=tA,tA=null,e;return Dy&1&&e.tag!==0&&th(),a=e.pendingLanes,a&1?e===rA?Z0++:(Z0=0,rA=e):Z0=0,yu(),null}function th(){if(Rc!==null){var e=ER(Dy),t=Oo.transition,r=Cr;try{if(Oo.transition=null,Cr=16>e?16:e,Rc===null)var n=!1;else{if(e=Rc,Rc=null,Dy=0,fr&6)throw Error(Ke(331));var i=fr;for(fr|=4,st=e.current;st!==null;){var a=st,o=a.child;if(st.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(st=c;st!==null;){var u=st;switch(u.tag){case 0:case 11:case 15:Y0(8,u,a)}var f=u.child;if(f!==null)f.return=u,st=f;else for(;st!==null;){u=st;var d=u.sibling,h=u.return;if(RM(u),u===c){st=null;break}if(d!==null){d.return=h,st=d;break}st=h}}}var v=a.alternate;if(v!==null){var p=v.child;if(p!==null){v.child=null;do{var m=p.sibling;p.sibling=null,p=m}while(p!==null)}}st=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,st=o;else e:for(;st!==null;){if(a=st,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Y0(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,st=y;break e}st=a.return}}var x=e.current;for(st=x;st!==null;){o=st;var w=o.child;if(o.subtreeFlags&2064&&w!==null)w.return=o,st=w;else e:for(o=x;st!==null;){if(s=st,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:I2(9,s)}}catch(A){_n(s,s.return,A)}if(s===o){st=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,st=S;break e}st=s.return}}if(fr=i,yu(),Bs&&typeof Bs.onPostCommitFiberRoot=="function")try{Bs.onPostCommitFiberRoot(N2,e)}catch{}n=!0}return n}finally{Cr=r,Oo.transition=t}}return!1}function WC(e,t,r){t=Eh(r,t),t=EM(e,t,1),e=Gc(e,t,1),t=ha(),e!==null&&($g(e,1,t),Na(e,t))}function _n(e,t,r){if(e.tag===3)WC(e,e,r);else for(;t!==null;){if(t.tag===3){WC(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(qc===null||!qc.has(n))){e=Eh(r,e),e=NM(t,e,1),t=Gc(t,e,1),e=ha(),t!==null&&($g(t,1,e),Na(t,e));break}}t=t.return}}function IX(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=ha(),e.pingedLanes|=e.suspendedLanes&r,vi===e&&(Ii&r)===r&&(ai===4||ai===3&&(Ii&130023424)===Ii&&500>In()-lE?uf(e,0):sE|=r),Na(e,t)}function GM(e,t){t===0&&(e.mode&1?(t=q1,q1<<=1,!(q1&130023424)&&(q1=4194304)):t=1);var r=ha();e=Ml(e,t),e!==null&&($g(e,t,r),Na(e,r))}function DX(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),GM(e,r)}function RX(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(Ke(314))}n!==null&&n.delete(t),GM(e,r)}var qM;qM=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Aa.current)Sa=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Sa=!1,_X(e,t,r);Sa=!!(e.flags&131072)}else Sa=!1,cn&&t.flags&1048576&&JR(t,Ny,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Qv(e,t),e=t.pendingProps;var i=wh(t,Zi.current);eh(t,r),i=tE(null,t,n,e,i,r);var a=rE();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,Ea(n)?(a=!0,Ay(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Y3(t),i.updater=L2,t.stateNode=i,i._reactInternals=t,H_(t,n,e,r),t=q_(null,t,n,!0,a,r)):(t.tag=0,cn&&a&&z3(t),oa(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Qv(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=FX(n),e=rs(n,e),i){case 0:t=G_(null,t,n,e,r);break e;case 1:t=jC(null,t,n,e,r);break e;case 11:t=OC(null,t,n,e,r);break e;case 14:t=kC(null,t,n,rs(n.type,e),r);break e}throw Error(Ke(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:rs(n,i),G_(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:rs(n,i),jC(e,t,n,i,r);case 3:e:{if(OM(t),e===null)throw Error(Ke(387));n=t.pendingProps,a=t.memoizedState,i=a.element,nM(e,t),Cy(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=Eh(Error(Ke(423)),t),t=LC(e,t,n,r,i);break e}else if(n!==i){i=Eh(Error(Ke(424)),t),t=LC(e,t,n,r,i);break e}else for(Ya=Vc(t.stateNode.containerInfo.firstChild),Qa=t,cn=!0,as=null,r=tM(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Sh(),n===i){t=Fl(e,t,r);break e}oa(e,t,n,r)}t=t.child}return t;case 5:return iM(t),e===null&&U_(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,R_(n,i)?o=null:a!==null&&R_(n,a)&&(t.flags|=32),CM(e,t),oa(e,t,o,r),t.child;case 6:return e===null&&U_(t),null;case 13:return kM(e,t,r);case 4:return J3(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=_h(t,null,n,r):oa(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:rs(n,i),OC(e,t,n,i,r);case 7:return oa(e,t,t.pendingProps,r),t.child;case 8:return oa(e,t,t.pendingProps.children,r),t.child;case 12:return oa(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,Kr(Py,n._currentValue),n._currentValue=o,a!==null)if(ps(a.value,o)){if(a.children===i.children&&!Aa.current){t=Fl(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=Cl(-1,r&-r),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),W_(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(Ke(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),W_(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}oa(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,eh(t,r),i=Lo(i),n=n(i),t.flags|=1,oa(e,t,n,r),t.child;case 14:return n=t.type,i=rs(n,t.pendingProps),i=rs(n.type,i),kC(e,t,n,i,r);case 15:return PM(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:rs(n,i),Qv(e,t),t.tag=1,Ea(n)?(e=!0,Ay(t)):e=!1,eh(t,r),AM(t,n,i),H_(t,n,i,r),q_(null,t,n,!0,e,r);case 19:return jM(e,t,r);case 22:return TM(e,t,r)}throw Error(Ke(156,t.tag))};function KM(e,t){return wR(e,t)}function MX(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Po(e,t,r,n){return new MX(e,t,r,n)}function dE(e){return e=e.prototype,!(!e||!e.isReactComponent)}function FX(e){if(typeof e=="function")return dE(e)?1:0;if(e!=null){if(e=e.$$typeof,e===k3)return 11;if(e===j3)return 14}return 2}function Xc(e,t){var r=e.alternate;return r===null?(r=Po(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 ry(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")dE(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case kd:return ff(r.children,i,a,t);case O3:o=8,i|=8;break;case p_:return e=Po(12,r,t,i|2),e.elementType=p_,e.lanes=a,e;case m_:return e=Po(13,r,t,i),e.elementType=m_,e.lanes=a,e;case g_:return e=Po(19,r,t,i),e.elementType=g_,e.lanes=a,e;case iR:return R2(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rR:o=10;break e;case nR:o=9;break e;case k3:o=11;break e;case j3:o=14;break e;case Tc:o=16,n=null;break e}throw Error(Ke(130,e==null?e:typeof e,""))}return t=Po(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function ff(e,t,r,n){return e=Po(7,e,n,t),e.lanes=r,e}function R2(e,t,r,n){return e=Po(22,e,n,t),e.elementType=iR,e.lanes=r,e.stateNode={isHidden:!1},e}function T5(e,t,r){return e=Po(6,e,null,t),e.lanes=r,e}function C5(e,t,r){return t=Po(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $X(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=c5(0),this.expirationTimes=c5(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=c5(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hE(e,t,r,n,i,a,o,s,l){return e=new $X(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Po(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Y3(a),e}function BX(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Od,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function XM(e){if(!e)return ou;e=e._reactInternals;e:{if(Gf(e)!==e||e.tag!==1)throw Error(Ke(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ea(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ke(171))}if(e.tag===1){var r=e.type;if(Ea(r))return XR(e,r,t)}return t}function YM(e,t,r,n,i,a,o,s,l){return e=hE(r,n,!0,e,i,a,o,s,l),e.context=XM(null),r=e.current,n=ha(),i=Kc(r),a=Cl(n,i),a.callback=t??null,Gc(r,a,i),e.current.lanes=i,$g(e,i,n),Na(e,n),e}function M2(e,t,r,n){var i=t.current,a=ha(),o=Kc(i);return r=XM(r),t.context===null?t.context=r:t.pendingContext=r,t=Cl(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=Gc(i,t,o),e!==null&&(fs(e,i,o,a),Yv(e,i,o)),o}function My(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 zC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function pE(e,t){zC(e,t),(e=e.alternate)&&zC(e,t)}function UX(){return null}var JM=typeof reportError=="function"?reportError:function(e){console.error(e)};function mE(e){this._internalRoot=e}F2.prototype.render=mE.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ke(409));M2(e,t,null,null)};F2.prototype.unmount=mE.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bf(function(){M2(null,e,null,null)}),t[Rl]=null}};function F2(e){this._internalRoot=e}F2.prototype.unstable_scheduleHydration=function(e){if(e){var t=TR();e={blockedOn:null,target:e,priority:t};for(var r=0;r<jc.length&&t!==0&&t<jc[r].priority;r++);jc.splice(r,0,e),r===0&&OR(e)}};function gE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function HC(){}function WX(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var c=My(o);a.call(c)}}var o=YM(t,n,e,0,null,!1,!1,"",HC);return e._reactRootContainer=o,e[Rl]=o.current,Em(e.nodeType===8?e.parentNode:e),bf(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var c=My(l);s.call(c)}}var l=hE(e,0,!1,null,null,!1,!1,"",HC);return e._reactRootContainer=l,e[Rl]=l.current,Em(e.nodeType===8?e.parentNode:e),bf(function(){M2(t,l,r,n)}),l}function B2(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=My(o);s.call(l)}}M2(t,o,e,i)}else o=WX(r,t,e,i,n);return My(o)}NR=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=$0(t.pendingLanes);r!==0&&(D3(t,r|1),Na(t,In()),!(fr&6)&&(Nh=In()+500,yu()))}break;case 13:bf(function(){var n=Ml(e,1);if(n!==null){var i=ha();fs(n,e,1,i)}}),pE(e,1)}};R3=function(e){if(e.tag===13){var t=Ml(e,134217728);if(t!==null){var r=ha();fs(t,e,134217728,r)}pE(e,134217728)}};PR=function(e){if(e.tag===13){var t=Kc(e),r=Ml(e,t);if(r!==null){var n=ha();fs(r,e,t,n)}pE(e,t)}};TR=function(){return Cr};CR=function(e,t){var r=Cr;try{return Cr=e,t()}finally{Cr=r}};N_=function(e,t,r){switch(t){case"input":if(x_(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=O2(n);if(!i)throw Error(Ke(90));oR(n),x_(n,i)}}}break;case"textarea":lR(e,r);break;case"select":t=r.value,t!=null&&Yd(e,!!r.multiple,t,!1)}};mR=cE;gR=bf;var zX={usingClientEntryPoint:!1,Events:[Ug,Dd,O2,hR,pR,cE]},y0={findFiberByHostInstance:rf,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},HX={bundleType:y0.bundleType,version:y0.version,rendererPackageName:y0.rendererPackageName,rendererConfig:y0.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=xR(e),e===null?null:e.stateNode},findFiberByHostInstance:y0.findFiberByHostInstance||UX,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 iv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iv.isDisabled&&iv.supportsFiber)try{N2=iv.inject(HX),Bs=iv}catch{}}oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zX;oo.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gE(t))throw Error(Ke(200));return BX(e,t,null,r)};oo.createRoot=function(e,t){if(!gE(e))throw Error(Ke(299));var r=!1,n="",i=JM;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=hE(e,1,!1,null,null,r,!1,n,i),e[Rl]=t.current,Em(e.nodeType===8?e.parentNode:e),new mE(t)};oo.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(Ke(188)):(e=Object.keys(e).join(","),Error(Ke(268,e)));return e=xR(t),e=e===null?null:e.stateNode,e};oo.flushSync=function(e){return bf(e)};oo.hydrate=function(e,t,r){if(!$2(t))throw Error(Ke(200));return B2(null,e,t,!0,r)};oo.hydrateRoot=function(e,t,r){if(!gE(e))throw Error(Ke(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=JM;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=YM(t,null,e,1,r??null,i,!1,a,o),e[Rl]=t.current,Em(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 F2(t)};oo.render=function(e,t,r){if(!$2(t))throw Error(Ke(200));return B2(null,e,t,!1,r)};oo.unmountComponentAtNode=function(e){if(!$2(e))throw Error(Ke(40));return e._reactRootContainer?(bf(function(){B2(null,null,e,!1,function(){e._reactRootContainer=null,e[Rl]=null})}),!0):!1};oo.unstable_batchedUpdates=cE;oo.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!$2(r))throw Error(Ke(200));if(e==null||e._reactInternals===void 0)throw Error(Ke(38));return B2(e,t,r,!1,n)};oo.version="18.3.1-next-f1338f8080-20240426";function ZM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ZM)}catch(e){console.error(e)}}ZM(),ZD.exports=oo;var Yl=ZD.exports;const QM=gr(Yl);var VC=Yl;d_.createRoot=VC.createRoot,d_.hydrateRoot=VC.hydrateRoot;/** * @remix-run/router v1.23.2 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Im(){return Im=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},Im.apply(this,arguments)}var Mc;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Mc||(Mc={}));const GC="popstate";function VX(e){e===void 0&&(e={});function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return aA("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Fy(i)}return qX(t,r,null,e)}function pn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vE(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function GX(){return Math.random().toString(36).substr(2,8)}function qC(e,t){return{usr:e.state,key:e.key,idx:t}}function aA(e,t,r,n){return r===void 0&&(r=null),Im({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?dp(t):t,{state:r,key:t&&t.key||n||GX()})}function Fy(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function dp(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function qX(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=Mc.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Im({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=Mc.Pop;let m=u(),y=m==null?null:m-c;c=m,l&&l({action:s,location:p.location,delta:y})}function d(m,y){s=Mc.Push;let x=aA(p.location,m,y);c=u()+1;let w=qC(x,c),S=p.createHref(x);try{o.pushState(w,"",S)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign(S)}a&&l&&l({action:s,location:p.location,delta:1})}function h(m,y){s=Mc.Replace;let x=aA(p.location,m,y);c=u();let w=qC(x,c),S=p.createHref(x);o.replaceState(w,"",S),a&&l&&l({action:s,location:p.location,delta:0})}function v(m){let y=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof m=="string"?m:Fy(m);return x=x.replace(/ $/,"%20"),pn(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let p={get action(){return s},get location(){return e(i,o)},listen(m){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(GC,f),l=m,()=>{i.removeEventListener(GC,f),l=null}},createHref(m){return t(i,m)},createURL:v,encodeLocation(m){let y=v(m);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(m){return o.go(m)}};return p}var KC;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(KC||(KC={}));function KX(e,t,r){return r===void 0&&(r="/"),XX(e,t,r)}function XX(e,t,r,n){let i=typeof t=="string"?dp(t):t,a=Ph(i.pathname||"/",r);if(a==null)return null;let o=eF(e);YX(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let c=sY(a);s=aY(o[l],c)}return s}function eF(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(pn(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Yc([n,l.relativePath]),u=r.concat(l);a.children&&a.children.length>0&&(pn(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),eF(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:nY(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of tF(a.path))i(a,o,l)}),t}function tF(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=tF(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function YX(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:iY(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const JX=/^:[\w-]+$/,ZX=3,QX=2,eY=1,tY=10,rY=-2,XC=e=>e==="*";function nY(e,t){let r=e.split("/"),n=r.length;return r.some(XC)&&(n+=rY),t&&(n+=QX),r.filter(i=>!XC(i)).reduce((i,a)=>i+(JX.test(a)?ZX:a===""?eY:tY),n)}function iY(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function aY(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s<n.length;++s){let l=n[s],c=s===n.length-1,u=a==="/"?t:t.slice(a.length)||"/",f=oA({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),d=l.route;if(!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:Yc([a,f.pathname]),pathnameBase:dY(Yc([a,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(a=Yc([a,f.pathnameBase]))}return o}function oA(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=oY(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((c,u,f)=>{let{paramName:d,isOptional:h}=u;if(d==="*"){let p=s[f]||"";o=a.slice(0,a.length-p.length).replace(/(.)\/+$/,"$1")}const v=s[f];return h&&!v?c[d]=void 0:c[d]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:a,pathnameBase:o,pattern:e}}function oY(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),vE(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function sY(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vE(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Ph(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const lY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cY=e=>lY.test(e);function uY(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?dp(e):e,a;if(r)if(cY(r))a=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),vE(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?a=YC(r.substring(1),"/"):a=YC(r,t)}else a=t;return{pathname:a,search:hY(n),hash:pY(i)}}function YC(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function O5(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function fY(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function yE(e,t){let r=fY(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function xE(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=dp(e):(i=Im({},e),pn(!i.pathname||!i.pathname.includes("?"),O5("?","pathname","search",i)),pn(!i.pathname||!i.pathname.includes("#"),O5("#","pathname","hash",i)),pn(!i.search||!i.search.includes("#"),O5("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}s=f>=0?t[f]:"/"}let l=uY(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Yc=e=>e.join("/").replace(/\/\/+/g,"/"),dY=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),hY=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,pY=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mY(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const rF=["post","put","patch","delete"];new Set(rF);const gY=["get",...rF];new Set(gY);/** * React Router v6.30.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function Dm(){return Dm=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},Dm.apply(this,arguments)}const U2=E.createContext(null),nF=E.createContext(null),Jl=E.createContext(null),W2=E.createContext(null),Zl=E.createContext({outlet:null,matches:[],isDataRoute:!1}),iF=E.createContext(null);function vY(e,t){let{relative:r}=t===void 0?{}:t;hp()||pn(!1);let{basename:n,navigator:i}=E.useContext(Jl),{hash:a,pathname:o,search:s}=z2(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:Yc([n,o])),i.createHref({pathname:l,search:s,hash:a})}function hp(){return E.useContext(W2)!=null}function pp(){return hp()||pn(!1),E.useContext(W2).location}function aF(e){E.useContext(Jl).static||E.useLayoutEffect(e)}function xu(){let{isDataRoute:e}=E.useContext(Zl);return e?kY():yY()}function yY(){hp()||pn(!1);let e=E.useContext(U2),{basename:t,future:r,navigator:n}=E.useContext(Jl),{matches:i}=E.useContext(Zl),{pathname:a}=pp(),o=JSON.stringify(yE(i,r.v7_relativeSplatPath)),s=E.useRef(!1);return aF(()=>{s.current=!0}),E.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let f=xE(c,JSON.parse(o),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Yc([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,o,a,e])}function xY(){let{matches:e}=E.useContext(Zl),t=e[e.length-1];return t?t.params:{}}function z2(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=E.useContext(Jl),{matches:i}=E.useContext(Zl),{pathname:a}=pp(),o=JSON.stringify(yE(i,n.v7_relativeSplatPath));return E.useMemo(()=>xE(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function bY(e,t){return wY(e,t)}function wY(e,t,r,n){hp()||pn(!1);let{navigator:i}=E.useContext(Jl),{matches:a}=E.useContext(Zl),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=pp(),u;if(t){var f;let m=typeof t=="string"?dp(t):t;l==="/"||(f=m.pathname)!=null&&f.startsWith(l)||pn(!1),u=m}else u=c;let d=u.pathname||"/",h=d;if(l!=="/"){let m=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(m.length).join("/")}let v=KX(e,{pathname:h}),p=NY(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:Yc([l,i.encodeLocation?i.encodeLocation(m.pathname).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:Yc([l,i.encodeLocation?i.encodeLocation(m.pathnameBase).pathname:m.pathnameBase])})),a,r,n);return t&&p?E.createElement(W2.Provider,{value:{location:Dm({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Mc.Pop}},p):p}function SY(){let e=OY(),t=mY(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),r?E.createElement("pre",{style:i},r):null,null)}const _Y=E.createElement(SY,null);class AY extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?E.createElement(Zl.Provider,{value:this.props.routeContext},E.createElement(iF.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function EY(e){let{routeContext:t,match:r,children:n}=e,i=E.useContext(U2);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),E.createElement(Zl.Provider,{value:t},n)}function NY(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||pn(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u<o.length;u++){let f=o[u];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(c=u),f.route.id){let{loaderData:d,errors:h}=r,v=f.route.loader&&d[f.route.id]===void 0&&(!h||h[f.route.id]===void 0);if(f.route.lazy||v){l=!0,c>=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,d)=>{let h,v=!1,p=null,m=null;r&&(h=s&&f.route.id?s[f.route.id]:void 0,p=f.route.errorElement||_Y,l&&(c<0&&d===0?(jY("route-fallback"),v=!0,m=null):c===d&&(v=!0,m=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,d+1)),x=()=>{let w;return h?w=p:v?w=m:f.route.Component?w=E.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=u,E.createElement(EY,{match:f,routeContext:{outlet:u,matches:y,isDataRoute:r!=null},children:w})};return r&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?E.createElement(AY,{location:r.location,revalidation:r.revalidation,component:p,error:h,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var oF=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(oF||{}),sF=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(sF||{});function PY(e){let t=E.useContext(U2);return t||pn(!1),t}function TY(e){let t=E.useContext(nF);return t||pn(!1),t}function CY(e){let t=E.useContext(Zl);return t||pn(!1),t}function lF(e){let t=CY(),r=t.matches[t.matches.length-1];return r.route.id||pn(!1),r.route.id}function OY(){var e;let t=E.useContext(iF),r=TY(),n=lF();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function kY(){let{router:e}=PY(oF.UseNavigateStable),t=lF(sF.UseNavigateStable),r=E.useRef(!1);return aF(()=>{r.current=!0}),E.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Dm({fromRouteId:t},a)))},[e,t])}const JC={};function jY(e,t,r){JC[e]||(JC[e]=!0)}function LY(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function sA(e){let{to:t,replace:r,state:n,relative:i}=e;hp()||pn(!1);let{future:a,static:o}=E.useContext(Jl),{matches:s}=E.useContext(Zl),{pathname:l}=pp(),c=xu(),u=xE(t,yE(s,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(u);return E.useEffect(()=>c(JSON.parse(f),{replace:r,state:n,relative:i}),[c,f,i,r,n]),null}function aa(e){pn(!1)}function IY(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Mc.Pop,navigator:a,static:o=!1,future:s}=e;hp()&&pn(!1);let l=t.replace(/^\/*/,"/"),c=E.useMemo(()=>({basename:l,navigator:a,static:o,future:Dm({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=dp(n));let{pathname:u="/",search:f="",hash:d="",state:h=null,key:v="default"}=n,p=E.useMemo(()=>{let m=Ph(u,l);return m==null?null:{location:{pathname:m,search:f,hash:d,state:h,key:v},navigationType:i}},[l,u,f,d,h,v,i]);return p==null?null:E.createElement(Jl.Provider,{value:c},E.createElement(W2.Provider,{children:r,value:p}))}function cF(e){let{children:t,location:r}=e;return bY(lA(t),r)}new Promise(()=>{});function lA(e,t){t===void 0&&(t=[]);let r=[];return E.Children.forEach(e,(n,i)=>{if(!E.isValidElement(n))return;let a=[...t,i];if(n.type===E.Fragment){r.push.apply(r,lA(n.props.children,a));return}n.type!==aa&&pn(!1),!n.props.index||!n.props.children||pn(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=lA(n.props.children,a)),r.push(o)}),r}/** * React Router DOM v6.30.3 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function $y(){return $y=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},$y.apply(this,arguments)}function uF(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 DY(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function RY(e,t){return e.button===0&&(!t||t==="_self")&&!DY(e)}const MY=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],FY=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],$Y="6";try{window.__reactRouterVersion=$Y}catch{}const BY=E.createContext({isTransitioning:!1}),UY="startTransition",ZC=E2[UY];function WY(e){let{basename:t,children:r,future:n,window:i}=e,a=E.useRef();a.current==null&&(a.current=VX({window:i,v5Compat:!0}));let o=a.current,[s,l]=E.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},u=E.useCallback(f=>{c&&ZC?ZC(()=>l(f)):l(f)},[l,c]);return E.useLayoutEffect(()=>o.listen(u),[o,u]),E.useEffect(()=>LY(n),[n]),E.createElement(IY,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const zY=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",HY=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cA=E.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:c,preventScrollReset:u,viewTransition:f}=t,d=uF(t,MY),{basename:h}=E.useContext(Jl),v,p=!1;if(typeof c=="string"&&HY.test(c)&&(v=c,zY))try{let w=new URL(window.location.href),S=c.startsWith("//")?new URL(w.protocol+c):new URL(c),A=Ph(S.pathname,h);S.origin===w.origin&&A!=null?c=A+S.search+S.hash:p=!0}catch{}let m=vY(c,{relative:i}),y=qY(c,{replace:o,state:s,target:l,preventScrollReset:u,relative:i,viewTransition:f});function x(w){n&&n(w),w.defaultPrevented||y(w)}return E.createElement("a",$y({},d,{href:v||m,onClick:p||a?n:x,ref:r,target:l}))}),VY=E.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:l,viewTransition:c,children:u}=t,f=uF(t,FY),d=z2(l,{relative:f.relative}),h=pp(),v=E.useContext(nF),{navigator:p,basename:m}=E.useContext(Jl),y=v!=null&&KY(d)&&c===!0,x=p.encodeLocation?p.encodeLocation(d).pathname:d.pathname,w=h.pathname,S=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(w=w.toLowerCase(),S=S?S.toLowerCase():null,x=x.toLowerCase()),S&&m&&(S=Ph(S,m)||S);const A=x!=="/"&&x.endsWith("/")?x.length-1:x.length;let N=w===x||!o&&w.startsWith(x)&&w.charAt(A)==="/",P=S!=null&&(S===x||!o&&S.startsWith(x)&&S.charAt(x.length)==="/"),j={isActive:N,isPending:P,isTransitioning:y},C=N?n:void 0,R;typeof a=="function"?R=a(j):R=[a,N?"active":null,P?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let L=typeof s=="function"?s(j):s;return E.createElement(cA,$y({},f,{"aria-current":C,className:R,ref:r,style:L,to:l,viewTransition:c}),typeof u=="function"?u(j):u)});var uA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uA||(uA={}));var QC;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(QC||(QC={}));function GY(e){let t=E.useContext(U2);return t||pn(!1),t}function qY(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=xu(),c=pp(),u=z2(e,{relative:o});return E.useCallback(f=>{if(RY(f,r)){f.preventDefault();let d=n!==void 0?n:Fy(c)===Fy(u);l(e,{replace:d,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[c,l,u,n,i,r,e,a,o,s])}function KY(e,t){t===void 0&&(t={});let r=E.useContext(BY);r==null&&pn(!1);let{basename:n}=GY(uA.useViewTransitionState),i=z2(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=Ph(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=Ph(r.nextLocation.pathname,n)||r.nextLocation.pathname;return oA(i.pathname,o)!=null||oA(i.pathname,a)!=null}const XY={},eO=e=>{let t;const r=new Set,n=(u,f)=>{const d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const h=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),r.forEach(v=>v(t,h))}},i=()=>t,l={setState:n,getState:i,getInitialState:()=>c,subscribe:u=>(r.add(u),()=>r.delete(u)),destroy:()=>{(XY?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},c=t=e(n,i,l);return l},YY=e=>e?eO(e):eO;var fF={exports:{}},dF={},hF={exports:{}},pF={};/** * @license React * use-sync-external-store-shim.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var Th=E;function JY(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ZY=typeof Object.is=="function"?Object.is:JY,QY=Th.useState,eJ=Th.useEffect,tJ=Th.useLayoutEffect,rJ=Th.useDebugValue;function nJ(e,t){var r=t(),n=QY({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return tJ(function(){i.value=r,i.getSnapshot=t,k5(i)&&a({inst:i})},[e,r,t]),eJ(function(){return k5(i)&&a({inst:i}),e(function(){k5(i)&&a({inst:i})})},[e]),rJ(r),r}function k5(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ZY(e,r)}catch{return!0}}function iJ(e,t){return t()}var aJ=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?iJ:nJ;pF.useSyncExternalStore=Th.useSyncExternalStore!==void 0?Th.useSyncExternalStore:aJ;hF.exports=pF;var bE=hF.exports;/** * @license React * use-sync-external-store-shim/with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var H2=E,oJ=bE;function sJ(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lJ=typeof Object.is=="function"?Object.is:sJ,cJ=oJ.useSyncExternalStore,uJ=H2.useRef,fJ=H2.useEffect,dJ=H2.useMemo,hJ=H2.useDebugValue;dF.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=uJ(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=dJ(function(){function l(h){if(!c){if(c=!0,u=h,h=n(h),i!==void 0&&o.hasValue){var v=o.value;if(i(v,h))return f=v}return f=h}if(v=f,lJ(u,h))return v;var p=n(h);return i!==void 0&&i(v,p)?(u=h,v):(u=h,f=p)}var c=!1,u,f,d=r===void 0?null:r;return[function(){return l(t())},d===null?void 0:function(){return l(d())}]},[t,r,n,i]);var s=cJ(e,a[0],a[1]);return fJ(function(){o.hasValue=!0,o.value=s},[s]),hJ(s),s};fF.exports=dF;var pJ=fF.exports;const mJ=gr(pJ),mF={},{useDebugValue:gJ}=ge,{useSyncExternalStoreWithSelector:vJ}=mJ;let tO=!1;const yJ=e=>e;function xJ(e,t=yJ,r){(mF?"production":void 0)!=="production"&&r&&!tO&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),tO=!0);const n=vJ(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return gJ(n),n}const rO=e=>{(mF?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?YY(e):e,r=(n,i)=>xJ(t,n,i);return Object.assign(r,t),r},Ql=e=>e?rO(e):rO,bJ={};function wJ(e,t){let r;try{r=e()}catch{return}return{getItem:i=>{var a;const o=l=>l===null?null:JSON.parse(l,void 0),s=(a=r.getItem(i))!=null?a:null;return s instanceof Promise?s.then(o):o(s)},setItem:(i,a)=>r.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>r.removeItem(i)}}const Rm=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then(n){return Rm(n)(r)},catch(n){return this}}}catch(r){return{then(n){return this},catch(n){return Rm(n)(r)}}}},SJ=(e,t)=>(r,n,i)=>{let a={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,y)=>({...y,...m}),...t},o=!1;const s=new Set,l=new Set;let c;try{c=a.getStorage()}catch{}if(!c)return e((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...m)},n,i);const u=Rm(a.serialize),f=()=>{const m=a.partialize({...n()});let y;const x=u({state:m,version:a.version}).then(w=>c.setItem(a.name,w)).catch(w=>{y=w});if(y)throw y;return x},d=i.setState;i.setState=(m,y)=>{d(m,y),f()};const h=e((...m)=>{r(...m),f()},n,i);let v;const p=()=>{var m;if(!c)return;o=!1,s.forEach(x=>x(n()));const y=((m=a.onRehydrateStorage)==null?void 0:m.call(a,n()))||void 0;return Rm(c.getItem.bind(c))(a.name).then(x=>{if(x)return a.deserialize(x)}).then(x=>{if(x)if(typeof x.version=="number"&&x.version!==a.version){if(a.migrate)return a.migrate(x.state,x.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return x.state}).then(x=>{var w;return v=a.merge(x,(w=n())!=null?w:h),r(v,!0),f()}).then(()=>{y==null||y(v,void 0),o=!0,l.forEach(x=>x(v))}).catch(x=>{y==null||y(void 0,x)})};return i.persist={setOptions:m=>{a={...a,...m},m.getStorage&&(c=m.getStorage())},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>p(),hasHydrated:()=>o,onHydrate:m=>(s.add(m),()=>{s.delete(m)}),onFinishHydration:m=>(l.add(m),()=>{l.delete(m)})},p(),v||h},_J=(e,t)=>(r,n,i)=>{let a={storage:wJ(()=>localStorage),partialize:p=>p,version:0,merge:(p,m)=>({...m,...p}),...t},o=!1;const s=new Set,l=new Set;let c=a.storage;if(!c)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),r(...p)},n,i);const u=()=>{const p=a.partialize({...n()});return c.setItem(a.name,{state:p,version:a.version})},f=i.setState;i.setState=(p,m)=>{f(p,m),u()};const d=e((...p)=>{r(...p),u()},n,i);i.getInitialState=()=>d;let h;const v=()=>{var p,m;if(!c)return;o=!1,s.forEach(x=>{var w;return x((w=n())!=null?w:d)});const y=((m=a.onRehydrateStorage)==null?void 0:m.call(a,(p=n())!=null?p:d))||void 0;return Rm(c.getItem.bind(c))(a.name).then(x=>{if(x)if(typeof x.version=="number"&&x.version!==a.version){if(a.migrate)return[!0,a.migrate(x.state,x.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,x.state];return[!1,void 0]}).then(x=>{var w;const[S,A]=x;if(h=a.merge(A,(w=n())!=null?w:d),r(h,!0),S)return u()}).then(()=>{y==null||y(h,void 0),h=n(),o=!0,l.forEach(x=>x(h))}).catch(x=>{y==null||y(void 0,x)})};return i.persist={setOptions:p=>{a={...a,...p},p.storage&&(c=p.storage)},clearStorage:()=>{c==null||c.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>v(),hasHydrated:()=>o,onHydrate:p=>(s.add(p),()=>{s.delete(p)}),onFinishHydration:p=>(l.add(p),()=>{l.delete(p)})},a.skipHydration||v(),h||d},AJ=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?((bJ?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),SJ(e,t)):_J(e,t),EJ=AJ;function gF(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=gF(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Yt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=gF(e))&&(n&&(n+=" "),n+=t);return n}const wE="-",NJ=e=>{const t=TJ(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(wE);return s[0]===""&&s.length!==1&&s.shift(),vF(s,t)||PJ(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},vF=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?vF(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(wE);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},nO=/^\[(.+)\]$/,PJ=e=>{if(nO.test(e)){const t=nO.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},TJ=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return OJ(Object.entries(e.classGroups),r).forEach(([a,o])=>{fA(o,n,a,t)}),n},fA=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:iO(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(CJ(i)){fA(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{fA(o,iO(t,a),r,n)})})},iO=(e,t)=>{let r=e;return t.split(wE).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},CJ=e=>e.isThemeGetter,OJ=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,kJ=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},yF="!",jJ=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let c=0,u=0,f;for(let m=0;m<s.length;m++){let y=s[m];if(c===0){if(y===i&&(n||s.slice(m,m+a)===t)){l.push(s.slice(u,m)),u=m+a;continue}if(y==="/"){f=m;continue}}y==="["?c++:y==="]"&&c--}const d=l.length===0?s:s.substring(u),h=d.startsWith(yF),v=h?d.substring(1):d,p=f&&f>u?f-u:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:o}):o},LJ=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},IJ=e=>({cache:kJ(e.cacheSize),parseClassName:jJ(e),...NJ(e)}),DJ=/\s+/,RJ=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(DJ);let s="";for(let l=o.length-1;l>=0;l-=1){const c=o[l],{modifiers:u,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(c);let v=!!h,p=n(v?d.substring(0,h):d);if(!p){if(!v){s=c+(s.length>0?" "+s:s);continue}if(p=n(d),!p){s=c+(s.length>0?" "+s:s);continue}v=!1}const m=LJ(u).join(":"),y=f?m+yF:m,x=y+p;if(a.includes(x))continue;a.push(x);const w=i(p,v);for(let S=0;S<w.length;++S){const A=w[S];a.push(y+A)}s=c+(s.length>0?" "+s:s)}return s};function MJ(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=xF(t))&&(n&&(n+=" "),n+=r);return n}const xF=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=xF(e[n]))&&(r&&(r+=" "),r+=t);return r};function FJ(e,...t){let r,n,i,a=o;function o(l){const c=t.reduce((u,f)=>f(u),e());return r=IJ(c),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const c=n(l);if(c)return c;const u=RJ(l,r);return i(l,u),u}return function(){return a(MJ.apply(null,arguments))}}const Zr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},bF=/^\[(?:([a-z-]+):)?(.+)\]$/i,$J=/^\d+\/\d+$/,BJ=new Set(["px","full","screen"]),UJ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,WJ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,zJ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,HJ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VJ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ml=e=>rh(e)||BJ.has(e)||$J.test(e),Sc=e=>mp(e,"length",QJ),rh=e=>!!e&&!Number.isNaN(Number(e)),j5=e=>mp(e,"number",rh),x0=e=>!!e&&Number.isInteger(Number(e)),GJ=e=>e.endsWith("%")&&rh(e.slice(0,-1)),Kt=e=>bF.test(e),_c=e=>UJ.test(e),qJ=new Set(["length","size","percentage"]),KJ=e=>mp(e,qJ,wF),XJ=e=>mp(e,"position",wF),YJ=new Set(["image","url"]),JJ=e=>mp(e,YJ,tZ),ZJ=e=>mp(e,"",eZ),b0=()=>!0,mp=(e,t,r)=>{const n=bF.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},QJ=e=>WJ.test(e)&&!zJ.test(e),wF=()=>!1,eZ=e=>HJ.test(e),tZ=e=>VJ.test(e),rZ=()=>{const e=Zr("colors"),t=Zr("spacing"),r=Zr("blur"),n=Zr("brightness"),i=Zr("borderColor"),a=Zr("borderRadius"),o=Zr("borderSpacing"),s=Zr("borderWidth"),l=Zr("contrast"),c=Zr("grayscale"),u=Zr("hueRotate"),f=Zr("invert"),d=Zr("gap"),h=Zr("gradientColorStops"),v=Zr("gradientColorStopPositions"),p=Zr("inset"),m=Zr("margin"),y=Zr("opacity"),x=Zr("padding"),w=Zr("saturate"),S=Zr("scale"),A=Zr("sepia"),N=Zr("skew"),P=Zr("space"),j=Zr("translate"),C=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",Kt,t],I=()=>[Kt,t],B=()=>["",ml,Sc],z=()=>["auto",rh,Kt],V=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Q=()=>["solid","dashed","dotted","double","none"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",Kt],ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],xe=()=>[rh,Kt];return{cacheSize:500,separator:":",theme:{colors:[b0],spacing:[ml,Sc],blur:["none","",_c,Kt],brightness:xe(),borderColor:[e],borderRadius:["none","","full",_c,Kt],borderSpacing:I(),borderWidth:B(),contrast:xe(),grayscale:re(),hueRotate:xe(),invert:re(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[GJ,Sc],inset:L(),margin:L(),opacity:xe(),padding:I(),saturate:xe(),scale:xe(),sepia:re(),skew:xe(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",Kt]}],container:["container"],columns:[{columns:[_c]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...V(),Kt]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",x0,Kt]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Kt]}],grow:[{grow:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",x0,Kt]}],"grid-cols":[{"grid-cols":[b0]}],"col-start-end":[{col:["auto",{span:["full",x0,Kt]},Kt]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[b0]}],"row-start-end":[{row:["auto",{span:[x0,Kt]},Kt]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Kt]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Kt]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Kt,t]}],"min-w":[{"min-w":[Kt,t,"min","max","fit"]}],"max-w":[{"max-w":[Kt,t,"none","full","min","max","fit","prose",{screen:[_c]},_c]}],h:[{h:[Kt,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Kt,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Kt,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Kt,t,"auto","min","max","fit"]}],"font-size":[{text:["base",_c,Sc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",j5]}],"font-family":[{font:[b0]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Kt]}],"line-clamp":[{"line-clamp":["none",rh,j5]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ml,Kt]}],"list-image":[{"list-image":["none",Kt]}],"list-style-type":[{list:["none","disc","decimal",Kt]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ml,Sc]}],"underline-offset":[{"underline-offset":["auto",ml,Kt]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Kt]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Kt]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...V(),XJ]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",KJ]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},JJ]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...Q(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:Q()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...Q()]}],"outline-offset":[{"outline-offset":[ml,Kt]}],"outline-w":[{outline:[ml,Sc]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:B()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ml,Sc]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",_c,ZJ]}],"shadow-color":[{shadow:[b0]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...ae(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ae()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",_c,Kt]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[A]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Kt]}],duration:[{duration:xe()}],ease:[{ease:["linear","in","out","in-out",Kt]}],delay:[{delay:xe()}],animate:[{animate:["none","spin","ping","pulse","bounce",Kt]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[x0,Kt]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Kt]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Kt]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Kt]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ml,Sc,j5]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},nZ=FJ(rZ);function Yr(...e){return nZ(Yt(e))}function Ch(e){return e?new Date(e).toLocaleDateString("id-ID",{day:"numeric",month:"short",year:"numeric"}):"-"}function SF(e){return e?new Date(e).toLocaleDateString("id-ID",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function iZ(e){return e?e.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2):"?"}const br="/api",ar=Ql(EJ((e,t)=>({user:null,token:null,isLoading:!1,error:null,login:async(r,n)=>{e({isLoading:!0,error:null});try{const i=await fetch(`${br}/auth/login`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({username:r,password:n})});if(!i.ok){const s=await i.json().catch(()=>({}));throw new Error(s.error||`Server error: ${i.status}`)}const a=await i.text();if(!a||a.trim()==="")throw new Error("Server tidak merespons. Pastikan server sedang berjalan.");const o=JSON.parse(a);if(!o.token||!o.user)throw new Error("Respons server tidak valid");return e({user:o.user,token:o.token,isLoading:!1}),!0}catch(i){let a=i.message;return i.name==="TypeError"&&i.message.includes("Failed to fetch")?a="Tidak dapat terhubung ke server. Pastikan server sedang berjalan di port 5000.":i.message.includes("Unexpected end of JSON")&&(a="Server tidak merespons dengan benar. Pastikan server sedang berjalan."),e({error:a,isLoading:!1}),!1}},logout:()=>{e({user:null,token:null})},updateUser:r=>{e({user:{...t().user,...r}})}}),{name:"auth-storage",partialize:e=>({token:e.token,user:e.user})})),V2=Ql(e=>({leads:[],currentLead:null,isLoading:!1,error:null,fetchLeads:async(t={})=>{e({isLoading:!0,error:null});try{const r=ar.getState().token;if(!r){e({leads:[],isLoading:!1,error:"Silakan login terlebih dahulu"});return}const n=new URLSearchParams(t),i=await fetch(`${br}/leads?${n}`,{headers:{Authorization:`Bearer ${r}`}});if(!i.ok){const o=await i.json();e({leads:[],isLoading:!1,error:o.error||"Gagal memuat data lead"});return}const a=await i.json();e({leads:a,isLoading:!1,error:null})}catch{e({leads:[],isLoading:!1,error:"Tidak dapat terhubung ke server. Pastikan server berjalan."})}},fetchLead:async t=>{e({isLoading:!0,error:null});try{const r=ar.getState().token,n=await fetch(`${br}/leads/${t}`,{headers:{Authorization:`Bearer ${r}`}});if(!n.ok){e({currentLead:null,isLoading:!1,error:"Lead tidak ditemukan"});return}const i=await n.json();e({currentLead:i,isLoading:!1,error:null})}catch{e({currentLead:null,isLoading:!1,error:"Gagal memuat detail lead"})}},createLead:async t=>{try{const r=ar.getState().token;if(!r)return e({error:"Silakan login terlebih dahulu"}),!1;const n=await fetch(`${br}/leads`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(t)}),i=await n.text();let a;try{a=i?JSON.parse(i):{}}catch{return console.error("Invalid JSON response:",i),e({error:"Server response tidak valid"}),!1}return n.ok?(e({error:null}),!0):(e({error:a.error||`Gagal membuat lead (${n.status})`}),!1)}catch(r){return console.error("Create lead error:",r),e({error:"Tidak dapat terhubung ke server"}),!1}},updateLead:async(t,r)=>{try{const n=ar.getState().token,i=await fetch(`${br}/leads/${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(r)}),a=await i.json();return i.ok?(e({error:null}),!0):(e({error:a.error||"Gagal mengupdate lead"}),!1)}catch{return e({error:"Tidak dapat terhubung ke server"}),!1}},deleteLead:async t=>{const r=ar.getState().token;return(await fetch(`${br}/leads/${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${r}`}})).ok},bulkDelete:async t=>{const r=ar.getState().token;return(await fetch(`${br}/leads/bulk-delete`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify({ids:t})})).ok}})),aZ=Ql((e,t)=>({tasks:[],isLoading:!1,fetchTasks:async()=>{e({isLoading:!0});try{const r=ar.getState().token,i=await(await fetch(`${br}/tasks`,{headers:{Authorization:`Bearer ${r}`}})).json();e({tasks:i,isLoading:!1})}catch{e({isLoading:!1})}},createTask:async r=>{const n=ar.getState().token,i=await fetch(`${br}/tasks`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(r)});return i.ok&&t().fetchTasks(),i.ok},updateTask:async(r,n)=>{const i=ar.getState().token,a=await fetch(`${br}/tasks/${r}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify(n)});return a.ok&&t().fetchTasks(),a.ok},deleteTask:async r=>{const n=ar.getState().token,i=await fetch(`${br}/tasks/${r}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}});return i.ok&&t().fetchTasks(),i.ok}}));Ql((e,t)=>({sources:[],isLoading:!1,fetchSources:async()=>{e({isLoading:!0});try{const r=ar.getState().token,i=await(await fetch(`${br}/sources`,{headers:{Authorization:`Bearer ${r}`}})).json();e({sources:i,isLoading:!1})}catch{e({isLoading:!1})}},createSource:async r=>{const n=ar.getState().token,i=await fetch(`${br}/sources`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(r)});return i.ok&&t().fetchSources(),i.ok},updateSource:async(r,n)=>{const i=ar.getState().token,a=await fetch(`${br}/sources/${r}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify(n)});return a.ok&&t().fetchSources(),a.ok},deleteSource:async r=>{const n=ar.getState().token,i=await fetch(`${br}/sources/${r}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}});return i.ok&&t().fetchSources(),i.ok}}));const oZ=Ql((e,t)=>({documents:[],isLoading:!1,fetchDocuments:async()=>{e({isLoading:!0});try{const r=ar.getState().token,i=await(await fetch(`${br}/documents`,{headers:{Authorization:`Bearer ${r}`}})).json();e({documents:i,isLoading:!1})}catch{e({isLoading:!1})}},uploadDocument:async r=>{const n=ar.getState().token,i=await fetch(`${br}/documents`,{method:"POST",headers:{Authorization:`Bearer ${n}`},body:r});return i.ok&&t().fetchDocuments(),i.ok},deleteDocument:async r=>{const n=ar.getState().token,i=await fetch(`${br}/documents/${r}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}});return i.ok&&t().fetchDocuments(),i.ok}})),sZ=Ql(e=>({activities:[],fetchActivities:async(t=10)=>{try{const r=ar.getState().token,i=await(await fetch(`${br}/activities?limit=${t}`,{headers:{Authorization:`Bearer ${r}`}})).json();e({activities:i})}catch(r){console.error(r)}}}));Ql(e=>({followUps:[],fetchFollowUps:async(t="upcoming")=>{try{const r=ar.getState().token,i=await(await fetch(`${br}/follow-ups?type=${t}`,{headers:{Authorization:`Bearer ${r}`}})).json();e({followUps:i})}catch(r){console.error(r)}},createFollowUp:async t=>{const r=ar.getState().token;return(await fetch(`${br}/follow-ups`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(t)})).ok},updateFollowUp:async(t,r)=>{const n=ar.getState().token;return(await fetch(`${br}/follow-ups/${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(r)})).ok}}));const _F=Ql(e=>({stats:null,isLoading:!1,fetchStats:async()=>{e({isLoading:!0});try{const t=ar.getState().token,n=await(await fetch(`${br}/reports/stats`,{headers:{Authorization:`Bearer ${t}`}})).json();e({stats:n,isLoading:!1})}catch{e({isLoading:!1})}}})),AF=Ql((e,t)=>({users:[],staffStats:null,isLoading:!1,fetchUsers:async()=>{e({isLoading:!0});try{const r=ar.getState().token,i=await(await fetch(`${br}/users`,{headers:{Authorization:`Bearer ${r}`}})).json();e({users:i,isLoading:!1})}catch{e({isLoading:!1})}},fetchStaffStats:async()=>{try{const r=ar.getState().token,i=await(await fetch(`${br}/users/staff-stats`,{headers:{Authorization:`Bearer ${r}`}})).json();e({staffStats:i})}catch(r){console.error(r)}},createUser:async r=>{const n=ar.getState().token,i=await fetch(`${br}/users`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${n}`},body:JSON.stringify(r)}),a=i.clone();console.log("User create response:",i.status,i.statusText);const o=await a.text();return console.log("Response body:",o),i.ok?(t().fetchUsers(),!0):(console.error("User create FAILED:",i.status,o),!1)},updateUser:async(r,n)=>{const i=ar.getState().token,a=await fetch(`${br}/users/${r}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:JSON.stringify(n)});return a.ok&&t().fetchUsers(),a.ok},deleteUser:async r=>{const n=ar.getState().token,i=await fetch(`${br}/users/${r}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}});return i.ok&&t().fetchUsers(),i.ok}}));/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var lZ={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cZ=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ct=(e,t)=>{const r=E.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:s="",children:l,...c},u)=>E.createElement("svg",{ref:u,...lZ,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${cZ(e)}`,s].join(" "),...c},[...t.map(([f,d])=>E.createElement(f,d)),...Array.isArray(l)?l:[l]]));return r.displayName=`${e}`,r};/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const aO=ct("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const EF=ct("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const uZ=ct("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const oO=ct("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const fZ=ct("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SE=ct("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const NF=ct("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PF=ct("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TF=ct("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Oh=ct("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dZ=ct("CheckSquare",[["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}],["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11",key:"1jnkn4"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Q0=ct("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hZ=ct("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const na=ct("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const pZ=ct("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kh=ct("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const sO=ct("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const mZ=ct("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _E=ct("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const gZ=ct("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const CF=ct("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const AE=ct("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const vZ=ct("FileCheck",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const yZ=ct("FileSpreadsheet",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const $l=ct("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lO=ct("File",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const EE=ct("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const xZ=ct("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const bZ=ct("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jh=ct("GraduationCap",[["path",{d:"M22 10v6M2 10l10-5 10 5-10 5z",key:"1ef52a"}],["path",{d:"M6 12v5c3 3 9 3 12 0v-5",key:"1f75yj"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const OF=ct("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wZ=ct("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dA=ct("Kanban",[["path",{d:"M6 5v11",key:"mdvv1e"}],["path",{d:"M12 5v6",key:"14ar3b"}],["path",{d:"M18 5v14",key:"7ji314"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const SZ=ct("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const _Z=ct("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kF=ct("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jF=ct("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const G2=ct("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const AZ=ct("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LF=ct("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Wd=ct("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Mm=ct("PenSquare",[["path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1qinfi"}],["path",{d:"M18.5 2.5a2.12 2.12 0 0 1 3 3L12 15l-4 1 1-4Z",key:"w2jsv5"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const EZ=ct("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const q2=ct("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const wf=ct("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const NZ=ct("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PZ=ct("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const NE=ct("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const IF=ct("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Jc=ct("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TZ=ct("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const CZ=ct("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const OZ=ct("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const zg=ct("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const kZ=ct("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Fm=ct("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jZ=ct("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const hA=ct("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const LZ=ct("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const IZ=ct("UserX",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const DZ=ct("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const RZ=ct("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Sf=ct("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const PE=ct("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const TE=ct("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** * @license lucide-react v0.303.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cO=ct("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]),MZ=[{icon:SZ,label:"Dashboard",path:"/dashboard"},{icon:hA,label:"Users",path:"/users",roles:["admin","masteradmin"]},{icon:Sf,label:"Leads",path:"/leads"},{icon:dA,label:"Pipeline",path:"/pipeline"},{icon:dZ,label:"Tasks",path:"/tasks"},{icon:SE,label:"Reports",path:"/reports"},{icon:$l,label:"Documents",path:"/documents"},{icon:IF,label:"Settings",path:"/settings",roles:["admin","masteradmin"]}];function FZ({isMobileMenuOpen:e,toggleMobileMenu:t}){const{user:r,logout:n}=ar(),i=xu(),a=MZ.filter(l=>l.roles?r&&l.roles.includes(r.role):!0),o=()=>{n(),i("/login")},s=()=>{var l;return g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"h-20 flex items-center justify-between px-5 border-b border-slate-100",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-11 h-11 rounded-xl bg-gradient-to-br from-blue-600 to-indigo-600 flex items-center justify-center shadow-lg",children:g.jsx(jh,{className:"w-6 h-6 text-white"})}),g.jsx("span",{className:"font-bold text-slate-800 text-lg",children:"Arlindo CRM"})]}),g.jsx("button",{onClick:t,className:"lg:hidden flex items-center justify-center w-9 h-9 rounded-lg text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",children:g.jsx(TE,{className:"w-5 h-5"})})]}),g.jsx("nav",{className:"flex-1 p-4 space-y-2 overflow-y-auto",children:a.map(c=>g.jsxs(VY,{to:c.path,onClick:t,className:({isActive:u})=>`flex items-center gap-3 px-4 py-3 rounded-xl text-sm font-medium transition-all duration-200 ${u?"bg-blue-50 text-blue-700 shadow-sm":"text-slate-600 hover:bg-slate-100 hover:text-slate-800"}`,children:[g.jsx(c.icon,{className:"w-6 h-6 flex-shrink-0"}),g.jsx("span",{children:c.label})]},c.path))}),g.jsx("div",{className:"px-4 py-2",children:g.jsxs("button",{onClick:()=>{i("/prd"),t()},className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl text-sm font-medium text-purple-700 bg-purple-50 hover:bg-purple-100 transition-colors",children:[g.jsx($l,{className:"w-6 h-6"}),g.jsx("span",{children:"PRD"})]})}),g.jsxs("div",{className:"p-4 border-t border-slate-100",children:[g.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 mb-3 bg-slate-50 rounded-xl",children:[g.jsx("div",{className:"w-11 h-11 rounded-full bg-gradient-to-br from-blue-500 to-indigo-500 flex items-center justify-center text-white font-bold text-lg",children:((l=r==null?void 0:r.name)==null?void 0:l.charAt(0))||"U"}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsx("p",{className:"text-sm font-semibold text-slate-800 truncate",children:(r==null?void 0:r.name)||"User"}),g.jsx("p",{className:"text-sm text-slate-500 capitalize",children:(r==null?void 0:r.role)||"User"})]})]}),g.jsxs("button",{onClick:o,className:"w-full flex items-center gap-3 px-4 py-3 rounded-xl text-sm font-medium text-red-600 hover:bg-red-50 transition-colors",children:[g.jsx(jF,{className:"w-6 h-6"}),g.jsx("span",{children:"Keluar"})]})]})]})};return g.jsxs(g.Fragment,{children:[g.jsx("aside",{className:` hidden lg:flex flex-col fixed left-0 top-0 h-screen bg-white z-40 w-60 `,children:g.jsx(s,{})}),e&&g.jsx("div",{className:"lg:hidden fixed inset-0 bg-black/20 z-40",onClick:t}),e&&g.jsx("aside",{className:` lg:hidden fixed left-0 top-0 h-screen bg-white z-50 w-80 flex flex-col transition-transform duration-300 ease-in-out transform translate-x-0 `,children:g.jsx(s,{})})]})}function $Z({toggleMobileMenu:e}){var s,l;const{user:t,logout:r}=ar(),n=xu(),[i,a]=E.useState(!1),o=()=>{r(),n("/login")};return g.jsx("header",{className:"fixed top-0 right-0 left-0 lg:left-60 h-16 lg:h-20 bg-white border-b border-slate-200 shadow-sm z-40 px-4 sm:px-6 lg:px-8",children:g.jsxs("div",{className:"h-full flex items-center justify-between gap-4 px-2 lg:px-0",children:[g.jsx("button",{className:"lg:hidden flex items-center justify-center w-12 h-12 bg-white rounded-xl text-slate-600 hover:bg-slate-50 transition-all",onClick:e,children:g.jsx(AZ,{className:"w-6 h-6"})}),g.jsx("div",{className:"flex items-center gap-2 lg:gap-4 flex-shrink-0",children:g.jsxs("div",{className:"relative",children:[g.jsxs("button",{onClick:()=>a(!i),className:"flex items-center gap-2 p-2 rounded-xl hover:bg-slate-100/50 transition-all hover:scale-105 shadow-sm hover:shadow-md",children:[g.jsx("div",{className:"w-9 h-9 lg:w-10 lg:h-10 rounded-lg bg-gradient-to-br from-blue-500 to-indigo-500 flex items-center justify-center text-white font-semibold text-xs lg:text-sm shadow-sm",children:((l=(s=t==null?void 0:t.name)==null?void 0:s.charAt(0))==null?void 0:l.toUpperCase())||"U"}),g.jsx("span",{className:"hidden lg:block text-xs lg:text-sm font-medium text-slate-900 truncate max-w-[120px]",children:(t==null?void 0:t.name)||"User"})]}),i&&g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"fixed inset-0 z-50",onClick:()=>a(!1)}),g.jsxs("div",{className:"absolute right-0 top-full mt-2 w-64 bg-white/95 backdrop-blur-sm rounded-2xl shadow-xl border border-slate-100 py-2 z-50 animate-in fade-in zoom-in duration-200",children:[g.jsxs("div",{className:"px-4 py-3 border-b border-slate-100",children:[g.jsx("p",{className:"text-sm font-semibold text-slate-900 truncate",children:(t==null?void 0:t.name)||"User"}),g.jsx("p",{className:"text-xs text-slate-500 truncate",children:(t==null?void 0:t.email)||"user@example.com"})]}),g.jsxs("button",{onClick:()=>{a(!1),n("/settings")},className:"w-full flex items-center gap-3 px-4 py-3 text-sm text-slate-700 hover:bg-slate-50/50 transition-all",children:[g.jsx(IF,{className:"w-4 h-4 flex-shrink-0"}),"Pengaturan"]}),g.jsxs("button",{onClick:o,className:"w-full flex items-center gap-3 px-4 py-3 text-sm text-red-600 hover:bg-red-50/50 transition-all",children:[g.jsx(jF,{className:"w-4 h-4 flex-shrink-0"}),"Keluar"]})]})]})]})})]})})}function uO(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Mo(...e){return t=>{let r=!1;const n=e.map(i=>{const a=uO(i,t);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let i=0;i<n.length;i++){const a=n[i];typeof a=="function"?a():uO(e[i],null)}}}}function gn(...e){return E.useCallback(Mo(...e),e)}var BZ=Symbol.for("react.lazy"),By=E2[" use ".trim().toString()];function UZ(e){return typeof e=="object"&&e!==null&&"then"in e}function DF(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===BZ&&"_payload"in e&&UZ(e._payload)}function RF(e){const t=zZ(e),r=E.forwardRef((n,i)=>{let{children:a,...o}=n;DF(a)&&typeof By=="function"&&(a=By(a._payload));const s=E.Children.toArray(a),l=s.find(VZ);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}var WZ=RF("Slot");function zZ(e){const t=E.forwardRef((r,n)=>{let{children:i,...a}=r;if(DF(i)&&typeof By=="function"&&(i=By(i._payload)),E.isValidElement(i)){const o=qZ(i),s=GZ(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var HZ=Symbol("radix.slottable");function VZ(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HZ}function GZ(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function qZ(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const fO=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,dO=Yt,MF=(e,t)=>r=>{var n;if((t==null?void 0:t.variants)==null)return dO(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:i,defaultVariants:a}=t,o=Object.keys(i).map(c=>{const u=r==null?void 0:r[c],f=a==null?void 0:a[c];if(u===null)return null;const d=fO(u)||fO(f);return i[c][d]}),s=r&&Object.entries(r).reduce((c,u)=>{let[f,d]=u;return d===void 0||(c[f]=d),c},{}),l=t==null||(n=t.compoundVariants)===null||n===void 0?void 0:n.reduce((c,u)=>{let{class:f,className:d,...h}=u;return Object.entries(h).every(v=>{let[p,m]=v;return Array.isArray(m)?m.includes({...a,...s}[p]):{...a,...s}[p]===m})?[...c,f,d]:c},[]);return dO(e,o,l,r==null?void 0:r.class,r==null?void 0:r.className)},KZ=MF("inline-flex items-center justify-center whitespace-nowrap rounded-xl text-sm font-medium transition-all duration-200 ease-smooth focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",{variants:{variant:{default:"bg-primary text-white hover:bg-primary-light shadow-sm hover:shadow-glow-sm",secondary:"bg-surface-light text-foreground border border-border hover:bg-surface-lighter hover:border-border-light",ghost:"text-text-secondary hover:text-foreground hover:bg-surface-light",destructive:"bg-danger/10 text-danger border border-danger/20 hover:bg-danger/20",outline:"border border-border text-foreground hover:bg-surface-light hover:border-border-light",success:"bg-success text-white hover:bg-success-light",warning:"bg-warning text-white hover:bg-warning-light",info:"bg-info text-white hover:bg-info-light",link:"text-primary underline-offset-4 hover:underline bg-transparent"},size:{default:"h-10 px-4 py-2.5",sm:"h-8 px-3 text-xs",lg:"h-12 px-6 text-base",xl:"h-14 px-8 text-base",icon:"h-10 w-10","icon-sm":"h-8 w-8","icon-lg":"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),Qt=E.forwardRef(({className:e,variant:t,size:r,asChild:n=!1,...i},a)=>{const o=n?WZ:"button";return g.jsx(o,{className:Yr(KZ({variant:t,size:r,className:e})),ref:a,...i})});Qt.displayName="Button";const Xt=E.forwardRef(({className:e,type:t,error:r,icon:n,...i},a)=>g.jsxs("div",{className:"relative",children:[n&&g.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-muted",children:n}),g.jsx("input",{type:t,className:Yr("flex h-10 w-full rounded-xl border border-border bg-surface px-4 py-2.5 text-sm text-foreground ring-offset-background transition-all duration-200","placeholder:text-text-muted","focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary","disabled:cursor-not-allowed disabled:opacity-50",r?"border-danger focus:ring-danger/30 focus:border-danger":"hover:border-border-light",n&&"pl-10",e),ref:a,...i})]}));Xt.displayName="Input";var XZ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],K2=XZ.reduce((e,t)=>{const r=RF(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),YZ="Label",FF=E.forwardRef((e,t)=>g.jsx(K2.label,{...e,ref:t,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));FF.displayName=YZ;var $F=FF;const JZ=MF("text-sm font-medium leading-none text-foreground peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),St=E.forwardRef(({className:e,...t},r)=>g.jsx($F,{ref:r,className:Yr(JZ(),e),...t}));St.displayName=$F.displayName;function ZZ(){const[e,t]=E.useState(""),[r,n]=E.useState(""),[i,a]=E.useState(!1),[o,s]=E.useState(!1),{login:l,isLoading:c,error:u}=ar(),f=xu(),d=async v=>{v.preventDefault(),await l(e,r)&&f("/dashboard")},h=[{icon:Sf,title:"Lead Management",desc:"Kelola data calon mahasiswa"},{icon:Wd,title:"WhatsApp Integration",desc:"Kirim pesan otomatis ke WA"},{icon:SE,title:"Analytics & Reports",desc:"Laporan lengkap & akurat"},{icon:$l,title:"Document Center",desc:"Simpan dokumen terpusat"},{icon:NF,title:"Auto Reminder",desc:"Pengingat follow-up otomatis"},{icon:Fm,title:"Pipeline Tracking",desc:"Pantau konversi sales"}];return g.jsxs("div",{className:"min-h-screen flex",children:[g.jsxs("div",{className:"hidden lg:flex lg:w-[55%] relative overflow-hidden",children:[g.jsx("div",{className:"absolute inset-0 animated-gradient"}),g.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-blue-600/90 via-indigo-600/80 to-sky-500/90"}),g.jsxs("div",{className:"relative z-10 flex flex-col justify-between p-12 text-white",children:[g.jsxs("div",{className:"flex items-center gap-4 flex-shrink-0",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-white/20 backdrop-blur-sm flex items-center justify-center",children:g.jsx(jh,{className:"w-7 h-7 text-white"})}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-bold",children:"Arlindo CRM"}),g.jsx("p",{className:"text-sm text-white/70",children:"Campus Marketing"})]})]}),g.jsxs("div",{className:"py-8",children:[g.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-white/20 backdrop-blur-sm rounded-full text-sm mb-6",children:[g.jsx("span",{className:"w-2 h-2 rounded-full bg-green-400 animate-pulse"}),g.jsx("span",{children:"Smart Digital Platform for Higher Education"})]}),g.jsxs("div",{className:"mb-8",children:[g.jsxs("h2",{className:"text-6xl font-black mb-4 leading-tight",style:{fontFamily:"Montserrat, sans-serif"},children:["Kelola Lead, Follow-Up Otomatis,",g.jsx("br",{}),g.jsx("span",{className:"text-white drop-shadow-lg",children:"dan Tingkatkan Konversi Mahasiswa"})]}),g.jsx("p",{className:"text-xl text-white/90 leading-relaxed w-full",children:"Tingkatkan efektivitas tim marketing hingga 10x dengan sistem CRM yang dirancang khusus untuk pengelolaan lead calon mahasiswa, otomatisasi komunikasi WhatsApp, dan analitik konversi."})]}),g.jsx("div",{className:"grid grid-cols-2 gap-4",children:h.map((v,p)=>g.jsxs("div",{className:"flex items-center gap-3 p-4 bg-white/10 backdrop-blur-sm rounded-xl hover:bg-white/20 transition-all cursor-pointer",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-white/20 flex items-center justify-center",children:g.jsx(v.icon,{className:"w-6 h-6"})}),g.jsxs("div",{children:[g.jsx("p",{className:"font-bold text-sm",children:v.title}),g.jsx("p",{className:"text-xs text-white/70",children:v.desc})]})]},p))})]}),g.jsxs("div",{className:"flex-shrink-0",children:[g.jsx("p",{className:"text-sm text-white/60",children:"© 2026 Arlindo CRM • Created by Gusti Dewa Anggading"}),g.jsx("p",{className:"text-xs text-white/40 mt-1",children:"Version V2.0 • Support: mail.sidewa@gmail.com"})]})]})]}),g.jsx("div",{className:"w-full lg:w-[45%] flex items-center justify-center p-8 bg-slate-50",children:g.jsxs("div",{className:"w-full max-w-md animate-fade-in-up",children:[g.jsxs("div",{className:"lg:hidden flex items-center gap-3 mb-8",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-blue-600 to-indigo-600 flex items-center justify-center shadow-lg",children:g.jsx(jh,{className:"w-7 h-7 text-white"})}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-xl font-bold text-slate-900",children:"Arlindo CRM"}),g.jsx("p",{className:"text-sm text-slate-500",children:"Campus Marketing"})]})]}),g.jsxs("div",{className:"bg-white rounded-2xl shadow-card-md p-8 border border-slate-100",children:[g.jsxs("div",{className:"mb-8",children:[g.jsx("h2",{className:"text-2xl font-bold text-slate-900 mb-2",children:"Selamat Datang! 👋"}),g.jsx("p",{className:"text-slate-500",children:"Masuk ke dashboard CRM Anda"})]}),u&&g.jsx("div",{className:"mb-6 p-4 bg-red-50 border border-red-100 rounded-xl",children:g.jsx("p",{className:"text-sm text-red-600",children:u})}),g.jsxs("form",{onSubmit:d,className:"space-y-5",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{htmlFor:"username",className:"text-slate-700 font-medium",children:"Username"}),g.jsx(Xt,{id:"username",type:"text",placeholder:"Masukkan username",value:e,onChange:v=>t(v.target.value),required:!0,className:"h-12 text-base"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{htmlFor:"password",className:"text-slate-700 font-medium",children:"Password"}),g.jsxs("div",{className:"relative",children:[g.jsx(Xt,{id:"password",type:i?"text":"password",placeholder:"Masukkan password",value:r,onChange:v=>n(v.target.value),required:!0,className:"h-12 pr-10 text-base"}),g.jsx("button",{type:"button",onClick:()=>a(!i),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:i?g.jsx(CF,{className:"w-5 h-5"}):g.jsx(AE,{className:"w-5 h-5"})})]})]}),g.jsx("div",{className:"flex items-center justify-between",children:g.jsxs("label",{className:"flex items-center gap-2.5 cursor-pointer",children:[g.jsx("input",{type:"checkbox",checked:o,onChange:v=>s(v.target.checked),className:"w-5 h-5 rounded border-slate-300 text-blue-600 focus:ring-blue-500"}),g.jsx("span",{className:"text-sm text-slate-600 font-medium",children:"Ingat saya"})]})}),g.jsx(Qt,{type:"submit",disabled:c,className:"w-full h-12 bg-blue-600 hover:bg-blue-700 text-base font-bold",children:c?g.jsxs(g.Fragment,{children:[g.jsx(_Z,{className:"w-5 h-5 mr-2 animate-spin"}),"Memuat..."]}):"🚀 MASUK SEKARANG"})]})]}),g.jsxs("div",{className:"text-center mt-8",children:[g.jsx("p",{className:"text-sm text-slate-500 mb-3",children:"Butuh bantuan?"}),g.jsx("a",{href:"mailto:mail.sidewa@gmail.com",className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg transition-colors",children:"Hubungi Kami"})]}),g.jsx("p",{className:"text-center text-sm text-slate-400 mt-6",children:"© 2026 Gusti Dewa Anggading | V2.0"})]})})]})}var QZ=Array.isArray,Oa=QZ,eQ=typeof U1=="object"&&U1&&U1.Object===Object&&U1,BF=eQ,tQ=BF,rQ=typeof self=="object"&&self&&self.Object===Object&&self,nQ=tQ||rQ||Function("return this")(),Ks=nQ,iQ=Ks,aQ=iQ.Symbol,Hg=aQ,hO=Hg,UF=Object.prototype,oQ=UF.hasOwnProperty,sQ=UF.toString,w0=hO?hO.toStringTag:void 0;function lQ(e){var t=oQ.call(e,w0),r=e[w0];try{e[w0]=void 0;var n=!0}catch{}var i=sQ.call(e);return n&&(t?e[w0]=r:delete e[w0]),i}var cQ=lQ,uQ=Object.prototype,fQ=uQ.toString;function dQ(e){return fQ.call(e)}var hQ=dQ,pO=Hg,pQ=cQ,mQ=hQ,gQ="[object Null]",vQ="[object Undefined]",mO=pO?pO.toStringTag:void 0;function yQ(e){return e==null?e===void 0?vQ:gQ:mO&&mO in Object(e)?pQ(e):mQ(e)}var ec=yQ;function xQ(e){return e!=null&&typeof e=="object"}var tc=xQ,bQ=ec,wQ=tc,SQ="[object Symbol]";function _Q(e){return typeof e=="symbol"||wQ(e)&&bQ(e)==SQ}var gp=_Q,AQ=Oa,EQ=gp,NQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PQ=/^\w*$/;function TQ(e,t){if(AQ(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||EQ(e)?!0:PQ.test(e)||!NQ.test(e)||t!=null&&e in Object(t)}var CE=TQ;function CQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var bu=CQ;const vp=gr(bu);var OQ=ec,kQ=bu,jQ="[object AsyncFunction]",LQ="[object Function]",IQ="[object GeneratorFunction]",DQ="[object Proxy]";function RQ(e){if(!kQ(e))return!1;var t=OQ(e);return t==LQ||t==IQ||t==jQ||t==DQ}var OE=RQ;const Dt=gr(OE);var MQ=Ks,FQ=MQ["__core-js_shared__"],$Q=FQ,L5=$Q,gO=function(){var e=/[^.]+$/.exec(L5&&L5.keys&&L5.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function BQ(e){return!!gO&&gO in e}var UQ=BQ,WQ=Function.prototype,zQ=WQ.toString;function HQ(e){if(e!=null){try{return zQ.call(e)}catch{}try{return e+""}catch{}}return""}var WF=HQ,VQ=OE,GQ=UQ,qQ=bu,KQ=WF,XQ=/[\\^$.*+?()[\]{}|]/g,YQ=/^\[object .+?Constructor\]$/,JQ=Function.prototype,ZQ=Object.prototype,QQ=JQ.toString,eee=ZQ.hasOwnProperty,tee=RegExp("^"+QQ.call(eee).replace(XQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ree(e){if(!qQ(e)||GQ(e))return!1;var t=VQ(e)?tee:YQ;return t.test(KQ(e))}var nee=ree;function iee(e,t){return e==null?void 0:e[t]}var aee=iee,oee=nee,see=aee;function lee(e,t){var r=see(e,t);return oee(r)?r:void 0}var qf=lee,cee=qf,uee=cee(Object,"create"),X2=uee,vO=X2;function fee(){this.__data__=vO?vO(null):{},this.size=0}var dee=fee;function hee(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var pee=hee,mee=X2,gee="__lodash_hash_undefined__",vee=Object.prototype,yee=vee.hasOwnProperty;function xee(e){var t=this.__data__;if(mee){var r=t[e];return r===gee?void 0:r}return yee.call(t,e)?t[e]:void 0}var bee=xee,wee=X2,See=Object.prototype,_ee=See.hasOwnProperty;function Aee(e){var t=this.__data__;return wee?t[e]!==void 0:_ee.call(t,e)}var Eee=Aee,Nee=X2,Pee="__lodash_hash_undefined__";function Tee(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Nee&&t===void 0?Pee:t,this}var Cee=Tee,Oee=dee,kee=pee,jee=bee,Lee=Eee,Iee=Cee;function yp(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])}}yp.prototype.clear=Oee;yp.prototype.delete=kee;yp.prototype.get=jee;yp.prototype.has=Lee;yp.prototype.set=Iee;var Dee=yp;function Ree(){this.__data__=[],this.size=0}var Mee=Ree;function Fee(e,t){return e===t||e!==e&&t!==t}var kE=Fee,$ee=kE;function Bee(e,t){for(var r=e.length;r--;)if($ee(e[r][0],t))return r;return-1}var Y2=Bee,Uee=Y2,Wee=Array.prototype,zee=Wee.splice;function Hee(e){var t=this.__data__,r=Uee(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():zee.call(t,r,1),--this.size,!0}var Vee=Hee,Gee=Y2;function qee(e){var t=this.__data__,r=Gee(t,e);return r<0?void 0:t[r][1]}var Kee=qee,Xee=Y2;function Yee(e){return Xee(this.__data__,e)>-1}var Jee=Yee,Zee=Y2;function Qee(e,t){var r=this.__data__,n=Zee(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ete=Qee,tte=Mee,rte=Vee,nte=Kee,ite=Jee,ate=ete;function xp(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])}}xp.prototype.clear=tte;xp.prototype.delete=rte;xp.prototype.get=nte;xp.prototype.has=ite;xp.prototype.set=ate;var J2=xp,ote=qf,ste=Ks,lte=ote(ste,"Map"),jE=lte,yO=Dee,cte=J2,ute=jE;function fte(){this.size=0,this.__data__={hash:new yO,map:new(ute||cte),string:new yO}}var dte=fte;function hte(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var pte=hte,mte=pte;function gte(e,t){var r=e.__data__;return mte(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Z2=gte,vte=Z2;function yte(e){var t=vte(this,e).delete(e);return this.size-=t?1:0,t}var xte=yte,bte=Z2;function wte(e){return bte(this,e).get(e)}var Ste=wte,_te=Z2;function Ate(e){return _te(this,e).has(e)}var Ete=Ate,Nte=Z2;function Pte(e,t){var r=Nte(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var Tte=Pte,Cte=dte,Ote=xte,kte=Ste,jte=Ete,Lte=Tte;function bp(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])}}bp.prototype.clear=Cte;bp.prototype.delete=Ote;bp.prototype.get=kte;bp.prototype.has=jte;bp.prototype.set=Lte;var LE=bp,zF=LE,Ite="Expected a function";function IE(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ite);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(IE.Cache||zF),r}IE.Cache=zF;var HF=IE;const Dte=gr(HF);var Rte=HF,Mte=500;function Fte(e){var t=Rte(e,function(n){return r.size===Mte&&r.clear(),n}),r=t.cache;return t}var $te=Fte,Bte=$te,Ute=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wte=/\\(\\)?/g,zte=Bte(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ute,function(r,n,i,a){t.push(i?a.replace(Wte,"$1"):n||r)}),t}),Hte=zte;function Vte(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 DE=Vte,xO=Hg,Gte=DE,qte=Oa,Kte=gp,bO=xO?xO.prototype:void 0,wO=bO?bO.toString:void 0;function VF(e){if(typeof e=="string")return e;if(qte(e))return Gte(e,VF)+"";if(Kte(e))return wO?wO.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Xte=VF,Yte=Xte;function Jte(e){return e==null?"":Yte(e)}var GF=Jte,Zte=Oa,Qte=CE,ere=Hte,tre=GF;function rre(e,t){return Zte(e)?e:Qte(e,t)?[e]:ere(tre(e))}var qF=rre,nre=gp;function ire(e){if(typeof e=="string"||nre(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Q2=ire,are=qF,ore=Q2;function sre(e,t){t=are(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ore(t[r++])];return r&&r==n?e:void 0}var RE=sre,lre=RE;function cre(e,t,r){var n=e==null?void 0:lre(e,t);return n===void 0?r:n}var KF=cre;const eo=gr(KF);function ure(e){return e==null}var fre=ure;const tr=gr(fre);var dre=ec,hre=Oa,pre=tc,mre="[object String]";function gre(e){return typeof e=="string"||!hre(e)&&pre(e)&&dre(e)==mre}var vre=gre;const _f=gr(vre);var XF={exports:{}},kr={};/** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ME=Symbol.for("react.element"),FE=Symbol.for("react.portal"),eb=Symbol.for("react.fragment"),tb=Symbol.for("react.strict_mode"),rb=Symbol.for("react.profiler"),nb=Symbol.for("react.provider"),ib=Symbol.for("react.context"),yre=Symbol.for("react.server_context"),ab=Symbol.for("react.forward_ref"),ob=Symbol.for("react.suspense"),sb=Symbol.for("react.suspense_list"),lb=Symbol.for("react.memo"),cb=Symbol.for("react.lazy"),xre=Symbol.for("react.offscreen"),YF;YF=Symbol.for("react.module.reference");function Fo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ME:switch(e=e.type,e){case eb:case rb:case tb:case ob:case sb:return e;default:switch(e=e&&e.$$typeof,e){case yre:case ib:case ab:case cb:case lb:case nb:return e;default:return t}}case FE:return t}}}kr.ContextConsumer=ib;kr.ContextProvider=nb;kr.Element=ME;kr.ForwardRef=ab;kr.Fragment=eb;kr.Lazy=cb;kr.Memo=lb;kr.Portal=FE;kr.Profiler=rb;kr.StrictMode=tb;kr.Suspense=ob;kr.SuspenseList=sb;kr.isAsyncMode=function(){return!1};kr.isConcurrentMode=function(){return!1};kr.isContextConsumer=function(e){return Fo(e)===ib};kr.isContextProvider=function(e){return Fo(e)===nb};kr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ME};kr.isForwardRef=function(e){return Fo(e)===ab};kr.isFragment=function(e){return Fo(e)===eb};kr.isLazy=function(e){return Fo(e)===cb};kr.isMemo=function(e){return Fo(e)===lb};kr.isPortal=function(e){return Fo(e)===FE};kr.isProfiler=function(e){return Fo(e)===rb};kr.isStrictMode=function(e){return Fo(e)===tb};kr.isSuspense=function(e){return Fo(e)===ob};kr.isSuspenseList=function(e){return Fo(e)===sb};kr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===eb||e===rb||e===tb||e===ob||e===sb||e===xre||typeof e=="object"&&e!==null&&(e.$$typeof===cb||e.$$typeof===lb||e.$$typeof===nb||e.$$typeof===ib||e.$$typeof===ab||e.$$typeof===YF||e.getModuleId!==void 0)};kr.typeOf=Fo;XF.exports=kr;var JF=XF.exports,bre=ec,wre=tc,Sre="[object Number]";function _re(e){return typeof e=="number"||wre(e)&&bre(e)==Sre}var ZF=_re;const Are=gr(ZF);var Ere=ZF;function Nre(e){return Ere(e)&&e!=+e}var Pre=Nre;const Vg=gr(Pre);var ua=function(t){return t===0?0:t>0?1:-1},of=function(t){return _f(t)&&t.indexOf("%")===t.length-1},Ye=function(t){return Are(t)&&!Vg(t)},Tre=function(t){return tr(t)},oi=function(t){return Ye(t)||_f(t)},Cre=0,Gg=function(t){var r=++Cre;return"".concat(t||"").concat(r)},fa=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(!Ye(t)&&!_f(t))return n;var a;if(of(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Vg(a)&&(a=n),i&&a>r&&(a=r),a},Ic=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Ore=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},Oc=function(t,r){return Ye(t)&&Ye(r)?function(n){return t+n*(r-t)}:function(){return r}};function pA(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):eo(n,t))===r})}var kre=function(t,r){return Ye(t)&&Ye(r)?t-r:_f(t)&&_f(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function nh(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 mA(e){"@babel/helpers - typeof";return mA=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},mA(e)}var jre=["viewBox","children"],Lre=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],SO=["points","pathLength"],I5={svg:jre,polygon:SO,polyline:SO},$E=["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","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Uy=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(E.isValidElement(t)&&(n=t.props),!vp(n))return null;var i={};return Object.keys(n).forEach(function(a){$E.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Ire=function(t,r,n){return function(i){return t(r,n,i),null}},Af=function(t,r,n){if(!vp(t)||mA(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];$E.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Ire(o,r,n))}),i},Dre=["children"],Rre=["children"];function _O(e,t){if(e==null)return{};var r=Mre(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 Mre(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 AO={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"},Ol=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},EO=null,D5=null,BE=function e(t){if(t===EO&&Array.isArray(D5))return D5;var r=[];return E.Children.forEach(t,function(n){tr(n)||(JF.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),D5=r,EO=t,r};function ko(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ol(i)}):n=[Ol(t)],BE(e).forEach(function(i){var a=eo(i,"type.displayName")||eo(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ha(e,t){var r=ko(e,t);return r&&r[0]}var NO=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!Ye(n)||n<=0||!Ye(i)||i<=0)},Fre=["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"],$re=function(t){return t&&t.type&&_f(t.type)&&Fre.indexOf(t.type)>=0},Bre=function(t,r,n,i){var a,o=(a=I5==null?void 0:I5[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Dt(t)&&(i&&o.includes(r)||Lre.includes(r))||n&&$E.includes(r)},Ot=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(E.isValidElement(t)&&(i=t.props),!vp(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;Bre((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},gA=function e(t,r){if(t===r)return!0;var n=E.Children.count(t);if(n!==E.Children.count(r))return!1;if(n===0)return!0;if(n===1)return PO(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(!PO(a,o))return!1}return!0},PO=function(t,r){if(tr(t)&&tr(r))return!0;if(!tr(t)&&!tr(r)){var n=t.props||{},i=n.children,a=_O(n,Dre),o=r.props||{},s=o.children,l=_O(o,Rre);return i&&s?nh(a,l)&&gA(i,s):!i&&!s?nh(a,l):!1}return!1},TO=function(t,r){var n=[],i={};return BE(t).forEach(function(a,o){if($re(a))n.push(a);else if(a){var s=Ol(a.type),l=r[s]||{},c=l.handler,u=l.once;if(c&&(!u||!i[s])){var f=c(a,s,o);n.push(f),i[s]=!0}}}),n},Ure=function(t){var r=t&&t.type;return r&&AO[r]?AO[r]:null},Wre=function(t,r){return BE(r).indexOf(t)},zre=["children","width","height","viewBox","className","style","title","desc"];function vA(){return vA=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},vA.apply(this,arguments)}function Hre(e,t){if(e==null)return{};var r=Vre(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 Vre(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 yA(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,c=Hre(e,zre),u=i||{width:r,height:n,x:0,y:0},f=Yt("recharts-surface",a);return ge.createElement("svg",vA({},Ot(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),ge.createElement("title",null,s),ge.createElement("desc",null,l),t)}var Gre=["children","className"];function xA(){return xA=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},xA.apply(this,arguments)}function qre(e,t){if(e==null)return{};var r=Kre(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 Kre(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 Pr=ge.forwardRef(function(e,t){var r=e.children,n=e.className,i=qre(e,Gre),a=Yt("recharts-layer",n);return ge.createElement("g",xA({className:a},Ot(i,!0),{ref:t}),r)}),ds=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 Xre(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 Yre=Xre,Jre=Yre;function Zre(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Jre(e,t,r)}var Qre=Zre,ene="\\ud800-\\udfff",tne="\\u0300-\\u036f",rne="\\ufe20-\\ufe2f",nne="\\u20d0-\\u20ff",ine=tne+rne+nne,ane="\\ufe0e\\ufe0f",one="\\u200d",sne=RegExp("["+one+ene+ine+ane+"]");function lne(e){return sne.test(e)}var QF=lne;function cne(e){return e.split("")}var une=cne,e7="\\ud800-\\udfff",fne="\\u0300-\\u036f",dne="\\ufe20-\\ufe2f",hne="\\u20d0-\\u20ff",pne=fne+dne+hne,mne="\\ufe0e\\ufe0f",gne="["+e7+"]",bA="["+pne+"]",wA="\\ud83c[\\udffb-\\udfff]",vne="(?:"+bA+"|"+wA+")",t7="[^"+e7+"]",r7="(?:\\ud83c[\\udde6-\\uddff]){2}",n7="[\\ud800-\\udbff][\\udc00-\\udfff]",yne="\\u200d",i7=vne+"?",a7="["+mne+"]?",xne="(?:"+yne+"(?:"+[t7,r7,n7].join("|")+")"+a7+i7+")*",bne=a7+i7+xne,wne="(?:"+[t7+bA+"?",bA,r7,n7,gne].join("|")+")",Sne=RegExp(wA+"(?="+wA+")|"+wne+bne,"g");function _ne(e){return e.match(Sne)||[]}var Ane=_ne,Ene=une,Nne=QF,Pne=Ane;function Tne(e){return Nne(e)?Pne(e):Ene(e)}var Cne=Tne,One=Qre,kne=QF,jne=Cne,Lne=GF;function Ine(e){return function(t){t=Lne(t);var r=kne(t)?jne(t):void 0,n=r?r[0]:t.charAt(0),i=r?One(r,1).join(""):t.slice(1);return n[e]()+i}}var Dne=Ine,Rne=Dne,Mne=Rne("toUpperCase"),Fne=Mne;const ub=gr(Fne);function qr(e){return function(){return e}}const o7=Math.cos,Wy=Math.sin,ys=Math.sqrt,zy=Math.PI,fb=2*zy,SA=Math.PI,_A=2*SA,Ku=1e-6,$ne=_A-Ku;function s7(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Bne(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return s7;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 Une{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?s7:Bne(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},${+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,c=i-r,u=o-t,f=s-r,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Ku)if(!(Math.abs(f*l-c*u)>Ku)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,v=i-s,p=l*l+c*c,m=h*h+v*v,y=Math.sqrt(p),x=Math.sqrt(d),w=a*Math.tan((SA-Math.acos((p+d-m)/(2*y*x)))/2),S=w/x,A=w/y;Math.abs(S-1)>Ku&&this._append`L${t+S*u},${r+S*f}`,this._append`A${a},${a},0,0,${+(f*h>u*v)},${this._x1=t+A*l},${this._y1=r+A*c}`}}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),c=t+s,u=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ku||Math.abs(this._y1-u)>Ku)&&this._append`L${c},${u}`,n&&(d<0&&(d=d%_A+_A),d>$ne?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:d>Ku&&this._append`A${n},${n},0,${+(d>=SA)},${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 UE(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 Une(t)}function WE(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function l7(e){this._context=e}l7.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 db(e){return new l7(e)}function c7(e){return e[0]}function u7(e){return e[1]}function f7(e,t){var r=qr(!0),n=null,i=db,a=null,o=UE(s);e=typeof e=="function"?e:e===void 0?c7:qr(e),t=typeof t=="function"?t:t===void 0?u7:qr(t);function s(l){var c,u=(l=WE(l)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=u;++c)!(c<u&&r(f=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,l),+t(f,c,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:qr(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:qr(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:qr(!!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 av(e,t,r){var n=null,i=qr(!0),a=null,o=db,s=null,l=UE(c);e=typeof e=="function"?e:e===void 0?c7:qr(+e),t=typeof t=="function"?t:qr(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?u7:qr(+r);function c(f){var d,h,v,p=(f=WE(f)).length,m,y=!1,x,w=new Array(p),S=new Array(p);for(a==null&&(s=o(x=l())),d=0;d<=p;++d){if(!(d<p&&i(m=f[d],d,f))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),v=d-1;v>=h;--v)s.point(w[v],S[v]);s.lineEnd(),s.areaEnd()}y&&(w[d]=+e(m,d,f),S[d]=+t(m,d,f),s.point(n?+n(m,d,f):w[d],r?+r(m,d,f):S[d]))}if(x)return s=null,x+""||null}function u(){return f7().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:qr(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:qr(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:qr(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:qr(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:qr(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:qr(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:qr(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}class d7{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 Wne(e){return new d7(e,!0)}function zne(e){return new d7(e,!1)}const zE={draw(e,t){const r=ys(t/zy);e.moveTo(r,0),e.arc(0,0,r,0,fb)}},Hne={draw(e,t){const r=ys(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()}},h7=ys(1/3),Vne=h7*2,Gne={draw(e,t){const r=ys(t/Vne),n=r*h7;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},qne={draw(e,t){const r=ys(t),n=-r/2;e.rect(n,n,r,r)}},Kne=.8908130915292852,p7=Wy(zy/10)/Wy(7*zy/10),Xne=Wy(fb/10)*p7,Yne=-o7(fb/10)*p7,Jne={draw(e,t){const r=ys(t*Kne),n=Xne*r,i=Yne*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=fb*a/5,s=o7(o),l=Wy(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},R5=ys(3),Zne={draw(e,t){const r=-ys(t/(R5*3));e.moveTo(0,r*2),e.lineTo(-R5*r,-r),e.lineTo(R5*r,-r),e.closePath()}},yo=-.5,xo=ys(3)/2,AA=1/ys(12),Qne=(AA/2+1)*3,eie={draw(e,t){const r=ys(t/Qne),n=r/2,i=r*AA,a=n,o=r*AA+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(yo*n-xo*i,xo*n+yo*i),e.lineTo(yo*a-xo*o,xo*a+yo*o),e.lineTo(yo*s-xo*l,xo*s+yo*l),e.lineTo(yo*n+xo*i,yo*i-xo*n),e.lineTo(yo*a+xo*o,yo*o-xo*a),e.lineTo(yo*s+xo*l,yo*l-xo*s),e.closePath()}};function tie(e,t){let r=null,n=UE(i);e=typeof e=="function"?e:qr(e||zE),t=typeof t=="function"?t:qr(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:qr(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:qr(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Hy(){}function Vy(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 m7(e){this._context=e}m7.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:Vy(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:Vy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function rie(e){return new m7(e)}function g7(e){this._context=e}g7.prototype={areaStart:Hy,areaEnd:Hy,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:Vy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function nie(e){return new g7(e)}function v7(e){this._context=e}v7.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:Vy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function iie(e){return new v7(e)}function y7(e){this._context=e}y7.prototype={areaStart:Hy,areaEnd:Hy,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 aie(e){return new y7(e)}function CO(e){return e<0?-1:1}function OO(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(CO(a)+CO(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function kO(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function M5(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 Gy(e){this._context=e}Gy.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:M5(this,this._t0,kO(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,M5(this,kO(this,r=OO(this,e,t)),r);break;default:M5(this,this._t0,r=OO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function x7(e){this._context=new b7(e)}(x7.prototype=Object.create(Gy.prototype)).point=function(e,t){Gy.prototype.point.call(this,t,e)};function b7(e){this._context=e}b7.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 oie(e){return new Gy(e)}function sie(e){return new x7(e)}function w7(e){this._context=e}w7.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=jO(e),i=jO(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 jO(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 lie(e){return new w7(e)}function hb(e,t){this._context=e,this._t=t}hb.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;default:{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 cie(e){return new hb(e,.5)}function uie(e){return new hb(e,0)}function fie(e){return new hb(e,1)}function Lh(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 EA(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function die(e,t){return e[t]}function hie(e){const t=[];return t.key=e,t}function pie(){var e=qr([]),t=EA,r=Lh,n=die;function i(a){var o=Array.from(e.apply(this,arguments),hie),s,l=o.length,c=-1,u;for(const f of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+n(f,o[s].key,c,a)]).data=f;for(s=0,u=WE(t(o));s<l;++s)o[u[s]].index=s;return r(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:qr(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:qr(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?EA:typeof a=="function"?a:qr(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Lh,i):r},i}function mie(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}Lh(e,t)}}function gie(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}Lh(e,t)}}function vie(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,c=0;s<o;++s){for(var u=e[t[s]],f=u[n][1]||0,d=u[n-1][1]||0,h=(f-d)/2,v=0;v<s;++v){var p=e[t[v]],m=p[n][1]||0,y=p[n-1][1]||0;h+=m-y}l+=f,c+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,Lh(e,t)}}function $m(e){"@babel/helpers - typeof";return $m=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},$m(e)}var yie=["type","size","sizeType"];function NA(){return NA=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},NA.apply(this,arguments)}function LO(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 IO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(r),!0).forEach(function(n){xie(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xie(e,t,r){return t=bie(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bie(e){var t=wie(e,"string");return $m(t)=="symbol"?t:t+""}function wie(e,t){if($m(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($m(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sie(e,t){if(e==null)return{};var r=_ie(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 _ie(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 S7={symbolCircle:zE,symbolCross:Hne,symbolDiamond:Gne,symbolSquare:qne,symbolStar:Jne,symbolTriangle:Zne,symbolWye:eie},Aie=Math.PI/180,Eie=function(t){var r="symbol".concat(ub(t));return S7[r]||zE},Nie=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*Aie;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}},Pie=function(t,r){S7["symbol".concat(ub(t))]=r},HE=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=Sie(t,yie),c=IO(IO({},l),{},{type:n,size:a,sizeType:s}),u=function(){var m=Eie(n),y=tie().type(m).size(Nie(a,s,n));return y()},f=c.className,d=c.cx,h=c.cy,v=Ot(c,!0);return d===+d&&h===+h&&a===+a?ge.createElement("path",NA({},v,{className:Yt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:u()})):null};HE.registerSymbol=Pie;function Ih(e){"@babel/helpers - typeof";return Ih=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},Ih(e)}function PA(){return PA=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},PA.apply(this,arguments)}function DO(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 Tie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DO(Object(r),!0).forEach(function(n){Bm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Cie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oie(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,A7(n.key),n)}}function kie(e,t,r){return t&&Oie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jie(e,t,r){return t=qy(t),Lie(e,_7()?Reflect.construct(t,r||[],qy(e).constructor):t.apply(e,r))}function Lie(e,t){if(t&&(Ih(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iie(e)}function Iie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_7=function(){return!!e})()}function qy(e){return qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qy(e)}function Die(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&&TA(e,t)}function TA(e,t){return TA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},TA(e,t)}function Bm(e,t,r){return t=A7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A7(e){var t=Rie(e,"string");return Ih(t)=="symbol"?t:t+""}function Rie(e,t){if(Ih(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ih(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bo=32,VE=function(e){function t(){return Cie(this,t),jie(this,t,arguments)}return Die(t,e),kie(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=bo/2,o=bo/6,s=bo/3,l=n.inactive?i:n.color;if(n.type==="plainline")return ge.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:bo,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return ge.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,` A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,` H`).concat(bo,"M").concat(2*s,",").concat(a,` A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return ge.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(bo/8,"h").concat(bo,"v").concat(bo*3/4,"h").concat(-bo,"z"),className:"recharts-legend-icon"});if(ge.isValidElement(n.legendIcon)){var c=Tie({},n);return delete c.legendIcon,ge.cloneElement(n.legendIcon,c)}return ge.createElement(HE,{fill:l,cx:a,cy:a,size:bo,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,c=i.inactiveColor,u={x:0,y:0,width:bo,height:bo},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,v){var p=h.formatter||l,m=Yt(Bm(Bm({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=Dt(h.value)?null:h.value;ds(!Dt(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=h.inactive?c:h.color;return ge.createElement("li",PA({className:m,style:f,key:"legend-item-".concat(v)},Af(n.props,h,v)),ge.createElement(yA,{width:o,height:o,viewBox:u,style:d},n.renderIcon(h)),ge.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},p?p(y,h,v):y))})}},{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 ge.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(E.PureComponent);Bm(VE,"displayName","Legend");Bm(VE,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Mie=J2;function Fie(){this.__data__=new Mie,this.size=0}var $ie=Fie;function Bie(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Uie=Bie;function Wie(e){return this.__data__.get(e)}var zie=Wie;function Hie(e){return this.__data__.has(e)}var Vie=Hie,Gie=J2,qie=jE,Kie=LE,Xie=200;function Yie(e,t){var r=this.__data__;if(r instanceof Gie){var n=r.__data__;if(!qie||n.length<Xie-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Kie(n)}return r.set(e,t),this.size=r.size,this}var Jie=Yie,Zie=J2,Qie=$ie,eae=Uie,tae=zie,rae=Vie,nae=Jie;function wp(e){var t=this.__data__=new Zie(e);this.size=t.size}wp.prototype.clear=Qie;wp.prototype.delete=eae;wp.prototype.get=tae;wp.prototype.has=rae;wp.prototype.set=nae;var E7=wp,iae="__lodash_hash_undefined__";function aae(e){return this.__data__.set(e,iae),this}var oae=aae;function sae(e){return this.__data__.has(e)}var lae=sae,cae=LE,uae=oae,fae=lae;function Ky(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new cae;++t<r;)this.add(e[t])}Ky.prototype.add=Ky.prototype.push=uae;Ky.prototype.has=fae;var N7=Ky;function dae(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 P7=dae;function hae(e,t){return e.has(t)}var T7=hae,pae=N7,mae=P7,gae=T7,vae=1,yae=2;function xae(e,t,r,n,i,a){var o=r&vae,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=r&yae?new pae:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var v=e[f],p=t[f];if(n)var m=o?n(p,v,f,t,e,a):n(v,p,f,e,t,a);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!mae(t,function(y,x){if(!gae(h,x)&&(v===y||i(v,y,r,n,a)))return h.push(x)})){d=!1;break}}else if(!(v===p||i(v,p,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var C7=xae,bae=Ks,wae=bae.Uint8Array,Sae=wae;function _ae(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var Aae=_ae;function Eae(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var GE=Eae,RO=Hg,MO=Sae,Nae=kE,Pae=C7,Tae=Aae,Cae=GE,Oae=1,kae=2,jae="[object Boolean]",Lae="[object Date]",Iae="[object Error]",Dae="[object Map]",Rae="[object Number]",Mae="[object RegExp]",Fae="[object Set]",$ae="[object String]",Bae="[object Symbol]",Uae="[object ArrayBuffer]",Wae="[object DataView]",FO=RO?RO.prototype:void 0,F5=FO?FO.valueOf:void 0;function zae(e,t,r,n,i,a,o){switch(r){case Wae:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Uae:return!(e.byteLength!=t.byteLength||!a(new MO(e),new MO(t)));case jae:case Lae:case Rae:return Nae(+e,+t);case Iae:return e.name==t.name&&e.message==t.message;case Mae:case $ae:return e==t+"";case Dae:var s=Tae;case Fae:var l=n&Oae;if(s||(s=Cae),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=kae,o.set(e,t);var u=Pae(s(e),s(t),n,i,a,o);return o.delete(e),u;case Bae:if(F5)return F5.call(e)==F5.call(t)}return!1}var Hae=zae;function Vae(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var O7=Vae,Gae=O7,qae=Oa;function Kae(e,t,r){var n=t(e);return qae(e)?n:Gae(n,r(e))}var Xae=Kae;function Yae(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 Jae=Yae;function Zae(){return[]}var Qae=Zae,eoe=Jae,toe=Qae,roe=Object.prototype,noe=roe.propertyIsEnumerable,$O=Object.getOwnPropertySymbols,ioe=$O?function(e){return e==null?[]:(e=Object(e),eoe($O(e),function(t){return noe.call(e,t)}))}:toe,aoe=ioe;function ooe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var soe=ooe,loe=ec,coe=tc,uoe="[object Arguments]";function foe(e){return coe(e)&&loe(e)==uoe}var doe=foe,BO=doe,hoe=tc,k7=Object.prototype,poe=k7.hasOwnProperty,moe=k7.propertyIsEnumerable,goe=BO(function(){return arguments}())?BO:function(e){return hoe(e)&&poe.call(e,"callee")&&!moe.call(e,"callee")},qE=goe,Xy={exports:{}};function voe(){return!1}var yoe=voe;Xy.exports;(function(e,t){var r=Ks,n=yoe,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,c=l||n;e.exports=c})(Xy,Xy.exports);var j7=Xy.exports,xoe=9007199254740991,boe=/^(?:0|[1-9]\d*)$/;function woe(e,t){var r=typeof e;return t=t??xoe,!!t&&(r=="number"||r!="symbol"&&boe.test(e))&&e>-1&&e%1==0&&e<t}var KE=woe,Soe=9007199254740991;function _oe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Soe}var XE=_oe,Aoe=ec,Eoe=XE,Noe=tc,Poe="[object Arguments]",Toe="[object Array]",Coe="[object Boolean]",Ooe="[object Date]",koe="[object Error]",joe="[object Function]",Loe="[object Map]",Ioe="[object Number]",Doe="[object Object]",Roe="[object RegExp]",Moe="[object Set]",Foe="[object String]",$oe="[object WeakMap]",Boe="[object ArrayBuffer]",Uoe="[object DataView]",Woe="[object Float32Array]",zoe="[object Float64Array]",Hoe="[object Int8Array]",Voe="[object Int16Array]",Goe="[object Int32Array]",qoe="[object Uint8Array]",Koe="[object Uint8ClampedArray]",Xoe="[object Uint16Array]",Yoe="[object Uint32Array]",en={};en[Woe]=en[zoe]=en[Hoe]=en[Voe]=en[Goe]=en[qoe]=en[Koe]=en[Xoe]=en[Yoe]=!0;en[Poe]=en[Toe]=en[Boe]=en[Coe]=en[Uoe]=en[Ooe]=en[koe]=en[joe]=en[Loe]=en[Ioe]=en[Doe]=en[Roe]=en[Moe]=en[Foe]=en[$oe]=!1;function Joe(e){return Noe(e)&&Eoe(e.length)&&!!en[Aoe(e)]}var Zoe=Joe;function Qoe(e){return function(t){return e(t)}}var L7=Qoe,Yy={exports:{}};Yy.exports;(function(e,t){var r=BF,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})(Yy,Yy.exports);var ese=Yy.exports,tse=Zoe,rse=L7,UO=ese,WO=UO&&UO.isTypedArray,nse=WO?rse(WO):tse,I7=nse,ise=soe,ase=qE,ose=Oa,sse=j7,lse=KE,cse=I7,use=Object.prototype,fse=use.hasOwnProperty;function dse(e,t){var r=ose(e),n=!r&&ase(e),i=!r&&!n&&sse(e),a=!r&&!n&&!i&&cse(e),o=r||n||i||a,s=o?ise(e.length,String):[],l=s.length;for(var c in e)(t||fse.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||lse(c,l)))&&s.push(c);return s}var hse=dse,pse=Object.prototype;function mse(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||pse;return e===r}var gse=mse;function vse(e,t){return function(r){return e(t(r))}}var D7=vse,yse=D7,xse=yse(Object.keys,Object),bse=xse,wse=gse,Sse=bse,_se=Object.prototype,Ase=_se.hasOwnProperty;function Ese(e){if(!wse(e))return Sse(e);var t=[];for(var r in Object(e))Ase.call(e,r)&&r!="constructor"&&t.push(r);return t}var Nse=Ese,Pse=OE,Tse=XE;function Cse(e){return e!=null&&Tse(e.length)&&!Pse(e)}var qg=Cse,Ose=hse,kse=Nse,jse=qg;function Lse(e){return jse(e)?Ose(e):kse(e)}var pb=Lse,Ise=Xae,Dse=aoe,Rse=pb;function Mse(e){return Ise(e,Rse,Dse)}var Fse=Mse,zO=Fse,$se=1,Bse=Object.prototype,Use=Bse.hasOwnProperty;function Wse(e,t,r,n,i,a){var o=r&$se,s=zO(e),l=s.length,c=zO(t),u=c.length;if(l!=u&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:Use.call(t,d)))return!1}var h=a.get(e),v=a.get(t);if(h&&v)return h==t&&v==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++f<l;){d=s[f];var y=e[d],x=t[d];if(n)var w=o?n(x,y,d,t,e,a):n(y,x,d,e,t,a);if(!(w===void 0?y===x||i(y,x,r,n,a):w)){p=!1;break}m||(m=d=="constructor")}if(p&&!m){var S=e.constructor,A=t.constructor;S!=A&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof A=="function"&&A instanceof A)&&(p=!1)}return a.delete(e),a.delete(t),p}var zse=Wse,Hse=qf,Vse=Ks,Gse=Hse(Vse,"DataView"),qse=Gse,Kse=qf,Xse=Ks,Yse=Kse(Xse,"Promise"),Jse=Yse,Zse=qf,Qse=Ks,ele=Zse(Qse,"Set"),R7=ele,tle=qf,rle=Ks,nle=tle(rle,"WeakMap"),ile=nle,CA=qse,OA=jE,kA=Jse,jA=R7,LA=ile,M7=ec,Sp=WF,HO="[object Map]",ale="[object Object]",VO="[object Promise]",GO="[object Set]",qO="[object WeakMap]",KO="[object DataView]",ole=Sp(CA),sle=Sp(OA),lle=Sp(kA),cle=Sp(jA),ule=Sp(LA),Xu=M7;(CA&&Xu(new CA(new ArrayBuffer(1)))!=KO||OA&&Xu(new OA)!=HO||kA&&Xu(kA.resolve())!=VO||jA&&Xu(new jA)!=GO||LA&&Xu(new LA)!=qO)&&(Xu=function(e){var t=M7(e),r=t==ale?e.constructor:void 0,n=r?Sp(r):"";if(n)switch(n){case ole:return KO;case sle:return HO;case lle:return VO;case cle:return GO;case ule:return qO}return t});var fle=Xu,$5=E7,dle=C7,hle=Hae,ple=zse,XO=fle,YO=Oa,JO=j7,mle=I7,gle=1,ZO="[object Arguments]",QO="[object Array]",ov="[object Object]",vle=Object.prototype,ek=vle.hasOwnProperty;function yle(e,t,r,n,i,a){var o=YO(e),s=YO(t),l=o?QO:XO(e),c=s?QO:XO(t);l=l==ZO?ov:l,c=c==ZO?ov:c;var u=l==ov,f=c==ov,d=l==c;if(d&&JO(e)){if(!JO(t))return!1;o=!0,u=!1}if(d&&!u)return a||(a=new $5),o||mle(e)?dle(e,t,r,n,i,a):hle(e,t,l,r,n,i,a);if(!(r&gle)){var h=u&&ek.call(e,"__wrapped__"),v=f&&ek.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,m=v?t.value():t;return a||(a=new $5),i(p,m,r,n,a)}}return d?(a||(a=new $5),ple(e,t,r,n,i,a)):!1}var xle=yle,ble=xle,tk=tc;function F7(e,t,r,n,i){return e===t?!0:e==null||t==null||!tk(e)&&!tk(t)?e!==e&&t!==t:ble(e,t,r,n,F7,i)}var YE=F7,wle=E7,Sle=YE,_le=1,Ale=2;function Ele(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],c=e[l],u=s[1];if(o&&s[2]){if(c===void 0&&!(l in e))return!1}else{var f=new wle;if(n)var d=n(c,u,l,e,t,f);if(!(d===void 0?Sle(u,c,_le|Ale,n,f):d))return!1}}return!0}var Nle=Ele,Ple=bu;function Tle(e){return e===e&&!Ple(e)}var $7=Tle,Cle=$7,Ole=pb;function kle(e){for(var t=Ole(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Cle(i)]}return t}var jle=kle;function Lle(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var B7=Lle,Ile=Nle,Dle=jle,Rle=B7;function Mle(e){var t=Dle(e);return t.length==1&&t[0][2]?Rle(t[0][0],t[0][1]):function(r){return r===e||Ile(r,e,t)}}var Fle=Mle;function $le(e,t){return e!=null&&t in Object(e)}var Ble=$le,Ule=qF,Wle=qE,zle=Oa,Hle=KE,Vle=XE,Gle=Q2;function qle(e,t,r){t=Ule(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Gle(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&&Vle(i)&&Hle(o,i)&&(zle(e)||Wle(e)))}var Kle=qle,Xle=Ble,Yle=Kle;function Jle(e,t){return e!=null&&Yle(e,t,Xle)}var Zle=Jle,Qle=YE,ece=KF,tce=Zle,rce=CE,nce=$7,ice=B7,ace=Q2,oce=1,sce=2;function lce(e,t){return rce(e)&&nce(t)?ice(ace(e),t):function(r){var n=ece(r,e);return n===void 0&&n===t?tce(r,e):Qle(t,n,oce|sce)}}var cce=lce;function uce(e){return e}var _p=uce;function fce(e){return function(t){return t==null?void 0:t[e]}}var dce=fce,hce=RE;function pce(e){return function(t){return hce(t,e)}}var mce=pce,gce=dce,vce=mce,yce=CE,xce=Q2;function bce(e){return yce(e)?gce(xce(e)):vce(e)}var wce=bce,Sce=Fle,_ce=cce,Ace=_p,Ece=Oa,Nce=wce;function Pce(e){return typeof e=="function"?e:e==null?Ace:typeof e=="object"?Ece(e)?_ce(e[0],e[1]):Sce(e):Nce(e)}var Xs=Pce;function Tce(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 U7=Tce;function Cce(e){return e!==e}var Oce=Cce;function kce(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var jce=kce,Lce=U7,Ice=Oce,Dce=jce;function Rce(e,t,r){return t===t?Dce(e,t,r):Lce(e,Ice,r)}var Mce=Rce,Fce=Mce;function $ce(e,t){var r=e==null?0:e.length;return!!r&&Fce(e,t,0)>-1}var Bce=$ce;function Uce(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 Wce=Uce;function zce(){}var Hce=zce,B5=R7,Vce=Hce,Gce=GE,qce=1/0,Kce=B5&&1/Gce(new B5([,-0]))[1]==qce?function(e){return new B5(e)}:Vce,Xce=Kce,Yce=N7,Jce=Bce,Zce=Wce,Qce=T7,eue=Xce,tue=GE,rue=200;function nue(e,t,r){var n=-1,i=Jce,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=Zce;else if(a>=rue){var c=t?null:eue(e);if(c)return tue(c);o=!1,i=Qce,l=new Yce}else l=t?[]:s;e:for(;++n<a;){var u=e[n],f=t?t(u):u;if(u=r||u!==0?u:0,o&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;t&&l.push(f),s.push(u)}else i(l,f,r)||(l!==s&&l.push(f),s.push(u))}return s}var iue=nue,aue=Xs,oue=iue;function sue(e,t){return e&&e.length?oue(e,aue(t)):[]}var lue=sue;const rk=gr(lue);function W7(e,t,r){return t===!0?rk(e,r):Dt(t)?rk(e,t):e}function Dh(e){"@babel/helpers - typeof";return Dh=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},Dh(e)}var cue=["ref"];function nk(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 gl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nk(Object(r),!0).forEach(function(n){mb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ik(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,H7(n.key),n)}}function fue(e,t,r){return t&&ik(e.prototype,t),r&&ik(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function due(e,t,r){return t=Jy(t),hue(e,z7()?Reflect.construct(t,r||[],Jy(e).constructor):t.apply(e,r))}function hue(e,t){if(t&&(Dh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pue(e)}function pue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z7=function(){return!!e})()}function Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jy(e)}function mue(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&&IA(e,t)}function IA(e,t){return IA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},IA(e,t)}function mb(e,t,r){return t=H7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H7(e){var t=gue(e,"string");return Dh(t)=="symbol"?t:t+""}function gue(e,t){if(Dh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vue(e,t){if(e==null)return{};var r=yue(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 yue(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 xue(e){return e.value}function bue(e,t){if(ge.isValidElement(e))return ge.cloneElement(e,t);if(typeof e=="function")return ge.createElement(e,t);t.ref;var r=vue(t,cue);return ge.createElement(VE,r)}var ak=1,Zc=function(e){function t(){var r;uue(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=due(this,t,[].concat(i)),mb(r,"lastBoundingBox",{width:-1,height:-1}),r}return mue(t,e),fue(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)>ak||Math.abs(i.height-this.lastBoundingBox.height)>ak)&&(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?gl({},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,c=i.chartWidth,u=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 h=this.getBBoxSnapshot();f={left:((c||0)-h.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 v=this.getBBoxSnapshot();d={top:((u||0)-v.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return gl(gl({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,c=i.payloadUniqBy,u=i.payload,f=gl(gl({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return ge.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},bue(a,gl(gl({},this.props),{},{payload:W7(u,c,xue)})))}}],[{key:"getWithHeight",value:function(n,i){var a=gl(gl({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&Ye(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(E.PureComponent);mb(Zc,"displayName","Legend");mb(Zc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var ok=Hg,wue=qE,Sue=Oa,sk=ok?ok.isConcatSpreadable:void 0;function _ue(e){return Sue(e)||wue(e)||!!(sk&&e&&e[sk])}var Aue=_ue,Eue=O7,Nue=Aue;function V7(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Nue),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?V7(s,t-1,r,n,i):Eue(i,s):n||(i[i.length]=s)}return i}var G7=V7;function Pue(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 Tue=Pue,Cue=Tue,Oue=Cue(),kue=Oue,jue=kue,Lue=pb;function Iue(e,t){return e&&jue(e,t,Lue)}var q7=Iue,Due=qg;function Rue(e,t){return function(r,n){if(r==null)return r;if(!Due(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 Mue=Rue,Fue=q7,$ue=Mue,Bue=$ue(Fue),JE=Bue,Uue=JE,Wue=qg;function zue(e,t){var r=-1,n=Wue(e)?Array(e.length):[];return Uue(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var K7=zue;function Hue(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var Vue=Hue,lk=gp;function Gue(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=lk(e),o=t!==void 0,s=t===null,l=t===t,c=lk(t);if(!s&&!c&&!a&&e>t||a&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!c&&e<t||c&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}var que=Gue,Kue=que;function Xue(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=Kue(i[n],a[n]);if(l){if(n>=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var Yue=Xue,U5=DE,Jue=RE,Zue=Xs,Que=K7,efe=Vue,tfe=L7,rfe=Yue,nfe=_p,ife=Oa;function afe(e,t,r){t.length?t=U5(t,function(a){return ife(a)?function(o){return Jue(o,a.length===1?a[0]:a)}:a}):t=[nfe];var n=-1;t=U5(t,tfe(Zue));var i=Que(e,function(a,o,s){var l=U5(t,function(c){return c(a)});return{criteria:l,index:++n,value:a}});return efe(i,function(a,o){return rfe(a,o,r)})}var ofe=afe;function sfe(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 lfe=sfe,cfe=lfe,ck=Math.max;function ufe(e,t,r){return t=ck(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=ck(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),cfe(e,this,s)}}var ffe=ufe;function dfe(e){return function(){return e}}var hfe=dfe,pfe=qf,mfe=function(){try{var e=pfe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),X7=mfe,gfe=hfe,uk=X7,vfe=_p,yfe=uk?function(e,t){return uk(e,"toString",{configurable:!0,enumerable:!1,value:gfe(t),writable:!0})}:vfe,xfe=yfe,bfe=800,wfe=16,Sfe=Date.now;function _fe(e){var t=0,r=0;return function(){var n=Sfe(),i=wfe-(n-r);if(r=n,i>0){if(++t>=bfe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Afe=_fe,Efe=xfe,Nfe=Afe,Pfe=Nfe(Efe),Tfe=Pfe,Cfe=_p,Ofe=ffe,kfe=Tfe;function jfe(e,t){return kfe(Ofe(e,t,Cfe),e+"")}var Lfe=jfe,Ife=kE,Dfe=qg,Rfe=KE,Mfe=bu;function Ffe(e,t,r){if(!Mfe(r))return!1;var n=typeof t;return(n=="number"?Dfe(r)&&Rfe(t,r.length):n=="string"&&t in r)?Ife(r[t],e):!1}var gb=Ffe,$fe=G7,Bfe=ofe,Ufe=Lfe,fk=gb,Wfe=Ufe(function(e,t){if(e==null)return[];var r=t.length;return r>1&&fk(e,t[0],t[1])?t=[]:r>2&&fk(t[0],t[1],t[2])&&(t=[t[0]]),Bfe(e,$fe(t,1),[])}),zfe=Wfe;const ZE=gr(zfe);function Um(e){"@babel/helpers - typeof";return Um=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},Um(e)}function DA(){return DA=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},DA.apply(this,arguments)}function Hfe(e,t){return Kfe(e)||qfe(e,t)||Gfe(e,t)||Vfe()}function Vfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gfe(e,t){if(e){if(typeof e=="string")return dk(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 dk(e,t)}}function dk(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 qfe(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Kfe(e){if(Array.isArray(e))return e}function hk(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 W5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hk(Object(r),!0).forEach(function(n){Xfe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xfe(e,t,r){return t=Yfe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yfe(e){var t=Jfe(e,"string");return Um(t)=="symbol"?t:t+""}function Jfe(e,t){if(Um(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Um(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zfe(e){return Array.isArray(e)&&oi(e[0])&&oi(e[1])?e.join(" ~ "):e}var Qfe=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,c=l===void 0?{}:l,u=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,v=t.labelClassName,p=t.label,m=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,w=function(){if(u&&u.length){var I={padding:0,margin:0},B=(d?ZE(u,d):u).map(function(z,V){if(z.type==="none")return null;var Q=W5({display:"block",paddingTop:4,paddingBottom:4,color:z.color||"#000"},s),ae=z.formatter||f||Zfe,K=z.value,re=z.name,ye=K,xe=re;if(ae&&ye!=null&&xe!=null){var O=ae(K,re,z,V,u);if(Array.isArray(O)){var M=Hfe(O,2);ye=M[0],xe=M[1]}else ye=O}return ge.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(V),style:Q},oi(xe)?ge.createElement("span",{className:"recharts-tooltip-item-name"},xe):null,oi(xe)?ge.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,ge.createElement("span",{className:"recharts-tooltip-item-value"},ye),ge.createElement("span",{className:"recharts-tooltip-item-unit"},z.unit||""))});return ge.createElement("ul",{className:"recharts-tooltip-item-list",style:I},B)}return null},S=W5({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),A=W5({margin:0},c),N=!tr(p),P=N?p:"",j=Yt("recharts-default-tooltip",h),C=Yt("recharts-tooltip-label",v);N&&m&&u!==void 0&&u!==null&&(P=m(p,u));var R=x?{role:"status","aria-live":"assertive"}:{};return ge.createElement("div",DA({className:j,style:S},R),ge.createElement("p",{className:C,style:A},ge.isValidElement(P)?P:"".concat(P)),w())};function Wm(e){"@babel/helpers - typeof";return Wm=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},Wm(e)}function sv(e,t,r){return t=ede(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ede(e){var t=tde(e,"string");return Wm(t)=="symbol"?t:t+""}function tde(e,t){if(Wm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S0="recharts-tooltip-wrapper",rde={visibility:"hidden"};function nde(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Yt(S0,sv(sv(sv(sv({},"".concat(S0,"-right"),Ye(r)&&t&&Ye(t.x)&&r>=t.x),"".concat(S0,"-left"),Ye(r)&&t&&Ye(t.x)&&r<t.x),"".concat(S0,"-bottom"),Ye(n)&&t&&Ye(t.y)&&n>=t.y),"".concat(S0,"-top"),Ye(n)&&t&&Ye(t.y)&&n<t.y))}function pk(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,c=e.viewBoxDimension;if(a&&Ye(a[n]))return a[n];var u=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?u:f;if(o[n]){var d=u,h=l[n];return d<h?Math.max(f,l[n]):Math.max(u,l[n])}var v=f+s,p=l[n]+c;return v>p?Math.max(u,l[n]):Math.max(f,l[n])}function ide(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 ade(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,c,u,f;return o.height>0&&o.width>0&&r?(u=pk({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=pk({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=ide({translateX:u,translateY:f,useTranslate3d:s})):c=rde,{cssProperties:c,cssClasses:nde({translateX:u,translateY:f,coordinate:r})}}function Rh(e){"@babel/helpers - typeof";return Rh=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},Rh(e)}function mk(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 gk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mk(Object(r),!0).forEach(function(n){MA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ode(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sde(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,J7(n.key),n)}}function lde(e,t,r){return t&&sde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cde(e,t,r){return t=Zy(t),ude(e,Y7()?Reflect.construct(t,r||[],Zy(e).constructor):t.apply(e,r))}function ude(e,t){if(t&&(Rh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fde(e)}function fde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y7=function(){return!!e})()}function Zy(e){return Zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zy(e)}function dde(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&&RA(e,t)}function RA(e,t){return RA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},RA(e,t)}function MA(e,t,r){return t=J7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J7(e){var t=hde(e,"string");return Rh(t)=="symbol"?t:t+""}function hde(e,t){if(Rh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vk=1,pde=function(e){function t(){var r;ode(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=cde(this,t,[].concat(i)),MA(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),MA(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,c,u;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:(c=(u=r.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),r}return dde(t,e),lde(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>vk||Math.abs(n.height-this.state.lastBoundingBox.height)>vk)&&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,c=i.children,u=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,v=i.position,p=i.reverseDirection,m=i.useTranslate3d,y=i.viewBox,x=i.wrapperStyle,w=ade({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:h,position:v,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:y}),S=w.cssClasses,A=w.cssProperties,N=gk(gk({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return ge.createElement("div",{tabIndex:-1,className:S,style:N,ref:function(j){n.wrapperNode=j}},c)}}])}(E.PureComponent),mde=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ap={isSsr:mde()};function Mh(e){"@babel/helpers - typeof";return Mh=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},Mh(e)}function yk(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 xk(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yk(Object(r),!0).forEach(function(n){QE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yk(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vde(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,Q7(n.key),n)}}function yde(e,t,r){return t&&vde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function xde(e,t,r){return t=Qy(t),bde(e,Z7()?Reflect.construct(t,r||[],Qy(e).constructor):t.apply(e,r))}function bde(e,t){if(t&&(Mh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wde(e)}function wde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z7(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z7=function(){return!!e})()}function Qy(e){return Qy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qy(e)}function Sde(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&&FA(e,t)}function FA(e,t){return FA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},FA(e,t)}function QE(e,t,r){return t=Q7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q7(e){var t=_de(e,"string");return Mh(t)=="symbol"?t:t+""}function _de(e,t){if(Mh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ade(e){return e.dataKey}function Ede(e,t){return ge.isValidElement(e)?ge.cloneElement(e,t):typeof e=="function"?ge.createElement(e,t):ge.createElement(Qfe,t)}var ca=function(e){function t(){return gde(this,t),xde(this,t,arguments)}return Sde(t,e),yde(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,c=i.content,u=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,v=i.payload,p=i.payloadUniqBy,m=i.position,y=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,S=i.wrapperStyle,A=v??[];f&&A.length&&(A=W7(v.filter(function(P){return P.value!=null&&(P.hide!==!0||n.props.includeHidden)}),p,Ade));var N=A.length>0;return ge.createElement(pde,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:u,hasPayload:N,offset:h,position:m,reverseDirection:y,useTranslate3d:x,viewBox:w,wrapperStyle:S},Ede(c,xk(xk({},this.props),{},{payload:A})))}}])}(E.PureComponent);QE(ca,"displayName","Tooltip");QE(ca,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ap.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 Nde=Ks,Pde=function(){return Nde.Date.now()},Tde=Pde,Cde=/\s/;function Ode(e){for(var t=e.length;t--&&Cde.test(e.charAt(t)););return t}var kde=Ode,jde=kde,Lde=/^\s+/;function Ide(e){return e&&e.slice(0,jde(e)+1).replace(Lde,"")}var Dde=Ide,Rde=Dde,bk=bu,Mde=gp,wk=NaN,Fde=/^[-+]0x[0-9a-f]+$/i,$de=/^0b[01]+$/i,Bde=/^0o[0-7]+$/i,Ude=parseInt;function Wde(e){if(typeof e=="number")return e;if(Mde(e))return wk;if(bk(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=bk(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Rde(e);var r=$de.test(e);return r||Bde.test(e)?Ude(e.slice(2),r?2:8):Fde.test(e)?wk:+e}var e$=Wde,zde=bu,z5=Tde,Sk=e$,Hde="Expected a function",Vde=Math.max,Gde=Math.min;function qde(e,t,r){var n,i,a,o,s,l,c=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Hde);t=Sk(t)||0,zde(r)&&(u=!!r.leading,f="maxWait"in r,a=f?Vde(Sk(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(N){var P=n,j=i;return n=i=void 0,c=N,o=e.apply(j,P),o}function v(N){return c=N,s=setTimeout(y,t),u?h(N):o}function p(N){var P=N-l,j=N-c,C=t-P;return f?Gde(C,a-j):C}function m(N){var P=N-l,j=N-c;return l===void 0||P>=t||P<0||f&&j>=a}function y(){var N=z5();if(m(N))return x(N);s=setTimeout(y,p(N))}function x(N){return s=void 0,d&&n?h(N):(n=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),c=0,n=l=i=s=void 0}function S(){return s===void 0?o:x(z5())}function A(){var N=z5(),P=m(N);if(n=arguments,i=this,l=N,P){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),o}return A.cancel=w,A.flush=S,A}var Kde=qde,Xde=Kde,Yde=bu,Jde="Expected a function";function Zde(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(Jde);return Yde(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Xde(e,t,{leading:n,maxWait:t,trailing:i})}var Qde=Zde;const t$=gr(Qde);function zm(e){"@babel/helpers - typeof";return zm=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},zm(e)}function _k(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 lv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_k(Object(r),!0).forEach(function(n){ehe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_k(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ehe(e,t,r){return t=the(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function the(e){var t=rhe(e,"string");return zm(t)=="symbol"?t:t+""}function rhe(e,t){if(zm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nhe(e,t){return she(e)||ohe(e,t)||ahe(e,t)||ihe()}function ihe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ahe(e,t){if(e){if(typeof e=="string")return Ak(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 Ak(e,t)}}function Ak(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 ohe(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function she(e){if(Array.isArray(e))return e}var ih=E.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,c=e.minWidth,u=c===void 0?0:c,f=e.minHeight,d=e.maxHeight,h=e.children,v=e.debounce,p=v===void 0?0:v,m=e.id,y=e.className,x=e.onResize,w=e.style,S=w===void 0?{}:w,A=E.useRef(null),N=E.useRef();N.current=x,E.useImperativeHandle(t,function(){return Object.defineProperty(A.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),A.current},configurable:!0})});var P=E.useState({containerWidth:i.width,containerHeight:i.height}),j=nhe(P,2),C=j[0],R=j[1],L=E.useCallback(function(B,z){R(function(V){var Q=Math.round(B),ae=Math.round(z);return V.containerWidth===Q&&V.containerHeight===ae?V:{containerWidth:Q,containerHeight:ae}})},[]);E.useEffect(function(){var B=function(re){var ye,xe=re[0].contentRect,O=xe.width,M=xe.height;L(O,M),(ye=N.current)===null||ye===void 0||ye.call(N,O,M)};p>0&&(B=t$(B,p,{trailing:!0,leading:!1}));var z=new ResizeObserver(B),V=A.current.getBoundingClientRect(),Q=V.width,ae=V.height;return L(Q,ae),z.observe(A.current),function(){z.disconnect()}},[L,p]);var I=E.useMemo(function(){var B=C.containerWidth,z=C.containerHeight;if(B<0||z<0)return null;ds(of(o)||of(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,o,l),ds(!r||r>0,"The aspect(%s) must be greater than zero.",r);var V=of(o)?B:o,Q=of(l)?z:l;r&&r>0&&(V?Q=V/r:Q&&(V=Q*r),d&&Q>d&&(Q=d)),ds(V>0||Q>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the height and width.`,V,Q,o,l,u,f,r);var ae=!Array.isArray(h)&&Ol(h.type).endsWith("Chart");return ge.Children.map(h,function(K){return ge.isValidElement(K)?E.cloneElement(K,lv({width:V,height:Q},ae?{style:lv({height:"100%",width:"100%",maxHeight:Q,maxWidth:V},K.props.style)}:{})):K})},[r,h,l,d,f,u,C,o]);return ge.createElement("div",{id:m?"".concat(m):void 0,className:Yt("recharts-responsive-container",y),style:lv(lv({},S),{},{width:o,height:l,minWidth:u,minHeight:f,maxHeight:d}),ref:A},I)}),Kg=function(t){return null};Kg.displayName="Cell";function Hm(e){"@babel/helpers - typeof";return Hm=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},Hm(e)}function Ek(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 $A(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ek(Object(r),!0).forEach(function(n){lhe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ek(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lhe(e,t,r){return t=che(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function che(e){var t=uhe(e,"string");return Hm(t)=="symbol"?t:t+""}function uhe(e,t){if(Hm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var md={widthCache:{},cacheCount:0},fhe=2e3,dhe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Nk="recharts_measurement_span";function hhe(e){var t=$A({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var em=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ap.isSsr)return{width:0,height:0};var n=hhe(r),i=JSON.stringify({text:t,copyStyle:n});if(md.widthCache[i])return md.widthCache[i];try{var a=document.getElementById(Nk);a||(a=document.createElement("span"),a.setAttribute("id",Nk),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=$A($A({},dhe),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return md.widthCache[i]=l,++md.cacheCount>fhe&&(md.cacheCount=0,md.widthCache={}),l}catch{return{width:0,height:0}}},phe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Vm(e){"@babel/helpers - typeof";return Vm=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},Vm(e)}function ex(e,t){return yhe(e)||vhe(e,t)||ghe(e,t)||mhe()}function mhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ghe(e,t){if(e){if(typeof e=="string")return Pk(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 Pk(e,t)}}function Pk(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 vhe(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function yhe(e){if(Array.isArray(e))return e}function xhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tk(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,whe(n.key),n)}}function bhe(e,t,r){return t&&Tk(e.prototype,t),r&&Tk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function whe(e){var t=She(e,"string");return Vm(t)=="symbol"?t:t+""}function She(e,t){if(Vm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ck=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ok=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_he=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ahe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,r$={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Ehe=Object.keys(r$),zd="NaN";function Nhe(e,t){return e*r$[t]}var cv=function(){function e(t,r){xhe(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!_he.test(r)&&(this.num=NaN,this.unit=""),Ehe.includes(r)&&(this.num=Nhe(t,r),this.unit="px")}return bhe(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=Ahe.exec(r))!==null&&n!==void 0?n:[],a=ex(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function n$(e){if(e.includes(zd))return zd;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Ck.exec(t))!==null&&r!==void 0?r:[],i=ex(n,4),a=i[1],o=i[2],s=i[3],l=cv.parse(a??""),c=cv.parse(s??""),u=o==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return zd;t=t.replace(Ck,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=Ok.exec(t))!==null&&f!==void 0?f:[],h=ex(d,4),v=h[1],p=h[2],m=h[3],y=cv.parse(v??""),x=cv.parse(m??""),w=p==="+"?y.add(x):y.subtract(x);if(w.isNaN())return zd;t=t.replace(Ok,w.toString())}return t}var kk=/\(([^()]*)\)/;function Phe(e){for(var t=e;t.includes("(");){var r=kk.exec(t),n=ex(r,2),i=n[1];t=t.replace(kk,n$(i))}return t}function The(e){var t=e.replace(/\s+/g,"");return t=Phe(t),t=n$(t),t}function Che(e){try{return The(e)}catch{return zd}}function H5(e){var t=Che(e.slice(5,-1));return t===zd?"":t}var Ohe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],khe=["dx","dy","angle","className","breakAll"];function BA(){return BA=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},BA.apply(this,arguments)}function jk(e,t){if(e==null)return{};var r=jhe(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 jhe(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 Lk(e,t){return Rhe(e)||Dhe(e,t)||Ihe(e,t)||Lhe()}function Lhe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ihe(e,t){if(e){if(typeof e=="string")return Ik(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 Ik(e,t)}}function Ik(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 Dhe(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Rhe(e){if(Array.isArray(e))return e}var i$=/[ \f\n\r\t\v\u2028\u2029]+/,a$=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];tr(r)||(n?a=r.toString().split(""):a=r.toString().split(i$));var o=a.map(function(l){return{word:l,width:em(l,i).width}}),s=n?0:em(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},Mhe=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,c=t.breakAll,u=Ye(o),f=s,d=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return V.reduce(function(Q,ae){var K=ae.word,re=ae.width,ye=Q[Q.length-1];if(ye&&(i==null||a||ye.width+re+n<Number(i)))ye.words.push(K),ye.width+=re+n;else{var xe={words:[K],width:re};Q.push(xe)}return Q},[])},h=d(r),v=function(V){return V.reduce(function(Q,ae){return Q.width>ae.width?Q:ae})};if(!u)return h;for(var p="…",m=function(V){var Q=f.slice(0,V),ae=a$({breakAll:c,style:l,children:Q+p}).wordsWithComputedWidth,K=d(ae),re=K.length>o||v(K).width>Number(i);return[re,K]},y=0,x=f.length-1,w=0,S;y<=x&&w<=f.length-1;){var A=Math.floor((y+x)/2),N=A-1,P=m(N),j=Lk(P,2),C=j[0],R=j[1],L=m(A),I=Lk(L,1),B=I[0];if(!C&&!B&&(y=A+1),C&&B&&(x=A-1),!C&&B){S=R;break}w++}return S||h},Dk=function(t){var r=tr(t)?[]:t.toString().split(i$);return[{words:r}]},Fhe=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Ap.isSsr){var l,c,u=a$({breakAll:o,children:i,style:a});if(u){var f=u.wordsWithComputedWidth,d=u.spaceWidth;l=f,c=d}else return Dk(i);return Mhe({breakAll:o,children:i,maxLines:s,style:a},l,c,r,n)}return Dk(i)},Rk="#808080",Ef=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,c=l===void 0?"0.71em":l,u=t.scaleToFit,f=u===void 0?!1:u,d=t.textAnchor,h=d===void 0?"start":d,v=t.verticalAnchor,p=v===void 0?"end":v,m=t.fill,y=m===void 0?Rk:m,x=jk(t,Ohe),w=E.useMemo(function(){return Fhe({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:f,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,f,x.style,x.width]),S=x.dx,A=x.dy,N=x.angle,P=x.className,j=x.breakAll,C=jk(x,khe);if(!oi(n)||!oi(a))return null;var R=n+(Ye(S)?S:0),L=a+(Ye(A)?A:0),I;switch(p){case"start":I=H5("calc(".concat(c,")"));break;case"middle":I=H5("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:I=H5("calc(".concat(w.length-1," * -").concat(s,")"));break}var B=[];if(f){var z=w[0].width,V=x.width;B.push("scale(".concat((Ye(V)?V/z:1)/z,")"))}return N&&B.push("rotate(".concat(N,", ").concat(R,", ").concat(L,")")),B.length&&(C.transform=B.join(" ")),ge.createElement("text",BA({},Ot(C,!0),{x:R,y:L,className:Yt("recharts-text",P),textAnchor:h,fill:y.includes("url")?Rk:y}),w.map(function(Q,ae){var K=Q.words.join(j?"":" ");return ge.createElement("tspan",{x:R,dy:ae===0?I:s,key:"".concat(K,"-").concat(ae)},K)}))};function Qc(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function $he(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function eN(e){let t,r,n;e.length!==2?(t=Qc,r=(s,l)=>Qc(e(s),l),n=(s,l)=>e(s)-l):(t=e===Qc||e===$he?e:Bhe,r=e,n=e);function i(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<0?c=f+1:u=f}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(s,l,c=0,u=s.length){const f=i(s,l,c,u-1);return f>c&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function Bhe(){return 0}function o$(e){return e===null?NaN:+e}function*Uhe(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Whe=eN(Qc),Xg=Whe.right;eN(o$).center;class Mk extends Map{constructor(t,r=Vhe){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(Fk(this,t))}has(t){return super.has(Fk(this,t))}set(t,r){return super.set(zhe(this,t),r)}delete(t){return super.delete(Hhe(this,t))}}function Fk({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function zhe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Hhe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Vhe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Ghe(e=Qc){if(e===Qc)return s$;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 s$(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const qhe=Math.sqrt(50),Khe=Math.sqrt(10),Xhe=Math.sqrt(2);function tx(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>=qhe?10:a>=Khe?5:a>=Xhe?2:1;let s,l,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?tx(e,t,r*2):[s,l,c]}function UA(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?tx(t,e,r):tx(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function WA(e,t,r){return t=+t,e=+e,r=+r,tx(e,t,r)[2]}function zA(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?WA(t,e,r):WA(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function $k(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Bk(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function l$(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?s$:Ghe(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/l+d)),v=Math.min(n,Math.floor(t+(l-c)*f/l+d));l$(e,t,h,v,i)}const a=e[t];let o=r,s=n;for(_0(e,r,t),i(e[n],a)>0&&_0(e,r,n);o<s;){for(_0(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?_0(e,r,s):(++s,_0(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function _0(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Yhe(e,t,r){if(e=Float64Array.from(Uhe(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Bk(e);if(t>=1)return $k(e);var n,i=(n-1)*t,a=Math.floor(i),o=$k(l$(e,a).subarray(0,a+1)),s=Bk(e.subarray(a+1));return o+(s-o)*(i-a)}}function Jhe(e,t,r=o$){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 Zhe(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 $o(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function rc(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 HA=Symbol("implicit");function tN(){var e=new Mk,t=[],r=[],n=HA;function i(a){let o=e.get(a);if(o===void 0){if(n!==HA)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 Mk;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 tN(t,r).unknown(n)},$o.apply(i,arguments),i}function Gm(){var e=tN().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,c=0,u=.5;delete e.unknown;function f(){var d=t().length,h=i<n,v=h?i:n,p=h?n:i;a=(p-v)/Math.max(1,d-l+c*2),s&&(a=Math.floor(a)),v+=(p-v-a*(d-l))*u,o=a*(1-l),s&&(v=Math.round(v),o=Math.round(o));var m=Zhe(d).map(function(y){return v+a*y});return r(h?m.reverse():m)}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,c=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),f()):u},e.copy=function(){return Gm(t(),[n,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},$o.apply(f(),arguments)}function c$(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return c$(t())},e}function tm(){return c$(Gm.apply(null,arguments).paddingInner(1))}function rN(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function u$(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Yg(){}var qm=.7,rx=1/qm,ah="\\s*([+-]?\\d+)\\s*",Km="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ws="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qhe=/^#([0-9a-f]{3,8})$/,epe=new RegExp(`^rgb\\(${ah},${ah},${ah}\\)$`),tpe=new RegExp(`^rgb\\(${Ws},${Ws},${Ws}\\)$`),rpe=new RegExp(`^rgba\\(${ah},${ah},${ah},${Km}\\)$`),npe=new RegExp(`^rgba\\(${Ws},${Ws},${Ws},${Km}\\)$`),ipe=new RegExp(`^hsl\\(${Km},${Ws},${Ws}\\)$`),ape=new RegExp(`^hsla\\(${Km},${Ws},${Ws},${Km}\\)$`),Uk={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};rN(Yg,Xm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wk,formatHex:Wk,formatHex8:ope,formatHsl:spe,formatRgb:zk,toString:zk});function Wk(){return this.rgb().formatHex()}function ope(){return this.rgb().formatHex8()}function spe(){return f$(this).formatHsl()}function zk(){return this.rgb().formatRgb()}function Xm(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Qhe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Hk(t):r===3?new _a(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?uv(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?uv(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=epe.exec(e))?new _a(t[1],t[2],t[3],1):(t=tpe.exec(e))?new _a(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=rpe.exec(e))?uv(t[1],t[2],t[3],t[4]):(t=npe.exec(e))?uv(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ipe.exec(e))?qk(t[1],t[2]/100,t[3]/100,1):(t=ape.exec(e))?qk(t[1],t[2]/100,t[3]/100,t[4]):Uk.hasOwnProperty(e)?Hk(Uk[e]):e==="transparent"?new _a(NaN,NaN,NaN,0):null}function Hk(e){return new _a(e>>16&255,e>>8&255,e&255,1)}function uv(e,t,r,n){return n<=0&&(e=t=r=NaN),new _a(e,t,r,n)}function lpe(e){return e instanceof Yg||(e=Xm(e)),e?(e=e.rgb(),new _a(e.r,e.g,e.b,e.opacity)):new _a}function VA(e,t,r,n){return arguments.length===1?lpe(e):new _a(e,t,r,n??1)}function _a(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}rN(_a,VA,u$(Yg,{brighter(e){return e=e==null?rx:Math.pow(rx,e),new _a(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?qm:Math.pow(qm,e),new _a(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _a(df(this.r),df(this.g),df(this.b),nx(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:Vk,formatHex:Vk,formatHex8:cpe,formatRgb:Gk,toString:Gk}));function Vk(){return`#${sf(this.r)}${sf(this.g)}${sf(this.b)}`}function cpe(){return`#${sf(this.r)}${sf(this.g)}${sf(this.b)}${sf((isNaN(this.opacity)?1:this.opacity)*255)}`}function Gk(){const e=nx(this.opacity);return`${e===1?"rgb(":"rgba("}${df(this.r)}, ${df(this.g)}, ${df(this.b)}${e===1?")":`, ${e})`}`}function nx(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function df(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sf(e){return e=df(e),(e<16?"0":"")+e.toString(16)}function qk(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new os(e,t,r,n)}function f$(e){if(e instanceof os)return new os(e.h,e.s,e.l,e.opacity);if(e instanceof Yg||(e=Xm(e)),!e)return new os;if(e instanceof os)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 os(o,s,l,e.opacity)}function upe(e,t,r,n){return arguments.length===1?f$(e):new os(e,t,r,n??1)}function os(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}rN(os,upe,u$(Yg,{brighter(e){return e=e==null?rx:Math.pow(rx,e),new os(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?qm:Math.pow(qm,e),new os(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 _a(V5(e>=240?e-240:e+120,i,n),V5(e,i,n),V5(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new os(Kk(this.h),fv(this.s),fv(this.l),nx(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=nx(this.opacity);return`${e===1?"hsl(":"hsla("}${Kk(this.h)}, ${fv(this.s)*100}%, ${fv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Kk(e){return e=(e||0)%360,e<0?e+360:e}function fv(e){return Math.max(0,Math.min(1,e||0))}function V5(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 nN=e=>()=>e;function fpe(e,t){return function(r){return e+r*t}}function dpe(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 hpe(e){return(e=+e)==1?d$:function(t,r){return r-t?dpe(t,r,e):nN(isNaN(t)?r:t)}}function d$(e,t){var r=t-e;return r?fpe(e,r):nN(isNaN(e)?t:e)}const Xk=function e(t){var r=hpe(t);function n(i,a){var o=r((i=VA(i)).r,(a=VA(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),c=d$(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),i+""}}return n.gamma=e,n}(1);function ppe(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 mpe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gpe(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]=Ep(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 vpe(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ix(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function ype(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]=Ep(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var GA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,G5=new RegExp(GA.source,"g");function xpe(e){return function(){return e}}function bpe(e){return function(t){return e(t)+""}}function wpe(e,t){var r=GA.lastIndex=G5.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=GA.exec(e))&&(i=G5.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:ix(n,i)})),r=G5.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?bpe(l[0].x):xpe(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)s[(f=l[u]).i]=f.x(c);return s.join("")})}function Ep(e,t){var r=typeof t,n;return t==null||r==="boolean"?nN(t):(r==="number"?ix:r==="string"?(n=Xm(t))?(t=n,Xk):wpe:t instanceof Xm?Xk:t instanceof Date?vpe:mpe(t)?ppe:Array.isArray(t)?gpe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?ype:ix)(e,t)}function iN(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Spe(e,t){t===void 0&&(t=e,e=Ep);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 _pe(e){return function(){return e}}function ax(e){return+e}var Yk=[0,1];function da(e){return e}function qA(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:_pe(isNaN(t)?NaN:.5)}function Ape(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Epe(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=qA(i,n),a=r(o,a)):(n=qA(n,i),a=r(a,o)),function(s){return a(n(s))}}function Npe(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]=qA(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=Xg(e,s,1,n)-1;return a[l](i[l](s))}}function Jg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function vb(){var e=Yk,t=Yk,r=Ep,n,i,a,o=da,s,l,c;function u(){var d=Math.min(e.length,t.length);return o!==da&&(o=Ape(e[0],e[d-1])),s=d>2?Npe:Epe,l=c=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((c||(c=s(t,e.map(n),ix)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,ax),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=iN,u()},f.clamp=function(d){return arguments.length?(o=d?!0:da,u()):o!==da},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,u()}}function aN(){return vb()(da,da)}function Ppe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ox(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 Fh(e){return e=ox(Math.abs(e)),e?e[1]:NaN}function Tpe(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 Cpe(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Ope=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ym(e){if(!(t=Ope.exec(e)))throw new Error("invalid format: "+e);var t;return new oN({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]})}Ym.prototype=oN.prototype;function oN(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+""}oN.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 kpe(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 sx;function jpe(e,t){var r=ox(e,t);if(!r)return sx=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(sx=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")+ox(e,Math.max(0,t+a-1))[0]}function Jk(e,t){var r=ox(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 Zk={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ppe,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)=>Jk(e*100,t),r:Jk,s:jpe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Qk(e){return e}var e6=Array.prototype.map,t6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lpe(e){var t=e.grouping===void 0||e.thousands===void 0?Qk:Tpe(e6.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?Qk:Cpe(e6.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 c(f,d){f=Ym(f);var h=f.fill,v=f.align,p=f.sign,m=f.symbol,y=f.zero,x=f.width,w=f.comma,S=f.precision,A=f.trim,N=f.type;N==="n"?(w=!0,N="g"):Zk[N]||(S===void 0&&(S=12),A=!0,N="g"),(y||h==="0"&&v==="=")&&(y=!0,h="0",v="=");var P=(d&&d.prefix!==void 0?d.prefix:"")+(m==="$"?r:m==="#"&&/[boxX]/.test(N)?"0"+N.toLowerCase():""),j=(m==="$"?n:/[%p]/.test(N)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),C=Zk[N],R=/[defgprs%]/.test(N);S=S===void 0?6:/[gprs]/.test(N)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function L(I){var B=P,z=j,V,Q,ae;if(N==="c")z=C(I)+z,I="";else{I=+I;var K=I<0||1/I<0;if(I=isNaN(I)?l:C(Math.abs(I),S),A&&(I=kpe(I)),K&&+I==0&&p!=="+"&&(K=!1),B=(K?p==="("?p:s:p==="-"||p==="("?"":p)+B,z=(N==="s"&&!isNaN(I)&&sx!==void 0?t6[8+sx/3]:"")+z+(K&&p==="("?")":""),R){for(V=-1,Q=I.length;++V<Q;)if(ae=I.charCodeAt(V),48>ae||ae>57){z=(ae===46?i+I.slice(V+1):I.slice(V))+z,I=I.slice(0,V);break}}}w&&!y&&(I=t(I,1/0));var re=B.length+I.length+z.length,ye=re<x?new Array(x-re+1).join(h):"";switch(w&&y&&(I=t(ye+I,ye.length?x-z.length:1/0),ye=""),v){case"<":I=B+I+z+ye;break;case"=":I=B+ye+I+z;break;case"^":I=ye.slice(0,re=ye.length>>1)+B+I+z+ye.slice(re);break;default:I=ye+B+I+z;break}return a(I)}return L.toString=function(){return f+""},L}function u(f,d){var h=Math.max(-8,Math.min(8,Math.floor(Fh(d)/3)))*3,v=Math.pow(10,-h),p=c((f=Ym(f),f.type="f",f),{suffix:t6[8+h/3]});return function(m){return p(v*m)}}return{format:c,formatPrefix:u}}var dv,sN,h$;Ipe({thousands:",",grouping:[3],currency:["$",""]});function Ipe(e){return dv=Lpe(e),sN=dv.format,h$=dv.formatPrefix,dv}function Dpe(e){return Math.max(0,-Fh(Math.abs(e)))}function Rpe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Fh(t)/3)))*3-Fh(Math.abs(e)))}function Mpe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Fh(t)-Fh(e))+1}function p$(e,t,r,n){var i=zA(e,t,r),a;switch(n=Ym(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Rpe(i,o))&&(n.precision=a),h$(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Mpe(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Dpe(i))&&(n.precision=a-(n.type==="%")*2);break}}return sN(n)}function wu(e){var t=e.domain;return e.ticks=function(r){var n=t();return UA(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return p$(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,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=WA(o,s,r),c===l)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function lx(){var e=aN();return e.copy=function(){return Jg(e,lx())},$o.apply(e,arguments),wu(e)}function m$(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,ax),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return m$(e).unknown(t)},e=arguments.length?Array.from(e,ax):[0,1],wu(r)}function g$(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 r6(e){return Math.log(e)}function n6(e){return Math.exp(e)}function Fpe(e){return-Math.log(-e)}function $pe(e){return-Math.exp(-e)}function Bpe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Upe(e){return e===10?Bpe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Wpe(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 i6(e){return(t,r)=>-e(-t,r)}function lN(e){const t=e(r6,n6),r=t.domain;let n=10,i,a;function o(){return i=Wpe(n),a=Upe(n),r()[0]<0?(i=i6(i),a=i6(a),e(Fpe,$pe)):e(r6,n6),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 c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let d=i(c),h=i(u),v,p;const m=s==null?10:+s;let y=[];if(!(n%1)&&h-d<m){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(v=1;v<n;++v)if(p=d<0?v/a(-d):v*a(d),!(p<c)){if(p>u)break;y.push(p)}}else for(;d<=h;++d)for(v=n-1;v>=1;--v)if(p=d>0?v/a(-d):v*a(d),!(p<c)){if(p>u)break;y.push(p)}y.length*2<m&&(y=UA(c,u,m))}else y=UA(d,h,Math.min(h-d,m)).map(a);return f?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ym(l)).precision==null&&(l.trim=!0),l=sN(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/a(Math.round(i(u)));return f*n<n-.5&&(f*=n),f<=c?l(u):""}},t.nice=()=>r(g$(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function v$(){const e=lN(vb()).domain([1,10]);return e.copy=()=>Jg(e,v$()).base(e.base()),$o.apply(e,arguments),e}function a6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function o6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function cN(e){var t=1,r=e(a6(t),o6(t));return r.constant=function(n){return arguments.length?e(a6(t=+n),o6(t)):t},wu(r)}function y$(){var e=cN(vb());return e.copy=function(){return Jg(e,y$()).constant(e.constant())},$o.apply(e,arguments)}function s6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function zpe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Hpe(e){return e<0?-e*e:e*e}function uN(e){var t=e(da,da),r=1;function n(){return r===1?e(da,da):r===.5?e(zpe,Hpe):e(s6(r),s6(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},wu(t)}function fN(){var e=uN(vb());return e.copy=function(){return Jg(e,fN()).exponent(e.exponent())},$o.apply(e,arguments),e}function Vpe(){return fN.apply(null,arguments).exponent(.5)}function l6(e){return Math.sign(e)*e*e}function Gpe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function x$(){var e=aN(),t=[0,1],r=!1,n;function i(a){var o=Gpe(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(l6(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,ax)).map(l6)),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 x$(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},$o.apply(i,arguments),wu(i)}function b$(){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]=Jhe(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Xg(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(Qc),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 b$().domain(e).range(t).unknown(n)},$o.apply(a,arguments)}function w$(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[Xg(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 c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return w$().domain([e,t]).range(i).unknown(a)},$o.apply(wu(o),arguments)}function S$(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Xg(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 S$().domain(e).range(t).unknown(r)},$o.apply(i,arguments)}const q5=new Date,K5=new Date;function li(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 c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>li(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)=>(q5.setTime(+a),K5.setTime(+o),e(q5),e(K5),Math.floor(r(q5,K5))),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 cx=li(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);cx.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?li(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):cx);cx.range;const El=1e3,To=El*60,Nl=To*60,Bl=Nl*24,dN=Bl*7,c6=Bl*30,X5=Bl*365,lf=li(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*El)},(e,t)=>(t-e)/El,e=>e.getUTCSeconds());lf.range;const hN=li(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*El)},(e,t)=>{e.setTime(+e+t*To)},(e,t)=>(t-e)/To,e=>e.getMinutes());hN.range;const pN=li(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*To)},(e,t)=>(t-e)/To,e=>e.getUTCMinutes());pN.range;const mN=li(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*El-e.getMinutes()*To)},(e,t)=>{e.setTime(+e+t*Nl)},(e,t)=>(t-e)/Nl,e=>e.getHours());mN.range;const gN=li(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Nl)},(e,t)=>(t-e)/Nl,e=>e.getUTCHours());gN.range;const Zg=li(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*To)/Bl,e=>e.getDate()-1);Zg.range;const yb=li(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bl,e=>e.getUTCDate()-1);yb.range;const _$=li(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Bl,e=>Math.floor(e/Bl));_$.range;function Kf(e){return li(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())*To)/dN)}const xb=Kf(0),ux=Kf(1),qpe=Kf(2),Kpe=Kf(3),$h=Kf(4),Xpe=Kf(5),Ype=Kf(6);xb.range;ux.range;qpe.range;Kpe.range;$h.range;Xpe.range;Ype.range;function Xf(e){return li(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)/dN)}const bb=Xf(0),fx=Xf(1),Jpe=Xf(2),Zpe=Xf(3),Bh=Xf(4),Qpe=Xf(5),e0e=Xf(6);bb.range;fx.range;Jpe.range;Zpe.range;Bh.range;Qpe.range;e0e.range;const vN=li(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());vN.range;const yN=li(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());yN.range;const Ul=li(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());Ul.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:li(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)});Ul.range;const Wl=li(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());Wl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:li(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)});Wl.range;function A$(e,t,r,n,i,a){const o=[[lf,1,El],[lf,5,5*El],[lf,15,15*El],[lf,30,30*El],[a,1,To],[a,5,5*To],[a,15,15*To],[a,30,30*To],[i,1,Nl],[i,3,3*Nl],[i,6,6*Nl],[i,12,12*Nl],[n,1,Bl],[n,2,2*Bl],[r,1,dN],[t,1,c6],[t,3,3*c6],[e,1,X5]];function s(c,u,f){const d=u<c;d&&([c,u]=[u,c]);const h=f&&typeof f.range=="function"?f:l(c,u,f),v=h?h.range(c,+u+1):[];return d?v.reverse():v}function l(c,u,f){const d=Math.abs(u-c)/f,h=eN(([,,m])=>m).right(o,d);if(h===o.length)return e.every(zA(c/X5,u/X5,f));if(h===0)return cx.every(Math.max(zA(c,u,f),1));const[v,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return v.every(p)}return[s,l]}const[t0e,r0e]=A$(Wl,yN,bb,_$,gN,pN),[n0e,i0e]=A$(Ul,vN,xb,Zg,mN,hN);function Y5(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 J5(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 A0(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function a0e(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,c=E0(i),u=N0(i),f=E0(a),d=N0(a),h=E0(o),v=N0(o),p=E0(s),m=N0(s),y=E0(l),x=N0(l),w={a:ae,A:K,b:re,B:ye,c:null,d:m6,e:m6,f:T0e,g:F0e,G:B0e,H:E0e,I:N0e,j:P0e,L:E$,m:C0e,M:O0e,p:xe,q:O,Q:y6,s:x6,S:k0e,u:j0e,U:L0e,V:I0e,w:D0e,W:R0e,x:null,X:null,y:M0e,Y:$0e,Z:U0e,"%":v6},S={a:M,A:F,b:U,B:Z,c:null,d:g6,e:g6,f:V0e,g:tme,G:nme,H:W0e,I:z0e,j:H0e,L:P$,m:G0e,M:q0e,p:se,q:ve,Q:y6,s:x6,S:K0e,u:X0e,U:Y0e,V:J0e,w:Z0e,W:Q0e,x:null,X:null,y:eme,Y:rme,Z:ime,"%":v6},A={a:R,A:L,b:I,B,c:z,d:h6,e:h6,f:w0e,g:d6,G:f6,H:p6,I:p6,j:v0e,L:b0e,m:g0e,M:y0e,p:C,q:m0e,Q:_0e,s:A0e,S:x0e,u:u0e,U:f0e,V:d0e,w:c0e,W:h0e,x:V,X:Q,y:d6,Y:f6,Z:p0e,"%":S0e};w.x=N(r,w),w.X=N(n,w),w.c=N(t,w),S.x=N(r,S),S.X=N(n,S),S.c=N(t,S);function N(oe,pe){return function(Se){var me=[],Le=-1,ie=0,Y=oe.length,Ie,De,nt;for(Se instanceof Date||(Se=new Date(+Se));++Le<Y;)oe.charCodeAt(Le)===37&&(me.push(oe.slice(ie,Le)),(De=u6[Ie=oe.charAt(++Le)])!=null?Ie=oe.charAt(++Le):De=Ie==="e"?" ":"0",(nt=pe[Ie])&&(Ie=nt(Se,De)),me.push(Ie),ie=Le+1);return me.push(oe.slice(ie,Le)),me.join("")}}function P(oe,pe){return function(Se){var me=A0(1900,void 0,1),Le=j(me,oe,Se+="",0),ie,Y;if(Le!=Se.length)return null;if("Q"in me)return new Date(me.Q);if("s"in me)return new Date(me.s*1e3+("L"in me?me.L:0));if(pe&&!("Z"in me)&&(me.Z=0),"p"in me&&(me.H=me.H%12+me.p*12),me.m===void 0&&(me.m="q"in me?me.q:0),"V"in me){if(me.V<1||me.V>53)return null;"w"in me||(me.w=1),"Z"in me?(ie=J5(A0(me.y,0,1)),Y=ie.getUTCDay(),ie=Y>4||Y===0?fx.ceil(ie):fx(ie),ie=yb.offset(ie,(me.V-1)*7),me.y=ie.getUTCFullYear(),me.m=ie.getUTCMonth(),me.d=ie.getUTCDate()+(me.w+6)%7):(ie=Y5(A0(me.y,0,1)),Y=ie.getDay(),ie=Y>4||Y===0?ux.ceil(ie):ux(ie),ie=Zg.offset(ie,(me.V-1)*7),me.y=ie.getFullYear(),me.m=ie.getMonth(),me.d=ie.getDate()+(me.w+6)%7)}else("W"in me||"U"in me)&&("w"in me||(me.w="u"in me?me.u%7:"W"in me?1:0),Y="Z"in me?J5(A0(me.y,0,1)).getUTCDay():Y5(A0(me.y,0,1)).getDay(),me.m=0,me.d="W"in me?(me.w+6)%7+me.W*7-(Y+5)%7:me.w+me.U*7-(Y+6)%7);return"Z"in me?(me.H+=me.Z/100|0,me.M+=me.Z%100,J5(me)):Y5(me)}}function j(oe,pe,Se,me){for(var Le=0,ie=pe.length,Y=Se.length,Ie,De;Le<ie;){if(me>=Y)return-1;if(Ie=pe.charCodeAt(Le++),Ie===37){if(Ie=pe.charAt(Le++),De=A[Ie in u6?pe.charAt(Le++):Ie],!De||(me=De(oe,Se,me))<0)return-1}else if(Ie!=Se.charCodeAt(me++))return-1}return me}function C(oe,pe,Se){var me=c.exec(pe.slice(Se));return me?(oe.p=u.get(me[0].toLowerCase()),Se+me[0].length):-1}function R(oe,pe,Se){var me=h.exec(pe.slice(Se));return me?(oe.w=v.get(me[0].toLowerCase()),Se+me[0].length):-1}function L(oe,pe,Se){var me=f.exec(pe.slice(Se));return me?(oe.w=d.get(me[0].toLowerCase()),Se+me[0].length):-1}function I(oe,pe,Se){var me=y.exec(pe.slice(Se));return me?(oe.m=x.get(me[0].toLowerCase()),Se+me[0].length):-1}function B(oe,pe,Se){var me=p.exec(pe.slice(Se));return me?(oe.m=m.get(me[0].toLowerCase()),Se+me[0].length):-1}function z(oe,pe,Se){return j(oe,t,pe,Se)}function V(oe,pe,Se){return j(oe,r,pe,Se)}function Q(oe,pe,Se){return j(oe,n,pe,Se)}function ae(oe){return o[oe.getDay()]}function K(oe){return a[oe.getDay()]}function re(oe){return l[oe.getMonth()]}function ye(oe){return s[oe.getMonth()]}function xe(oe){return i[+(oe.getHours()>=12)]}function O(oe){return 1+~~(oe.getMonth()/3)}function M(oe){return o[oe.getUTCDay()]}function F(oe){return a[oe.getUTCDay()]}function U(oe){return l[oe.getUTCMonth()]}function Z(oe){return s[oe.getUTCMonth()]}function se(oe){return i[+(oe.getUTCHours()>=12)]}function ve(oe){return 1+~~(oe.getUTCMonth()/3)}return{format:function(oe){var pe=N(oe+="",w);return pe.toString=function(){return oe},pe},parse:function(oe){var pe=P(oe+="",!1);return pe.toString=function(){return oe},pe},utcFormat:function(oe){var pe=N(oe+="",S);return pe.toString=function(){return oe},pe},utcParse:function(oe){var pe=P(oe+="",!0);return pe.toString=function(){return oe},pe}}}var u6={"-":"",_:" ",0:"0"},bi=/^\s*\d+/,o0e=/^%/,s0e=/[\\^$*+?|[\]().{}]/g;function mr(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 l0e(e){return e.replace(s0e,"\\$&")}function E0(e){return new RegExp("^(?:"+e.map(l0e).join("|")+")","i")}function N0(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function c0e(e,t,r){var n=bi.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function u0e(e,t,r){var n=bi.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function f0e(e,t,r){var n=bi.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function d0e(e,t,r){var n=bi.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function h0e(e,t,r){var n=bi.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function f6(e,t,r){var n=bi.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function d6(e,t,r){var n=bi.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function p0e(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 m0e(e,t,r){var n=bi.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function g0e(e,t,r){var n=bi.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function h6(e,t,r){var n=bi.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function v0e(e,t,r){var n=bi.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function p6(e,t,r){var n=bi.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function y0e(e,t,r){var n=bi.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function x0e(e,t,r){var n=bi.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function b0e(e,t,r){var n=bi.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function w0e(e,t,r){var n=bi.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function S0e(e,t,r){var n=o0e.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function _0e(e,t,r){var n=bi.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function A0e(e,t,r){var n=bi.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function m6(e,t){return mr(e.getDate(),t,2)}function E0e(e,t){return mr(e.getHours(),t,2)}function N0e(e,t){return mr(e.getHours()%12||12,t,2)}function P0e(e,t){return mr(1+Zg.count(Ul(e),e),t,3)}function E$(e,t){return mr(e.getMilliseconds(),t,3)}function T0e(e,t){return E$(e,t)+"000"}function C0e(e,t){return mr(e.getMonth()+1,t,2)}function O0e(e,t){return mr(e.getMinutes(),t,2)}function k0e(e,t){return mr(e.getSeconds(),t,2)}function j0e(e){var t=e.getDay();return t===0?7:t}function L0e(e,t){return mr(xb.count(Ul(e)-1,e),t,2)}function N$(e){var t=e.getDay();return t>=4||t===0?$h(e):$h.ceil(e)}function I0e(e,t){return e=N$(e),mr($h.count(Ul(e),e)+(Ul(e).getDay()===4),t,2)}function D0e(e){return e.getDay()}function R0e(e,t){return mr(ux.count(Ul(e)-1,e),t,2)}function M0e(e,t){return mr(e.getFullYear()%100,t,2)}function F0e(e,t){return e=N$(e),mr(e.getFullYear()%100,t,2)}function $0e(e,t){return mr(e.getFullYear()%1e4,t,4)}function B0e(e,t){var r=e.getDay();return e=r>=4||r===0?$h(e):$h.ceil(e),mr(e.getFullYear()%1e4,t,4)}function U0e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mr(t/60|0,"0",2)+mr(t%60,"0",2)}function g6(e,t){return mr(e.getUTCDate(),t,2)}function W0e(e,t){return mr(e.getUTCHours(),t,2)}function z0e(e,t){return mr(e.getUTCHours()%12||12,t,2)}function H0e(e,t){return mr(1+yb.count(Wl(e),e),t,3)}function P$(e,t){return mr(e.getUTCMilliseconds(),t,3)}function V0e(e,t){return P$(e,t)+"000"}function G0e(e,t){return mr(e.getUTCMonth()+1,t,2)}function q0e(e,t){return mr(e.getUTCMinutes(),t,2)}function K0e(e,t){return mr(e.getUTCSeconds(),t,2)}function X0e(e){var t=e.getUTCDay();return t===0?7:t}function Y0e(e,t){return mr(bb.count(Wl(e)-1,e),t,2)}function T$(e){var t=e.getUTCDay();return t>=4||t===0?Bh(e):Bh.ceil(e)}function J0e(e,t){return e=T$(e),mr(Bh.count(Wl(e),e)+(Wl(e).getUTCDay()===4),t,2)}function Z0e(e){return e.getUTCDay()}function Q0e(e,t){return mr(fx.count(Wl(e)-1,e),t,2)}function eme(e,t){return mr(e.getUTCFullYear()%100,t,2)}function tme(e,t){return e=T$(e),mr(e.getUTCFullYear()%100,t,2)}function rme(e,t){return mr(e.getUTCFullYear()%1e4,t,4)}function nme(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Bh(e):Bh.ceil(e),mr(e.getUTCFullYear()%1e4,t,4)}function ime(){return"+0000"}function v6(){return"%"}function y6(e){return+e}function x6(e){return Math.floor(+e/1e3)}var gd,C$,O$;ame({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","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 ame(e){return gd=a0e(e),C$=gd.format,gd.parse,O$=gd.utcFormat,gd.utcParse,gd}function ome(e){return new Date(e)}function sme(e){return e instanceof Date?+e:+new Date(+e)}function xN(e,t,r,n,i,a,o,s,l,c){var u=aN(),f=u.invert,d=u.domain,h=c(".%L"),v=c(":%S"),p=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),x=c("%b %d"),w=c("%B"),S=c("%Y");function A(N){return(l(N)<N?h:s(N)<N?v:o(N)<N?p:a(N)<N?m:n(N)<N?i(N)<N?y:x:r(N)<N?w:S)(N)}return u.invert=function(N){return new Date(f(N))},u.domain=function(N){return arguments.length?d(Array.from(N,sme)):d().map(ome)},u.ticks=function(N){var P=d();return e(P[0],P[P.length-1],N??10)},u.tickFormat=function(N,P){return P==null?A:c(P)},u.nice=function(N){var P=d();return(!N||typeof N.range!="function")&&(N=t(P[0],P[P.length-1],N??10)),N?d(g$(P,N)):u},u.copy=function(){return Jg(u,xN(e,t,r,n,i,a,o,s,l,c))},u}function lme(){return $o.apply(xN(n0e,i0e,Ul,vN,xb,Zg,mN,hN,lf,C$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cme(){return $o.apply(xN(t0e,r0e,Wl,yN,bb,yb,gN,pN,lf,O$).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function wb(){var e=0,t=1,r,n,i,a,o=da,s=!1,l;function c(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))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(d){var h,v;return arguments.length?([h,v]=d,o=f(h,v),c):[o(0),o(1)]}}return c.range=u(Ep),c.rangeRound=u(iN),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function Su(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function k$(){var e=wu(wb()(da));return e.copy=function(){return Su(e,k$())},rc.apply(e,arguments)}function j$(){var e=lN(wb()).domain([1,10]);return e.copy=function(){return Su(e,j$()).base(e.base())},rc.apply(e,arguments)}function L$(){var e=cN(wb());return e.copy=function(){return Su(e,L$()).constant(e.constant())},rc.apply(e,arguments)}function bN(){var e=uN(wb());return e.copy=function(){return Su(e,bN()).exponent(e.exponent())},rc.apply(e,arguments)}function ume(){return bN.apply(null,arguments).exponent(.5)}function I$(){var e=[],t=da;function r(n){if(n!=null&&!isNaN(n=+n))return t((Xg(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(Qc),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)=>Yhe(e,a/n))},r.copy=function(){return I$(t).domain(e)},rc.apply(r,arguments)}function Sb(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,c=da,u,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+u(p))-a)*(n*p<n*a?s:l),c(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=u(e=+e),a=u(t=+t),o=u(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(c=p,h):c};function v(p){return function(m){var y,x,w;return arguments.length?([y,x,w]=m,c=Spe(p,[y,x,w]),h):[c(0),c(.5),c(1)]}}return h.range=v(Ep),h.rangeRound=v(iN),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return u=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function D$(){var e=wu(Sb()(da));return e.copy=function(){return Su(e,D$())},rc.apply(e,arguments)}function R$(){var e=lN(Sb()).domain([.1,1,10]);return e.copy=function(){return Su(e,R$()).base(e.base())},rc.apply(e,arguments)}function M$(){var e=cN(Sb());return e.copy=function(){return Su(e,M$()).constant(e.constant())},rc.apply(e,arguments)}function wN(){var e=uN(Sb());return e.copy=function(){return Su(e,wN()).exponent(e.exponent())},rc.apply(e,arguments)}function fme(){return wN.apply(null,arguments).exponent(.5)}const b6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Gm,scaleDiverging:D$,scaleDivergingLog:R$,scaleDivergingPow:wN,scaleDivergingSqrt:fme,scaleDivergingSymlog:M$,scaleIdentity:m$,scaleImplicit:HA,scaleLinear:lx,scaleLog:v$,scaleOrdinal:tN,scalePoint:tm,scalePow:fN,scaleQuantile:b$,scaleQuantize:w$,scaleRadial:x$,scaleSequential:k$,scaleSequentialLog:j$,scaleSequentialPow:bN,scaleSequentialQuantile:I$,scaleSequentialSqrt:ume,scaleSequentialSymlog:L$,scaleSqrt:Vpe,scaleSymlog:y$,scaleThreshold:S$,scaleTime:lme,scaleUtc:cme,tickFormat:p$},Symbol.toStringTag,{value:"Module"}));var dme=gp;function hme(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&&!dme(o):r(o,s)))var s=o,l=a}return l}var _b=hme;function pme(e,t){return e>t}var F$=pme,mme=_b,gme=F$,vme=_p;function yme(e){return e&&e.length?mme(e,vme,gme):void 0}var xme=yme;const Ab=gr(xme);function bme(e,t){return e<t}var $$=bme,wme=_b,Sme=$$,_me=_p;function Ame(e){return e&&e.length?wme(e,_me,Sme):void 0}var Eme=Ame;const Eb=gr(Eme);var Nme=DE,Pme=Xs,Tme=K7,Cme=Oa;function Ome(e,t){var r=Cme(e)?Nme:Tme;return r(e,Pme(t))}var kme=Ome,jme=G7,Lme=kme;function Ime(e,t){return jme(Lme(e,t),1)}var Dme=Ime;const Rme=gr(Dme);var Mme=YE;function Fme(e,t){return Mme(e,t)}var $me=Fme;const Nb=gr($me);var Np=1e9,Bme={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},_N,un=!0,Do="[DecimalError] ",hf=Do+"Invalid argument: ",SN=Do+"Exponent out of range: ",Pp=Math.floor,Yu=Math.pow,Ume=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Xa,ui=1e7,tn=7,B$=9007199254740991,dx=Pp(B$/tn),lt={};lt.absoluteValue=lt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};lt.comparedTo=lt.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};lt.decimalPlaces=lt.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*tn;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};lt.dividedBy=lt.div=function(e){return kl(this,new this.constructor(e))};lt.dividedToIntegerBy=lt.idiv=function(e){var t=this,r=t.constructor;return Br(kl(t,new r(e),0,1),r.precision)};lt.equals=lt.eq=function(e){return!this.cmp(e)};lt.exponent=function(){return Gn(this)};lt.greaterThan=lt.gt=function(e){return this.cmp(e)>0};lt.greaterThanOrEqualTo=lt.gte=function(e){return this.cmp(e)>=0};lt.isInteger=lt.isint=function(){return this.e>this.d.length-2};lt.isNegative=lt.isneg=function(){return this.s<0};lt.isPositive=lt.ispos=function(){return this.s>0};lt.isZero=function(){return this.s===0};lt.lessThan=lt.lt=function(e){return this.cmp(e)<0};lt.lessThanOrEqualTo=lt.lte=function(e){return this.cmp(e)<1};lt.logarithm=lt.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(Xa))throw Error(Do+"NaN");if(r.s<1)throw Error(Do+(r.s?"NaN":"-Infinity"));return r.eq(Xa)?new n(0):(un=!1,t=kl(Jm(r,a),Jm(e,a),a),un=!0,Br(t,i))};lt.minus=lt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?z$(t,e):U$(t,(e.s=-e.s,e))};lt.modulo=lt.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Do+"NaN");return r.s?(un=!1,t=kl(r,e,0,1).times(e),un=!0,r.minus(t)):Br(new n(r),i)};lt.naturalExponential=lt.exp=function(){return W$(this)};lt.naturalLogarithm=lt.ln=function(){return Jm(this)};lt.negated=lt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};lt.plus=lt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?U$(t,e):z$(t,(e.s=-e.s,e))};lt.precision=lt.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(hf+e);if(t=Gn(i)+1,n=i.d.length-1,r=n*tn+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};lt.squareRoot=lt.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(Do+"NaN")}for(e=Gn(s),un=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ms(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Pp((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(kl(s,a,o+2)).times(.5),Ms(a.d).slice(0,o)===(t=Ms(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Br(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return un=!0,Br(n,r)};lt.times=lt.mul=function(e){var t,r,n,i,a,o,s,l,c,u=this,f=u.constructor,d=u.d,h=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,l=d.length,c=h.length,l<c&&(a=d,d=h,h=a,o=l,l=c,c=o),a=[],o=l+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%ui|0,t=s/ui|0;a[i]=(a[i]+t)%ui|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,un?Br(e,f.precision):e};lt.toDecimalPlaces=lt.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Vs(e,0,Np),t===void 0?t=n.rounding:Vs(t,0,8),Br(r,e+Gn(r)+1,t))};lt.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Nf(n,!0):(Vs(e,0,Np),t===void 0?t=i.rounding:Vs(t,0,8),n=Br(new i(n),e+1,t),r=Nf(n,!0,e+1)),r};lt.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Nf(i):(Vs(e,0,Np),t===void 0?t=a.rounding:Vs(t,0,8),n=Br(new a(i),e+Gn(i)+1,t),r=Nf(n.abs(),!1,e+Gn(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};lt.toInteger=lt.toint=function(){var e=this,t=e.constructor;return Br(new t(e),Gn(e)+1,t.rounding)};lt.toNumber=function(){return+this};lt.toPower=lt.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Xa);if(s=new l(s),!s.s){if(e.s<1)throw Error(Do+"Infinity");return s}if(s.eq(Xa))return s;if(n=l.precision,e.eq(Xa))return Br(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=u<0?-u:u)<=B$){for(i=new l(Xa),t=Math.ceil(n/tn+4),un=!1;r%2&&(i=i.times(s),S6(i.d,t)),r=Pp(r/2),r!==0;)s=s.times(s),S6(s.d,t);return un=!0,e.s<0?new l(Xa).div(i):Br(i,n)}}else if(a<0)throw Error(Do+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,un=!1,i=e.times(Jm(s,n+c)),un=!0,i=W$(i),i.s=a,i};lt.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Gn(i),n=Nf(i,r<=a.toExpNeg||r>=a.toExpPos)):(Vs(e,1,Np),t===void 0?t=a.rounding:Vs(t,0,8),i=Br(new a(i),e,t),r=Gn(i),n=Nf(i,e<=r||r<=a.toExpNeg,e)),n};lt.toSignificantDigits=lt.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Vs(e,1,Np),t===void 0?t=n.rounding:Vs(t,0,8)),Br(new n(r),e,t)};lt.toString=lt.valueOf=lt.val=lt.toJSON=lt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Gn(e),r=e.constructor;return Nf(e,t<=r.toExpNeg||t>=r.toExpPos)};function U$(e,t){var r,n,i,a,o,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),un?Br(t,f):t;if(l=e.d,c=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=c.length):(n=c,i=o,s=l.length),o=Math.ceil(f/tn),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=c.length,s-a<0&&(a=s,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/ui|0,l[a]%=ui;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,un?Br(t,f):t}function Vs(e,t,r){if(e!==~~e||e<t||e>r)throw Error(hf+e)}function Ms(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=tn-n.length,r&&(a+=kc(r)),a+=n;o=e[t],n=o+"",r=tn-n.length,r&&(a+=kc(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var kl=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%ui|0,o=a/ui|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*ui+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,c,u,f,d,h,v,p,m,y,x,w,S,A,N,P,j,C=n.constructor,R=n.s==i.s?1:-1,L=n.d,I=i.d;if(!n.s)return new C(n);if(!i.s)throw Error(Do+"Division by zero");for(l=n.e-i.e,P=I.length,A=L.length,h=new C(R),v=h.d=[],c=0;I[c]==(L[c]||0);)++c;if(I[c]>(L[c]||0)&&--l,a==null?x=a=C.precision:o?x=a+(Gn(n)-Gn(i))+1:x=a,x<0)return new C(0);if(x=x/tn+2|0,c=0,P==1)for(u=0,I=I[0],x++;(c<A||u)&&x--;c++)w=u*ui+(L[c]||0),v[c]=w/I|0,u=w%I|0;else{for(u=ui/(I[0]+1)|0,u>1&&(I=e(I,u),L=e(L,u),P=I.length,A=L.length),S=P,p=L.slice(0,P),m=p.length;m<P;)p[m++]=0;j=I.slice(),j.unshift(0),N=I[0],I[1]>=ui/2&&++N;do u=0,s=t(I,p,P,m),s<0?(y=p[0],P!=m&&(y=y*ui+(p[1]||0)),u=y/N|0,u>1?(u>=ui&&(u=ui-1),f=e(I,u),d=f.length,m=p.length,s=t(f,p,d,m),s==1&&(u--,r(f,P<d?j:I,d))):(u==0&&(s=u=1),f=I.slice()),d=f.length,d<m&&f.unshift(0),r(p,f,m),s==-1&&(m=p.length,s=t(I,p,P,m),s<1&&(u++,r(p,P<m?j:I,m))),m=p.length):s===0&&(u++,p=[0]),v[c++]=u,s&&p[0]?p[m++]=L[S]||0:(p=[L[S]],m=1);while((S++<A||p[0]!==void 0)&&x--)}return v[0]||v.shift(),h.e=l,Br(h,o?a+Gn(h)+1:a)}}();function W$(e,t){var r,n,i,a,o,s,l=0,c=0,u=e.constructor,f=u.precision;if(Gn(e)>16)throw Error(SN+Gn(e));if(!e.s)return new u(Xa);for(un=!1,s=f,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Yu(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new u(Xa),u.precision=s;;){if(i=Br(i.times(e),s),r=r.times(++l),o=a.plus(kl(i,r,s)),Ms(o.d).slice(0,s)===Ms(a.d).slice(0,s)){for(;c--;)a=Br(a.times(a),s);return u.precision=f,t==null?(un=!0,Br(a,f)):a}a=o}}function Gn(e){for(var t=e.e*tn,r=e.d[0];r>=10;r/=10)t++;return t}function Z5(e,t,r){if(t>e.LN10.sd())throw un=!0,r&&(e.precision=r),Error(Do+"LN10 precision limit exceeded");return Br(new e(e.LN10),t)}function kc(e){for(var t="";e--;)t+="0";return t}function Jm(e,t){var r,n,i,a,o,s,l,c,u,f=1,d=10,h=e,v=h.d,p=h.constructor,m=p.precision;if(h.s<1)throw Error(Do+(h.s?"NaN":"-Infinity"));if(h.eq(Xa))return new p(0);if(t==null?(un=!1,c=m):c=t,h.eq(10))return t==null&&(un=!0),Z5(p,c);if(c+=d,p.precision=c,r=Ms(v),n=r.charAt(0),a=Gn(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Ms(h.d),n=r.charAt(0),f++;a=Gn(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return l=Z5(p,c+2,m).times(a+""),h=Jm(new p(n+"."+r.slice(1)),c-d).plus(l),p.precision=m,t==null?(un=!0,Br(h,m)):h;for(s=o=h=kl(h.minus(Xa),h.plus(Xa),c),u=Br(h.times(h),c),i=3;;){if(o=Br(o.times(u),c),l=s.plus(kl(o,new p(i),c)),Ms(l.d).slice(0,c)===Ms(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(Z5(p,c+2,m).times(a+""))),s=kl(s,new p(f),c),p.precision=m,t==null?(un=!0,Br(s,m)):s;s=l,i+=2}}function w6(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=Pp(r/tn),e.d=[],n=(r+1)%tn,r<0&&(n+=tn),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=tn;n<i;)e.d.push(+t.slice(n,n+=tn));t=t.slice(n),n=tn-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),un&&(e.e>dx||e.e<-dx))throw Error(SN+r)}else e.s=0,e.e=0,e.d=[0];return e}function Br(e,t,r){var n,i,a,o,s,l,c,u,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=tn,i=t,c=f[u=0];else{if(u=Math.ceil((n+1)/tn),a=f.length,u>=a)return e;for(c=a=f[u],o=1;a>=10;a/=10)o++;n%=tn,i=n-tn+o}if(r!==void 0&&(a=Yu(10,o-i-1),s=c/a%10|0,l=t<0||f[u+1]!==void 0||c%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?c/Yu(10,o-i):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=Gn(e),f.length=1,t=t-a-1,f[0]=Yu(10,(tn-t%tn)%tn),e.e=Pp(-t/tn)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,a=1,u--):(f.length=u+1,a=Yu(10,tn-n),f[u]=i>0?(c/Yu(10,o-i)%Yu(10,i)|0)*a:0),l)for(;;)if(u==0){(f[0]+=a)==ui&&(f[0]=1,++e.e);break}else{if(f[u]+=a,f[u]!=ui)break;f[u--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(un&&(e.e>dx||e.e<-dx))throw Error(SN+Gn(e));return e}function z$(e,t){var r,n,i,a,o,s,l,c,u,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),un?Br(t,h):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=f.length):(r=f,n=c,s=l.length),i=Math.max(Math.ceil(h/tn),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,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){u=l[i]<f[i];break}o=0}for(u&&(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]=ui-1;--l[a],l[i]+=ui}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,un?Br(t,h):t):new d(0)}function Nf(e,t,r){var n,i=Gn(e),a=Ms(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+kc(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+kc(-i-1)+a,r&&(n=r-o)>0&&(a+=kc(n))):i>=o?(a+=kc(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+kc(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=kc(n))),e.s<0?"-"+a:a}function S6(e,t){if(e.length>t)return e.length=t,!0}function H$(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(hf+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 w6(o,a.toString())}else if(typeof a!="string")throw Error(hf+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Ume.test(a))w6(o,a);else throw Error(hf+a)}if(i.prototype=lt,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=H$,i.config=i.set=Wme,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 Wme(e){if(!e||typeof e!="object")throw Error(Do+"Object expected");var t,r,n,i=["precision",1,Np,"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(Pp(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(hf+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(hf+r+": "+n);return this}var _N=H$(Bme);Xa=new _N(1);const Ir=_N;function zme(e){return qme(e)||Gme(e)||Vme(e)||Hme()}function Hme(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vme(e,t){if(e){if(typeof e=="string")return KA(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 KA(e,t)}}function Gme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function qme(e){if(Array.isArray(e))return KA(e)}function KA(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 Kme=function(t){return t},V$={},G$=function(t){return t===V$},_6=function(t){return function r(){return arguments.length===0||arguments.length===1&&G$(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},Xme=function e(t,r){return t===1?r:_6(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!==V$}).length;return o>=t?r.apply(void 0,i):e(t-o,_6(function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];var u=i.map(function(f){return G$(f)?l.shift():f});return r.apply(void 0,zme(u).concat(l))}))})},Pb=function(t){return Xme(t.length,t)},XA=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},Yme=Pb(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),Jme=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Kme;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))}},YA=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},q$=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 Zme(e){var t;return e===0?t=1:t=Math.floor(new Ir(e).abs().log(10).toNumber())+1,t}function Qme(e,t,r){for(var n=new Ir(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var ege=Pb(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),tge=Pb(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),rge=Pb(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Tb={rangeStep:Qme,getDigitCount:Zme,interpolateNumber:ege,uninterpolateNumber:tge,uninterpolateTruncation:rge};function JA(e){return age(e)||ige(e)||K$(e)||nge()}function nge(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ige(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function age(e){if(Array.isArray(e))return ZA(e)}function Zm(e,t){return lge(e)||sge(e,t)||K$(e,t)||oge()}function oge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K$(e,t){if(e){if(typeof e=="string")return ZA(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 ZA(e,t)}}function ZA(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 sge(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 lge(e){if(Array.isArray(e))return e}function X$(e){var t=Zm(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Y$(e,t,r){if(e.lte(0))return new Ir(0);var n=Tb.getDigitCount(e.toNumber()),i=new Ir(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Ir(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Ir(Math.ceil(l))}function cge(e,t,r){var n=1,i=new Ir(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Ir(10).pow(Tb.getDigitCount(e)-1),i=new Ir(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Ir(Math.floor(e)))}else e===0?i=new Ir(Math.floor((t-1)/2)):r||(i=new Ir(Math.floor(e)));var o=Math.floor((t-1)/2),s=Jme(Yme(function(l){return i.add(new Ir(l-o).mul(n)).toNumber()}),XA);return s(0,t)}function J$(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 Ir(0),tickMin:new Ir(0),tickMax:new Ir(0)};var a=Y$(new Ir(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Ir(0):(o=new Ir(e).add(t).div(2),o=o.sub(new Ir(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Ir(t).sub(o).div(a).toNumber()),c=s+l+1;return c>r?J$(e,t,r,n,i+1):(c<r&&(l=t>0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:a,tickMin:o.sub(new Ir(s).mul(a)),tickMax:o.add(new Ir(l).mul(a))})}function uge(e){var t=Zm(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=X$([r,n]),l=Zm(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var f=u===1/0?[c].concat(JA(XA(0,i-1).map(function(){return 1/0}))):[].concat(JA(XA(0,i-1).map(function(){return-1/0})),[u]);return r>n?YA(f):f}if(c===u)return cge(c,i,a);var d=J$(c,u,o,a),h=d.step,v=d.tickMin,p=d.tickMax,m=Tb.rangeStep(v,p.add(new Ir(.1).mul(h)),h);return r>n?YA(m):m}function fge(e,t){var r=Zm(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=X$([n,i]),s=Zm(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,i];if(l===c)return[l];var u=Math.max(t,2),f=Y$(new Ir(c).sub(l).div(u-1),a,0),d=[].concat(JA(Tb.rangeStep(new Ir(l),new Ir(c).sub(new Ir(.99).mul(f)),f)),[c]);return n>i?YA(d):d}var dge=q$(uge),hge=q$(fge),pge="Invariant failed";function su(e,t){throw new Error(pge)}var mge=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Uh(e){"@babel/helpers - typeof";return Uh=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},Uh(e)}function hx(){return hx=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},hx.apply(this,arguments)}function gge(e,t){return bge(e)||xge(e,t)||yge(e,t)||vge()}function vge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yge(e,t){if(e){if(typeof e=="string")return A6(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 A6(e,t)}}function A6(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 xge(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function bge(e){if(Array.isArray(e))return e}function wge(e,t){if(e==null)return{};var r=Sge(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 Sge(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 _ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Age(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,eB(n.key),n)}}function Ege(e,t,r){return t&&Age(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nge(e,t,r){return t=px(t),Pge(e,Z$()?Reflect.construct(t,r||[],px(e).constructor):t.apply(e,r))}function Pge(e,t){if(t&&(Uh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tge(e)}function Tge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z$=function(){return!!e})()}function px(e){return px=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},px(e)}function Cge(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&&QA(e,t)}function QA(e,t){return QA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},QA(e,t)}function Q$(e,t,r){return t=eB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eB(e){var t=Oge(e,"string");return Uh(t)=="symbol"?t:t+""}function Oge(e,t){if(Uh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Cb=function(e){function t(){return _ge(this,t),Nge(this,t,arguments)}return Cge(t,e),Ege(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,c=n.dataPointFormatter,u=n.xAxis,f=n.yAxis,d=wge(n,mge),h=Ot(d,!1);this.props.direction==="x"&&u.type!=="number"&&su();var v=l.map(function(p){var m=c(p,s),y=m.x,x=m.y,w=m.value,S=m.errorVal;if(!S)return null;var A=[],N,P;if(Array.isArray(S)){var j=gge(S,2);N=j[0],P=j[1]}else N=P=S;if(a==="vertical"){var C=u.scale,R=x+i,L=R+o,I=R-o,B=C(w-N),z=C(w+P);A.push({x1:z,y1:L,x2:z,y2:I}),A.push({x1:B,y1:R,x2:z,y2:R}),A.push({x1:B,y1:L,x2:B,y2:I})}else if(a==="horizontal"){var V=f.scale,Q=y+i,ae=Q-o,K=Q+o,re=V(w-N),ye=V(w+P);A.push({x1:ae,y1:ye,x2:K,y2:ye}),A.push({x1:Q,y1:re,x2:Q,y2:ye}),A.push({x1:ae,y1:re,x2:K,y2:re})}return ge.createElement(Pr,hx({className:"recharts-errorBar",key:"bar-".concat(A.map(function(xe){return"".concat(xe.x1,"-").concat(xe.x2,"-").concat(xe.y1,"-").concat(xe.y2)}))},h),A.map(function(xe){return ge.createElement("line",hx({},xe,{key:"line-".concat(xe.x1,"-").concat(xe.x2,"-").concat(xe.y1,"-").concat(xe.y2)}))}))});return ge.createElement(Pr,{className:"recharts-errorBars"},v)}}])}(ge.Component);Q$(Cb,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Q$(Cb,"displayName","ErrorBar");function Qm(e){"@babel/helpers - typeof";return Qm=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},Qm(e)}function E6(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 Uu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E6(Object(r),!0).forEach(function(n){kge(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kge(e,t,r){return t=jge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jge(e){var t=Lge(e,"string");return Qm(t)=="symbol"?t:t+""}function Lge(e,t){if(Qm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tB=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ha(r,Zc);if(!o)return null;var s=Zc.defaultProps,l=s!==void 0?Uu(Uu({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(u,f){var d=f.item,h=f.props,v=h.sectors||h.data||[];return u.concat(v.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):c=(n||[]).map(function(u){var f=u.item,d=f.type.defaultProps,h=d!==void 0?Uu(Uu({},d),f.props):{},v=h.dataKey,p=h.name,m=h.legendType,y=h.hide;return{inactive:y,dataKey:v,type:l.iconType||m||"square",color:AN(f),value:p||v,payload:h}}),Uu(Uu(Uu({},l),Zc.getWithHeight(o,i)),{},{payload:c,item:o})};function eg(e){"@babel/helpers - typeof";return eg=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},eg(e)}function N6(e){return Mge(e)||Rge(e)||Dge(e)||Ige()}function Ige(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dge(e,t){if(e){if(typeof e=="string")return e4(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 e4(e,t)}}function Rge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mge(e){if(Array.isArray(e))return e4(e)}function e4(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 P6(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 En(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P6(Object(r),!0).forEach(function(n){oh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oh(e,t,r){return t=Fge(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fge(e){var t=$ge(e,"string");return eg(t)=="symbol"?t:t+""}function $ge(e,t){if(eg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xi(e,t,r){return tr(e)||tr(t)?r:oi(t)?eo(e,t,r):Dt(t)?t(e):r}function rm(e,t,r,n){var i=Rme(e,function(s){return Xi(s,t)});if(r==="number"){var a=i.filter(function(s){return Ye(s)||parseFloat(s)});return a.length?[Eb(a),Ab(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!tr(s)}):i;return o.map(function(s){return oi(s)||s instanceof Date?s:""})}var Bge=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,c=0;c<s;c++){var u=c>0?i[c-1].coordinate:i[s-1].coordinate,f=i[c].coordinate,d=c>=s-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(ua(f-u)!==ua(d-f)){var v=[];if(ua(d-f)===ua(l[1]-l[0])){h=d;var p=f+l[1]-l[0];v[0]=Math.min(p,(p+u)/2),v[1]=Math.max(p,(p+u)/2)}else{h=u;var m=d+l[1]-l[0];v[0]=Math.min(f,(m+f)/2),v[1]=Math.max(f,(m+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=v[0]&&t<=v[1]){o=i[c].index;break}}else{var x=Math.min(u,d),w=Math.max(u,d);if(t>(x+f)/2&&t<=(w+f)/2){o=i[c].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},AN=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?En(En({},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},Uge=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,c=s.length;l<c;l++)for(var u=a[s[l]].stackGroups,f=Object.keys(u),d=0,h=f.length;d<h;d++){var v=u[f[d]],p=v.items,m=v.cateAxisId,y=p.filter(function(P){return Ol(P.type).indexOf("Bar")>=0});if(y&&y.length){var x=y[0].type.defaultProps,w=x!==void 0?En(En({},x),y[0].props):y[0].props,S=w.barSize,A=w[m];o[A]||(o[A]=[]);var N=tr(S)?r:S;o[A].push({item:y[0],stackList:y.slice(1),barSize:tr(N)?void 0:fa(N,n,0)})}}return o},Wge=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 c=fa(r,i,0,!0),u,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/l,v=o.reduce(function(S,A){return S+A.barSize||0},0);v+=(l-1)*c,v>=i&&(v-=(l-1)*c,c=0),v>=i&&h>0&&(d=!0,h*=.9,v=l*h);var p=(i-v)/2>>0,m={offset:p-c,size:0};u=o.reduce(function(S,A){var N={item:A.item,position:{offset:m.offset+m.size+c,size:d?h:A.barSize}},P=[].concat(N6(S),[N]);return m=P[P.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(j){P.push({item:j,position:m})}),P},f)}else{var y=fa(n,i,0,!0);i-2*y-(l-1)*c<=0&&(c=0);var x=(i-2*y-(l-1)*c)/l;x>1&&(x>>=0);var w=s===+s?Math.min(x,s):x;u=o.reduce(function(S,A,N){var P=[].concat(N6(S),[{item:A.item,position:{offset:y+(x+c)*N+(x-w)/2,size:w}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(j){P.push({item:j,position:P[P.length-1].position})}),P},f)}return u},zge=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=tB({children:a,legendWidth:l});if(c){var u=i||{},f=u.width,d=u.height,h=c.align,v=c.verticalAlign,p=c.layout;if((p==="vertical"||p==="horizontal"&&v==="middle")&&h!=="center"&&Ye(t[h]))return En(En({},t),{},oh({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&v!=="middle"&&Ye(t[v]))return En(En({},t),{},oh({},v,t[v]+(d||0)))}return t},Hge=function(t,r,n){return tr(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},rB=function(t,r,n,i,a){var o=r.props.children,s=ko(o,Cb).filter(function(c){return Hge(i,a,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var f=Xi(u,n);if(tr(f))return c;var d=Array.isArray(f)?[Eb(f),Ab(f)]:[f,f],h=l.reduce(function(v,p){var m=Xi(u,p,0),y=d[0]-Math.abs(Array.isArray(m)?m[0]:m),x=d[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(y,v[0]),Math.max(x,v[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},Vge=function(t,r,n,i,a){var o=r.map(function(s){return rB(t,s,n,a,i)}).filter(function(s){return!tr(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},nB=function(t,r,n,i,a){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&rB(t,l,c,i)||rm(t,c,n,a)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var u=0,f=c.length;u<f;u++)s[c[u]]||(s[c[u]]=!0,l.push(c[u]));return l},[])},iB=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},aB=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},Pl=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,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?ua(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+c,value:f,offset:c}});return u.filter(function(f){return!Vg(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+c,value:f,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+c,value:f,offset:c}}):i.domain().map(function(f,d){return{coordinate:i(f)+c,value:a?a[f]:f,index:d,offset:c}})},Q5=new WeakMap,hv=function(t,r){if(typeof r!="function")return t;Q5.has(t)||Q5.set(t,new WeakMap);var n=Q5.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},oB=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:Gm(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:lx(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:tm(),realScaleType:"point"}:a==="category"?{scale:Gm(),realScaleType:"band"}:{scale:lx(),realScaleType:"linear"};if(_f(i)){var l="scale".concat(ub(i));return{scale:(b6[l]||tm)(),realScaleType:b6[l]?l:"point"}}return Dt(i)?{scale:i}:{scale:tm(),realScaleType:"point"}},T6=1e-4,sB=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])-T6,o=Math.max(i[0],i[1])+T6,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},Gge=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},qge=function(t,r){if(!r||r.length!==2||!Ye(r[0])||!Ye(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(!Ye(t[0])||t[0]<n)&&(a[0]=n),(!Ye(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},Kge=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=Vg(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])}},Xge=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=Vg(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)}},Yge={sign:Kge,expand:mie,none:Lh,silhouette:gie,wiggle:vie,positive:Xge},Jge=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=Yge[n],o=pie().keys(i).value(function(s,l){return+Xi(s,l,0)}).order(EA).offset(a);return o(t)},Zge=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(f,d){var h,v=(h=d.type)!==null&&h!==void 0&&h.defaultProps?En(En({},d.type.defaultProps),d.props):d.props,p=v.stackId,m=v.hide;if(m)return f;var y=v[n],x=f[y]||{hasStack:!1,stackGroups:{}};if(oi(p)){var w=x.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[p]=w}else x.stackGroups[Gg("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return En(En({},f),{},oh({},y,x))},l),u={};return Object.keys(c).reduce(function(f,d){var h=c[d];if(h.hasStack){var v={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,m){var y=h.stackGroups[m];return En(En({},p),{},oh({},m,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:Jge(t,y.items,a)}))},v)}return En(En({},f),{},oh({},d,h))},u)},lB=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 c=t.domain();if(!c.length)return null;var u=dge(c,a,s);return t.domain([Eb(u),Ab(u)]),{niceTicks:u}}if(a&&i==="number"){var f=t.domain(),d=hge(f,a,s);return{niceTicks:d}}return null},C6=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=Xi(o,r.dataKey,r.domain[s]);return tr(l)?null:r.scale(l)-a/2+i},Qge=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]},e1e=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?En(En({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(oi(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},t1e=function(t){return t.reduce(function(r,n){return[Eb(n.concat([r[0]]).filter(Ye)),Ab(n.concat([r[1]]).filter(Ye))]},[1/0,-1/0])},cB=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(c,u){var f=t1e(u.slice(r,n+1));return[Math.min(c[0],f[0]),Math.max(c[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})},O6=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,k6=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,t4=function(t,r,n){if(Dt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(Ye(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(O6.test(t[0])){var a=+O6.exec(t[0])[1];i[0]=r[0]-a}else Dt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(Ye(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(k6.test(t[1])){var o=+k6.exec(t[1])[1];i[1]=r[1]+o}else Dt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},mx=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=ZE(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var c=a[s],u=a[s-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},j6=function(t,r,n){return!t||!t.length||Nb(t,eo(n,"type.defaultProps.domain"))?r:t},uB=function(t,r){var n=t.type.defaultProps?En(En({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,c=n.chartType,u=n.hide;return En(En({},Ot(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:AN(t),value:Xi(r,i),type:l,payload:r,chartType:c,hide:u})};function tg(e){"@babel/helpers - typeof";return tg=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},tg(e)}function L6(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 bl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?L6(Object(r),!0).forEach(function(n){fB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):L6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fB(e,t,r){return t=r1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1e(e){var t=n1e(e,"string");return tg(t)=="symbol"?t:t+""}function n1e(e,t){if(tg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i1e(e,t){return l1e(e)||s1e(e,t)||o1e(e,t)||a1e()}function a1e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o1e(e,t){if(e){if(typeof e=="string")return I6(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 I6(e,t)}}function I6(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 s1e(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function l1e(e){if(Array.isArray(e))return e}var gx=Math.PI/180,c1e=function(t){return t*180/Math.PI},Xr=function(t,r,n,i){return{x:t+Math.cos(-gx*i)*n,y:r+Math.sin(-gx*i)*n}},dB=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},u1e=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,c=t.endAngle,u=fa(t.cx,o,o/2),f=fa(t.cy,s,s/2),d=dB(o,s,n),h=fa(t.innerRadius,d,0),v=fa(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(m,y){var x=r[y],w=x.domain,S=x.reversed,A;if(tr(x.range))i==="angleAxis"?A=[l,c]:i==="radiusAxis"&&(A=[h,v]),S&&(A=[A[1],A[0]]);else{A=x.range;var N=A,P=i1e(N,2);l=P[0],c=P[1]}var j=oB(x,a),C=j.realScaleType,R=j.scale;R.domain(w).range(A),sB(R);var L=lB(R,bl(bl({},x),{},{realScaleType:C})),I=bl(bl(bl({},x),L),{},{range:A,radius:v,realScaleType:C,scale:R,cx:u,cy:f,innerRadius:h,outerRadius:v,startAngle:l,endAngle:c});return bl(bl({},m),{},fB({},y,I))},{})},f1e=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))},d1e=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=f1e({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,c=Math.acos(l);return i>o&&(c=2*Math.PI-c),{radius:s,angle:c1e(c),angleInRadian:c}},h1e=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}},p1e=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},D6=function(t,r){var n=t.x,i=t.y,a=d1e({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,c=r.outerRadius;if(o<l||o>c)return!1;if(o===0)return!0;var u=h1e(r),f=u.startAngle,d=u.endAngle,h=s,v;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;v=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;v=h>=d&&h<=f}return v?bl(bl({},r),{},{radius:o,angle:p1e(h,r)}):null},hB=function(t){return!E.isValidElement(t)&&!Dt(t)&&typeof t!="boolean"?t.className:""};function rg(e){"@babel/helpers - typeof";return rg=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},rg(e)}var m1e=["offset"];function g1e(e){return b1e(e)||x1e(e)||y1e(e)||v1e()}function v1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y1e(e,t){if(e){if(typeof e=="string")return r4(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 r4(e,t)}}function x1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function b1e(e){if(Array.isArray(e))return r4(e)}function r4(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 w1e(e,t){if(e==null)return{};var r=S1e(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 S1e(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 R6(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 ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R6(Object(r),!0).forEach(function(n){_1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _1e(e,t,r){return t=A1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A1e(e){var t=E1e(e,"string");return rg(t)=="symbol"?t:t+""}function E1e(e,t){if(rg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ng(){return ng=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},ng.apply(this,arguments)}var N1e=function(t){var r=t.value,n=t.formatter,i=tr(t.children)?r:t.children;return Dt(n)?n(i):i},P1e=function(t,r){var n=ua(r-t),i=Math.min(Math.abs(r-t),360);return n*i},T1e=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,c=l.cx,u=l.cy,f=l.innerRadius,d=l.outerRadius,h=l.startAngle,v=l.endAngle,p=l.clockWise,m=(f+d)/2,y=P1e(h,v),x=y>=0?1:-1,w,S;i==="insideStart"?(w=h+x*o,S=p):i==="insideEnd"?(w=v-x*o,S=!p):i==="end"&&(w=v+x*o,S=p),S=y<=0?S:!S;var A=Xr(c,u,m,w),N=Xr(c,u,m,w+(S?1:-1)*359),P="M".concat(A.x,",").concat(A.y,` A`).concat(m,",").concat(m,",0,1,").concat(S?0:1,`, `).concat(N.x,",").concat(N.y),j=tr(t.id)?Gg("recharts-radial-line-"):t.id;return ge.createElement("text",ng({},n,{dominantBaseline:"central",className:Yt("recharts-radial-bar-label",s)}),ge.createElement("defs",null,ge.createElement("path",{id:j,d:P})),ge.createElement("textPath",{xlinkHref:"#".concat(j)},r))},C1e=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,c=a.outerRadius,u=a.startAngle,f=a.endAngle,d=(u+f)/2;if(i==="outside"){var h=Xr(o,s,c+n,d),v=h.x,p=h.y;return{x:v,y:p,textAnchor:v>=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 m=(l+c)/2,y=Xr(o,s,m,d),x=y.x,w=y.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},O1e=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,c=o.width,u=o.height,f=u>=0?1:-1,d=f*i,h=f>0?"end":"start",v=f>0?"start":"end",p=c>=0?1:-1,m=p*i,y=p>0?"end":"start",x=p>0?"start":"end";if(a==="top"){var w={x:s+c/2,y:l-f*i,textAnchor:"middle",verticalAnchor:h};return ri(ri({},w),n?{height:Math.max(l-n.y,0),width:c}:{})}if(a==="bottom"){var S={x:s+c/2,y:l+u+d,textAnchor:"middle",verticalAnchor:v};return ri(ri({},S),n?{height:Math.max(n.y+n.height-(l+u),0),width:c}:{})}if(a==="left"){var A={x:s-m,y:l+u/2,textAnchor:y,verticalAnchor:"middle"};return ri(ri({},A),n?{width:Math.max(A.x-n.x,0),height:u}:{})}if(a==="right"){var N={x:s+c+m,y:l+u/2,textAnchor:x,verticalAnchor:"middle"};return ri(ri({},N),n?{width:Math.max(n.x+n.width-N.x,0),height:u}:{})}var P=n?{width:c,height:u}:{};return a==="insideLeft"?ri({x:s+m,y:l+u/2,textAnchor:x,verticalAnchor:"middle"},P):a==="insideRight"?ri({x:s+c-m,y:l+u/2,textAnchor:y,verticalAnchor:"middle"},P):a==="insideTop"?ri({x:s+c/2,y:l+d,textAnchor:"middle",verticalAnchor:v},P):a==="insideBottom"?ri({x:s+c/2,y:l+u-d,textAnchor:"middle",verticalAnchor:h},P):a==="insideTopLeft"?ri({x:s+m,y:l+d,textAnchor:x,verticalAnchor:v},P):a==="insideTopRight"?ri({x:s+c-m,y:l+d,textAnchor:y,verticalAnchor:v},P):a==="insideBottomLeft"?ri({x:s+m,y:l+u-d,textAnchor:x,verticalAnchor:h},P):a==="insideBottomRight"?ri({x:s+c-m,y:l+u-d,textAnchor:y,verticalAnchor:h},P):vp(a)&&(Ye(a.x)||of(a.x))&&(Ye(a.y)||of(a.y))?ri({x:s+fa(a.x,c),y:l+fa(a.y,u),textAnchor:"end",verticalAnchor:"end"},P):ri({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},P)},k1e=function(t){return"cx"in t&&Ye(t.cx)};function hi(e){var t=e.offset,r=t===void 0?5:t,n=w1e(e,m1e),i=ri({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,c=i.content,u=i.className,f=u===void 0?"":u,d=i.textBreakAll;if(!a||tr(s)&&tr(l)&&!E.isValidElement(c)&&!Dt(c))return null;if(E.isValidElement(c))return E.cloneElement(c,i);var h;if(Dt(c)){if(h=E.createElement(c,i),E.isValidElement(h))return h}else h=N1e(i);var v=k1e(a),p=Ot(i,!0);if(v&&(o==="insideStart"||o==="insideEnd"||o==="end"))return T1e(i,h,p);var m=v?C1e(i):O1e(i);return ge.createElement(Ef,ng({className:Yt("recharts-label",f)},p,m,{breakAll:d}),h)}hi.displayName="Label";var pB=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,u=t.outerRadius,f=t.x,d=t.y,h=t.top,v=t.left,p=t.width,m=t.height,y=t.clockWise,x=t.labelViewBox;if(x)return x;if(Ye(p)&&Ye(m)){if(Ye(f)&&Ye(d))return{x:f,y:d,width:p,height:m};if(Ye(h)&&Ye(v))return{x:h,y:v,width:p,height:m}}return Ye(f)&&Ye(d)?{x:f,y:d,width:0,height:0}:Ye(r)&&Ye(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},j1e=function(t,r){return t?t===!0?ge.createElement(hi,{key:"label-implicit",viewBox:r}):oi(t)?ge.createElement(hi,{key:"label-implicit",viewBox:r,value:t}):E.isValidElement(t)?t.type===hi?E.cloneElement(t,{key:"label-implicit",viewBox:r}):ge.createElement(hi,{key:"label-implicit",content:t,viewBox:r}):Dt(t)?ge.createElement(hi,{key:"label-implicit",content:t,viewBox:r}):vp(t)?ge.createElement(hi,ng({viewBox:r},t,{key:"label-implicit"})):null:null},L1e=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=pB(t),o=ko(i,hi).map(function(l,c){return E.cloneElement(l,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var s=j1e(t.label,r||a);return[s].concat(g1e(o))};hi.parseViewBox=pB;hi.renderCallByParent=L1e;function I1e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var D1e=I1e;const R1e=gr(D1e);function ig(e){"@babel/helpers - typeof";return ig=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},ig(e)}var M1e=["valueAccessor"],F1e=["data","dataKey","clockWise","id","textBreakAll"];function $1e(e){return z1e(e)||W1e(e)||U1e(e)||B1e()}function B1e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U1e(e,t){if(e){if(typeof e=="string")return n4(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 n4(e,t)}}function W1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function z1e(e){if(Array.isArray(e))return n4(e)}function n4(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 vx(){return vx=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},vx.apply(this,arguments)}function M6(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 F6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M6(Object(r),!0).forEach(function(n){H1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H1e(e,t,r){return t=V1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V1e(e){var t=G1e(e,"string");return ig(t)=="symbol"?t:t+""}function G1e(e,t){if(ig(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ig(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $6(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}var K1e=function(t){return Array.isArray(t.value)?R1e(t.value):t.value};function eu(e){var t=e.valueAccessor,r=t===void 0?K1e:t,n=$6(e,M1e),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=$6(n,F1e);return!i||!i.length?null:ge.createElement(Pr,{className:"recharts-label-list"},i.map(function(u,f){var d=tr(a)?r(u,f):Xi(u&&u.payload,a),h=tr(s)?{}:{id:"".concat(s,"-").concat(f)};return ge.createElement(hi,vx({},Ot(u,!0),c,h,{parentViewBox:u.parentViewBox,value:d,textBreakAll:l,viewBox:hi.parseViewBox(tr(o)?u:F6(F6({},u),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}eu.displayName="LabelList";function X1e(e,t){return e?e===!0?ge.createElement(eu,{key:"labelList-implicit",data:t}):ge.isValidElement(e)||Dt(e)?ge.createElement(eu,{key:"labelList-implicit",data:t,content:e}):vp(e)?ge.createElement(eu,vx({data:t},e,{key:"labelList-implicit"})):null:null}function Y1e(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=ko(n,eu).map(function(o,s){return E.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=X1e(e.label,t);return[a].concat($1e(i))}eu.renderCallByParent=Y1e;function ag(e){"@babel/helpers - typeof";return ag=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},ag(e)}function i4(){return i4=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},i4.apply(this,arguments)}function B6(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 U6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?B6(Object(r),!0).forEach(function(n){J1e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J1e(e,t,r){return t=Z1e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z1e(e){var t=Q1e(e,"string");return ag(t)=="symbol"?t:t+""}function Q1e(e,t){if(ag(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ag(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eve=function(t,r){var n=ua(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},pv=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,u=l*(s?1:-1)+i,f=Math.asin(l/u)/gx,d=c?a:a+o*f,h=Xr(r,n,u,d),v=Xr(r,n,i,d),p=c?a-o*f:a,m=Xr(r,n,u*Math.cos(f*gx),p);return{center:h,circleTangency:v,lineTangency:m,theta:f}},mB=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=eve(o,s),c=o+l,u=Xr(r,n,a,o),f=Xr(r,n,a,c),d="M ".concat(u.x,",").concat(u.y,` A `).concat(a,",").concat(a,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(o>c),`, `).concat(f.x,",").concat(f.y,` `);if(i>0){var h=Xr(r,n,i,o),v=Xr(r,n,i,c);d+="L ".concat(v.x,",").concat(v.y,` A `).concat(i,",").concat(i,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`, `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},tve=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,u=t.endAngle,f=ua(u-c),d=pv({cx:r,cy:n,radius:a,angle:c,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,v=d.lineTangency,p=d.theta,m=pv({cx:r,cy:n,radius:a,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:l}),y=m.circleTangency,x=m.lineTangency,w=m.theta,S=l?Math.abs(c-u):Math.abs(c-u)-p-w;if(S<0)return s?"M ".concat(v.x,",").concat(v.y,` a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 `):mB({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:u});var A="M ".concat(v.x,",").concat(v.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,` A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,` `);if(i>0){var N=pv({cx:r,cy:n,radius:i,angle:c,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=N.circleTangency,j=N.lineTangency,C=N.theta,R=pv({cx:r,cy:n,radius:i,angle:u,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),L=R.circleTangency,I=R.lineTangency,B=R.theta,z=l?Math.abs(c-u):Math.abs(c-u)-C-B;if(z<0&&o===0)return"".concat(A,"L").concat(r,",").concat(n,"Z");A+="L".concat(I.x,",").concat(I.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(L.x,",").concat(L.y,` A`).concat(i,",").concat(i,",0,").concat(+(z>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(j.x,",").concat(j.y,"Z")}else A+="L".concat(r,",").concat(n,"Z");return A},rve={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},gB=function(t){var r=U6(U6({},rve),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,u=r.startAngle,f=r.endAngle,d=r.className;if(o<a||u===f)return null;var h=Yt("recharts-sector",d),v=o-a,p=fa(s,v,0,!0),m;return p>0&&Math.abs(u-f)<360?m=tve({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,v/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:f}):m=mB({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:f}),ge.createElement("path",i4({},Ot(r,!0),{className:h,d:m,role:"img"}))};function og(e){"@babel/helpers - typeof";return og=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},og(e)}function a4(){return a4=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},a4.apply(this,arguments)}function W6(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 z6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?W6(Object(r),!0).forEach(function(n){nve(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nve(e,t,r){return t=ive(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ive(e){var t=ave(e,"string");return og(t)=="symbol"?t:t+""}function ave(e,t){if(og(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(og(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var H6={curveBasisClosed:nie,curveBasisOpen:iie,curveBasis:rie,curveBumpX:Wne,curveBumpY:zne,curveLinearClosed:aie,curveLinear:db,curveMonotoneX:oie,curveMonotoneY:sie,curveNatural:lie,curveStep:cie,curveStepAfter:fie,curveStepBefore:uie},mv=function(t){return t.x===+t.x&&t.y===+t.y},P0=function(t){return t.x},T0=function(t){return t.y},ove=function(t,r){if(Dt(t))return t;var n="curve".concat(ub(t));return(n==="curveMonotone"||n==="curveBump")&&r?H6["".concat(n).concat(r==="vertical"?"Y":"X")]:H6[n]||db},sve=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,c=l===void 0?!1:l,u=ove(n,s),f=c?a.filter(function(p){return mv(p)}):a,d;if(Array.isArray(o)){var h=c?o.filter(function(p){return mv(p)}):o,v=f.map(function(p,m){return z6(z6({},p),{},{base:h[m]})});return s==="vertical"?d=av().y(T0).x1(P0).x0(function(p){return p.base.x}):d=av().x(P0).y1(T0).y0(function(p){return p.base.y}),d.defined(mv).curve(u),d(v)}return s==="vertical"&&Ye(o)?d=av().y(T0).x1(P0).x0(o):Ye(o)?d=av().x(P0).y1(T0).y0(o):d=f7().x(P0).y(T0),d.defined(mv).curve(u),d(f)},o4=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?sve(t):i;return E.createElement("path",a4({},Ot(t,!1),Uy(t),{className:Yt("recharts-curve",r),d:o,ref:a}))},vB={exports:{}},lve="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",cve=lve,uve=cve;function yB(){}function xB(){}xB.resetWarningCache=yB;var fve=function(){function e(n,i,a,o,s,l){if(l!==uve){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xB,resetWarningCache:yB};return r.PropTypes=r,r};vB.exports=fve();var dve=vB.exports;const xr=gr(dve),{getOwnPropertyNames:hve,getOwnPropertySymbols:pve}=Object,{hasOwnProperty:mve}=Object.prototype;function eS(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function gv(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 gve(e){return e!=null?e[Symbol.toStringTag]:void 0}function V6(e){return hve(e).concat(pve(e))}const vve=Object.hasOwn||((e,t)=>mve.call(e,t));function Yf(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const yve="__v",xve="__o",bve="_owner",{getOwnPropertyDescriptor:G6,keys:q6}=Object;function wve(e,t){return e.byteLength===t.byteLength&&yx(new Uint8Array(e),new Uint8Array(t))}function Sve(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 _ve(e,t){return e.byteLength===t.byteLength&&yx(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Ave(e,t){return Yf(e.getTime(),t.getTime())}function Eve(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Nve(e,t){return e===t}function K6(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 c=t.entries();let u=!1,f=0;for(;(s=c.next())&&!s.done;){if(i[f]){f++;continue}const d=o.value,h=s.value;if(r.equals(d[0],h[0],l,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){u=i[f]=!0;break}f++}if(!u)return!1;l++}return!0}const Pve=Yf;function Tve(e,t,r){const n=q6(e);let i=n.length;if(q6(t).length!==i)return!1;for(;i-- >0;)if(!bB(e,t,r,n[i]))return!1;return!0}function C0(e,t,r){const n=V6(e);let i=n.length;if(V6(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!bB(e,t,r,a)||(o=G6(e,a),s=G6(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function Cve(e,t){return Yf(e.valueOf(),t.valueOf())}function Ove(e,t){return e.source===t.source&&e.flags===t.flags}function X6(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 c=!1,u=0;for(;(s=l.next())&&!s.done;){if(!i[u]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function yx(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function kve(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function bB(e,t,r,n){return(n===bve||n===xve||n===yve)&&(e.$$typeof||t.$$typeof)?!0:vve(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const jve="[object ArrayBuffer]",Lve="[object Arguments]",Ive="[object Boolean]",Dve="[object DataView]",Rve="[object Date]",Mve="[object Error]",Fve="[object Map]",$ve="[object Number]",Bve="[object Object]",Uve="[object RegExp]",Wve="[object Set]",zve="[object String]",Hve={"[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]":!0},Vve="[object URL]",Gve=Object.prototype.toString;function qve({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:v}){return function(m,y,x){if(m===y)return!0;if(m==null||y==null)return!1;const w=typeof m;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?s(m,y,x):w==="function"?a(m,y,x):!1;const S=m.constructor;if(S!==y.constructor)return!1;if(S===Object)return l(m,y,x);if(Array.isArray(m))return t(m,y,x);if(S===Date)return n(m,y,x);if(S===RegExp)return u(m,y,x);if(S===Map)return o(m,y,x);if(S===Set)return f(m,y,x);const A=Gve.call(m);if(A===Rve)return n(m,y,x);if(A===Uve)return u(m,y,x);if(A===Fve)return o(m,y,x);if(A===Wve)return f(m,y,x);if(A===Bve)return typeof m.then!="function"&&typeof y.then!="function"&&l(m,y,x);if(A===Vve)return h(m,y,x);if(A===Mve)return i(m,y,x);if(A===Lve)return l(m,y,x);if(Hve[A])return d(m,y,x);if(A===jve)return e(m,y,x);if(A===Dve)return r(m,y,x);if(A===Ive||A===$ve||A===zve)return c(m,y,x);if(v){let N=v[A];if(!N){const P=gve(m);P&&(N=v[P])}if(N)return N(m,y,x)}return!1}}function Kve({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:wve,areArraysEqual:r?C0:Sve,areDataViewsEqual:_ve,areDatesEqual:Ave,areErrorsEqual:Eve,areFunctionsEqual:Nve,areMapsEqual:r?eS(K6,C0):K6,areNumbersEqual:Pve,areObjectsEqual:r?C0:Tve,arePrimitiveWrappersEqual:Cve,areRegExpsEqual:Ove,areSetsEqual:r?eS(X6,C0):X6,areTypedArraysEqual:r?eS(yx,C0):yx,areUrlsEqual:kve,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=gv(n.areArraysEqual),a=gv(n.areMapsEqual),o=gv(n.areObjectsEqual),s=gv(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function Xve(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function Yve({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:c=e?new WeakMap:void 0,meta:u}=r();return t(s,l,{cache:c,equals:n,meta:u,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 Jve=_u();_u({strict:!0});_u({circular:!0});_u({circular:!0,strict:!0});_u({createInternalComparator:()=>Yf});_u({strict:!0,createInternalComparator:()=>Yf});_u({circular:!0,createInternalComparator:()=>Yf});_u({circular:!0,createInternalComparator:()=>Yf,strict:!0});function _u(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=Kve(e),o=qve(a),s=r?r(o):Xve(o);return Yve({circular:t,comparator:o,createState:n,equals:s,strict:i})}function Zve(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Y6(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):Zve(i)};requestAnimationFrame(n)}function s4(e){"@babel/helpers - typeof";return s4=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},s4(e)}function Qve(e){return nye(e)||rye(e)||tye(e)||eye()}function eye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tye(e,t){if(e){if(typeof e=="string")return J6(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 J6(e,t)}}function J6(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 rye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nye(e){if(Array.isArray(e))return e}function iye(){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=Qve(o),l=s[0],c=s.slice(1);if(typeof l=="number"){Y6(i.bind(null,c),l);return}i(l),Y6(i.bind(null,c));return}s4(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 sg(e){"@babel/helpers - typeof";return sg=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},sg(e)}function Z6(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 Q6(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Z6(Object(r),!0).forEach(function(n){wB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z6(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wB(e,t,r){return t=aye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aye(e){var t=oye(e,"string");return sg(t)==="symbol"?t:String(t)}function oye(e,t){if(sg(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sg(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sye=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},lye=function(t){return t},cye=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},nm=function(t,r){return Object.keys(r).reduce(function(n,i){return Q6(Q6({},n),{},wB({},i,t(i,r[i])))},{})},e8=function(t,r,n){return t.map(function(i){return"".concat(cye(i)," ").concat(r,"ms ").concat(n)}).join(",")};function uye(e,t){return hye(e)||dye(e,t)||SB(e,t)||fye()}function fye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dye(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function hye(e){if(Array.isArray(e))return e}function pye(e){return vye(e)||gye(e)||SB(e)||mye()}function mye(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SB(e,t){if(e){if(typeof e=="string")return l4(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 l4(e,t)}}function gye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vye(e){if(Array.isArray(e))return l4(e)}function l4(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 xx=1e-4,_B=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},AB=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},t8=function(t,r){return function(n){var i=_B(t,r);return AB(i,n)}},yye=function(t,r){return function(n){var i=_B(t,r),a=[].concat(pye(i.map(function(o,s){return o*s}).slice(1)),[0]);return AB(a,n)}},r8=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 c=l[1].split(")")[0].split(",").map(function(m){return parseFloat(m)}),u=uye(c,4);i=u[0],a=u[1],o=u[2],s=u[3]}}}var f=t8(i,o),d=t8(a,s),h=yye(i,o),v=function(y){return y>1?1:y<0?0:y},p=function(y){for(var x=y>1?1:y,w=x,S=0;S<8;++S){var A=f(w)-x,N=h(w);if(Math.abs(A-x)<xx||N<xx)return d(w);w=v(w-A/N)}return d(w)};return p.isStepper=!1,p},xye=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(u,f,d){var h=-(u-f)*n,v=d*a,p=d+(h-v)*s/1e3,m=d*s/1e3+u;return Math.abs(m-f)<xx&&Math.abs(p)<xx?[f,0]:[m,p]};return l.isStepper=!0,l.dt=s,l},bye=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 r8(i);case"spring":return xye();default:if(i.split("(")[0]==="cubic-bezier")return r8(i)}return typeof i=="function"?i:null};function lg(e){"@babel/helpers - typeof";return lg=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},lg(e)}function n8(e){return _ye(e)||Sye(e)||EB(e)||wye()}function wye(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ye(e){if(Array.isArray(e))return u4(e)}function i8(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 Ti(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?i8(Object(r),!0).forEach(function(n){c4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c4(e,t,r){return t=Aye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aye(e){var t=Eye(e,"string");return lg(t)==="symbol"?t:String(t)}function Eye(e,t){if(lg(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lg(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nye(e,t){return Cye(e)||Tye(e,t)||EB(e,t)||Pye()}function Pye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EB(e,t){if(e){if(typeof e=="string")return u4(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 u4(e,t)}}function u4(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 Tye(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Cye(e){if(Array.isArray(e))return e}var bx=function(t,r,n){return t+(r-t)*n},f4=function(t){var r=t.from,n=t.to;return r!==n},Oye=function e(t,r,n){var i=nm(function(a,o){if(f4(o)){var s=t(o.from,o.to,o.velocity),l=Nye(s,2),c=l[0],u=l[1];return Ti(Ti({},o),{},{from:c,velocity:u})}return o},r);return n<1?nm(function(a,o){return f4(o)?Ti(Ti({},o),{},{velocity:bx(o.velocity,i[a].velocity,n),from:bx(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const kye=function(e,t,r,n,i){var a=sye(e,t),o=a.reduce(function(m,y){return Ti(Ti({},m),{},c4({},y,[e[y],t[y]]))},{}),s=a.reduce(function(m,y){return Ti(Ti({},m),{},c4({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,c,u,f=function(){return null},d=function(){return nm(function(y,x){return x.from},s)},h=function(){return!Object.values(s).filter(f4).length},v=function(y){c||(c=y);var x=y-c,w=x/r.dt;s=Oye(r,s,w),i(Ti(Ti(Ti({},e),t),d())),c=y,h()||(l=requestAnimationFrame(f))},p=function(y){u||(u=y);var x=(y-u)/n,w=nm(function(A,N){return bx.apply(void 0,n8(N).concat([r(x)]))},o);if(i(Ti(Ti(Ti({},e),t),w)),x<1)l=requestAnimationFrame(f);else{var S=nm(function(A,N){return bx.apply(void 0,n8(N).concat([r(1)]))},o);i(Ti(Ti(Ti({},e),t),S))}};return f=r.isStepper?v:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}};function Wh(e){"@babel/helpers - typeof";return Wh=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},Wh(e)}var jye=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Lye(e,t){if(e==null)return{};var r=Iye(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 Iye(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 tS(e){return Fye(e)||Mye(e)||Rye(e)||Dye()}function Dye(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rye(e,t){if(e){if(typeof e=="string")return d4(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 d4(e,t)}}function Mye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fye(e){if(Array.isArray(e))return d4(e)}function d4(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 a8(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 Jo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?a8(Object(r),!0).forEach(function(n){U0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U0(e,t,r){return t=NB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bye(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,NB(n.key),n)}}function Uye(e,t,r){return t&&Bye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NB(e){var t=Wye(e,"string");return Wh(t)==="symbol"?t:String(t)}function Wye(e,t){if(Wh(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wh(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zye(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&&h4(e,t)}function h4(e,t){return h4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},h4(e,t)}function Hye(e){var t=Vye();return function(){var n=wx(e),i;if(t){var a=wx(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return p4(this,i)}}function p4(e,t){if(t&&(Wh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m4(e)}function m4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vye(){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 wx(e){return wx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wx(e)}var zl=function(e){zye(r,e);var t=Hye(r);function r(n,i){var a;$ye(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,c=o.from,u=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(m4(a)),a.changeStyle=a.changeStyle.bind(m4(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:u}),p4(a);if(f&&f.length)a.state={style:f[0].style};else if(c){if(typeof d=="function")return a.state={style:c},p4(a);a.state={style:l?U0({},l,c):c}}else a.state={style:{}};return a}return Uye(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,c=a.shouldReAnimate,u=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:l?U0({},l,u):u};this.state&&d&&(l&&d[l]!==u||!l&&d!==u)&&this.setState(h);return}if(!(Jve(i.to,u)&&i.canBegin&&i.isActive)){var v=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=v||c?f:i.to;if(this.state&&d){var m={style:l?U0({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(m)}this.runAnimation(Jo(Jo({},this.props),{},{from:p,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,c=i.easing,u=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=kye(o,s,bye(c),l,this.changeStyle),v=function(){a.stopJSAnimation=h()};this.manager.start([d,u,v,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,c=o[0],u=c.style,f=c.duration,d=f===void 0?0:f,h=function(p,m,y){if(y===0)return p;var x=m.duration,w=m.easing,S=w===void 0?"ease":w,A=m.style,N=m.properties,P=m.onAnimationEnd,j=y>0?o[y-1]:m,C=N||Object.keys(A);if(typeof S=="function"||S==="spring")return[].concat(tS(p),[a.runJSAnimation.bind(a,{from:j.style,to:A,duration:x,easing:S}),x]);var R=e8(C,x,S),L=Jo(Jo(Jo({},j.style),A),{},{transition:R});return[].concat(tS(p),[L,x,P]).filter(lye)};return this.manager.start([l].concat(tS(o.reduce(h,[u,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=iye());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,c=i.easing,u=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?U0({},s,l):l,m=e8(Object.keys(p),o,c);v.start([u,a,Jo(Jo({},p),{},{transition:m}),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=Lye(i,jye),c=E.Children.count(a),u=this.state.style;if(typeof a=="function")return a(u);if(!s||c===0||o<=0)return a;var f=function(h){var v=h.props,p=v.style,m=p===void 0?{}:p,y=v.className,x=E.cloneElement(h,Jo(Jo({},l),{},{style:Jo(Jo({},m),u),className:y}));return x};return c===1?f(E.Children.only(a)):ge.createElement("div",null,E.Children.map(a,function(d){return f(d)}))}}]),r}(E.PureComponent);zl.displayName="Animate";zl.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};zl.propTypes={from:xr.oneOfType([xr.object,xr.string]),to:xr.oneOfType([xr.object,xr.string]),attributeName:xr.string,duration:xr.number,begin:xr.number,easing:xr.oneOfType([xr.string,xr.func]),steps:xr.arrayOf(xr.shape({duration:xr.number.isRequired,style:xr.object.isRequired,easing:xr.oneOfType([xr.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),xr.func]),properties:xr.arrayOf("string"),onAnimationEnd:xr.func})),children:xr.oneOfType([xr.node,xr.func]),isActive:xr.bool,canBegin:xr.bool,onAnimationEnd:xr.func,shouldReAnimate:xr.bool,onAnimationStart:xr.func,onAnimationReStart:xr.func};function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tu.apply(null,arguments)}function PB(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function cg(e){"@babel/helpers - typeof";return cg=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},cg(e)}function Sx(){return Sx=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},Sx.apply(this,arguments)}function Gye(e,t){return Yye(e)||Xye(e,t)||Kye(e,t)||qye()}function qye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kye(e,t){if(e){if(typeof e=="string")return o8(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 o8(e,t)}}function o8(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 Xye(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Yye(e){if(Array.isArray(e))return e}function s8(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 l8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?s8(Object(r),!0).forEach(function(n){Jye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jye(e,t,r){return t=Zye(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zye(e){var t=Qye(e,"string");return cg(t)=="symbol"?t:t+""}function Qye(e,t){if(cg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c8=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,c=i>=0&&n>=0||i<0&&n<0?1:0,u;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>o?o:a[d];u="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+l*f[0],",").concat(r)),u+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`, `).concat(t+n,",").concat(r+s*f[1])),u+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(u+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`, `).concat(t+n-l*f[2],",").concat(r+i)),u+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(u+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`, `).concat(t,",").concat(r+i-s*f[3])),u+="Z"}else if(o>0&&a===+a&&a>0){var v=Math.min(o,a);u="M ".concat(t,",").concat(r+s*v,` A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+l*v,",").concat(r,` L `).concat(t+n-l*v,",").concat(r,` A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+n,",").concat(r+s*v,` L `).concat(t+n,",").concat(r+i-s*v,` A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+n-l*v,",").concat(r+i,` L `).concat(t+l*v,",").concat(r+i,` A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t,",").concat(r+i-s*v," Z")}else u="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return u},exe=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 c=Math.min(a,a+s),u=Math.max(a,a+s),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=c&&n<=u&&i>=f&&i<=d}return!1},txe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},EN=function(t){var r=l8(l8({},txe),t),n=E.useRef(),i=E.useState(-1),a=Gye(i,2),o=a[0],s=a[1];E.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&s(S)}catch{}},[]);var l=r.x,c=r.y,u=r.width,f=r.height,d=r.radius,h=r.className,v=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isAnimationActive,x=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||u===0||f===0)return null;var w=Yt("recharts-rectangle",h);return x?ge.createElement(zl,{canBegin:o>0,from:{width:u,height:f,x:l,y:c},to:{width:u,height:f,x:l,y:c},duration:p,animationEasing:v,isActive:x},function(S){var A=S.width,N=S.height,P=S.x,j=S.y;return ge.createElement(zl,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,isActive:y,easing:v},ge.createElement("path",Sx({},Ot(r,!0),{className:w,d:c8(P,j,A,N,d),ref:n})))}):ge.createElement("path",Sx({},Ot(r,!0),{className:w,d:c8(l,c,u,f,d)}))},rxe=["points","className","baseLinePoints","connectNulls"];function Hd(){return Hd=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},Hd.apply(this,arguments)}function nxe(e,t){if(e==null)return{};var r=ixe(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 ixe(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 u8(e){return lxe(e)||sxe(e)||oxe(e)||axe()}function axe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oxe(e,t){if(e){if(typeof e=="string")return g4(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 g4(e,t)}}function sxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lxe(e){if(Array.isArray(e))return g4(e)}function g4(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 f8=function(t){return t&&t.x===+t.x&&t.y===+t.y},cxe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){f8(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),f8(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},im=function(t,r){var n=cxe(t);r&&(n=[n.reduce(function(a,o){return[].concat(u8(a),u8(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},uxe=function(t,r,n){var i=im(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(im(r.reverse(),n).slice(1))},fxe=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=nxe(t,rxe);if(!r||!r.length)return null;var s=Yt("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",c=uxe(r,i,a);return ge.createElement("g",{className:s},ge.createElement("path",Hd({},Ot(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),l?ge.createElement("path",Hd({},Ot(o,!0),{fill:"none",d:im(r,a)})):null,l?ge.createElement("path",Hd({},Ot(o,!0),{fill:"none",d:im(i,a)})):null)}var u=im(r,a);return ge.createElement("path",Hd({},Ot(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:s,d:u}))};function v4(){return v4=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},v4.apply(this,arguments)}var NN=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Yt("recharts-dot",a);return r===+r&&n===+n&&i===+i?E.createElement("circle",v4({},Ot(t,!1),Uy(t),{className:o,cx:r,cy:n,r:i})):null};function ug(e){"@babel/helpers - typeof";return ug=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},ug(e)}var dxe=["x","y","top","left","width","height","className"];function y4(){return y4=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},y4.apply(this,arguments)}function d8(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 hxe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d8(Object(r),!0).forEach(function(n){pxe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pxe(e,t,r){return t=mxe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mxe(e){var t=gxe(e,"string");return ug(t)=="symbol"?t:t+""}function gxe(e,t){if(ug(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ug(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vxe(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}var xxe=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},bxe=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,c=l===void 0?0:l,u=t.width,f=u===void 0?0:u,d=t.height,h=d===void 0?0:d,v=t.className,p=vxe(t,dxe),m=hxe({x:n,y:a,top:s,left:c,width:f,height:h},p);return!Ye(n)||!Ye(a)||!Ye(f)||!Ye(h)||!Ye(s)||!Ye(c)?null:ge.createElement("path",y4({},Ot(m,!0),{className:Yt("recharts-cross",v),d:xxe(n,a,f,h,s,c)}))},wxe=_b,Sxe=F$,_xe=Xs;function Axe(e,t){return e&&e.length?wxe(e,_xe(t),Sxe):void 0}var Exe=Axe;const Nxe=gr(Exe);var Pxe=_b,Txe=Xs,Cxe=$$;function Oxe(e,t){return e&&e.length?Pxe(e,Txe(t),Cxe):void 0}var kxe=Oxe;const jxe=gr(kxe);var Lxe=["cx","cy","angle","ticks","axisLine"],Ixe=["ticks","tick","angle","tickFormatter","stroke"];function zh(e){"@babel/helpers - typeof";return zh=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},zh(e)}function am(){return am=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},am.apply(this,arguments)}function h8(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 Wu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h8(Object(r),!0).forEach(function(n){Ob(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function p8(e,t){if(e==null)return{};var r=Dxe(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 Dxe(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 Rxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m8(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,CB(n.key),n)}}function Mxe(e,t,r){return t&&m8(e.prototype,t),r&&m8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fxe(e,t,r){return t=_x(t),$xe(e,TB()?Reflect.construct(t,r||[],_x(e).constructor):t.apply(e,r))}function $xe(e,t){if(t&&(zh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bxe(e)}function Bxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TB=function(){return!!e})()}function _x(e){return _x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_x(e)}function Uxe(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&&x4(e,t)}function x4(e,t){return x4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},x4(e,t)}function Ob(e,t,r){return t=CB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CB(e){var t=Wxe(e,"string");return zh(t)=="symbol"?t:t+""}function Wxe(e,t){if(zh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kb=function(e){function t(){return Rxe(this,t),Fxe(this,t,arguments)}return Uxe(t,e),Mxe(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return Xr(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=Nxe(s,function(u){return u.coordinate||0}),c=jxe(s,function(u){return u.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.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,c=p8(n,Lxe),u=s.reduce(function(v,p){return[Math.min(v[0],p.coordinate),Math.max(v[1],p.coordinate)]},[1/0,-1/0]),f=Xr(i,a,u[0],o),d=Xr(i,a,u[1],o),h=Wu(Wu(Wu({},Ot(c,!1)),{},{fill:"none"},Ot(l,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return ge.createElement("line",am({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,c=i.stroke,u=p8(i,Ixe),f=this.getTickTextAnchor(),d=Ot(u,!1),h=Ot(o,!1),v=a.map(function(p,m){var y=n.getTickValueCoord(p),x=Wu(Wu(Wu(Wu({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:m},y),{},{payload:p});return ge.createElement(Pr,am({className:Yt("recharts-polar-radius-axis-tick",hB(o)),key:"tick-".concat(p.coordinate)},Af(n.props,p,m)),t.renderTickItem(o,x,l?l(p.value,m):p.value))});return ge.createElement(Pr,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:ge.createElement(Pr,{className:Yt("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),hi.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return ge.isValidElement(n)?o=ge.cloneElement(n,i):Dt(n)?o=n(i):o=ge.createElement(Ef,am({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(E.PureComponent);Ob(kb,"displayName","PolarRadiusAxis");Ob(kb,"axisType","radiusAxis");Ob(kb,"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 Hh(e){"@babel/helpers - typeof";return Hh=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},Hh(e)}function Qu(){return Qu=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},Qu.apply(this,arguments)}function g8(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 zu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g8(Object(r),!0).forEach(function(n){jb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v8(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,kB(n.key),n)}}function Hxe(e,t,r){return t&&v8(e.prototype,t),r&&v8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vxe(e,t,r){return t=Ax(t),Gxe(e,OB()?Reflect.construct(t,r||[],Ax(e).constructor):t.apply(e,r))}function Gxe(e,t){if(t&&(Hh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qxe(e)}function qxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OB=function(){return!!e})()}function Ax(e){return Ax=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ax(e)}function Kxe(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&&b4(e,t)}function b4(e,t){return b4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},b4(e,t)}function jb(e,t,r){return t=kB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kB(e){var t=Xxe(e,"string");return Hh(t)=="symbol"?t:t+""}function Xxe(e,t){if(Hh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yxe=Math.PI/180,y8=1e-5,Lb=function(e){function t(){return zxe(this,t),Vxe(this,t,arguments)}return Kxe(t,e),Hxe(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,c=i.tickSize,u=c||8,f=Xr(a,o,s,n.coordinate),d=Xr(a,o,s+(l==="inner"?-1:1)*u,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*Yxe),o;return a>y8?o=i==="outer"?"start":"end":a<-y8?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,c=zu(zu({},Ot(this.props,!1)),{},{fill:"none"},Ot(s,!1));if(l==="circle")return ge.createElement(NN,Qu({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var u=this.props.ticks,f=u.map(function(d){return Xr(i,a,o,d.coordinate)});return ge.createElement(fxe,Qu({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,c=i.stroke,u=Ot(this.props,!1),f=Ot(o,!1),d=zu(zu({},u),{},{fill:"none"},Ot(s,!1)),h=a.map(function(v,p){var m=n.getTickLineCoord(v),y=n.getTickTextAnchor(v),x=zu(zu(zu({textAnchor:y},u),{},{stroke:"none",fill:c},f),{},{index:p,payload:v,x:m.x2,y:m.y2});return ge.createElement(Pr,Qu({className:Yt("recharts-polar-angle-axis-tick",hB(o)),key:"tick-".concat(v.coordinate)},Af(n.props,v,p)),s&&ge.createElement("line",Qu({className:"recharts-polar-angle-axis-tick-line"},d,m)),o&&t.renderTickItem(o,x,l?l(v.value,p):v.value))});return ge.createElement(Pr,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:ge.createElement(Pr,{className:Yt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return ge.isValidElement(n)?o=ge.cloneElement(n,i):Dt(n)?o=n(i):o=ge.createElement(Ef,Qu({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(E.PureComponent);jb(Lb,"displayName","PolarAngleAxis");jb(Lb,"axisType","angleAxis");jb(Lb,"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 Jxe=D7,Zxe=Jxe(Object.getPrototypeOf,Object),Qxe=Zxe,e2e=ec,t2e=Qxe,r2e=tc,n2e="[object Object]",i2e=Function.prototype,a2e=Object.prototype,jB=i2e.toString,o2e=a2e.hasOwnProperty,s2e=jB.call(Object);function l2e(e){if(!r2e(e)||e2e(e)!=n2e)return!1;var t=t2e(e);if(t===null)return!0;var r=o2e.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&jB.call(r)==s2e}var c2e=l2e;const u2e=gr(c2e);var f2e=ec,d2e=tc,h2e="[object Boolean]";function p2e(e){return e===!0||e===!1||d2e(e)&&f2e(e)==h2e}var m2e=p2e;const g2e=gr(m2e);function fg(e){"@babel/helpers - typeof";return fg=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},fg(e)}function Ex(){return Ex=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},Ex.apply(this,arguments)}function v2e(e,t){return w2e(e)||b2e(e,t)||x2e(e,t)||y2e()}function y2e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x2e(e,t){if(e){if(typeof e=="string")return x8(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 x8(e,t)}}function x8(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 b2e(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function w2e(e){if(Array.isArray(e))return e}function b8(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 w8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b8(Object(r),!0).forEach(function(n){S2e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S2e(e,t,r){return t=_2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _2e(e){var t=A2e(e,"string");return fg(t)=="symbol"?t:t+""}function A2e(e,t){if(fg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S8=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},E2e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},N2e=function(t){var r=w8(w8({},E2e),t),n=E.useRef(),i=E.useState(-1),a=v2e(i,2),o=a[0],s=a[1];E.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,c=r.y,u=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,v=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||d!==+d||u===0&&f===0||d===0)return null;var x=Yt("recharts-trapezoid",h);return y?ge.createElement(zl,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:c},to:{upperWidth:u,lowerWidth:f,height:d,x:l,y:c},duration:p,animationEasing:v,isActive:y},function(w){var S=w.upperWidth,A=w.lowerWidth,N=w.height,P=w.x,j=w.y;return ge.createElement(zl,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,easing:v},ge.createElement("path",Ex({},Ot(r,!0),{className:x,d:S8(P,j,S,A,N),ref:n})))}):ge.createElement("g",null,ge.createElement("path",Ex({},Ot(r,!0),{className:x,d:S8(l,c,u,f,d)})))},P2e=["option","shapeType","propTransformer","activeClassName","isActive"];function dg(e){"@babel/helpers - typeof";return dg=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},dg(e)}function T2e(e,t){if(e==null)return{};var r=C2e(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 C2e(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 _8(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 Nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_8(Object(r),!0).forEach(function(n){O2e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O2e(e,t,r){return t=k2e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k2e(e){var t=j2e(e,"string");return dg(t)=="symbol"?t:t+""}function j2e(e,t){if(dg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function L2e(e,t){return Nx(Nx({},t),e)}function I2e(e,t){return e==="symbols"}function A8(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return ge.createElement(EN,r);case"trapezoid":return ge.createElement(N2e,r);case"sector":return ge.createElement(gB,r);case"symbols":if(I2e(t))return ge.createElement(HE,r);break;default:return null}}function D2e(e){return E.isValidElement(e)?e.props:e}function LB(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?L2e:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=T2e(e,P2e),c;if(E.isValidElement(t))c=E.cloneElement(t,Nx(Nx({},l),D2e(t)));else if(Dt(t))c=t(l);else if(u2e(t)&&!g2e(t)){var u=i(t,l);c=ge.createElement(A8,{shapeType:r,elementProps:u})}else{var f=l;c=ge.createElement(A8,{shapeType:r,elementProps:f})}return s?ge.createElement(Pr,{className:o},c):c}function Ib(e,t){return t!=null&&"trapezoids"in e.props}function Db(e,t){return t!=null&&"sectors"in e.props}function hg(e,t){return t!=null&&"points"in e.props}function R2e(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 M2e(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function F2e(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function $2e(e,t){var r;return Ib(e,t)?r=R2e:Db(e,t)?r=M2e:hg(e,t)&&(r=F2e),r}function B2e(e,t){var r;return Ib(e,t)?r="trapezoids":Db(e,t)?r="sectors":hg(e,t)&&(r="points"),r}function U2e(e,t){if(Ib(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(Db(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 hg(e,t)?t.payload:{}}function W2e(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=B2e(r,t),a=U2e(r,t),o=n.filter(function(l,c){var u=Nb(a,l),f=r.props[i].filter(function(v){var p=$2e(r,t);return p(v,t)}),d=r.props[i].indexOf(f[f.length-1]),h=c===d;return u&&h}),s=n.indexOf(o[o.length-1]);return s}var ny;function Vh(e){"@babel/helpers - typeof";return Vh=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},Vh(e)}function Vd(){return Vd=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},Vd.apply(this,arguments)}function E8(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 Gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E8(Object(r),!0).forEach(function(n){No(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N8(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,DB(n.key),n)}}function H2e(e,t,r){return t&&N8(e.prototype,t),r&&N8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function V2e(e,t,r){return t=Px(t),G2e(e,IB()?Reflect.construct(t,r||[],Px(e).constructor):t.apply(e,r))}function G2e(e,t){if(t&&(Vh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q2e(e)}function q2e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IB=function(){return!!e})()}function Px(e){return Px=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Px(e)}function K2e(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&&w4(e,t)}function w4(e,t){return w4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},w4(e,t)}function No(e,t,r){return t=DB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DB(e){var t=X2e(e,"string");return Vh(t)=="symbol"?t:t+""}function X2e(e,t){if(Vh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ys=function(e){function t(r){var n;return z2e(this,t),n=V2e(this,t,[r]),No(n,"pieRef",null),No(n,"sectorRefs",[]),No(n,"id",Gg("recharts-pie-")),No(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Dt(i)&&i()}),No(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Dt(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return K2e(t,e),H2e(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,c=a.valueKey,u=Ot(this.props,!1),f=Ot(o,!1),d=Ot(s,!1),h=o&&o.offsetRadius||20,v=n.map(function(p,m){var y=(p.startAngle+p.endAngle)/2,x=Xr(p.cx,p.cy,p.outerRadius+h,y),w=Gr(Gr(Gr(Gr({},u),p),{},{stroke:"none"},f),{},{index:m,textAnchor:t.getTextAnchor(x.x,p.cx)},x),S=Gr(Gr(Gr(Gr({},u),p),{},{fill:"none",stroke:p.fill},d),{},{index:m,points:[Xr(p.cx,p.cy,p.outerRadius,y),x]}),A=l;return tr(l)&&tr(c)?A="value":tr(l)&&(A=c),ge.createElement(Pr,{key:"label-".concat(p.startAngle,"-").concat(p.endAngle,"-").concat(p.midAngle,"-").concat(m)},s&&t.renderLabelLineItem(s,S,"line"),t.renderLabelItem(o,w,Xi(p,A)))});return ge.createElement(Pr,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,l=a.inactiveShape;return n.map(function(c,u){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&n.length!==1)return null;var f=i.isActiveIndex(u),d=l&&i.hasActiveIndex()?l:null,h=f?o:d,v=Gr(Gr({},c),{},{stroke:s?c.fill:c.stroke,tabIndex:-1});return ge.createElement(Pr,Vd({ref:function(m){m&&!i.sectorRefs.includes(m)&&i.sectorRefs.push(m)},tabIndex:-1,className:"recharts-pie-sector"},Af(i.props,c,u),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(u)}),ge.createElement(LB,Vd({option:h,isActive:f,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,c=i.animationEasing,u=i.animationId,f=this.state,d=f.prevSectors,h=f.prevIsAnimationActive;return ge.createElement(zl,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var p=v.t,m=[],y=a&&a[0],x=y.startAngle;return a.forEach(function(w,S){var A=d&&d[S],N=S>0?eo(w,"paddingAngle",0):0;if(A){var P=Oc(A.endAngle-A.startAngle,w.endAngle-w.startAngle),j=Gr(Gr({},w),{},{startAngle:x+N,endAngle:x+P(p)+N});m.push(j),x=j.endAngle}else{var C=w.endAngle,R=w.startAngle,L=Oc(0,C-R),I=L(p),B=Gr(Gr({},w),{},{startAngle:x+N,endAngle:x+I+N});m.push(B),x=B.endAngle}}),ge.createElement(Pr,null,n.renderSectorsStatically(m))})}},{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||!Nb(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,c=i.cx,u=i.cy,f=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,v=this.state.isAnimationFinished;if(a||!o||!o.length||!Ye(c)||!Ye(u)||!Ye(f)||!Ye(d))return null;var p=Yt("recharts-pie",s);return ge.createElement(Pr,{tabIndex:this.props.rootTabIndex,className:p,ref:function(y){n.pieRef=y}},this.renderSectors(),l&&this.renderLabels(o),hi.renderCallByParent(this.props,null,!1),(!h||v)&&eu.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(ge.isValidElement(n))return ge.cloneElement(n,i);if(Dt(n))return n(i);var o=Yt("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return ge.createElement(o4,Vd({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(ge.isValidElement(n))return ge.cloneElement(n,i);var o=a;if(Dt(n)&&(o=n(i),ge.isValidElement(o)))return o;var s=Yt("recharts-pie-label-text",typeof n!="boolean"&&!Dt(n)?n.className:"");return ge.createElement(Ef,Vd({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(E.PureComponent);ny=Ys;No(Ys,"displayName","Pie");No(Ys,"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:!Ap.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});No(Ys,"parseDeltaAngle",function(e,t){var r=ua(t-e),n=Math.min(Math.abs(t-e),360);return r*n});No(Ys,"getRealPieData",function(e){var t=e.data,r=e.children,n=Ot(e,!1),i=ko(r,Kg);return t&&t.length?t.map(function(a,o){return Gr(Gr(Gr({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Gr(Gr({},n),a.props)}):[]});No(Ys,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=dB(i,a),s=n+fa(e.cx,i,i/2),l=r+fa(e.cy,a,a/2),c=fa(e.innerRadius,o,0),u=fa(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:l,innerRadius:c,outerRadius:u,maxRadius:f}});No(Ys,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Gr(Gr({},t.type.defaultProps),t.props):t.props,i=ny.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,l=n.paddingAngle,c=n.dataKey,u=n.nameKey,f=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),v=ny.parseCoordinateOfPie(n,r),p=ny.parseDeltaAngle(o,s),m=Math.abs(p),y=c;tr(c)&&tr(f)?(ds(!1,`Use "dataKey" to specify the value of pie, the props "valueKey" will be deprecated in 1.1.0`),y="value"):tr(c)&&(ds(!1,`Use "dataKey" to specify the value of pie, the props "valueKey" will be deprecated in 1.1.0`),y=f);var x=i.filter(function(j){return Xi(j,y,0)!==0}).length,w=(m>=360?x:x-1)*l,S=m-x*h-w,A=i.reduce(function(j,C){var R=Xi(C,y,0);return j+(Ye(R)?R:0)},0),N;if(A>0){var P;N=i.map(function(j,C){var R=Xi(j,y,0),L=Xi(j,u,C),I=(Ye(R)?R:0)/A,B;C?B=P.endAngle+ua(p)*l*(R!==0?1:0):B=o;var z=B+ua(p)*((R!==0?h:0)+I*S),V=(B+z)/2,Q=(v.innerRadius+v.outerRadius)/2,ae=[{name:L,value:R,payload:j,dataKey:y,type:d}],K=Xr(v.cx,v.cy,Q,V);return P=Gr(Gr(Gr({percent:I,cornerRadius:a,name:L,tooltipPayload:ae,midAngle:V,middleRadius:Q,tooltipPosition:K},j),v),{},{value:Xi(j,y),startAngle:B,endAngle:z,payload:j,paddingAngle:ua(p)*l}),P})}return Gr(Gr({},v),{},{sectors:N,data:i})});var Y2e=Math.ceil,J2e=Math.max;function Z2e(e,t,r,n){for(var i=-1,a=J2e(Y2e((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var Q2e=Z2e,ebe=e$,P8=1/0,tbe=17976931348623157e292;function rbe(e){if(!e)return e===0?e:0;if(e=ebe(e),e===P8||e===-P8){var t=e<0?-1:1;return t*tbe}return e===e?e:0}var RB=rbe,nbe=Q2e,ibe=gb,rS=RB;function abe(e){return function(t,r,n){return n&&typeof n!="number"&&ibe(t,r,n)&&(r=n=void 0),t=rS(t),r===void 0?(r=t,t=0):r=rS(r),n=n===void 0?t<r?1:-1:rS(n),nbe(t,r,n,e)}}var obe=abe,sbe=obe,lbe=sbe(),cbe=lbe;const Tx=gr(cbe);function pg(e){"@babel/helpers - typeof";return pg=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},pg(e)}function T8(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 C8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T8(Object(r),!0).forEach(function(n){MB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MB(e,t,r){return t=ube(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ube(e){var t=fbe(e,"string");return pg(t)=="symbol"?t:t+""}function fbe(e,t){if(pg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dbe=["Webkit","Moz","O","ms"],hbe=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=dbe.reduce(function(a,o){return C8(C8({},a),{},MB({},o+n,r))},{});return i[t]=r,i};function Gh(e){"@babel/helpers - typeof";return Gh=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},Gh(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 O8(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 nS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O8(Object(r),!0).forEach(function(n){Ua(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k8(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,$B(n.key),n)}}function mbe(e,t,r){return t&&k8(e.prototype,t),r&&k8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gbe(e,t,r){return t=Ox(t),vbe(e,FB()?Reflect.construct(t,r||[],Ox(e).constructor):t.apply(e,r))}function vbe(e,t){if(t&&(Gh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ybe(e)}function ybe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FB=function(){return!!e})()}function Ox(e){return Ox=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ox(e)}function xbe(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&&S4(e,t)}function S4(e,t){return S4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},S4(e,t)}function Ua(e,t,r){return t=$B(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $B(e){var t=bbe(e,"string");return Gh(t)=="symbol"?t:t+""}function bbe(e,t){if(Gh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wbe=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,c=tm().domain(Tx(0,l)).range([a,a+o-s]),u=c.domain().map(function(f){return c(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:u}},j8=function(t){return t.changedTouches&&!!t.changedTouches.length},qh=function(e){function t(r){var n;return pbe(this,t),n=gbe(this,t,[r]),Ua(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ua(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ua(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()}),Ua(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ua(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ua(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ua(n,"handleSlideDragStart",function(i){var a=j8(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 xbe(t,e),mbe(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,c=s.data,u=c.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),v=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:v===u?u:v-v%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=Xi(a[n],s,n);return Dt(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,c=l.x,u=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,v=l.onChange,p=n.pageX-a;p>0?p=Math.min(p,c+u-f-s,c+u-f-o):p<0&&(p=Math.max(p,c-o,c-s));var m=this.getIndex({startX:o+p,endX:s+p});(m.startIndex!==d||m.endIndex!==h)&&v&&v(m),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=j8(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,c=this.state[o],u=this.props,f=u.x,d=u.width,h=u.travellerWidth,v=u.onChange,p=u.gap,m=u.data,y={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,f+d-h-c):x<0&&(x=Math.max(x,f-c)),y[o]=c+x;var w=this.getIndex(y),S=w.startIndex,A=w.endIndex,N=function(){var j=m.length-1;return o==="startX"&&(s>l?S%p===0:A%p===0)||s<l&&A===j||o==="endX"&&(s>l?A%p===0:S%p===0)||s>l&&A===j};this.setState(Ua(Ua({},o,c+x),"brushMoveStartX",n.pageX),function(){v&&N()&&v(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,c=o.endX,u=this.state[i],f=s.indexOf(u);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=c||i==="endX"&&h<=l||this.setState(Ua({},i,h),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,c=n.stroke;return ge.createElement("rect",{stroke:c,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,c=n.children,u=n.padding,f=E.Children.only(c);return f?ge.cloneElement(f,{x:i,y:a,width:o,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,c=l.y,u=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,v=l.data,p=l.startIndex,m=l.endIndex,y=Math.max(n,this.props.x),x=nS(nS({},Ot(this.props,!1)),{},{x:y,y:c,width:u,height:f}),w=h||"Min value: ".concat((a=v[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=v[m])===null||o===void 0?void 0:o.name);return ge.createElement(Pr,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),s.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,c=a.travellerWidth,u=Math.min(n,i)+c,f=Math.max(Math.abs(i-n)-c,0);return ge.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:u,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,c=n.stroke,u=this.state,f=u.startX,d=u.endX,h=5,v={pointerEvents:"none",fill:c};return ge.createElement(Pr,{className:"recharts-brush-texts"},ge.createElement(Ef,Cx({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},v),this.getTextOfTick(i)),ge.createElement(Ef,Cx({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:o+s/2},v),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,c=n.width,u=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,v=d.endX,p=d.isTextActive,m=d.isSlideMoving,y=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!Ye(s)||!Ye(l)||!Ye(c)||!Ye(u)||c<=0||u<=0)return null;var w=Yt("recharts-brush",a),S=ge.Children.count(o)===1,A=hbe("userSelect","none");return ge.createElement(Pr,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(h,v),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(v,"endX"),(p||m||y||x||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,c=Math.floor(a+s/2)-1;return ge.createElement(ge.Fragment,null,ge.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),ge.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),ge.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return ge.isValidElement(n)?a=ge.cloneElement(n,i):Dt(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,c=n.updateId,u=n.startIndex,f=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return nS({prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o},a&&a.length?wbe({data:a,width:o,x:s,travellerWidth:l,startIndex:u,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(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:c,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}}])}(E.PureComponent);Ua(qh,"displayName","Brush");Ua(qh,"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 Sbe=JE;function _be(e,t){var r;return Sbe(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var Abe=_be,Ebe=P7,Nbe=Xs,Pbe=Abe,Tbe=Oa,Cbe=gb;function Obe(e,t,r){var n=Tbe(e)?Ebe:Pbe;return r&&Cbe(e,t,r)&&(t=void 0),n(e,Nbe(t))}var kbe=Obe;const jbe=gr(kbe);var zs=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},L8=X7;function Lbe(e,t,r){t=="__proto__"&&L8?L8(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Ibe=Lbe,Dbe=Ibe,Rbe=q7,Mbe=Xs;function Fbe(e,t){var r={};return t=Mbe(t),Rbe(e,function(n,i,a){Dbe(r,i,t(n,i,a))}),r}var $be=Fbe;const Bbe=gr($be);function Ube(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 Wbe=Ube,zbe=JE;function Hbe(e,t){var r=!0;return zbe(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var Vbe=Hbe,Gbe=Wbe,qbe=Vbe,Kbe=Xs,Xbe=Oa,Ybe=gb;function Jbe(e,t,r){var n=Xbe(e)?Gbe:qbe;return r&&Ybe(e,t,r)&&(t=void 0),n(e,Kbe(t))}var Zbe=Jbe;const BB=gr(Zbe);var Qbe=["x","y"];function mg(e){"@babel/helpers - typeof";return mg=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},mg(e)}function _4(){return _4=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},_4.apply(this,arguments)}function I8(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 O0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I8(Object(r),!0).forEach(function(n){ewe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ewe(e,t,r){return t=twe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function twe(e){var t=rwe(e,"string");return mg(t)=="symbol"?t:t+""}function rwe(e,t){if(mg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nwe(e,t){if(e==null)return{};var r=iwe(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 iwe(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 awe(e,t){var r=e.x,n=e.y,i=nwe(e,Qbe),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),f="".concat(t.width||i.width),d=parseInt(f,10);return O0(O0(O0(O0(O0({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function D8(e){return ge.createElement(LB,_4({shapeType:"rectangle",propTransformer:awe,activeClassName:"recharts-active-bar"},e))}var owe=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=Ye(n)||Tre(n);return a?t(n,i):(a||su(),r)}},swe=["value","background"],UB;function Kh(e){"@babel/helpers - typeof";return Kh=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},Kh(e)}function lwe(e,t){if(e==null)return{};var r=cwe(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 cwe(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 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 R8(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 Hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R8(Object(r),!0).forEach(function(n){Fc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M8(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,zB(n.key),n)}}function fwe(e,t,r){return t&&M8(e.prototype,t),r&&M8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dwe(e,t,r){return t=jx(t),hwe(e,WB()?Reflect.construct(t,r||[],jx(e).constructor):t.apply(e,r))}function hwe(e,t){if(t&&(Kh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pwe(e)}function pwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WB=function(){return!!e})()}function jx(e){return jx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jx(e)}function mwe(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&&A4(e,t)}function A4(e,t){return A4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},A4(e,t)}function Fc(e,t,r){return t=zB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zB(e){var t=gwe(e,"string");return Kh(t)=="symbol"?t:t+""}function gwe(e,t){if(Kh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gs=function(e){function t(){var r;uwe(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=dwe(this,t,[].concat(i)),Fc(r,"state",{isAnimationFinished:!1}),Fc(r,"id",Gg("recharts-bar-")),Fc(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Fc(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return mwe(t,e),fwe(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,c=a.activeBar,u=Ot(this.props,!1);return n&&n.map(function(f,d){var h=d===l,v=h?c:o,p=Hn(Hn(Hn({},u),f),{},{isActive:h,option:v,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return ge.createElement(Pr,kx({className:"recharts-bar-rectangle"},Af(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)}),ge.createElement(D8,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,u=i.animationEasing,f=i.animationId,d=this.state.prevData;return ge.createElement(zl,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var v=h.t,p=a.map(function(m,y){var x=d&&d[y];if(x){var w=Oc(x.x,m.x),S=Oc(x.y,m.y),A=Oc(x.width,m.width),N=Oc(x.height,m.height);return Hn(Hn({},m),{},{x:w(v),y:S(v),width:A(v),height:N(v)})}if(o==="horizontal"){var P=Oc(0,m.height),j=P(v);return Hn(Hn({},m),{},{y:m.y+m.height-j,height:j})}var C=Oc(0,m.width),R=C(v);return Hn(Hn({},m),{},{width:R})});return ge.createElement(Pr,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Nb(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=Ot(this.props.background,!1);return a.map(function(c,u){c.value;var f=c.background,d=lwe(c,swe);if(!f)return null;var h=Hn(Hn(Hn(Hn(Hn({},d),{},{fill:"#eee"},f),l),Af(n.props,c,u)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:u,className:"recharts-bar-background-rectangle"});return ge.createElement(D8,kx({key:"background-bar-".concat(u),option:n.props.background,isActive:u===s},h))})}},{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,c=a.layout,u=a.children,f=ko(u,Cb);if(!f)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(m,y){var x=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:x,errorVal:Xi(m,y)}},v={clipPath:n?"url(#clipPath-".concat(i,")"):null};return ge.createElement(Pr,v,f.map(function(p){return ge.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,c=n.left,u=n.top,f=n.width,d=n.height,h=n.isAnimationActive,v=n.background,p=n.id;if(i||!a||!a.length)return null;var m=this.state.isAnimationFinished,y=Yt("recharts-bar",o),x=s&&s.allowDataOverflow,w=l&&l.allowDataOverflow,S=x||w,A=tr(p)?this.id:p;return ge.createElement(Pr,{className:y},x||w?ge.createElement("defs",null,ge.createElement("clipPath",{id:"clipPath-".concat(A)},ge.createElement("rect",{x:x?c:c-f/2,y:w?u:u-d/2,width:x?f:f*2,height:w?d:d*2}))):null,ge.createElement(Pr,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(A,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,A),(!h||m)&&eu.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}}])}(E.PureComponent);UB=Gs;Fc(Gs,"displayName","Bar");Fc(Gs,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ap.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Fc(Gs,"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,c=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,h=Gge(n,r);if(!h)return null;var v=t.layout,p=r.type.defaultProps,m=p!==void 0?Hn(Hn({},p),r.props):r.props,y=m.dataKey,x=m.children,w=m.minPointSize,S=v==="horizontal"?o:a,A=c?S.scale.domain():null,N=Qge({numericAxis:S}),P=ko(x,Kg),j=f.map(function(C,R){var L,I,B,z,V,Q;c?L=qge(c[u+R],A):(L=Xi(C,y),Array.isArray(L)||(L=[N,L]));var ae=owe(w,UB.defaultProps.minPointSize)(L[1],R);if(v==="horizontal"){var K,re=[o.scale(L[0]),o.scale(L[1])],ye=re[0],xe=re[1];I=C6({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:C,index:R}),B=(K=xe??ye)!==null&&K!==void 0?K:void 0,z=h.size;var O=ye-xe;if(V=Number.isNaN(O)?0:O,Q={x:I,y:o.y,width:z,height:o.height},Math.abs(ae)>0&&Math.abs(V)<Math.abs(ae)){var M=ua(V||ae)*(Math.abs(ae)-Math.abs(V));B-=M,V+=M}}else{var F=[a.scale(L[0]),a.scale(L[1])],U=F[0],Z=F[1];if(I=U,B=C6({axis:o,ticks:l,bandSize:i,offset:h.offset,entry:C,index:R}),z=Z-U,V=h.size,Q={x:a.x,y:B,width:a.width,height:V},Math.abs(ae)>0&&Math.abs(z)<Math.abs(ae)){var se=ua(z||ae)*(Math.abs(ae)-Math.abs(z));z+=se}}return Hn(Hn(Hn({},C),{},{x:I,y:B,width:z,height:V,value:c?L:L[1],payload:C,background:Q},P&&P[R]&&P[R].props),{},{tooltipPayload:[uB(r,C)],tooltipPosition:{x:I+z/2,y:B+V/2}})});return Hn({data:j,layout:v},d)});function gg(e){"@babel/helpers - typeof";return gg=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},gg(e)}function vwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F8(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,HB(n.key),n)}}function ywe(e,t,r){return t&&F8(e.prototype,t),r&&F8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $8(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 is(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$8(Object(r),!0).forEach(function(n){Rb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rb(e,t,r){return t=HB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HB(e){var t=xwe(e,"string");return gg(t)=="symbol"?t:t+""}function xwe(e,t){if(gg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bwe=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,c=t.children,u=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=!!Ha(c,Gs);return u.reduce(function(h,v){var p=r[v],m=p.orientation,y=p.domain,x=p.padding,w=x===void 0?{}:x,S=p.mirror,A=p.reversed,N="".concat(m).concat(S?"Mirror":""),P,j,C,R,L;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var I=y[1]-y[0],B=1/0,z=p.categoricalDomain.sort(kre);if(z.forEach(function(F,U){U>0&&(B=Math.min((F||0)-(z[U-1]||0),B))}),Number.isFinite(B)){var V=B/I,Q=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(P=V*Q/2),p.padding==="no-gap"){var ae=fa(t.barCategoryGap,V*Q),K=V*Q/2;P=K-ae-(K-ae)/Q*ae}}}i==="xAxis"?j=[n.left+(w.left||0)+(P||0),n.left+n.width-(w.right||0)-(P||0)]:i==="yAxis"?j=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(P||0),n.top+n.height-(w.bottom||0)-(P||0)]:j=p.range,A&&(j=[j[1],j[0]]);var re=oB(p,a,d),ye=re.scale,xe=re.realScaleType;ye.domain(y).range(j),sB(ye);var O=lB(ye,is(is({},p),{},{realScaleType:xe}));i==="xAxis"?(L=m==="top"&&!S||m==="bottom"&&S,C=n.left,R=f[N]-L*p.height):i==="yAxis"&&(L=m==="left"&&!S||m==="right"&&S,C=f[N]-L*p.width,R=n.top);var M=is(is(is({},p),O),{},{realScaleType:xe,x:C,y:R,scale:ye,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return M.bandSize=mx(M,O),!p.hide&&i==="xAxis"?f[N]+=(L?-1:1)*M.height:p.hide||(f[N]+=(L?-1:1)*M.width),is(is({},h),{},Rb({},v,M))},{})},VB=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)}},wwe=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return VB({x:r,y:n},{x:i,y:a})},GB=function(){function e(t){vwe(this,e),this.scale=t}return ywe(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)}}])}();Rb(GB,"EPS",1e-4);var PN=function(t){var r=Object.keys(t).reduce(function(n,i){return is(is({},n),{},Rb({},i,GB.create(t[i])))},{});return is(is({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return Bbe(i,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return BB(i,function(a,o){return r[o].isInRange(a)})}})};function Swe(e){return(e%180+180)%180}var _we=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Swe(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)},Awe=Xs,Ewe=qg,Nwe=pb;function Pwe(e){return function(t,r,n){var i=Object(t);if(!Ewe(t)){var a=Awe(r);t=Nwe(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 Twe=Pwe,Cwe=RB;function Owe(e){var t=Cwe(e),r=t%1;return t===t?r?t-r:t:0}var kwe=Owe,jwe=U7,Lwe=Xs,Iwe=kwe,Dwe=Math.max;function Rwe(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:Iwe(r);return i<0&&(i=Dwe(n+i,0)),jwe(e,Lwe(t),i)}var Mwe=Rwe,Fwe=Twe,$we=Mwe,Bwe=Fwe($we),Uwe=Bwe;const Wwe=gr(Uwe);var zwe=Dte(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("")}),TN=E.createContext(void 0),CN=E.createContext(void 0),qB=E.createContext(void 0),KB=E.createContext({}),XB=E.createContext(void 0),YB=E.createContext(0),JB=E.createContext(0),B8=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,c=t.height,u=zwe(a);return ge.createElement(TN.Provider,{value:n},ge.createElement(CN.Provider,{value:i},ge.createElement(KB.Provider,{value:a},ge.createElement(qB.Provider,{value:u},ge.createElement(XB.Provider,{value:o},ge.createElement(YB.Provider,{value:c},ge.createElement(JB.Provider,{value:l},s)))))))},Hwe=function(){return E.useContext(XB)},ZB=function(t){var r=E.useContext(TN);r==null&&su();var n=r[t];return n==null&&su(),n},Vwe=function(){var t=E.useContext(TN);return Ic(t)},Gwe=function(){var t=E.useContext(CN),r=Wwe(t,function(n){return BB(n.domain,Number.isFinite)});return r||Ic(t)},QB=function(t){var r=E.useContext(CN);r==null&&su();var n=r[t];return n==null&&su(),n},qwe=function(){var t=E.useContext(qB);return t},Kwe=function(){return E.useContext(KB)},ON=function(){return E.useContext(JB)},kN=function(){return E.useContext(YB)};function Xh(e){"@babel/helpers - typeof";return Xh=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},Xh(e)}function Xwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ywe(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,t9(n.key),n)}}function Jwe(e,t,r){return t&&Ywe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zwe(e,t,r){return t=Lx(t),Qwe(e,e9()?Reflect.construct(t,r||[],Lx(e).constructor):t.apply(e,r))}function Qwe(e,t){if(t&&(Xh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e5e(e)}function e5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e9=function(){return!!e})()}function Lx(e){return Lx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Lx(e)}function t5e(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&&E4(e,t)}function E4(e,t){return E4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},E4(e,t)}function U8(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 W8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?U8(Object(r),!0).forEach(function(n){jN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jN(e,t,r){return t=t9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t9(e){var t=r5e(e,"string");return Xh(t)=="symbol"?t:t+""}function r5e(e,t){if(Xh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function n5e(e,t){return s5e(e)||o5e(e,t)||a5e(e,t)||i5e()}function i5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a5e(e,t){if(e){if(typeof e=="string")return z8(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 z8(e,t)}}function z8(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 o5e(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function s5e(e){if(Array.isArray(e))return e}function N4(){return N4=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},N4.apply(this,arguments)}var l5e=function(t,r){var n;return ge.isValidElement(t)?n=ge.cloneElement(t,r):Dt(t)?n=t(r):n=ge.createElement("line",N4({},r,{className:"recharts-reference-line-line"})),n},c5e=function(t,r,n,i,a,o,s,l,c){var u=a.x,f=a.y,d=a.width,h=a.height;if(n){var v=c.y,p=t.y.apply(v,{position:o});if(zs(c,"discard")&&!t.y.isInRange(p))return null;var m=[{x:u+d,y:p},{x:u,y:p}];return l==="left"?m.reverse():m}if(r){var y=c.x,x=t.x.apply(y,{position:o});if(zs(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:f+h},{x,y:f}];return s==="top"?w.reverse():w}if(i){var S=c.segment,A=S.map(function(N){return t.apply(N,{position:o})});return zs(c,"discard")&&jbe(A,function(N){return!t.isInRange(N)})?null:A}return null};function u5e(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,c=Hwe(),u=ZB(i),f=QB(a),d=qwe();if(!c||!d)return null;ds(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=PN({x:u.scale,y:f.scale}),v=oi(t),p=oi(r),m=n&&n.length===2,y=c5e(h,v,p,m,d,e.position,u.orientation,f.orientation,e);if(!y)return null;var x=n5e(y,2),w=x[0],S=w.x,A=w.y,N=x[1],P=N.x,j=N.y,C=zs(e,"hidden")?"url(#".concat(c,")"):void 0,R=W8(W8({clipPath:C},Ot(e,!0)),{},{x1:S,y1:A,x2:P,y2:j});return ge.createElement(Pr,{className:Yt("recharts-reference-line",s)},l5e(o,R),hi.renderCallByParent(e,wwe({x1:S,y1:A,x2:P,y2:j})))}var LN=function(e){function t(){return Xwe(this,t),Zwe(this,t,arguments)}return t5e(t,e),Jwe(t,[{key:"render",value:function(){return ge.createElement(u5e,this.props)}}])}(ge.Component);jN(LN,"displayName","ReferenceLine");jN(LN,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function P4(){return P4=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},P4.apply(this,arguments)}function Yh(e){"@babel/helpers - typeof";return Yh=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},Yh(e)}function H8(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 V8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?H8(Object(r),!0).forEach(function(n){Mb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):H8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d5e(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,n9(n.key),n)}}function h5e(e,t,r){return t&&d5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p5e(e,t,r){return t=Ix(t),m5e(e,r9()?Reflect.construct(t,r||[],Ix(e).constructor):t.apply(e,r))}function m5e(e,t){if(t&&(Yh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g5e(e)}function g5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r9=function(){return!!e})()}function Ix(e){return Ix=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ix(e)}function v5e(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&&T4(e,t)}function T4(e,t){return T4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},T4(e,t)}function Mb(e,t,r){return t=n9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n9(e){var t=y5e(e,"string");return Yh(t)=="symbol"?t:t+""}function y5e(e,t){if(Yh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var x5e=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=PN({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return zs(t,"discard")&&!o.isInRange(s)?null:s},Fb=function(e){function t(){return f5e(this,t),p5e(this,t,arguments)}return v5e(t,e),h5e(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,c=oi(i),u=oi(a);if(ds(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var f=x5e(this.props);if(!f)return null;var d=f.x,h=f.y,v=this.props,p=v.shape,m=v.className,y=zs(this.props,"hidden")?"url(#".concat(l,")"):void 0,x=V8(V8({clipPath:y},Ot(this.props,!0)),{},{cx:d,cy:h});return ge.createElement(Pr,{className:Yt("recharts-reference-dot",m)},t.renderDot(p,x),hi.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(ge.Component);Mb(Fb,"displayName","ReferenceDot");Mb(Fb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Mb(Fb,"renderDot",function(e,t){var r;return ge.isValidElement(e)?r=ge.cloneElement(e,t):Dt(e)?r=e(t):r=ge.createElement(NN,P4({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function C4(){return C4=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},C4.apply(this,arguments)}function Jh(e){"@babel/helpers - typeof";return Jh=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},Jh(e)}function G8(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 q8(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?G8(Object(r),!0).forEach(function(n){$b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w5e(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,a9(n.key),n)}}function S5e(e,t,r){return t&&w5e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _5e(e,t,r){return t=Dx(t),A5e(e,i9()?Reflect.construct(t,r||[],Dx(e).constructor):t.apply(e,r))}function A5e(e,t){if(t&&(Jh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E5e(e)}function E5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i9=function(){return!!e})()}function Dx(e){return Dx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dx(e)}function N5e(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&&O4(e,t)}function O4(e,t){return O4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},O4(e,t)}function $b(e,t,r){return t=a9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a9(e){var t=P5e(e,"string");return Jh(t)=="symbol"?t:t+""}function P5e(e,t){if(Jh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var T5e=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,c=a.y2,u=a.xAxis,f=a.yAxis;if(!u||!f)return null;var d=PN({x:u.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},v={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return zs(a,"discard")&&(!d.isInRange(h)||!d.isInRange(v))?null:VB(h,v)},Bb=function(e){function t(){return b5e(this,t),_5e(this,t,arguments)}return N5e(t,e),S5e(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,c=n.alwaysShow,u=n.clipPathId;ds(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=oi(i),d=oi(a),h=oi(o),v=oi(s),p=this.props.shape;if(!f&&!d&&!h&&!v&&!p)return null;var m=T5e(f,d,h,v,this.props);if(!m&&!p)return null;var y=zs(this.props,"hidden")?"url(#".concat(u,")"):void 0;return ge.createElement(Pr,{className:Yt("recharts-reference-area",l)},t.renderRect(p,q8(q8({clipPath:y},Ot(this.props,!0)),m)),hi.renderCallByParent(this.props,m))}}])}(ge.Component);$b(Bb,"displayName","ReferenceArea");$b(Bb,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});$b(Bb,"renderRect",function(e,t){var r;return ge.isValidElement(e)?r=ge.cloneElement(e,t):Dt(e)?r=e(t):r=ge.createElement(EN,C4({},t,{className:"recharts-reference-area-rect"})),r});function o9(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 C5e(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return _we(n,r)}function O5e(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 Rx(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 k5e(e,t){return o9(e,t+1)}function j5e(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,u=o,f=function(){var v=n==null?void 0:n[l];if(v===void 0)return{v:o9(n,c)};var p=l,m,y=function(){return m===void 0&&(m=r(v,p)),m},x=v.coordinate,w=l===0||Rx(e,x,y,u,s);w||(l=0,u=o,c+=1),w&&(u=x+e*(y()/2+i),l+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}function vg(e){"@babel/helpers - typeof";return vg=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},vg(e)}function K8(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 Gi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K8(Object(r),!0).forEach(function(n){L5e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L5e(e,t,r){return t=I5e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I5e(e){var t=D5e(e,"string");return vg(t)=="symbol"?t:t+""}function D5e(e,t){if(vg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function R5e(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,c=function(d){var h=a[d],v,p=function(){return v===void 0&&(v=r(h,d)),v};if(d===o-1){var m=e*(h.coordinate+e*p()/2-l);a[d]=h=Gi(Gi({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate})}else a[d]=h=Gi(Gi({},h),{},{tickCoord:h.coordinate});var y=Rx(e,h.tickCoord,p,s,l);y&&(l=h.tickCoord-e*(p()/2+i),a[d]=Gi(Gi({},h),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}function M5e(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(a){var u=n[s-1],f=r(u,s-1),d=e*(u.coordinate+e*f/2-c);o[s-1]=u=Gi(Gi({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate});var h=Rx(e,u.tickCoord,function(){return f},l,c);h&&(c=u.tickCoord-e*(f/2+i),o[s-1]=Gi(Gi({},u),{},{isShow:!0}))}for(var v=a?s-1:s,p=function(x){var w=o[x],S,A=function(){return S===void 0&&(S=r(w,x)),S};if(x===0){var N=e*(w.coordinate-e*A()/2-l);o[x]=w=Gi(Gi({},w),{},{tickCoord:N<0?w.coordinate-N*e:w.coordinate})}else o[x]=w=Gi(Gi({},w),{},{tickCoord:w.coordinate});var P=Rx(e,w.tickCoord,A,l,c);P&&(l=w.tickCoord+e*(A()/2+i),o[x]=Gi(Gi({},w),{},{isShow:!0}))},m=0;m<v;m++)p(m);return o}function IN(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(Ye(l)||Ap.isSsr)return k5e(i,typeof l=="number"&&Ye(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",v=u&&h==="width"?em(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(w,S){var A=Dt(c)?c(w.value,S):w.value;return h==="width"?C5e(em(A,{fontSize:t,letterSpacing:r}),v,f):em(A,{fontSize:t,letterSpacing:r})[h]},m=i.length>=2?ua(i[1].coordinate-i[0].coordinate):1,y=O5e(a,m,h);return l==="equidistantPreserveStart"?j5e(m,y,p,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=M5e(m,y,p,i,o,l==="preserveStartEnd"):d=R5e(m,y,p,i,o),d.filter(function(x){return x.isShow}))}var F5e=["viewBox"],$5e=["viewBox"],B5e=["ticks"];function Zh(e){"@babel/helpers - typeof";return Zh=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},Zh(e)}function Gd(){return Gd=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},Gd.apply(this,arguments)}function X8(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 ti(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?X8(Object(r),!0).forEach(function(n){DN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):X8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iS(e,t){if(e==null)return{};var r=U5e(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 U5e(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 W5e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y8(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,l9(n.key),n)}}function z5e(e,t,r){return t&&Y8(e.prototype,t),r&&Y8(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function H5e(e,t,r){return t=Mx(t),V5e(e,s9()?Reflect.construct(t,r||[],Mx(e).constructor):t.apply(e,r))}function V5e(e,t){if(t&&(Zh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G5e(e)}function G5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s9=function(){return!!e})()}function Mx(e){return Mx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Mx(e)}function q5e(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&&k4(e,t)}function k4(e,t){return k4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},k4(e,t)}function DN(e,t,r){return t=l9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l9(e){var t=K5e(e,"string");return Zh(t)=="symbol"?t:t+""}function K5e(e,t){if(Zh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tp=function(e){function t(r){var n;return W5e(this,t),n=H5e(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return q5e(t,e),z5e(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=iS(n,F5e),s=this.props,l=s.viewBox,c=iS(s,$5e);return!nh(a,l)||!nh(o,c)||!nh(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,c=i.orientation,u=i.tickSize,f=i.mirror,d=i.tickMargin,h,v,p,m,y,x,w=f?-1:1,S=n.tickSize||u,A=Ye(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=v=n.coordinate,m=o+ +!f*l,p=m-w*S,x=p-w*d,y=A;break;case"left":p=m=n.coordinate,v=a+ +!f*s,h=v-w*S,y=h-w*d,x=A;break;case"right":p=m=n.coordinate,v=a+ +f*s,h=v+w*S,y=h+w*d,x=A;break;default:h=v=n.coordinate,m=o+ +f*l,p=m+w*S,x=p+w*d,y=A;break}return{line:{x1:h,y1:p,x2:v,y2:m},tick:{x:y,y:x}}}},{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,c=n.mirror,u=n.axisLine,f=ti(ti(ti({},Ot(this.props,!1)),Ot(u,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!c||l==="bottom"&&c);f=ti(ti({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(l==="left"&&!c||l==="right"&&c);f=ti(ti({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return ge.createElement("line",Gd({},f,{className:Yt("recharts-cartesian-axis-line",eo(u,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,c=s.stroke,u=s.tick,f=s.tickFormatter,d=s.unit,h=IN(ti(ti({},this.props),{},{ticks:n}),i,a),v=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),m=Ot(this.props,!1),y=Ot(u,!1),x=ti(ti({},m),{},{fill:"none"},Ot(l,!1)),w=h.map(function(S,A){var N=o.getTickLineCoord(S),P=N.line,j=N.tick,C=ti(ti(ti(ti({textAnchor:v,verticalAnchor:p},m),{},{stroke:"none",fill:c},y),j),{},{index:A,payload:S,visibleTicksCount:h.length,tickFormatter:f});return ge.createElement(Pr,Gd({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Af(o.props,S,A)),l&&ge.createElement("line",Gd({},x,P,{className:Yt("recharts-cartesian-axis-tick-line",eo(l,"className"))})),u&&t.renderTickItem(u,C,"".concat(Dt(f)?f(S.value,A):S.value).concat(d||"")))});return ge.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,c=i.className,u=i.hide;if(u)return null;var f=this.props,d=f.ticks,h=iS(f,B5e),v=d;return Dt(l)&&(v=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!v||!v.length?null:ge.createElement(Pr,{className:Yt("recharts-cartesian-axis",c),ref:function(m){n.layerReference=m}},a&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),hi.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Yt(i.className,"recharts-cartesian-axis-tick-value");return ge.isValidElement(n)?o=ge.cloneElement(n,ti(ti({},i),{},{className:s})):Dt(n)?o=n(ti(ti({},i),{},{className:s})):o=ge.createElement(Ef,Gd({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(E.Component);DN(Tp,"displayName","CartesianAxis");DN(Tp,"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 X5e=["x1","y1","x2","y2","key"],Y5e=["offset"];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 J8(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 Ki(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?J8(Object(r),!0).forEach(function(n){J5e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):J8(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J5e(e,t,r){return t=Z5e(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z5e(e){var t=Q5e(e,"string");return Pf(t)=="symbol"?t:t+""}function Q5e(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)}function cf(){return cf=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},cf.apply(this,arguments)}function Z8(e,t){if(e==null)return{};var r=eSe(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 eSe(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 tSe=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 ge.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function c9(e,t){var r;if(ge.isValidElement(e))r=ge.cloneElement(e,t);else if(Dt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=Z8(t,X5e),c=Ot(l,!1);c.offset;var u=Z8(c,Y5e);r=ge.createElement("line",cf({},u,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function rSe(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 c=Ki(Ki({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return c9(i,c)});return ge.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function nSe(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 c=Ki(Ki({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return c9(i,c)});return ge.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function iSe(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,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==u[0]&&u.unshift(0);var f=u.map(function(d,h){var v=!u[h+1],p=v?i+o-d:u[h+1]-d;if(p<=0)return null;var m=h%t.length;return ge.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return ge.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function aSe(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,c=e.verticalPoints;if(!r||!n||!n.length)return null;var u=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==u[0]&&u.unshift(0);var f=u.map(function(d,h){var v=!u[h+1],p=v?a+s-d:u[h+1]-d;if(p<=0)return null;var m=h%n.length;return ge.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:l,stroke:"none",fill:n[m],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return ge.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var oSe=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return aB(IN(Ki(Ki(Ki({},Tp.defaultProps),n),{},{ticks:Pl(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},sSe=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return aB(IN(Ki(Ki(Ki({},Tp.defaultProps),n),{},{ticks:Pl(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},vd={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function yg(e){var t,r,n,i,a,o,s=ON(),l=kN(),c=Kwe(),u=Ki(Ki({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:vd.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:vd.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:vd.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:vd.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:vd.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:vd.verticalFill,x:Ye(e.x)?e.x:c.left,y:Ye(e.y)?e.y:c.top,width:Ye(e.width)?e.width:c.width,height:Ye(e.height)?e.height:c.height}),f=u.x,d=u.y,h=u.width,v=u.height,p=u.syncWithTicks,m=u.horizontalValues,y=u.verticalValues,x=Vwe(),w=Gwe();if(!Ye(h)||h<=0||!Ye(v)||v<=0||!Ye(f)||f!==+f||!Ye(d)||d!==+d)return null;var S=u.verticalCoordinatesGenerator||oSe,A=u.horizontalCoordinatesGenerator||sSe,N=u.horizontalPoints,P=u.verticalPoints;if((!N||!N.length)&&Dt(A)){var j=m&&m.length,C=A({yAxis:w?Ki(Ki({},w),{},{ticks:j?m:w.ticks}):void 0,width:s,height:l,offset:c},j?!0:p);ds(Array.isArray(C),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Pf(C),"]")),Array.isArray(C)&&(N=C)}if((!P||!P.length)&&Dt(S)){var R=y&&y.length,L=S({xAxis:x?Ki(Ki({},x),{},{ticks:R?y:x.ticks}):void 0,width:s,height:l,offset:c},R?!0:p);ds(Array.isArray(L),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Pf(L),"]")),Array.isArray(L)&&(P=L)}return ge.createElement("g",{className:"recharts-cartesian-grid"},ge.createElement(tSe,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),ge.createElement(rSe,cf({},u,{offset:c,horizontalPoints:N,xAxis:x,yAxis:w})),ge.createElement(nSe,cf({},u,{offset:c,verticalPoints:P,xAxis:x,yAxis:w})),ge.createElement(iSe,cf({},u,{horizontalPoints:N})),ge.createElement(aSe,cf({},u,{verticalPoints:P})))}yg.displayName="CartesianGrid";function Qh(e){"@babel/helpers - typeof";return Qh=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},Qh(e)}function lSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cSe(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,d9(n.key),n)}}function uSe(e,t,r){return t&&cSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fSe(e,t,r){return t=Fx(t),dSe(e,u9()?Reflect.construct(t,r||[],Fx(e).constructor):t.apply(e,r))}function dSe(e,t){if(t&&(Qh(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hSe(e)}function hSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u9=function(){return!!e})()}function Fx(e){return Fx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fx(e)}function pSe(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&&j4(e,t)}function j4(e,t){return j4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},j4(e,t)}function f9(e,t,r){return t=d9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d9(e){var t=mSe(e,"string");return Qh(t)=="symbol"?t:t+""}function mSe(e,t){if(Qh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function L4(){return L4=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},L4.apply(this,arguments)}function gSe(e){var t=e.xAxisId,r=ON(),n=kN(),i=ZB(t);return i==null?null:E.createElement(Tp,L4({},i,{className:Yt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Pl(o,!0)}}))}var Tf=function(e){function t(){return lSe(this,t),fSe(this,t,arguments)}return pSe(t,e),uSe(t,[{key:"render",value:function(){return E.createElement(gSe,this.props)}}])}(E.Component);f9(Tf,"displayName","XAxis");f9(Tf,"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 ep(e){"@babel/helpers - typeof";return ep=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},ep(e)}function vSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ySe(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,m9(n.key),n)}}function xSe(e,t,r){return t&&ySe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bSe(e,t,r){return t=$x(t),wSe(e,h9()?Reflect.construct(t,r||[],$x(e).constructor):t.apply(e,r))}function wSe(e,t){if(t&&(ep(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SSe(e)}function SSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h9=function(){return!!e})()}function $x(e){return $x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$x(e)}function _Se(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&&I4(e,t)}function I4(e,t){return I4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},I4(e,t)}function p9(e,t,r){return t=m9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m9(e){var t=ASe(e,"string");return ep(t)=="symbol"?t:t+""}function ASe(e,t){if(ep(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ep(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function D4(){return D4=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},D4.apply(this,arguments)}var ESe=function(t){var r=t.yAxisId,n=ON(),i=kN(),a=QB(r);return a==null?null:E.createElement(Tp,D4({},a,{className:Yt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Pl(s,!0)}}))},Cf=function(e){function t(){return vSe(this,t),bSe(this,t,arguments)}return _Se(t,e),xSe(t,[{key:"render",value:function(){return E.createElement(ESe,this.props)}}])}(E.Component);p9(Cf,"displayName","YAxis");p9(Cf,"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 Q8(e){return CSe(e)||TSe(e)||PSe(e)||NSe()}function NSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PSe(e,t){if(e){if(typeof e=="string")return R4(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 R4(e,t)}}function TSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CSe(e){if(Array.isArray(e))return R4(e)}function R4(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 M4=function(t,r,n,i,a){var o=ko(t,LN),s=ko(t,Fb),l=[].concat(Q8(o),Q8(s)),c=ko(t,Bb),u="".concat(i,"Id"),f=i[0],d=r;if(l.length&&(d=l.reduce(function(p,m){if(m.props[u]===n&&zs(m.props,"extendDomain")&&Ye(m.props[f])){var y=m.props[f];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},d)),c.length){var h="".concat(f,"1"),v="".concat(f,"2");d=c.reduce(function(p,m){if(m.props[u]===n&&zs(m.props,"extendDomain")&&Ye(m.props[h])&&Ye(m.props[v])){var y=m.props[h],x=m.props[v];return[Math.min(p[0],y,x),Math.max(p[1],y,x)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,m){return Ye(m)?[Math.min(p[0],m),Math.max(p[1],m)]:p},d)),d},g9={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,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||l,d),v=r?r+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],h]:l._events[v].push(h):(l._events[v]=h,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,v=new Array(h);d<h;d++)v[d]=f[d].fn;return v},s.prototype.listenerCount=function(c){var u=r?r+c:c,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,u,f,d,h,v){var p=r?r+c:c;if(!this._events[p])return!1;var m=this._events[p],y=arguments.length,x,w;if(m.fn){switch(m.once&&this.removeListener(c,m.fn,void 0,!0),y){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,u),!0;case 3:return m.fn.call(m.context,u,f),!0;case 4:return m.fn.call(m.context,u,f,d),!0;case 5:return m.fn.call(m.context,u,f,d,h),!0;case 6:return m.fn.call(m.context,u,f,d,h,v),!0}for(w=1,x=new Array(y-1);w<y;w++)x[w-1]=arguments[w];m.fn.apply(m.context,x)}else{var S=m.length,A;for(w=0;w<S;w++)switch(m[w].once&&this.removeListener(c,m[w].fn,void 0,!0),y){case 1:m[w].fn.call(m[w].context);break;case 2:m[w].fn.call(m[w].context,u);break;case 3:m[w].fn.call(m[w].context,u,f);break;case 4:m[w].fn.call(m[w].context,u,f,d);break;default:if(!x)for(A=1,x=new Array(y-1);A<y;A++)x[A-1]=arguments[A];m[w].fn.apply(m[w].context,x)}}return!0},s.prototype.on=function(c,u,f){return a(this,c,u,f,!1)},s.prototype.once=function(c,u,f){return a(this,c,u,f,!0)},s.prototype.removeListener=function(c,u,f,d){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return o(this,h),this;var v=this._events[h];if(v.fn)v.fn===u&&(!d||v.once)&&(!f||v.context===f)&&o(this,h);else{for(var p=0,m=[],y=v.length;p<y;p++)(v[p].fn!==u||d&&!v[p].once||f&&v[p].context!==f)&&m.push(v[p]);m.length?this._events[h]=m.length===1?m[0]:m:o(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(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})(g9);var OSe=g9.exports;const kSe=gr(OSe);var aS=new kSe,oS="recharts.syncMouseEvents";function xg(e){"@babel/helpers - typeof";return xg=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},xg(e)}function jSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LSe(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,v9(n.key),n)}}function ISe(e,t,r){return t&&LSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sS(e,t,r){return t=v9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v9(e){var t=DSe(e,"string");return xg(t)=="symbol"?t:t+""}function DSe(e,t){if(xg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var RSe=function(){function e(){jSe(this,e),sS(this,"activeIndex",0),sS(this,"coordinateList",[]),sS(this,"layout","horizontal")}return ISe(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,c=l===void 0?null:l,u=r.offset,f=u===void 0?null:u,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??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,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,u=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+c,d=o+this.offset.top+s/2+u;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])}();function MSe(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&&Ye(n)&&Ye(i))return!0}return!1}function FSe(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 y9(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Xr(t,r,n,i),s=Xr(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function $Se(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,c=t.innerRadius,u=t.outerRadius,f=t.angle,d=Xr(s,l,c,f),h=Xr(s,l,u,f);n=d.x,i=d.y,a=h.x,o=h.y}else return y9(t);return[{x:n,y:i},{x:a,y:o}]}function bg(e){"@babel/helpers - typeof";return bg=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},bg(e)}function ej(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 vv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ej(Object(r),!0).forEach(function(n){BSe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ej(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BSe(e,t,r){return t=USe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function USe(e){var t=WSe(e,"string");return bg(t)=="symbol"?t:t+""}function WSe(e,t){if(bg(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bg(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zSe(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,c=e.activeTooltipIndex,u=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var v,p=o4;if(d==="ScatterChart")v=o,p=bxe;else if(d==="BarChart")v=FSe(f,o,l,u),p=EN;else if(f==="radial"){var m=y9(o),y=m.cx,x=m.cy,w=m.radius,S=m.startAngle,A=m.endAngle;v={cx:y,cy:x,startAngle:S,endAngle:A,innerRadius:w,outerRadius:w},p=gB}else v={points:$Se(f,o,l)},p=o4;var N=vv(vv(vv(vv({stroke:"#ccc",pointerEvents:"none"},l),v),Ot(h,!1)),{},{payload:s,payloadIndex:c,className:Yt("recharts-tooltip-cursor",h.className)});return E.isValidElement(h)?E.cloneElement(h,N):E.createElement(p,N)}var HSe=["item"],VSe=["children","className","width","height","style","compact","title","desc"];function tp(e){"@babel/helpers - typeof";return tp=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},tp(e)}function qd(){return qd=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},qd.apply(this,arguments)}function tj(e,t){return KSe(e)||qSe(e,t)||b9(e,t)||GSe()}function GSe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qSe(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function KSe(e){if(Array.isArray(e))return e}function rj(e,t){if(e==null)return{};var r=XSe(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 XSe(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 YSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JSe(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,w9(n.key),n)}}function ZSe(e,t,r){return t&&JSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QSe(e,t,r){return t=Bx(t),e_e(e,x9()?Reflect.construct(t,r||[],Bx(e).constructor):t.apply(e,r))}function e_e(e,t){if(t&&(tp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t_e(e)}function t_e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x9(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x9=function(){return!!e})()}function Bx(e){return Bx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bx(e)}function r_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&&F4(e,t)}function F4(e,t){return F4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},F4(e,t)}function rp(e){return a_e(e)||i_e(e)||b9(e)||n_e()}function n_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b9(e,t){if(e){if(typeof e=="string")return $4(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 $4(e,t)}}function i_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a_e(e){if(Array.isArray(e))return $4(e)}function $4(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 nj(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 Fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nj(Object(r),!0).forEach(function(n){Tt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nj(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tt(e,t,r){return t=w9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w9(e){var t=o_e(e,"string");return tp(t)=="symbol"?t:t+""}function o_e(e,t){if(tp(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tp(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var s_e={xAxis:["bottom","top"],yAxis:["left","right"]},l_e={width:"100%",height:"100%"},S9={x:0,y:0};function yv(e){return e}var c_e=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},u_e=function(t,r,n,i){var a=r.find(function(u){return u&&u.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 Fe(Fe(Fe({},i),Xr(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,c=i.angle;return Fe(Fe(Fe({},i),Xr(i.cx,i.cy,l,c)),{},{angle:c,radius:l})}return S9},Ub=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(rp(s),rp(c)):s},[]);return o.length>0?o:t&&t.length&&Ye(i)&&Ye(a)?t.slice(i,a+1):[]};function _9(e){return e==="number"?[0,"auto"]:void 0}var B4=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Ub(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,c){var u,f=(u=c.props.data)!==null&&u!==void 0?u: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 h=f===void 0?s:f;d=pA(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(rp(l),[uB(c,d)]):l},[])},ij=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=c_e(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=Bge(o,s,c,l);if(u>=0&&c){var f=c[u]&&c[u].value,d=B4(t,r,u,f),h=u_e(n,s,u,a);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},f_e=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,f=t.children,d=t.stackOffset,h=iB(u,a);return n.reduce(function(v,p){var m,y=p.type.defaultProps!==void 0?Fe(Fe({},p.type.defaultProps),p.props):p.props,x=y.type,w=y.dataKey,S=y.allowDataOverflow,A=y.allowDuplicatedCategory,N=y.scale,P=y.ticks,j=y.includeHidden,C=y[o];if(v[C])return v;var R=Ub(t.data,{graphicalItems:i.filter(function(O){var M,F=o in O.props?O.props[o]:(M=O.type.defaultProps)===null||M===void 0?void 0:M[o];return F===C}),dataStartIndex:l,dataEndIndex:c}),L=R.length,I,B,z;MSe(y.domain,S,x)&&(I=t4(y.domain,null,S),h&&(x==="number"||N!=="auto")&&(z=rm(R,w,"category")));var V=_9(x);if(!I||I.length===0){var Q,ae=(Q=y.domain)!==null&&Q!==void 0?Q:V;if(w){if(I=rm(R,w,x),x==="category"&&h){var K=Ore(I);A&&K?(B=I,I=Tx(0,L)):A||(I=j6(ae,I,p).reduce(function(O,M){return O.indexOf(M)>=0?O:[].concat(rp(O),[M])},[]))}else if(x==="category")A?I=I.filter(function(O){return O!==""&&!tr(O)}):I=j6(ae,I,p).reduce(function(O,M){return O.indexOf(M)>=0||M===""||tr(M)?O:[].concat(rp(O),[M])},[]);else if(x==="number"){var re=Vge(R,i.filter(function(O){var M,F,U=o in O.props?O.props[o]:(M=O.type.defaultProps)===null||M===void 0?void 0:M[o],Z="hide"in O.props?O.props.hide:(F=O.type.defaultProps)===null||F===void 0?void 0:F.hide;return U===C&&(j||!Z)}),w,a,u);re&&(I=re)}h&&(x==="number"||N!=="auto")&&(z=rm(R,w,"category"))}else h?I=Tx(0,L):s&&s[C]&&s[C].hasStack&&x==="number"?I=d==="expand"?[0,1]:cB(s[C].stackGroups,l,c):I=nB(R,i.filter(function(O){var M=o in O.props?O.props[o]:O.type.defaultProps[o],F="hide"in O.props?O.props.hide:O.type.defaultProps.hide;return M===C&&(j||!F)}),x,u,!0);if(x==="number")I=M4(f,I,C,a,P),ae&&(I=t4(ae,I,S));else if(x==="category"&&ae){var ye=ae,xe=I.every(function(O){return ye.indexOf(O)>=0});xe&&(I=ye)}}return Fe(Fe({},v),{},Tt({},C,Fe(Fe({},y),{},{axisType:a,domain:I,categoricalDomain:z,duplicateDomain:B,originalDomain:(m=y.domain)!==null&&m!==void 0?m:V,isCategorical:h,layout:u})))},{})},d_e=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,f=t.children,d=Ub(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),h=d.length,v=iB(u,a),p=-1;return n.reduce(function(m,y){var x=y.type.defaultProps!==void 0?Fe(Fe({},y.type.defaultProps),y.props):y.props,w=x[o],S=_9("number");if(!m[w]){p++;var A;return v?A=Tx(0,h):s&&s[w]&&s[w].hasStack?(A=cB(s[w].stackGroups,l,c),A=M4(f,A,w,a)):(A=t4(S,nB(d,n.filter(function(N){var P,j,C=o in N.props?N.props[o]:(P=N.type.defaultProps)===null||P===void 0?void 0:P[o],R="hide"in N.props?N.props.hide:(j=N.type.defaultProps)===null||j===void 0?void 0:j.hide;return C===w&&!R}),"number",u),i.defaultProps.allowDataOverflow),A=M4(f,A,w,a)),Fe(Fe({},m),{},Tt({},w,Fe(Fe({axisType:a},i.defaultProps),{},{hide:!0,orientation:eo(s_e,"".concat(a,".").concat(p%2),null),domain:A,originalDomain:S,isCategorical:v,layout:u})))}return m},{})},h_e=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,c=r.dataEndIndex,u=t.children,f="".concat(i,"Id"),d=ko(u,a),h={};return d&&d.length?h=f_e(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(h=d_e(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),h},p_e=function(t){var r=Ic(t),n=Pl(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:ZE(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:mx(r,n)}},aj=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ha(r,qh),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}},m_e=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ol(r&&r.type);return n&&n.indexOf("Bar")>=0})},oj=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"}},g_e=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,c=n.width,u=n.height,f=n.children,d=n.margin||{},h=Ha(f,qh),v=Ha(f,Zc),p=Object.keys(l).reduce(function(A,N){var P=l[N],j=P.orientation;return!P.mirror&&!P.hide?Fe(Fe({},A),{},Tt({},j,A[j]+P.width)):A},{left:d.left||0,right:d.right||0}),m=Object.keys(o).reduce(function(A,N){var P=o[N],j=P.orientation;return!P.mirror&&!P.hide?Fe(Fe({},A),{},Tt({},j,eo(A,"".concat(j))+P.height)):A},{top:d.top||0,bottom:d.bottom||0}),y=Fe(Fe({},m),p),x=y.bottom;h&&(y.bottom+=h.props.height||qh.defaultProps.height),v&&r&&(y=zge(y,i,n,r));var w=c-y.left-y.right,S=u-y.top-y.bottom;return Fe(Fe({brushBottom:x},y),{},{width:Math.max(w,0),height:Math.max(S,0)})},v_e=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},A9=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,c=t.legendContent,u=t.formatAxisMap,f=t.defaultProps,d=function(y,x){var w=x.graphicalItems,S=x.stackGroups,A=x.offset,N=x.updateId,P=x.dataStartIndex,j=x.dataEndIndex,C=y.barSize,R=y.layout,L=y.barGap,I=y.barCategoryGap,B=y.maxBarSize,z=oj(R),V=z.numericAxisName,Q=z.cateAxisName,ae=m_e(w),K=[];return w.forEach(function(re,ye){var xe=Ub(y.data,{graphicalItems:[re],dataStartIndex:P,dataEndIndex:j}),O=re.type.defaultProps!==void 0?Fe(Fe({},re.type.defaultProps),re.props):re.props,M=O.dataKey,F=O.maxBarSize,U=O["".concat(V,"Id")],Z=O["".concat(Q,"Id")],se={},ve=l.reduce(function(tt,dt){var pt=x["".concat(dt.axisType,"Map")],Ft=O["".concat(dt.axisType,"Id")];pt&&pt[Ft]||dt.axisType==="zAxis"||su();var $t=pt[Ft];return Fe(Fe({},tt),{},Tt(Tt({},dt.axisType,$t),"".concat(dt.axisType,"Ticks"),Pl($t)))},se),oe=ve[Q],pe=ve["".concat(Q,"Ticks")],Se=S&&S[U]&&S[U].hasStack&&e1e(re,S[U].stackGroups),me=Ol(re.type).indexOf("Bar")>=0,Le=mx(oe,pe),ie=[],Y=ae&&Uge({barSize:C,stackGroups:S,totalSize:v_e(ve,Q)});if(me){var Ie,De,nt=tr(F)?B:F,$e=(Ie=(De=mx(oe,pe,!0))!==null&&De!==void 0?De:nt)!==null&&Ie!==void 0?Ie:0;ie=Wge({barGap:L,barCategoryGap:I,bandSize:$e!==Le?$e:Le,sizeList:Y[Z],maxBarSize:nt}),$e!==Le&&(ie=ie.map(function(tt){return Fe(Fe({},tt),{},{position:Fe(Fe({},tt.position),{},{offset:tt.position.offset-$e/2})})}))}var ot=re&&re.type&&re.type.getComposedData;ot&&K.push({props:Fe(Fe({},ot(Fe(Fe({},ve),{},{displayedData:xe,props:y,dataKey:M,item:re,bandSize:Le,barPosition:ie,offset:A,stackedData:Se,layout:R,dataStartIndex:P,dataEndIndex:j}))),{},Tt(Tt(Tt({key:re.key||"item-".concat(ye)},V,ve[V]),Q,ve[Q]),"animationId",N)),childIndex:Wre(re,y.children),item:re})}),K},h=function(y,x){var w=y.props,S=y.dataStartIndex,A=y.dataEndIndex,N=y.updateId;if(!NO({props:w}))return null;var P=w.children,j=w.layout,C=w.stackOffset,R=w.data,L=w.reverseStackOrder,I=oj(j),B=I.numericAxisName,z=I.cateAxisName,V=ko(P,n),Q=Zge(R,V,"".concat(B,"Id"),"".concat(z,"Id"),C,L),ae=l.reduce(function(O,M){var F="".concat(M.axisType,"Map");return Fe(Fe({},O),{},Tt({},F,h_e(w,Fe(Fe({},M),{},{graphicalItems:V,stackGroups:M.axisType===B&&Q,dataStartIndex:S,dataEndIndex:A}))))},{}),K=g_e(Fe(Fe({},ae),{},{props:w,graphicalItems:V}),x==null?void 0:x.legendBBox);Object.keys(ae).forEach(function(O){ae[O]=u(w,ae[O],K,O.replace("Map",""),r)});var re=ae["".concat(z,"Map")],ye=p_e(re),xe=d(w,Fe(Fe({},ae),{},{dataStartIndex:S,dataEndIndex:A,updateId:N,graphicalItems:V,stackGroups:Q,offset:K}));return Fe(Fe({formattedGraphicalItems:xe,graphicalItems:V,offset:K,stackGroups:Q},ye),ae)},v=function(m){function y(x){var w,S,A;return YSe(this,y),A=QSe(this,y,[x]),Tt(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Tt(A,"accessibilityManager",new RSe),Tt(A,"handleLegendBBoxUpdate",function(N){if(N){var P=A.state,j=P.dataStartIndex,C=P.dataEndIndex,R=P.updateId;A.setState(Fe({legendBBox:N},h({props:A.props,dataStartIndex:j,dataEndIndex:C,updateId:R},Fe(Fe({},A.state),{},{legendBBox:N}))))}}),Tt(A,"handleReceiveSyncEvent",function(N,P,j){if(A.props.syncId===N){if(j===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(P)}}),Tt(A,"handleBrushChange",function(N){var P=N.startIndex,j=N.endIndex;if(P!==A.state.dataStartIndex||j!==A.state.dataEndIndex){var C=A.state.updateId;A.setState(function(){return Fe({dataStartIndex:P,dataEndIndex:j},h({props:A.props,dataStartIndex:P,dataEndIndex:j,updateId:C},A.state))}),A.triggerSyncEvent({dataStartIndex:P,dataEndIndex:j})}}),Tt(A,"handleMouseEnter",function(N){var P=A.getMouseInfo(N);if(P){var j=Fe(Fe({},P),{},{isTooltipActive:!0});A.setState(j),A.triggerSyncEvent(j);var C=A.props.onMouseEnter;Dt(C)&&C(j,N)}}),Tt(A,"triggeredAfterMouseMove",function(N){var P=A.getMouseInfo(N),j=P?Fe(Fe({},P),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(j),A.triggerSyncEvent(j);var C=A.props.onMouseMove;Dt(C)&&C(j,N)}),Tt(A,"handleItemMouseEnter",function(N){A.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),Tt(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),Tt(A,"handleMouseMove",function(N){N.persist(),A.throttleTriggeredAfterMouseMove(N)}),Tt(A,"handleMouseLeave",function(N){A.throttleTriggeredAfterMouseMove.cancel();var P={isTooltipActive:!1};A.setState(P),A.triggerSyncEvent(P);var j=A.props.onMouseLeave;Dt(j)&&j(P,N)}),Tt(A,"handleOuterEvent",function(N){var P=Ure(N),j=eo(A.props,"".concat(P));if(P&&Dt(j)){var C,R;/.*touch.*/i.test(P)?R=A.getMouseInfo(N.changedTouches[0]):R=A.getMouseInfo(N),j((C=R)!==null&&C!==void 0?C:{},N)}}),Tt(A,"handleClick",function(N){var P=A.getMouseInfo(N);if(P){var j=Fe(Fe({},P),{},{isTooltipActive:!0});A.setState(j),A.triggerSyncEvent(j);var C=A.props.onClick;Dt(C)&&C(j,N)}}),Tt(A,"handleMouseDown",function(N){var P=A.props.onMouseDown;if(Dt(P)){var j=A.getMouseInfo(N);P(j,N)}}),Tt(A,"handleMouseUp",function(N){var P=A.props.onMouseUp;if(Dt(P)){var j=A.getMouseInfo(N);P(j,N)}}),Tt(A,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),Tt(A,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&A.handleMouseDown(N.changedTouches[0])}),Tt(A,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&A.handleMouseUp(N.changedTouches[0])}),Tt(A,"handleDoubleClick",function(N){var P=A.props.onDoubleClick;if(Dt(P)){var j=A.getMouseInfo(N);P(j,N)}}),Tt(A,"handleContextMenu",function(N){var P=A.props.onContextMenu;if(Dt(P)){var j=A.getMouseInfo(N);P(j,N)}}),Tt(A,"triggerSyncEvent",function(N){A.props.syncId!==void 0&&aS.emit(oS,A.props.syncId,N,A.eventEmitterSymbol)}),Tt(A,"applySyncEvent",function(N){var P=A.props,j=P.layout,C=P.syncMethod,R=A.state.updateId,L=N.dataStartIndex,I=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)A.setState(Fe({dataStartIndex:L,dataEndIndex:I},h({props:A.props,dataStartIndex:L,dataEndIndex:I,updateId:R},A.state)));else if(N.activeTooltipIndex!==void 0){var B=N.chartX,z=N.chartY,V=N.activeTooltipIndex,Q=A.state,ae=Q.offset,K=Q.tooltipTicks;if(!ae)return;if(typeof C=="function")V=C(K,N);else if(C==="value"){V=-1;for(var re=0;re<K.length;re++)if(K[re].value===N.activeLabel){V=re;break}}var ye=Fe(Fe({},ae),{},{x:ae.left,y:ae.top}),xe=Math.min(B,ye.x+ye.width),O=Math.min(z,ye.y+ye.height),M=K[V]&&K[V].value,F=B4(A.state,A.props.data,V),U=K[V]?{x:j==="horizontal"?K[V].coordinate:xe,y:j==="horizontal"?O:K[V].coordinate}:S9;A.setState(Fe(Fe({},N),{},{activeLabel:M,activeCoordinate:U,activePayload:F,activeTooltipIndex:V}))}else A.setState(N)}),Tt(A,"renderCursor",function(N){var P,j=A.state,C=j.isTooltipActive,R=j.activeCoordinate,L=j.activePayload,I=j.offset,B=j.activeTooltipIndex,z=j.tooltipAxisBandSize,V=A.getTooltipEventType(),Q=(P=N.props.active)!==null&&P!==void 0?P:C,ae=A.props.layout,K=N.key||"_recharts-cursor";return ge.createElement(zSe,{key:K,activeCoordinate:R,activePayload:L,activeTooltipIndex:B,chartName:r,element:N,isActive:Q,layout:ae,offset:I,tooltipAxisBandSize:z,tooltipEventType:V})}),Tt(A,"renderPolarAxis",function(N,P,j){var C=eo(N,"type.axisType"),R=eo(A.state,"".concat(C,"Map")),L=N.type.defaultProps,I=L!==void 0?Fe(Fe({},L),N.props):N.props,B=R&&R[I["".concat(C,"Id")]];return E.cloneElement(N,Fe(Fe({},B),{},{className:Yt(C,B.className),key:N.key||"".concat(P,"-").concat(j),ticks:Pl(B,!0)}))}),Tt(A,"renderPolarGrid",function(N){var P=N.props,j=P.radialLines,C=P.polarAngles,R=P.polarRadius,L=A.state,I=L.radiusAxisMap,B=L.angleAxisMap,z=Ic(I),V=Ic(B),Q=V.cx,ae=V.cy,K=V.innerRadius,re=V.outerRadius;return E.cloneElement(N,{polarAngles:Array.isArray(C)?C:Pl(V,!0).map(function(ye){return ye.coordinate}),polarRadius:Array.isArray(R)?R:Pl(z,!0).map(function(ye){return ye.coordinate}),cx:Q,cy:ae,innerRadius:K,outerRadius:re,key:N.key||"polar-grid",radialLines:j})}),Tt(A,"renderLegend",function(){var N=A.state.formattedGraphicalItems,P=A.props,j=P.children,C=P.width,R=P.height,L=A.props.margin||{},I=C-(L.left||0)-(L.right||0),B=tB({children:j,formattedGraphicalItems:N,legendWidth:I,legendContent:c});if(!B)return null;var z=B.item,V=rj(B,HSe);return E.cloneElement(z,Fe(Fe({},V),{},{chartWidth:C,chartHeight:R,margin:L,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),Tt(A,"renderTooltip",function(){var N,P=A.props,j=P.children,C=P.accessibilityLayer,R=Ha(j,ca);if(!R)return null;var L=A.state,I=L.isTooltipActive,B=L.activeCoordinate,z=L.activePayload,V=L.activeLabel,Q=L.offset,ae=(N=R.props.active)!==null&&N!==void 0?N:I;return E.cloneElement(R,{viewBox:Fe(Fe({},Q),{},{x:Q.left,y:Q.top}),active:ae,label:V,payload:ae?z:[],coordinate:B,accessibilityLayer:C})}),Tt(A,"renderBrush",function(N){var P=A.props,j=P.margin,C=P.data,R=A.state,L=R.offset,I=R.dataStartIndex,B=R.dataEndIndex,z=R.updateId;return E.cloneElement(N,{key:N.key||"_recharts-brush",onChange:hv(A.handleBrushChange,N.props.onChange),data:C,x:Ye(N.props.x)?N.props.x:L.left,y:Ye(N.props.y)?N.props.y:L.top+L.height+L.brushBottom-(j.bottom||0),width:Ye(N.props.width)?N.props.width:L.width,startIndex:I,endIndex:B,updateId:"brush-".concat(z)})}),Tt(A,"renderReferenceElement",function(N,P,j){if(!N)return null;var C=A,R=C.clipPathId,L=A.state,I=L.xAxisMap,B=L.yAxisMap,z=L.offset,V=N.type.defaultProps||{},Q=N.props,ae=Q.xAxisId,K=ae===void 0?V.xAxisId:ae,re=Q.yAxisId,ye=re===void 0?V.yAxisId:re;return E.cloneElement(N,{key:N.key||"".concat(P,"-").concat(j),xAxis:I[K],yAxis:B[ye],viewBox:{x:z.left,y:z.top,width:z.width,height:z.height},clipPathId:R})}),Tt(A,"renderActivePoints",function(N){var P=N.item,j=N.activePoint,C=N.basePoint,R=N.childIndex,L=N.isRange,I=[],B=P.props.key,z=P.item.type.defaultProps!==void 0?Fe(Fe({},P.item.type.defaultProps),P.item.props):P.item.props,V=z.activeDot,Q=z.dataKey,ae=Fe(Fe({index:R,dataKey:Q,cx:j.x,cy:j.y,r:4,fill:AN(P.item),strokeWidth:2,stroke:"#fff",payload:j.payload,value:j.value},Ot(V,!1)),Uy(V));return I.push(y.renderActiveDot(V,ae,"".concat(B,"-activePoint-").concat(R))),C?I.push(y.renderActiveDot(V,Fe(Fe({},ae),{},{cx:C.x,cy:C.y}),"".concat(B,"-basePoint-").concat(R))):L&&I.push(null),I}),Tt(A,"renderGraphicChild",function(N,P,j){var C=A.filterFormatItem(N,P,j);if(!C)return null;var R=A.getTooltipEventType(),L=A.state,I=L.isTooltipActive,B=L.tooltipAxis,z=L.activeTooltipIndex,V=L.activeLabel,Q=A.props.children,ae=Ha(Q,ca),K=C.props,re=K.points,ye=K.isRange,xe=K.baseLine,O=C.item.type.defaultProps!==void 0?Fe(Fe({},C.item.type.defaultProps),C.item.props):C.item.props,M=O.activeDot,F=O.hide,U=O.activeBar,Z=O.activeShape,se=!!(!F&&I&&ae&&(M||U||Z)),ve={};R!=="axis"&&ae&&ae.props.trigger==="click"?ve={onClick:hv(A.handleItemMouseEnter,N.props.onClick)}:R!=="axis"&&(ve={onMouseLeave:hv(A.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:hv(A.handleItemMouseEnter,N.props.onMouseEnter)});var oe=E.cloneElement(N,Fe(Fe({},C.props),ve));function pe(dt){return typeof B.dataKey=="function"?B.dataKey(dt.payload):null}if(se)if(z>=0){var Se,me;if(B.dataKey&&!B.allowDuplicatedCategory){var Le=typeof B.dataKey=="function"?pe:"payload.".concat(B.dataKey.toString());Se=pA(re,Le,V),me=ye&&xe&&pA(xe,Le,V)}else Se=re==null?void 0:re[z],me=ye&&xe&&xe[z];if(Z||U){var ie=N.props.activeIndex!==void 0?N.props.activeIndex:z;return[E.cloneElement(N,Fe(Fe(Fe({},C.props),ve),{},{activeIndex:ie})),null,null]}if(!tr(Se))return[oe].concat(rp(A.renderActivePoints({item:C,activePoint:Se,basePoint:me,childIndex:z,isRange:ye})))}else{var Y,Ie=(Y=A.getItemByXY(A.state.activeCoordinate))!==null&&Y!==void 0?Y:{graphicalItem:oe},De=Ie.graphicalItem,nt=De.item,$e=nt===void 0?N:nt,ot=De.childIndex,tt=Fe(Fe(Fe({},C.props),ve),{},{activeIndex:ot});return[E.cloneElement($e,tt),null,null]}return ye?[oe,null,null]:[oe,null]}),Tt(A,"renderCustomized",function(N,P,j){return E.cloneElement(N,Fe(Fe({key:"recharts-customized-".concat(j)},A.props),A.state))}),Tt(A,"renderMap",{CartesianGrid:{handler:yv,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:yv},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:yv},YAxis:{handler:yv},Brush:{handler:A.renderBrush,once:!0},Bar:{handler:A.renderGraphicChild},Line:{handler:A.renderGraphicChild},Area:{handler:A.renderGraphicChild},Radar:{handler:A.renderGraphicChild},RadialBar:{handler:A.renderGraphicChild},Scatter:{handler:A.renderGraphicChild},Pie:{handler:A.renderGraphicChild},Funnel:{handler:A.renderGraphicChild},Tooltip:{handler:A.renderCursor,once:!0},PolarGrid:{handler:A.renderPolarGrid,once:!0},PolarAngleAxis:{handler:A.renderPolarAxis},PolarRadiusAxis:{handler:A.renderPolarAxis},Customized:{handler:A.renderCustomized}}),A.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:Gg("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=t$(A.triggeredAfterMouseMove,(S=x.throttleDelay)!==null&&S!==void 0?S:1e3/60),A.state={},A}return r_e(y,m),ZSe(y,[{key:"componentDidMount",value:function(){var w,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w: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 w=this.props,S=w.children,A=w.data,N=w.height,P=w.layout,j=Ha(S,ca);if(j){var C=j.props.defaultIndex;if(!(typeof C!="number"||C<0||C>this.state.tooltipTicks.length-1)){var R=this.state.tooltipTicks[C]&&this.state.tooltipTicks[C].value,L=B4(this.state,A,C,R),I=this.state.tooltipTicks[C].coordinate,B=(this.state.offset.top+N)/2,z=P==="horizontal",V=z?{x:I,y:B}:{y:I,x:B},Q=this.state.formattedGraphicalItems.find(function(K){var re=K.item;return re.type.name==="Scatter"});Q&&(V=Fe(Fe({},V),Q.props.points[C].tooltipPosition),L=Q.props.points[C].tooltipPayload);var ae={activeTooltipIndex:C,isTooltipActive:!0,activeLabel:R,activePayload:L,activeCoordinate:V};this.setState(ae),this.renderCursor(j),this.accessibilityManager.setIndex(C)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var A,N;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(w){gA([Ha(w.children,ca)],[Ha(this.props.children,ca)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ha(this.props.children,ca);if(w&&typeof w.props.shared=="boolean"){var S=w.props.shared?"axis":"item";return s.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var S=this.container,A=S.getBoundingClientRect(),N=phe(A),P={chartX:Math.round(w.pageX-N.left),chartY:Math.round(w.pageY-N.top)},j=A.width/S.offsetWidth||1,C=this.inRange(P.chartX,P.chartY,j);if(!C)return null;var R=this.state,L=R.xAxisMap,I=R.yAxisMap,B=this.getTooltipEventType(),z=ij(this.state,this.props.data,this.props.layout,C);if(B!=="axis"&&L&&I){var V=Ic(L).scale,Q=Ic(I).scale,ae=V&&V.invert?V.invert(P.chartX):null,K=Q&&Q.invert?Q.invert(P.chartY):null;return Fe(Fe({},P),{},{xValue:ae,yValue:K},z)}return z?Fe(Fe({},P),z):null}},{key:"inRange",value:function(w,S){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,P=w/A,j=S/A;if(N==="horizontal"||N==="vertical"){var C=this.state.offset,R=P>=C.left&&P<=C.left+C.width&&j>=C.top&&j<=C.top+C.height;return R?{x:P,y:j}:null}var L=this.state,I=L.angleAxisMap,B=L.radiusAxisMap;if(I&&B){var z=Ic(I);return D6({x:P,y:j},z)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,S=this.getTooltipEventType(),A=Ha(w,ca),N={};A&&S==="axis"&&(A.props.trigger==="click"?N={onClick:this.handleClick}:N={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 P=Uy(this.props,this.handleOuterEvent);return Fe(Fe({},P),N)}},{key:"addListener",value:function(){aS.on(oS,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){aS.removeListener(oS,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,S,A){for(var N=this.state.formattedGraphicalItems,P=0,j=N.length;P<j;P++){var C=N[P];if(C.item===w||C.props.key===w.key||S===Ol(C.item.type)&&A===C.childIndex)return C}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,S=this.state.offset,A=S.left,N=S.top,P=S.height,j=S.width;return ge.createElement("defs",null,ge.createElement("clipPath",{id:w},ge.createElement("rect",{x:A,y:N,height:P,width:j})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(S,A){var N=tj(A,2),P=N[0],j=N[1];return Fe(Fe({},S),{},Tt({},P,j.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(S,A){var N=tj(A,2),P=N[0],j=N[1];return Fe(Fe({},S),{},Tt({},P,j.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(w){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[w])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(w){var S=this.state,A=S.formattedGraphicalItems,N=S.activeItem;if(A&&A.length)for(var P=0,j=A.length;P<j;P++){var C=A[P],R=C.props,L=C.item,I=L.type.defaultProps!==void 0?Fe(Fe({},L.type.defaultProps),L.props):L.props,B=Ol(L.type);if(B==="Bar"){var z=(R.data||[]).find(function(K){return exe(w,K)});if(z)return{graphicalItem:C,payload:z}}else if(B==="RadialBar"){var V=(R.data||[]).find(function(K){return D6(w,K)});if(V)return{graphicalItem:C,payload:V}}else if(Ib(C,N)||Db(C,N)||hg(C,N)){var Q=W2e({graphicalItem:C,activeTooltipItem:N,itemData:I.data}),ae=I.activeIndex===void 0?Q:I.activeIndex;return{graphicalItem:Fe(Fe({},C),{},{childIndex:ae}),payload:hg(C,N)?I.data[Q]:C.props.data[Q]}}}return null}},{key:"render",value:function(){var w=this;if(!NO(this))return null;var S=this.props,A=S.children,N=S.className,P=S.width,j=S.height,C=S.style,R=S.compact,L=S.title,I=S.desc,B=rj(S,VSe),z=Ot(B,!1);if(R)return ge.createElement(B8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ge.createElement(yA,qd({},z,{width:P,height:j,title:L,desc:I}),this.renderClipPath(),TO(A,this.renderMap)));if(this.props.accessibilityLayer){var V,Q;z.tabIndex=(V=this.props.tabIndex)!==null&&V!==void 0?V:0,z.role=(Q=this.props.role)!==null&&Q!==void 0?Q:"application",z.onKeyDown=function(K){w.accessibilityManager.keyboardEvent(K)},z.onFocus=function(){w.accessibilityManager.focus()}}var ae=this.parseEventsOfWrapper();return ge.createElement(B8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},ge.createElement("div",qd({className:Yt("recharts-wrapper",N),style:Fe({position:"relative",cursor:"default",width:P,height:j},C)},ae,{ref:function(re){w.container=re}}),ge.createElement(yA,qd({},z,{width:P,height:j,title:L,desc:I,style:l_e}),this.renderClipPath(),TO(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(E.Component);Tt(v,"displayName",r),Tt(v,"defaultProps",Fe({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Tt(v,"getDerivedStateFromProps",function(m,y){var x=m.dataKey,w=m.data,S=m.children,A=m.width,N=m.height,P=m.layout,j=m.stackOffset,C=m.margin,R=y.dataStartIndex,L=y.dataEndIndex;if(y.updateId===void 0){var I=aj(m);return Fe(Fe(Fe({},I),{},{updateId:0},h(Fe(Fe({props:m},I),{},{updateId:0}),y)),{},{prevDataKey:x,prevData:w,prevWidth:A,prevHeight:N,prevLayout:P,prevStackOffset:j,prevMargin:C,prevChildren:S})}if(x!==y.prevDataKey||w!==y.prevData||A!==y.prevWidth||N!==y.prevHeight||P!==y.prevLayout||j!==y.prevStackOffset||!nh(C,y.prevMargin)){var B=aj(m),z={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},V=Fe(Fe({},ij(y,w,P)),{},{updateId:y.updateId+1}),Q=Fe(Fe(Fe({},B),z),V);return Fe(Fe(Fe({},Q),h(Fe({props:m},Q),y)),{},{prevDataKey:x,prevData:w,prevWidth:A,prevHeight:N,prevLayout:P,prevStackOffset:j,prevMargin:C,prevChildren:S})}if(!gA(S,y.prevChildren)){var ae,K,re,ye,xe=Ha(S,qh),O=xe&&(ae=(K=xe.props)===null||K===void 0?void 0:K.startIndex)!==null&&ae!==void 0?ae:R,M=xe&&(re=(ye=xe.props)===null||ye===void 0?void 0:ye.endIndex)!==null&&re!==void 0?re:L,F=O!==R||M!==L,U=!tr(w),Z=U&&!F?y.updateId:y.updateId+1;return Fe(Fe({updateId:Z},h(Fe(Fe({props:m},y),{},{updateId:Z,dataStartIndex:O,dataEndIndex:M}),y)),{},{prevChildren:S,dataStartIndex:O,dataEndIndex:M})}return null}),Tt(v,"renderActiveDot",function(m,y,x){var w;return E.isValidElement(m)?w=E.cloneElement(m,y):Dt(m)?w=m(y):w=ge.createElement(NN,y),ge.createElement(Pr,{className:"recharts-active-dot",key:x},w)});var p=E.forwardRef(function(y,x){return ge.createElement(v,qd({},y,{ref:x}))});return p.displayName=v.displayName,p},Ux=A9({chartName:"BarChart",GraphicalChild:Gs,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Tf},{axisType:"yAxis",AxisComp:Cf}],formatAxisMap:bwe}),E9=A9({chartName:"PieChart",GraphicalChild:Ys,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Lb},{axisType:"radiusAxis",AxisComp:kb}],formatAxisMap:u1e,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const An=E.forwardRef(({className:e,hover:t=!1,...r},n)=>g.jsx("div",{ref:n,className:Yr("rounded-2xl border border-border bg-card text-foreground shadow-card transition-all duration-200",t&&"hover:border-border-light hover:shadow-card-hover cursor-pointer",e),...r}));An.displayName="Card";const y_e=E.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:Yr("flex flex-col space-y-1.5 p-6",e),...t}));y_e.displayName="CardHeader";const x_e=E.forwardRef(({className:e,...t},r)=>g.jsx("h3",{ref:r,className:Yr("text-lg font-semibold leading-none tracking-tight text-foreground",e),...t}));x_e.displayName="CardTitle";const b_e=E.forwardRef(({className:e,...t},r)=>g.jsx("p",{ref:r,className:Yr("text-sm text-text-secondary",e),...t}));b_e.displayName="CardDescription";const w_e=E.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:Yr("p-6 pt-0",e),...t}));w_e.displayName="CardContent";const S_e=E.forwardRef(({className:e,...t},r)=>g.jsx("div",{ref:r,className:Yr("flex items-center p-6 pt-0",e),...t}));S_e.displayName="CardFooter";const sj=["#5E6AD2","#8B5CF6","#10B981","#F59E0B","#EF4444","#06B6D4","#71717A"],lj={new:"New",contacted:"Contacted",follow_up:"Follow Up",interested:"Interested",registered:"Registered",enrolled:"Enrolled",lost:"Lost"},cj={new:{color:"bg-info/10 text-info border-info/20",icon:EF},contacted:{color:"bg-warning/10 text-warning border-warning/20",icon:kh},follow_up:{color:"bg-warning/10 text-warning border-warning/20",icon:kh},interested:{color:"bg-primary/10 text-primary border-primary/20",icon:EE},registered:{color:"bg-success/10 text-success border-success/20",icon:Oh},enrolled:{color:"bg-success/10 text-success border-success/20",icon:jh},lost:{color:"bg-danger/10 text-danger border-danger/20",icon:PE}};function __e(){var v,p;const{stats:e,fetchStats:t,isLoading:r}=_F(),{activities:n,fetchActivities:i}=sZ(),{leads:a,fetchLeads:o}=V2(),{staffStats:s,fetchStaffStats:l}=AF(),{user:c}=ar();E.useEffect(()=>{t(),i(10),o(),((c==null?void 0:c.role)==="admin"||(c==null?void 0:c.role)==="masteradmin")&&l()},[c]);const u=a.filter(m=>m.next_follow_up&&m.status!=="enrolled"&&m.status!=="lost").sort((m,y)=>new Date(m.next_follow_up)-new Date(y.next_follow_up)).slice(0,5),f=m=>{const y=cj[m]||cj.new,x=y.icon;return g.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium rounded-lg border ${y.color}`,children:[g.jsx(x,{className:"w-3 h-3"}),lj[m]||m]})},d=m=>({created:"bg-success/10 text-success border-success/20",updated:"bg-primary/10 text-primary border-primary/20",deleted:"bg-danger/10 text-danger border-danger/20",status_changed:"bg-secondary/10 text-secondary border-secondary/20",contacted_wa:"bg-success/10 text-success border-success/20",follow_up_scheduled:"bg-warning/10 text-warning border-warning/20"})[m]||"bg-surface-light text-text-secondary border-border";if(r&&!e)return g.jsx("div",{className:"flex items-center justify-center h-96",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx("div",{className:"w-8 h-8 border-2 border-primary/30 border-t-primary rounded-full animate-spin"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Loading dashboard..."})]})});const h=[{title:"Total Leads",value:(e==null?void 0:e.totalLeads)||0,change:"+12%",trend:"up",icon:Sf,color:"from-primary to-primary-light",bgColor:"bg-primary/10"},{title:"New Leads",value:(e==null?void 0:e.newLeads)||0,change:"+8%",trend:"up",icon:LZ,color:"from-info to-info-light",bgColor:"bg-info/10"},{title:"Registered",value:(e==null?void 0:e.registered)||0,change:"+24%",trend:"up",icon:jh,color:"from-success to-success-light",bgColor:"bg-success/10"},{title:"Hot Leads",value:(e==null?void 0:e.hotLeads)||0,change:"-3%",trend:"down",icon:EE,color:"from-danger to-danger-light",bgColor:"bg-danger/10"}];return g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:"Dashboard"}),g.jsx("p",{className:"text-sm text-text-muted mt-1",children:"Track your CRM performance and activities"})]}),g.jsx("div",{className:"flex items-center gap-3",children:g.jsxs("select",{className:"px-4 py-2 bg-surface border border-border rounded-xl text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-primary/30",children:[g.jsx("option",{children:"Last 7 days"}),g.jsx("option",{children:"Last 30 days"}),g.jsx("option",{children:"Last 90 days"})]})})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:h.map((m,y)=>g.jsxs("div",{className:"group card card-hover p-5 animate-slide-up",style:{animationDelay:`${y*50}ms`},children:[g.jsxs("div",{className:"flex items-start justify-between",children:[g.jsx("div",{className:`p-2.5 rounded-xl ${m.bgColor}`,children:g.jsx(m.icon,{className:`w-5 h-5 text-${m.color.split(" ")[0].replace("from-","")}`})}),g.jsxs("div",{className:`flex items-center gap-1 px-2 py-1 rounded-lg text-xs font-medium ${m.trend==="up"?"bg-success/10 text-success":"bg-danger/10 text-danger"}`,children:[m.trend==="up"?g.jsx(Fm,{className:"w-3 h-3"}):g.jsx(kZ,{className:"w-3 h-3"}),m.change]})]}),g.jsxs("div",{className:"mt-4",children:[g.jsx("p",{className:"text-3xl font-bold text-foreground",children:m.value}),g.jsx("p",{className:"text-sm text-text-muted mt-1",children:m.title})]})]},m.title))}),((c==null?void 0:c.role)==="admin"||(c==null?void 0:c.role)==="masteradmin")&&s&&g.jsxs("div",{className:"card animate-slide-up",style:{animationDelay:"150ms"},children:[g.jsxs("div",{className:"p-5 border-b border-border",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(RZ,{className:"w-5 h-5 text-primary"}),g.jsx("h3",{className:"font-semibold text-foreground",children:"Staff Performance Overview"})]}),g.jsx("p",{className:"text-sm text-text-muted mt-1",children:"Leads created by each staff member"})]}),g.jsxs("div",{className:"p-5",children:[s.staffUsers&&s.staffUsers.length>0?g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:s.staffUsers.map(m=>g.jsxs("div",{className:"flex items-center gap-3 p-3 bg-surface-light rounded-xl",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-100 flex items-center justify-center",children:g.jsx(hA,{className:"w-6 h-6 text-blue-600"})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("p",{className:"font-medium text-foreground",children:m.name}),g.jsx("p",{className:"text-sm text-text-muted",children:m.team})]}),g.jsxs("div",{className:"text-right",children:[g.jsx("p",{className:"text-2xl font-bold text-primary",children:m.leads_count}),g.jsx("p",{className:"text-xs text-text-muted",children:"leads"})]})]},m.id))}):g.jsxs("div",{className:"text-center py-8",children:[g.jsx(hA,{className:"w-12 h-12 mx-auto mb-3 text-text-muted opacity-50"}),g.jsx("p",{className:"text-text-muted",children:"No staff members yet. Add staff users to track performance."})]}),s.leadsByTeam&&s.leadsByTeam.length>0&&g.jsxs("div",{className:"mt-6 pt-6 border-t border-border",children:[g.jsx("h4",{className:"font-medium text-foreground mb-4",children:"Leads by Team"}),g.jsx("div",{className:"h-48",children:g.jsx(ih,{width:"100%",height:"100%",children:g.jsxs(Ux,{data:s.leadsByTeam.map(m=>({name:m.team||"Unknown",leads:m.leads_count})),children:[g.jsx(yg,{strokeDasharray:"3 3",stroke:"#27272A",vertical:!1}),g.jsx(Tf,{dataKey:"name",tick:{fontSize:12,fill:"#71717A"},axisLine:!1,tickLine:!1}),g.jsx(Cf,{tick:{fontSize:12,fill:"#71717A"},axisLine:!1,tickLine:!1}),g.jsx(ca,{contentStyle:{backgroundColor:"#27272A",border:"1px solid #3F3F46",borderRadius:"12px",padding:"12px"},labelStyle:{color:"#FAFAFA"},itemStyle:{color:"#A1A1AA"}}),g.jsx(Gs,{dataKey:"leads",fill:"#5E6AD2",radius:[6,6,0,0]})]})})})]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"card p-6 animate-slide-up",style:{animationDelay:"200ms"},children:[g.jsx("div",{className:"flex items-center justify-between mb-6",children:g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold text-foreground",children:"Lead Status"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Distribution by status"})]})}),g.jsx("div",{className:"h-64",children:g.jsx(ih,{width:"100%",height:"100%",children:g.jsxs(Ux,{data:((v=e==null?void 0:e.byStatus)==null?void 0:v.map(m=>({name:lj[m.status]||m.status,value:m.count})))||[],children:[g.jsx(yg,{strokeDasharray:"3 3",stroke:"#27272A",vertical:!1}),g.jsx(Tf,{dataKey:"name",tick:{fontSize:11,fill:"#71717A"},axisLine:!1,tickLine:!1}),g.jsx(Cf,{tick:{fontSize:11,fill:"#71717A"},axisLine:!1,tickLine:!1}),g.jsx(ca,{contentStyle:{backgroundColor:"#27272A",border:"1px solid #3F3F46",borderRadius:"12px",padding:"12px"},labelStyle:{color:"#FAFAFA"},itemStyle:{color:"#A1A1AA"}}),g.jsx(Gs,{dataKey:"value",fill:"#5E6AD2",radius:[6,6,0,0]})]})})})]}),g.jsxs("div",{className:"card p-6 animate-slide-up",style:{animationDelay:"250ms"},children:[g.jsx("div",{className:"flex items-center justify-between mb-6",children:g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold text-foreground",children:"Lead Sources"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Distribution by source"})]})}),g.jsx("div",{className:"h-64 flex items-center justify-center",children:g.jsx(ih,{width:"100%",height:"100%",children:g.jsxs(E9,{children:[g.jsx(Ys,{data:((p=e==null?void 0:e.bySource)==null?void 0:p.map(m=>({name:m.source||"Unknown",value:m.count})))||[],cx:"50%",cy:"50%",innerRadius:50,outerRadius:80,paddingAngle:3,dataKey:"value",children:((e==null?void 0:e.bySource)||[]).map((m,y)=>g.jsx(Kg,{fill:sj[y%sj.length]},`cell-${y}`))}),g.jsx(ca,{contentStyle:{backgroundColor:"#27272A",border:"1px solid #3F3F46",borderRadius:"12px",padding:"12px"},labelStyle:{color:"#FAFAFA"},itemStyle:{color:"#A1A1AA"}}),g.jsx(Zc,{verticalAlign:"bottom",height:36,formatter:m=>g.jsx("span",{className:"text-xs text-text-muted",children:m})})]})})})]})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"card animate-slide-up",style:{animationDelay:"300ms"},children:[g.jsxs("div",{className:"p-5 border-b border-border flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold text-foreground",children:"Upcoming Follow Ups"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Scheduled follow ups"})]}),g.jsxs(cA,{to:"/leads",className:"text-sm text-primary hover:text-primary-light flex items-center gap-1 transition-colors",children:["View All ",g.jsx(oO,{className:"w-4 h-4"})]})]}),g.jsx("div",{className:"p-3",children:u.length>0?g.jsx("div",{className:"space-y-2",children:u.map(m=>g.jsxs(cA,{to:`/leads/${m.id}`,className:"flex items-center justify-between p-3 rounded-xl hover:bg-surface-light transition-colors group",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary font-medium group-hover:bg-primary/20 transition-colors",children:m.name.charAt(0)}),g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-foreground",children:m.name}),g.jsx("p",{className:"text-sm text-text-muted",children:m.program})]})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[f(m.status),g.jsx("div",{className:"text-right",children:g.jsx("p",{className:`text-sm font-medium ${new Date(m.next_follow_up)<new Date?"text-danger":"text-text-secondary"}`,children:Ch(m.next_follow_up)})})]})]},m.id))}):g.jsxs("div",{className:"text-center py-12",children:[g.jsx(kh,{className:"w-12 h-12 mx-auto mb-3 text-text-muted opacity-50"}),g.jsx("p",{className:"text-text-muted",children:"No upcoming follow ups"})]})})]}),g.jsxs("div",{className:"card animate-slide-up",style:{animationDelay:"350ms"},children:[g.jsxs("div",{className:"p-5 border-b border-border flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"font-semibold text-foreground",children:"Recent Activities"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Latest system activities"})]}),g.jsxs("button",{className:"text-sm text-primary hover:text-primary-light flex items-center gap-1 transition-colors",children:["View All ",g.jsx(oO,{className:"w-4 h-4"})]})]}),g.jsx("div",{className:"p-3",children:n.length>0?g.jsx("div",{className:"space-y-1",children:n.map((m,y)=>g.jsxs("div",{className:"flex items-start gap-4 p-3 rounded-xl hover:bg-surface-light transition-colors",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-surface-light flex items-center justify-center flex-shrink-0 mt-0.5",children:g.jsx(aO,{className:"w-4 h-4 text-text-muted"})}),g.jsxs("div",{className:"flex-1 min-w-0",children:[g.jsxs("p",{className:"text-sm text-foreground",children:[g.jsx("span",{className:"font-medium",children:m.lead_name||"System"}),g.jsxs("span",{className:"text-text-secondary",children:[" — ",m.description]})]}),g.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[g.jsx("span",{className:`text-xs px-2 py-0.5 rounded-md border ${d(m.action)}`,children:m.action.replace("_"," ")}),g.jsxs("span",{className:"text-xs text-text-muted",children:["by ",m.user_name]}),g.jsx("span",{className:"text-xs text-text-muted",children:"•"}),g.jsx("span",{className:"text-xs text-text-muted",children:SF(m.created_at)})]})]})]},m.id))}):g.jsxs("div",{className:"text-center py-12",children:[g.jsx(aO,{className:"w-12 h-12 mx-auto mb-3 text-text-muted opacity-50"}),g.jsx("p",{className:"text-text-muted",children:"No recent activities"})]})})]})]})]})}function uj(e,[t,r]){return Math.min(r,Math.max(t,e))}function $r(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function A_e(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),l=r.length;r=[...r,o];const c=f=>{var y;const{scope:d,children:h,...v}=f,p=((y=d==null?void 0:d[e])==null?void 0:y[l])||s,m=E.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:m,children:h})};c.displayName=a+"Provider";function u(f,d){var p;const h=((p=d==null?void 0:d[e])==null?void 0:p[l])||s,v=E.useContext(h);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,E_e(i,...t)]}function E_e(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function fj(e){const t=N_e(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find(T_e);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function N_e(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=O_e(i),s=C_e(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var P_e=Symbol("radix.slottable");function T_e(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===P_e}function C_e(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function O_e(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function k_e(e){const t=e+"CollectionProvider",[r,n]=A_e(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),o=p=>{const{scope:m,children:y}=p,x=ge.useRef(null),w=ge.useRef(new Map).current;return g.jsx(i,{scope:m,itemMap:w,collectionRef:x,children:y})};o.displayName=t;const s=e+"CollectionSlot",l=fj(s),c=ge.forwardRef((p,m)=>{const{scope:y,children:x}=p,w=a(s,y),S=gn(m,w.collectionRef);return g.jsx(l,{ref:S,children:x})});c.displayName=s;const u=e+"CollectionItemSlot",f="data-radix-collection-item",d=fj(u),h=ge.forwardRef((p,m)=>{const{scope:y,children:x,...w}=p,S=ge.useRef(null),A=gn(m,S),N=a(u,y);return ge.useEffect(()=>(N.itemMap.set(S,{ref:S,...w}),()=>void N.itemMap.delete(S))),g.jsx(d,{[f]:"",ref:A,children:x})});h.displayName=u;function v(p){const m=a(e+"CollectionConsumer",p);return ge.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const w=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(m.itemMap.values()).sort((N,P)=>w.indexOf(N.ref.current)-w.indexOf(P.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:o,Slot:c,ItemSlot:h},v,n]}function j_e(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),l=r.length;r=[...r,o];const c=f=>{var y;const{scope:d,children:h,...v}=f,p=((y=d==null?void 0:d[e])==null?void 0:y[l])||s,m=E.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:m,children:h})};c.displayName=a+"Provider";function u(f,d){var p;const h=((p=d==null?void 0:d[e])==null?void 0:p[l])||s,v=E.useContext(h);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,L_e(i,...t)]}function L_e(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}var I_e=E.createContext(void 0);function D_e(e){const t=E.useContext(I_e);return e||t||"ltr"}function R_e(e){const t=M_e(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find($_e);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function M_e(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=U_e(i),s=B_e(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var F_e=Symbol("radix.slottable");function $_e(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===F_e}function B_e(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function U_e(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var W_e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N9=W_e.reduce((e,t)=>{const r=R_e(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function z_e(e,t){e&&Yl.flushSync(()=>e.dispatchEvent(t))}function lu(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function H_e(e,t=globalThis==null?void 0:globalThis.document){const r=lu(e);E.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}var V_e="DismissableLayer",U4="dismissableLayer.update",G_e="dismissableLayer.pointerDownOutside",q_e="dismissableLayer.focusOutside",dj,P9=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),RN=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:s,...l}=e,c=E.useContext(P9),[u,f]=E.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=E.useState({}),v=gn(t,P=>f(P)),p=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=p.indexOf(m),x=u?p.indexOf(u):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=x>=y,A=Y_e(P=>{const j=P.target,C=[...c.branches].some(R=>R.contains(j));!S||C||(i==null||i(P),o==null||o(P),P.defaultPrevented||s==null||s())},d),N=J_e(P=>{const j=P.target;[...c.branches].some(R=>R.contains(j))||(a==null||a(P),o==null||o(P),P.defaultPrevented||s==null||s())},d);return H_e(P=>{x===c.layers.size-1&&(n==null||n(P),!P.defaultPrevented&&s&&(P.preventDefault(),s()))},d),E.useEffect(()=>{if(u)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(dj=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),hj(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=dj)}},[u,d,r,c]),E.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),hj())},[u,c]),E.useEffect(()=>{const P=()=>h({});return document.addEventListener(U4,P),()=>document.removeEventListener(U4,P)},[]),g.jsx(N9.div,{...l,ref:v,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:$r(e.onFocusCapture,N.onFocusCapture),onBlurCapture:$r(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:$r(e.onPointerDownCapture,A.onPointerDownCapture)})});RN.displayName=V_e;var K_e="DismissableLayerBranch",X_e=E.forwardRef((e,t)=>{const r=E.useContext(P9),n=E.useRef(null),i=gn(t,n);return E.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),g.jsx(N9.div,{...e,ref:i})});X_e.displayName=K_e;function Y_e(e,t=globalThis==null?void 0:globalThis.document){const r=lu(e),n=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let l=function(){T9(G_e,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function J_e(e,t=globalThis==null?void 0:globalThis.document){const r=lu(e),n=E.useRef(!1);return E.useEffect(()=>{const i=a=>{a.target&&!n.current&&T9(q_e,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function hj(){const e=new CustomEvent(U4);document.dispatchEvent(e)}function T9(e,t,r,{discrete:n}){const i=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?z_e(i,a):i.dispatchEvent(a)}var lS=0;function C9(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pj()),document.body.insertAdjacentElement("beforeend",e[1]??pj()),lS++,()=>{lS===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),lS--}},[])}function pj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function Z_e(e){const t=Q_e(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find(tAe);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function Q_e(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=nAe(i),s=rAe(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var eAe=Symbol("radix.slottable");function tAe(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eAe}function rAe(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function nAe(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var iAe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],aAe=iAe.reduce((e,t)=>{const r=Z_e(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),cS="focusScope.autoFocusOnMount",uS="focusScope.autoFocusOnUnmount",mj={bubbles:!1,cancelable:!0},oAe="FocusScope",MN=E.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,l]=E.useState(null),c=lu(i),u=lu(a),f=E.useRef(null),d=gn(t,p=>l(p)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(n){let p=function(w){if(h.paused||!s)return;const S=w.target;s.contains(S)?f.current=S:Pc(f.current,{select:!0})},m=function(w){if(h.paused||!s)return;const S=w.relatedTarget;S!==null&&(s.contains(S)||Pc(f.current,{select:!0}))},y=function(w){if(document.activeElement===document.body)for(const A of w)A.removedNodes.length>0&&Pc(s)};document.addEventListener("focusin",p),document.addEventListener("focusout",m);const x=new MutationObserver(y);return s&&x.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",m),x.disconnect()}}},[n,s,h.paused]),E.useEffect(()=>{if(s){vj.add(h);const p=document.activeElement;if(!s.contains(p)){const y=new CustomEvent(cS,mj);s.addEventListener(cS,c),s.dispatchEvent(y),y.defaultPrevented||(sAe(dAe(O9(s)),{select:!0}),document.activeElement===p&&Pc(s))}return()=>{s.removeEventListener(cS,c),setTimeout(()=>{const y=new CustomEvent(uS,mj);s.addEventListener(uS,u),s.dispatchEvent(y),y.defaultPrevented||Pc(p??document.body,{select:!0}),s.removeEventListener(uS,u),vj.remove(h)},0)}}},[s,c,u,h]);const v=E.useCallback(p=>{if(!r&&!n||h.paused)return;const m=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,y=document.activeElement;if(m&&y){const x=p.currentTarget,[w,S]=lAe(x);w&&S?!p.shiftKey&&y===S?(p.preventDefault(),r&&Pc(w,{select:!0})):p.shiftKey&&y===w&&(p.preventDefault(),r&&Pc(S,{select:!0})):y===x&&p.preventDefault()}},[r,n,h.paused]);return g.jsx(aAe.div,{tabIndex:-1,...o,ref:d,onKeyDown:v})});MN.displayName=oAe;function sAe(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(Pc(n,{select:t}),document.activeElement!==r)return}function lAe(e){const t=O9(e),r=gj(t,e),n=gj(t.reverse(),e);return[r,n]}function O9(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function gj(e,t){for(const r of e)if(!cAe(r,{upTo:t}))return r}function cAe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function uAe(e){return e instanceof HTMLInputElement&&"select"in e}function Pc(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&uAe(e)&&t&&e.select()}}var vj=fAe();function fAe(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=yj(e,t),e.unshift(t)},remove(t){var r;e=yj(e,t),(r=e[0])==null||r.resume()}}}function yj(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function dAe(e){return e.filter(t=>t.tagName!=="A")}var si=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},hAe=E2[" useId ".trim().toString()]||(()=>{}),pAe=0;function sh(e){const[t,r]=E.useState(hAe());return si(()=>{r(n=>n??String(pAe++))},[e]),t?`radix-${t}`:""}const mAe=["top","right","bottom","left"],cu=Math.min,Ga=Math.max,Wx=Math.round,xv=Math.floor,Hs=e=>({x:e,y:e}),gAe={left:"right",right:"left",bottom:"top",top:"bottom"};function W4(e,t,r){return Ga(e,cu(t,r))}function Hl(e,t){return typeof e=="function"?e(t):e}function Vl(e){return e.split("-")[0]}function Cp(e){return e.split("-")[1]}function FN(e){return e==="x"?"y":"x"}function $N(e){return e==="y"?"height":"width"}function Fs(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function BN(e){return FN(Fs(e))}function vAe(e,t,r){r===void 0&&(r=!1);const n=Cp(e),i=BN(e),a=$N(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=zx(o)),[o,zx(o)]}function yAe(e){const t=zx(e);return[z4(e),t,z4(t)]}function z4(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const xj=["left","right"],bj=["right","left"],xAe=["top","bottom"],bAe=["bottom","top"];function wAe(e,t,r){switch(e){case"top":case"bottom":return r?t?bj:xj:t?xj:bj;case"left":case"right":return t?xAe:bAe;default:return[]}}function SAe(e,t,r,n){const i=Cp(e);let a=wAe(Vl(e),r==="start",n);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(z4)))),a}function zx(e){const t=Vl(e);return gAe[t]+e.slice(t.length)}function _Ae(e){return{top:0,right:0,bottom:0,left:0,...e}}function k9(e){return typeof e!="number"?_Ae(e):{top:e,right:e,bottom:e,left:e}}function Hx(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function wj(e,t,r){let{reference:n,floating:i}=e;const a=Fs(t),o=BN(t),s=$N(o),l=Vl(t),c=a==="y",u=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,d=n[s]/2-i[s]/2;let h;switch(l){case"top":h={x:u,y:n.y-i.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-i.width,y:f};break;default:h={x:n.x,y:n.y}}switch(Cp(t)){case"start":h[o]-=d*(r&&c?-1:1);break;case"end":h[o]+=d*(r&&c?-1:1);break}return h}async function AAe(e,t){var r;t===void 0&&(t={});const{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Hl(t,e),v=k9(h),m=s[d?f==="floating"?"reference":"floating":f],y=Hx(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),x=f==="floating"?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},A=Hx(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:l}):x);return{top:(y.top-A.top+v.top)/S.y,bottom:(A.bottom-y.bottom+v.bottom)/S.y,left:(y.left-A.left+v.left)/S.x,right:(A.right-y.right+v.right)/S.x}}const EAe=50,NAe=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=o.detectOverflow?o:{...o,detectOverflow:AAe},l=await(o.isRTL==null?void 0:o.isRTL(t));let c=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:f}=wj(c,n,l),d=n,h=0;const v={};for(let p=0;p<a.length;p++){const m=a[p];if(!m)continue;const{name:y,fn:x}=m,{x:w,y:S,data:A,reset:N}=await x({x:u,y:f,initialPlacement:n,placement:d,strategy:i,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});u=w??u,f=S??f,v[y]={...v[y],...A},N&&h<EAe&&(h++,typeof N=="object"&&(N.placement&&(d=N.placement),N.rects&&(c=N.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):N.rects),{x:u,y:f}=wj(c,d,l)),p=-1)}return{x:u,y:f,placement:d,strategy:i,middlewareData:v}},PAe=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Hl(e,t)||{};if(c==null)return{};const f=k9(u),d={x:r,y:n},h=BN(i),v=$N(h),p=await o.getDimensions(c),m=h==="y",y=m?"top":"left",x=m?"bottom":"right",w=m?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[h]-d[h]-a.floating[v],A=d[h]-a.reference[h],N=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let P=N?N[w]:0;(!P||!await(o.isElement==null?void 0:o.isElement(N)))&&(P=s.floating[w]||a.floating[v]);const j=S/2-A/2,C=P/2-p[v]/2-1,R=cu(f[y],C),L=cu(f[x],C),I=R,B=P-p[v]-L,z=P/2-p[v]/2+j,V=W4(I,z,B),Q=!l.arrow&&Cp(i)!=null&&z!==V&&a.reference[v]/2-(z<I?R:L)-p[v]/2<0,ae=Q?z<I?z-I:z-B:0;return{[h]:d[h]+ae,data:{[h]:V,centerOffset:z-V-ae,...Q&&{alignmentOffset:ae}},reset:Q}}}),TAe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:a,rects:o,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:p=!0,...m}=Hl(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=Vl(i),x=Fs(s),w=Vl(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=d||(w||!p?[zx(s)]:yAe(s)),N=v!=="none";!d&&N&&A.push(...SAe(s,p,v,S));const P=[s,...A],j=await l.detectOverflow(t,m),C=[];let R=((n=a.flip)==null?void 0:n.overflows)||[];if(u&&C.push(j[y]),f){const z=vAe(i,o,S);C.push(j[z[0]],j[z[1]])}if(R=[...R,{placement:i,overflows:C}],!C.every(z=>z<=0)){var L,I;const z=(((L=a.flip)==null?void 0:L.index)||0)+1,V=P[z];if(V&&(!(f==="alignment"?x!==Fs(V):!1)||R.every(K=>Fs(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:z,overflows:R},reset:{placement:V}};let Q=(I=R.filter(ae=>ae.overflows[0]<=0).sort((ae,K)=>ae.overflows[1]-K.overflows[1])[0])==null?void 0:I.placement;if(!Q)switch(h){case"bestFit":{var B;const ae=(B=R.filter(K=>{if(N){const re=Fs(K.placement);return re===x||re==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(re=>re>0).reduce((re,ye)=>re+ye,0)]).sort((K,re)=>K[1]-re[1])[0])==null?void 0:B[0];ae&&(Q=ae);break}case"initialPlacement":Q=s;break}if(i!==Q)return{reset:{placement:Q}}}return{}}}};function Sj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _j(e){return mAe.some(t=>e[t]>=0)}const CAe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:n}=t,{strategy:i="referenceHidden",...a}=Hl(e,t);switch(i){case"referenceHidden":{const o=await n.detectOverflow(t,{...a,elementContext:"reference"}),s=Sj(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:_j(s)}}}case"escaped":{const o=await n.detectOverflow(t,{...a,altBoundary:!0}),s=Sj(o,r.floating);return{data:{escapedOffsets:s,escaped:_j(s)}}}default:return{}}}}},j9=new Set(["left","top"]);async function OAe(e,t){const{placement:r,platform:n,elements:i}=e,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=Vl(r),s=Cp(r),l=Fs(r)==="y",c=j9.has(o)?-1:1,u=a&&l?-1:1,f=Hl(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*u,y:d*c}:{x:d*c,y:h*u}}const kAe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:a,placement:o,middlewareData:s}=t,l=await OAe(t,e);return o===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}},jAe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:y=>{let{x,y:w}=y;return{x,y:w}}},...c}=Hl(e,t),u={x:r,y:n},f=await a.detectOverflow(t,c),d=Fs(Vl(i)),h=FN(d);let v=u[h],p=u[d];if(o){const y=h==="y"?"top":"left",x=h==="y"?"bottom":"right",w=v+f[y],S=v-f[x];v=W4(w,v,S)}if(s){const y=d==="y"?"top":"left",x=d==="y"?"bottom":"right",w=p+f[y],S=p-f[x];p=W4(w,p,S)}const m=l.fn({...t,[h]:v,[d]:p});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[h]:o,[d]:s}}}}}},LAe=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=Hl(e,t),u={x:r,y:n},f=Fs(i),d=FN(f);let h=u[d],v=u[f];const p=Hl(s,t),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=d==="y"?"height":"width",S=a.reference[d]-a.floating[w]+m.mainAxis,A=a.reference[d]+a.reference[w]-m.mainAxis;h<S?h=S:h>A&&(h=A)}if(c){var y,x;const w=d==="y"?"width":"height",S=j9.has(Vl(i)),A=a.reference[f]-a.floating[w]+(S&&((y=o.offset)==null?void 0:y[f])||0)+(S?0:m.crossAxis),N=a.reference[f]+a.reference[w]+(S?0:((x=o.offset)==null?void 0:x[f])||0)-(S?m.crossAxis:0);v<A?v=A:v>N&&(v=N)}return{[d]:h,[f]:v}}}},IAe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:i,rects:a,platform:o,elements:s}=t,{apply:l=()=>{},...c}=Hl(e,t),u=await o.detectOverflow(t,c),f=Vl(i),d=Cp(i),h=Fs(i)==="y",{width:v,height:p}=a.floating;let m,y;f==="top"||f==="bottom"?(m=f,y=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(y=f,m=d==="end"?"top":"bottom");const x=p-u.top-u.bottom,w=v-u.left-u.right,S=cu(p-u[m],x),A=cu(v-u[y],w),N=!t.middlewareData.shift;let P=S,j=A;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(j=w),(n=t.middlewareData.shift)!=null&&n.enabled.y&&(P=x),N&&!d){const R=Ga(u.left,0),L=Ga(u.right,0),I=Ga(u.top,0),B=Ga(u.bottom,0);h?j=v-2*(R!==0||L!==0?R+L:Ga(u.left,u.right)):P=p-2*(I!==0||B!==0?I+B:Ga(u.top,u.bottom))}await l({...t,availableWidth:j,availableHeight:P});const C=await o.getDimensions(s.floating);return v!==C.width||p!==C.height?{reset:{rects:!0}}:{}}}};function Wb(){return typeof window<"u"}function Op(e){return L9(e)?(e.nodeName||"").toLowerCase():"#document"}function to(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Js(e){var t;return(t=(L9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function L9(e){return Wb()?e instanceof Node||e instanceof to(e).Node:!1}function ms(e){return Wb()?e instanceof Element||e instanceof to(e).Element:!1}function nc(e){return Wb()?e instanceof HTMLElement||e instanceof to(e).HTMLElement:!1}function Aj(e){return!Wb()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof to(e).ShadowRoot}function Qg(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=gs(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&i!=="inline"&&i!=="contents"}function DAe(e){return/^(table|td|th)$/.test(Op(e))}function zb(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const RAe=/transform|translate|scale|rotate|perspective|filter/,MAe=/paint|layout|strict|content/,Hu=e=>!!e&&e!=="none";let fS;function UN(e){const t=ms(e)?gs(e):e;return Hu(t.transform)||Hu(t.translate)||Hu(t.scale)||Hu(t.rotate)||Hu(t.perspective)||!WN()&&(Hu(t.backdropFilter)||Hu(t.filter))||RAe.test(t.willChange||"")||MAe.test(t.contain||"")}function FAe(e){let t=uu(e);for(;nc(t)&&!np(t);){if(UN(t))return t;if(zb(t))return null;t=uu(t)}return null}function WN(){return fS==null&&(fS=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),fS}function np(e){return/^(html|body|#document)$/.test(Op(e))}function gs(e){return to(e).getComputedStyle(e)}function Hb(e){return ms(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function uu(e){if(Op(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Aj(e)&&e.host||Js(e);return Aj(t)?t.host:t}function I9(e){const t=uu(e);return np(t)?e.ownerDocument?e.ownerDocument.body:e.body:nc(t)&&Qg(t)?t:I9(t)}function wg(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=I9(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),o=to(i);if(a){const s=H4(o);return t.concat(o,o.visualViewport||[],Qg(i)?i:[],s&&r?wg(s):[])}else return t.concat(i,wg(i,[],r))}function H4(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function D9(e){const t=gs(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=nc(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=Wx(r)!==a||Wx(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function zN(e){return ms(e)?e:e.contextElement}function lh(e){const t=zN(e);if(!nc(t))return Hs(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:a}=D9(t);let o=(a?Wx(r.width):r.width)/n,s=(a?Wx(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const $Ae=Hs(0);function R9(e){const t=to(e);return!WN()||!t.visualViewport?$Ae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function BAe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==to(e)?!1:t}function Of(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),a=zN(e);let o=Hs(1);t&&(n?ms(n)&&(o=lh(n)):o=lh(e));const s=BAe(a,r,n)?R9(a):Hs(0);let l=(i.left+s.x)/o.x,c=(i.top+s.y)/o.y,u=i.width/o.x,f=i.height/o.y;if(a){const d=to(a),h=n&&ms(n)?to(n):n;let v=d,p=H4(v);for(;p&&n&&h!==v;){const m=lh(p),y=p.getBoundingClientRect(),x=gs(p),w=y.left+(p.clientLeft+parseFloat(x.paddingLeft))*m.x,S=y.top+(p.clientTop+parseFloat(x.paddingTop))*m.y;l*=m.x,c*=m.y,u*=m.x,f*=m.y,l+=w,c+=S,v=to(p),p=H4(v)}}return Hx({width:u,height:f,x:l,y:c})}function Vb(e,t){const r=Hb(e).scrollLeft;return t?t.left+r:Of(Js(e)).left+r}function M9(e,t){const r=e.getBoundingClientRect(),n=r.left+t.scrollLeft-Vb(e,r),i=r.top+t.scrollTop;return{x:n,y:i}}function UAe(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const a=i==="fixed",o=Js(n),s=t?zb(t.floating):!1;if(n===o||s&&a)return r;let l={scrollLeft:0,scrollTop:0},c=Hs(1);const u=Hs(0),f=nc(n);if((f||!f&&!a)&&((Op(n)!=="body"||Qg(o))&&(l=Hb(n)),f)){const h=Of(n);c=lh(n),u.x=h.x+n.clientLeft,u.y=h.y+n.clientTop}const d=o&&!f&&!a?M9(o,l):Hs(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:r.y*c.y-l.scrollTop*c.y+u.y+d.y}}function WAe(e){return Array.from(e.getClientRects())}function zAe(e){const t=Js(e),r=Hb(e),n=e.ownerDocument.body,i=Ga(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Ga(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+Vb(e);const s=-r.scrollTop;return gs(n).direction==="rtl"&&(o+=Ga(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}const Ej=25;function HAe(e,t){const r=to(e),n=Js(e),i=r.visualViewport;let a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;const u=WN();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=Vb(n);if(c<=0){const u=n.ownerDocument,f=u.body,d=getComputedStyle(f),h=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,v=Math.abs(n.clientWidth-f.clientWidth-h);v<=Ej&&(a-=v)}else c<=Ej&&(a+=c);return{width:a,height:o,x:s,y:l}}function VAe(e,t){const r=Of(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=nc(e)?lh(e):Hs(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y,l=i*a.x,c=n*a.y;return{width:o,height:s,x:l,y:c}}function Nj(e,t,r){let n;if(t==="viewport")n=HAe(e,r);else if(t==="document")n=zAe(Js(e));else if(ms(t))n=VAe(t,r);else{const i=R9(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Hx(n)}function F9(e,t){const r=uu(e);return r===t||!ms(r)||np(r)?!1:gs(r).position==="fixed"||F9(r,t)}function GAe(e,t){const r=t.get(e);if(r)return r;let n=wg(e,[],!1).filter(s=>ms(s)&&Op(s)!=="body"),i=null;const a=gs(e).position==="fixed";let o=a?uu(e):e;for(;ms(o)&&!np(o);){const s=gs(o),l=UN(o);!l&&s.position==="fixed"&&(i=null),(a?!l&&!i:!l&&s.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Qg(o)&&!l&&F9(e,o))?n=n.filter(u=>u!==o):i=s,o=uu(o)}return t.set(e,n),n}function qAe(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[...r==="clippingAncestors"?zb(t)?[]:GAe(t,this._c):[].concat(r),n],s=Nj(t,o[0],i);let l=s.top,c=s.right,u=s.bottom,f=s.left;for(let d=1;d<o.length;d++){const h=Nj(t,o[d],i);l=Ga(h.top,l),c=cu(h.right,c),u=cu(h.bottom,u),f=Ga(h.left,f)}return{width:c-f,height:u-l,x:f,y:l}}function KAe(e){const{width:t,height:r}=D9(e);return{width:t,height:r}}function XAe(e,t,r){const n=nc(t),i=Js(t),a=r==="fixed",o=Of(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=Hs(0);function c(){l.x=Vb(i)}if(n||!n&&!a)if((Op(t)!=="body"||Qg(i))&&(s=Hb(t)),n){const h=Of(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&c();a&&!n&&i&&c();const u=i&&!n&&!a?M9(i,s):Hs(0),f=o.left+s.scrollLeft-l.x-u.x,d=o.top+s.scrollTop-l.y-u.y;return{x:f,y:d,width:o.width,height:o.height}}function dS(e){return gs(e).position==="static"}function Pj(e,t){if(!nc(e)||gs(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Js(e)===r&&(r=r.ownerDocument.body),r}function $9(e,t){const r=to(e);if(zb(e))return r;if(!nc(e)){let i=uu(e);for(;i&&!np(i);){if(ms(i)&&!dS(i))return i;i=uu(i)}return r}let n=Pj(e,t);for(;n&&DAe(n)&&dS(n);)n=Pj(n,t);return n&&np(n)&&dS(n)&&!UN(n)?r:n||FAe(e)||r}const YAe=async function(e){const t=this.getOffsetParent||$9,r=this.getDimensions,n=await r(e.floating);return{reference:XAe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function JAe(e){return gs(e).direction==="rtl"}const ZAe={convertOffsetParentRelativeRectToViewportRelativeRect:UAe,getDocumentElement:Js,getClippingRect:qAe,getOffsetParent:$9,getElementRects:YAe,getClientRects:WAe,getDimensions:KAe,getScale:lh,isElement:ms,isRTL:JAe};function B9(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function QAe(e,t){let r=null,n;const i=Js(e);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:h}=c;if(s||t(),!d||!h)return;const v=xv(f),p=xv(i.clientWidth-(u+d)),m=xv(i.clientHeight-(f+h)),y=xv(u),w={rootMargin:-v+"px "+-p+"px "+-m+"px "+-y+"px",threshold:Ga(0,cu(1,l))||1};let S=!0;function A(N){const P=N[0].intersectionRatio;if(P!==l){if(!S)return o();P?o(!1,P):n=setTimeout(()=>{o(!1,1e-7)},1e3)}P===1&&!B9(c,e.getBoundingClientRect())&&o(),S=!1}try{r=new IntersectionObserver(A,{...w,root:i.ownerDocument})}catch{r=new IntersectionObserver(A,w)}r.observe(e)}return o(!0),a}function e4e(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=zN(e),u=i||a?[...c?wg(c):[],...t?wg(t):[]]:[];u.forEach(y=>{i&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const f=c&&s?QAe(c,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(t)})),r()}),c&&!l&&h.observe(c),t&&h.observe(t));let v,p=l?Of(e):null;l&&m();function m(){const y=Of(e);p&&!B9(p,y)&&r(),p=y,v=requestAnimationFrame(m)}return r(),()=>{var y;u.forEach(x=>{i&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),f==null||f(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(v)}}const t4e=kAe,r4e=jAe,n4e=TAe,i4e=IAe,a4e=CAe,Tj=PAe,o4e=LAe,s4e=(e,t,r)=>{const n=new Map,i={platform:ZAe,...r},a={...i.platform,_c:n};return NAe(e,t,{...i,platform:a})};var l4e=typeof document<"u",c4e=function(){},iy=l4e?E.useLayoutEffect:c4e;function Vx(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!Vx(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;n--!==0;){const a=i[n];if(!(a==="_owner"&&e.$$typeof)&&!Vx(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function U9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cj(e,t){const r=U9(e);return Math.round(t*r)/r}function hS(e){const t=E.useRef(e);return iy(()=>{t.current=e}),t}function u4e(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,f]=E.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(n);Vx(d,n)||h(n);const[v,p]=E.useState(null),[m,y]=E.useState(null),x=E.useCallback(K=>{K!==N.current&&(N.current=K,p(K))},[]),w=E.useCallback(K=>{K!==P.current&&(P.current=K,y(K))},[]),S=a||v,A=o||m,N=E.useRef(null),P=E.useRef(null),j=E.useRef(u),C=l!=null,R=hS(l),L=hS(i),I=hS(c),B=E.useCallback(()=>{if(!N.current||!P.current)return;const K={placement:t,strategy:r,middleware:d};L.current&&(K.platform=L.current),s4e(N.current,P.current,K).then(re=>{const ye={...re,isPositioned:I.current!==!1};z.current&&!Vx(j.current,ye)&&(j.current=ye,Yl.flushSync(()=>{f(ye)}))})},[d,t,r,L,I]);iy(()=>{c===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,f(K=>({...K,isPositioned:!1})))},[c]);const z=E.useRef(!1);iy(()=>(z.current=!0,()=>{z.current=!1}),[]),iy(()=>{if(S&&(N.current=S),A&&(P.current=A),S&&A){if(R.current)return R.current(S,A,B);B()}},[S,A,B,R,C]);const V=E.useMemo(()=>({reference:N,floating:P,setReference:x,setFloating:w}),[x,w]),Q=E.useMemo(()=>({reference:S,floating:A}),[S,A]),ae=E.useMemo(()=>{const K={position:r,left:0,top:0};if(!Q.floating)return K;const re=Cj(Q.floating,u.x),ye=Cj(Q.floating,u.y);return s?{...K,transform:"translate("+re+"px, "+ye+"px)",...U9(Q.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:ye}},[r,s,Q.floating,u.x,u.y]);return E.useMemo(()=>({...u,update:B,refs:V,elements:Q,floatingStyles:ae}),[u,B,V,Q,ae])}const f4e=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:n,padding:i}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?Tj({element:n.current,padding:i}).fn(r):{}:n?Tj({element:n,padding:i}).fn(r):{}}}},d4e=(e,t)=>{const r=t4e(e);return{name:r.name,fn:r.fn,options:[e,t]}},h4e=(e,t)=>{const r=r4e(e);return{name:r.name,fn:r.fn,options:[e,t]}},p4e=(e,t)=>({fn:o4e(e).fn,options:[e,t]}),m4e=(e,t)=>{const r=n4e(e);return{name:r.name,fn:r.fn,options:[e,t]}},g4e=(e,t)=>{const r=i4e(e);return{name:r.name,fn:r.fn,options:[e,t]}},v4e=(e,t)=>{const r=a4e(e);return{name:r.name,fn:r.fn,options:[e,t]}},y4e=(e,t)=>{const r=f4e(e);return{name:r.name,fn:r.fn,options:[e,t]}};function x4e(e){const t=b4e(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find(S4e);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function b4e(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=A4e(i),s=_4e(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var w4e=Symbol("radix.slottable");function S4e(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===w4e}function _4e(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function A4e(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var E4e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N4e=E4e.reduce((e,t)=>{const r=x4e(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),P4e="Arrow",W9=E.forwardRef((e,t)=>{const{children:r,width:n=10,height:i=5,...a}=e;return g.jsx(N4e.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});W9.displayName=P4e;var T4e=W9;function C4e(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),l=r.length;r=[...r,o];const c=f=>{var y;const{scope:d,children:h,...v}=f,p=((y=d==null?void 0:d[e])==null?void 0:y[l])||s,m=E.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:m,children:h})};c.displayName=a+"Provider";function u(f,d){var p;const h=((p=d==null?void 0:d[e])==null?void 0:p[l])||s,v=E.useContext(h);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,O4e(i,...t)]}function O4e(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function k4e(e){const t=j4e(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find(I4e);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function j4e(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=R4e(i),s=D4e(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var L4e=Symbol("radix.slottable");function I4e(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===L4e}function D4e(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function R4e(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var M4e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z9=M4e.reduce((e,t)=>{const r=k4e(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function H9(e){const[t,r]=E.useState(void 0);return si(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let o,s;if("borderBoxSize"in a){const l=a.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,s=c.blockSize}else o=e.offsetWidth,s=e.offsetHeight;r({width:o,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var HN="Popper",[V9,G9]=C4e(HN),[F4e,q9]=V9(HN),K9=e=>{const{__scopePopper:t,children:r}=e,[n,i]=E.useState(null);return g.jsx(F4e,{scope:t,anchor:n,onAnchorChange:i,children:r})};K9.displayName=HN;var X9="PopperAnchor",Y9=E.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,a=q9(X9,r),o=E.useRef(null),s=gn(t,o),l=E.useRef(null);return E.useEffect(()=>{const c=l.current;l.current=(n==null?void 0:n.current)||o.current,c!==l.current&&a.onAnchorChange(l.current)}),n?null:g.jsx(z9.div,{...i,ref:s})});Y9.displayName=X9;var VN="PopperContent",[$4e,B4e]=V9(VN),J9=E.forwardRef((e,t)=>{var se,ve,oe,pe,Se,me;const{__scopePopper:r,side:n="bottom",sideOffset:i=0,align:a="center",alignOffset:o=0,arrowPadding:s=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:v,...p}=e,m=q9(VN,r),[y,x]=E.useState(null),w=gn(t,Le=>x(Le)),[S,A]=E.useState(null),N=H9(S),P=(N==null?void 0:N.width)??0,j=(N==null?void 0:N.height)??0,C=n+(a!=="center"?"-"+a:""),R=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(c)?c:[c],I=L.length>0,B={padding:R,boundary:L.filter(W4e),altBoundary:I},{refs:z,floatingStyles:V,placement:Q,isPositioned:ae,middlewareData:K}=u4e({strategy:"fixed",placement:C,whileElementsMounted:(...Le)=>e4e(...Le,{animationFrame:h==="always"}),elements:{reference:m.anchor},middleware:[d4e({mainAxis:i+j,alignmentAxis:o}),l&&h4e({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?p4e():void 0,...B}),l&&m4e({...B}),g4e({...B,apply:({elements:Le,rects:ie,availableWidth:Y,availableHeight:Ie})=>{const{width:De,height:nt}=ie.reference,$e=Le.floating.style;$e.setProperty("--radix-popper-available-width",`${Y}px`),$e.setProperty("--radix-popper-available-height",`${Ie}px`),$e.setProperty("--radix-popper-anchor-width",`${De}px`),$e.setProperty("--radix-popper-anchor-height",`${nt}px`)}}),S&&y4e({element:S,padding:s}),z4e({arrowWidth:P,arrowHeight:j}),d&&v4e({strategy:"referenceHidden",...B})]}),[re,ye]=eU(Q),xe=lu(v);si(()=>{ae&&(xe==null||xe())},[ae,xe]);const O=(se=K.arrow)==null?void 0:se.x,M=(ve=K.arrow)==null?void 0:ve.y,F=((oe=K.arrow)==null?void 0:oe.centerOffset)!==0,[U,Z]=E.useState();return si(()=>{y&&Z(window.getComputedStyle(y).zIndex)},[y]),g.jsx("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:ae?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:U,"--radix-popper-transform-origin":[(pe=K.transformOrigin)==null?void 0:pe.x,(Se=K.transformOrigin)==null?void 0:Se.y].join(" "),...((me=K.hide)==null?void 0:me.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx($4e,{scope:r,placedSide:re,onArrowChange:A,arrowX:O,arrowY:M,shouldHideArrow:F,children:g.jsx(z9.div,{"data-side":re,"data-align":ye,...p,ref:w,style:{...p.style,animation:ae?void 0:"none"}})})})});J9.displayName=VN;var Z9="PopperArrow",U4e={top:"bottom",right:"left",bottom:"top",left:"right"},Q9=E.forwardRef(function(t,r){const{__scopePopper:n,...i}=t,a=B4e(Z9,n),o=U4e[a.placedSide];return g.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:g.jsx(T4e,{...i,ref:r,style:{...i.style,display:"block"}})})});Q9.displayName=Z9;function W4e(e){return e!==null}var z4e=e=>({name:"transformOrigin",options:e,fn(t){var m,y,x;const{placement:r,rects:n,middlewareData:i}=t,o=((m=i.arrow)==null?void 0:m.centerOffset)!==0,s=o?0:e.arrowWidth,l=o?0:e.arrowHeight,[c,u]=eU(r),f={start:"0%",center:"50%",end:"100%"}[u],d=(((y=i.arrow)==null?void 0:y.x)??0)+s/2,h=(((x=i.arrow)==null?void 0:x.y)??0)+l/2;let v="",p="";return c==="bottom"?(v=o?f:`${d}px`,p=`${-l}px`):c==="top"?(v=o?f:`${d}px`,p=`${n.floating.height+l}px`):c==="right"?(v=`${-l}px`,p=o?f:`${h}px`):c==="left"&&(v=`${n.floating.width+l}px`,p=o?f:`${h}px`),{data:{x:v,y:p}}}});function eU(e){const[t,r="center"]=e.split("-");return[t,r]}var H4e=K9,V4e=Y9,G4e=J9,q4e=Q9;function K4e(e){const t=X4e(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find(J4e);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function X4e(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=Q4e(i),s=Z4e(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Y4e=Symbol("radix.slottable");function J4e(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Y4e}function Z4e(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function Q4e(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var e3e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],t3e=e3e.reduce((e,t)=>{const r=K4e(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),r3e="Portal",GN=E.forwardRef((e,t)=>{var s;const{container:r,...n}=e,[i,a]=E.useState(!1);si(()=>a(!0),[]);const o=r||i&&((s=globalThis==null?void 0:globalThis.document)==null?void 0:s.body);return o?QM.createPortal(g.jsx(t3e.div,{...n,ref:t}),o):null});GN.displayName=r3e;function tU(e){const t=n3e(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find(a3e);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function n3e(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=s3e(i),s=o3e(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var i3e=Symbol("radix.slottable");function a3e(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===i3e}function o3e(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function s3e(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var l3e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lo=l3e.reduce((e,t)=>{const r=tU(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),c3e=E2[" useInsertionEffect ".trim().toString()]||si;function Gx({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){const[i,a,o]=u3e({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:i;{const u=E.useRef(e!==void 0);E.useEffect(()=>{const f=u.current;f!==s&&console.warn(`${n} is changing from ${f?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=s},[s,n])}const c=E.useCallback(u=>{var f;if(s){const d=f3e(u)?u(e):u;d!==e&&((f=o.current)==null||f.call(o,d))}else a(u)},[s,e,a,o]);return[l,c]}function u3e({defaultProp:e,onChange:t}){const[r,n]=E.useState(e),i=E.useRef(r),a=E.useRef(t);return c3e(()=>{a.current=t},[t]),E.useEffect(()=>{var o;i.current!==r&&((o=a.current)==null||o.call(a,r),i.current=r)},[r,i]),[r,n,a]}function f3e(e){return typeof e=="function"}function rU(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function d3e(e){const t=h3e(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find(m3e);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function h3e(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=v3e(i),s=g3e(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p3e=Symbol("radix.slottable");function m3e(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===p3e}function g3e(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function v3e(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var y3e=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],x3e=y3e.reduce((e,t)=>{const r=d3e(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),nU=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),b3e="VisuallyHidden",w3e=E.forwardRef((e,t)=>g.jsx(x3e.span,{...e,ref:t,style:{...nU,...e.style}}));w3e.displayName=b3e;var S3e=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},yd=new WeakMap,bv=new WeakMap,wv={},pS=0,iU=function(e){return e&&(e.host||iU(e.parentNode))},_3e=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=iU(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},A3e=function(e,t,r,n){var i=_3e(t,Array.isArray(e)?e:[e]);wv[r]||(wv[r]=new WeakMap);var a=wv[r],o=[],s=new Set,l=new Set(i),c=function(f){!f||s.has(f)||(s.add(f),c(f.parentNode))};i.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(s.has(d))u(d);else try{var h=d.getAttribute(n),v=h!==null&&h!=="false",p=(yd.get(d)||0)+1,m=(a.get(d)||0)+1;yd.set(d,p),a.set(d,m),o.push(d),p===1&&v&&bv.set(d,!0),m===1&&d.setAttribute(r,"true"),v||d.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",d,y)}})};return u(t),s.clear(),pS++,function(){o.forEach(function(f){var d=yd.get(f)-1,h=a.get(f)-1;yd.set(f,d),a.set(f,h),d||(bv.has(f)||f.removeAttribute(n),bv.delete(f)),h||f.removeAttribute(r)}),pS--,pS||(yd=new WeakMap,yd=new WeakMap,bv=new WeakMap,wv={})}},aU=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=S3e(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),A3e(n,i,r,"aria-hidden")):function(){return null}},Rs=function(){return Rs=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Rs.apply(this,arguments)};function oU(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 E3e(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var ay="right-scroll-bar-position",oy="width-before-scroll-bar",N3e="with-scroll-bars-hidden",P3e="--removed-body-scroll-bar-size";function mS(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function T3e(e,t){var r=E.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var C3e=typeof window<"u"?E.useLayoutEffect:E.useEffect,Oj=new WeakMap;function O3e(e,t){var r=T3e(null,function(n){return e.forEach(function(i){return mS(i,n)})});return C3e(function(){var n=Oj.get(r);if(n){var i=new Set(n),a=new Set(e),o=r.current;i.forEach(function(s){a.has(s)||mS(s,null)}),a.forEach(function(s){i.has(s)||mS(s,o)})}Oj.set(r,e)},[e]),r}function k3e(e){return e}function j3e(e,t){t===void 0&&(t=k3e);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(a){var o=t(a,n);return r.push(o),function(){r=r.filter(function(s){return s!==o})}},assignSyncMedium:function(a){for(n=!0;r.length;){var o=r;r=[],o.forEach(a)}r={push:function(s){return a(s)},filter:function(){return r}}},assignMedium:function(a){n=!0;var o=[];if(r.length){var s=r;r=[],s.forEach(a),o=r}var l=function(){var u=o;o=[],u.forEach(a)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(u){o.push(u),c()},filter:function(u){return o=o.filter(u),r}}}};return i}function L3e(e){e===void 0&&(e={});var t=j3e(null);return t.options=Rs({async:!0,ssr:!1},e),t}var sU=function(e){var t=e.sideCar,r=oU(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return E.createElement(n,Rs({},r))};sU.isSideCarExport=!0;function I3e(e,t){return e.useMedium(t),sU}var lU=L3e(),gS=function(){},Gb=E.forwardRef(function(e,t){var r=E.useRef(null),n=E.useState({onScrollCapture:gS,onWheelCapture:gS,onTouchMoveCapture:gS}),i=n[0],a=n[1],o=e.forwardProps,s=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,v=e.noIsolation,p=e.inert,m=e.allowPinchZoom,y=e.as,x=y===void 0?"div":y,w=e.gapMode,S=oU(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=d,N=O3e([r,t]),P=Rs(Rs({},S),i);return E.createElement(E.Fragment,null,u&&E.createElement(A,{sideCar:lU,removeScrollBar:c,shards:f,noRelative:h,noIsolation:v,inert:p,setCallbacks:a,allowPinchZoom:!!m,lockRef:r,gapMode:w}),o?E.cloneElement(E.Children.only(s),Rs(Rs({},P),{ref:N})):E.createElement(x,Rs({},P,{className:l,ref:N}),s))});Gb.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gb.classNames={fullWidth:oy,zeroRight:ay};var D3e=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function R3e(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=D3e();return t&&e.setAttribute("nonce",t),e}function M3e(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function F3e(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $3e=function(){var e=0,t=null;return{add:function(r){e==0&&(t=R3e())&&(M3e(t,r),F3e(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},B3e=function(){var e=$3e();return function(t,r){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},cU=function(){var e=B3e(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},U3e={left:0,top:0,right:0,gap:0},vS=function(e){return parseInt(e||"",10)||0},W3e=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[vS(r),vS(n),vS(i)]},z3e=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return U3e;var t=W3e(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},H3e=cU(),ch="data-scroll-locked",V3e=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return r===void 0&&(r="margin"),` .`.concat(N3e,` { overflow: hidden `).concat(n,`; padding-right: `).concat(s,"px ").concat(n,`; } body[`).concat(ch,`] { overflow: hidden `).concat(n,`; overscroll-behavior: contain; `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&` padding-left: `.concat(i,`px; padding-top: `).concat(a,`px; padding-right: `).concat(o,`px; margin-left:0; margin-top:0; margin-right: `).concat(s,"px ").concat(n,`; `),r==="padding"&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),` } .`).concat(ay,` { right: `).concat(s,"px ").concat(n,`; } .`).concat(oy,` { margin-right: `).concat(s,"px ").concat(n,`; } .`).concat(ay," .").concat(ay,` { right: 0 `).concat(n,`; } .`).concat(oy," .").concat(oy,` { margin-right: 0 `).concat(n,`; } body[`).concat(ch,`] { `).concat(P3e,": ").concat(s,`px; } `)},kj=function(){var e=parseInt(document.body.getAttribute(ch)||"0",10);return isFinite(e)?e:0},G3e=function(){E.useEffect(function(){return document.body.setAttribute(ch,(kj()+1).toString()),function(){var e=kj()-1;e<=0?document.body.removeAttribute(ch):document.body.setAttribute(ch,e.toString())}},[])},q3e=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;G3e();var a=E.useMemo(function(){return z3e(i)},[i]);return E.createElement(H3e,{styles:V3e(a,!t,i,r?"":"!important")})},V4=!1;if(typeof window<"u")try{var Sv=Object.defineProperty({},"passive",{get:function(){return V4=!0,!0}});window.addEventListener("test",Sv,Sv),window.removeEventListener("test",Sv,Sv)}catch{V4=!1}var xd=V4?{passive:!1}:!1,K3e=function(e){return e.tagName==="TEXTAREA"},uU=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!K3e(e)&&r[t]==="visible")},X3e=function(e){return uU(e,"overflowY")},Y3e=function(e){return uU(e,"overflowX")},jj=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=fU(e,n);if(i){var a=dU(e,n),o=a[1],s=a[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},J3e=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Z3e=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},fU=function(e,t){return e==="v"?X3e(t):Y3e(t)},dU=function(e,t){return e==="v"?J3e(t):Z3e(t)},Q3e=function(e,t){return e==="h"&&t==="rtl"?-1:1},eEe=function(e,t,r,n,i){var a=Q3e(e,window.getComputedStyle(t).direction),o=a*n,s=r.target,l=t.contains(s),c=!1,u=o>0,f=0,d=0;do{if(!s)break;var h=dU(e,s),v=h[0],p=h[1],m=h[2],y=p-m-a*v;(v||y)&&fU(e,s)&&(f+=y,d+=v);var x=s.parentNode;s=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&Math.abs(f)<1||!u&&Math.abs(d)<1)&&(c=!0),c},_v=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Lj=function(e){return[e.deltaX,e.deltaY]},Ij=function(e){return e&&"current"in e?e.current:e},tEe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},rEe=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} `)},nEe=0,bd=[];function iEe(e){var t=E.useRef([]),r=E.useRef([0,0]),n=E.useRef(),i=E.useState(nEe++)[0],a=E.useState(cU)[0],o=E.useRef(e);E.useEffect(function(){o.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var p=E3e([e.lockRef.current],(e.shards||[]).map(Ij),!0).filter(Boolean);return p.forEach(function(m){return m.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(m){return m.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=E.useCallback(function(p,m){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var y=_v(p),x=r.current,w="deltaX"in p?p.deltaX:x[0]-y[0],S="deltaY"in p?p.deltaY:x[1]-y[1],A,N=p.target,P=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in p&&P==="h"&&N.type==="range")return!1;var j=window.getSelection(),C=j&&j.anchorNode,R=C?C===N||C.contains(N):!1;if(R)return!1;var L=jj(P,N);if(!L)return!0;if(L?A=P:(A=P==="v"?"h":"v",L=jj(P,N)),!L)return!1;if(!n.current&&"changedTouches"in p&&(w||S)&&(n.current=A),!A)return!0;var I=n.current||A;return eEe(I,m,p,I==="h"?w:S)},[]),l=E.useCallback(function(p){var m=p;if(!(!bd.length||bd[bd.length-1]!==a)){var y="deltaY"in m?Lj(m):_v(m),x=t.current.filter(function(A){return A.name===m.type&&(A.target===m.target||m.target===A.shadowParent)&&tEe(A.delta,y)})[0];if(x&&x.should){m.cancelable&&m.preventDefault();return}if(!x){var w=(o.current.shards||[]).map(Ij).filter(Boolean).filter(function(A){return A.contains(m.target)}),S=w.length>0?s(m,w[0]):!o.current.noIsolation;S&&m.cancelable&&m.preventDefault()}}},[]),c=E.useCallback(function(p,m,y,x){var w={name:p,delta:m,target:y,should:x,shadowParent:aEe(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),u=E.useCallback(function(p){r.current=_v(p),n.current=void 0},[]),f=E.useCallback(function(p){c(p.type,Lj(p),p.target,s(p,e.lockRef.current))},[]),d=E.useCallback(function(p){c(p.type,_v(p),p.target,s(p,e.lockRef.current))},[]);E.useEffect(function(){return bd.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,xd),document.addEventListener("touchmove",l,xd),document.addEventListener("touchstart",u,xd),function(){bd=bd.filter(function(p){return p!==a}),document.removeEventListener("wheel",l,xd),document.removeEventListener("touchmove",l,xd),document.removeEventListener("touchstart",u,xd)}},[]);var h=e.removeScrollBar,v=e.inert;return E.createElement(E.Fragment,null,v?E.createElement(a,{styles:rEe(i)}):null,h?E.createElement(q3e,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function aEe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const oEe=I3e(lU,iEe);var qN=E.forwardRef(function(e,t){return E.createElement(Gb,Rs({},e,{ref:t,sideCar:oEe}))});qN.classNames=Gb.classNames;var sEe=[" ","Enter","ArrowUp","ArrowDown"],lEe=[" ","Enter"],kf="Select",[qb,Kb,cEe]=k_e(kf),[kp]=j_e(kf,[cEe,G9]),Xb=G9(),[uEe,Au]=kp(kf),[fEe,dEe]=kp(kf),hU=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:l,dir:c,name:u,autoComplete:f,disabled:d,required:h,form:v}=e,p=Xb(t),[m,y]=E.useState(null),[x,w]=E.useState(null),[S,A]=E.useState(!1),N=D_e(c),[P,j]=Gx({prop:n,defaultProp:i??!1,onChange:a,caller:kf}),[C,R]=Gx({prop:o,defaultProp:s,onChange:l,caller:kf}),L=E.useRef(null),I=m?v||!!m.closest("form"):!0,[B,z]=E.useState(new Set),V=Array.from(B).map(Q=>Q.props.value).join(";");return g.jsx(H4e,{...p,children:g.jsxs(uEe,{required:h,scope:t,trigger:m,onTriggerChange:y,valueNode:x,onValueNodeChange:w,valueNodeHasChildren:S,onValueNodeHasChildrenChange:A,contentId:sh(),value:C,onValueChange:R,open:P,onOpenChange:j,dir:N,triggerPointerDownPosRef:L,disabled:d,children:[g.jsx(qb.Provider,{scope:t,children:g.jsx(fEe,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(Q=>{z(ae=>new Set(ae).add(Q))},[]),onNativeOptionRemove:E.useCallback(Q=>{z(ae=>{const K=new Set(ae);return K.delete(Q),K})},[]),children:r})}),I?g.jsxs(DU,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:f,value:C,onChange:Q=>R(Q.target.value),disabled:d,form:v,children:[C===void 0?g.jsx("option",{value:""}):null,Array.from(B)]},V):null]})})};hU.displayName=kf;var pU="SelectTrigger",mU=E.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...i}=e,a=Xb(r),o=Au(pU,r),s=o.disabled||n,l=gn(t,o.onTriggerChange),c=Kb(r),u=E.useRef("touch"),[f,d,h]=MU(p=>{const m=c().filter(w=>!w.disabled),y=m.find(w=>w.value===o.value),x=FU(m,p,y);x!==void 0&&o.onValueChange(x.value)}),v=p=>{s||(o.onOpenChange(!0),h()),p&&(o.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)})};return g.jsx(V4e,{asChild:!0,...a,children:g.jsx(lo.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":RU(o.value)?"":void 0,...i,ref:l,onClick:$r(i.onClick,p=>{p.currentTarget.focus(),u.current!=="mouse"&&v(p)}),onPointerDown:$r(i.onPointerDown,p=>{u.current=p.pointerType;const m=p.target;m.hasPointerCapture(p.pointerId)&&m.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&p.pointerType==="mouse"&&(v(p),p.preventDefault())}),onKeyDown:$r(i.onKeyDown,p=>{const m=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&d(p.key),!(m&&p.key===" ")&&sEe.includes(p.key)&&(v(),p.preventDefault())})})})});mU.displayName=pU;var gU="SelectValue",vU=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...s}=e,l=Au(gU,r),{onValueNodeHasChildrenChange:c}=l,u=a!==void 0,f=gn(t,l.onValueNodeChange);return si(()=>{c(u)},[c,u]),g.jsx(lo.span,{...s,ref:f,style:{pointerEvents:"none"},children:RU(l.value)?g.jsx(g.Fragment,{children:o}):a})});vU.displayName=gU;var hEe="SelectIcon",yU=E.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...i}=e;return g.jsx(lo.span,{"aria-hidden":!0,...i,ref:t,children:n||"▼"})});yU.displayName=hEe;var pEe="SelectPortal",xU=e=>g.jsx(GN,{asChild:!0,...e});xU.displayName=pEe;var jf="SelectContent",bU=E.forwardRef((e,t)=>{const r=Au(jf,e.__scopeSelect),[n,i]=E.useState();if(si(()=>{i(new DocumentFragment)},[]),!r.open){const a=n;return a?Yl.createPortal(g.jsx(wU,{scope:e.__scopeSelect,children:g.jsx(qb.Slot,{scope:e.__scopeSelect,children:g.jsx("div",{children:e.children})})}),a):null}return g.jsx(SU,{...e,ref:t})});bU.displayName=jf;var ts=10,[wU,Eu]=kp(jf),mEe="SelectContentImpl",gEe=tU("SelectContent.RemoveScroll"),SU=E.forwardRef((e,t)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:m,...y}=e,x=Au(jf,r),[w,S]=E.useState(null),[A,N]=E.useState(null),P=gn(t,se=>S(se)),[j,C]=E.useState(null),[R,L]=E.useState(null),I=Kb(r),[B,z]=E.useState(!1),V=E.useRef(!1);E.useEffect(()=>{if(w)return aU(w)},[w]),C9();const Q=E.useCallback(se=>{const[ve,...oe]=I().map(me=>me.ref.current),[pe]=oe.slice(-1),Se=document.activeElement;for(const me of se)if(me===Se||(me==null||me.scrollIntoView({block:"nearest"}),me===ve&&A&&(A.scrollTop=0),me===pe&&A&&(A.scrollTop=A.scrollHeight),me==null||me.focus(),document.activeElement!==Se))return},[I,A]),ae=E.useCallback(()=>Q([j,w]),[Q,j,w]);E.useEffect(()=>{B&&ae()},[B,ae]);const{onOpenChange:K,triggerPointerDownPosRef:re}=x;E.useEffect(()=>{if(w){let se={x:0,y:0};const ve=pe=>{var Se,me;se={x:Math.abs(Math.round(pe.pageX)-(((Se=re.current)==null?void 0:Se.x)??0)),y:Math.abs(Math.round(pe.pageY)-(((me=re.current)==null?void 0:me.y)??0))}},oe=pe=>{se.x<=10&&se.y<=10?pe.preventDefault():w.contains(pe.target)||K(!1),document.removeEventListener("pointermove",ve),re.current=null};return re.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",oe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",oe,{capture:!0})}}},[w,K,re]),E.useEffect(()=>{const se=()=>K(!1);return window.addEventListener("blur",se),window.addEventListener("resize",se),()=>{window.removeEventListener("blur",se),window.removeEventListener("resize",se)}},[K]);const[ye,xe]=MU(se=>{const ve=I().filter(Se=>!Se.disabled),oe=ve.find(Se=>Se.ref.current===document.activeElement),pe=FU(ve,se,oe);pe&&setTimeout(()=>pe.ref.current.focus())}),O=E.useCallback((se,ve,oe)=>{const pe=!V.current&&!oe;(x.value!==void 0&&x.value===ve||pe)&&(C(se),pe&&(V.current=!0))},[x.value]),M=E.useCallback(()=>w==null?void 0:w.focus(),[w]),F=E.useCallback((se,ve,oe)=>{const pe=!V.current&&!oe;(x.value!==void 0&&x.value===ve||pe)&&L(se)},[x.value]),U=n==="popper"?G4:_U,Z=U===G4?{side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:v,hideWhenDetached:p,avoidCollisions:m}:{};return g.jsx(wU,{scope:r,content:w,viewport:A,onViewportChange:N,itemRefCallback:O,selectedItem:j,onItemLeave:M,itemTextRefCallback:F,focusSelectedItem:ae,selectedItemText:R,position:n,isPositioned:B,searchRef:ye,children:g.jsx(qN,{as:gEe,allowPinchZoom:!0,children:g.jsx(MN,{asChild:!0,trapped:x.open,onMountAutoFocus:se=>{se.preventDefault()},onUnmountAutoFocus:$r(i,se=>{var ve;(ve=x.trigger)==null||ve.focus({preventScroll:!0}),se.preventDefault()}),children:g.jsx(RN,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:se=>se.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:g.jsx(U,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:se=>se.preventDefault(),...y,...Z,onPlaced:()=>z(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:$r(y.onKeyDown,se=>{const ve=se.ctrlKey||se.altKey||se.metaKey;if(se.key==="Tab"&&se.preventDefault(),!ve&&se.key.length===1&&xe(se.key),["ArrowUp","ArrowDown","Home","End"].includes(se.key)){let pe=I().filter(Se=>!Se.disabled).map(Se=>Se.ref.current);if(["ArrowUp","End"].includes(se.key)&&(pe=pe.slice().reverse()),["ArrowUp","ArrowDown"].includes(se.key)){const Se=se.target,me=pe.indexOf(Se);pe=pe.slice(me+1)}setTimeout(()=>Q(pe)),se.preventDefault()}})})})})})})});SU.displayName=mEe;var vEe="SelectItemAlignedPosition",_U=E.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:n,...i}=e,a=Au(jf,r),o=Eu(jf,r),[s,l]=E.useState(null),[c,u]=E.useState(null),f=gn(t,P=>u(P)),d=Kb(r),h=E.useRef(!1),v=E.useRef(!0),{viewport:p,selectedItem:m,selectedItemText:y,focusSelectedItem:x}=o,w=E.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&c&&p&&m&&y){const P=a.trigger.getBoundingClientRect(),j=c.getBoundingClientRect(),C=a.valueNode.getBoundingClientRect(),R=y.getBoundingClientRect();if(a.dir!=="rtl"){const Se=R.left-j.left,me=C.left-Se,Le=P.left-me,ie=P.width+Le,Y=Math.max(ie,j.width),Ie=window.innerWidth-ts,De=uj(me,[ts,Math.max(ts,Ie-Y)]);s.style.minWidth=ie+"px",s.style.left=De+"px"}else{const Se=j.right-R.right,me=window.innerWidth-C.right-Se,Le=window.innerWidth-P.right-me,ie=P.width+Le,Y=Math.max(ie,j.width),Ie=window.innerWidth-ts,De=uj(me,[ts,Math.max(ts,Ie-Y)]);s.style.minWidth=ie+"px",s.style.right=De+"px"}const L=d(),I=window.innerHeight-ts*2,B=p.scrollHeight,z=window.getComputedStyle(c),V=parseInt(z.borderTopWidth,10),Q=parseInt(z.paddingTop,10),ae=parseInt(z.borderBottomWidth,10),K=parseInt(z.paddingBottom,10),re=V+Q+B+K+ae,ye=Math.min(m.offsetHeight*5,re),xe=window.getComputedStyle(p),O=parseInt(xe.paddingTop,10),M=parseInt(xe.paddingBottom,10),F=P.top+P.height/2-ts,U=I-F,Z=m.offsetHeight/2,se=m.offsetTop+Z,ve=V+Q+se,oe=re-ve;if(ve<=F){const Se=L.length>0&&m===L[L.length-1].ref.current;s.style.bottom="0px";const me=c.clientHeight-p.offsetTop-p.offsetHeight,Le=Math.max(U,Z+(Se?M:0)+me+ae),ie=ve+Le;s.style.height=ie+"px"}else{const Se=L.length>0&&m===L[0].ref.current;s.style.top="0px";const Le=Math.max(F,V+p.offsetTop+(Se?O:0)+Z)+oe;s.style.height=Le+"px",p.scrollTop=ve-F+p.offsetTop}s.style.margin=`${ts}px 0`,s.style.minHeight=ye+"px",s.style.maxHeight=I+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,a.trigger,a.valueNode,s,c,p,m,y,a.dir,n]);si(()=>w(),[w]);const[S,A]=E.useState();si(()=>{c&&A(window.getComputedStyle(c).zIndex)},[c]);const N=E.useCallback(P=>{P&&v.current===!0&&(w(),x==null||x(),v.current=!1)},[w,x]);return g.jsx(xEe,{scope:r,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:N,children:g.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:g.jsx(lo.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});_U.displayName=vEe;var yEe="SelectPopperPosition",G4=E.forwardRef((e,t)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=ts,...a}=e,o=Xb(r);return g.jsx(G4e,{...o,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});G4.displayName=yEe;var[xEe,KN]=kp(jf,{}),q4="SelectViewport",AU=E.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:n,...i}=e,a=Eu(q4,r),o=KN(q4,r),s=gn(t,a.onViewportChange),l=E.useRef(0);return g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),g.jsx(qb.Slot,{scope:r,children:g.jsx(lo.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:$r(i.onScroll,c=>{const u=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d!=null&&d.current&&f){const h=Math.abs(l.current-u.scrollTop);if(h>0){const v=window.innerHeight-ts*2,p=parseFloat(f.style.minHeight),m=parseFloat(f.style.height),y=Math.max(p,m);if(y<v){const x=y+h,w=Math.min(v,x),S=x-w;f.style.height=w+"px",f.style.bottom==="0px"&&(u.scrollTop=S>0?S:0,f.style.justifyContent="flex-end")}}}l.current=u.scrollTop})})})]})});AU.displayName=q4;var EU="SelectGroup",[bEe,wEe]=kp(EU),SEe=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=sh();return g.jsx(bEe,{scope:r,id:i,children:g.jsx(lo.div,{role:"group","aria-labelledby":i,...n,ref:t})})});SEe.displayName=EU;var NU="SelectLabel",PU=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=wEe(NU,r);return g.jsx(lo.div,{id:i.id,...n,ref:t})});PU.displayName=NU;var qx="SelectItem",[_Ee,TU]=kp(qx),CU=E.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...o}=e,s=Au(qx,r),l=Eu(qx,r),c=s.value===n,[u,f]=E.useState(a??""),[d,h]=E.useState(!1),v=gn(t,x=>{var w;return(w=l.itemRefCallback)==null?void 0:w.call(l,x,n,i)}),p=sh(),m=E.useRef("touch"),y=()=>{i||(s.onValueChange(n),s.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return g.jsx(_Ee,{scope:r,value:n,disabled:i,textId:p,isSelected:c,onItemTextChange:E.useCallback(x=>{f(w=>w||((x==null?void 0:x.textContent)??"").trim())},[]),children:g.jsx(qb.ItemSlot,{scope:r,value:n,disabled:i,textValue:u,children:g.jsx(lo.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":c&&d,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:v,onFocus:$r(o.onFocus,()=>h(!0)),onBlur:$r(o.onBlur,()=>h(!1)),onClick:$r(o.onClick,()=>{m.current!=="mouse"&&y()}),onPointerUp:$r(o.onPointerUp,()=>{m.current==="mouse"&&y()}),onPointerDown:$r(o.onPointerDown,x=>{m.current=x.pointerType}),onPointerMove:$r(o.onPointerMove,x=>{var w;m.current=x.pointerType,i?(w=l.onItemLeave)==null||w.call(l):m.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:$r(o.onPointerLeave,x=>{var w;x.currentTarget===document.activeElement&&((w=l.onItemLeave)==null||w.call(l))}),onKeyDown:$r(o.onKeyDown,x=>{var S;((S=l.searchRef)==null?void 0:S.current)!==""&&x.key===" "||(lEe.includes(x.key)&&y(),x.key===" "&&x.preventDefault())})})})})});CU.displayName=qx;var W0="SelectItemText",OU=E.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:i,...a}=e,o=Au(W0,r),s=Eu(W0,r),l=TU(W0,r),c=dEe(W0,r),[u,f]=E.useState(null),d=gn(t,y=>f(y),l.onItemTextChange,y=>{var x;return(x=s.itemTextRefCallback)==null?void 0:x.call(s,y,l.value,l.disabled)}),h=u==null?void 0:u.textContent,v=E.useMemo(()=>g.jsx("option",{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:m}=c;return si(()=>(p(v),()=>m(v)),[p,m,v]),g.jsxs(g.Fragment,{children:[g.jsx(lo.span,{id:l.textId,...a,ref:d}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Yl.createPortal(a.children,o.valueNode):null]})});OU.displayName=W0;var kU="SelectItemIndicator",jU=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return TU(kU,r).isSelected?g.jsx(lo.span,{"aria-hidden":!0,...n,ref:t}):null});jU.displayName=kU;var K4="SelectScrollUpButton",AEe=E.forwardRef((e,t)=>{const r=Eu(K4,e.__scopeSelect),n=KN(K4,e.__scopeSelect),[i,a]=E.useState(!1),o=gn(t,n.onScrollButtonChange);return si(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollTop>0;a(c)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?g.jsx(LU,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop-l.offsetHeight)}}):null});AEe.displayName=K4;var X4="SelectScrollDownButton",EEe=E.forwardRef((e,t)=>{const r=Eu(X4,e.__scopeSelect),n=KN(X4,e.__scopeSelect),[i,a]=E.useState(!1),o=gn(t,n.onScrollButtonChange);return si(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=l.scrollHeight-l.clientHeight,u=Math.ceil(l.scrollTop)<c;a(u)};const l=r.viewport;return s(),l.addEventListener("scroll",s),()=>l.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),i?g.jsx(LU,{...e,ref:o,onAutoScroll:()=>{const{viewport:s,selectedItem:l}=r;s&&l&&(s.scrollTop=s.scrollTop+l.offsetHeight)}}):null});EEe.displayName=X4;var LU=E.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...i}=e,a=Eu("SelectScrollButton",r),o=E.useRef(null),s=Kb(r),l=E.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return E.useEffect(()=>()=>l(),[l]),si(()=>{var u;const c=s().find(f=>f.ref.current===document.activeElement);(u=c==null?void 0:c.ref.current)==null||u.scrollIntoView({block:"nearest"})},[s]),g.jsx(lo.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:$r(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:$r(i.onPointerMove,()=>{var c;(c=a.onItemLeave)==null||c.call(a),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:$r(i.onPointerLeave,()=>{l()})})}),NEe="SelectSeparator",IU=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return g.jsx(lo.div,{"aria-hidden":!0,...n,ref:t})});IU.displayName=NEe;var Y4="SelectArrow",PEe=E.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,i=Xb(r),a=Au(Y4,r),o=Eu(Y4,r);return a.open&&o.position==="popper"?g.jsx(q4e,{...i,...n,ref:t}):null});PEe.displayName=Y4;var TEe="SelectBubbleInput",DU=E.forwardRef(({__scopeSelect:e,value:t,...r},n)=>{const i=E.useRef(null),a=gn(n,i),o=rU(t);return E.useEffect(()=>{const s=i.current;if(!s)return;const l=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==t&&u){const f=new Event("change",{bubbles:!0});u.call(s,t),s.dispatchEvent(f)}},[o,t]),g.jsx(lo.select,{...r,style:{...nU,...r.style},ref:a,defaultValue:t})});DU.displayName=TEe;function RU(e){return e===""||e===void 0}function MU(e){const t=lu(e),r=E.useRef(""),n=E.useRef(0),i=E.useCallback(o=>{const s=r.current+o;t(s),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(s)},[t]),a=E.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function FU(e,t,r){const i=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=r?e.indexOf(r):-1;let o=CEe(e,Math.max(a,0));i.length===1&&(o=o.filter(c=>c!==r));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function CEe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var OEe=hU,$U=mU,kEe=vU,jEe=yU,LEe=xU,BU=bU,IEe=AU,UU=PU,WU=CU,DEe=OU,REe=jU,zU=IU;const jn=OEe,Ln=kEe,bn=E.forwardRef(({className:e,children:t,...r},n)=>g.jsxs($U,{ref:n,className:Yr("flex h-10 w-full items-center justify-between rounded-xl border border-border bg-surface px-3 py-2.5 text-sm text-foreground ring-offset-background placeholder:text-text-muted focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-200",e),...r,children:[t,g.jsx(jEe,{asChild:!0,children:g.jsx(hZ,{className:"h-4 w-4 opacity-50"})})]}));bn.displayName=$U.displayName;const wn=E.forwardRef(({className:e,children:t,position:r="popper",...n},i)=>g.jsx(LEe,{children:g.jsx(BU,{ref:i,className:Yr("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border border-border bg-card shadow-card-hover data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",r==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:r,...n,children:g.jsx(IEe,{className:Yr("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t})})}));wn.displayName=BU.displayName;const MEe=E.forwardRef(({className:e,...t},r)=>g.jsx(UU,{ref:r,className:Yr("py-1.5 pl-8 pr-2 text-sm font-semibold text-text-secondary",e),...t}));MEe.displayName=UU.displayName;const Vr=E.forwardRef(({className:e,children:t,...r},n)=>g.jsxs(WU,{ref:n,className:Yr("relative flex w-full cursor-default select-none items-center rounded-lg py-2.5 pl-10 pr-3 text-sm outline-none focus:bg-surface-light focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 transition-colors duration-150",e),...r,children:[g.jsx("span",{className:"absolute left-3 flex h-4 w-4 items-center justify-center",children:g.jsx(REe,{children:g.jsx(Q0,{className:"h-4 w-4 text-primary"})})}),g.jsx(DEe,{children:t})]}));Vr.displayName=WU.displayName;const FEe=E.forwardRef(({className:e,...t},r)=>g.jsx(zU,{ref:r,className:Yr("-mx-1 my-1 h-px bg-border",e),...t}));FEe.displayName=zU.displayName;function $Ee(e,t){const r=E.createContext(t),n=a=>{const{children:o,...s}=a,l=E.useMemo(()=>s,Object.values(s));return g.jsx(r.Provider,{value:l,children:o})};n.displayName=e+"Provider";function i(a){const o=E.useContext(r);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[n,i]}function BEe(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),l=r.length;r=[...r,o];const c=f=>{var y;const{scope:d,children:h,...v}=f,p=((y=d==null?void 0:d[e])==null?void 0:y[l])||s,m=E.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:m,children:h})};c.displayName=a+"Provider";function u(f,d){var p;const h=((p=d==null?void 0:d[e])==null?void 0:p[l])||s,v=E.useContext(h);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,UEe(i,...t)]}function UEe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function WEe(e,t){return E.useReducer((r,n)=>t[r][n]??r,e)}var e1=e=>{const{present:t,children:r}=e,n=zEe(t),i=typeof r=="function"?r({present:n.isPresent}):E.Children.only(r),a=gn(n.ref,HEe(i));return typeof r=="function"||n.isPresent?E.cloneElement(i,{ref:a}):null};e1.displayName="Presence";function zEe(e){const[t,r]=E.useState(),n=E.useRef(null),i=E.useRef(e),a=E.useRef("none"),o=e?"mounted":"unmounted",[s,l]=WEe(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const c=Av(n.current);a.current=s==="mounted"?c:"none"},[s]),si(()=>{const c=n.current,u=i.current;if(u!==e){const d=a.current,h=Av(c);e?l("MOUNT"):h==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),si(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,f=h=>{const p=Av(n.current).includes(CSS.escape(h.animationName));if(h.target===t&&p&&(l("ANIMATION_END"),!i.current)){const m=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=m)})}},d=h=>{h.target===t&&(a.current=Av(n.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:E.useCallback(c=>{n.current=c?getComputedStyle(c):null,r(c)},[])}}function Av(e){return(e==null?void 0:e.animationName)||"none"}function HEe(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function HU(e){const t=VEe(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find(qEe);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function VEe(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=XEe(i),s=KEe(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var GEe=Symbol("radix.slottable");function qEe(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===GEe}function KEe(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function XEe(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var YEe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],t1=YEe.reduce((e,t)=>{const r=HU(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Yb="Dialog",[VU]=BEe(Yb),[JEe,xs]=VU(Yb),GU=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=E.useRef(null),l=E.useRef(null),[c,u]=Gx({prop:n,defaultProp:i??!1,onChange:a,caller:Yb});return g.jsx(JEe,{scope:t,triggerRef:s,contentRef:l,contentId:sh(),titleId:sh(),descriptionId:sh(),open:c,onOpenChange:u,onOpenToggle:E.useCallback(()=>u(f=>!f),[u]),modal:o,children:r})};GU.displayName=Yb;var qU="DialogTrigger",ZEe=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xs(qU,r),a=gn(t,i.triggerRef);return g.jsx(t1.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":JN(i.open),...n,ref:a,onClick:$r(e.onClick,i.onOpenToggle)})});ZEe.displayName=qU;var XN="DialogPortal",[QEe,KU]=VU(XN,{forceMount:void 0}),XU=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:i}=e,a=xs(XN,t);return g.jsx(QEe,{scope:t,forceMount:r,children:E.Children.map(n,o=>g.jsx(e1,{present:r||a.open,children:g.jsx(GN,{asChild:!0,container:i,children:o})}))})};XU.displayName=XN;var Kx="DialogOverlay",YU=E.forwardRef((e,t)=>{const r=KU(Kx,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=xs(Kx,e.__scopeDialog);return a.modal?g.jsx(e1,{present:n||a.open,children:g.jsx(tNe,{...i,ref:t})}):null});YU.displayName=Kx;var eNe=HU("DialogOverlay.RemoveScroll"),tNe=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xs(Kx,r);return g.jsx(qN,{as:eNe,allowPinchZoom:!0,shards:[i.contentRef],children:g.jsx(t1.div,{"data-state":JN(i.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})}),Lf="DialogContent",JU=E.forwardRef((e,t)=>{const r=KU(Lf,e.__scopeDialog),{forceMount:n=r.forceMount,...i}=e,a=xs(Lf,e.__scopeDialog);return g.jsx(e1,{present:n||a.open,children:a.modal?g.jsx(rNe,{...i,ref:t}):g.jsx(nNe,{...i,ref:t})})});JU.displayName=Lf;var rNe=E.forwardRef((e,t)=>{const r=xs(Lf,e.__scopeDialog),n=E.useRef(null),i=gn(t,r.contentRef,n);return E.useEffect(()=>{const a=n.current;if(a)return aU(a)},[]),g.jsx(ZU,{...e,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$r(e.onCloseAutoFocus,a=>{var o;a.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:$r(e.onPointerDownOutside,a=>{const o=a.detail.originalEvent,s=o.button===0&&o.ctrlKey===!0;(o.button===2||s)&&a.preventDefault()}),onFocusOutside:$r(e.onFocusOutside,a=>a.preventDefault())})}),nNe=E.forwardRef((e,t)=>{const r=xs(Lf,e.__scopeDialog),n=E.useRef(!1),i=E.useRef(!1);return g.jsx(ZU,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var o,s;(o=e.onCloseAutoFocus)==null||o.call(e,a),a.defaultPrevented||(n.current||(s=r.triggerRef.current)==null||s.focus(),a.preventDefault()),n.current=!1,i.current=!1},onInteractOutside:a=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,a),a.defaultPrevented||(n.current=!0,a.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const o=a.target;((c=r.triggerRef.current)==null?void 0:c.contains(o))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&i.current&&a.preventDefault()}})}),ZU=E.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=xs(Lf,r),l=E.useRef(null),c=gn(t,l);return C9(),g.jsxs(g.Fragment,{children:[g.jsx(MN,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:a,children:g.jsx(RN,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":JN(s.open),...o,ref:c,onDismiss:()=>s.onOpenChange(!1)})}),g.jsxs(g.Fragment,{children:[g.jsx(iNe,{titleId:s.titleId}),g.jsx(oNe,{contentRef:l,descriptionId:s.descriptionId})]})]})}),YN="DialogTitle",QU=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xs(YN,r);return g.jsx(t1.h2,{id:i.titleId,...n,ref:t})});QU.displayName=YN;var eW="DialogDescription",tW=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xs(eW,r);return g.jsx(t1.p,{id:i.descriptionId,...n,ref:t})});tW.displayName=eW;var rW="DialogClose",nW=E.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,i=xs(rW,r);return g.jsx(t1.button,{type:"button",...n,ref:t,onClick:$r(e.onClick,()=>i.onOpenChange(!1))})});nW.displayName=rW;function JN(e){return e?"open":"closed"}var iW="DialogTitleWarning",[qBe,aW]=$Ee(iW,{contentName:Lf,titleName:YN,docsSlug:"dialog"}),iNe=({titleId:e})=>{const t=aW(iW),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},aNe="DialogDescriptionWarning",oNe=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${aW(aNe).contentName}}.`;return E.useEffect(()=>{var a;const i=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},sNe=GU,lNe=XU,oW=YU,sW=JU,lW=QU,cW=tW,cNe=nW;const ip=sNe,uNe=lNe,uW=E.forwardRef(({className:e,...t},r)=>g.jsx(oW,{ref:r,className:Yr("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));uW.displayName=oW.displayName;const If=E.forwardRef(({className:e,children:t,...r},n)=>g.jsxs(uNe,{children:[g.jsx(uW,{}),g.jsxs(sW,{ref:n,className:Yr("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-border bg-card p-6 shadow-card-hover duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-2xl",e),...r,children:[t,g.jsxs(cNe,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-surface-light",children:[g.jsx(TE,{className:"h-4 w-4 text-foreground"}),g.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));If.displayName=sW.displayName;const Df=({className:e,...t})=>g.jsx("div",{className:Yr("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Df.displayName="DialogHeader";const Rf=({className:e,...t})=>g.jsx("div",{className:Yr("flex flex-col-reverse sm:justify-end sm:flex-row sm:space-x-2",e),...t});Rf.displayName="DialogFooter";const Mf=E.forwardRef(({className:e,...t},r)=>g.jsx(lW,{ref:r,className:Yr("text-lg font-semibold leading-none tracking-tight text-foreground",e),...t}));Mf.displayName=lW.displayName;const fNe=E.forwardRef(({className:e,...t},r)=>g.jsx(cW,{ref:r,className:Yr("text-sm text-text-secondary",e),...t}));fNe.displayName=cW.displayName;function dNe(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o),l=r.length;r=[...r,o];const c=f=>{var y;const{scope:d,children:h,...v}=f,p=((y=d==null?void 0:d[e])==null?void 0:y[l])||s,m=E.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:m,children:h})};c.displayName=a+"Provider";function u(f,d){var p;const h=((p=d==null?void 0:d[e])==null?void 0:p[l])||s,v=E.useContext(h);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,hNe(i,...t)]}function hNe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function pNe(e){const t=mNe(e),r=E.forwardRef((n,i)=>{const{children:a,...o}=n,s=E.Children.toArray(a),l=s.find(vNe);if(l){const c=l.props.children,u=s.map(f=>f===l?E.Children.count(c)>1?E.Children.only(null):E.isValidElement(c)?c.props.children:null:f);return g.jsx(t,{...o,ref:i,children:E.isValidElement(c)?E.cloneElement(c,void 0,u):null})}return g.jsx(t,{...o,ref:i,children:a})});return r.displayName=`${e}.Slot`,r}function mNe(e){const t=E.forwardRef((r,n)=>{const{children:i,...a}=r;if(E.isValidElement(i)){const o=xNe(i),s=yNe(a,i.props);return i.type!==E.Fragment&&(s.ref=n?Mo(n,o):o),E.cloneElement(i,s)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var gNe=Symbol("radix.slottable");function vNe(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===gNe}function yNe(e,t){const r={...t};for(const n in t){const i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...s)=>{const l=a(...s);return i(...s),l}:i&&(r[n]=i):n==="style"?r[n]={...i,...a}:n==="className"&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}function xNe(e){var n,i;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var bNe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ZN=bNe.reduce((e,t)=>{const r=pNe(`Primitive.${t}`),n=E.forwardRef((i,a)=>{const{asChild:o,...s}=i,l=o?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(l,{...s,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),Jb="Checkbox",[wNe]=dNe(Jb),[SNe,QN]=wNe(Jb);function _Ne(e){const{__scopeCheckbox:t,checked:r,children:n,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:l,required:c,value:u="on",internal_do_not_use_render:f}=e,[d,h]=Gx({prop:r,defaultProp:i??!1,onChange:l,caller:Jb}),[v,p]=E.useState(null),[m,y]=E.useState(null),x=E.useRef(!1),w=v?!!o||!!v.closest("form"):!0,S={checked:d,disabled:a,setChecked:h,control:v,setControl:p,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:ru(i)?!1:i,isFormControl:w,bubbleInput:m,setBubbleInput:y};return g.jsx(SNe,{scope:t,...S,children:ANe(f)?f(S):n})}var fW="CheckboxTrigger",dW=E.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:r,...n},i)=>{const{control:a,value:o,disabled:s,checked:l,required:c,setControl:u,setChecked:f,hasConsumerStoppedPropagationRef:d,isFormControl:h,bubbleInput:v}=QN(fW,e),p=gn(i,u),m=E.useRef(l);return E.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const x=()=>f(m.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[a,f]),g.jsx(ZN.button,{type:"button",role:"checkbox","aria-checked":ru(l)?"mixed":l,"aria-required":c,"data-state":vW(l),"data-disabled":s?"":void 0,disabled:s,value:o,...n,ref:p,onKeyDown:$r(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:$r(r,y=>{f(x=>ru(x)?!0:!x),v&&h&&(d.current=y.isPropagationStopped(),d.current||y.stopPropagation())})})});dW.displayName=fW;var eP=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:a,required:o,disabled:s,value:l,onCheckedChange:c,form:u,...f}=e;return g.jsx(_Ne,{__scopeCheckbox:r,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:c,name:n,form:u,value:l,internal_do_not_use_render:({isFormControl:d})=>g.jsxs(g.Fragment,{children:[g.jsx(dW,{...f,ref:t,__scopeCheckbox:r}),d&&g.jsx(gW,{__scopeCheckbox:r})]})})});eP.displayName=Jb;var hW="CheckboxIndicator",pW=E.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...i}=e,a=QN(hW,r);return g.jsx(e1,{present:n||ru(a.checked)||a.checked===!0,children:g.jsx(ZN.span,{"data-state":vW(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t,style:{pointerEvents:"none",...e.style}})})});pW.displayName=hW;var mW="CheckboxBubbleInput",gW=E.forwardRef(({__scopeCheckbox:e,...t},r)=>{const{control:n,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:o,required:s,disabled:l,name:c,value:u,form:f,bubbleInput:d,setBubbleInput:h}=QN(mW,e),v=gn(r,h),p=rU(a),m=H9(n);E.useEffect(()=>{const x=d;if(!x)return;const w=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(w,"checked").set,N=!i.current;if(p!==a&&A){const P=new Event("click",{bubbles:N});x.indeterminate=ru(a),A.call(x,ru(a)?!1:a),x.dispatchEvent(P)}},[d,p,a,i]);const y=E.useRef(ru(a)?!1:a);return g.jsx(ZN.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??y.current,required:s,disabled:l,name:c,value:u,form:f,...t,tabIndex:-1,ref:v,style:{...t.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gW.displayName=mW;function ANe(e){return typeof e=="function"}function ru(e){return e==="indeterminate"}function vW(e){return ru(e)?"indeterminate":e?"checked":"unchecked"}const J4=E.forwardRef(({className:e,...t},r)=>g.jsx(eP,{ref:r,className:Yr("peer h-5 w-5 shrink-0 rounded-lg border border-border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-white",e),...t,children:g.jsx(pW,{className:Yr("flex items-center justify-center text-current"),children:g.jsx(Q0,{className:"h-4 w-4"})})}));J4.displayName=eP.displayName;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Xx={};Xx.version="0.18.5";var yW=1252,ENe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],xW=function(e){ENe.indexOf(e)!=-1&&(yW=e)};function NNe(){xW(1252)}var Sg=function(e){xW(e)};function PNe(){Sg(1200),NNe()}var Ev=function(t){return String.fromCharCode(t)},Dj=function(t){return String.fromCharCode(t)},Yx,$c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function _g(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0,c=0;c<e.length;)r=e.charCodeAt(c++),a=r>>2,n=e.charCodeAt(c++),o=(r&3)<<4|n>>4,i=e.charCodeAt(c++),s=(n&15)<<2|i>>6,l=i&63,isNaN(n)?s=l=64:isNaN(i)&&(l=64),t+=$c.charAt(a)+$c.charAt(o)+$c.charAt(s)+$c.charAt(l);return t}function Gl(e){var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)a=$c.indexOf(e.charAt(c++)),o=$c.indexOf(e.charAt(c++)),r=a<<2|o>>4,t+=String.fromCharCode(r),s=$c.indexOf(e.charAt(c++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=$c.indexOf(e.charAt(c++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var vr=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),ic=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 Ff(e){return vr?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Rj(e){return vr?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var ss=function(t){return vr?ic(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function Zb(e){if(typeof ArrayBuffer>"u")return ss(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function r1(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 TNe(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var ki=vr?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:ic(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 CNe(e){for(var t=[],r=0,n=e.length+250,i=Ff(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=Ff(65535),n=65530)}return t.push(i.slice(0,r)),ki(t)}var om=/\u0000/g,Nv=/[\u0001-\u0006]/g;function uh(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function ls(e,t){var r=""+e;return r.length>=t?r:Nn("0",t-r.length)+r}function tP(e,t){var r=""+e;return r.length>=t?r:Nn(" ",t-r.length)+r}function Jx(e,t){var r=""+e;return r.length>=t?r:r+Nn(" ",t-r.length)}function ONe(e,t){var r=""+Math.round(e);return r.length>=t?r:Nn("0",t-r.length)+r}function kNe(e,t){var r=""+e;return r.length>=t?r:Nn("0",t-r.length)+r}var Mj=Math.pow(2,32);function wd(e,t){if(e>Mj||e<-Mj)return ONe(e,t);var r=Math.round(e);return kNe(r,t)}function Zx(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 Fj=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],yS=[["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 jNe(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 Pn={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"秒 "'},$j={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},LNe={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 Qx(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,o=1,s=0,l=1,c=0,u=0,f=Math.floor(i);c<t&&(f=Math.floor(i),s=f*o+a,u=f*c+l,!(i-f<5e-8));)i=1/(i-f),a=o,o=s,l=c,c=u;if(u>t&&(c>t?(u=l,s=a):(u=c,s=o)),!r)return[0,n*s,u];var d=Math.floor(n*s/u);return[d,n*s-d*u,u]}function Pv(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=BNe(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 bW=new Date(1899,11,31,0,0,0),INe=bW.getTime(),DNe=new Date(1900,2,1,0,0,0);function wW(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=DNe&&(r+=24*60*60*1e3),(r-(INe+(e.getTimezoneOffset()-bW.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function rP(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function RNe(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function MNe(e){var t=e<0?12:11,r=rP(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function FNe(e){var t=rP(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function $Ne(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=MNe(e):t===10?r=e.toFixed(10).substr(0,12):r=FNe(e),rP(RNe(r.toUpperCase()))}function Z4(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):$Ne(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return fu(14,wW(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function BNe(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function UNe(e,t,r,n){var i="",a=0,o=0,s=r.y,l,c=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,c=2;break;default:l=s%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,c=t.length;break;case 3:return yS[r.m-1][1];case 5:return yS[r.m-1][0];default:return yS[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,c=t.length;break;case 3:return Fj[r.q][0];default:return Fj[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,c=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")?ls(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=ls(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}c=t.length===3?1:2;break;case 101:l=s,c=1;break}var u=c>0?ls(l,c):"";return u}function Bc(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 SW=/%/g;function WNe(e,t,r){var n=t.replace(SW,""),i=t.length-n.length;return jl(e,n,r*Math.pow(10,2*i))+Nn("%",i)}function zNe(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return jl(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function _W(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"-"+_W(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,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.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 AW=/# (\?+)( ?)\/( ?)(\d+)/;function HNe(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?Nn(" ",e[1].length+1+e[4].length):tP(o,e[1].length)+e[2]+"/"+e[3]+ls(s,e[4].length))}function VNe(e,t,r){return r+(t===0?"":""+t)+Nn(" ",e[1].length+2+e[4].length)}var EW=/^#*0*\.([0#]+)/,NW=/\).*[0#]/,PW=/\(###\) ###\\?-####/;function sa(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 Bj(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Uj(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 GNe(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function qNe(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function So(e,t,r){if(e.charCodeAt(0)===40&&!t.match(NW)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?So("n",n,r):"("+So("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return zNe(e,t,r);if(t.indexOf("%")!==-1)return WNe(e,t,r);if(t.indexOf("E")!==-1)return _W(t,r);if(t.charCodeAt(0)===36)return"$"+So(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+wd(l,t.length);if(t.match(/^[#?]+$/))return i=wd(r,0),i==="0"&&(i=""),i.length>t.length?i:sa(t.substr(0,t.length-i.length))+i;if(a=t.match(AW))return HNe(a,l,c);if(t.match(/^#+0+$/))return c+wd(l,t.length-t.indexOf("0"));if(a=t.match(EW))return i=Bj(r,a[1].length).replace(/^([^\.]+)$/,"$1."+sa(a[1])).replace(/\.$/,"."+sa(a[1])).replace(/\.(\d*)$/,function(v,p){return"."+p+Nn("0",sa(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+Bj(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 c+Bc(wd(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+So(e,t,-r):Bc(""+(Math.floor(r)+GNe(r,a[1].length)))+"."+ls(Uj(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return So(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=uh(So(e,t.replace(/[\\-]/g,""),r)),o=0,uh(uh(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return o<i.length?i.charAt(o++):v==="0"?"0":""}));if(t.match(PW))return i=So(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=Qx(l,Math.pow(10,o)-1,!1),i=""+c,u=jl("n",a[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=Jx(s[2],o),u.length<a[4].length&&(u=sa(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=Qx(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?tP(s[1],o)+a[2]+"/"+a[3]+Jx(s[2],o):Nn(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=wd(r,0),t.length<=i.length?i:sa(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 sa(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return o=Uj(r,a[1].length),r<0?"-"+So(e,t,-r):Bc(qNe(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?ls(0,3-v.length):"")+v})+"."+ls(o,a[1].length);switch(t){case"###,##0.00":return So(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var h=Bc(wd(l,0));return h!=="0"?c+h:"";case"###,###.00":return So(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return So(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function KNe(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return jl(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function XNe(e,t,r){var n=t.replace(SW,""),i=t.length-n.length;return jl(e,n,r*Math.pow(10,2*i))+Nn("%",i)}function TW(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"-"+TW(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=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.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 ks(e,t,r){if(e.charCodeAt(0)===40&&!t.match(NW)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ks("n",n,r):"("+ks("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return KNe(e,t,r);if(t.indexOf("%")!==-1)return XNe(e,t,r);if(t.indexOf("E")!==-1)return TW(t,r);if(t.charCodeAt(0)===36)return"$"+ks(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+ls(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:sa(t.substr(0,t.length-i.length))+i;if(a=t.match(AW))return VNe(a,l,c);if(t.match(/^#+0+$/))return c+ls(l,t.length-t.indexOf("0"));if(a=t.match(EW))return i=(""+r).replace(/^([^\.]+)$/,"$1."+sa(a[1])).replace(/\.$/,"."+sa(a[1])),i=i.replace(/\.(\d*)$/,function(v,p){return"."+p+Nn("0",sa(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+Bc(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ks(e,t,-r):Bc(""+r)+"."+Nn("0",a[1].length);if(a=t.match(/^#,#*,#0/))return ks(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=uh(ks(e,t.replace(/[\\-]/g,""),r)),o=0,uh(uh(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return o<i.length?i.charAt(o++):v==="0"?"0":""}));if(t.match(PW))return i=ks(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=Qx(l,Math.pow(10,o)-1,!1),i=""+c,u=jl("n",a[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=Jx(s[2],o),u.length<a[4].length&&(u=sa(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=Qx(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?tP(s[1],o)+a[2]+"/"+a[3]+Jx(s[2],o):Nn(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:sa(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 sa(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+ks(e,t,-r):Bc(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?ls(0,3-v.length):"")+v})+"."+ls(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=Bc(""+l);return h!=="0"?c+h:"";default:if(t.match(/\.[0#?]*$/))return ks(e,t.slice(0,t.lastIndexOf(".")),r)+sa(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function jl(e,t,r){return(r|0)===r?ks(e,t,r):So(e,t,r)}function YNe(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 CW=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function OW(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":Zx(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(CW))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 JNe(e,t,r,n){for(var i=[],a="",o=0,s="",l="t",c,u,f,d="H";o<e.length;)switch(s=e.charAt(o)){case"G":if(!Zx(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 h=e.charAt(++o),v=h==="("||h===")"?h:"t";i[i.length]={t:v,v:h},++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(c==null&&(c=Pv(t,r,e.charAt(o+1)==="2"),c==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||c==null&&(c=Pv(t,r),c==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 p={t:s,v:s};if(c==null&&(c=Pv(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(c!=null&&(p.v=c.H>=12?"P":"A"),p.t="T",d="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(c!=null&&(p.v=c.H>=12?"PM":"AM"),p.t="T",o+=5,d="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(c!=null&&(p.v=c.H>=12?"下午":"上午"),p.t="T",o+=5,d="h"):(p.t="t",++o),c==null&&p.t==="T")return"";i[i.length]=p,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(CW)){if(c==null&&(c=Pv(t,r),c==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",OW(e)||(i[i.length]={t:"t",v:a}));break;case".":if(c!=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 m=0,y=0,x;for(o=i.length-1,l="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=d,l="h",m<1&&(m=1);break;case"s":(x=i[o].v.match(/\.0+$/))&&(y=Math.max(y,x[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":l=i[o].t;break;case"m":l==="s"&&(i[o].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&i[o].v.match(/[Hh]/)&&(m=1),m<2&&i[o].v.match(/[Mm]/)&&(m=2),m<3&&i[o].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var w="",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=UNe(i[o].t.charCodeAt(0),i[o].v,c,y),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=="?"));)i[o].v+=i[S].v,i[S]={v:"",t:";"},++S;w+=i[o].v,o=S-1;break;case"G":i[o].t="t",i[o].v=Z4(t,r);break}var A="",N,P;if(w.length>0){w.charCodeAt(0)==40?(N=t<0&&w.charCodeAt(0)===45?-t:t,P=jl("n",w,N)):(N=t<0&&n>1?-t:t,P=jl("n",w,N),N<0&&i[0]&&i[0].t=="t"&&(P=P.substr(1),i[0].v="-"+i[0].v)),S=P.length-1;var j=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){j=o;break}var C=i.length;if(j===i.length&&P.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=P.substr(S+1,i[o].v.length)):S<0?i[o].v="":(i[o].v=P.substr(0,S+1),S=-1),i[o].t="t",C=o);S>=0&&C<i.length&&(i[C].v=P.substr(0,S+1)+i[C].v)}else if(j!==i.length&&P.indexOf("E")===-1){for(S=P.indexOf(".")-1,o=j;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(u=i[o].v.indexOf(".")>-1&&o===j?i[o].v.indexOf(".")-1:i[o].v.length-1,A=i[o].v.substr(u+1);u>=0;--u)S>=0&&(i[o].v.charAt(u)==="0"||i[o].v.charAt(u)==="#")&&(A=P.charAt(S--)+A);i[o].v=A,i[o].t="t",C=o}for(S>=0&&C<i.length&&(i[C].v=P.substr(0,S+1)+i[C].v),S=P.indexOf(".")+1,o=j;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==j)){for(u=i[o].v.indexOf(".")>-1&&o===j?i[o].v.indexOf(".")+1:0,A=i[o].v.substr(0,u);u<i[o].v.length;++u)S<P.length&&(A+=P.charAt(S++));i[o].v=A,i[o].t="t",C=o}}}for(o=0;o<i.length;++o)i[o]!=null&&"n?".indexOf(i[o].t)>-1&&(N=n>1&&t<0&&o>0&&i[o-1].v==="-"?-t:t,i[o].v=jl(i[o].t,i[o].v,N),i[o].t="t");var R="";for(o=0;o!==i.length;++o)i[o]!=null&&(R+=i[o].v);return R}var Wj=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function zj(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 ZNe(e,t){var r=YNe(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(Wj),s=r[1].match(Wj);return zj(t,o)?[n,r[0]]:zj(t,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,a]}function fu(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:Pn)[e],n==null&&(n=r.table&&r.table[$j[e]]||Pn[$j[e]]),n==null&&(n=LNe[e]||"General");break}if(Zx(n,0))return Z4(t,r);t instanceof Date&&(t=wW(t,r.date1904));var i=ZNe(n,t);if(Zx(i[1]))return Z4(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return JNe(i[1],t,r,i[0])}function kW(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Pn[r]==null){t<0&&(t=r);continue}if(Pn[r]==e){t=r;break}}t<0&&(t=391)}return Pn[t]=e,t}function Qb(e){for(var t=0;t!=392;++t)e[t]!==void 0&&kW(e[t],t)}function ew(){Pn=jNe()}var jW=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function QNe(e){var t=typeof e=="number"?Pn[e]:e;return t=t.replace(jW,"(\\d+)"),new RegExp("^"+t+"$")}function ePe(e,t,r){var n=-1,i=-1,a=-1,o=-1,s=-1,l=-1;(t.match(jW)||[]).forEach(function(f,d){var h=parseInt(r[d+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=h;break;case"d":a=h;break;case"h":o=h;break;case"s":l=h;break;case"m":o>=0?s=h:i=h;break}}),l>=0&&s==-1&&i>=0&&(s=i,i=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("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?c:n==-1&&i==-1&&a==-1?u:c+"T"+u}var tPe=function(){var e={};e.version="1.2.0";function t(){for(var P=0,j=new Array(256),C=0;C!=256;++C)P=C,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,P=P&1?-306674912^P>>>1:P>>>1,j[C]=P;return typeof Int32Array<"u"?new Int32Array(j):j}var r=t();function n(P){var j=0,C=0,R=0,L=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(R=0;R!=256;++R)L[R]=P[R];for(R=0;R!=256;++R)for(C=P[R],j=256+R;j<4096;j+=256)C=L[j]=C>>>8^P[C&255];var I=[];for(R=1;R!=16;++R)I[R-1]=typeof Int32Array<"u"?L.subarray(R*256,R*256+256):L.slice(R*256,R*256+256);return I}var i=n(r),a=i[0],o=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=i[6],d=i[7],h=i[8],v=i[9],p=i[10],m=i[11],y=i[12],x=i[13],w=i[14];function S(P,j){for(var C=j^-1,R=0,L=P.length;R<L;)C=C>>>8^r[(C^P.charCodeAt(R++))&255];return~C}function A(P,j){for(var C=j^-1,R=P.length-15,L=0;L<R;)C=w[P[L++]^C&255]^x[P[L++]^C>>8&255]^y[P[L++]^C>>16&255]^m[P[L++]^C>>>24]^p[P[L++]]^v[P[L++]]^h[P[L++]]^d[P[L++]]^f[P[L++]]^u[P[L++]]^c[P[L++]]^l[P[L++]]^s[P[L++]]^o[P[L++]]^a[P[L++]]^r[P[L++]];for(R+=15;L<R;)C=C>>>8^r[(C^P[L++])&255];return~C}function N(P,j){for(var C=j^-1,R=0,L=P.length,I=0,B=0;R<L;)I=P.charCodeAt(R++),I<128?C=C>>>8^r[(C^I)&255]:I<2048?(C=C>>>8^r[(C^(192|I>>6&31))&255],C=C>>>8^r[(C^(128|I&63))&255]):I>=55296&&I<57344?(I=(I&1023)+64,B=P.charCodeAt(R++)&1023,C=C>>>8^r[(C^(240|I>>8&7))&255],C=C>>>8^r[(C^(128|I>>2&63))&255],C=C>>>8^r[(C^(128|B>>6&15|(I&3)<<4))&255],C=C>>>8^r[(C^(128|B&63))&255]):(C=C>>>8^r[(C^(224|I>>12&15))&255],C=C>>>8^r[(C^(128|I>>6&63))&255],C=C>>>8^r[(C^(128|I&63))&255]);return~C}return e.table=r,e.bstr=S,e.buf=A,e.str=N,e}(),Dr=function(){var t={};t.version="1.2.1";function r(G,ue){for(var ee=G.split("/"),ne=ue.split("/"),fe=0,he=0,Ne=Math.min(ee.length,ne.length);fe<Ne;++fe){if(he=ee[fe].length-ne[fe].length)return he;if(ee[fe]!=ne[fe])return ee[fe]<ne[fe]?-1:1}return ee.length-ne.length}function n(G){if(G.charAt(G.length-1)=="/")return G.slice(0,-1).indexOf("/")===-1?G:n(G.slice(0,-1));var ue=G.lastIndexOf("/");return ue===-1?G:G.slice(0,ue+1)}function i(G){if(G.charAt(G.length-1)=="/")return i(G.slice(0,-1));var ue=G.lastIndexOf("/");return ue===-1?G:G.slice(ue+1)}function a(G,ue){typeof ue=="string"&&(ue=new Date(ue));var ee=ue.getHours();ee=ee<<6|ue.getMinutes(),ee=ee<<5|ue.getSeconds()>>>1,G.write_shift(2,ee);var ne=ue.getFullYear()-1980;ne=ne<<4|ue.getMonth()+1,ne=ne<<5|ue.getDate(),G.write_shift(2,ne)}function o(G){var ue=G.read_shift(2)&65535,ee=G.read_shift(2)&65535,ne=new Date,fe=ee&31;ee>>>=5;var he=ee&15;ee>>>=4,ne.setMilliseconds(0),ne.setFullYear(ee+1980),ne.setMonth(he-1),ne.setDate(fe);var Ne=ue&31;ue>>>=5;var je=ue&63;return ue>>>=6,ne.setHours(ue),ne.setMinutes(je),ne.setSeconds(Ne<<1),ne}function s(G){Va(G,0);for(var ue={},ee=0;G.l<=G.length-4;){var ne=G.read_shift(2),fe=G.read_shift(2),he=G.l+fe,Ne={};switch(ne){case 21589:ee=G.read_shift(1),ee&1&&(Ne.mtime=G.read_shift(4)),fe>5&&(ee&2&&(Ne.atime=G.read_shift(4)),ee&4&&(Ne.ctime=G.read_shift(4))),Ne.mtime&&(Ne.mt=new Date(Ne.mtime*1e3));break}G.l=he,ue[ne]=Ne}return ue}var l;function c(){return l||(l={})}function u(G,ue){if(G[0]==80&&G[1]==75)return Lt(G,ue);if((G[0]|32)==109&&(G[1]|32)==105)return Pt(G,ue);if(G.length<512)throw new Error("CFB file size "+G.length+" < 512");var ee=3,ne=512,fe=0,he=0,Ne=0,je=0,Pe=0,Te=[],ke=G.slice(0,512);Va(ke,0);var Ge=f(ke);switch(ee=Ge[0],ee){case 3:ne=512;break;case 4:ne=4096;break;case 0:if(Ge[1]==0)return Lt(G,ue);default:throw new Error("Major Version: Expected 3 or 4 saw "+ee)}ne!==512&&(ke=G.slice(0,ne),Va(ke,28));var Je=G.slice(0,ne);d(ke,ee);var at=ke.read_shift(4,"i");if(ee===3&&at!==0)throw new Error("# Directory Sectors: Expected 0 saw "+at);ke.l+=4,Ne=ke.read_shift(4,"i"),ke.l+=4,ke.chk("00100000","Mini Stream Cutoff Size: "),je=ke.read_shift(4,"i"),fe=ke.read_shift(4,"i"),Pe=ke.read_shift(4,"i"),he=ke.read_shift(4,"i");for(var Xe=-1,it=0;it<109&&(Xe=ke.read_shift(4,"i"),!(Xe<0));++it)Te[it]=Xe;var Ct=h(G,ne);m(Pe,he,Ct,ne,Te);var Lr=x(Ct,Ne,Te,ne);Lr[Ne].name="!Directory",fe>0&&je!==B&&(Lr[je].name="!MiniFAT"),Lr[Te[0]].name="!FAT",Lr.fat_addrs=Te,Lr.ssz=ne;var ir={},vn=[],Ss=[],Ho=[];w(Ne,Lr,Ct,vn,fe,ir,Ss,je),v(Ss,Ho,vn),vn.shift();var _s={FileIndex:Ss,FullPaths:Ho};return ue&&ue.raw&&(_s.raw={header:Je,sectors:Ct}),_s}function f(G){if(G[G.l]==80&&G[G.l+1]==75)return[0,0];G.chk(z,"Header Signature: "),G.l+=16;var ue=G.read_shift(2,"u");return[G.read_shift(2,"u"),ue]}function d(G,ue){var ee=9;switch(G.l+=2,ee=G.read_shift(2)){case 9:if(ue!=3)throw new Error("Sector Shift: Expected 9 saw "+ee);break;case 12:if(ue!=4)throw new Error("Sector Shift: Expected 12 saw "+ee);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ee)}G.chk("0600","Mini Sector Shift: "),G.chk("000000000000","Reserved: ")}function h(G,ue){for(var ee=Math.ceil(G.length/ue)-1,ne=[],fe=1;fe<ee;++fe)ne[fe-1]=G.slice(fe*ue,(fe+1)*ue);return ne[ee-1]=G.slice(ee*ue),ne}function v(G,ue,ee){for(var ne=0,fe=0,he=0,Ne=0,je=0,Pe=ee.length,Te=[],ke=[];ne<Pe;++ne)Te[ne]=ke[ne]=ne,ue[ne]=ee[ne];for(;je<ke.length;++je)ne=ke[je],fe=G[ne].L,he=G[ne].R,Ne=G[ne].C,Te[ne]===ne&&(fe!==-1&&Te[fe]!==fe&&(Te[ne]=Te[fe]),he!==-1&&Te[he]!==he&&(Te[ne]=Te[he])),Ne!==-1&&(Te[Ne]=ne),fe!==-1&&ne!=Te[ne]&&(Te[fe]=Te[ne],ke.lastIndexOf(fe)<je&&ke.push(fe)),he!==-1&&ne!=Te[ne]&&(Te[he]=Te[ne],ke.lastIndexOf(he)<je&&ke.push(he));for(ne=1;ne<Pe;++ne)Te[ne]===ne&&(he!==-1&&Te[he]!==he?Te[ne]=Te[he]:fe!==-1&&Te[fe]!==fe&&(Te[ne]=Te[fe]));for(ne=1;ne<Pe;++ne)if(G[ne].type!==0){if(je=ne,je!=Te[je])do je=Te[je],ue[ne]=ue[je]+"/"+ue[ne];while(je!==0&&Te[je]!==-1&&je!=Te[je]);Te[ne]=-1}for(ue[0]+="/",ne=1;ne<Pe;++ne)G[ne].type!==2&&(ue[ne]+="/")}function p(G,ue,ee){for(var ne=G.start,fe=G.size,he=[],Ne=ne;ee&&fe>0&&Ne>=0;)he.push(ue.slice(Ne*I,Ne*I+I)),fe-=I,Ne=ef(ee,Ne*4);return he.length===0?Re(0):ki(he).slice(0,G.size)}function m(G,ue,ee,ne,fe){var he=B;if(G===B){if(ue!==0)throw new Error("DIFAT chain shorter than expected")}else if(G!==-1){var Ne=ee[G],je=(ne>>>2)-1;if(!Ne)return;for(var Pe=0;Pe<je&&(he=ef(Ne,Pe*4))!==B;++Pe)fe.push(he);m(ef(Ne,ne-4),ue-1,ee,ne,fe)}}function y(G,ue,ee,ne,fe){var he=[],Ne=[];fe||(fe=[]);var je=ne-1,Pe=0,Te=0;for(Pe=ue;Pe>=0;){fe[Pe]=!0,he[he.length]=Pe,Ne.push(G[Pe]);var ke=ee[Math.floor(Pe*4/ne)];if(Te=Pe*4&je,ne<4+Te)throw new Error("FAT boundary crossed: "+Pe+" 4 "+ne);if(!G[ke])break;Pe=ef(G[ke],Te)}return{nodes:he,data:Jj([Ne])}}function x(G,ue,ee,ne){var fe=G.length,he=[],Ne=[],je=[],Pe=[],Te=ne-1,ke=0,Ge=0,Je=0,at=0;for(ke=0;ke<fe;++ke)if(je=[],Je=ke+ue,Je>=fe&&(Je-=fe),!Ne[Je]){Pe=[];var Xe=[];for(Ge=Je;Ge>=0;){Xe[Ge]=!0,Ne[Ge]=!0,je[je.length]=Ge,Pe.push(G[Ge]);var it=ee[Math.floor(Ge*4/ne)];if(at=Ge*4&Te,ne<4+at)throw new Error("FAT boundary crossed: "+Ge+" 4 "+ne);if(!G[it]||(Ge=ef(G[it],at),Xe[Ge]))break}he[Je]={nodes:je,data:Jj([Pe])}}return he}function w(G,ue,ee,ne,fe,he,Ne,je){for(var Pe=0,Te=ne.length?2:0,ke=ue[G].data,Ge=0,Je=0,at;Ge<ke.length;Ge+=128){var Xe=ke.slice(Ge,Ge+128);Va(Xe,64),Je=Xe.read_shift(2),at=sP(Xe,0,Je-Te),ne.push(at);var it={name:at,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},Ct=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);Ct!==0&&(it.ct=S(Xe,Xe.l-8));var Lr=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);Lr!==0&&(it.mt=S(Xe,Xe.l-8)),it.start=Xe.read_shift(4,"i"),it.size=Xe.read_shift(4,"i"),it.size<0&&it.start<0&&(it.size=it.type=0,it.start=B,it.name=""),it.type===5?(Pe=it.start,fe>0&&Pe!==B&&(ue[Pe].name="!StreamData")):it.size>=4096?(it.storage="fat",ue[it.start]===void 0&&(ue[it.start]=y(ee,it.start,ue.fat_addrs,ue.ssz)),ue[it.start].name=it.name,it.content=ue[it.start].data.slice(0,it.size)):(it.storage="minifat",it.size<0?it.size=0:Pe!==B&&it.start!==B&&ue[Pe]&&(it.content=p(it,ue[Pe].data,(ue[je]||{}).data))),it.content&&Va(it.content,0),he[at]=it,Ne.push(it)}}function S(G,ue){return new Date((Ka(G,ue+4)/1e7*Math.pow(2,32)+Ka(G,ue)/1e7-11644473600)*1e3)}function A(G,ue){return c(),u(l.readFileSync(G),ue)}function N(G,ue){var ee=ue&&ue.type;switch(ee||vr&&Buffer.isBuffer(G)&&(ee="buffer"),ee||"base64"){case"file":return A(G,ue);case"base64":return u(ss(Gl(G)),ue);case"binary":return u(ss(G),ue)}return u(G,ue)}function P(G,ue){var ee=ue||{},ne=ee.root||"Root Entry";if(G.FullPaths||(G.FullPaths=[]),G.FileIndex||(G.FileIndex=[]),G.FullPaths.length!==G.FileIndex.length)throw new Error("inconsistent CFB structure");G.FullPaths.length===0&&(G.FullPaths[0]=ne+"/",G.FileIndex[0]={name:ne,type:5}),ee.CLSID&&(G.FileIndex[0].clsid=ee.CLSID),j(G)}function j(G){var ue="Sh33tJ5";if(!Dr.find(G,"/"+ue)){var ee=Re(4);ee[0]=55,ee[1]=ee[3]=50,ee[2]=54,G.FileIndex.push({name:ue,type:2,content:ee,size:4,L:69,R:69,C:69}),G.FullPaths.push(G.FullPaths[0]+ue),C(G)}}function C(G,ue){P(G);for(var ee=!1,ne=!1,fe=G.FullPaths.length-1;fe>=0;--fe){var he=G.FileIndex[fe];switch(he.type){case 0:ne?ee=!0:(G.FileIndex.pop(),G.FullPaths.pop());break;case 1:case 2:case 5:ne=!0,isNaN(he.R*he.L*he.C)&&(ee=!0),he.R>-1&&he.L>-1&&he.R==he.L&&(ee=!0);break;default:ee=!0;break}}if(!(!ee&&!ue)){var Ne=new Date(1987,1,19),je=0,Pe=Object.create?Object.create(null):{},Te=[];for(fe=0;fe<G.FullPaths.length;++fe)Pe[G.FullPaths[fe]]=!0,G.FileIndex[fe].type!==0&&Te.push([G.FullPaths[fe],G.FileIndex[fe]]);for(fe=0;fe<Te.length;++fe){var ke=n(Te[fe][0]);ne=Pe[ke],ne||(Te.push([ke,{name:i(ke).replace("/",""),type:1,clsid:Q,ct:Ne,mt:Ne,content:null}]),Pe[ke]=!0)}for(Te.sort(function(at,Xe){return r(at[0],Xe[0])}),G.FullPaths=[],G.FileIndex=[],fe=0;fe<Te.length;++fe)G.FullPaths[fe]=Te[fe][0],G.FileIndex[fe]=Te[fe][1];for(fe=0;fe<Te.length;++fe){var Ge=G.FileIndex[fe],Je=G.FullPaths[fe];if(Ge.name=i(Je).replace("/",""),Ge.L=Ge.R=Ge.C=-(Ge.color=1),Ge.size=Ge.content?Ge.content.length:0,Ge.start=0,Ge.clsid=Ge.clsid||Q,fe===0)Ge.C=Te.length>1?1:-1,Ge.size=0,Ge.type=5;else if(Je.slice(-1)=="/"){for(je=fe+1;je<Te.length&&n(G.FullPaths[je])!=Je;++je);for(Ge.C=je>=Te.length?-1:je,je=fe+1;je<Te.length&&n(G.FullPaths[je])!=n(Je);++je);Ge.R=je>=Te.length?-1:je,Ge.type=1}else n(G.FullPaths[fe+1]||"")==n(Je)&&(Ge.R=fe+1),Ge.type=2}}}function R(G,ue){var ee=ue||{};if(ee.fileType=="mad")return Wo(G,ee);switch(C(G),ee.fileType){case"zip":return Jt(G,ee)}var ne=function(at){for(var Xe=0,it=0,Ct=0;Ct<at.FileIndex.length;++Ct){var Lr=at.FileIndex[Ct];if(Lr.content){var ir=Lr.content.length;ir>0&&(ir<4096?Xe+=ir+63>>6:it+=ir+511>>9)}}for(var vn=at.FullPaths.length+3>>2,Ss=Xe+7>>3,Ho=Xe+127>>7,_s=Ss+it+vn+Ho,fo=_s+127>>7,ac=fo<=109?0:Math.ceil((fo-109)/127);_s+fo+ac+127>>7>fo;)ac=++fo<=109?0:Math.ceil((fo-109)/127);var $n=[1,ac,fo,Ho,vn,it,Xe,0];return at.FileIndex[0].size=Xe<<6,$n[7]=(at.FileIndex[0].start=$n[0]+$n[1]+$n[2]+$n[3]+$n[4]+$n[5])+($n[6]+7>>3),$n}(G),fe=Re(ne[7]<<9),he=0,Ne=0;{for(he=0;he<8;++he)fe.write_shift(1,V[he]);for(he=0;he<8;++he)fe.write_shift(2,0);for(fe.write_shift(2,62),fe.write_shift(2,3),fe.write_shift(2,65534),fe.write_shift(2,9),fe.write_shift(2,6),he=0;he<3;++he)fe.write_shift(2,0);for(fe.write_shift(4,0),fe.write_shift(4,ne[2]),fe.write_shift(4,ne[0]+ne[1]+ne[2]+ne[3]-1),fe.write_shift(4,0),fe.write_shift(4,4096),fe.write_shift(4,ne[3]?ne[0]+ne[1]+ne[2]-1:B),fe.write_shift(4,ne[3]),fe.write_shift(-4,ne[1]?ne[0]-1:B),fe.write_shift(4,ne[1]),he=0;he<109;++he)fe.write_shift(-4,he<ne[2]?ne[1]+he:-1)}if(ne[1])for(Ne=0;Ne<ne[1];++Ne){for(;he<236+Ne*127;++he)fe.write_shift(-4,he<ne[2]?ne[1]+he:-1);fe.write_shift(-4,Ne===ne[1]-1?B:Ne+1)}var je=function(at){for(Ne+=at;he<Ne-1;++he)fe.write_shift(-4,he+1);at&&(++he,fe.write_shift(-4,B))};for(Ne=he=0,Ne+=ne[1];he<Ne;++he)fe.write_shift(-4,ae.DIFSECT);for(Ne+=ne[2];he<Ne;++he)fe.write_shift(-4,ae.FATSECT);je(ne[3]),je(ne[4]);for(var Pe=0,Te=0,ke=G.FileIndex[0];Pe<G.FileIndex.length;++Pe)ke=G.FileIndex[Pe],ke.content&&(Te=ke.content.length,!(Te<4096)&&(ke.start=Ne,je(Te+511>>9)));for(je(ne[6]+7>>3);fe.l&511;)fe.write_shift(-4,ae.ENDOFCHAIN);for(Ne=he=0,Pe=0;Pe<G.FileIndex.length;++Pe)ke=G.FileIndex[Pe],ke.content&&(Te=ke.content.length,!(!Te||Te>=4096)&&(ke.start=Ne,je(Te+63>>6)));for(;fe.l&511;)fe.write_shift(-4,ae.ENDOFCHAIN);for(he=0;he<ne[4]<<2;++he){var Ge=G.FullPaths[he];if(!Ge||Ge.length===0){for(Pe=0;Pe<17;++Pe)fe.write_shift(4,0);for(Pe=0;Pe<3;++Pe)fe.write_shift(4,-1);for(Pe=0;Pe<12;++Pe)fe.write_shift(4,0);continue}ke=G.FileIndex[he],he===0&&(ke.start=ke.size?ke.start-1:B);var Je=he===0&&ee.root||ke.name;if(Te=2*(Je.length+1),fe.write_shift(64,Je,"utf16le"),fe.write_shift(2,Te),fe.write_shift(1,ke.type),fe.write_shift(1,ke.color),fe.write_shift(-4,ke.L),fe.write_shift(-4,ke.R),fe.write_shift(-4,ke.C),ke.clsid)fe.write_shift(16,ke.clsid,"hex");else for(Pe=0;Pe<4;++Pe)fe.write_shift(4,0);fe.write_shift(4,ke.state||0),fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(4,ke.start),fe.write_shift(4,ke.size),fe.write_shift(4,0)}for(he=1;he<G.FileIndex.length;++he)if(ke=G.FileIndex[he],ke.size>=4096)if(fe.l=ke.start+1<<9,vr&&Buffer.isBuffer(ke.content))ke.content.copy(fe,fe.l,0,ke.size),fe.l+=ke.size+511&-512;else{for(Pe=0;Pe<ke.size;++Pe)fe.write_shift(1,ke.content[Pe]);for(;Pe&511;++Pe)fe.write_shift(1,0)}for(he=1;he<G.FileIndex.length;++he)if(ke=G.FileIndex[he],ke.size>0&&ke.size<4096)if(vr&&Buffer.isBuffer(ke.content))ke.content.copy(fe,fe.l,0,ke.size),fe.l+=ke.size+63&-64;else{for(Pe=0;Pe<ke.size;++Pe)fe.write_shift(1,ke.content[Pe]);for(;Pe&63;++Pe)fe.write_shift(1,0)}if(vr)fe.l=fe.length;else for(;fe.l<fe.length;)fe.write_shift(1,0);return fe}function L(G,ue){var ee=G.FullPaths.map(function(Pe){return Pe.toUpperCase()}),ne=ee.map(function(Pe){var Te=Pe.split("/");return Te[Te.length-(Pe.slice(-1)=="/"?2:1)]}),fe=!1;ue.charCodeAt(0)===47?(fe=!0,ue=ee[0].slice(0,-1)+ue):fe=ue.indexOf("/")!==-1;var he=ue.toUpperCase(),Ne=fe===!0?ee.indexOf(he):ne.indexOf(he);if(Ne!==-1)return G.FileIndex[Ne];var je=!he.match(Nv);for(he=he.replace(om,""),je&&(he=he.replace(Nv,"!")),Ne=0;Ne<ee.length;++Ne)if((je?ee[Ne].replace(Nv,"!"):ee[Ne]).replace(om,"")==he||(je?ne[Ne].replace(Nv,"!"):ne[Ne]).replace(om,"")==he)return G.FileIndex[Ne];return null}var I=64,B=-2,z="d0cf11e0a1b11ae1",V=[208,207,17,224,161,177,26,225],Q="00000000000000000000000000000000",ae={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:B,FREESECT:-1,HEADER_SIGNATURE:z,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:Q,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function K(G,ue,ee){c();var ne=R(G,ee);l.writeFileSync(ue,ne)}function re(G){for(var ue=new Array(G.length),ee=0;ee<G.length;++ee)ue[ee]=String.fromCharCode(G[ee]);return ue.join("")}function ye(G,ue){var ee=R(G,ue);switch(ue&&ue.type||"buffer"){case"file":return c(),l.writeFileSync(ue.filename,ee),ee;case"binary":return typeof ee=="string"?ee:re(ee);case"base64":return _g(typeof ee=="string"?ee:re(ee));case"buffer":if(vr)return Buffer.isBuffer(ee)?ee:ic(ee);case"array":return typeof ee=="string"?ss(ee):ee}return ee}var xe;function O(G){try{var ue=G.InflateRaw,ee=new ue;if(ee._processChunk(new Uint8Array([3,0]),ee._finishFlushFlag),ee.bytesRead)xe=G;else throw new Error("zlib does not expose bytesRead")}catch(ne){console.error("cannot use native zlib: "+(ne.message||ne))}}function M(G,ue){if(!xe)return wr(G,ue);var ee=xe.InflateRaw,ne=new ee,fe=ne._processChunk(G.slice(G.l),ne._finishFlushFlag);return G.l+=ne.bytesRead,fe}function F(G){return xe?xe.deflateRawSync(G):Rt(G)}var U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Z=[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],se=[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 ve(G){var ue=(G<<1|G<<11)&139536|(G<<5|G<<15)&558144;return(ue>>16|ue>>8|ue)&255}for(var oe=typeof Uint8Array<"u",pe=oe?new Uint8Array(256):[],Se=0;Se<256;++Se)pe[Se]=ve(Se);function me(G,ue){var ee=pe[G&255];return ue<=8?ee>>>8-ue:(ee=ee<<8|pe[G>>8&255],ue<=16?ee>>>16-ue:(ee=ee<<8|pe[G>>16&255],ee>>>24-ue))}function Le(G,ue){var ee=ue&7,ne=ue>>>3;return(G[ne]|(ee<=6?0:G[ne+1]<<8))>>>ee&3}function ie(G,ue){var ee=ue&7,ne=ue>>>3;return(G[ne]|(ee<=5?0:G[ne+1]<<8))>>>ee&7}function Y(G,ue){var ee=ue&7,ne=ue>>>3;return(G[ne]|(ee<=4?0:G[ne+1]<<8))>>>ee&15}function Ie(G,ue){var ee=ue&7,ne=ue>>>3;return(G[ne]|(ee<=3?0:G[ne+1]<<8))>>>ee&31}function De(G,ue){var ee=ue&7,ne=ue>>>3;return(G[ne]|(ee<=1?0:G[ne+1]<<8))>>>ee&127}function nt(G,ue,ee){var ne=ue&7,fe=ue>>>3,he=(1<<ee)-1,Ne=G[fe]>>>ne;return ee<8-ne||(Ne|=G[fe+1]<<8-ne,ee<16-ne)||(Ne|=G[fe+2]<<16-ne,ee<24-ne)||(Ne|=G[fe+3]<<24-ne),Ne&he}function $e(G,ue,ee){var ne=ue&7,fe=ue>>>3;return ne<=5?G[fe]|=(ee&7)<<ne:(G[fe]|=ee<<ne&255,G[fe+1]=(ee&7)>>8-ne),ue+3}function ot(G,ue,ee){var ne=ue&7,fe=ue>>>3;return ee=(ee&1)<<ne,G[fe]|=ee,ue+1}function tt(G,ue,ee){var ne=ue&7,fe=ue>>>3;return ee<<=ne,G[fe]|=ee&255,ee>>>=8,G[fe+1]=ee,ue+8}function dt(G,ue,ee){var ne=ue&7,fe=ue>>>3;return ee<<=ne,G[fe]|=ee&255,ee>>>=8,G[fe+1]=ee&255,G[fe+2]=ee>>>8,ue+16}function pt(G,ue){var ee=G.length,ne=2*ee>ue?2*ee:ue+5,fe=0;if(ee>=ue)return G;if(vr){var he=Rj(ne);if(G.copy)G.copy(he);else for(;fe<G.length;++fe)he[fe]=G[fe];return he}else if(oe){var Ne=new Uint8Array(ne);if(Ne.set)Ne.set(G);else for(;fe<ee;++fe)Ne[fe]=G[fe];return Ne}return G.length=ne,G}function Ft(G){for(var ue=new Array(G),ee=0;ee<G;++ee)ue[ee]=0;return ue}function $t(G,ue,ee){var ne=1,fe=0,he=0,Ne=0,je=0,Pe=G.length,Te=oe?new Uint16Array(32):Ft(32);for(he=0;he<32;++he)Te[he]=0;for(he=Pe;he<ee;++he)G[he]=0;Pe=G.length;var ke=oe?new Uint16Array(Pe):Ft(Pe);for(he=0;he<Pe;++he)Te[fe=G[he]]++,ne<fe&&(ne=fe),ke[he]=0;for(Te[0]=0,he=1;he<=ne;++he)Te[he+16]=je=je+Te[he-1]<<1;for(he=0;he<Pe;++he)je=G[he],je!=0&&(ke[he]=Te[je+16]++);var Ge=0;for(he=0;he<Pe;++he)if(Ge=G[he],Ge!=0)for(je=me(ke[he],ne)>>ne-Ge,Ne=(1<<ne+4-Ge)-1;Ne>=0;--Ne)ue[je|Ne<<Ge]=Ge&15|he<<4;return ne}var kt=oe?new Uint16Array(512):Ft(512),er=oe?new Uint16Array(32):Ft(32);if(!oe){for(var Bt=0;Bt<512;++Bt)kt[Bt]=0;for(Bt=0;Bt<32;++Bt)er[Bt]=0}(function(){for(var G=[],ue=0;ue<32;ue++)G.push(5);$t(G,er,32);var ee=[];for(ue=0;ue<=143;ue++)ee.push(8);for(;ue<=255;ue++)ee.push(9);for(;ue<=279;ue++)ee.push(7);for(;ue<=287;ue++)ee.push(8);$t(ee,kt,288)})();var mt=function(){for(var ue=oe?new Uint8Array(32768):[],ee=0,ne=0;ee<se.length-1;++ee)for(;ne<se[ee+1];++ne)ue[ne]=ee;for(;ne<32768;++ne)ue[ne]=29;var fe=oe?new Uint8Array(259):[];for(ee=0,ne=0;ee<Z.length-1;++ee)for(;ne<Z[ee+1];++ne)fe[ne]=ee;function he(je,Pe){for(var Te=0;Te<je.length;){var ke=Math.min(65535,je.length-Te),Ge=Te+ke==je.length;for(Pe.write_shift(1,+Ge),Pe.write_shift(2,ke),Pe.write_shift(2,~ke&65535);ke-- >0;)Pe[Pe.l++]=je[Te++]}return Pe.l}function Ne(je,Pe){for(var Te=0,ke=0,Ge=oe?new Uint16Array(32768):[];ke<je.length;){var Je=Math.min(65535,je.length-ke);if(Je<10){for(Te=$e(Pe,Te,+(ke+Je==je.length)),Te&7&&(Te+=8-(Te&7)),Pe.l=Te/8|0,Pe.write_shift(2,Je),Pe.write_shift(2,~Je&65535);Je-- >0;)Pe[Pe.l++]=je[ke++];Te=Pe.l*8;continue}Te=$e(Pe,Te,+(ke+Je==je.length)+2);for(var at=0;Je-- >0;){var Xe=je[ke];at=(at<<5^Xe)&32767;var it=-1,Ct=0;if((it=Ge[at])&&(it|=ke&-32768,it>ke&&(it-=32768),it<ke))for(;je[it+Ct]==je[ke+Ct]&&Ct<250;)++Ct;if(Ct>2){Xe=fe[Ct],Xe<=22?Te=tt(Pe,Te,pe[Xe+1]>>1)-1:(tt(Pe,Te,3),Te+=5,tt(Pe,Te,pe[Xe-23]>>5),Te+=3);var Lr=Xe<8?0:Xe-4>>2;Lr>0&&(dt(Pe,Te,Ct-Z[Xe]),Te+=Lr),Xe=ue[ke-it],Te=tt(Pe,Te,pe[Xe]>>3),Te-=3;var ir=Xe<4?0:Xe-2>>1;ir>0&&(dt(Pe,Te,ke-it-se[Xe]),Te+=ir);for(var vn=0;vn<Ct;++vn)Ge[at]=ke&32767,at=(at<<5^je[ke])&32767,++ke;Je-=Ct-1}else Xe<=143?Xe=Xe+48:Te=ot(Pe,Te,1),Te=tt(Pe,Te,pe[Xe]),Ge[at]=ke&32767,++ke}Te=tt(Pe,Te,0)-1}return Pe.l=(Te+7)/8|0,Pe.l}return function(Pe,Te){return Pe.length<8?he(Pe,Te):Ne(Pe,Te)}}();function Rt(G){var ue=Re(50+Math.floor(G.length*1.1)),ee=mt(G,ue);return ue.slice(0,ee)}var yt=oe?new Uint16Array(32768):Ft(32768),on=oe?new Uint16Array(32768):Ft(32768),nr=oe?new Uint16Array(128):Ft(128),zt=1,Ht=1;function Ur(G,ue){var ee=Ie(G,ue)+257;ue+=5;var ne=Ie(G,ue)+1;ue+=5;var fe=Y(G,ue)+4;ue+=4;for(var he=0,Ne=oe?new Uint8Array(19):Ft(19),je=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Pe=1,Te=oe?new Uint8Array(8):Ft(8),ke=oe?new Uint8Array(8):Ft(8),Ge=Ne.length,Je=0;Je<fe;++Je)Ne[U[Je]]=he=ie(G,ue),Pe<he&&(Pe=he),Te[he]++,ue+=3;var at=0;for(Te[0]=0,Je=1;Je<=Pe;++Je)ke[Je]=at=at+Te[Je-1]<<1;for(Je=0;Je<Ge;++Je)(at=Ne[Je])!=0&&(je[Je]=ke[at]++);var Xe=0;for(Je=0;Je<Ge;++Je)if(Xe=Ne[Je],Xe!=0){at=pe[je[Je]]>>8-Xe;for(var it=(1<<7-Xe)-1;it>=0;--it)nr[at|it<<Xe]=Xe&7|Je<<3}var Ct=[];for(Pe=1;Ct.length<ee+ne;)switch(at=nr[De(G,ue)],ue+=at&7,at>>>=3){case 16:for(he=3+Le(G,ue),ue+=2,at=Ct[Ct.length-1];he-- >0;)Ct.push(at);break;case 17:for(he=3+ie(G,ue),ue+=3;he-- >0;)Ct.push(0);break;case 18:for(he=11+De(G,ue),ue+=7;he-- >0;)Ct.push(0);break;default:Ct.push(at),Pe<at&&(Pe=at);break}var Lr=Ct.slice(0,ee),ir=Ct.slice(ee);for(Je=ee;Je<286;++Je)Lr[Je]=0;for(Je=ne;Je<30;++Je)ir[Je]=0;return zt=$t(Lr,yt,286),Ht=$t(ir,on,30),ue}function At(G,ue){if(G[0]==3&&!(G[1]&3))return[Ff(ue),2];for(var ee=0,ne=0,fe=Rj(ue||1<<18),he=0,Ne=fe.length>>>0,je=0,Pe=0;!(ne&1);){if(ne=ie(G,ee),ee+=3,ne>>>1)ne>>1==1?(je=9,Pe=5):(ee=Ur(G,ee),je=zt,Pe=Ht);else{ee&7&&(ee+=8-(ee&7));var Te=G[ee>>>3]|G[(ee>>>3)+1]<<8;if(ee+=32,Te>0)for(!ue&&Ne<he+Te&&(fe=pt(fe,he+Te),Ne=fe.length);Te-- >0;)fe[he++]=G[ee>>>3],ee+=8;continue}for(;;){!ue&&Ne<he+32767&&(fe=pt(fe,he+32767),Ne=fe.length);var ke=nt(G,ee,je),Ge=ne>>>1==1?kt[ke]:yt[ke];if(ee+=Ge&15,Ge>>>=4,!(Ge>>>8&255))fe[he++]=Ge;else{if(Ge==256)break;Ge-=257;var Je=Ge<8?0:Ge-4>>2;Je>5&&(Je=0);var at=he+Z[Ge];Je>0&&(at+=nt(G,ee,Je),ee+=Je),ke=nt(G,ee,Pe),Ge=ne>>>1==1?er[ke]:on[ke],ee+=Ge&15,Ge>>>=4;var Xe=Ge<4?0:Ge-2>>1,it=se[Ge];for(Xe>0&&(it+=nt(G,ee,Xe),ee+=Xe),!ue&&Ne<at&&(fe=pt(fe,at+100),Ne=fe.length);he<at;)fe[he]=fe[he-it],++he}}}return ue?[fe,ee+7>>>3]:[fe.slice(0,he),ee+7>>>3]}function wr(G,ue){var ee=G.slice(G.l||0),ne=At(ee,ue);return G.l+=ne[1],ne[0]}function Nt(G,ue){if(G)typeof console<"u"&&console.error(ue);else throw new Error(ue)}function Lt(G,ue){var ee=G;Va(ee,0);var ne=[],fe=[],he={FileIndex:ne,FullPaths:fe};P(he,{root:ue.root});for(var Ne=ee.length-4;(ee[Ne]!=80||ee[Ne+1]!=75||ee[Ne+2]!=5||ee[Ne+3]!=6)&&Ne>=0;)--Ne;ee.l=Ne+4,ee.l+=4;var je=ee.read_shift(2);ee.l+=6;var Pe=ee.read_shift(4);for(ee.l=Pe,Ne=0;Ne<je;++Ne){ee.l+=20;var Te=ee.read_shift(4),ke=ee.read_shift(4),Ge=ee.read_shift(2),Je=ee.read_shift(2),at=ee.read_shift(2);ee.l+=8;var Xe=ee.read_shift(4),it=s(ee.slice(ee.l+Ge,ee.l+Ge+Je));ee.l+=Ge+Je+at;var Ct=ee.l;ee.l=Xe+4,Wr(ee,Te,ke,he,it),ee.l=Ct}return he}function Wr(G,ue,ee,ne,fe){G.l+=2;var he=G.read_shift(2),Ne=G.read_shift(2),je=o(G);if(he&8257)throw new Error("Unsupported ZIP encryption");for(var Pe=G.read_shift(4),Te=G.read_shift(4),ke=G.read_shift(4),Ge=G.read_shift(2),Je=G.read_shift(2),at="",Xe=0;Xe<Ge;++Xe)at+=String.fromCharCode(G[G.l++]);if(Je){var it=s(G.slice(G.l,G.l+Je));(it[21589]||{}).mt&&(je=it[21589].mt),((fe||{})[21589]||{}).mt&&(je=fe[21589].mt)}G.l+=Je;var Ct=G.slice(G.l,G.l+Te);switch(Ne){case 8:Ct=M(G,ke);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Ne)}var Lr=!1;he&8&&(Pe=G.read_shift(4),Pe==134695760&&(Pe=G.read_shift(4),Lr=!0),Te=G.read_shift(4),ke=G.read_shift(4)),Te!=ue&&Nt(Lr,"Bad compressed size: "+ue+" != "+Te),ke!=ee&&Nt(Lr,"Bad uncompressed size: "+ee+" != "+ke),Fi(ne,at,Ct,{unsafe:!0,mt:je})}function Jt(G,ue){var ee=ue||{},ne=[],fe=[],he=Re(1),Ne=ee.compression?8:0,je=0,Pe=0,Te=0,ke=0,Ge=0,Je=G.FullPaths[0],at=Je,Xe=G.FileIndex[0],it=[],Ct=0;for(Pe=1;Pe<G.FullPaths.length;++Pe)if(at=G.FullPaths[Pe].slice(Je.length),Xe=G.FileIndex[Pe],!(!Xe.size||!Xe.content||at=="Sh33tJ5")){var Lr=ke,ir=Re(at.length);for(Te=0;Te<at.length;++Te)ir.write_shift(1,at.charCodeAt(Te)&127);ir=ir.slice(0,ir.l),it[Ge]=tPe.buf(Xe.content,0);var vn=Xe.content;Ne==8&&(vn=F(vn)),he=Re(30),he.write_shift(4,67324752),he.write_shift(2,20),he.write_shift(2,je),he.write_shift(2,Ne),Xe.mt?a(he,Xe.mt):he.write_shift(4,0),he.write_shift(-4,it[Ge]),he.write_shift(4,vn.length),he.write_shift(4,Xe.content.length),he.write_shift(2,ir.length),he.write_shift(2,0),ke+=he.length,ne.push(he),ke+=ir.length,ne.push(ir),ke+=vn.length,ne.push(vn),he=Re(46),he.write_shift(4,33639248),he.write_shift(2,0),he.write_shift(2,20),he.write_shift(2,je),he.write_shift(2,Ne),he.write_shift(4,0),he.write_shift(-4,it[Ge]),he.write_shift(4,vn.length),he.write_shift(4,Xe.content.length),he.write_shift(2,ir.length),he.write_shift(2,0),he.write_shift(2,0),he.write_shift(2,0),he.write_shift(2,0),he.write_shift(4,0),he.write_shift(4,Lr),Ct+=he.l,fe.push(he),Ct+=ir.length,fe.push(ir),++Ge}return he=Re(22),he.write_shift(4,101010256),he.write_shift(2,0),he.write_shift(2,0),he.write_shift(2,Ge),he.write_shift(2,Ge),he.write_shift(4,Ct),he.write_shift(4,ke),he.write_shift(2,0),ki([ki(ne),ki(fe),he])}var Et={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 dr(G,ue){if(G.ctype)return G.ctype;var ee=G.name||"",ne=ee.match(/\.([^\.]+)$/);return ne&&Et[ne[1]]||ue&&(ne=(ee=ue).match(/[\.\\]([^\.\\])+$/),ne&&Et[ne[1]])?Et[ne[1]]:"application/octet-stream"}function Qs(G){for(var ue=_g(G),ee=[],ne=0;ne<ue.length;ne+=76)ee.push(ue.slice(ne,ne+76));return ee.join(`\r `)+`\r `}function ci(G){var ue=G.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Te){var ke=Te.charCodeAt(0).toString(16).toUpperCase();return"="+(ke.length==1?"0"+ke:ke)});ue=ue.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),ue.charAt(0)==` `&&(ue="=0D"+ue.slice(1)),ue=ue.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,` =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var ee=[],ne=ue.split(`\r `),fe=0;fe<ne.length;++fe){var he=ne[fe];if(he.length==0){ee.push("");continue}for(var Ne=0;Ne<he.length;){var je=76,Pe=he.slice(Ne,Ne+je);Pe.charAt(je-1)=="="?je--:Pe.charAt(je-2)=="="?je-=2:Pe.charAt(je-3)=="="&&(je-=3),Pe=he.slice(Ne,Ne+je),Ne+=je,Ne<he.length&&(Pe+="="),ee.push(Pe)}}return ee.join(`\r `)}function Uo(G){for(var ue=[],ee=0;ee<G.length;++ee){for(var ne=G[ee];ee<=G.length&&ne.charAt(ne.length-1)=="=";)ne=ne.slice(0,ne.length-1)+G[++ee];ue.push(ne)}for(var fe=0;fe<ue.length;++fe)ue[fe]=ue[fe].replace(/[=][0-9A-Fa-f]{2}/g,function(he){return String.fromCharCode(parseInt(he.slice(1),16))});return ss(ue.join(`\r `))}function uo(G,ue,ee){for(var ne="",fe="",he="",Ne,je=0;je<10;++je){var Pe=ue[je];if(!Pe||Pe.match(/^\s*$/))break;var Te=Pe.match(/^(.*?):\s*([^\s].*)$/);if(Te)switch(Te[1].toLowerCase()){case"content-location":ne=Te[2].trim();break;case"content-type":he=Te[2].trim();break;case"content-transfer-encoding":fe=Te[2].trim();break}}switch(++je,fe.toLowerCase()){case"base64":Ne=ss(Gl(ue.slice(je).join("")));break;case"quoted-printable":Ne=Uo(ue.slice(je));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+fe)}var ke=Fi(G,ne.slice(ee.length),Ne,{unsafe:!0});he&&(ke.ctype=he)}function Pt(G,ue){if(re(G.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var ee=ue&&ue.root||"",ne=(vr&&Buffer.isBuffer(G)?G.toString("binary"):re(G)).split(`\r `),fe=0,he="";for(fe=0;fe<ne.length;++fe)if(he=ne[fe],!!/^Content-Location:/i.test(he)&&(he=he.slice(he.indexOf("file")),ee||(ee=he.slice(0,he.lastIndexOf("/")+1)),he.slice(0,ee.length)!=ee))for(;ee.length>0&&(ee=ee.slice(0,ee.length-1),ee=ee.slice(0,ee.lastIndexOf("/")+1),he.slice(0,ee.length)!=ee););var Ne=(ne[1]||"").match(/boundary="(.*?)"/);if(!Ne)throw new Error("MAD cannot find boundary");var je="--"+(Ne[1]||""),Pe=[],Te=[],ke={FileIndex:Pe,FullPaths:Te};P(ke);var Ge,Je=0;for(fe=0;fe<ne.length;++fe){var at=ne[fe];at!==je&&at!==je+"--"||(Je++&&uo(ke,ne.slice(Ge,fe),ee),Ge=fe)}return ke}function Wo(G,ue){var ee=ue||{},ne=ee.boundary||"SheetJS";ne="------="+ne;for(var fe=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+ne.slice(2)+'"',"","",""],he=G.FullPaths[0],Ne=he,je=G.FileIndex[0],Pe=1;Pe<G.FullPaths.length;++Pe)if(Ne=G.FullPaths[Pe].slice(he.length),je=G.FileIndex[Pe],!(!je.size||!je.content||Ne=="Sh33tJ5")){Ne=Ne.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ct){return"_x"+Ct.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ct){return"_u"+Ct.charCodeAt(0).toString(16)+"_"});for(var Te=je.content,ke=vr&&Buffer.isBuffer(Te)?Te.toString("binary"):re(Te),Ge=0,Je=Math.min(1024,ke.length),at=0,Xe=0;Xe<=Je;++Xe)(at=ke.charCodeAt(Xe))>=32&&at<128&&++Ge;var it=Ge>=Je*4/5;fe.push(ne),fe.push("Content-Location: "+(ee.root||"file:///C:/SheetJS/")+Ne),fe.push("Content-Transfer-Encoding: "+(it?"quoted-printable":"base64")),fe.push("Content-Type: "+dr(je,Ne)),fe.push(""),fe.push(it?ci(ke):Qs(ke))}return fe.push(ne+`--\r `),fe.join(`\r `)}function zo(G){var ue={};return P(ue,G),ue}function Fi(G,ue,ee,ne){var fe=ne&&ne.unsafe;fe||P(G);var he=!fe&&Dr.find(G,ue);if(!he){var Ne=G.FullPaths[0];ue.slice(0,Ne.length)==Ne?Ne=ue:(Ne.slice(-1)!="/"&&(Ne+="/"),Ne=(Ne+ue).replace("//","/")),he={name:i(ue),type:2},G.FileIndex.push(he),G.FullPaths.push(Ne),fe||Dr.utils.cfb_gc(G)}return he.content=ee,he.size=ee?ee.length:0,ne&&(ne.CLSID&&(he.clsid=ne.CLSID),ne.mt&&(he.mt=ne.mt),ne.ct&&(he.ct=ne.ct)),he}function va(G,ue){P(G);var ee=Dr.find(G,ue);if(ee){for(var ne=0;ne<G.FileIndex.length;++ne)if(G.FileIndex[ne]==ee)return G.FileIndex.splice(ne,1),G.FullPaths.splice(ne,1),!0}return!1}function sn(G,ue,ee){P(G);var ne=Dr.find(G,ue);if(ne){for(var fe=0;fe<G.FileIndex.length;++fe)if(G.FileIndex[fe]==ne)return G.FileIndex[fe].name=i(ee),G.FullPaths[fe]=ee,!0}return!1}function Fn(G){C(G,!0)}return t.find=L,t.read=N,t.parse=u,t.write=ye,t.writeFile=K,t.utils={cfb_new:zo,cfb_add:Fi,cfb_del:va,cfb_mov:sn,cfb_gc:Fn,ReadShift:lm,CheckField:YW,prep_blob:Va,bconcat:ki,use_zlib:O,_deflateRaw:Rt,_inflateRaw:wr,consts:ae},t}();function rPe(e){return typeof e=="string"?Zb(e):Array.isArray(e)?TNe(e):e}function n1(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=Zb(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?Eg(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([rPe(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=e,o.href=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=r1(t)),s.write(t),s.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Mi(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 Hj(e,t){for(var r=[],n=Mi(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function nP(e){for(var t=[],r=Mi(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function tw(e){for(var t=[],r=Mi(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function nPe(e){for(var t=[],r=Mi(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var e2=new Date(1899,11,30,0,0,0);function Ta(e,t){var r=e.getTime(),n=e2.getTime()+(e.getTimezoneOffset()-e2.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var LW=new Date,iPe=e2.getTime()+(LW.getTimezoneOffset()-e2.getTimezoneOffset())*6e4,Vj=LW.getTimezoneOffset();function IW(e){var t=new Date;return t.setTime(e*24*60*60*1e3+iPe),t.getTimezoneOffset()!==Vj&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Vj)*6e4),t}var Gj=new Date("2017-02-19T19:06:09.000Z"),DW=isNaN(Gj.getFullYear())?new Date("2/19/17"):Gj,aPe=DW.getFullYear()==2017;function pa(e,t){var r=new Date(e);if(aPe)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(DW.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 rw(e,t){if(vr&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{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 Ca(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]=Ca(e[r]));return t}function Nn(e,t){for(var r="";r.length<t;)r+=e;return r}function Ll(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 oPe=["january","february","march","april","may","june","july","august","september","october","november","december"];function Ag(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&&oPe.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}function Zt(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return vr?n=ic(r):n=CNe(r),Dr.utils.cfb_add(e,t,n)}Dr.utils.cfb_add(e,t,r)}else e.file(t,r)}function iP(){return Dr.utils.cfb_new()}var Kn=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r `,sPe={""":'"',"'":"'",">":">","<":"<","&":"&"},aP=nP(sPe),oP=/[&<>'"]/g,lPe=/[\u0000-\u0008\u000b-\u001f]/g;function Tr(e){var t=e+"";return t.replace(oP,function(r){return aP[r]}).replace(lPe,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function qj(e){return Tr(e).replace(/ /g,"_x0020_")}var RW=/[\u0000-\u001f]/g;function cPe(e){var t=e+"";return t.replace(oP,function(r){return aP[r]}).replace(/\n/g,"<br/>").replace(RW,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function uPe(e){var t=e+"";return t.replace(oP,function(r){return aP[r]}).replace(RW,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function fPe(e){return e.replace(/(\r\n|[\r\n])/g," ")}function dPe(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function xS(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 Kj(e){var t=Ff(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 Xj(e){return ic(e,"binary").toString("utf8")}var Tv="foo bar bazâð£",sm=vr&&(Xj(Tv)==xS(Tv)&&Xj||Kj(Tv)==xS(Tv)&&Kj)||xS,Eg=vr?function(e){return ic(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("")},hPe=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,` `).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),MW=/(^\s|\s$|\n)/;function ji(e,t){return"<"+e+(t.match(MW)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Ng(e){return Mi(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Ze(e,t,r){return"<"+e+(r!=null?Ng(r):"")+(t!=null?(t.match(MW)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function Q4(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function pPe(e,t){switch(typeof e){case"string":var r=Ze("vt:lpwstr",Tr(e));return r=r.replace(/"/g,"_x0022_"),r;case"number":return Ze((e|0)==e?"vt:i4":"vt:r8",Tr(String(e)));case"boolean":return Ze("vt:bool",e?"true":"false")}if(e instanceof Date)return Ze("vt:filetime",Q4(e));throw new Error("Unable to serialize "+e)}var pi={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},jp=["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"],qa={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function mPe(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 gPe(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 Yj=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},Jj=vr?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:ic(t)})):Yj(e)}:Yj,Zj=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(z0(e,i)));return n.join("").replace(om,"")},sP=vr?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(om,""):Zj(e,t,r)}:Zj,Qj=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("")},FW=vr?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):Qj(e,t,r)}:Qj,eL=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(Pd(e,i)));return n.join("")},i1=vr?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):eL(t,r,n)}:eL,$W=function(e,t){var r=Ka(e,t);return r>0?i1(e,t+4,t+4+r-1):""},BW=$W,UW=function(e,t){var r=Ka(e,t);return r>0?i1(e,t+4,t+4+r-1):""},WW=UW,zW=function(e,t){var r=2*Ka(e,t);return r>0?i1(e,t+4,t+4+r-1):""},HW=zW,VW=function(t,r){var n=Ka(t,r);return n>0?sP(t,r+4,r+4+n):""},GW=VW,qW=function(e,t){var r=Ka(e,t);return r>0?i1(e,t+4,t+4+r):""},KW=qW,XW=function(e,t){return mPe(e,t)},t2=XW,lP=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};vr&&(BW=function(t,r){if(!Buffer.isBuffer(t))return $W(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},WW=function(t,r){if(!Buffer.isBuffer(t))return UW(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},HW=function(t,r){if(!Buffer.isBuffer(t))return zW(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},GW=function(t,r){if(!Buffer.isBuffer(t))return VW(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},KW=function(t,r){if(!Buffer.isBuffer(t))return qW(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},t2=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):XW(t,r)},lP=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Pd=function(e,t){return e[t]},z0=function(e,t){return e[t+1]*256+e[t]},vPe=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Ka=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},ef=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},yPe=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function lm(e,t){var r="",n,i,a=[],o,s,l,c;switch(t){case"dbcs":if(c=this.l,vr&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(z0(this,c)),c+=2;e*=2;break;case"utf8":r=i1(this,this.l,this.l+e);break;case"utf16le":e*=2,r=sP(this,this.l,this.l+e);break;case"wstr":return lm.call(this,e,"dbcs");case"lpstr-ansi":r=BW(this,this.l),e=4+Ka(this,this.l);break;case"lpstr-cp":r=WW(this,this.l),e=4+Ka(this,this.l);break;case"lpwstr":r=HW(this,this.l),e=4+2*Ka(this,this.l);break;case"lpp4":e=4+Ka(this,this.l),r=GW(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Ka(this,this.l),r=KW(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(o=Pd(this,this.l+e++))!==0;)a.push(Ev(o));r=a.join("");break;case"_wstr":for(e=0,r="";(o=z0(this,this.l+e))!==0;)a.push(Ev(o)),e+=2;e+=2,r=a.join("");break;case"dbcs-cont":for(r="",c=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=Pd(this,c),this.l=c+1,s=lm.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(Ev(z0(this,c))),c+=2}r=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",c=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=Pd(this,c),this.l=c+1,s=lm.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(Ev(Pd(this,c))),c+=1}r=a.join("");break;default:switch(e){case 1:return n=Pd(this,this.l),this.l++,n;case 2:return n=(t==="i"?vPe:z0)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||!(this[this.l+3]&128)?(n=(e>0?ef:yPe)(this,this.l),this.l+=4,n):(i=Ka(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=t2(this,this.l):i=t2([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=FW(this,this.l,e);break}}return this.l+=e,r}var xPe=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},bPe=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},wPe=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function SPe(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)wPe(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,xPe(this,t,this.l);break;case 8:if(n=8,r==="f"){gPe(this,t,this.l);break}case 16:break;case-4:n=4,bPe(this,t,this.l);break}return this.l+=n,this}function YW(e,t){var r=FW(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Va(e,t){e.l=t,e.read_shift=lm,e.chk=YW,e.write_shift=SPe}function qs(e,t){e.l+=t}function Re(e){var t=Ff(e);return Va(t,0),t}function Pa(){var e=[],t=vr?256:2048,r=function(c){var u=Re(c);return Va(u,0),u},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(c){return n&&c<n.length-n.l?n:(i(),n=r(Math.max(c+1,t)))},o=function(){return i(),ki(e)},s=function(c){i(),n=c,n.l==null&&(n.l=n.length),a(t)};return{next:a,push:s,end:o,_bufs:e}}function ze(e,t,r,n){var i=+t,a;if(!isNaN(i)){n||(n=m8e[i].p||(r||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var o=e.next(a);i<=127?o.write_shift(1,i):(o.write_shift(1,(i&127)+128),o.write_shift(1,i>>7));for(var s=0;s!=4;++s)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&lP(r)&&e.push(r)}}function cm(e,t,r){var n=Ca(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 tL(e,t,r){var n=Ca(e);return n.s=cm(n.s,t.s,r),n.e=cm(n.e,t.s,r),n}function um(e,t){if(e.cRel&&e.c<0)for(e=Ca(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Ca(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Or(e);return!e.cRel&&e.cRel!=null&&(r=EPe(r)),!e.rRel&&e.rRel!=null&&(r=_Pe(r)),r}function bS(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?"":"$")+Yi(e.s.c)+":"+(e.e.cRel?"":"$")+Yi(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Di(e.s.r)+":"+(e.e.rRel?"":"$")+Di(e.e.r):um(e.s,t.biff)+":"+um(e.e,t.biff)}function cP(e){return parseInt(APe(e),10)-1}function Di(e){return""+(e+1)}function _Pe(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function APe(e){return e.replace(/\$(\d+)$/,"$1")}function uP(e){for(var t=NPe(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Yi(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 EPe(e){return e.replace(/^([A-Z])/,"$$$1")}function NPe(e){return e.replace(/^\$([A-Z])/,"$1")}function PPe(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function mi(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 Or(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 ao(e){var t=e.indexOf(":");return t==-1?{s:mi(e),e:mi(e)}:{s:mi(e.slice(0,t)),e:mi(e.slice(t+1))}}function qn(e,t){return typeof t>"u"||typeof t=="number"?qn(e.s,e.e):(typeof e!="string"&&(e=Or(e)),typeof t!="string"&&(t=Or(t)),e==t?e:e+":"+t)}function an(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 rL(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=fu(e.z,r?Ta(t):t)}catch{}try{return e.w=fu((e.XF||{}).numFmtId||(r?14:0),r?Ta(t):t)}catch{return""+t}}function ql(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"?a1[e.v]||e.v:t==null?rL(e,e.v):rL(e,t))}function Jf(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function JW(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"?mi(n.origin):n.origin;o=l.r,s=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=an(a["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),o==-1&&(c.e.r=o=u.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[f].length;++d)if(!(typeof t[f][d]>"u")){var h={v:t[f][d]},v=o+f,p=s+d;if(c.s.r>v&&(c.s.r=v),c.s.c>p&&(c.s.c=p),c.e.r<v&&(c.e.r=v),c.e.c<p&&(c.e.c=p),t[f][d]&&typeof t[f][d]=="object"&&!Array.isArray(t[f][d])&&!(t[f][d]instanceof Date))h=t[f][d];else if(Array.isArray(h.v)&&(h.f=t[f][d][1],h.v=h.v[0]),h.v===null)if(h.f)h.t="n";else if(n.nullError)h.t="e",h.v=0;else if(n.sheetStubs)h.t="z";else continue;else typeof h.v=="number"?h.t="n":typeof h.v=="boolean"?h.t="b":h.v instanceof Date?(h.z=n.dateNF||Pn[14],n.cellDates?(h.t="d",h.w=fu(h.z,Ta(h.v))):(h.t="n",h.v=Ta(h.v),h.w=fu(h.z,h.v))):h.t="s";if(i)a[v]||(a[v]=[]),a[v][p]&&a[v][p].z&&(h.z=a[v][p].z),a[v][p]=h;else{var m=Or({c:p,r:v});a[m]&&a[m].z&&(h.z=a[m].z),a[m]=h}}}return c.s.c<1e7&&(a["!ref"]=qn(c)),a}function Lp(e,t){return JW(null,e,t)}function TPe(e){return e.read_shift(4,"i")}function hs(e,t){return t||(t=Re(4)),t.write_shift(4,e),t}function Ji(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function gi(e,t){var r=!1;return t==null&&(r=!0,t=Re(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function CPe(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function OPe(e,t){return t||(t=Re(4)),t.write_shift(2,0),t.write_shift(2,0),t}function fP(e,t){var r=e.l,n=e.read_shift(1),i=Ji(e),a=[],o={t:i,h:i};if(n&1){for(var s=e.read_shift(4),l=0;l!=s;++l)a.push(CPe(e));o.r=a}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}function kPe(e,t){var r=!1;return t==null&&(r=!0,t=Re(15+4*e.t.length)),t.write_shift(1,0),gi(e.t,t),r?t.slice(0,t.l):t}var jPe=fP;function LPe(e,t){var r=!1;return t==null&&(r=!0,t=Re(23+4*e.t.length)),t.write_shift(1,1),gi(e.t,t),t.write_shift(4,1),OPe({},t),r?t.slice(0,t.l):t}function Bo(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 Zf(e,t){return t==null&&(t=Re(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Qf(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function ed(e,t){return t==null&&(t=Re(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var IPe=Ji,ZW=gi;function dP(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function r2(e,t){var r=!1;return t==null&&(r=!0,t=Re(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var DPe=Ji,e3=dP,hP=r2;function QW(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?t2([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):ef(t,0)>>2;return r?i/100:i}function ez(e,t){t==null&&(t=Re(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:i==(i|0)&&i>=-536870912&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function tz(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function RPe(e,t){return t||(t=Re(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var td=tz,Ip=RPe;function Dp(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function $f(e,t){return(t||Re(8)).write_shift(8,e,"f")}function MPe(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 c=GPe[i];c&&(t.rgb=hL(c));break;case 2:t.rgb=hL([o,s,l]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function n2(e,t){if(t||(t=Re(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function FPe(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 $Pe(e,t){t||(t=Re(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var rz=2,Wa=3,Cv=11,i2=19,Ov=64,BPe=65,UPe=71,WPe=4108,zPe=4126,Oi=80,nL={1:{n:"CodePage",t:rz},2:{n:"Category",t:Oi},3:{n:"PresentationFormat",t:Oi},4:{n:"ByteCount",t:Wa},5:{n:"LineCount",t:Wa},6:{n:"ParagraphCount",t:Wa},7:{n:"SlideCount",t:Wa},8:{n:"NoteCount",t:Wa},9:{n:"HiddenCount",t:Wa},10:{n:"MultimediaClipCount",t:Wa},11:{n:"ScaleCrop",t:Cv},12:{n:"HeadingPairs",t:WPe},13:{n:"TitlesOfParts",t:zPe},14:{n:"Manager",t:Oi},15:{n:"Company",t:Oi},16:{n:"LinksUpToDate",t:Cv},17:{n:"CharacterCount",t:Wa},19:{n:"SharedDoc",t:Cv},22:{n:"HyperlinksChanged",t:Cv},23:{n:"AppVersion",t:Wa,p:"version"},24:{n:"DigSig",t:BPe},26:{n:"ContentType",t:Oi},27:{n:"ContentStatus",t:Oi},28:{n:"Language",t:Oi},29:{n:"Version",t:Oi},255:{},2147483648:{n:"Locale",t:i2},2147483651:{n:"Behavior",t:i2},1919054434:{}},iL={1:{n:"CodePage",t:rz},2:{n:"Title",t:Oi},3:{n:"Subject",t:Oi},4:{n:"Author",t:Oi},5:{n:"Keywords",t:Oi},6:{n:"Comments",t:Oi},7:{n:"Template",t:Oi},8:{n:"LastAuthor",t:Oi},9:{n:"RevNumber",t:Oi},10:{n:"EditTime",t:Ov},11:{n:"LastPrinted",t:Ov},12:{n:"CreatedDate",t:Ov},13:{n:"ModifiedDate",t:Ov},14:{n:"PageCount",t:Wa},15:{n:"WordCount",t:Wa},16:{n:"CharCount",t:Wa},17:{n:"Thumbnail",t:UPe},18:{n:"Application",t:Oi},19:{n:"DocSecurity",t:Wa},255:{},2147483648:{n:"Locale",t:i2},2147483651:{n:"Behavior",t:i2},1919054434:{}};function HPe(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var VPe=HPe([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]),GPe=Ca(VPe),a1={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},qPe={"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"},kv={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function nz(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function iz(e,t){var r=nPe(qPe),n=[],i;n[n.length]=Kn,n[n.length]=Ze("Types",null,{xmlns:pi.CT,"xmlns:xsd":pi.xsd,"xmlns:xsi":pi.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ze("Default",null,{Extension:l[0],ContentType:l[1]})}));var a=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=Ze("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:kv[l][t.bookType]||kv[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Ze("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:kv[l][t.bookType]||kv[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Ze("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:r[l][0]})})};return a("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var hr={WB:"http://schemas.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",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",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function az(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function fh(e){var t=[Kn,Ze("Relationships",null,{xmlns:pi.RELS})];return Mi(e["!id"]).forEach(function(r){t[t.length]=Ze("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function Nr(e,t,r,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,[hr.HLINK,hr.XPATH,hr.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function KPe(e){var t=[Kn];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2"> `),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/> `);for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/> `);return t.push("</manifest:manifest>"),t.join("")}function aL(e,t,r){return[' <rdf:Description rdf:about="'+e+`"> `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/> `,` </rdf:Description> `].join("")}function XPe(e,t){return[' <rdf:Description rdf:about="'+e+`"> `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/> `,` </rdf:Description> `].join("")}function YPe(e){var t=[Kn];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> `);for(var r=0;r!=e.length;++r)t.push(aL(e[r][0],e[r][1])),t.push(XPe("",e[r][0]));return t.push(aL("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function oz(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+Xx.version+"</meta:generator></office:meta></office:document-meta>"}var pf=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function wS(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=Tr(t),n[n.length]=r?Ze(e,t,r):ji(e,t))}function sz(e,t){var r=t||{},n=[Kn,Ze("cp:coreProperties",null,{"xmlns:cp":pi.CORE_PROPS,"xmlns:dc":pi.dc,"xmlns:dcterms":pi.dcterms,"xmlns:dcmitype":pi.dcmitype,"xmlns:xsi":pi.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&wS("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Q4(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&wS("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Q4(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=pf.length;++a){var o=pf[a],s=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:e?e[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&wS(o[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var dh=[["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"]],lz=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function cz(e){var t=[],r=Ze;return e||(e={}),e.Application="SheetJS",t[t.length]=Kn,t[t.length]=Ze("Properties",null,{xmlns:pi.EXT_PROPS,"xmlns:vt":pi.vt}),dh.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Tr(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+Tr(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function uz(e){var t=[Kn,Ze("Properties",null,{xmlns:pi.CUST_PROPS,"xmlns:vt":pi.vt})];if(!e)return t.join("");var r=1;return Mi(e).forEach(function(i){++r,t[t.length]=Ze("property",pPe(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Tr(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var oL={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function JPe(e,t){var r=[];return Mi(oL).map(function(n){for(var i=0;i<pf.length;++i)if(pf[i][1]==n)return pf[i];for(i=0;i<dh.length;++i)if(dh[i][1]==n)return dh[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(ji(oL[n[1]]||n[1],i))}}),Ze("DocumentProperties",r.join(""),{xmlns:qa.o})}function ZPe(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Mi(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var o=0;o<pf.length;++o)if(a==pf[o][1])return;for(o=0;o<dh.length;++o)if(a==dh[o][1])return;for(o=0;o<r.length;++o)if(a==r[o])return;var s=e[a],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),i.push(Ze(qj(a),s,{"dt:dt":l}))}}),t&&Mi(t).forEach(function(a){if(Object.prototype.hasOwnProperty.call(t,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var o=t[a],s="string";typeof o=="number"?(s="float",o=String(o)):o===!0||o===!1?(s="boolean",o=o?"1":"0"):o instanceof Date?(s="dateTime.tz",o=o.toISOString()):o=String(o),i.push(Ze(qj(a),o,{"dt:dt":s}))}}),"<"+n+' xmlns="'+qa.o+'">'+i.join("")+"</"+n+">"}function QPe(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var o=Re(8);return o.write_shift(4,n),o.write_shift(4,i),o}function sL(e,t){var r=Re(4),n=Re(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Re(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=QPe(t);break;case 31:case 80:for(n=Re(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return ki([r,n])}var fz=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function eTe(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function lL(e,t,r){var n=Re(8),i=[],a=[],o=8,s=0,l=Re(8),c=Re(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),a.push(l),i.push(c),o+=8+l.length,!t){c=Re(8),c.write_shift(4,0),i.unshift(c);var u=[Re(4)];for(u[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=Re(8+2*(f.length+1)+(f.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);u.push(l)}l=ki(u),a.unshift(l),o+=8+l.length}for(s=0;s<e.length;++s)if(!(t&&!t[e[s][0]])&&!(fz.indexOf(e[s][0])>-1||lz.indexOf(e[s][0])>-1)&&e[s][1]!=null){var d=e[s][1],h=0;if(t){h=+t[e[s][0]];var v=r[h];if(v.p=="version"&&typeof d=="string"){var p=d.split(".");d=(+p[0]<<16)+(+p[1]||0)}l=sL(v.t,d)}else{var m=eTe(d);m==-1&&(m=31,d=String(d)),l=sL(m,d)}a.push(l),c=Re(8),c.write_shift(4,t?h:2+s),i.push(c),o+=8+l.length}var y=8*(a.length+1);for(s=0;s<a.length;++s)i[s].write_shift(4,y),y+=a[s].length;return n.write_shift(4,o),n.write_shift(4,a.length),ki([n].concat(i).concat(a))}function cL(e,t,r,n,i,a){var o=Re(i?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,Dr.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,i?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,i?68:48);var l=lL(e,r,n);if(s.push(l),i){var c=lL(i,null,null);o.write_shift(16,a,"hex"),o.write_shift(4,68+l.length),s.push(c)}return ki(s)}function tTe(e,t){t||(t=Re(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function rTe(e,t){return e.read_shift(t)===1}function la(e,t){return t||(t=Re(2)),t.write_shift(2,+!!e),t}function dz(e){return e.read_shift(2,"u")}function _o(e,t){return t||(t=Re(2)),t.write_shift(2,e),t}function hz(e,t,r){return r||(r=Re(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function pz(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 nTe(e){var t=e.t||"",r=Re(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Re(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return ki(i)}function iTe(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 aTe(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):iTe(e,n,r)}function oTe(e,t,r){if(r.biff>5)return aTe(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 mz(e,t,r){return r||(r=Re(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function uL(e,t){t||(t=Re(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function sTe(e){var t=Re(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)t.write_shift(4,o[r]);if(a==28)n=n.slice(1),uL(n,t);else if(a&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));var s=i>-1?n.slice(0,i):n;for(t.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)t.write_shift(2,s.charCodeAt(r));t.write_shift(2,0),a&8&&uL(i>-1?n.slice(i+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,n.charCodeAt(r+3*l)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Bf(e,t,r,n){return n||(n=Re(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function lTe(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 cTe(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 gz(e,t){return t||(t=Re(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function pP(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=Re(i);return a.write_shift(2,n),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function uTe(e,t){var r=!t||t.biff==8,n=Re(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function fTe(e,t){var r=!t||t.biff>=8?2:1,n=Re(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function dTe(e,t){var r=Re(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=nTe(e[i]);var a=ki([r].concat(n));return a.parts=[r.length].concat(n.map(function(o){return o.length})),a}function hTe(){var e=Re(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function pTe(e){var t=Re(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function mTe(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,a=Re(i);return a.write_shift(2,e.sz*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),a}function gTe(e,t,r,n){var i=Re(10);return Bf(e,t,n,i),i.write_shift(4,r),i}function vTe(e,t,r,n,i){var a=!i||i.biff==8,o=Re(8+ +a+(1+a)*r.length);return Bf(e,t,n,o),o.write_shift(2,r.length),a&&o.write_shift(1,1),o.write_shift((1+a)*r.length,r,a?"utf16le":"sbcs"),o}function yTe(e,t,r,n){var i=r&&r.biff==5;n||(n=Re(i?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(i?1:2,t.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function xTe(e,t){var r=t.biff==8||!t.biff?4:2,n=Re(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function fL(e,t,r,n){var i=r&&r.biff==5;n||(n=Re(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function bTe(e){var t=Re(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function wTe(e,t,r,n,i,a){var o=Re(8);return Bf(e,t,n,o),hz(r,a,o),o}function STe(e,t,r,n){var i=Re(14);return Bf(e,t,n,i),$f(r,i),i}function _Te(e,t,r){if(r.biff<8)return ATe(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(lTe(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function ATe(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=pz(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function ETe(e){var t=Re(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)gz(e[r],t);return t}function NTe(e){var t=Re(24),r=mi(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(n[i],16));return ki([t,sTe(e[1])])}function PTe(e){var t=e[1].Tooltip,r=Re(10+2*(t.length+1));r.write_shift(2,2048);var n=mi(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var i=0;i<t.length;++i)r.write_shift(2,t.charCodeAt(i));return r.write_shift(2,0),r}function TTe(e){return e||(e=Re(4)),e.write_shift(2,1),e.write_shift(2,1),e}function CTe(e,t,r){if(!r.cellStyles)return qs(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 c={s:i,e:a,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}function OTe(e,t){var r=Re(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function kTe(e){for(var t=Re(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function jTe(e,t,r){var n=Re(15);return s1(n,e,t),n.write_shift(8,r,"f"),n}function LTe(e,t,r){var n=Re(9);return s1(n,e,t),n.write_shift(2,r),n}var ITe=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=nP({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 c=[],u=Ff(1);switch(l.type){case"base64":u=ss(Gl(s));break;case"binary":u=ss(s);break;case"buffer":case"array":u=s;break}Va(u,0);var f=u.read_shift(1),d=!!(f&136),h=!1,v=!1;switch(f){case 2:break;case 3:break;case 48:h=!0,d=!0;break;case 49:h=!0,d=!0;break;case 131:break;case 139:break;case 140:v=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var p=0,m=521;f==2&&(p=u.read_shift(2)),u.l+=3,f!=2&&(p=u.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(m=u.read_shift(2));var y=u.read_shift(2),x=l.codepage||1252;f!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(x=e[u[u.l]]),u.l+=1,u.l+=2),v&&(u.l+=36);for(var w=[],S={},A=Math.min(u.length,f==2?521:m-10-(h?264:0)),N=v?32:11;u.l<A&&u[u.l]!=13;)switch(S={},S.name=Yx.utils.decode(x,u.slice(u.l,u.l+N)).replace(/[\u0000\r\n].*$/g,""),u.l+=N,S.type=String.fromCharCode(u.read_shift(1)),f!=2&&!v&&(S.offset=u.read_shift(4)),S.len=u.read_shift(1),f==2&&(S.offset=u.read_shift(2)),S.dec=u.read_shift(1),S.name.length&&w.push(S),f!=2&&(u.l+=v?13:14),S.type){case"B":(!h||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(u[u.l]!==13&&(u.l=m-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=m;var P=0,j=0;for(c[0]=[],j=0;j!=w.length;++j)c[0][j]=w[j].name;for(;p-- >0;){if(u[u.l]===42){u.l+=y;continue}for(++u.l,c[++P]=[],j=0,j=0;j!=w.length;++j){var C=u.slice(u.l,u.l+w[j].len);u.l+=w[j].len,Va(C,0);var R=Yx.utils.decode(x,C);switch(w[j].type){case"C":R.trim().length&&(c[P][j]=R.replace(/\s+$/,""));break;case"D":R.length===8?c[P][j]=new Date(+R.slice(0,4),+R.slice(4,6)-1,+R.slice(6,8)):c[P][j]=R;break;case"F":c[P][j]=parseFloat(R.trim());break;case"+":case"I":c[P][j]=v?C.read_shift(-4,"i")^2147483648:C.read_shift(4,"i");break;case"L":switch(R.trim().toUpperCase()){case"Y":case"T":c[P][j]=!0;break;case"N":case"F":c[P][j]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+R+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));c[P][j]="##MEMO##"+(v?parseInt(R.trim(),10):C.read_shift(4));break;case"N":R=R.replace(/\u0000/g,"").trim(),R&&R!="."&&(c[P][j]=+R||0);break;case"@":c[P][j]=new Date(C.read_shift(-8,"f")-621356832e5);break;case"T":c[P][j]=new Date((C.read_shift(4)-2440588)*864e5+C.read_shift(4));break;case"Y":c[P][j]=C.read_shift(4,"i")/1e4+C.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[P][j]=-C.read_shift(-8,"f");break;case"B":if(h&&w[j].len==8){c[P][j]=C.read_shift(8,"f");break}case"G":case"P":C.l+=w[j].len;break;case"0":if(w[j].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+w[j].type)}}}if(f!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=w,c}function n(s,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var u=Lp(r(s,c),c);return u["!cols"]=c.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete c.DBF,u}function i(s,l){try{return Jf(n(s,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var c=l||{};if(+c.codepage>=0&&Sg(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=Pa(),f=c2(s,{header:1,raw:!0,cellDates:!0}),d=f[0],h=f.slice(1),v=s["!cols"]||[],p=0,m=0,y=0,x=1;for(p=0;p<d.length;++p){if(((v[p]||{}).DBF||{}).name){d[p]=v[p].DBF.name,++y;continue}if(d[p]!=null){if(++y,typeof d[p]=="number"&&(d[p]=d[p].toString(10)),typeof d[p]!="string")throw new Error("DBF Invalid column name "+d[p]+" |"+typeof d[p]+"|");if(d.indexOf(d[p])!==p){for(m=0;m<1024;++m)if(d.indexOf(d[p]+"_"+m)==-1){d[p]+="_"+m;break}}}}var w=an(s["!ref"]),S=[],A=[],N=[];for(p=0;p<=w.e.c-w.s.c;++p){var P="",j="",C=0,R=[];for(m=0;m<h.length;++m)h[m][p]!=null&&R.push(h[m][p]);if(R.length==0||d[p]==null){S[p]="?";continue}for(m=0;m<R.length;++m){switch(typeof R[m]){case"number":j="B";break;case"string":j="C";break;case"boolean":j="L";break;case"object":j=R[m]instanceof Date?"D":"C";break;default:j="C"}C=Math.max(C,String(R[m]).length),P=P&&P!=j?"C":j}C>250&&(C=250),j=((v[p]||{}).DBF||{}).type,j=="C"&&v[p].DBF.len>C&&(C=v[p].DBF.len),P=="B"&&j=="N"&&(P="N",N[p]=v[p].DBF.dec,C=v[p].DBF.len),A[p]=P=="C"||j=="N"?C:a[P]||0,x+=A[p],S[p]=P}var L=u.next(32);for(L.write_shift(4,318902576),L.write_shift(4,h.length),L.write_shift(2,296+32*y),L.write_shift(2,x),p=0;p<4;++p)L.write_shift(4,0);for(L.write_shift(4,0|(+t[yW]||3)<<8),p=0,m=0;p<d.length;++p)if(d[p]!=null){var I=u.next(32),B=(d[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);I.write_shift(1,B,"sbcs"),I.write_shift(1,S[p]=="?"?"C":S[p],"sbcs"),I.write_shift(4,m),I.write_shift(1,A[p]||a[S[p]]||0),I.write_shift(1,N[p]||0),I.write_shift(1,2),I.write_shift(4,0),I.write_shift(1,0),I.write_shift(4,0),I.write_shift(4,0),m+=A[p]||a[S[p]]||0}var z=u.next(264);for(z.write_shift(4,13),p=0;p<65;++p)z.write_shift(4,0);for(p=0;p<h.length;++p){var V=u.next(x);for(V.write_shift(1,0),m=0;m<d.length;++m)if(d[m]!=null)switch(S[m]){case"L":V.write_shift(1,h[p][m]==null?63:h[p][m]?84:70);break;case"B":V.write_shift(8,h[p][m]||0,"f");break;case"N":var Q="0";for(typeof h[p][m]=="number"&&(Q=h[p][m].toFixed(N[m]||0)),y=0;y<A[m]-Q.length;++y)V.write_shift(1,32);V.write_shift(1,Q,"sbcs");break;case"D":h[p][m]?(V.write_shift(4,("0000"+h[p][m].getFullYear()).slice(-4),"sbcs"),V.write_shift(2,("00"+(h[p][m].getMonth()+1)).slice(-2),"sbcs"),V.write_shift(2,("00"+h[p][m].getDate()).slice(-2),"sbcs")):V.write_shift(8,"00000000","sbcs");break;case"C":var ae=String(h[p][m]!=null?h[p][m]:"").slice(0,A[m]);for(V.write_shift(1,ae,"sbcs"),y=0;y<A[m]-ae.length;++y)V.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:i,to_sheet:n,from_sheet:o}}(),DTe=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("+Mi(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,h){var v=e[h];return typeof v=="number"?Dj(v):v},n=function(d,h,v){var p=h.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return p==59?d:Dj(p)};e["|"]=254;function i(d,h){switch(h.type){case"base64":return a(Gl(d),h);case"binary":return a(d,h);case"buffer":return a(vr&&Buffer.isBuffer(d)?d.toString("binary"):r1(d),h);case"array":return a(rw(d),h)}throw new Error("Unrecognized type "+h.type)}function a(d,h){var v=d.split(/[\n\r]+/),p=-1,m=-1,y=0,x=0,w=[],S=[],A=null,N={},P=[],j=[],C=[],R=0,L;for(+h.codepage>=0&&Sg(+h.codepage);y!==v.length;++y){R=0;var I=v[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),B=I.replace(/;;/g,"\0").split(";").map(function(U){return U.replace(/\u0000/g,";")}),z=B[0],V;if(I.length>0)switch(z){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":B[1].charAt(0)=="P"&&S.push(I.slice(3).replace(/;;/g,";"));break;case"C":var Q=!1,ae=!1,K=!1,re=!1,ye=-1,xe=-1;for(x=1;x<B.length;++x)switch(B[x].charAt(0)){case"A":break;case"X":m=parseInt(B[x].slice(1))-1,ae=!0;break;case"Y":for(p=parseInt(B[x].slice(1))-1,ae||(m=0),L=w.length;L<=p;++L)w[L]=[];break;case"K":V=B[x].slice(1),V.charAt(0)==='"'?V=V.slice(1,V.length-1):V==="TRUE"?V=!0:V==="FALSE"?V=!1:isNaN(Ll(V))?isNaN(Ag(V).getDate())||(V=pa(V)):(V=Ll(V),A!==null&&OW(A)&&(V=IW(V))),Q=!0;break;case"E":re=!0;var O=LCe(B[x].slice(1),{r:p,c:m});w[p][m]=[w[p][m],O];break;case"S":K=!0,w[p][m]=[w[p][m],"S5S"];break;case"G":break;case"R":ye=parseInt(B[x].slice(1))-1;break;case"C":xe=parseInt(B[x].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+I)}if(Q&&(w[p][m]&&w[p][m].length==2?w[p][m][0]=V:w[p][m]=V,A=null),K){if(re)throw new Error("SYLK shared formula cannot have own formula");var M=ye>-1&&w[ye][xe];if(!M||!M[1])throw new Error("SYLK shared formula cannot find base");w[p][m][1]=ICe(M[1],{r:p-ye,c:m-xe})}break;case"F":var F=0;for(x=1;x<B.length;++x)switch(B[x].charAt(0)){case"X":m=parseInt(B[x].slice(1))-1,++F;break;case"Y":for(p=parseInt(B[x].slice(1))-1,L=w.length;L<=p;++L)w[L]=[];break;case"M":R=parseInt(B[x].slice(1))/20;break;case"F":break;case"G":break;case"P":A=S[parseInt(B[x].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(C=B[x].slice(1).split(" "),L=parseInt(C[0],10);L<=parseInt(C[1],10);++L)R=parseInt(C[2],10),j[L-1]=R===0?{hidden:!0}:{wch:R},mP(j[L-1]);break;case"C":m=parseInt(B[x].slice(1))-1,j[m]||(j[m]={});break;case"R":p=parseInt(B[x].slice(1))-1,P[p]||(P[p]={}),R>0?(P[p].hpt=R,P[p].hpx=wz(R)):R===0&&(P[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+I)}F<1&&(A=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+I)}}return P.length>0&&(N["!rows"]=P),j.length>0&&(N["!cols"]=j),h&&h.sheetRows&&(w=w.slice(0,h.sheetRows)),[w,N]}function o(d,h){var v=i(d,h),p=v[0],m=v[1],y=Lp(p,h);return Mi(m).forEach(function(x){y[x]=m[x]}),y}function s(d,h){return Jf(o(d,h),h)}function l(d,h,v,p){var m="C;Y"+(v+1)+";X"+(p+1)+";K";switch(d.t){case"n":m+=d.v||0,d.f&&!d.F&&(m+=";E"+vP(d.f,{r:v,c:p}));break;case"b":m+=d.v?"TRUE":"FALSE";break;case"e":m+=d.w||d.v;break;case"d":m+='"'+(d.w||d.v)+'"';break;case"s":m+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function c(d,h){h.forEach(function(v,p){var m="F;W"+(p+1)+" "+(p+1)+" ";v.hidden?m+="0":(typeof v.width=="number"&&!v.wpx&&(v.wpx=a2(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=o2(v.wpx)),typeof v.wch=="number"&&(m+=Math.round(v.wch))),m.charAt(m.length-1)!=" "&&d.push(m)})}function u(d,h){h.forEach(function(v,p){var m="F;";v.hidden?m+="M0;":v.hpt?m+="M"+20*v.hpt+";":v.hpx&&(m+="M"+20*s2(v.hpx)+";"),m.length>2&&d.push(m+"R"+(p+1))})}function f(d,h){var v=["ID;PWXL;N;E"],p=[],m=an(d["!ref"]),y,x=Array.isArray(d),w=`\r `;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),d["!cols"]&&c(v,d["!cols"]),d["!rows"]&&u(v,d["!rows"]),v.push("B;Y"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var S=m.s.r;S<=m.e.r;++S)for(var A=m.s.c;A<=m.e.c;++A){var N=Or({r:S,c:A});y=x?(d[S]||[])[A]:d[N],!(!y||y.v==null&&(!y.f||y.F))&&p.push(l(y,d,S,A))}return v.join(w)+w+p.join(w)+w+"E"+w}return{to_workbook:s,to_sheet:o,from_sheet:f}}(),RTe=function(){function e(a,o){switch(o.type){case"base64":return t(Gl(a),o);case"binary":return t(a,o);case"buffer":return t(vr&&Buffer.isBuffer(a)?a.toString("binary"):r1(a),o);case"array":return t(rw(a),o)}throw new Error("Unrecognized type "+o.type)}function t(a,o){for(var s=a.split(` `),l=-1,c=-1,u=0,f=[];u!==s.length;++u){if(s[u].trim()==="BOT"){f[++l]=[],c=0;continue}if(!(l<0)){var d=s[u].trim().split(","),h=d[0],v=d[1];++u;for(var p=s[u]||"";(p.match(/["]/g)||[]).length&1&&u<s.length-1;)p+=` `+s[++u];switch(p=p.trim(),+h){case-1:if(p==="BOT"){f[++l]=[],c=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?f[l][c]=!0:p==="FALSE"?f[l][c]=!1:isNaN(Ll(v))?isNaN(Ag(v).getDate())?f[l][c]=v:f[l][c]=pa(v):f[l][c]=Ll(v),++c;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),f[l][c++]=p!==""?p:null;break}if(p==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(a,o){return Lp(e(a,o),o)}function n(a,o){return Jf(r(a,o),o)}var i=function(){var a=function(l,c,u,f,d){l.push(c),l.push(u+","+f),l.push('"'+d.replace(/"/g,'""')+'"')},o=function(l,c,u,f){l.push(c+","+u),l.push(c==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var c=[],u=an(l["!ref"]),f,d=Array.isArray(l);a(c,"TABLE",0,1,"sheetjs"),a(c,"VECTORS",0,u.e.r-u.s.r+1,""),a(c,"TUPLES",0,u.e.c-u.s.c+1,""),a(c,"DATA",0,0,"");for(var h=u.s.r;h<=u.e.r;++h){o(c,-1,0,"BOT");for(var v=u.s.c;v<=u.e.c;++v){var p=Or({r:h,c:v});if(f=d?(l[h]||[])[v]:l[p],!f){o(c,1,0,"");continue}switch(f.t){case"n":var m=f.w;!m&&f.v!=null&&(m=f.v),m==null?f.f&&!f.F?o(c,1,0,"="+f.f):o(c,1,0,""):o(c,0,m,"V");break;case"b":o(c,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(c,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=fu(f.z||Pn[14],Ta(pa(f.v)))),o(c,0,f.w,"V");break;default:o(c,1,0,"")}}}o(c,-1,0,"EOD");var y=`\r `,x=c.join(y);return x}}();return{to_workbook:n,to_sheet:r,from_sheet:i}}(),vz=function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,` `)}function t(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,d){for(var h=f.split(` `),v=-1,p=-1,m=0,y=[];m!==h.length;++m){var x=h[m].trim().split(":");if(x[0]==="cell"){var w=mi(x[1]);if(y.length<=w.r)for(v=y.length;v<=w.r;++v)y[v]||(y[v]=[]);switch(v=w.r,p=w.c,x[2]){case"t":y[v][p]=e(x[3]);break;case"v":y[v][p]=+x[3];break;case"vtf":var S=x[x.length-1];case"vtc":switch(x[3]){case"nl":y[v][p]=!!+x[4];break;default:y[v][p]=+x[4];break}x[2]=="vtf"&&(y[v][p]=[y[v][p],S])}}}return d&&d.sheetRows&&(y=y.slice(0,d.sheetRows)),y}function n(f,d){return Lp(r(f,d),d)}function i(f,d){return Jf(n(f,d),d)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(` `),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(` `)+` `,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(` `),l="--SocialCalcSpreadsheetControlSave--";function c(f){if(!f||!f["!ref"])return"";for(var d=[],h=[],v,p="",m=ao(f["!ref"]),y=Array.isArray(f),x=m.s.r;x<=m.e.r;++x)for(var w=m.s.c;w<=m.e.c;++w)if(p=Or({r:x,c:w}),v=y?(f[x]||[])[w]:f[p],!(!v||v.v==null||v.t==="z")){switch(h=["cell",p,"t"],v.t){case"s":case"str":h.push(t(v.v));break;case"n":v.f?(h[2]="vtf",h[3]="n",h[4]=v.v,h[5]=t(v.f)):(h[2]="v",h[3]=v.v);break;case"b":h[2]="vt"+(v.f?"f":"c"),h[3]="nl",h[4]=v.v?"1":"0",h[5]=t(v.f||(v.v?"TRUE":"FALSE"));break;case"d":var S=Ta(pa(v.v));h[2]="vtc",h[3]="nd",h[4]=""+S,h[5]=v.w||fu(v.z||Pn[14],S);break;case"e":continue}d.push(h.join(":"))}return d.push("sheet:c:"+(m.e.c-m.s.c+1)+":r:"+(m.e.r-m.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(` `)}function u(f){return[a,o,s,o,c(f),l].join(` `)}return{to_workbook:i,to_sheet:n,from_sheet:u}}(),MTe=function(){function e(u,f,d,h,v){v.raw?f[d][h]=u:u===""||(u==="TRUE"?f[d][h]=!0:u==="FALSE"?f[d][h]=!1:isNaN(Ll(u))?isNaN(Ag(u).getDate())?f[d][h]=u:f[d][h]=pa(u):f[d][h]=Ll(u))}function t(u,f){var d=f||{},h=[];if(!u||u.length===0)return h;for(var v=u.split(/[\r\n]/),p=v.length-1;p>=0&&v[p].length===0;)--p;for(var m=10,y=0,x=0;x<=p;++x)y=v[x].indexOf(" "),y==-1?y=v[x].length:y++,m=Math.max(m,y);for(x=0;x<=p;++x){h[x]=[];var w=0;for(e(v[x].slice(0,m).trim(),h,x,w,d),w=1;w<=(v[x].length-m)/10+1;++w)e(v[x].slice(m+(w-1)*10,m+w*10).trim(),h,x,w,d)}return d.sheetRows&&(h=h.slice(0,d.sheetRows)),h}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(u){for(var f={},d=!1,h=0,v=0;h<u.length;++h)(v=u.charCodeAt(h))==34?d=!d:!d&&v in r&&(f[v]=(f[v]||0)+1);v=[];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&v.push([f[h],h]);if(!v.length){f=n;for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&v.push([f[h],h])}return v.sort(function(p,m){return p[0]-m[0]||n[p[1]]-n[m[1]]}),r[v.pop()[1]]||44}function a(u,f){var d=f||{},h="",v=d.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(h=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(h=u.charAt(4),u=u.slice(6)):h=i(u.slice(0,1024)):d&&d.FS?h=d.FS:h=i(u.slice(0,1024));var m=0,y=0,x=0,w=0,S=0,A=h.charCodeAt(0),N=!1,P=0,j=u.charCodeAt(0);u=u.replace(/\r\n/mg,` `);var C=d.dateNF!=null?QNe(d.dateNF):null;function R(){var L=u.slice(w,S),I={};if(L.charAt(0)=='"'&&L.charAt(L.length-1)=='"'&&(L=L.slice(1,-1).replace(/""/g,'"')),L.length===0)I.t="z";else if(d.raw)I.t="s",I.v=L;else if(L.trim().length===0)I.t="s",I.v=L;else if(L.charCodeAt(0)==61)L.charCodeAt(1)==34&&L.charCodeAt(L.length-1)==34?(I.t="s",I.v=L.slice(2,-1).replace(/""/g,'"')):DCe(L)?(I.t="n",I.f=L.slice(1)):(I.t="s",I.v=L);else if(L=="TRUE")I.t="b",I.v=!0;else if(L=="FALSE")I.t="b",I.v=!1;else if(!isNaN(x=Ll(L)))I.t="n",d.cellText!==!1&&(I.w=L),I.v=x;else if(!isNaN(Ag(L).getDate())||C&&L.match(C)){I.z=d.dateNF||Pn[14];var B=0;C&&L.match(C)&&(L=ePe(L,d.dateNF,L.match(C)||[]),B=1),d.cellDates?(I.t="d",I.v=pa(L,B)):(I.t="n",I.v=Ta(pa(L,B))),d.cellText!==!1&&(I.w=fu(I.z,I.v instanceof Date?Ta(I.v):I.v)),d.cellNF||delete I.z}else I.t="s",I.v=L;if(I.t=="z"||(d.dense?(v[m]||(v[m]=[]),v[m][y]=I):v[Or({c:y,r:m})]=I),w=S+1,j=u.charCodeAt(w),p.e.c<y&&(p.e.c=y),p.e.r<m&&(p.e.r=m),P==A)++y;else if(y=0,++m,d.sheetRows&&d.sheetRows<=m)return!0}e:for(;S<u.length;++S)switch(P=u.charCodeAt(S)){case 34:j===34&&(N=!N);break;case A:case 10:case 13:if(!N&&R())break e;break}return S-w>0&&R(),v["!ref"]=qn(p),v}function o(u,f){return!(f&&f.PRN)||f.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?a(u,f):Lp(t(u,f),f)}function s(u,f){var d="",h=f.type=="string"?[0,0,0,0]:X8e(u,f);switch(f.type){case"base64":d=Gl(u);break;case"binary":d=u;break;case"buffer":f.codepage==65001?d=u.toString("utf8"):f.codepage&&typeof Yx<"u"||(d=vr&&Buffer.isBuffer(u)?u.toString("binary"):r1(u));break;case"array":d=rw(u);break;case"string":d=u;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?d=sm(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=sm(d):f.type=="binary"&&typeof Yx<"u",d.slice(0,19)=="socialcalc:version:"?vz.to_sheet(f.type=="string"?d:sm(d),f):o(d,f)}function l(u,f){return Jf(s(u,f),f)}function c(u){for(var f=[],d=an(u["!ref"]),h,v=Array.isArray(u),p=d.s.r;p<=d.e.r;++p){for(var m=[],y=d.s.c;y<=d.e.c;++y){var x=Or({r:p,c:y});if(h=v?(u[p]||[])[y]:u[x],!h||h.v==null){m.push(" ");continue}for(var w=(h.w||(ql(h),h.w)||"").slice(0,10);w.length<10;)w+=" ";m.push(w+(y===0?" ":""))}f.push(m.join(""))}return f.join(` `)}return{to_workbook:l,to_sheet:s,from_sheet:c}}(),dL=function(){function e(O,M,F){if(O){Va(O,O.l||0);for(var U=F.Enum||ye;O.l<O.length;){var Z=O.read_shift(2),se=U[Z]||U[65535],ve=O.read_shift(2),oe=O.l+ve,pe=se.f&&se.f(O,ve,F);if(O.l=oe,M(pe,se,Z))return}}}function t(O,M){switch(M.type){case"base64":return r(ss(Gl(O)),M);case"binary":return r(ss(O),M);case"buffer":case"array":return r(O,M)}throw"Unsupported type "+M.type}function r(O,M){if(!O)return O;var F=M||{},U=F.dense?[]:{},Z="Sheet1",se="",ve=0,oe={},pe=[],Se=[],me={s:{r:0,c:0},e:{r:0,c:0}},Le=F.sheetRows||0;if(O[2]==0&&(O[3]==8||O[3]==9)&&O.length>=16&&O[14]==5&&O[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(O[2]==2)F.Enum=ye,e(O,function(De,nt,$e){switch($e){case 0:F.vers=De,De>=4096&&(F.qpro=!0);break;case 6:me=De;break;case 204:De&&(se=De);break;case 222:se=De;break;case 15:case 51:F.qpro||(De[1].v=De[1].v.slice(1));case 13:case 14:case 16:$e==14&&(De[2]&112)==112&&(De[2]&15)>1&&(De[2]&15)<15&&(De[1].z=F.dateNF||Pn[14],F.cellDates&&(De[1].t="d",De[1].v=IW(De[1].v))),F.qpro&&De[3]>ve&&(U["!ref"]=qn(me),oe[Z]=U,pe.push(Z),U=F.dense?[]:{},me={s:{r:0,c:0},e:{r:0,c:0}},ve=De[3],Z=se||"Sheet"+(ve+1),se="");var ot=F.dense?(U[De[0].r]||[])[De[0].c]:U[Or(De[0])];if(ot){ot.t=De[1].t,ot.v=De[1].v,De[1].z!=null&&(ot.z=De[1].z),De[1].f!=null&&(ot.f=De[1].f);break}F.dense?(U[De[0].r]||(U[De[0].r]=[]),U[De[0].r][De[0].c]=De[1]):U[Or(De[0])]=De[1];break}},F);else if(O[2]==26||O[2]==14)F.Enum=xe,O[2]==14&&(F.qpro=!0,O.l=0),e(O,function(De,nt,$e){switch($e){case 204:Z=De;break;case 22:De[1].v=De[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(De[3]>ve&&(U["!ref"]=qn(me),oe[Z]=U,pe.push(Z),U=F.dense?[]:{},me={s:{r:0,c:0},e:{r:0,c:0}},ve=De[3],Z="Sheet"+(ve+1)),Le>0&&De[0].r>=Le)break;F.dense?(U[De[0].r]||(U[De[0].r]=[]),U[De[0].r][De[0].c]=De[1]):U[Or(De[0])]=De[1],me.e.c<De[0].c&&(me.e.c=De[0].c),me.e.r<De[0].r&&(me.e.r=De[0].r);break;case 27:De[14e3]&&(Se[De[14e3][0]]=De[14e3][1]);break;case 1537:Se[De[0]]=De[1],De[0]==ve&&(Z=De[1]);break}},F);else throw new Error("Unrecognized LOTUS BOF "+O[2]);if(U["!ref"]=qn(me),oe[se||Z]=U,pe.push(se||Z),!Se.length)return{SheetNames:pe,Sheets:oe};for(var ie={},Y=[],Ie=0;Ie<Se.length;++Ie)oe[pe[Ie]]?(Y.push(Se[Ie]||pe[Ie]),ie[Se[Ie]]=oe[Se[Ie]]||oe[pe[Ie]]):(Y.push(Se[Ie]),ie[Se[Ie]]={"!ref":"A1"});return{SheetNames:Y,Sheets:ie}}function n(O,M){var F=M||{};if(+F.codepage>=0&&Sg(+F.codepage),F.type=="string")throw new Error("Cannot write WK1 to JS string");var U=Pa(),Z=an(O["!ref"]),se=Array.isArray(O),ve=[];Qe(U,0,a(1030)),Qe(U,6,l(Z));for(var oe=Math.min(Z.e.r,8191),pe=Z.s.r;pe<=oe;++pe)for(var Se=Di(pe),me=Z.s.c;me<=Z.e.c;++me){pe===Z.s.r&&(ve[me]=Yi(me));var Le=ve[me]+Se,ie=se?(O[pe]||[])[me]:O[Le];if(!(!ie||ie.t=="z"))if(ie.t=="n")(ie.v|0)==ie.v&&ie.v>=-32768&&ie.v<=32767?Qe(U,13,h(pe,me,ie.v)):Qe(U,14,p(pe,me,ie.v));else{var Y=ql(ie);Qe(U,15,f(pe,me,Y.slice(0,239)))}}return Qe(U,1),U.end()}function i(O,M){var F=M||{};if(+F.codepage>=0&&Sg(+F.codepage),F.type=="string")throw new Error("Cannot write WK3 to JS string");var U=Pa();Qe(U,0,o(O));for(var Z=0,se=0;Z<O.SheetNames.length;++Z)(O.Sheets[O.SheetNames[Z]]||{})["!ref"]&&Qe(U,27,re(O.SheetNames[Z],se++));var ve=0;for(Z=0;Z<O.SheetNames.length;++Z){var oe=O.Sheets[O.SheetNames[Z]];if(!(!oe||!oe["!ref"])){for(var pe=an(oe["!ref"]),Se=Array.isArray(oe),me=[],Le=Math.min(pe.e.r,8191),ie=pe.s.r;ie<=Le;++ie)for(var Y=Di(ie),Ie=pe.s.c;Ie<=pe.e.c;++Ie){ie===pe.s.r&&(me[Ie]=Yi(Ie));var De=me[Ie]+Y,nt=Se?(oe[ie]||[])[Ie]:oe[De];if(!(!nt||nt.t=="z"))if(nt.t=="n")Qe(U,23,R(ie,Ie,ve,nt.v));else{var $e=ql(nt);Qe(U,22,P(ie,Ie,ve,$e.slice(0,239)))}}++ve}}return Qe(U,1),U.end()}function a(O){var M=Re(2);return M.write_shift(2,O),M}function o(O){var M=Re(26);M.write_shift(2,4096),M.write_shift(2,4),M.write_shift(4,0);for(var F=0,U=0,Z=0,se=0;se<O.SheetNames.length;++se){var ve=O.SheetNames[se],oe=O.Sheets[ve];if(!(!oe||!oe["!ref"])){++Z;var pe=ao(oe["!ref"]);F<pe.e.r&&(F=pe.e.r),U<pe.e.c&&(U=pe.e.c)}}return F>8191&&(F=8191),M.write_shift(2,F),M.write_shift(1,Z),M.write_shift(1,U),M.write_shift(2,0),M.write_shift(2,0),M.write_shift(1,1),M.write_shift(1,2),M.write_shift(4,0),M.write_shift(4,0),M}function s(O,M,F){var U={s:{c:0,r:0},e:{c:0,r:0}};return M==8&&F.qpro?(U.s.c=O.read_shift(1),O.l++,U.s.r=O.read_shift(2),U.e.c=O.read_shift(1),O.l++,U.e.r=O.read_shift(2),U):(U.s.c=O.read_shift(2),U.s.r=O.read_shift(2),M==12&&F.qpro&&(O.l+=2),U.e.c=O.read_shift(2),U.e.r=O.read_shift(2),M==12&&F.qpro&&(O.l+=2),U.s.c==65535&&(U.s.c=U.e.c=U.s.r=U.e.r=0),U)}function l(O){var M=Re(8);return M.write_shift(2,O.s.c),M.write_shift(2,O.s.r),M.write_shift(2,O.e.c),M.write_shift(2,O.e.r),M}function c(O,M,F){var U=[{c:0,r:0},{t:"n",v:0},0,0];return F.qpro&&F.vers!=20768?(U[0].c=O.read_shift(1),U[3]=O.read_shift(1),U[0].r=O.read_shift(2),O.l+=2):(U[2]=O.read_shift(1),U[0].c=O.read_shift(2),U[0].r=O.read_shift(2)),U}function u(O,M,F){var U=O.l+M,Z=c(O,M,F);if(Z[1].t="s",F.vers==20768){O.l++;var se=O.read_shift(1);return Z[1].v=O.read_shift(se,"utf8"),Z}return F.qpro&&O.l++,Z[1].v=O.read_shift(U-O.l,"cstr"),Z}function f(O,M,F){var U=Re(7+F.length);U.write_shift(1,255),U.write_shift(2,M),U.write_shift(2,O),U.write_shift(1,39);for(var Z=0;Z<U.length;++Z){var se=F.charCodeAt(Z);U.write_shift(1,se>=128?95:se)}return U.write_shift(1,0),U}function d(O,M,F){var U=c(O,M,F);return U[1].v=O.read_shift(2,"i"),U}function h(O,M,F){var U=Re(7);return U.write_shift(1,255),U.write_shift(2,M),U.write_shift(2,O),U.write_shift(2,F,"i"),U}function v(O,M,F){var U=c(O,M,F);return U[1].v=O.read_shift(8,"f"),U}function p(O,M,F){var U=Re(13);return U.write_shift(1,255),U.write_shift(2,M),U.write_shift(2,O),U.write_shift(8,F,"f"),U}function m(O,M,F){var U=O.l+M,Z=c(O,M,F);if(Z[1].v=O.read_shift(8,"f"),F.qpro)O.l=U;else{var se=O.read_shift(2);S(O.slice(O.l,O.l+se),Z),O.l+=se}return Z}function y(O,M,F){var U=M&32768;return M&=-32769,M=(U?O:0)+(M>=8192?M-16384:M),(U?"":"$")+(F?Yi(M):Di(M))}var x={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]},w=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(O,M){Va(O,0);for(var F=[],U=0,Z="",se="",ve="",oe="";O.l<O.length;){var pe=O[O.l++];switch(pe){case 0:F.push(O.read_shift(8,"f"));break;case 1:se=y(M[0].c,O.read_shift(2),!0),Z=y(M[0].r,O.read_shift(2),!1),F.push(se+Z);break;case 2:{var Se=y(M[0].c,O.read_shift(2),!0),me=y(M[0].r,O.read_shift(2),!1);se=y(M[0].c,O.read_shift(2),!0),Z=y(M[0].r,O.read_shift(2),!1),F.push(Se+me+":"+se+Z)}break;case 3:if(O.l<O.length){console.error("WK1 premature formula end");return}break;case 4:F.push("("+F.pop()+")");break;case 5:F.push(O.read_shift(2));break;case 6:{for(var Le="";pe=O[O.l++];)Le+=String.fromCharCode(pe);F.push('"'+Le.replace(/"/g,'""')+'"')}break;case 8:F.push("-"+F.pop());break;case 23:F.push("+"+F.pop());break;case 22:F.push("NOT("+F.pop()+")");break;case 20:case 21:oe=F.pop(),ve=F.pop(),F.push(["AND","OR"][pe-20]+"("+ve+","+oe+")");break;default:if(pe<32&&w[pe])oe=F.pop(),ve=F.pop(),F.push(ve+w[pe]+oe);else if(x[pe]){if(U=x[pe][1],U==69&&(U=O[O.l++]),U>F.length){console.error("WK1 bad formula parse 0x"+pe.toString(16)+":|"+F.join("|")+"|");return}var ie=F.slice(-U);F.length-=U,F.push(x[pe][0]+"("+ie.join(",")+")")}else return pe<=7?console.error("WK1 invalid opcode "+pe.toString(16)):pe<=24?console.error("WK1 unsupported op "+pe.toString(16)):pe<=30?console.error("WK1 invalid opcode "+pe.toString(16)):pe<=115?console.error("WK1 unsupported function opcode "+pe.toString(16)):console.error("WK1 unrecognized opcode "+pe.toString(16))}}F.length==1?M[1].f=""+F[0]:console.error("WK1 bad formula parse |"+F.join("|")+"|")}function A(O){var M=[{c:0,r:0},{t:"n",v:0},0];return M[0].r=O.read_shift(2),M[3]=O[O.l++],M[0].c=O[O.l++],M}function N(O,M){var F=A(O);return F[1].t="s",F[1].v=O.read_shift(M-4,"cstr"),F}function P(O,M,F,U){var Z=Re(6+U.length);Z.write_shift(2,O),Z.write_shift(1,F),Z.write_shift(1,M),Z.write_shift(1,39);for(var se=0;se<U.length;++se){var ve=U.charCodeAt(se);Z.write_shift(1,ve>=128?95:ve)}return Z.write_shift(1,0),Z}function j(O,M){var F=A(O);F[1].v=O.read_shift(2);var U=F[1].v>>1;if(F[1].v&1)switch(U&7){case 0:U=(U>>3)*5e3;break;case 1:U=(U>>3)*500;break;case 2:U=(U>>3)/20;break;case 3:U=(U>>3)/200;break;case 4:U=(U>>3)/2e3;break;case 5:U=(U>>3)/2e4;break;case 6:U=(U>>3)/16;break;case 7:U=(U>>3)/64;break}return F[1].v=U,F}function C(O,M){var F=A(O),U=O.read_shift(4),Z=O.read_shift(4),se=O.read_shift(2);if(se==65535)return U===0&&Z===3221225472?(F[1].t="e",F[1].v=15):U===0&&Z===3489660928?(F[1].t="e",F[1].v=42):F[1].v=0,F;var ve=se&32768;return se=(se&32767)-16446,F[1].v=(1-ve*2)*(Z*Math.pow(2,se+32)+U*Math.pow(2,se)),F}function R(O,M,F,U){var Z=Re(14);if(Z.write_shift(2,O),Z.write_shift(1,F),Z.write_shift(1,M),U==0)return Z.write_shift(4,0),Z.write_shift(4,0),Z.write_shift(2,65535),Z;var se=0,ve=0,oe=0,pe=0;return U<0&&(se=1,U=-U),ve=Math.log2(U)|0,U/=Math.pow(2,ve-31),pe=U>>>0,pe&2147483648||(U/=2,++ve,pe=U>>>0),U-=pe,pe|=2147483648,pe>>>=0,U*=Math.pow(2,32),oe=U>>>0,Z.write_shift(4,oe),Z.write_shift(4,pe),ve+=16383+(se?32768:0),Z.write_shift(2,ve),Z}function L(O,M){var F=C(O);return O.l+=M-14,F}function I(O,M){var F=A(O),U=O.read_shift(4);return F[1].v=U>>6,F}function B(O,M){var F=A(O),U=O.read_shift(8,"f");return F[1].v=U,F}function z(O,M){var F=B(O);return O.l+=M-10,F}function V(O,M){return O[O.l+M-1]==0?O.read_shift(M,"cstr"):""}function Q(O,M){var F=O[O.l++];F>M-1&&(F=M-1);for(var U="";U.length<F;)U+=String.fromCharCode(O[O.l++]);return U}function ae(O,M,F){if(!(!F.qpro||M<21)){var U=O.read_shift(1);O.l+=17,O.l+=1,O.l+=2;var Z=O.read_shift(M-21,"cstr");return[U,Z]}}function K(O,M){for(var F={},U=O.l+M;O.l<U;){var Z=O.read_shift(2);if(Z==14e3){for(F[Z]=[0,""],F[Z][0]=O.read_shift(2);O[O.l];)F[Z][1]+=String.fromCharCode(O[O.l]),O.l++;O.l++}}return F}function re(O,M){var F=Re(5+O.length);F.write_shift(2,14e3),F.write_shift(2,M);for(var U=0;U<O.length;++U){var Z=O.charCodeAt(U);F[F.l++]=Z>127?95:Z}return F[F.l++]=0,F}var ye={0:{n:"BOF",f:dz},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:v},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:m},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:u},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:V},222:{n:"SHEETNAMELP",f:Q},65535:{n:""}},xe={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:N},23:{n:"NUMBER17",f:C},24:{n:"NUMBER18",f:j},25:{n:"FORMULA19",f:L},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:K},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:I},38:{n:"??"},39:{n:"NUMBER27",f:B},40:{n:"FORMULA28",f:z},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:V},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:ae},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}}(),FTe=/^\s|\s$|[\t\n\r]/;function yz(e,t){if(!t.bookSST)return"";var r=[Kn];r[r.length]=Ze("sst",null,{xmlns:jp[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(FTe)&&(a+=' xml:space="preserve"'),a+=">"+Tr(i.t)+"</t>"),a+="</si>",r[r.length]=a}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function $Te(e){return[e.read_shift(4),e.read_shift(4)]}function BTe(e,t){return t||(t=Re(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var UTe=kPe;function WTe(e){var t=Pa();ze(t,159,BTe(e));for(var r=0;r<e.length;++r)ze(t,19,UTe(e[r]));return ze(t,160),t.end()}function zTe(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function xz(e){var t=0,r,n=zTe(e),i=n.length+1,a,o,s,l,c;for(r=Ff(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,c=s|l,t=c^o;return t^52811}var HTe=function(){function e(i,a){switch(a.type){case"base64":return t(Gl(i),a);case"binary":return t(i,a);case"buffer":return t(vr&&Buffer.isBuffer(i)?i.toString("binary"):r1(i),a);case"array":return t(rw(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 c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,f){Array.isArray(s)&&(s[f]=[]);for(var d=/\\\w+\b/g,h=0,v,p=-1;v=d.exec(u);){switch(v[0]){case"\\cell":var m=u.slice(h,d.lastIndex-v[0].length);if(m[0]==" "&&(m=m.slice(1)),++p,m.length){var y={v:m,t:"s"};Array.isArray(s)?s[f][p]=y:s[Or({r:f,c:p})]=y}break}h=d.lastIndex}p>c.e.c&&(c.e.c=p)}),s["!ref"]=qn(c),s}function r(i,a){return Jf(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],o=an(i["!ref"]),s,l=Array.isArray(i),c=o.s.r;c<=o.e.r;++c){a.push("\\trowd\\trautofit1");for(var u=o.s.c;u<=o.e.c;++u)a.push("\\cellx"+(u+1));for(a.push("\\pard\\intbl"),u=o.s.c;u<=o.e.c;++u){var f=Or({r:c,c:u});s=l?(i[c]||[])[u]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(a.push(" "+(s.w||(ql(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 hL(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var VTe=6,Il=VTe;function a2(e){return Math.floor((e+Math.round(128/Il)/256)*Il)}function o2(e){return Math.floor((e-5)/Il*100+.5)/100}function t3(e){return Math.round((e*Il+5)/Il*256)/256}function mP(e){e.width?(e.wpx=a2(e.width),e.wch=o2(e.wpx),e.MDW=Il):e.wpx?(e.wch=o2(e.wpx),e.width=t3(e.wch),e.MDW=Il):typeof e.wch=="number"&&(e.width=t3(e.wch),e.wpx=a2(e.width),e.MDW=Il),e.customWidth&&delete e.customWidth}var GTe=96,bz=GTe;function s2(e){return e*96/bz}function wz(e){return e*bz/96}function qTe(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=Ze("numFmt",null,{numFmtId:n,formatCode:Tr(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=Ze("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function KTe(e){var t=[];return t[t.length]=Ze("cellXfs",null),e.forEach(function(r){t[t.length]=Ze("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=Ze("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function Sz(e,t){var r=[Kn,Ze("styleSheet",null,{xmlns:jp[0],"xmlns:vt":pi.vt})],n;return e.SSF&&(n=qTe(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=KTe(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function XTe(e,t){var r=e.read_shift(2),n=Ji(e);return[r,n]}function YTe(e,t,r){r||(r=Re(6+4*t.length)),r.write_shift(2,e),gi(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function JTe(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=FPe(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=MPe(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Ji(e),n}function ZTe(e,t){t||(t=Re(25+4*32)),t.write_shift(2,e.sz*20),$Pe(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),n2(e.color,t);var n=0;return n=2,t.write_shift(1,n),gi(e.name,t),t.length>t.l?t.slice(0,t.l):t}var QTe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],SS,eCe=qs;function pL(e,t){t||(t=Re(4*3+8*7+16*1)),SS||(SS=nP(QTe));var r=SS[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(n2({auto:1},t),n2({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function tCe(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function _z(e,t,r){r||(r=Re(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function k0(e,t){return t||(t=Re(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var rCe=qs;function nCe(e,t){return t||(t=Re(51)),t.write_shift(1,0),k0(null,t),k0(null,t),k0(null,t),k0(null,t),k0(null,t),t.length>t.l?t.slice(0,t.l):t}function iCe(e,t){return t||(t=Re(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),r2(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function aCe(e,t,r){var n=Re(2052);return n.write_shift(4,e),r2(t,n),r2(r,n),n.length>n.l?n.slice(0,n.l):n}function oCe(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(ze(e,615,hs(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&ze(e,44,YTe(i,t[i]))}),ze(e,616))}}function sCe(e){var t=1;ze(e,611,hs(t)),ze(e,43,ZTe({sz:12,color:{theme:1},name:"Calibri",family:2})),ze(e,612)}function lCe(e){var t=2;ze(e,603,hs(t)),ze(e,45,pL({patternType:"none"})),ze(e,45,pL({patternType:"gray125"})),ze(e,604)}function cCe(e){var t=1;ze(e,613,hs(t)),ze(e,46,nCe()),ze(e,614)}function uCe(e){var t=1;ze(e,626,hs(t)),ze(e,47,_z({numFmtId:0},65535)),ze(e,627)}function fCe(e,t){ze(e,617,hs(t.length)),t.forEach(function(r){ze(e,47,_z(r,0))}),ze(e,618)}function dCe(e){var t=1;ze(e,619,hs(t)),ze(e,48,iCe({xfId:0,name:"Normal"})),ze(e,620)}function hCe(e){var t=0;ze(e,505,hs(t)),ze(e,506)}function pCe(e){var t=0;ze(e,508,aCe(t,"TableStyleMedium9","PivotStyleMedium4")),ze(e,509)}function mCe(e,t){var r=Pa();return ze(r,278),oCe(r,e.SSF),sCe(r),lCe(r),cCe(r),uCe(r),fCe(r,t.cellXfs),dCe(r),hCe(r),pCe(r),ze(r,279),r.end()}function Az(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Kn];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function gCe(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Ji(e)}}function vCe(e){var t=Re(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),gi(e.name,t),t.slice(0,t.l)}function yCe(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function xCe(e){var t=Re(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function bCe(e,t){var r=Re(8+2*t.length);return r.write_shift(4,e),gi(t,r),r.slice(0,r.l)}function wCe(e){return e.l+=4,e.read_shift(4)!=0}function SCe(e,t){var r=Re(8);return r.write_shift(4,e),r.write_shift(4,1),r}function _Ce(){var e=Pa();return ze(e,332),ze(e,334,hs(1)),ze(e,335,vCe({name:"XLDAPR",version:12e4,flags:3496657072})),ze(e,336),ze(e,339,bCe(1,"XLDAPR")),ze(e,52),ze(e,35,hs(514)),ze(e,4096,hs(0)),ze(e,4097,_o(1)),ze(e,36),ze(e,53),ze(e,340),ze(e,337,SCe(1)),ze(e,51,xCe([[1,0]])),ze(e,338),ze(e,333),e.end()}function Ez(){var e=[Kn];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"> <metadataTypes count="1"> <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/> </metadataTypes> <futureMetadata name="XLDAPR" count="1"> <bk> <extLst> <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"> <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/> </ext> </extLst> </bk> </futureMetadata> <cellMetadata count="1"> <bk> <rc t="1" v="0"/> </bk> </cellMetadata> </metadata>`),e.join("")}function ACe(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=Or(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Kd=1024;function Nz(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[Ze("xml",null,{"xmlns:v":qa.v,"xmlns:o":qa.o,"xmlns:x":qa.x,"xmlns:mv":qa.mv}).replace(/\/>/,">"),Ze("o:shapelayout",Ze("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Ze("v:shapetype",[Ze("v:stroke",null,{joinstyle:"miter"}),Ze("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Kd<e*1e3;)Kd+=1e3;return t.forEach(function(a){var o=mi(a[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?Ze("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Ze("v:fill",l,s),u={on:"t",obscured:"t"};++Kd,i=i.concat(["<v:shape"+Ng({id:"_x0000_s"+Kd,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",c,Ze("v:shadow",null,u),Ze("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",ji("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),ji("x:AutoFill","False"),ji("x:Row",String(o.r)),ji("x:Column",String(o.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function Pz(e){var t=[Kn,Ze("comments",null,{xmlns:jp[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=Tr(i.a);r.indexOf(a)==-1&&(r.push(a),t.push("<author>"+a+"</author>")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("<author>tc="+i.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=r.indexOf(Tr(l.a))),a.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)t.push(ji("t",Tr(a[0]||"")));else{for(var o=`Comment: `+a[0]+` `,s=1;s<a.length;++s)o+=`Reply: `+a[s]+` `;t.push(ji("t",Tr(o)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function ECe(e,t,r){var n=[Kn,Ze("ThreadedComments",null,{xmlns:pi.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&t.indexOf(o.a)==-1&&t.push(o.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?a=l.id:l.parentId=a,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),n.push(Ze("threadedComment",ji("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function NCe(e){var t=[Kn,Ze("personList",null,{xmlns:pi.TCMNT,"xmlns:x":jp[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(Ze("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function PCe(e){var t={};t.iauthor=e.read_shift(4);var r=td(e);return t.rfx=r.s,t.ref=Or(r.s),e.l+=16,t}function TCe(e,t){return t==null&&(t=Re(36)),t.write_shift(4,e[1].iauthor),Ip(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var CCe=Ji;function OCe(e){return gi(e.slice(0,54))}function kCe(e){var t=Pa(),r=[];return ze(t,628),ze(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),ze(t,632,OCe(i.a)))})}),ze(t,631),ze(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:mi(n[0]),e:mi(n[0])};ze(t,635,TCe([a,i])),i.t&&i.t.length>0&&ze(t,637,LPe(i)),ze(t,636),delete i.iauthor})}),ze(t,634),ze(t,629),t.end()}function jCe(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&Dr.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var Tz=["xlsb","xlsm","xlam","biff8","xla"],LCe=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 c=a.length>0?parseInt(a,10)|0:0,u=o.length>0?parseInt(o,10)|0:0;return s?u+=t.c:--u,l?c+=t.r:--c,i+(s?"":"$")+Yi(u)+(l?"":"$")+Di(c)}return function(i,a){return t=a,i.replace(e,r)}}(),gP=/(^|[^._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,vP=function(){return function(t,r){return t.replace(gP,function(n,i,a,o,s,l){var c=uP(o)-(a?0:r.c),u=cP(l)-(s?0:r.r),f=u==0?"":s?u+1:"["+u+"]",d=c==0?"":a?c+1:"["+c+"]";return i+"R"+f+"C"+d})}}();function ICe(e,t){return e.replace(gP,function(r,n,i,a,o,s){return n+(i=="$"?i+a:Yi(uP(a)+t.c))+(o=="$"?o+s:Di(cP(s)+t.r))})}function DCe(e){return e.length!=1}function zn(e){e.l+=1}function du(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function Cz(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Oz(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),o=du(e),s=du(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 Oz(e){var t=du(e),r=du(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 RCe(e,t,r){if(r.biff<8)return Oz(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=du(e),o=du(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 kz(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return MCe(e);var n=e.read_shift(r&&r.biff==12?4:2),i=du(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function MCe(e){var t=du(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function FCe(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 $Ce(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return BCe(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 BCe(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 UCe(e,t,r){var n=(e[e.l++]&96)>>5,i=Cz(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function WCe(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=Cz(e,a,r);return[n,i,o]}function zCe(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 HCe(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 VCe(e,t,r){var n=(e[e.l++]&96)>>5,i=RCe(e,t-1,r);return[n,i]}function GCe(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function mL(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function qCe(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 KCe(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 XCe(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 YCe(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function JCe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function jz(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function ZCe(e){return e.read_shift(2),jz(e)}function QCe(e){return e.read_shift(2),jz(e)}function eOe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=kz(e,0,r);return[n,i]}function tOe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=$Ce(e,0,r);return[n,i]}function rOe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var a=kz(e,0,r);return[n,i,a]}function nOe(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[nke[i],Dz[i],n]}function iOe(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)]:aOe(e);return[i,(a[0]===0?Dz:rke)[a[1]]]}function aOe(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function oOe(e,t,r){e.l+=r&&r.biff==2?3:4}function sOe(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 lOe(e){return e.l++,a1[e.read_shift(1)]}function cOe(e){return e.l++,e.read_shift(2)}function uOe(e){return e.l++,e.read_shift(1)!==0}function fOe(e){return e.l++,Dp(e)}function dOe(e,t,r){return e.l++,pz(e,t-1,r)}function hOe(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]=rTe(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=a1[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Dp(e);break;case 2:r[1]=oTe(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function pOe(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?td:cTe)(e));return i}function mOe(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]=hOe(e,r.biff);return o}function gOe(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 vOe(e,t,r){if(r.biff==5)return yOe(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function yOe(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 xOe(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 bOe(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 wOe(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 SOe(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 _Oe=qs,AOe=qs,EOe=qs;function o1(e,t,r){return e.l+=2,[FCe(e)]}function yP(e){return e.l+=6,[]}var NOe=o1,POe=yP,TOe=yP,COe=o1;function Lz(e){return e.l+=2,[dz(e),e.read_shift(2)&1]}var OOe=o1,kOe=Lz,jOe=yP,LOe=o1,IOe=o1,DOe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function ROe(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=DOe[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:i,C:a}}function MOe(e){return e.l+=2,[e.read_shift(4)]}function FOe(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function $Oe(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function BOe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function UOe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function WOe(e){return e.l+=4,[0,0]}var gL={1:{n:"PtgExp",f:sOe},2:{n:"PtgTbl",f:EOe},3:{n:"PtgAdd",f:zn},4:{n:"PtgSub",f:zn},5:{n:"PtgMul",f:zn},6:{n:"PtgDiv",f:zn},7:{n:"PtgPower",f:zn},8:{n:"PtgConcat",f:zn},9:{n:"PtgLt",f:zn},10:{n:"PtgLe",f:zn},11:{n:"PtgEq",f:zn},12:{n:"PtgGe",f:zn},13:{n:"PtgGt",f:zn},14:{n:"PtgNe",f:zn},15:{n:"PtgIsect",f:zn},16:{n:"PtgUnion",f:zn},17:{n:"PtgRange",f:zn},18:{n:"PtgUplus",f:zn},19:{n:"PtgUminus",f:zn},20:{n:"PtgPercent",f:zn},21:{n:"PtgParen",f:zn},22:{n:"PtgMissArg",f:zn},23:{n:"PtgStr",f:dOe},26:{n:"PtgSheet",f:FOe},27:{n:"PtgEndSheet",f:$Oe},28:{n:"PtgErr",f:lOe},29:{n:"PtgBool",f:uOe},30:{n:"PtgInt",f:cOe},31:{n:"PtgNum",f:fOe},32:{n:"PtgArray",f:GCe},33:{n:"PtgFunc",f:nOe},34:{n:"PtgFuncVar",f:iOe},35:{n:"PtgName",f:gOe},36:{n:"PtgRef",f:eOe},37:{n:"PtgArea",f:UCe},38:{n:"PtgMemArea",f:xOe},39:{n:"PtgMemErr",f:_Oe},40:{n:"PtgMemNoMem",f:AOe},41:{n:"PtgMemFunc",f:bOe},42:{n:"PtgRefErr",f:wOe},43:{n:"PtgAreaErr",f:zCe},44:{n:"PtgRefN",f:tOe},45:{n:"PtgAreaN",f:VCe},46:{n:"PtgMemAreaN",f:BOe},47:{n:"PtgMemNoMemN",f:UOe},57:{n:"PtgNameX",f:vOe},58:{n:"PtgRef3d",f:rOe},59:{n:"PtgArea3d",f:WCe},60:{n:"PtgRefErr3d",f:SOe},61:{n:"PtgAreaErr3d",f:HCe},255:{}},zOe={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},HOe={1:{n:"PtgElfLel",f:Lz},2:{n:"PtgElfRw",f:LOe},3:{n:"PtgElfCol",f:NOe},6:{n:"PtgElfRwV",f:IOe},7:{n:"PtgElfColV",f:COe},10:{n:"PtgElfRadical",f:OOe},11:{n:"PtgElfRadicalS",f:jOe},13:{n:"PtgElfColS",f:POe},15:{n:"PtgElfColSV",f:TOe},16:{n:"PtgElfRadicalLel",f:kOe},25:{n:"PtgList",f:ROe},29:{n:"PtgSxName",f:MOe},255:{}},VOe={0:{n:"PtgAttrNoop",f:WOe},1:{n:"PtgAttrSemi",f:JCe},2:{n:"PtgAttrIf",f:XCe},4:{n:"PtgAttrChoose",f:qCe},8:{n:"PtgAttrGoto",f:KCe},16:{n:"PtgAttrSum",f:oOe},32:{n:"PtgAttrBaxcel",f:mL},33:{n:"PtgAttrBaxcel",f:mL},64:{n:"PtgAttrSpace",f:ZCe},65:{n:"PtgAttrSpaceSemi",f:QCe},128:{n:"PtgAttrIfError",f:YCe},255:{}};function GOe(e,t,r,n){if(n.biff<8)return qs(e,t);for(var i=e.l+t,a=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=mOe(e,0,n),a.push(r[o][1]);break;case"PtgMemArea":r[o][2]=pOe(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(qs(e,t)),a}function qOe(e,t,r){for(var n=e.l+t,i,a,o=[];n!=e.l;)t=n-e.l,a=e[e.l],i=gL[a]||gL[zOe[a]],(a===24||a===25)&&(i=(a===24?HOe:VOe)[e[e.l+1]]),!i||!i.f?qs(e,t):o.push([i.n,i.f(e,t,r)]);return o}function KOe(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 XOe={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function YOe(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 Iz(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 vL(e,t,r){var n=Iz(e,t,r);return n=="#REF"?n:YOe(n,r)}function ap(e,t,r,n,i){var a=i&&i.biff||8,o={s:{c:0,r:0}},s=[],l,c,u,f=0,d=0,h,v="";if(!e[0]||!e[0][0])return"";for(var p=-1,m="",y=0,x=e[0].length;y<x;++y){var w=e[0][y];switch(w[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(),c=s.pop(),p>=0){switch(e[0][p][1][0]){case 0:m=Nn(" ",e[0][p][1][1]);break;case 1:m=Nn("\r",e[0][p][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}c=c+m,p=-1}s.push(c+XOe[w[0]]+l);break;case"PtgIsect":l=s.pop(),c=s.pop(),s.push(c+" "+l);break;case"PtgUnion":l=s.pop(),c=s.pop(),s.push(c+","+l);break;case"PtgRange":l=s.pop(),c=s.pop(),s.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=cm(w[1][1],o,i),s.push(um(u,a));break;case"PtgRefN":u=r?cm(w[1][1],r,i):w[1][1],s.push(um(u,a));break;case"PtgRef3d":f=w[1][1],u=cm(w[1][2],o,i),v=vL(n,f,i),s.push(v+"!"+um(u,a));break;case"PtgFunc":case"PtgFuncVar":var S=w[1][0],A=w[1][1];S||(S=0),S&=127;var N=S==0?[]:s.slice(-S);s.length-=S,A==="User"&&(A=N.shift()),s.push(A+"("+N.join(",")+")");break;case"PtgBool":s.push(w[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(w[1]);break;case"PtgNum":s.push(String(w[1]));break;case"PtgStr":s.push('"'+w[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(w[1]);break;case"PtgAreaN":h=tL(w[1][1],r?{s:r}:o,i),s.push(bS(h,i));break;case"PtgArea":h=tL(w[1][1],o,i),s.push(bS(h,i));break;case"PtgArea3d":f=w[1][1],h=w[1][2],v=vL(n,f,i),s.push(v+"!"+bS(h,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=w[1][2];var P=(n.names||[])[d-1]||(n[0]||[])[d],j=P?P.Name:"SH33TJSNAME"+String(d);j&&j.slice(0,6)=="_xlfn."&&!i.xlfn&&(j=j.slice(6)),s.push(j);break;case"PtgNameX":var C=w[1][1];d=w[1][2];var R;if(i.biff<=5)C<0&&(C=-C),n[C]&&(R=n[C][d]);else{var L="";if(((n[C]||[])[0]||[])[0]==14849||(((n[C]||[])[0]||[])[0]==1025?n[C][d]&&n[C][d].itab>0&&(L=n.SheetNames[n[C][d].itab-1]+"!"):L=n.SheetNames[d-1]+"!"),n[C]&&n[C][d])L+=n[C][d].Name;else if(n[0]&&n[0][d])L+=n[0][d].Name;else{var I=(Iz(n,C,i)||"").split(";;");I[d-1]?L=I[d-1]:L+="SH33TJSERRX"}s.push(L);break}R||(R={Name:"SH33TJSERRY"}),s.push(R.Name);break;case"PtgParen":var B="(",z=")";if(p>=0){switch(m="",e[0][p][1][0]){case 2:B=Nn(" ",e[0][p][1][1])+B;break;case 3:B=Nn("\r",e[0][p][1][1])+B;break;case 4:z=Nn(" ",e[0][p][1][1])+z;break;case 5:z=Nn("\r",e[0][p][1][1])+z;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(B+s.pop()+z);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":u={c:w[1][1],r:w[1][0]};var V={c:r.c,r:r.r};if(n.sharedf[Or(u)]){var Q=n.sharedf[Or(u)];s.push(ap(Q,o,V,n,i))}else{var ae=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(u.c<c[0].s.c||u.c>c[0].e.c)&&!(u.r<c[0].s.r||u.r>c[0].e.r)){s.push(ap(c[1],o,V,n,i)),ae=!0;break}ae||s.push(w[1])}break;case"PtgArray":s.push("{"+KOe(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=y;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"+w[1].idx+"[#"+w[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(w));default:throw new Error("Unrecognized Formula Token: "+String(w))}var K=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&K.indexOf(e[0][y][0])==-1){w=e[0][p];var re=!0;switch(w[1][0]){case 4:re=!1;case 0:m=Nn(" ",w[1][1]);break;case 5:re=!1;case 1:m=Nn("\r",w[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0])}s.push((re?m:"")+s.pop()+(re?"":m)),p=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]}function JOe(e){if(e==null){var t=Re(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return $f(e);return $f(0)}function ZOe(e,t,r,n,i){var a=Bf(t,r,i),o=JOe(e.v),s=Re(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=Re(e.bf.length),u=0;u<e.bf.length;++u)c[u]=e.bf[u];var f=ki([a,o,s,c]);return f}function nw(e,t,r){var n=e.read_shift(4),i=qOe(e,n,r),a=e.read_shift(4),o=a>0?GOe(e,a,i,r):null;return[i,o]}var QOe=nw,iw=nw,eke=nw,tke=nw,rke={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Dz={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"},nke={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 ike(e){var t="of:="+e.replace(gP,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function ake(e){return e.replace(/\./,"!")}var fm=typeof Map<"u";function xP(e,t,r){var n=0,i=e.length;if(r){if(fm?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=fm?r.get(t):r[t];n<a.length;++n)if(e[a[n]].t===t)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t},e.Count++,e.Unique++,r&&(fm?(r.has(t)||r.set(t,[]),r.get(t).push(i)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(i))),i}function aw(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(Il=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=o2(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=t3(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function Rz(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];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 Nu(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,a=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){kW(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function oke(e,t,r){if(e&&e["!ref"]){var n=an(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function ske(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+qn(e[r])+'"/>';return t+"</mergeCells>"}function lke(e,t,r,n,i){var a=!1,o={},s=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}a=!0,o.codeName=Eg(Tr(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),s=(s||"")+Ze("outlinePr",null,c)}!a&&!s||(i[i.length]=Ze("sheetPr",s,o))}var cke=["objects","scenarios","selectLockedCells","selectUnlockedCells"],uke=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function fke(e){var t={sheet:1};return cke.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),uke.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=xz(e.password).toString(16).toUpperCase()),Ze("sheetProtection",null,t)}function dke(e){return Rz(e),Ze("pageMargins",null,e)}function hke(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=Ze("col",null,aw(i,n)));return r[r.length]="</cols>",r.join("")}function pke(e,t,r,n){var i=typeof e.ref=="string"?e.ref:qn(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,o=ao(i);o.s.r==o.e.r&&(o.e.r=ao(t["!ref"]).e.r,i=qn(o));for(var s=0;s<a.length;++s){var l=a[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return s==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),Ze("autoFilter",null,{ref:i})}function mke(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ze("sheetViews",Ze("sheetView",null,i),{})}function gke(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",a=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=a1[e.v];break;case"d":n&&n.cellDates?i=pa(e.v,-1).toISOString():(e=Ca(e),e.t="n",i=""+(e.v=Ta(pa(e.v)))),typeof e.z>"u"&&(e.z=Pn[14]);break;default:i=e.v;break}var s=ji("v",Tr(i)),l={r:t},c=Nu(n.cellXfs,e,n);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=ji("v",""+xP(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=a&&(e.t=a,e.v=o),typeof e.f=="string"&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=Ze("f",Tr(e.f),u)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),Ze("c",s,l)}function vke(e,t,r,n){var i=[],a=[],o=an(e["!ref"]),s="",l,c="",u=[],f=0,d=0,h=e["!rows"],v=Array.isArray(e),p={r:c},m,y=-1;for(d=o.s.c;d<=o.e.c;++d)u[d]=Yi(d);for(f=o.s.r;f<=o.e.r;++f){for(a=[],c=Di(f),d=o.s.c;d<=o.e.c;++d){l=u[d]+c;var x=v?(e[f]||[])[d]:e[l];x!==void 0&&(s=gke(x,l,e,t))!=null&&a.push(s)}(a.length>0||h&&h[f])&&(p={r:c},h&&h[f]&&(m=h[f],m.hidden&&(p.hidden=1),y=-1,m.hpx?y=s2(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level)),i[i.length]=Ze("row",a.join(""),p))}if(h)for(;f<h.length;++f)h&&h[f]&&(p={r:f+1},m=h[f],m.hidden&&(p.hidden=1),y=-1,m.hpx?y=s2(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level),i[i.length]=Ze("row","",p));return i.join("")}function Mz(e,t,r,n){var i=[Kn,Ze("worksheet",null,{xmlns:jp[0],"xmlns:r":pi.r})],a=r.SheetNames[e],o=0,s="",l=r.Sheets[a];l==null&&(l={});var c=l["!ref"]||"A1",u=an(c);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=qn(u)}n||(n={}),l["!comments"]=[];var f=[];lke(l,r,e,t,i),i[i.length]=Ze("dimension",null,{ref:c}),i[i.length]=mke(l,t,e,r),t.sheetFormat&&(i[i.length]=Ze("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=hke(l,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=vke(l,t),s.length>0&&(i[i.length]=s)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=fke(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=pke(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=ske(l["!merges"]));var d=-1,h,v=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(h={ref:p[0]},p[1].Target.charAt(0)!="#"&&(v=Nr(n,-1,Tr(p[1].Target).replace(/#.*$/,""),hr.HLINK),h["r:id"]="rId"+v),(d=p[1].Target.indexOf("#"))>-1&&(h.location=Tr(p[1].Target.slice(d+1))),p[1].Tooltip&&(h.tooltip=Tr(p[1].Tooltip)),i[i.length]=Ze("hyperlink",null,h))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=dke(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=ji("ignoredErrors",Ze("ignoredError",null,{numberStoredAsText:1,sqref:c}))),f.length>0&&(v=Nr(n,-1,"../drawings/drawing"+(e+1)+".xml",hr.DRAW),i[i.length]=Ze("drawing",null,{"r:id":"rId"+v}),l["!drawing"]=f),l["!comments"].length>0&&(v=Nr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",hr.VML),i[i.length]=Ze("legacyDrawing",null,{"r:id":"rId"+v}),l["!legacy"]=v),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function yke(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}function xke(e,t,r){var n=Re(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=s2(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var o=0;i.level&&(o|=i.level),i.hidden&&(o|=16),(i.hpx||i.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var c={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.c<u<<10)){for(var f=-1,d=-1,h=u<<10;h<u+1<<10;++h){c.c=h;var v=Array.isArray(r)?(r[c.r]||[])[c.c]:r[Or(c)];v&&(f<0&&(f=h),d=h)}f<0||(++s,n.write_shift(4,f),n.write_shift(4,d))}var p=n.l;return n.l=l,n.write_shift(4,s),n.l=p,n.length>n.l?n.slice(0,n.l):n}function bke(e,t,r,n){var i=xke(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&ze(e,0,i)}var wke=td,Ske=Ip;function _ke(){}function Ake(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=IPe(e),r}function Eke(e,t,r){r==null&&(r=Re(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return n2({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),ZW(e,r),r.slice(0,r.l)}function Nke(e){var t=Bo(e);return[t]}function Pke(e,t,r){return r==null&&(r=Re(8)),Zf(t,r)}function Tke(e){var t=Qf(e);return[t]}function Cke(e,t,r){return r==null&&(r=Re(4)),ed(t,r)}function Oke(e){var t=Bo(e),r=e.read_shift(1);return[t,r,"b"]}function kke(e,t,r){return r==null&&(r=Re(9)),Zf(t,r),r.write_shift(1,e.v?1:0),r}function jke(e){var t=Qf(e),r=e.read_shift(1);return[t,r,"b"]}function Lke(e,t,r){return r==null&&(r=Re(5)),ed(t,r),r.write_shift(1,e.v?1:0),r}function Ike(e){var t=Bo(e),r=e.read_shift(1);return[t,r,"e"]}function Dke(e,t,r){return r==null&&(r=Re(9)),Zf(t,r),r.write_shift(1,e.v),r}function Rke(e){var t=Qf(e),r=e.read_shift(1);return[t,r,"e"]}function Mke(e,t,r){return r==null&&(r=Re(8)),ed(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function Fke(e){var t=Bo(e),r=e.read_shift(4);return[t,r,"s"]}function $ke(e,t,r){return r==null&&(r=Re(12)),Zf(t,r),r.write_shift(4,t.v),r}function Bke(e){var t=Qf(e),r=e.read_shift(4);return[t,r,"s"]}function Uke(e,t,r){return r==null&&(r=Re(8)),ed(t,r),r.write_shift(4,t.v),r}function Wke(e){var t=Bo(e),r=Dp(e);return[t,r,"n"]}function zke(e,t,r){return r==null&&(r=Re(16)),Zf(t,r),$f(e.v,r),r}function Hke(e){var t=Qf(e),r=Dp(e);return[t,r,"n"]}function Vke(e,t,r){return r==null&&(r=Re(12)),ed(t,r),$f(e.v,r),r}function Gke(e){var t=Bo(e),r=QW(e);return[t,r,"n"]}function qke(e,t,r){return r==null&&(r=Re(12)),Zf(t,r),ez(e.v,r),r}function Kke(e){var t=Qf(e),r=QW(e);return[t,r,"n"]}function Xke(e,t,r){return r==null&&(r=Re(8)),ed(t,r),ez(e.v,r),r}function Yke(e){var t=Bo(e),r=fP(e);return[t,r,"is"]}function Jke(e){var t=Bo(e),r=Ji(e);return[t,r,"str"]}function Zke(e,t,r){return r==null&&(r=Re(12+4*e.v.length)),Zf(t,r),gi(e.v,r),r.length>r.l?r.slice(0,r.l):r}function Qke(e){var t=Qf(e),r=Ji(e);return[t,r,"str"]}function e6e(e,t,r){return r==null&&(r=Re(8+4*e.v.length)),ed(t,r),gi(e.v,r),r.length>r.l?r.slice(0,r.l):r}function t6e(e,t,r){var n=e.l+t,i=Bo(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"b"];if(r.cellFormula){e.l+=2;var s=iw(e,n-e.l,r);o[3]=ap(s,null,i,r.supbooks,r)}else e.l=n;return o}function r6e(e,t,r){var n=e.l+t,i=Bo(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"e"];if(r.cellFormula){e.l+=2;var s=iw(e,n-e.l,r);o[3]=ap(s,null,i,r.supbooks,r)}else e.l=n;return o}function n6e(e,t,r){var n=e.l+t,i=Bo(e);i.r=r["!row"];var a=Dp(e),o=[i,a,"n"];if(r.cellFormula){e.l+=2;var s=iw(e,n-e.l,r);o[3]=ap(s,null,i,r.supbooks,r)}else e.l=n;return o}function i6e(e,t,r){var n=e.l+t,i=Bo(e);i.r=r["!row"];var a=Ji(e),o=[i,a,"str"];if(r.cellFormula){e.l+=2;var s=iw(e,n-e.l,r);o[3]=ap(s,null,i,r.supbooks,r)}else e.l=n;return o}var a6e=td,o6e=Ip;function s6e(e,t){return t==null&&(t=Re(4)),t.write_shift(4,e),t}function l6e(e,t){var r=e.l+t,n=td(e),i=dP(e),a=Ji(e),o=Ji(e),s=Ji(e);e.l=r;var l={rfx:n,relId:i,loc:a,display:s};return o&&(l.Tooltip=o),l}function c6e(e,t){var r=Re(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Ip({s:mi(e[0]),e:mi(e[0])},r),hP("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return gi(i||"",r),gi(e[1].Tooltip||"",r),gi("",r),r.slice(0,r.l)}function u6e(){}function f6e(e,t,r){var n=e.l+t,i=tz(e),a=e.read_shift(1),o=[i];if(o[2]=a,r.cellFormula){var s=QOe(e,n-e.l,r);o[1]=s}else e.l=n;return o}function d6e(e,t,r){var n=e.l+t,i=td(e),a=[i];if(r.cellFormula){var o=tke(e,n-e.l,r);a[1]=o,e.l=n}else e.l=n;return a}function h6e(e,t,r){r==null&&(r=Re(18));var n=aw(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var Fz=["left","right","top","bottom","header","footer"];function p6e(e){var t={};return Fz.forEach(function(r){t[r]=Dp(e)}),t}function m6e(e,t){return t==null&&(t=Re(6*8)),Rz(e),Fz.forEach(function(r){$f(e[r],t)}),t}function g6e(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function v6e(e,t,r){r==null&&(r=Re(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function y6e(e){var t=Re(24);return t.write_shift(4,4),t.write_shift(4,1),Ip(e,t),t}function x6e(e,t){return t==null&&(t=Re(16*4+2)),t.write_shift(2,e.password?xz(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function b6e(){}function w6e(){}function S6e(e,t,r,n,i,a,o){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=Ca(t),t.z=t.z||Pn[14],t.v=Ta(pa(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r,c:n};switch(l.s=Nu(i.cellXfs,t,i),t.l&&a["!links"].push([Or(l),t.l]),t.c&&a["!comments"].push([Or(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=xP(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,o?ze(e,18,Uke(t,l)):ze(e,7,$ke(t,l))):(l.t="str",o?ze(e,17,e6e(t,l)):ze(e,6,Zke(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?ze(e,13,Xke(t,l)):ze(e,2,qke(t,l)):o?ze(e,16,Vke(t,l)):ze(e,5,zke(t,l)),!0;case"b":return l.t="b",o?ze(e,15,Lke(t,l)):ze(e,4,kke(t,l)),!0;case"e":return l.t="e",o?ze(e,14,Mke(t,l)):ze(e,3,Dke(t,l)),!0}return o?ze(e,12,Cke(t,l)):ze(e,1,Pke(t,l)),!0}function _6e(e,t,r,n){var i=an(t["!ref"]||"A1"),a,o="",s=[];ze(e,145);var l=Array.isArray(t),c=i.e.r;t["!rows"]&&(c=Math.max(i.e.r,t["!rows"].length-1));for(var u=i.s.r;u<=c;++u){o=Di(u),bke(e,t,i,u);var f=!1;if(u<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){u===i.s.r&&(s[d]=Yi(d)),a=s[d]+o;var h=l?(t[u]||[])[d]:t[a];if(!h){f=!1;continue}f=S6e(e,h,u,d,n,t,f)}}ze(e,146)}function A6e(e,t){!t||!t["!merges"]||(ze(e,177,s6e(t["!merges"].length)),t["!merges"].forEach(function(r){ze(e,176,o6e(r))}),ze(e,178))}function E6e(e,t){!t||!t["!cols"]||(ze(e,390),t["!cols"].forEach(function(r,n){r&&ze(e,60,h6e(n,r))}),ze(e,391))}function N6e(e,t){!t||!t["!ref"]||(ze(e,648),ze(e,649,y6e(an(t["!ref"]))),ze(e,650))}function P6e(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=Nr(r,-1,n[1].Target.replace(/#.*$/,""),hr.HLINK);ze(e,494,c6e(n,i))}}),delete t["!links"]}function T6e(e,t,r,n){if(t["!comments"].length>0){var i=Nr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",hr.VML);ze(e,551,hP("rId"+i)),t["!legacy"]=i}}function C6e(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],a=typeof i.ref=="string"?i.ref:qn(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=ao(a);s.s.r==s.e.r&&(s.e.r=ao(t["!ref"]).e.r,a=qn(s));for(var l=0;l<o.length;++l){var c=o[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+a;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),ze(e,161,Ip(an(a))),ze(e,162)}}function O6e(e,t,r){ze(e,133),ze(e,137,v6e(t,r)),ze(e,138),ze(e,134)}function k6e(e,t){t["!protect"]&&ze(e,535,x6e(t["!protect"]))}function j6e(e,t,r,n){var i=Pa(),a=r.SheetNames[e],o=r.Sheets[a]||{},s=a;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch{}var l=an(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],ze(i,129),(r.vbaraw||o["!outline"])&&ze(i,147,Eke(s,o["!outline"])),ze(i,148,Ske(l)),O6e(i,o,r.Workbook),E6e(i,o),_6e(i,o,e,t),k6e(i,o),C6e(i,o,r,e),A6e(i,o),P6e(i,o,n),o["!margins"]&&ze(i,476,m6e(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&N6e(i,o),T6e(i,o,e,n),ze(i,130),i.end()}function L6e(e,t){e.l+=10;var r=Ji(e);return{name:r}}var I6e=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function D6e(e){return!e.Workbook||!e.Workbook.WBProps?"false":dPe(e.Workbook.WBProps.date1904)?"true":"false"}var R6e="][*?/\\".split("");function $z(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return R6e.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function M6e(e,t,r){e.forEach(function(n,i){$z(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=t&&t[i]&&t[i].CodeName||n;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function F6e(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];M6e(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)oke(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function Bz(e){var t=[Kn];t[t.length]=Ze("workbook",null,{xmlns:jp[0],"xmlns:r":pi.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(I6e.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=Ze("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var o={name:Tr(e.SheetNames[a].slice(0,31))};if(o.sheetId=""+(a+1),o["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=Ze("sheet",null,o)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(t[t.length]=Ze("definedName",Tr(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function $6e(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=e3(e),r.name=Ji(e),r}function B6e(e,t){return t||(t=Re(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),hP(e.strRelID,t),gi(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function U6e(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?Ji(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 W6e(e,t){t||(t=Re(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),ZW(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function z6e(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=DPe(e),o=eke(e,0,r),s=dP(e);e.l=n;var l={Name:a,Ptg:o};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function H6e(e,t){ze(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};ze(e,156,B6e(i))}ze(e,144)}function V6e(e,t){t||(t=Re(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return gi("SheetJS",t),gi(Xx.version,t),gi(Xx.version,t),gi("7262",t),t.length>t.l?t.slice(0,t.l):t}function G6e(e,t){t||(t=Re(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function q6e(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,a=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&a==-1&&(a=n);a>i||(ze(e,135),ze(e,158,G6e(i)),ze(e,136))}}function K6e(e,t){var r=Pa();return ze(r,131),ze(r,128,V6e()),ze(r,153,W6e(e.Workbook&&e.Workbook.WBProps||null)),q6e(r,e),H6e(r,e),ze(r,132),r.end()}function X6e(e,t,r){return(t.slice(-4)===".bin"?K6e:Bz)(e)}function Y6e(e,t,r,n,i){return(t.slice(-4)===".bin"?j6e:Mz)(e,r,n,i)}function J6e(e,t,r){return(t.slice(-4)===".bin"?mCe:Sz)(e,r)}function Z6e(e,t,r){return(t.slice(-4)===".bin"?WTe:yz)(e,r)}function Q6e(e,t,r){return(t.slice(-4)===".bin"?kCe:Pz)(e)}function e8e(e){return(e.slice(-4)===".bin"?_Ce:Ez)()}function t8e(e,t){var r=[];return e.Props&&r.push(JPe(e.Props,t)),e.Custprops&&r.push(ZPe(e.Props,e.Custprops)),r.join("")}function r8e(){return""}function n8e(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var a=[];a.push(Ze("NumberFormat",null,{"ss:Format":Tr(Pn[n.numFmtId])}));var o={"ss:ID":"s"+(21+i)};r.push(Ze("Style",a.join(""),o))}),Ze("Styles",r.join(""))}function Uz(e){return Ze("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+vP(e.Ref,{r:0,c:0})})}function i8e(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var i=t[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||r.push(Uz(i)))}return Ze("Names",r.join(""))}function a8e(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],o=0;o<i.length;++o){var s=i[o];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||a.push(Uz(s)))}return a.join("")}function o8e(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(Ze("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(Ze("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(Ze("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(Ze("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<r&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(ji("ProtectContents","True")),e["!protect"].objects&&i.push(ji("ProtectObjects","True")),e["!protect"].scenarios&&i.push(ji("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(ji("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(ji("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){e["!protect"][o[0]]&&i.push("<"+o[1]+"/>")})),i.length==0?"":Ze("WorksheetOptions",i.join(""),{xmlns:qa.x})}function s8e(e){return e.map(function(t){var r=fPe(t.t||""),n=Ze("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ze("Comment",n,{"ss:Author":t.a})}).join("")}function l8e(e,t,r,n,i,a,o){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+Tr(vP(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=mi(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=Tr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=Tr(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],u=0;u!=c.length;++u)c[u].s.c!=o.c||c[u].s.r!=o.r||(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].s.r));var f="",d="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",d=String(e.v);break;case"b":f="Boolean",d=e.v?"1":"0";break;case"e":f="Error",d=a1[e.v];break;case"d":f="DateTime",d=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Pn[14]);break;case"s":f="String",d=uPe(e.v||"");break}var h=Nu(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=o.c+1;var v=e.v!=null?d:"",p=e.t=="z"?"":'<Data ss:Type="'+f+'">'+v+"</Data>";return(e.c||[]).length>0&&(p+=s8e(e.c)),Ze("Cell",p,s)}function c8e(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=wz(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function u8e(e,t,r,n){if(!e["!ref"])return"";var i=an(e["!ref"]),a=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach(function(m,y){mP(m);var x=!!m.width,w=aw(y,m),S={"ss:Index":y+1};x&&(S["ss:Width"]=a2(w.width)),m.hidden&&(S["ss:Hidden"]="1"),s.push(Ze("Column",null,S))});for(var l=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var u=[c8e(c,(e["!rows"]||[])[c])],f=i.s.c;f<=i.e.c;++f){var d=!1;for(o=0;o!=a.length;++o)if(!(a[o].s.c>f)&&!(a[o].s.r>c)&&!(a[o].e.c<f)&&!(a[o].e.r<c)){(a[o].s.c!=f||a[o].s.r!=c)&&(d=!0);break}if(!d){var h={r:c,c:f},v=Or(h),p=l?(e[c]||[])[f]:e[v];u.push(l8e(p,v,e,t,r,n,h))}}u.push("</Row>"),u.length>2&&s.push(u.join(""))}return s.join("")}function f8e(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],o=a?a8e(a,t,e,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=a?u8e(a,t,e,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(o8e(a,t,e,r)),n.join("")}function d8e(e,t){t||(t={}),e.SSF||(e.SSF=Ca(Pn)),e.SSF&&(ew(),Qb(e.SSF),t.revssf=tw(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Nu(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(t8e(e,t)),r.push(r8e()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(Ze("Worksheet",f8e(n,t,e),{"ss:Name":Tr(e.SheetNames[n])}));return r[2]=n8e(e,t),r[3]=i8e(e),Kn+Ze("Workbook",r.join(""),{xmlns:qa.ss,"xmlns:o":qa.o,"xmlns:x":qa.x,"xmlns:ss":qa.ss,"xmlns:dt":qa.dt,"xmlns:html":qa.html})}var _S={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function h8e(e,t){var r=[],n=[],i=[],a=0,o,s=Hj(nL,"n"),l=Hj(iL,"n");if(e.Props)for(o=Mi(e.Props),a=0;a<o.length;++a)(Object.prototype.hasOwnProperty.call(s,o[a])?r:Object.prototype.hasOwnProperty.call(l,o[a])?n:i).push([o[a],e.Props[o[a]]]);if(e.Custprops)for(o=Mi(e.Custprops),a=0;a<o.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},o[a])||(Object.prototype.hasOwnProperty.call(s,o[a])?r:Object.prototype.hasOwnProperty.call(l,o[a])?n:i).push([o[a],e.Custprops[o[a]]]);var c=[];for(a=0;a<i.length;++a)fz.indexOf(i[a][0])>-1||lz.indexOf(i[a][0])>-1||i[a][1]!=null&&c.push(i[a]);n.length&&Dr.utils.cfb_add(t,"/SummaryInformation",cL(n,_S.SI,l,iL)),(r.length||c.length)&&Dr.utils.cfb_add(t,"/DocumentSummaryInformation",cL(r,_S.DSI,s,nL,c.length?c:null,_S.UDI))}function p8e(e,t){var r=t||{},n=Dr.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Dr.utils.cfb_add(n,i,Wz(e,r)),r.biff==8&&(e.Props||e.Custprops)&&h8e(e,n),r.biff==8&&e.vbaraw&&jCe(n,Dr.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var m8e={0:{f:yke},1:{f:Nke},2:{f:Gke},3:{f:Ike},4:{f:Oke},5:{f:Wke},6:{f:Jke},7:{f:Fke},8:{f:i6e},9:{f:n6e},10:{f:t6e},11:{f:r6e},12:{f:Tke},13:{f:Kke},14:{f:Rke},15:{f:jke},16:{f:Hke},17:{f:Qke},18:{f:Bke},19:{f:fP},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:z6e},40:{},42:{},43:{f:JTe},44:{f:XTe},45:{f:eCe},46:{f:rCe},47:{f:tCe},48:{},49:{f:TPe},50:{},51:{f:yCe},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:CTe},62:{f:Yke},63:{f:ACe},64:{f:b6e},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:qs,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:g6e},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:Ake},148:{f:wke,p:16},151:{f:u6e},152:{},153:{f:U6e},154:{},155:{},156:{f:$6e},157:{},158:{},159:{T:1,f:$Te},160:{T:-1},161:{T:1,f:td},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:a6e},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:gCe},336:{T:-1},337:{f:wCe,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:e3},357:{},358:{},359:{},360:{T:1},361:{},362:{f:_Te},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:f6e},427:{f:d6e},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:p6e},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:_ke},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:l6e},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:e3},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:CCe},633:{T:1},634:{T:-1},635:{T:1,f:PCe},636:{T:-1},637:{f:jPe},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:L6e},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:w6e},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function Qe(e,t,r,n){var i=t;if(!isNaN(i)){var a=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,a),a>0&&lP(r)&&e.push(r)}}function g8e(e,t,r,n){var i=(r||[]).length||0;if(i<=8224)return Qe(e,t,r,i);var a=t;if(!isNaN(a)){for(var o=r.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var u=e.next(4);for(u.write_shift(2,a),u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;l<i;){for(u=e.next(4),u.write_shift(2,60),c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c}}}function s1(e,t,r){return e||(e=Re(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function v8e(e,t,r,n){var i=Re(9);return s1(i,e,t),hz(r,n||"b",i),i}function y8e(e,t,r){var n=Re(8+2*r.length);return s1(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function x8e(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?Ta(pa(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?Qe(e,2,LTe(r,n,i)):Qe(e,3,jTe(r,n,i));return;case"b":case"e":Qe(e,5,v8e(r,n,t.v,t.t));return;case"s":case"str":Qe(e,4,y8e(r,n,(t.v||"").slice(0,255)));return}Qe(e,1,s1(null,r,n))}function b8e(e,t,r,n){var i=Array.isArray(t),a=an(t["!ref"]||"A1"),o,s="",l=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),o=qn(a)}for(var c=a.s.r;c<=a.e.r;++c){s=Di(c);for(var u=a.s.c;u<=a.e.c;++u){c===a.s.r&&(l[u]=Yi(u)),o=l[u]+s;var f=i?(t[c]||[])[u]:t[o];f&&x8e(e,f,c,u)}}}function w8e(e,t){for(var r=t||{},n=Pa(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==r.sheet&&(i=a);if(i==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return Qe(n,r.biff==4?1033:r.biff==3?521:9,pP(e,16,r)),b8e(n,e.Sheets[e.SheetNames[i]],i,r),Qe(n,10),n.end()}function S8e(e,t,r){Qe(e,49,mTe({sz:12,name:"Arial"},r))}function _8e(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&Qe(e,1054,yTe(i,t[i],r))})}function A8e(e,t){var r=Re(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),Qe(e,2151,r),r=Re(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),gz(an(t["!ref"]||"A1"),r),r.write_shift(4,4),Qe(e,2152,r)}function E8e(e,t){for(var r=0;r<16;++r)Qe(e,224,fL({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){Qe(e,224,fL(n,0,t))})}function N8e(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];Qe(e,440,NTe(n)),n[1].Tooltip&&Qe(e,2048,PTe(n))}delete t["!links"]}function P8e(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&Qe(e,125,OTe(aw(i,n),i))})}}function T8e(e,t,r,n,i){var a=16+Nu(i.cellXfs,t,i);if(t.v==null&&!t.bf){Qe(e,513,Bf(r,n,a));return}if(t.bf)Qe(e,6,ZOe(t,r,n,i,a));else switch(t.t){case"d":case"n":var o=t.t=="d"?Ta(pa(t.v)):t.v;Qe(e,515,STe(r,n,o,a));break;case"b":case"e":Qe(e,517,wTe(r,n,t.v,a,i,t.t));break;case"s":case"str":if(i.bookSST){var s=xP(i.Strings,t.v,i.revStrings);Qe(e,253,gTe(r,n,s,a))}else Qe(e,516,vTe(r,n,(t.v||"").slice(0,255),a,i));break;default:Qe(e,513,Bf(r,n,a))}}function C8e(e,t,r){var n=Pa(),i=r.SheetNames[e],a=r.Sheets[i]||{},o=(r||{}).Workbook||{},s=(o.Sheets||[])[e]||{},l=Array.isArray(a),c=t.biff==8,u,f="",d=[],h=an(a["!ref"]||"A1"),v=c?65536:16384;if(h.e.c>255||h.e.r>=v){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,v-1)}Qe(n,2057,pP(r,16,t)),Qe(n,13,_o(1)),Qe(n,12,_o(100)),Qe(n,15,la(!0)),Qe(n,17,la(!1)),Qe(n,16,$f(.001)),Qe(n,95,la(!0)),Qe(n,42,la(!1)),Qe(n,43,la(!1)),Qe(n,130,_o(1)),Qe(n,128,bTe()),Qe(n,131,la(!1)),Qe(n,132,la(!1)),c&&P8e(n,a["!cols"]),Qe(n,512,xTe(h,t)),c&&(a["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=Di(p);for(var m=h.s.c;m<=h.e.c;++m){p===h.s.r&&(d[m]=Yi(m)),u=d[m]+f;var y=l?(a[p]||[])[m]:a[u];y&&(T8e(n,y,p,m,t),c&&y.l&&a["!links"].push([u,y.l]))}}var x=s.CodeName||s.name||i;return c&&Qe(n,574,pTe((o.Views||[])[0])),c&&(a["!merges"]||[]).length&&Qe(n,229,ETe(a["!merges"])),c&&N8e(n,a),Qe(n,442,mz(x)),c&&A8e(n,a),Qe(n,10),n.end()}function O8e(e,t,r){var n=Pa(),i=(e||{}).Workbook||{},a=i.Sheets||[],o=i.WBProps||{},s=r.biff==8,l=r.biff==5;if(Qe(n,2057,pP(e,5,r)),r.bookType=="xla"&&Qe(n,135),Qe(n,225,s?_o(1200):null),Qe(n,193,tTe(2)),l&&Qe(n,191),l&&Qe(n,192),Qe(n,226),Qe(n,92,uTe("SheetJS",r)),Qe(n,66,_o(s?1200:1252)),s&&Qe(n,353,_o(0)),s&&Qe(n,448),Qe(n,317,kTe(e.SheetNames.length)),s&&e.vbaraw&&Qe(n,211),s&&e.vbaraw){var c=o.CodeName||"ThisWorkbook";Qe(n,442,mz(c))}Qe(n,156,_o(17)),Qe(n,25,la(!1)),Qe(n,18,la(!1)),Qe(n,19,_o(0)),s&&Qe(n,431,la(!1)),s&&Qe(n,444,_o(0)),Qe(n,61,hTe()),Qe(n,64,la(!1)),Qe(n,141,_o(0)),Qe(n,34,la(D6e(e)=="true")),Qe(n,14,la(!0)),s&&Qe(n,439,la(!1)),Qe(n,218,_o(0)),S8e(n,e,r),_8e(n,e.SSF,r),E8e(n,r),s&&Qe(n,352,la(!1));var u=n.end(),f=Pa();s&&Qe(f,140,TTe()),s&&r.Strings&&g8e(f,252,dTe(r.Strings)),Qe(f,10);var d=f.end(),h=Pa(),v=0,p=0;for(p=0;p<e.SheetNames.length;++p)v+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var m=u.length+v+d.length;for(p=0;p<e.SheetNames.length;++p){var y=a[p]||{};Qe(h,133,fTe({pos:m,hs:y.Hidden||0,dt:0,name:e.SheetNames[p]},r)),m+=t[p].length}var x=h.end();if(v!=x.length)throw new Error("BS8 "+v+" != "+x.length);var w=[];return u.length&&w.push(u),x.length&&w.push(x),d.length&&w.push(d),ki(w)}function k8e(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=Ca(Pn)),e&&e.SSF&&(ew(),Qb(e.SSF),r.revssf=tw(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,bP(r),r.cellXfs=[],Nu(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=C8e(i,r,e);return n.unshift(O8e(e,n,r)),ki(n)}function Wz(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=ao(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var a=t||{};switch(a.biff||2){case 8:case 5:return k8e(e,t);case 4:case 3:case 2:return w8e(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function j8e(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,c=0;c<i.length;++c)if(!(i[c].s.r>r||i[c].s.c>o)&&!(i[c].e.r<r||i[c].e.c<o)){if(i[c].s.r<r||i[c].s.c<o){s=-1;break}s=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(s<0)){var u=Or({r,c:o}),f=n.dense?(e[r]||[])[o]:e[u],d=f&&f.v!=null&&(f.h||cPe(f.w||(ql(f),f.w)||""))||"",h={};s>1&&(h.rowspan=s),l>1&&(h.colspan=l),n.editable?d='<span contenteditable="true">'+d+"</span>":f&&(h["data-t"]=f&&f.t||"z",f.v!=null&&(h["data-v"]=f.v),f.z!=null&&(h["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+f.l.Target+'">'+d+"</a>")),h.id=(n.id||"sjs")+"-"+u,a.push(Ze("td",d,h))}}var v="<tr>";return v+a.join("")+"</tr>"}var L8e='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',I8e="</body></html>";function D8e(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function zz(e,t){var r=t||{},n=r.header!=null?r.header:L8e,i=r.footer!=null?r.footer:I8e,a=[n],o=ao(e["!ref"]);r.dense=Array.isArray(e),a.push(D8e(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)a.push(j8e(e,o,s,r));return a.push("</table>"+i),a.join("")}function Hz(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"?mi(n.origin):n.origin;i=o.r,a=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var u=ao(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),i==-1&&(c.e.r=i=u.e.r+1)}var f=[],d=0,h=e["!rows"]||(e["!rows"]=[]),v=0,p=0,m=0,y=0,x=0,w=0;for(e["!cols"]||(e["!cols"]=[]);v<s.length&&p<l;++v){var S=s[v];if(yL(S)){if(n.display)continue;h[p]={hidden:!0}}var A=S.children;for(m=y=0;m<A.length;++m){var N=A[m];if(!(n.display&&yL(N))){var P=N.hasAttribute("data-v")?N.getAttribute("data-v"):N.hasAttribute("v")?N.getAttribute("v"):hPe(N.innerHTML),j=N.getAttribute("data-z")||N.getAttribute("z");for(d=0;d<f.length;++d){var C=f[d];C.s.c==y+a&&C.s.r<p+i&&p+i<=C.e.r&&(y=C.e.c+1-a,d=-1)}w=+N.getAttribute("colspan")||1,((x=+N.getAttribute("rowspan")||1)>1||w>1)&&f.push({s:{r:p+i,c:y+a},e:{r:p+i+(x||1)-1,c:y+a+(w||1)-1}});var R={t:"s",v:P},L=N.getAttribute("data-t")||N.getAttribute("t")||"";P!=null&&(P.length==0?R.t=L||"z":n.raw||P.trim().length==0||L=="s"||(P==="TRUE"?R={t:"b",v:!0}:P==="FALSE"?R={t:"b",v:!1}:isNaN(Ll(P))?isNaN(Ag(P).getDate())||(R={t:"d",v:pa(P)},n.cellDates||(R={t:"n",v:Ta(R.v)}),R.z=n.dateNF||Pn[14]):R={t:"n",v:Ll(P)})),R.z===void 0&&j!=null&&(R.z=j);var I="",B=N.getElementsByTagName("A");if(B&&B.length)for(var z=0;z<B.length&&!(B[z].hasAttribute("href")&&(I=B[z].getAttribute("href"),I.charAt(0)!="#"));++z);I&&I.charAt(0)!="#"&&(R.l={Target:I}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][y+a]=R):e[Or({c:y+a,r:p+i})]=R,c.e.c<y+a&&(c.e.c=y+a),y+=w}}++p}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),c.e.r=Math.max(c.e.r,p-1+i),e["!ref"]=qn(c),p>=l&&(e["!fullref"]=qn((c.e.r=s.length-v+p-1+i,c))),e}function Vz(e,t){var r=t||{},n=r.dense?[]:{};return Hz(n,e,t)}function R8e(e,t){return Jf(Vz(e,t),t)}function yL(e){var t="",r=M8e(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function M8e(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var F8e=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+Ng({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Kn+t}}(),xL=function(){var e=function(a){return Tr(a).replace(/ +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=` <table:table-cell /> `,r=` <table:covered-table-cell/> `,n=function(a,o,s){var l=[];l.push(' <table:table table:name="'+Tr(o.SheetNames[s])+`" table:style-name="ta1"> `);var c=0,u=0,f=ao(a["!ref"]||"A1"),d=a["!merges"]||[],h=0,v=Array.isArray(a);if(a["!cols"])for(u=0;u<=f.e.c;++u)l.push(" <table:table-column"+(a["!cols"][u]?' table:style-name="co'+a["!cols"][u].ods+'"':"")+`></table:table-column> `);var p="",m=a["!rows"]||[];for(c=0;c<f.s.r;++c)p=m[c]?' table:style-name="ro'+m[c].ods+'"':"",l.push(" <table:table-row"+p+`></table:table-row> `);for(;c<=f.e.r;++c){for(p=m[c]?' table:style-name="ro'+m[c].ods+'"':"",l.push(" <table:table-row"+p+`> `),u=0;u<f.s.c;++u)l.push(t);for(;u<=f.e.c;++u){var y=!1,x={},w="";for(h=0;h!=d.length;++h)if(!(d[h].s.c>u)&&!(d[h].s.r>c)&&!(d[h].e.c<u)&&!(d[h].e.r<c)){(d[h].s.c!=u||d[h].s.r!=c)&&(y=!0),x["table:number-columns-spanned"]=d[h].e.c-d[h].s.c+1,x["table:number-rows-spanned"]=d[h].e.r-d[h].s.r+1;break}if(y){l.push(r);continue}var S=Or({r:c,c:u}),A=v?(a[c]||[])[u]:a[S];if(A&&A.f&&(x["table:formula"]=Tr(ike(A.f)),A.F&&A.F.slice(0,S.length)==S)){var N=ao(A.F);x["table:number-matrix-columns-spanned"]=N.e.c-N.s.c+1,x["table:number-matrix-rows-spanned"]=N.e.r-N.s.r+1}if(!A){l.push(t);continue}switch(A.t){case"b":w=A.v?"TRUE":"FALSE",x["office:value-type"]="boolean",x["office:boolean-value"]=A.v?"true":"false";break;case"n":w=A.w||String(A.v||0),x["office:value-type"]="float",x["office:value"]=A.v||0;break;case"s":case"str":w=A.v==null?"":A.v,x["office:value-type"]="string";break;case"d":w=A.w||pa(A.v).toISOString(),x["office:value-type"]="date",x["office:date-value"]=pa(A.v).toISOString(),x["table:style-name"]="ce1";break;default:l.push(t);continue}var P=e(w);if(A.l&&A.l.Target){var j=A.l.Target;j=j.charAt(0)=="#"?"#"+ake(j.slice(1)):j,j.charAt(0)!="#"&&!j.match(/^\w+:/)&&(j="../"+j),P=Ze("text:a",P,{"xlink:href":j.replace(/&/g,"&")})}l.push(" "+Ze("table:table-cell",Ze("text:p",P,{}),x)+` `)}l.push(` </table:table-row> `)}return l.push(` </table:table> `),l.join("")},i=function(a,o){a.push(` <office:automatic-styles> `),a.push(` <number:date-style style:name="N37" number:automatic-order="true"> `),a.push(` <number:month number:style="long"/> `),a.push(` <number:text>/</number:text> `),a.push(` <number:day number:style="long"/> `),a.push(` <number:text>/</number:text> `),a.push(` <number:year/> `),a.push(` </number:date-style> `);var s=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u<c["!cols"].length;++u)if(c["!cols"][u]){var f=c["!cols"][u];if(f.width==null&&f.wpx==null&&f.wch==null)continue;mP(f),f.ods=s;var d=c["!cols"][u].wpx+"px";a.push(' <style:style style:name="co'+s+`" style:family="table-column"> `),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+d+`"/> `),a.push(` </style:style> `),++s}}});var l=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var u=0;u<c["!rows"].length;++u)if(c["!rows"][u]){c["!rows"][u].ods=l;var f=c["!rows"][u].hpx+"px";a.push(' <style:style style:name="ro'+l+`" style:family="table-row"> `),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+f+`"/> `),a.push(` </style:style> `),++l}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1"> `),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/> `),a.push(` </style:style> `),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/> `),a.push(` </office:automatic-styles> `)};return function(o,s){var l=[Kn],c=Ng({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=Ng({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push("<office:document"+c+u+`> `),l.push(oz().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`> `),i(l,o),l.push(` <office:body> `),l.push(` <office:spreadsheet> `);for(var f=0;f!=o.SheetNames.length;++f)l.push(n(o.Sheets[o.SheetNames[f]],o,f));return l.push(` </office:spreadsheet> `),l.push(` </office:body> `),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function Gz(e,t){if(t.bookType=="fods")return xL(e,t);var r=iP(),n="",i=[],a=[];return n="mimetype",Zt(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Zt(r,n,xL(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",Zt(r,n,F8e(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",Zt(r,n,Kn+oz()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",Zt(r,n,YPe(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Zt(r,n,KPe(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function l2(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function $8e(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):ss(Eg(e))}function B8e(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function hu(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 U8e(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=r>=0?0:128}function Pg(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 Er(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function hh(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 ni(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=Pg(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=Pg(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 c={data:s,type:a};t[i]==null?t[i]=[c]:t[i].push(c)}return t}function Pi(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(Er(n*8+i.type)),i.type==2&&t.push(Er(i.data.length)),t.push(i.data))})}),hu(t)}function Zo(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=Pg(e,n),a=ni(e.slice(n[0],n[0]+i));n[0]+=i;var o={id:hh(a[1][0].data),messages:[]};a[2].forEach(function(s){var l=ni(s.data),c=hh(l[3][0].data);o.messages.push({meta:l,data:e.slice(n[0],n[0]+c)}),n[0]+=c}),(t=a[3])!=null&&t[0]&&(o.merge=hh(a[3][0].data)>>>0>0),r.push(o)}return r}function Sd(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:Er(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:Er(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(o){i.push(o.data),o.meta[3]=[{type:0,data:Er(o.data.length)}],n[2].push({data:Pi(o.meta),type:2})});var a=Pi(n);t.push(Er(a.length)),t.push(a),i.forEach(function(o){return t.push(o)})}),hu(t)}function W8e(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Pg(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,c=0;if(a==1?(c=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(c=(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=[hu(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(i.push(i[0].slice(-l)),c-=l;c>=i[i.length-1].length;)i.push(i[i.length-1]),c-=i[i.length-1].length;i.push(i[0].slice(-l,-l+c))}}var u=hu(i);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function Qo(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(W8e(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return hu(t)}function _d(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),i=new Uint8Array(4);t.push(i);var a=Er(n),o=a.length;t.push(a),n<=60?(o++,t.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),o+=n,i[0]=0,i[1]=o&255,i[2]=o>>8&255,i[3]=o>>16&255,r+=n}return hu(t)}function AS(e,t){var r=new Uint8Array(32),n=l2(r),i=12,a=0;switch(r[0]=5,e.t){case"n":r[1]=2,U8e(r,i,e.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),r.slice(0,i)}function ES(e,t){var r=new Uint8Array(32),n=l2(r),i=12,a=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),r.slice(0,i)}function Ac(e){var t=ni(e);return Pg(t[1][0].data)}function z8e(e,t,r){var n,i,a,o;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(a=e[8])==null?void 0:a[0])==null?void 0:o.data)&&hh(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=l2(e[7][0].data),u=0,f=[],d=l2(e[4][0].data),h=0,v=[],p=0;p<t.length;++p){if(t[p]==null){c.setUint16(p*2,65535,!0),d.setUint16(p*2,65535);continue}c.setUint16(p*2,u,!0),d.setUint16(p*2,h,!0);var m,y;switch(typeof t[p]){case"string":m=AS({t:"s",v:t[p]},r),y=ES({t:"s",v:t[p]},r);break;case"number":m=AS({t:"n",v:t[p]},r),y=ES({t:"n",v:t[p]},r);break;case"boolean":m=AS({t:"b",v:t[p]},r),y=ES({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(m),u+=m.length,v.push(y),h+=y.length,++l}for(e[2][0].data=Er(l);p<e[7][0].data.length/2;++p)c.setUint16(p*2,65535,!0),d.setUint16(p*2,65535,!0);return e[6][0].data=hu(f),e[3][0].data=hu(v),l}function H8e(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=ao(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(qn(n)));var a=c2(r,{range:n,header:1}),o=["~Sh33tJ5~"];a.forEach(function(M){return M.forEach(function(F){typeof F=="string"&&o.push(F)})});var s={},l=[],c=Dr.read(t.numbers,{type:"base64"});c.FileIndex.map(function(M,F){return[M,c.FullPaths[F]]}).forEach(function(M){var F=M[0],U=M[1];if(F.type==2&&F.name.match(/\.iwa/)){var Z=F.content,se=Qo(Z),ve=Zo(se);ve.forEach(function(oe){l.push(oe.id),s[oe.id]={deps:[],location:U,type:hh(oe.messages[0].meta[1][0].data)}})}}),l.sort(function(M,F){return M-F});var u=l.filter(function(M){return M>1}).map(function(M){return[M,Er(M)]});c.FileIndex.map(function(M,F){return[M,c.FullPaths[F]]}).forEach(function(M){var F=M[0];if(M[1],!!F.name.match(/\.iwa/)){var U=Zo(Qo(F.content));U.forEach(function(Z){Z.messages.forEach(function(se){u.forEach(function(ve){Z.messages.some(function(oe){return hh(oe.meta[1][0].data)!=11006&&B8e(oe.data,ve[1])})&&s[ve[0]].deps.push(Z.id)})})})}});for(var f=Dr.find(c,s[1].location),d=Zo(Qo(f.content)),h,v=0;v<d.length;++v){var p=d[v];p.id==1&&(h=p)}var m=Ac(ni(h.messages[0].data)[1][0].data);for(f=Dr.find(c,s[m].location),d=Zo(Qo(f.content)),v=0;v<d.length;++v)p=d[v],p.id==m&&(h=p);for(m=Ac(ni(h.messages[0].data)[2][0].data),f=Dr.find(c,s[m].location),d=Zo(Qo(f.content)),v=0;v<d.length;++v)p=d[v],p.id==m&&(h=p);for(m=Ac(ni(h.messages[0].data)[2][0].data),f=Dr.find(c,s[m].location),d=Zo(Qo(f.content)),v=0;v<d.length;++v)p=d[v],p.id==m&&(h=p);var y=ni(h.messages[0].data);{y[6][0].data=Er(n.e.r+1),y[7][0].data=Er(n.e.c+1);var x=Ac(y[46][0].data),w=Dr.find(c,s[x].location),S=Zo(Qo(w.content));{for(var A=0;A<S.length&&S[A].id!=x;++A);if(S[A].id!=x)throw"Bad ColumnRowUIDMapArchive";var N=ni(S[A].messages[0].data);N[1]=[],N[2]=[],N[3]=[];for(var P=0;P<=n.e.c;++P){var j=[];j[1]=j[2]=[{type:0,data:Er(P+420690)}],N[1].push({type:2,data:Pi(j)}),N[2].push({type:0,data:Er(P)}),N[3].push({type:0,data:Er(P)})}N[4]=[],N[5]=[],N[6]=[];for(var C=0;C<=n.e.r;++C)j=[],j[1]=j[2]=[{type:0,data:Er(C+726270)}],N[4].push({type:2,data:Pi(j)}),N[5].push({type:0,data:Er(C)}),N[6].push({type:0,data:Er(C)});S[A].messages[0].data=Pi(N)}w.content=_d(Sd(S)),w.size=w.content.length,delete y[46];var R=ni(y[4][0].data);{R[7][0].data=Er(n.e.r+1);var L=ni(R[1][0].data),I=Ac(L[2][0].data);w=Dr.find(c,s[I].location),S=Zo(Qo(w.content));{if(S[0].id!=I)throw"Bad HeaderStorageBucket";var B=ni(S[0].messages[0].data);for(C=0;C<a.length;++C){var z=ni(B[2][0].data);z[1][0].data=Er(C),z[4][0].data=Er(a[C].length),B[2][C]={type:B[2][0].type,data:Pi(z)}}S[0].messages[0].data=Pi(B)}w.content=_d(Sd(S)),w.size=w.content.length;var V=Ac(R[2][0].data);w=Dr.find(c,s[V].location),S=Zo(Qo(w.content));{if(S[0].id!=V)throw"Bad HeaderStorageBucket";for(B=ni(S[0].messages[0].data),P=0;P<=n.e.c;++P)z=ni(B[2][0].data),z[1][0].data=Er(P),z[4][0].data=Er(n.e.r+1),B[2][P]={type:B[2][0].type,data:Pi(z)};S[0].messages[0].data=Pi(B)}w.content=_d(Sd(S)),w.size=w.content.length;var Q=Ac(R[4][0].data);(function(){for(var M=Dr.find(c,s[Q].location),F=Zo(Qo(M.content)),U,Z=0;Z<F.length;++Z){var se=F[Z];se.id==Q&&(U=se)}var ve=ni(U.messages[0].data);{ve[3]=[];var oe=[];o.forEach(function(me,Le){oe[1]=[{type:0,data:Er(Le)}],oe[2]=[{type:0,data:Er(1)}],oe[3]=[{type:2,data:$8e(me)}],ve[3].push({type:2,data:Pi(oe)})})}U.messages[0].data=Pi(ve);var pe=Sd(F),Se=_d(pe);M.content=Se,M.size=M.content.length})();var ae=ni(R[3][0].data);{var K=ae[1][0];delete ae[2];var re=ni(K.data);{var ye=Ac(re[2][0].data);(function(){for(var M=Dr.find(c,s[ye].location),F=Zo(Qo(M.content)),U,Z=0;Z<F.length;++Z){var se=F[Z];se.id==ye&&(U=se)}var ve=ni(U.messages[0].data);{delete ve[6],delete ae[7];var oe=new Uint8Array(ve[5][0].data);ve[5]=[];for(var pe=0,Se=0;Se<=n.e.r;++Se){var me=ni(oe);pe+=z8e(me,a[Se],o),me[1][0].data=Er(Se),ve[5].push({data:Pi(me),type:2})}ve[1]=[{type:0,data:Er(n.e.c+1)}],ve[2]=[{type:0,data:Er(n.e.r+1)}],ve[3]=[{type:0,data:Er(pe)}],ve[4]=[{type:0,data:Er(n.e.r+1)}]}U.messages[0].data=Pi(ve);var Le=Sd(F),ie=_d(Le);M.content=ie,M.size=M.content.length})()}K.data=Pi(re)}R[3][0].data=Pi(ae)}y[4][0].data=Pi(R)}h.messages[0].data=Pi(y);var xe=Sd(d),O=_d(xe);return f.content=O,f.size=f.content.length,c}function V8e(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 bP(e){V8e([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function G8e(e,t){return t.bookType=="ods"?Gz(e,t):t.bookType=="numbers"?H8e(e,t):t.bookType=="xlsb"?q8e(e,t):K8e(e,t)}function q8e(e,t){Kd=1024,e&&!e.SSF&&(e.SSF=Ca(Pn)),e&&e.SSF&&(ew(),Qb(e.SSF),t.revssf=tw(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,fm?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=Tz.indexOf(t.bookType)>-1,i=nz();bP(t=t||{});var a=iP(),o="",s=0;if(t.cellXfs=[],Nu(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Zt(a,o,sz(e.Props,t)),i.coreprops.push(o),Nr(t.rels,2,o,hr.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,Zt(a,o,cz(e.Props)),i.extprops.push(o),Nr(t.rels,3,o,hr.EXT_PROPS),e.Custprops!==e.Props&&Mi(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Zt(a,o,uz(e.Custprops)),i.custprops.push(o),Nr(t.rels,4,o,hr.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],d=(f||{})["!type"]||"sheet";switch(d){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Zt(a,o,Y6e(s-1,o,t,e,u)),i.sheets.push(o),Nr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,hr.WS[0])}if(f){var h=f["!comments"],v=!1,p="";h&&h.length>0&&(p="xl/comments"+s+"."+r,Zt(a,p,Q6e(h,p)),i.comments.push(p),Nr(u,-1,"../comments"+s+"."+r,hr.CMNT),v=!0),f["!legacy"]&&v&&Zt(a,"xl/drawings/vmlDrawing"+s+".vml",Nz(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&Zt(a,az(o),fh(u))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,Zt(a,o,Z6e(t.Strings,o,t)),i.strs.push(o),Nr(t.wbrels,-1,"sharedStrings."+r,hr.SST)),o="xl/workbook."+r,Zt(a,o,X6e(e,o)),i.workbooks.push(o),Nr(t.rels,1,o,hr.WB),o="xl/theme/theme1.xml",Zt(a,o,Az(e.Themes,t)),i.themes.push(o),Nr(t.wbrels,-1,"theme/theme1.xml",hr.THEME),o="xl/styles."+r,Zt(a,o,J6e(e,o,t)),i.styles.push(o),Nr(t.wbrels,-1,"styles."+r,hr.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",Zt(a,o,e.vbaraw),i.vba.push(o),Nr(t.wbrels,-1,"vbaProject.bin",hr.VBA)),o="xl/metadata."+r,Zt(a,o,e8e(o)),i.metadata.push(o),Nr(t.wbrels,-1,"metadata."+r,hr.XLMETA),Zt(a,"[Content_Types].xml",iz(i,t)),Zt(a,"_rels/.rels",fh(t.rels)),Zt(a,"xl/_rels/workbook."+r+".rels",fh(t.wbrels)),delete t.revssf,delete t.ssf,a}function K8e(e,t){Kd=1024,e&&!e.SSF&&(e.SSF=Ca(Pn)),e&&e.SSF&&(ew(),Qb(e.SSF),t.revssf=tw(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,fm?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=Tz.indexOf(t.bookType)>-1,i=nz();bP(t=t||{});var a=iP(),o="",s=0;if(t.cellXfs=[],Nu(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Zt(a,o,sz(e.Props,t)),i.coreprops.push(o),Nr(t.rels,2,o,hr.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,Zt(a,o,cz(e.Props)),i.extprops.push(o),Nr(t.rels,3,o,hr.EXT_PROPS),e.Custprops!==e.Props&&Mi(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Zt(a,o,uz(e.Custprops)),i.custprops.push(o),Nr(t.rels,4,o,hr.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},d=e.Sheets[e.SheetNames[s-1]],h=(d||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Zt(a,o,Mz(s-1,t,e,f)),i.sheets.push(o),Nr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,hr.WS[0])}if(d){var v=d["!comments"],p=!1,m="";if(v&&v.length>0){var y=!1;v.forEach(function(x){x[1].forEach(function(w){w.T==!0&&(y=!0)})}),y&&(m="xl/threadedComments/threadedComment"+s+"."+r,Zt(a,m,ECe(v,u,t)),i.threadedcomments.push(m),Nr(f,-1,"../threadedComments/threadedComment"+s+"."+r,hr.TCMNT)),m="xl/comments"+s+"."+r,Zt(a,m,Pz(v)),i.comments.push(m),Nr(f,-1,"../comments"+s+"."+r,hr.CMNT),p=!0}d["!legacy"]&&p&&Zt(a,"xl/drawings/vmlDrawing"+s+".vml",Nz(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&Zt(a,az(o),fh(f))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,Zt(a,o,yz(t.Strings,t)),i.strs.push(o),Nr(t.wbrels,-1,"sharedStrings."+r,hr.SST)),o="xl/workbook."+r,Zt(a,o,Bz(e)),i.workbooks.push(o),Nr(t.rels,1,o,hr.WB),o="xl/theme/theme1.xml",Zt(a,o,Az(e.Themes,t)),i.themes.push(o),Nr(t.wbrels,-1,"theme/theme1.xml",hr.THEME),o="xl/styles."+r,Zt(a,o,Sz(e,t)),i.styles.push(o),Nr(t.wbrels,-1,"styles."+r,hr.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",Zt(a,o,e.vbaraw),i.vba.push(o),Nr(t.wbrels,-1,"vbaProject.bin",hr.VBA)),o="xl/metadata."+r,Zt(a,o,Ez()),i.metadata.push(o),Nr(t.wbrels,-1,"metadata."+r,hr.XLMETA),u.length>1&&(o="xl/persons/person.xml",Zt(a,o,NCe(u)),i.people.push(o),Nr(t.wbrels,-1,"persons/person.xml",hr.PEOPLE)),Zt(a,"[Content_Types].xml",iz(i,t)),Zt(a,"_rels/.rels",fh(t.rels)),Zt(a,"xl/_rels/workbook."+r+".rels",fh(t.wbrels)),delete t.revssf,delete t.ssf,a}function X8e(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=Gl(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 qz(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return n1(t.file,Dr.write(e,{type:vr?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Dr.write(e,t)}function Y8e(e,t){var r=Ca(t||{}),n=G8e(e,r);return J8e(n,r)}function J8e(e,t){var r={},n=vr?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?Dr.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(Zb(i))}return t.password&&typeof encrypt_agile<"u"?qz(encrypt_agile(i,t.password),t):t.type==="file"?n1(t.file,i):t.type=="string"?sm(i):i}function Z8e(e,t){var r=t||{},n=p8e(e,r);return qz(n,r)}function js(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return _g(Eg(n));case"binary":return Eg(n);case"string":return e;case"file":return n1(t.file,n,"utf8");case"buffer":return vr?ic(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):js(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Q8e(e,t){switch(t.type){case"base64":return _g(e);case"binary":return e;case"string":return e;case"file":return n1(t.file,e,"binary");case"buffer":return vr?ic(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function jv(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?_g(r):t.type=="string"?sm(r):r;case"file":return n1(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function Kz(e,t){PNe(),F6e(e);var r=Ca(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=Kz(e,r);return r.type="array",Zb(n)}var i=0;if(r.sheet&&(typeof r.sheet=="number"?i=r.sheet:i=e.SheetNames.indexOf(r.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return js(d8e(e,r),r);case"slk":case"sylk":return js(DTe.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return js(zz(e.Sheets[e.SheetNames[i]],r),r);case"txt":return Q8e(Yz(e.Sheets[e.SheetNames[i]],r),r);case"csv":return js(wP(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return js(RTe.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return jv(ITe.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return js(MTe.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return js(HTe.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return js(vz.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return js(Gz(e,r),r);case"wk1":return jv(dL.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return jv(dL.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),jv(Wz(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),Z8e(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return Y8e(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function eje(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function Xz(e,t,r){var n={};return n.type="file",n.file=t,eje(n),Kz(e,n)}function tje(e,t,r,n,i,a,o,s){var l=Di(r),c=s.defval,u=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 h=t.s.c;h<=t.e.c;++h){var v=o?e[r][h]:e[n[h]+l];if(v===void 0||v.t===void 0){if(c===void 0)continue;a[h]!=null&&(d[a[h]]=c);continue}var p=v.v;switch(v.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+v.t)}if(a[h]!=null){if(p==null)if(v.t=="e"&&p===null)d[a[h]]=null;else if(c!==void 0)d[a[h]]=c;else if(u&&p===null)d[a[h]]=null;else continue;else d[a[h]]=u&&(v.t!=="n"||v.t==="n"&&s.rawNumbers!==!1)?p:ql(v,p,s);p!=null&&(f=!1)}}return{row:d,isempty:f}}function c2(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}},c=t||{},u=c.range!=null?c.range:e["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof u){case"string":l=an(u);break;case"number":l=an(e["!ref"]),l.s.r=u;break;default:l=u}n>0&&(i=0);var f=Di(l.s.r),d=[],h=[],v=0,p=0,m=Array.isArray(e),y=l.s.r,x=0,w={};m&&!e[y]&&(e[y]=[]);var S=c.skipHidden&&e["!cols"]||[],A=c.skipHidden&&e["!rows"]||[];for(x=l.s.c;x<=l.e.c;++x)if(!(S[x]||{}).hidden)switch(d[x]=Yi(x),r=m?e[y][x]:e[d[x]+f],n){case 1:a[x]=x-l.s.c;break;case 2:a[x]=d[x];break;case 3:a[x]=c.header[x-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=ql(r,null,c),p=w[o]||0,!p)w[o]=1;else{do s=o+"_"+p++;while(w[s]);w[o]=p,w[s]=1}a[x]=s}for(y=l.s.r+i;y<=l.e.r;++y)if(!(A[y]||{}).hidden){var N=tje(e,l,y,d,n,a,m,c);(N.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(h[v++]=N.row)}return h.length=v,h}var bL=/"/g;function rje(e,t,r,n,i,a,o,s){for(var l=!0,c=[],u="",f=Di(r),d=t.s.c;d<=t.e.c;++d)if(n[d]){var h=s.dense?(e[r]||[])[d]:e[n[d]+f];if(h==null)u="";else if(h.v!=null){l=!1,u=""+(s.rawNumbers&&h.t=="n"?h.v:ql(h,null,s));for(var v=0,p=0;v!==u.length;++v)if((p=u.charCodeAt(v))===i||p===a||p===34||s.forceQuotes){u='"'+u.replace(bL,'""')+'"';break}u=="ID"&&(u='"ID"')}else h.f!=null&&!h.F?(l=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(bL,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(o)}function wP(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=an(e["!ref"]),a=n.FS!==void 0?n.FS:",",o=a.charCodeAt(0),s=n.RS!==void 0?n.RS:` `,l=s.charCodeAt(0),c=new RegExp((a=="|"?"\\|":a)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var d=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],v=i.s.c;v<=i.e.c;++v)(d[v]||{}).hidden||(f[v]=Yi(v));for(var p=0,m=i.s.r;m<=i.e.r;++m)(h[m]||{}).hidden||(u=rje(e,i,m,f,o,l,a,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&r.push((p++?s:"")+u)));return delete n.dense,r.join("")}function Yz(e,t){t||(t={}),t.FS=" ",t.RS=` `;var r=wP(e,t);return r}function nje(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=an(e["!ref"]),a="",o=[],s,l=[],c=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)o[s]=Yi(s);for(var u=i.s.r;u<=i.e.r;++u)for(a=Di(u),s=i.s.c;s<=i.e.c;++s)if(t=o[s]+a,r=c?(e[u]||[])[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 Jz(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"?mi(n.origin):n.origin;o=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:o+t.length-1+i}};if(a["!ref"]){var f=an(a["!ref"]);u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),o==-1&&(o=f.e.r+1,u.e.r=o+t.length-1+i)}else o==-1&&(o=0,u.e.r=t.length-1+i);var d=n.header||[],h=0;t.forEach(function(p,m){Mi(p).forEach(function(y){(h=d.indexOf(y))==-1&&(d[h=d.length]=y);var x=p[y],w="z",S="",A=Or({c:s+h,r:o+m+i});c=Tg(a,A),x&&typeof x=="object"&&!(x instanceof Date)?a[A]=x:(typeof x=="number"?w="n":typeof x=="boolean"?w="b":typeof x=="string"?w="s":x instanceof Date?(w="d",n.cellDates||(w="n",x=Ta(x)),S=n.dateNF||Pn[14]):x===null&&n.nullError&&(w="e",x=0),c?(c.t=w,c.v=x,delete c.w,delete c.R,S&&(c.z=S)):a[A]=c={t:w,v:x},S&&(c.z=S))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var v=Di(o);if(i)for(h=0;h<d.length;++h)a[Yi(h+s)+v]={t:"s",v:d[h]};return a["!ref"]=qn(u),a}function ije(e,t){return Jz(null,e,t)}function Tg(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=mi(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"?Tg(e,Or(t)):Tg(e,Or({r:t,c:r||0}))}function aje(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 oje(){return{SheetNames:[],Sheets:{}}}function sje(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($z(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 lje(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=aje(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 cje(e,t){return e.z=t,e}function Zz(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function uje(e,t,r){return Zz(e,"#"+t,r)}function fje(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function dje(e,t,r,n){for(var i=typeof t!="string"?t:an(t),a=typeof t=="string"?t:qn(t),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var l=Tg(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 ph={encode_col:Yi,encode_row:Di,encode_cell:Or,encode_range:qn,decode_col:uP,decode_row:cP,split_cell:PPe,decode_cell:mi,decode_range:ao,format_cell:ql,sheet_add_aoa:JW,sheet_add_json:Jz,sheet_add_dom:Hz,aoa_to_sheet:Lp,json_to_sheet:ije,table_to_sheet:Vz,table_to_book:R8e,sheet_to_csv:wP,sheet_to_txt:Yz,sheet_to_json:c2,sheet_to_html:zz,sheet_to_formulae:nje,sheet_to_row_object_array:c2,sheet_get_cell:Tg,book_new:oje,book_append_sheet:sje,book_set_sheet_visibility:lje,cell_set_number_format:cje,cell_set_hyperlink:Zz,cell_set_internal_link:uje,cell_add_comment:fje,sheet_set_array_formula:dje,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const hje="modulepreload",pje=function(e){return"/"+e},wL={},NS=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(r.map(l=>{if(l=pje(l),l in wL)return;wL[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${u}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":hje,c||(f.as="script"),f.crossOrigin="",f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((d,h)=>{f.addEventListener("load",d),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};function pr(e){"@babel/helpers - typeof";return pr=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},pr(e)}var vs=Uint8Array,Ja=Uint16Array,SP=Int32Array,_P=new vs([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),AP=new vs([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),SL=new vs([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Qz=function(e,t){for(var r=new Ja(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new SP(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},eH=Qz(_P,2),mje=eH.b,r3=eH.r;mje[28]=258,r3[258]=28;var gje=Qz(AP,0),_L=gje.r,n3=new Ja(32768);for(var rn=0;rn<32768;++rn){var Ec=(rn&43690)>>1|(rn&21845)<<1;Ec=(Ec&52428)>>2|(Ec&13107)<<2,Ec=(Ec&61680)>>4|(Ec&3855)<<4,n3[rn]=((Ec&65280)>>8|(Ec&255)<<8)>>1}var dm=function(e,t,r){for(var n=e.length,i=0,a=new Ja(t);i<n;++i)e[i]&&++a[e[i]-1];var o=new Ja(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(r){s=new Ja(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],f=o[e[i]-1]++<<u,d=f|(1<<u)-1;f<=d;++f)s[n3[f]>>l]=c}else for(s=new Ja(n),i=0;i<n;++i)e[i]&&(s[i]=n3[o[e[i]-1]++]>>15-e[i]);return s},Uf=new vs(288);for(var rn=0;rn<144;++rn)Uf[rn]=8;for(var rn=144;rn<256;++rn)Uf[rn]=9;for(var rn=256;rn<280;++rn)Uf[rn]=7;for(var rn=280;rn<288;++rn)Uf[rn]=8;var u2=new vs(32);for(var rn=0;rn<32;++rn)u2[rn]=5;var vje=dm(Uf,9,0),yje=dm(u2,5,0),tH=function(e){return(e+7)/8|0},xje=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new vs(e.subarray(t,r))},vl=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},j0=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},PS=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return{t:nH,l:0};if(i==1){var o=new vs(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(A,N){return A.f-N.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,u=1,f=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=r[r[c].f<r[f].f?c++:f++],l=r[c!=u&&r[c].f<r[f].f?c++:f++],r[u++]={s:-1,f:s.f+l.f,l:s,r:l};for(var d=a[0].s,n=1;n<i;++n)a[n].s>d&&(d=a[n].s);var h=new Ja(d+1),v=i3(r[u-1],h,0);if(v>t){var n=0,p=0,m=v-t,y=1<<m;for(a.sort(function(N,P){return h[P.s]-h[N.s]||N.f-P.f});n<i;++n){var x=a[n].s;if(h[x]>t)p+=y-(1<<v-h[x]),h[x]=t;else break}for(p>>=m;p>0;){var w=a[n].s;h[w]<t?p-=1<<t-h[w]++-1:++n}for(;n>=0&&p;--n){var S=a[n].s;h[S]==t&&(--h[S],++p)}v=t}return{t:new vs(h),l:v}},i3=function(e,t,r){return e.s==-1?Math.max(i3(e.l,t,r+1),i3(e.r,t,r+1)):t[e.s]=r},AL=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Ja(++t),n=0,i=e[0],a=1,o=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:r.subarray(0,n),n:t}},L0=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},rH=function(e,t,r){var n=r.length,i=tH(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<n;++a)e[i+a+4]=r[a];return(i+4+n)*8},EL=function(e,t,r,n,i,a,o,s,l,c,u){vl(t,u++,r),++i[256];for(var f=PS(i,15),d=f.t,h=f.l,v=PS(a,15),p=v.t,m=v.l,y=AL(d),x=y.c,w=y.n,S=AL(p),A=S.c,N=S.n,P=new Ja(19),j=0;j<x.length;++j)++P[x[j]&31];for(var j=0;j<A.length;++j)++P[A[j]&31];for(var C=PS(P,7),R=C.t,L=C.l,I=19;I>4&&!R[SL[I-1]];--I);var B=c+5<<3,z=L0(i,Uf)+L0(a,u2)+o,V=L0(i,d)+L0(a,p)+o+14+3*I+L0(P,R)+2*P[16]+3*P[17]+7*P[18];if(l>=0&&B<=z&&B<=V)return rH(t,u,e.subarray(l,l+c));var Q,ae,K,re;if(vl(t,u,1+(V<z)),u+=2,V<z){Q=dm(d,h,0),ae=d,K=dm(p,m,0),re=p;var ye=dm(R,L,0);vl(t,u,w-257),vl(t,u+5,N-1),vl(t,u+10,I-4),u+=14;for(var j=0;j<I;++j)vl(t,u+3*j,R[SL[j]]);u+=3*I;for(var xe=[x,A],O=0;O<2;++O)for(var M=xe[O],j=0;j<M.length;++j){var F=M[j]&31;vl(t,u,ye[F]),u+=R[F],F>15&&(vl(t,u,M[j]>>5&127),u+=M[j]>>12)}}else Q=vje,ae=Uf,K=yje,re=u2;for(var j=0;j<s;++j){var U=n[j];if(U>255){var F=U>>18&31;j0(t,u,Q[F+257]),u+=ae[F+257],F>7&&(vl(t,u,U>>23&31),u+=_P[F]);var Z=U&31;j0(t,u,K[Z]),u+=re[Z],Z>3&&(j0(t,u,U>>5&8191),u+=AP[Z])}else j0(t,u,Q[U]),u+=ae[U]}return j0(t,u,Q[256]),u+ae[256]},bje=new SP([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),nH=new vs(0),wje=function(e,t,r,n,i,a){var o=a.z||e.length,s=new vs(n+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(n,s.length-i),c=a.l,u=(a.r||0)&7;if(t){u&&(l[0]=a.r>>3);for(var f=bje[t-1],d=f>>13,h=f&8191,v=(1<<r)-1,p=a.p||new Ja(32768),m=a.h||new Ja(v+1),y=Math.ceil(r/3),x=2*y,w=function(ie){return(e[ie]^e[ie+1]<<y^e[ie+2]<<x)&v},S=new SP(25e3),A=new Ja(288),N=new Ja(32),P=0,j=0,C=a.i||0,R=0,L=a.w||0,I=0;C+2<o;++C){var B=w(C),z=C&32767,V=m[B];if(p[z]=V,m[B]=z,L<=C){var Q=o-C;if((P>7e3||R>24576)&&(Q>423||!c)){u=EL(e,l,0,S,A,N,j,R,I,C-I,u),R=P=j=0,I=C;for(var ae=0;ae<286;++ae)A[ae]=0;for(var ae=0;ae<30;++ae)N[ae]=0}var K=2,re=0,ye=h,xe=z-V&32767;if(Q>2&&B==w(C-xe))for(var O=Math.min(d,Q)-1,M=Math.min(32767,C),F=Math.min(258,Q);xe<=M&&--ye&&z!=V;){if(e[C+K]==e[C+K-xe]){for(var U=0;U<F&&e[C+U]==e[C+U-xe];++U);if(U>K){if(K=U,re=xe,U>O)break;for(var Z=Math.min(xe,U-2),se=0,ae=0;ae<Z;++ae){var ve=C-xe+ae&32767,oe=p[ve],pe=ve-oe&32767;pe>se&&(se=pe,V=ve)}}}z=V,V=p[z],xe+=z-V&32767}if(re){S[R++]=268435456|r3[K]<<18|_L[re];var Se=r3[K]&31,me=_L[re]&31;j+=_P[Se]+AP[me],++A[257+Se],++N[me],L=C+K,++P}else S[R++]=e[C],++A[e[C]]}}for(C=Math.max(C,L);C<o;++C)S[R++]=e[C],++A[e[C]];u=EL(e,l,c,S,A,N,j,R,I,C-I,u),c||(a.r=u&7|l[u/8|0]<<3,u-=7,a.h=m,a.p=p,a.i=C,a.w=L)}else{for(var C=a.w||0;C<o+c;C+=65535){var Le=C+65535;Le>=o&&(l[u/8|0]=c,Le=o),u=rH(l,u+1,e.subarray(C,Le))}a.i=o}return xje(s,0,n+tH(u)+i)},iH=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,a=r.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=n+=r[o];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},Sje=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new vs(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return wje(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},aH=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},_je=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=iH();i.p(t.dictionary),aH(e,2,i.d())}};function a3(e,t){t||(t={});var r=iH();r.p(e);var n=Sje(e,t,t.dictionary?6:2,4);return _je(n,t),aH(n,n.length-4,r.d()),n}var Aje=typeof TextDecoder<"u"&&new TextDecoder,Eje=0;try{Aje.decode(nH,{stream:!0}),Eje=1}catch{}function Nje(e){if(Array.isArray(e))return e}function Pje(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function NL(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Tje(e,t){if(e){if(typeof e=="string")return NL(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?NL(e,t):void 0}}function Cje(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PL(e,t){return Nje(e)||Pje(e,t)||Tje(e,t)||Cje()}function TL(e,t="utf8"){return new TextDecoder(t).decode(e)}const Oje=new TextEncoder;function kje(e){return Oje.encode(e)}const jje=1024*8,Lje=(()=>{const e=new Uint8Array(4),t=new Uint32Array(e.buffer);return!((t[0]=1)&e[0])})(),TS={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class EP{constructor(t=jje,r={}){Ar(this,"buffer");Ar(this,"byteLength");Ar(this,"byteOffset");Ar(this,"length");Ar(this,"offset");Ar(this,"lastWrittenByte");Ar(this,"littleEndian");Ar(this,"_data");Ar(this,"_mark");Ar(this,"_marks");let n=!1;typeof t=="number"?t=new ArrayBuffer(t):(n=!0,this.lastWrittenByte=t.byteLength);const i=r.offset?r.offset>>>0:0,a=t.byteLength-i;let o=i;(ArrayBuffer.isView(t)||t instanceof EP)&&(t.byteLength!==t.buffer.byteLength&&(o=t.byteOffset+i),t=t.buffer),n?this.lastWrittenByte=a:this.lastWrittenByte=0,this.buffer=t,this.length=a,this.byteLength=a,this.byteOffset=o,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,o,a),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const n=(this.offset+t)*2,i=new Uint8Array(n);i.set(new Uint8Array(this.buffer)),this.buffer=i.buffer,this.length=n,this.byteLength=n,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,r){const n=TS[r].BYTES_PER_ELEMENT*t,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+n);if(this.littleEndian===Lje&&r!=="uint8"&&r!=="int8"){const s=new Uint8Array(this.buffer.slice(i,i+n));s.reverse();const l=new TS[r](s.buffer);return this.offset+=n,l.reverse(),l}const o=new TS[r](a);return this.offset+=n,o}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let r="";for(let n=0;n<t;n++)r+=this.readChar();return r}readUtf8(t=1){return TL(this.readBytes(t))}decodeText(t=1,r="utf8"){return TL(this.readBytes(t),r)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let r=0;r<t.length;r++)this._data.setUint8(this.offset++,t[r]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let r=0;r<t.length;r++)this.writeUint8(t.charCodeAt(r));return this}writeUtf8(t){return this.writeBytes(kje(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function Rp(e){let t=e.length;for(;--t>=0;)e[t]=0}const Ije=3,Dje=258,oH=29,Rje=256,Mje=Rje+1+oH,sH=30,Fje=512,$je=new Array((Mje+2)*2);Rp($je);const Bje=new Array(sH*2);Rp(Bje);const Uje=new Array(Fje);Rp(Uje);const Wje=new Array(Dje-Ije+1);Rp(Wje);const zje=new Array(oH);Rp(zje);const Hje=new Array(sH);Rp(Hje);const Vje=(e,t,r,n)=>{let i=e&65535|0,a=e>>>16&65535|0,o=0;for(;r!==0;){o=r>2e3?2e3:r,r-=o;do i=i+t[n++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0};var o3=Vje;const Gje=()=>{let e,t=[];for(var r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=e&1?3988292384^e>>>1:e>>>1;t[r]=e}return t},qje=new Uint32Array(Gje()),Kje=(e,t,r,n)=>{const i=qje,a=n+r;e^=-1;for(let o=n;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1};var Os=Kje,s3={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},lH={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_DEFLATED:8};const Xje=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Yje=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const r=t.shift();if(r){if(typeof r!="object")throw new TypeError(r+"must be non-object");for(const n in r)Xje(r,n)&&(e[n]=r[n])}}return e},Jje=e=>{let t=0;for(let n=0,i=e.length;n<i;n++)t+=e[n].length;const r=new Uint8Array(t);for(let n=0,i=0,a=e.length;n<a;n++){let o=e[n];r.set(o,i),i+=o.length}return r},cH={assign:Yje,flattenChunks:Jje};let uH=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{uH=!1}const Cg=new Uint8Array(256);for(let e=0;e<256;e++)Cg[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Cg[254]=Cg[254]=1;var Zje=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,r,n,i,a,o=e.length,s=0;for(i=0;i<o;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<o&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),s+=r<128?1:r<2048?2:r<65536?3:4;for(t=new Uint8Array(s),a=0,i=0;a<s;i++)r=e.charCodeAt(i),(r&64512)===55296&&i+1<o&&(n=e.charCodeAt(i+1),(n&64512)===56320&&(r=65536+(r-55296<<10)+(n-56320),i++)),r<128?t[a++]=r:r<2048?(t[a++]=192|r>>>6,t[a++]=128|r&63):r<65536?(t[a++]=224|r>>>12,t[a++]=128|r>>>6&63,t[a++]=128|r&63):(t[a++]=240|r>>>18,t[a++]=128|r>>>12&63,t[a++]=128|r>>>6&63,t[a++]=128|r&63);return t};const Qje=(e,t)=>{if(t<65534&&e.subarray&&uH)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let r="";for(let n=0;n<t;n++)r+=String.fromCharCode(e[n]);return r};var eLe=(e,t)=>{const r=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let n,i;const a=new Array(r*2);for(i=0,n=0;n<r;){let o=e[n++];if(o<128){a[i++]=o;continue}let s=Cg[o];if(s>4){a[i++]=65533,n+=s-1;continue}for(o&=s===2?31:s===3?15:7;s>1&&n<r;)o=o<<6|e[n++]&63,s--;if(s>1){a[i++]=65533;continue}o<65536?a[i++]=o:(o-=65536,a[i++]=55296|o>>10&1023,a[i++]=56320|o&1023)}return Qje(a,i)},tLe=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let r=t-1;for(;r>=0&&(e[r]&192)===128;)r--;return r<0||r===0?t:r+Cg[e[r]]>t?r:t},l3={string2buf:Zje,buf2string:eLe,utf8border:tLe};function rLe(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var nLe=rLe;const Lv=16209,iLe=16191;var aLe=function(t,r){let n,i,a,o,s,l,c,u,f,d,h,v,p,m,y,x,w,S,A,N,P,j,C,R;const L=t.state;n=t.next_in,C=t.input,i=n+(t.avail_in-5),a=t.next_out,R=t.output,o=a-(r-t.avail_out),s=a+(t.avail_out-257),l=L.dmax,c=L.wsize,u=L.whave,f=L.wnext,d=L.window,h=L.hold,v=L.bits,p=L.lencode,m=L.distcode,y=(1<<L.lenbits)-1,x=(1<<L.distbits)-1;e:do{v<15&&(h+=C[n++]<<v,v+=8,h+=C[n++]<<v,v+=8),w=p[h&y];t:for(;;){if(S=w>>>24,h>>>=S,v-=S,S=w>>>16&255,S===0)R[a++]=w&65535;else if(S&16){A=w&65535,S&=15,S&&(v<S&&(h+=C[n++]<<v,v+=8),A+=h&(1<<S)-1,h>>>=S,v-=S),v<15&&(h+=C[n++]<<v,v+=8,h+=C[n++]<<v,v+=8),w=m[h&x];r:for(;;){if(S=w>>>24,h>>>=S,v-=S,S=w>>>16&255,S&16){if(N=w&65535,S&=15,v<S&&(h+=C[n++]<<v,v+=8,v<S&&(h+=C[n++]<<v,v+=8)),N+=h&(1<<S)-1,N>l){t.msg="invalid distance too far back",L.mode=Lv;break e}if(h>>>=S,v-=S,S=a-o,N>S){if(S=N-S,S>u&&L.sane){t.msg="invalid distance too far back",L.mode=Lv;break e}if(P=0,j=d,f===0){if(P+=c-S,S<A){A-=S;do R[a++]=d[P++];while(--S);P=a-N,j=R}}else if(f<S){if(P+=c+f-S,S-=f,S<A){A-=S;do R[a++]=d[P++];while(--S);if(P=0,f<A){S=f,A-=S;do R[a++]=d[P++];while(--S);P=a-N,j=R}}}else if(P+=f-S,S<A){A-=S;do R[a++]=d[P++];while(--S);P=a-N,j=R}for(;A>2;)R[a++]=j[P++],R[a++]=j[P++],R[a++]=j[P++],A-=3;A&&(R[a++]=j[P++],A>1&&(R[a++]=j[P++]))}else{P=a-N;do R[a++]=R[P++],R[a++]=R[P++],R[a++]=R[P++],A-=3;while(A>2);A&&(R[a++]=R[P++],A>1&&(R[a++]=R[P++]))}}else if(S&64){t.msg="invalid distance code",L.mode=Lv;break e}else{w=m[(w&65535)+(h&(1<<S)-1)];continue r}break}}else if(S&64)if(S&32){L.mode=iLe;break e}else{t.msg="invalid literal/length code",L.mode=Lv;break e}else{w=p[(w&65535)+(h&(1<<S)-1)];continue t}break}}while(n<i&&a<s);A=v>>3,n-=A,v-=A<<3,h&=(1<<v)-1,t.next_in=n,t.next_out=a,t.avail_in=n<i?5+(i-n):5-(n-i),t.avail_out=a<s?257+(s-a):257-(a-s),L.hold=h,L.bits=v};const Ad=15,CL=852,OL=592,kL=0,CS=1,jL=2,oLe=new Uint16Array([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,0,0]),sLe=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),lLe=new Uint16Array([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,0,0]),cLe=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),uLe=(e,t,r,n,i,a,o,s)=>{const l=s.bits;let c=0,u=0,f=0,d=0,h=0,v=0,p=0,m=0,y=0,x=0,w,S,A,N,P,j=null,C;const R=new Uint16Array(Ad+1),L=new Uint16Array(Ad+1);let I=null,B,z,V;for(c=0;c<=Ad;c++)R[c]=0;for(u=0;u<n;u++)R[t[r+u]]++;for(h=l,d=Ad;d>=1&&R[d]===0;d--);if(h>d&&(h=d),d===0)return i[a++]=1<<24|64<<16|0,i[a++]=1<<24|64<<16|0,s.bits=1,0;for(f=1;f<d&&R[f]===0;f++);for(h<f&&(h=f),m=1,c=1;c<=Ad;c++)if(m<<=1,m-=R[c],m<0)return-1;if(m>0&&(e===kL||d!==1))return-1;for(L[1]=0,c=1;c<Ad;c++)L[c+1]=L[c]+R[c];for(u=0;u<n;u++)t[r+u]!==0&&(o[L[t[r+u]]++]=u);if(e===kL?(j=I=o,C=20):e===CS?(j=oLe,I=sLe,C=257):(j=lLe,I=cLe,C=0),x=0,u=0,c=f,P=a,v=h,p=0,A=-1,y=1<<h,N=y-1,e===CS&&y>CL||e===jL&&y>OL)return 1;for(;;){B=c-p,o[u]+1<C?(z=0,V=o[u]):o[u]>=C?(z=I[o[u]-C],V=j[o[u]-C]):(z=96,V=0),w=1<<c-p,S=1<<v,f=S;do S-=w,i[P+(x>>p)+S]=B<<24|z<<16|V|0;while(S!==0);for(w=1<<c-1;x&w;)w>>=1;if(w!==0?(x&=w-1,x+=w):x=0,u++,--R[c]===0){if(c===d)break;c=t[r+o[u]]}if(c>h&&(x&N)!==A){for(p===0&&(p=h),P+=f,v=c-p,m=1<<v;v+p<d&&(m-=R[v+p],!(m<=0));)v++,m<<=1;if(y+=1<<v,e===CS&&y>CL||e===jL&&y>OL)return 1;A=x&N,i[A]=h<<24|v<<16|P-a|0}}return x!==0&&(i[P+x]=c-p<<24|64<<16|0),s.bits=h,0};var hm=uLe;const fLe=0,fH=1,dH=2,{Z_FINISH:LL,Z_BLOCK:dLe,Z_TREES:Iv,Z_OK:Wf,Z_STREAM_END:hLe,Z_NEED_DICT:pLe,Z_STREAM_ERROR:Ro,Z_DATA_ERROR:hH,Z_MEM_ERROR:pH,Z_BUF_ERROR:mLe,Z_DEFLATED:IL}=lH,ow=16180,DL=16181,RL=16182,ML=16183,FL=16184,$L=16185,BL=16186,UL=16187,WL=16188,zL=16189,f2=16190,yl=16191,OS=16192,HL=16193,kS=16194,VL=16195,GL=16196,qL=16197,KL=16198,Dv=16199,Rv=16200,XL=16201,YL=16202,JL=16203,ZL=16204,QL=16205,jS=16206,eI=16207,tI=16208,ln=16209,mH=16210,gH=16211,gLe=852,vLe=592,yLe=15,xLe=yLe,rI=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function bLe(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const rd=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<ow||t.mode>gH?1:0},vH=e=>{if(rd(e))return Ro;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=ow,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(gLe),t.distcode=t.distdyn=new Int32Array(vLe),t.sane=1,t.back=-1,Wf},yH=e=>{if(rd(e))return Ro;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,vH(e)},xH=(e,t)=>{let r;if(rd(e))return Ro;const n=e.state;return t<0?(r=0,t=-t):(r=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Ro:(n.window!==null&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,yH(e))},bH=(e,t)=>{if(!e)return Ro;const r=new bLe;e.state=r,r.strm=e,r.window=null,r.mode=ow;const n=xH(e,t);return n!==Wf&&(e.state=null),n},wLe=e=>bH(e,xLe);let nI=!0,LS,IS;const SLe=e=>{if(nI){LS=new Int32Array(512),IS=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(hm(fH,e.lens,0,288,LS,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;hm(dH,e.lens,0,32,IS,0,e.work,{bits:5}),nI=!1}e.lencode=LS,e.lenbits=9,e.distcode=IS,e.distbits=5},wH=(e,t,r,n)=>{let i;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),n>=a.wsize?(a.window.set(t.subarray(r-a.wsize,r),0),a.wnext=0,a.whave=a.wsize):(i=a.wsize-a.wnext,i>n&&(i=n),a.window.set(t.subarray(r-n,r-n+i),a.wnext),n-=i,n?(a.window.set(t.subarray(r-n,r),0),a.wnext=n,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},_Le=(e,t)=>{let r,n,i,a,o,s,l,c,u,f,d,h,v,p,m=0,y,x,w,S,A,N,P,j;const C=new Uint8Array(4);let R,L;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(rd(e)||!e.output||!e.input&&e.avail_in!==0)return Ro;r=e.state,r.mode===yl&&(r.mode=OS),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,f=s,d=l,j=Wf;e:for(;;)switch(r.mode){case ow:if(r.wrap===0){r.mode=OS;break}for(;u<16;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if(r.wrap&2&&c===35615){r.wbits===0&&(r.wbits=15),r.check=0,C[0]=c&255,C[1]=c>>>8&255,r.check=Os(r.check,C,2,0),c=0,u=0,r.mode=DL;break}if(r.head&&(r.head.done=!1),!(r.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",r.mode=ln;break}if((c&15)!==IL){e.msg="unknown compression method",r.mode=ln;break}if(c>>>=4,u-=4,P=(c&15)+8,r.wbits===0&&(r.wbits=P),P>15||P>r.wbits){e.msg="invalid window size",r.mode=ln;break}r.dmax=1<<r.wbits,r.flags=0,e.adler=r.check=1,r.mode=c&512?zL:yl,c=0,u=0;break;case DL:for(;u<16;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if(r.flags=c,(r.flags&255)!==IL){e.msg="unknown compression method",r.mode=ln;break}if(r.flags&57344){e.msg="unknown header flags set",r.mode=ln;break}r.head&&(r.head.text=c>>8&1),r.flags&512&&r.wrap&4&&(C[0]=c&255,C[1]=c>>>8&255,r.check=Os(r.check,C,2,0)),c=0,u=0,r.mode=RL;case RL:for(;u<32;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}r.head&&(r.head.time=c),r.flags&512&&r.wrap&4&&(C[0]=c&255,C[1]=c>>>8&255,C[2]=c>>>16&255,C[3]=c>>>24&255,r.check=Os(r.check,C,4,0)),c=0,u=0,r.mode=ML;case ML:for(;u<16;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}r.head&&(r.head.xflags=c&255,r.head.os=c>>8),r.flags&512&&r.wrap&4&&(C[0]=c&255,C[1]=c>>>8&255,r.check=Os(r.check,C,2,0)),c=0,u=0,r.mode=FL;case FL:if(r.flags&1024){for(;u<16;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}r.length=c,r.head&&(r.head.extra_len=c),r.flags&512&&r.wrap&4&&(C[0]=c&255,C[1]=c>>>8&255,r.check=Os(r.check,C,2,0)),c=0,u=0}else r.head&&(r.head.extra=null);r.mode=$L;case $L:if(r.flags&1024&&(h=r.length,h>s&&(h=s),h&&(r.head&&(P=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Uint8Array(r.head.extra_len)),r.head.extra.set(n.subarray(a,a+h),P)),r.flags&512&&r.wrap&4&&(r.check=Os(r.check,n,h,a)),s-=h,a+=h,r.length-=h),r.length))break e;r.length=0,r.mode=BL;case BL:if(r.flags&2048){if(s===0)break e;h=0;do P=n[a+h++],r.head&&P&&r.length<65536&&(r.head.name+=String.fromCharCode(P));while(P&&h<s);if(r.flags&512&&r.wrap&4&&(r.check=Os(r.check,n,h,a)),s-=h,a+=h,P)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=UL;case UL:if(r.flags&4096){if(s===0)break e;h=0;do P=n[a+h++],r.head&&P&&r.length<65536&&(r.head.comment+=String.fromCharCode(P));while(P&&h<s);if(r.flags&512&&r.wrap&4&&(r.check=Os(r.check,n,h,a)),s-=h,a+=h,P)break e}else r.head&&(r.head.comment=null);r.mode=WL;case WL:if(r.flags&512){for(;u<16;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if(r.wrap&4&&c!==(r.check&65535)){e.msg="header crc mismatch",r.mode=ln;break}c=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=yl;break;case zL:for(;u<32;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}e.adler=r.check=rI(c),c=0,u=0,r.mode=f2;case f2:if(r.havedict===0)return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=u,pLe;e.adler=r.check=1,r.mode=yl;case yl:if(t===dLe||t===Iv)break e;case OS:if(r.last){c>>>=u&7,u-=u&7,r.mode=jS;break}for(;u<3;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}switch(r.last=c&1,c>>>=1,u-=1,c&3){case 0:r.mode=HL;break;case 1:if(SLe(r),r.mode=Dv,t===Iv){c>>>=2,u-=2;break e}break;case 2:r.mode=GL;break;case 3:e.msg="invalid block type",r.mode=ln}c>>>=2,u-=2;break;case HL:for(c>>>=u&7,u-=u&7;u<32;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",r.mode=ln;break}if(r.length=c&65535,c=0,u=0,r.mode=kS,t===Iv)break e;case kS:r.mode=VL;case VL:if(h=r.length,h){if(h>s&&(h=s),h>l&&(h=l),h===0)break e;i.set(n.subarray(a,a+h),o),s-=h,a+=h,l-=h,o+=h,r.length-=h;break}r.mode=yl;break;case GL:for(;u<14;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if(r.nlen=(c&31)+257,c>>>=5,u-=5,r.ndist=(c&31)+1,c>>>=5,u-=5,r.ncode=(c&15)+4,c>>>=4,u-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=ln;break}r.have=0,r.mode=qL;case qL:for(;r.have<r.ncode;){for(;u<3;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}r.lens[I[r.have++]]=c&7,c>>>=3,u-=3}for(;r.have<19;)r.lens[I[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},j=hm(fLe,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,j){e.msg="invalid code lengths set",r.mode=ln;break}r.have=0,r.mode=KL;case KL:for(;r.have<r.nlen+r.ndist;){for(;m=r.lencode[c&(1<<r.lenbits)-1],y=m>>>24,x=m>>>16&255,w=m&65535,!(y<=u);){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if(w<16)c>>>=y,u-=y,r.lens[r.have++]=w;else{if(w===16){for(L=y+2;u<L;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if(c>>>=y,u-=y,r.have===0){e.msg="invalid bit length repeat",r.mode=ln;break}P=r.lens[r.have-1],h=3+(c&3),c>>>=2,u-=2}else if(w===17){for(L=y+3;u<L;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}c>>>=y,u-=y,P=0,h=3+(c&7),c>>>=3,u-=3}else{for(L=y+7;u<L;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}c>>>=y,u-=y,P=0,h=11+(c&127),c>>>=7,u-=7}if(r.have+h>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=ln;break}for(;h--;)r.lens[r.have++]=P}}if(r.mode===ln)break;if(r.lens[256]===0){e.msg="invalid code -- missing end-of-block",r.mode=ln;break}if(r.lenbits=9,R={bits:r.lenbits},j=hm(fH,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,j){e.msg="invalid literal/lengths set",r.mode=ln;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},j=hm(dH,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,j){e.msg="invalid distances set",r.mode=ln;break}if(r.mode=Dv,t===Iv)break e;case Dv:r.mode=Rv;case Rv:if(s>=6&&l>=258){e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=u,aLe(e,d),o=e.next_out,i=e.output,l=e.avail_out,a=e.next_in,n=e.input,s=e.avail_in,c=r.hold,u=r.bits,r.mode===yl&&(r.back=-1);break}for(r.back=0;m=r.lencode[c&(1<<r.lenbits)-1],y=m>>>24,x=m>>>16&255,w=m&65535,!(y<=u);){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if(x&&!(x&240)){for(S=y,A=x,N=w;m=r.lencode[N+((c&(1<<S+A)-1)>>S)],y=m>>>24,x=m>>>16&255,w=m&65535,!(S+y<=u);){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}c>>>=S,u-=S,r.back+=S}if(c>>>=y,u-=y,r.back+=y,r.length=w,x===0){r.mode=QL;break}if(x&32){r.back=-1,r.mode=yl;break}if(x&64){e.msg="invalid literal/length code",r.mode=ln;break}r.extra=x&15,r.mode=XL;case XL:if(r.extra){for(L=r.extra;u<L;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}r.length+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=YL;case YL:for(;m=r.distcode[c&(1<<r.distbits)-1],y=m>>>24,x=m>>>16&255,w=m&65535,!(y<=u);){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if(!(x&240)){for(S=y,A=x,N=w;m=r.distcode[N+((c&(1<<S+A)-1)>>S)],y=m>>>24,x=m>>>16&255,w=m&65535,!(S+y<=u);){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}c>>>=S,u-=S,r.back+=S}if(c>>>=y,u-=y,r.back+=y,x&64){e.msg="invalid distance code",r.mode=ln;break}r.offset=w,r.extra=x&15,r.mode=JL;case JL:if(r.extra){for(L=r.extra;u<L;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}r.offset+=c&(1<<r.extra)-1,c>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=ln;break}r.mode=ZL;case ZL:if(l===0)break e;if(h=d-l,r.offset>h){if(h=r.offset-h,h>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=ln;break}h>r.wnext?(h-=r.wnext,v=r.wsize-h):v=r.wnext-h,h>r.length&&(h=r.length),p=r.window}else p=i,v=o-r.offset,h=r.length;h>l&&(h=l),l-=h,r.length-=h;do i[o++]=p[v++];while(--h);r.length===0&&(r.mode=Rv);break;case QL:if(l===0)break e;i[o++]=r.length,l--,r.mode=Rv;break;case jS:if(r.wrap){for(;u<32;){if(s===0)break e;s--,c|=n[a++]<<u,u+=8}if(d-=l,e.total_out+=d,r.total+=d,r.wrap&4&&d&&(e.adler=r.check=r.flags?Os(r.check,i,d,o-d):o3(r.check,i,d,o-d)),d=l,r.wrap&4&&(r.flags?c:rI(c))!==r.check){e.msg="incorrect data check",r.mode=ln;break}c=0,u=0}r.mode=eI;case eI:if(r.wrap&&r.flags){for(;u<32;){if(s===0)break e;s--,c+=n[a++]<<u,u+=8}if(r.wrap&4&&c!==(r.total&4294967295)){e.msg="incorrect length check",r.mode=ln;break}c=0,u=0}r.mode=tI;case tI:j=hLe;break e;case ln:j=hH;break e;case mH:return pH;case gH:default:return Ro}return e.next_out=o,e.avail_out=l,e.next_in=a,e.avail_in=s,r.hold=c,r.bits=u,(r.wsize||d!==e.avail_out&&r.mode<ln&&(r.mode<jS||t!==LL))&&wH(e,e.output,e.next_out,d-e.avail_out),f-=e.avail_in,d-=e.avail_out,e.total_in+=f,e.total_out+=d,r.total+=d,r.wrap&4&&d&&(e.adler=r.check=r.flags?Os(r.check,i,d,e.next_out-d):o3(r.check,i,d,e.next_out-d)),e.data_type=r.bits+(r.last?64:0)+(r.mode===yl?128:0)+(r.mode===Dv||r.mode===kS?256:0),(f===0&&d===0||t===LL)&&j===Wf&&(j=mLe),j},ALe=e=>{if(rd(e))return Ro;let t=e.state;return t.window&&(t.window=null),e.state=null,Wf},ELe=(e,t)=>{if(rd(e))return Ro;const r=e.state;return r.wrap&2?(r.head=t,t.done=!1,Wf):Ro},NLe=(e,t)=>{const r=t.length;let n,i,a;return rd(e)||(n=e.state,n.wrap!==0&&n.mode!==f2)?Ro:n.mode===f2&&(i=1,i=o3(i,t,r,0),i!==n.check)?hH:(a=wH(e,t,r,r),a?(n.mode=mH,pH):(n.havedict=1,Wf))};var PLe=yH,TLe=xH,CLe=vH,OLe=wLe,kLe=bH,jLe=_Le,LLe=ALe,ILe=ELe,DLe=NLe,RLe="pako inflate (from Nodeca project)",Sl={inflateReset:PLe,inflateReset2:TLe,inflateResetKeep:CLe,inflateInit:OLe,inflateInit2:kLe,inflate:jLe,inflateEnd:LLe,inflateGetHeader:ILe,inflateSetDictionary:DLe,inflateInfo:RLe};function MLe(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var FLe=MLe;const SH=Object.prototype.toString,{Z_NO_FLUSH:$Le,Z_FINISH:BLe,Z_OK:Og,Z_STREAM_END:DS,Z_NEED_DICT:RS,Z_STREAM_ERROR:ULe,Z_DATA_ERROR:iI,Z_MEM_ERROR:WLe}=lH;function l1(e){this.options=cH.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nLe,this.strm.avail_out=0;let r=Sl.inflateInit2(this.strm,t.windowBits);if(r!==Og)throw new Error(s3[r]);if(this.header=new FLe,Sl.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=l3.string2buf(t.dictionary):SH.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=Sl.inflateSetDictionary(this.strm,t.dictionary),r!==Og)))throw new Error(s3[r])}l1.prototype.push=function(e,t){const r=this.strm,n=this.options.chunkSize,i=this.options.dictionary;let a,o,s;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?BLe:$Le,SH.call(e)==="[object ArrayBuffer]"?r.input=new Uint8Array(e):r.input=e,r.next_in=0,r.avail_in=r.input.length;;){for(r.avail_out===0&&(r.output=new Uint8Array(n),r.next_out=0,r.avail_out=n),a=Sl.inflate(r,o),a===RS&&i&&(a=Sl.inflateSetDictionary(r,i),a===Og?a=Sl.inflate(r,o):a===iI&&(a=RS));r.avail_in>0&&a===DS&&r.state.wrap>0&&e[r.next_in]!==0;)Sl.inflateReset(r),a=Sl.inflate(r,o);switch(a){case ULe:case iI:case RS:case WLe:return this.onEnd(a),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(r.avail_out===0||a===DS))if(this.options.to==="string"){let l=l3.utf8border(r.output,r.next_out),c=r.next_out-l,u=l3.buf2string(r.output,l);r.next_out=c,r.avail_out=n-c,c&&r.output.set(r.output.subarray(l,l+c),0),this.onData(u)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out));if(!(a===Og&&s===0)){if(a===DS)return a=Sl.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(r.avail_in===0)break}}return!0};l1.prototype.onData=function(e){this.chunks.push(e)};l1.prototype.onEnd=function(e){e===Og&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=cH.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function zLe(e,t){const r=new l1(t);if(r.push(e),r.err)throw r.msg||s3[r.err];return r.result}var HLe=l1,VLe=zLe,GLe={Inflate:HLe,inflate:VLe};const{Inflate:qLe,inflate:KLe}=GLe;var aI=qLe,XLe=KLe;const _H=[];for(let e=0;e<256;e++){let t=e;for(let r=0;r<8;r++)t&1?t=3988292384^t>>>1:t=t>>>1;_H[e]=t}const oI=4294967295;function YLe(e,t,r){let n=e;for(let i=0;i<r;i++)n=_H[(n^t[i])&255]^n>>>8;return n}function JLe(e,t){return(YLe(oI,e,t)^oI)>>>0}function sI(e,t,r){const n=e.readUint32(),i=JLe(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(i!==n)throw new Error(`CRC mismatch for chunk ${r}. Expected ${n}, found ${i}`)}function AH(e,t,r){for(let n=0;n<r;n++)t[n]=e[n]}function EH(e,t,r,n){let i=0;for(;i<n;i++)t[i]=e[i];for(;i<r;i++)t[i]=e[i]+t[i-n]&255}function NH(e,t,r,n){let i=0;if(r.length===0)for(;i<n;i++)t[i]=e[i];else for(;i<n;i++)t[i]=e[i]+r[i]&255}function PH(e,t,r,n,i){let a=0;if(r.length===0){for(;a<i;a++)t[a]=e[a];for(;a<n;a++)t[a]=e[a]+(t[a-i]>>1)&255}else{for(;a<i;a++)t[a]=e[a]+(r[a]>>1)&255;for(;a<n;a++)t[a]=e[a]+(t[a-i]+r[a]>>1)&255}}function TH(e,t,r,n,i){let a=0;if(r.length===0){for(;a<i;a++)t[a]=e[a];for(;a<n;a++)t[a]=e[a]+t[a-i]&255}else{for(;a<i;a++)t[a]=e[a]+r[a]&255;for(;a<n;a++)t[a]=e[a]+ZLe(t[a-i],r[a],r[a-i])&255}}function ZLe(e,t,r){const n=e+t-r,i=Math.abs(n-e),a=Math.abs(n-t),o=Math.abs(n-r);return i<=a&&i<=o?e:a<=o?t:r}function QLe(e,t,r,n,i,a){switch(e){case 0:AH(t,r,i);break;case 1:EH(t,r,i,a);break;case 2:NH(t,r,n,i);break;case 3:PH(t,r,n,i,a);break;case 4:TH(t,r,n,i,a);break;default:throw new Error(`Unsupported filter: ${e}`)}}const eIe=new Uint16Array([255]),tIe=new Uint8Array(eIe.buffer),rIe=tIe[0]===255;function nIe(e){const{data:t,width:r,height:n,channels:i,depth:a}=e,o=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],s=Math.ceil(a/8)*i,l=new Uint8Array(n*r*s);let c=0;for(let u=0;u<7;u++){const f=o[u],d=Math.ceil((r-f.x)/f.xStep),h=Math.ceil((n-f.y)/f.yStep);if(d<=0||h<=0)continue;const v=d*s,p=new Uint8Array(v);for(let m=0;m<h;m++){const y=t[c++],x=t.subarray(c,c+v);c+=v;const w=new Uint8Array(v);QLe(y,x,w,p,v,s),p.set(w);for(let S=0;S<d;S++){const A=f.x+S*f.xStep,N=f.y+m*f.yStep;if(!(A>=r||N>=n))for(let P=0;P<s;P++)l[(N*r+A)*s+P]=w[S*s+P]}}}if(a===16){const u=new Uint16Array(l.buffer);if(rIe)for(let f=0;f<u.length;f++)u[f]=iIe(u[f]);return u}else return l}function iIe(e){return(e&255)<<8|e>>8&255}const aIe=new Uint16Array([255]),oIe=new Uint8Array(aIe.buffer),sIe=oIe[0]===255,lIe=new Uint8Array(0);function lI(e){const{data:t,width:r,height:n,channels:i,depth:a}=e,o=Math.ceil(a/8)*i,s=Math.ceil(a/8*i*r),l=new Uint8Array(n*s);let c=lIe,u=0,f,d;for(let h=0;h<n;h++){switch(f=t.subarray(u+1,u+1+s),d=l.subarray(h*s,(h+1)*s),t[u]){case 0:AH(f,d,s);break;case 1:EH(f,d,s,o);break;case 2:NH(f,d,c,s);break;case 3:PH(f,d,c,s,o);break;case 4:TH(f,d,c,s,o);break;default:throw new Error(`Unsupported filter: ${t[u]}`)}c=d,u+=s+1}if(a===16){const h=new Uint16Array(l.buffer);if(sIe)for(let v=0;v<h.length;v++)h[v]=cIe(h[v]);return h}else return l}function cIe(e){return(e&255)<<8|e>>8&255}const sy=Uint8Array.of(137,80,78,71,13,10,26,10);function cI(e){if(!uIe(e.readBytes(sy.length)))throw new Error("wrong PNG signature")}function uIe(e){if(e.length<sy.length)return!1;for(let t=0;t<sy.length;t++)if(e[t]!==sy[t])return!1;return!0}const fIe="tEXt",dIe=0,CH=new TextDecoder("latin1");function hIe(e){if(mIe(e),e.length===0||e.length>79)throw new Error("keyword length must be between 1 and 79")}const pIe=/^[\u0000-\u00FF]*$/;function mIe(e){if(!pIe.test(e))throw new Error("invalid latin1 text")}function gIe(e,t,r){const n=OH(t);e[n]=vIe(t,r-n.length-1)}function OH(e){for(e.mark();e.readByte()!==dIe;);const t=e.offset;e.reset();const r=CH.decode(e.readBytes(t-e.offset-1));return e.skip(1),hIe(r),r}function vIe(e,t){return CH.decode(e.readBytes(t))}const Ba={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},MS={UNKNOWN:-1,DEFLATE:0},uI={UNKNOWN:-1,ADAPTIVE:0},FS={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Mv={NONE:0,BACKGROUND:1,PREVIOUS:2},$S={SOURCE:0,OVER:1};class yIe extends EP{constructor(r,n={}){super(r);Ar(this,"_checkCrc");Ar(this,"_inflator");Ar(this,"_png");Ar(this,"_apng");Ar(this,"_end");Ar(this,"_hasPalette");Ar(this,"_palette");Ar(this,"_hasTransparency");Ar(this,"_transparency");Ar(this,"_compressionMethod");Ar(this,"_filterMethod");Ar(this,"_interlaceMethod");Ar(this,"_colorType");Ar(this,"_isAnimated");Ar(this,"_numberOfFrames");Ar(this,"_numberOfPlays");Ar(this,"_frames");Ar(this,"_writingDataChunks");const{checkCrc:i=!1}=n;this._checkCrc=i,this._inflator=new aI,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=MS.UNKNOWN,this._filterMethod=uI.UNKNOWN,this._interlaceMethod=FS.UNKNOWN,this._colorType=Ba.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(cI(this);!this._end;){const r=this.readUint32(),n=this.readChars(4);this.decodeChunk(r,n)}return this.decodeImage(),this._png}decodeApng(){for(cI(this);!this._end;){const r=this.readUint32(),n=this.readChars(4);this.decodeApngChunk(r,n)}return this.decodeApngImage(),this._apng}decodeChunk(r,n){const i=this.offset;switch(n){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(r);break;case"IDAT":this.decodeIDAT(r);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(r);break;case"iCCP":this.decodeiCCP(r);break;case fIe:gIe(this._png.text,this,r);break;case"pHYs":this.decodepHYs();break;default:this.skip(r);break}if(this.offset-i!==r)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?sI(this,r+4,n):this.skip(4)}decodeApngChunk(r,n){const i=this.offset;switch(n!=="fdAT"&&n!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),n){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(r);break;default:this.decodeChunk(r,n),this.offset=i+r;break}if(this.offset-i!==r)throw new Error(`Length mismatch while decoding chunk ${n}`);this._checkCrc?sI(this,r+4,n):this.skip(4)}decodeIHDR(){const r=this._png;r.width=this.readUint32(),r.height=this.readUint32(),r.depth=xIe(this.readUint8());const n=this.readUint8();this._colorType=n;let i;switch(n){case Ba.GREYSCALE:i=1;break;case Ba.TRUECOLOUR:i=3;break;case Ba.INDEXED_COLOUR:i=1;break;case Ba.GREYSCALE_ALPHA:i=2;break;case Ba.TRUECOLOUR_ALPHA:i=4;break;case Ba.UNKNOWN:default:throw new Error(`Unknown color type: ${n}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==MS.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const r={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(r)}decodePLTE(r){if(r%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${r}`);const n=r/3;this._hasPalette=!0;const i=[];this._palette=i;for(let a=0;a<n;a++)i.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(r){this._writingDataChunks=!0;const n=r,i=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(r)}decodeFDAT(r){this._writingDataChunks=!0;let n=r,i=this.offset+this.byteOffset;if(i+=4,n-=4,this._inflator.push(new Uint8Array(this.buffer,i,n)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(r)}decodetRNS(r){switch(this._colorType){case Ba.GREYSCALE:case Ba.TRUECOLOUR:{if(r%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${r}`);if(r/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${r/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(r/2);for(let n=0;n<r/2;n++)this._transparency[n]=this.readUint16();break}case Ba.INDEXED_COLOUR:{if(r>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${r} vs ${this._palette.length})`);let n=0;for(;n<r;n++){const i=this.readByte();this._palette[n].push(i)}for(;n<this._palette.length;n++)this._palette[n].push(255);break}case Ba.UNKNOWN:case Ba.GREYSCALE_ALPHA:case Ba.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(r){const n=OH(this),i=this.readUint8();if(i!==MS.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${i}`);const a=this.readBytes(r-n.length-2);this._png.iccEmbeddedProfile={name:n,profile:XLe(a)}}decodepHYs(){const r=this.readUint32(),n=this.readUint32(),i=this.readByte();this._png.resolution={x:r,y:n,unit:i}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let r=0;r<this._numberOfFrames;r++){const n={sequenceNumber:this._frames[r].sequenceNumber,delayNumber:this._frames[r].delayNumber,delayDenominator:this._frames[r].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},i=this._frames.at(r);if(i){if(i.data=lI({data:i.data,width:i.width,height:i.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),r===0||i.xOffset===0&&i.yOffset===0&&i.width===this._png.width&&i.height===this._png.height)n.data=i.data;else{const a=this._apng.frames.at(r-1);this.disposeFrame(i,a,n),this.addFrameDataToCanvas(n,i)}this._apng.frames.push(n)}}return this._apng}disposeFrame(r,n,i){switch(r.disposeOp){case Mv.NONE:break;case Mv.BACKGROUND:for(let a=0;a<this._png.height;a++)for(let o=0;o<this._png.width;o++){const s=(a*r.width+o)*this._png.channels;for(let l=0;l<this._png.channels;l++)i.data[s+l]=0}break;case Mv.PREVIOUS:i.data.set(n.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(r,n){const i=1<<this._png.depth,a=(o,s)=>{const l=((o+n.yOffset)*this._png.width+n.xOffset+s)*this._png.channels,c=(o*n.width+s)*this._png.channels;return{index:l,frameIndex:c}};switch(n.blendOp){case $S.SOURCE:for(let o=0;o<n.height;o++)for(let s=0;s<n.width;s++){const{index:l,frameIndex:c}=a(o,s);for(let u=0;u<this._png.channels;u++)r.data[l+u]=n.data[c+u]}break;case $S.OVER:for(let o=0;o<n.height;o++)for(let s=0;s<n.width;s++){const{index:l,frameIndex:c}=a(o,s);for(let u=0;u<this._png.channels;u++){const f=n.data[c+this._png.channels-1]/i,d=u%(this._png.channels-1)===0?1:n.data[c+u],h=Math.floor(f*d+(1-f)*r.data[l+u]);r.data[l+u]+=h}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var n;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const r=this._isAnimated?((n=this._frames)==null?void 0:n.at(0)).data:this._inflator.result;if(this._filterMethod!==uI.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===FS.NO_INTERLACE)this._png.data=lI({data:r,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===FS.ADAM7)this._png.data=nIe({data:r,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const r=this._inflator.result,n=this._frames.at(-1);n?n.data=r:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Mv.NONE,blendOp:$S.SOURCE,data:r}),this._inflator=new aI,this._writingDataChunks=!1}}function xIe(e){if(e!==1&&e!==2&&e!==4&&e!==8&&e!==16)throw new Error(`invalid bit depth: ${e}`);return e}var fI;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.METRE=1]="METRE"})(fI||(fI={}));function bIe(e,t){return new yIe(e,t).decode()}var jt=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function BS(){jt.console&&typeof jt.console.log=="function"&&jt.console.log.apply(jt.console,arguments)}var Fr={log:BS,warn:function(e){jt.console&&(typeof jt.console.warn=="function"?jt.console.warn.apply(jt.console,arguments):BS.call(null,arguments))},error:function(e){jt.console&&(typeof jt.console.error=="function"?jt.console.error.apply(jt.console,arguments):BS(e))}};function US(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Ju(n.response,t,r)},n.onerror=function(){Fr.error("could not download file")},n.send()}function dI(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Fv(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Ju=jt.saveAs||((typeof window>"u"?"undefined":pr(window))!=="object"||window!==jt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=jt.URL||jt.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?dI(i.href)?US(e,t,r):Fv(i,i.target="_blank"):Fv(i)):(i.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){Fv(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(dI(e))US(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){Fv(n)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:pr(a)!=="object"&&(Fr.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return US(e,t,r);var i=e.type==="application/octet-stream",a=/constructor/i.test(jt.HTMLElement)||jt.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":pr(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(e)}else{var l=jt.URL||jt.webkitURL,c=l.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov <sstoo@gmail.com> * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function kH(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(e);o&&(t=a(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}var ly=jt.atob.bind(jt),hI=jt.btoa.bind(jt);/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function WS(e,t){var r=e[0],n=e[1],i=e[2],a=e[3];r=Wi(r,n,i,a,t[0],7,-680876936),a=Wi(a,r,n,i,t[1],12,-389564586),i=Wi(i,a,r,n,t[2],17,606105819),n=Wi(n,i,a,r,t[3],22,-1044525330),r=Wi(r,n,i,a,t[4],7,-176418897),a=Wi(a,r,n,i,t[5],12,1200080426),i=Wi(i,a,r,n,t[6],17,-1473231341),n=Wi(n,i,a,r,t[7],22,-45705983),r=Wi(r,n,i,a,t[8],7,1770035416),a=Wi(a,r,n,i,t[9],12,-1958414417),i=Wi(i,a,r,n,t[10],17,-42063),n=Wi(n,i,a,r,t[11],22,-1990404162),r=Wi(r,n,i,a,t[12],7,1804603682),a=Wi(a,r,n,i,t[13],12,-40341101),i=Wi(i,a,r,n,t[14],17,-1502002290),r=zi(r,n=Wi(n,i,a,r,t[15],22,1236535329),i,a,t[1],5,-165796510),a=zi(a,r,n,i,t[6],9,-1069501632),i=zi(i,a,r,n,t[11],14,643717713),n=zi(n,i,a,r,t[0],20,-373897302),r=zi(r,n,i,a,t[5],5,-701558691),a=zi(a,r,n,i,t[10],9,38016083),i=zi(i,a,r,n,t[15],14,-660478335),n=zi(n,i,a,r,t[4],20,-405537848),r=zi(r,n,i,a,t[9],5,568446438),a=zi(a,r,n,i,t[14],9,-1019803690),i=zi(i,a,r,n,t[3],14,-187363961),n=zi(n,i,a,r,t[8],20,1163531501),r=zi(r,n,i,a,t[13],5,-1444681467),a=zi(a,r,n,i,t[2],9,-51403784),i=zi(i,a,r,n,t[7],14,1735328473),r=Hi(r,n=zi(n,i,a,r,t[12],20,-1926607734),i,a,t[5],4,-378558),a=Hi(a,r,n,i,t[8],11,-2022574463),i=Hi(i,a,r,n,t[11],16,1839030562),n=Hi(n,i,a,r,t[14],23,-35309556),r=Hi(r,n,i,a,t[1],4,-1530992060),a=Hi(a,r,n,i,t[4],11,1272893353),i=Hi(i,a,r,n,t[7],16,-155497632),n=Hi(n,i,a,r,t[10],23,-1094730640),r=Hi(r,n,i,a,t[13],4,681279174),a=Hi(a,r,n,i,t[0],11,-358537222),i=Hi(i,a,r,n,t[3],16,-722521979),n=Hi(n,i,a,r,t[6],23,76029189),r=Hi(r,n,i,a,t[9],4,-640364487),a=Hi(a,r,n,i,t[12],11,-421815835),i=Hi(i,a,r,n,t[15],16,530742520),r=Vi(r,n=Hi(n,i,a,r,t[2],23,-995338651),i,a,t[0],6,-198630844),a=Vi(a,r,n,i,t[7],10,1126891415),i=Vi(i,a,r,n,t[14],15,-1416354905),n=Vi(n,i,a,r,t[5],21,-57434055),r=Vi(r,n,i,a,t[12],6,1700485571),a=Vi(a,r,n,i,t[3],10,-1894986606),i=Vi(i,a,r,n,t[10],15,-1051523),n=Vi(n,i,a,r,t[1],21,-2054922799),r=Vi(r,n,i,a,t[8],6,1873313359),a=Vi(a,r,n,i,t[15],10,-30611744),i=Vi(i,a,r,n,t[6],15,-1560198380),n=Vi(n,i,a,r,t[13],21,1309151649),r=Vi(r,n,i,a,t[4],6,-145523070),a=Vi(a,r,n,i,t[11],10,-1120210379),i=Vi(i,a,r,n,t[2],15,718787259),n=Vi(n,i,a,r,t[9],21,-343485551),e[0]=Uc(r,e[0]),e[1]=Uc(n,e[1]),e[2]=Uc(i,e[2]),e[3]=Uc(a,e[3])}function sw(e,t,r,n,i,a){return t=Uc(Uc(t,e),Uc(n,a)),Uc(t<<i|t>>>32-i,r)}function Wi(e,t,r,n,i,a,o){return sw(t&r|~t&n,e,t,i,a,o)}function zi(e,t,r,n,i,a,o){return sw(t&n|r&~n,e,t,i,a,o)}function Hi(e,t,r,n,i,a,o){return sw(t^r^n,e,t,i,a,o)}function Vi(e,t,r,n,i,a,o){return sw(r^(t|~n),e,t,i,a,o)}function jH(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)WS(n,wIe(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(WS(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,WS(n,i),n}function wIe(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}var pI="0123456789abcdef".split("");function SIe(e){for(var t="",r=0;r<4;r++)t+=pI[e>>8*r+4&15]+pI[e>>8*r&15];return t}function _Ie(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function c3(e){return jH(e).map(_Ie).join("")}var AIe=function(e){for(var t=0;t<e.length;t++)e[t]=SIe(e[t]);return e.join("")}(jH("hello"))!="5d41402abc4b2a76b9719d911017c592";function Uc(e,t){if(AIe){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function u3(e,t){var r,n,i,a;if(e!==r){for(var o=(i=e,a=1+(256/e.length|0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}r=e,n=s}else s=n;var f=t.length,d=0,h=0,v="";for(l=0;l<f;l++)h=(h+(u=s[d=(d+1)%256]))%256,s[d]=s[h],s[h]=u,o=s[(s[d]+s[h])%256],v+=String.fromCharCode(t.charCodeAt(l)^o);return v}/** * @license * Licensed under the MIT License. * http://opensource.org/licenses/mit-license * Author: Owen Leong (@owenl131) * Date: 15 Oct 2020 * References: * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt * https://github.com/foliojs/pdfkit/blob/master/lib/security.js * http://www.fpdf.org/en/script/script37.php */var mI={print:4,modify:8,copy:16,"annot-forms":32};function Td(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach(function(s){if(mI.perm!==void 0)throw new Error("Invalid permission: "+s);i+=mI[s]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var a=(t+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=c3(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=u3(this.encryptionKey,this.padding)}function Cd(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);t+=i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?"#"+("0"+i.toString(16)).slice(-2):e[n]}return t}function gI(e){if(pr(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var a=Math.random().toString(35);return t[r][a]=[n,!!i],a},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[r]){var o=t[r][a];try{o[0].apply(e,n)}catch(s){jt.console&&Fr.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function d2(e){if(!(this instanceof d2))return new d2(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function LH(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function tf(e,t,r,n,i){if(!(this instanceof tf))return new tf(e,t,r,n,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,LH.call(this,n,i)}function Xd(e,t,r,n,i){if(!(this instanceof Xd))return new Xd(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,LH.call(this,n,i)}function bt(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,l=16,c="S",u=null;pr(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,a=e.compress||e.compressPdf||a,(u=e.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var f=e.putOnlyUsedFonts||!1,d={},h={internal:{},__private__:{}};h.__private__.PubSub=gI;var v="1.3",p=h.__private__.getPdfVersion=function(){return v};h.__private__.setPdfVersion=function(T){v=T};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return m};var y=h.__private__.getPageFormat=function(T){return m[T]};i=i||"a4";var x="compat",w="advanced",S=x;function A(){this.saveGraphicsState(),Y(new Pt(Rt,0,0,-Rt,0,ku()*Rt).toString()+" cm"),this.setFontSize(this.getFontSize()/Rt),c="n",S=w}function N(){this.restoreGraphicsState(),c="S",S=x}var P=h.__private__.combineFontStyleAndFontWeight=function(T,W){if(T=="bold"&&W=="normal"||T=="bold"&&W==400||T=="normal"&&W=="italic"||T=="bold"&&W=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return W&&(T=W==400||W==="normal"?T==="italic"?"italic":"normal":W!=700&&W!=="bold"||T!=="normal"?(W==700?"bold":W)+""+T:"bold"),T};h.advancedAPI=function(T){var W=S===x;return W&&A.call(this),typeof T!="function"||(T(this),W&&N.call(this)),this},h.compatAPI=function(T){var W=S===w;return W&&N.call(this),typeof T!="function"||(T(this),W&&A.call(this)),this},h.isAdvancedAPI=function(){return S===w};var j,C=function(T){if(S!==w)throw new Error(T+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},R=h.roundToPrecision=h.__private__.roundToPrecision=function(T,W){var de=t||W;if(isNaN(T)||isNaN(de))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return T.toFixed(de).replace(/0+$/,"")};j=h.hpf=h.__private__.hpf=typeof l=="number"?function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.hpf");return R(T,l)}:l==="smart"?function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.hpf");return R(T,T>-1&&T<1?16:5)}:function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.hpf");return R(T,16)};var L=h.f2=h.__private__.f2=function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.f2");return R(T,2)},I=h.__private__.f3=function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.f3");return R(T,3)},B=h.scale=h.__private__.scale=function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.scale");return S===x?T*Rt:S===w?T:void 0},z=function(T){return B(function(W){return S===x?ku()-W:S===w?W:void 0}(T))};h.__private__.setPrecision=h.setPrecision=function(T){typeof parseInt(T,10)=="number"&&(t=parseInt(T,10))};var V,Q="00000000000000000000000000000000",ae=h.__private__.getFileId=function(){return Q},K=h.__private__.setFileId=function(T){return Q=T!==void 0&&/^[a-fA-F0-9]{32}$/.test(T)?T.toUpperCase():Q.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(Xn=new Td(u.userPermissions,u.userPassword,u.ownerPassword,Q)),Q};h.setFileId=function(T){return K(T),this},h.getFileId=function(){return ae()};var re=h.__private__.convertDateToPDFDate=function(T){var W=T.getTimezoneOffset(),de=W<0?"+":"-",be=Math.floor(Math.abs(W/60)),Ae=Math.abs(W%60),Ue=[de,F(be),"'",F(Ae),"'"].join("");return["D:",T.getFullYear(),F(T.getMonth()+1),F(T.getDate()),F(T.getHours()),F(T.getMinutes()),F(T.getSeconds()),Ue].join("")},ye=h.__private__.convertPDFDateToDate=function(T){var W=parseInt(T.substr(2,4),10),de=parseInt(T.substr(6,2),10)-1,be=parseInt(T.substr(8,2),10),Ae=parseInt(T.substr(10,2),10),Ue=parseInt(T.substr(12,2),10),He=parseInt(T.substr(14,2),10);return new Date(W,de,be,Ae,Ue,He,0)},xe=h.__private__.setCreationDate=function(T){var W;if(T===void 0&&(T=new Date),T instanceof Date)W=re(T);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(T))throw new Error("Invalid argument passed to jsPDF.setCreationDate");W=T}return V=W},O=h.__private__.getCreationDate=function(T){var W=V;return T==="jsDate"&&(W=ye(V)),W};h.setCreationDate=function(T){return xe(T),this},h.getCreationDate=function(T){return O(T)};var M,F=h.__private__.padd2=function(T){return("0"+parseInt(T)).slice(-2)},U=h.__private__.padd2Hex=function(T){return("00"+(T=T.toString())).substr(T.length)},Z=0,se=[],ve=[],oe=0,pe=[],Se=[],me=!1,Le=ve;h.__private__.setCustomOutputDestination=function(T){me=!0,Le=T};var ie=function(T){me||(Le=T)};h.__private__.resetCustomOutputDestination=function(){me=!1,Le=ve};var Y=h.__private__.out=function(T){return T=T.toString(),oe+=T.length+1,Le.push(T),Le},Ie=h.__private__.write=function(T){return Y(arguments.length===1?T.toString():Array.prototype.join.call(arguments," "))},De=h.__private__.getArrayBuffer=function(T){for(var W=T.length,de=new ArrayBuffer(W),be=new Uint8Array(de);W--;)be[W]=T.charCodeAt(W);return de},nt=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return nt};var $e=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(T){return $e=S===w?T/Rt:T,this};var ot,tt=h.__private__.getFontSize=h.getFontSize=function(){return S===x?$e:$e*Rt},dt=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(T){return dt=T,this},h.__private__.getR2L=h.getR2L=function(){return dt};var pt,Ft=h.__private__.setZoomMode=function(T){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(T))ot=T;else if(isNaN(T)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(T)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+T+'" is not recognized.');ot=T}else ot=parseInt(T,10)};h.__private__.getZoomMode=function(){return ot};var $t,kt=h.__private__.setPageMode=function(T){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(T)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+T+'" is not recognized.');pt=T};h.__private__.getPageMode=function(){return pt};var er=h.__private__.setLayoutMode=function(T){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(T)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+T+'" is not recognized.');$t=T};h.__private__.getLayoutMode=function(){return $t},h.__private__.setDisplayMode=h.setDisplayMode=function(T,W,de){return Ft(T),er(W),kt(de),this};var Bt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(T){if(Object.keys(Bt).indexOf(T)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Bt[T]},h.__private__.getDocumentProperties=function(){return Bt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(T){for(var W in Bt)Bt.hasOwnProperty(W)&&T[W]&&(Bt[W]=T[W]);return this},h.__private__.setDocumentProperty=function(T,W){if(Object.keys(Bt).indexOf(T)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Bt[T]=W};var mt,Rt,yt,on,nr,zt={},Ht={},Ur=[],At={},wr={},Nt={},Lt={},Wr=null,Jt=0,Et=[],dr=new gI(h),Qs=e.hotfixes||[],ci={},Uo={},uo=[],Pt=function T(W,de,be,Ae,Ue,He){if(!(this instanceof T))return new T(W,de,be,Ae,Ue,He);isNaN(W)&&(W=1),isNaN(de)&&(de=0),isNaN(be)&&(be=0),isNaN(Ae)&&(Ae=1),isNaN(Ue)&&(Ue=0),isNaN(He)&&(He=0),this._matrix=[W,de,be,Ae,Ue,He]};Object.defineProperty(Pt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(T){this._matrix[0]=T}}),Object.defineProperty(Pt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(T){this._matrix[1]=T}}),Object.defineProperty(Pt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(T){this._matrix[2]=T}}),Object.defineProperty(Pt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(T){this._matrix[3]=T}}),Object.defineProperty(Pt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(T){this._matrix[4]=T}}),Object.defineProperty(Pt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(T){this._matrix[5]=T}}),Object.defineProperty(Pt.prototype,"a",{get:function(){return this._matrix[0]},set:function(T){this._matrix[0]=T}}),Object.defineProperty(Pt.prototype,"b",{get:function(){return this._matrix[1]},set:function(T){this._matrix[1]=T}}),Object.defineProperty(Pt.prototype,"c",{get:function(){return this._matrix[2]},set:function(T){this._matrix[2]=T}}),Object.defineProperty(Pt.prototype,"d",{get:function(){return this._matrix[3]},set:function(T){this._matrix[3]=T}}),Object.defineProperty(Pt.prototype,"e",{get:function(){return this._matrix[4]},set:function(T){this._matrix[4]=T}}),Object.defineProperty(Pt.prototype,"f",{get:function(){return this._matrix[5]},set:function(T){this._matrix[5]=T}}),Object.defineProperty(Pt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Pt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Pt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Pt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Pt.prototype.join=function(T){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(j).join(T)},Pt.prototype.multiply=function(T){var W=T.sx*this.sx+T.shy*this.shx,de=T.sx*this.shy+T.shy*this.sy,be=T.shx*this.sx+T.sy*this.shx,Ae=T.shx*this.shy+T.sy*this.sy,Ue=T.tx*this.sx+T.ty*this.shx+this.tx,He=T.tx*this.shy+T.ty*this.sy+this.ty;return new Pt(W,de,be,Ae,Ue,He)},Pt.prototype.decompose=function(){var T=this.sx,W=this.shy,de=this.shx,be=this.sy,Ae=this.tx,Ue=this.ty,He=Math.sqrt(T*T+W*W),ht=(T/=He)*de+(W/=He)*be;de-=T*ht,be-=W*ht;var xt=Math.sqrt(de*de+be*be);return ht/=xt,T*(be/=xt)<W*(de/=xt)&&(T=-T,W=-W,ht=-ht,He=-He),{scale:new Pt(He,0,0,xt,0,0),translate:new Pt(1,0,0,1,Ae,Ue),rotate:new Pt(T,W,-W,T,0,0),skew:new Pt(1,0,ht,1,0,0)}},Pt.prototype.toString=function(T){return this.join(" ")},Pt.prototype.inversed=function(){var T=this.sx,W=this.shy,de=this.shx,be=this.sy,Ae=this.tx,Ue=this.ty,He=1/(T*be-W*de),ht=be*He,xt=-W*He,It=-de*He,Vt=T*He;return new Pt(ht,xt,It,Vt,-ht*Ae-It*Ue,-xt*Ae-Vt*Ue)},Pt.prototype.applyToPoint=function(T){var W=T.x*this.sx+T.y*this.shx+this.tx,de=T.x*this.shy+T.y*this.sy+this.ty;return new il(W,de)},Pt.prototype.applyToRectangle=function(T){var W=this.applyToPoint(T),de=this.applyToPoint(new il(T.x+T.w,T.y+T.h));return new Vp(W.x,W.y,de.x-W.x,de.y-W.y)},Pt.prototype.clone=function(){var T=this.sx,W=this.shy,de=this.shx,be=this.sy,Ae=this.tx,Ue=this.ty;return new Pt(T,W,de,be,Ae,Ue)},h.Matrix=Pt;var Wo=h.matrixMult=function(T,W){return W.multiply(T)},zo=new Pt(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=zo;var Fi=function(T,W){if(!wr[T]){var de=(W instanceof tf?"Sh":"P")+(Object.keys(At).length+1).toString(10);W.id=de,wr[T]=de,At[de]=W,dr.publish("addPattern",W)}};h.ShadingPattern=tf,h.TilingPattern=Xd,h.addShadingPattern=function(T,W){return C("addShadingPattern()"),Fi(T,W),this},h.beginTilingPattern=function(T){C("beginTilingPattern()"),Gp(T.boundingBox[0],T.boundingBox[1],T.boundingBox[2]-T.boundingBox[0],T.boundingBox[3]-T.boundingBox[1],T.matrix)},h.endTilingPattern=function(T,W){C("endTilingPattern()"),W.stream=Se[M].join(` `),Fi(T,W),dr.publish("endTilingPattern",W),uo.pop().restore()};var va,sn=h.__private__.newObject=function(){var T=Fn();return G(T,!0),T},Fn=h.__private__.newObjectDeferred=function(){return Z++,se[Z]=function(){return oe},Z},G=function(T,W){return W=typeof W=="boolean"&&W,se[T]=oe,W&&Y(T+" 0 obj"),T},ue=h.__private__.newAdditionalObject=function(){var T={objId:Fn(),content:""};return pe.push(T),T},ee=Fn(),ne=Fn(),fe=h.__private__.decodeColorString=function(T){var W=T.split(" ");if(W.length!==2||W[1]!=="g"&&W[1]!=="G")W.length!==5||W[4]!=="k"&&W[4]!=="K"||(W=[(1-W[0])*(1-W[3]),(1-W[1])*(1-W[3]),(1-W[2])*(1-W[3]),"r"]);else{var de=parseFloat(W[0]);W=[de,de,de,"r"]}for(var be="#",Ae=0;Ae<3;Ae++)be+=("0"+Math.floor(255*parseFloat(W[Ae])).toString(16)).slice(-2);return be},he=h.__private__.encodeColorString=function(T){var W;typeof T=="string"&&(T={ch1:T});var de=T.ch1,be=T.ch2,Ae=T.ch3,Ue=T.ch4,He=T.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof de=="string"&&de.charAt(0)!=="#"){var ht=new kH(de);if(ht.ok)de=ht.toHex();else if(!/^\d*\.?\d*$/.test(de))throw new Error('Invalid color "'+de+'" passed to jsPDF.encodeColorString.')}if(typeof de=="string"&&/^#[0-9A-Fa-f]{3}$/.test(de)&&(de="#"+de[1]+de[1]+de[2]+de[2]+de[3]+de[3]),typeof de=="string"&&/^#[0-9A-Fa-f]{6}$/.test(de)){var xt=parseInt(de.substr(1),16);de=xt>>16&255,be=xt>>8&255,Ae=255&xt}if(be===void 0||Ue===void 0&&de===be&&be===Ae)W=typeof de=="string"?de+" "+He[0]:T.precision===2?L(de/255)+" "+He[0]:I(de/255)+" "+He[0];else if(Ue===void 0||pr(Ue)==="object"){if(Ue&&!isNaN(Ue.a)&&Ue.a===0)return["1.","1.","1.",He[1]].join(" ");W=typeof de=="string"?[de,be,Ae,He[1]].join(" "):T.precision===2?[L(de/255),L(be/255),L(Ae/255),He[1]].join(" "):[I(de/255),I(be/255),I(Ae/255),He[1]].join(" ")}else W=typeof de=="string"?[de,be,Ae,Ue,He[2]].join(" "):T.precision===2?[L(de),L(be),L(Ae),L(Ue),He[2]].join(" "):[I(de),I(be),I(Ae),I(Ue),He[2]].join(" ");return W},Ne=h.__private__.getFilters=function(){return o},je=h.__private__.putStream=function(T){var W=(T=T||{}).data||"",de=T.filters||Ne(),be=T.alreadyAppliedFilters||[],Ae=T.addLength1||!1,Ue=W.length,He=T.objectId,ht=function(Yn){return Yn};if(u!==null&&He===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(ht=Xn.encryptor(He,0));var xt={};de===!0&&(de=["FlateEncode"]);var It=T.additionalKeyValues||[],Vt=(xt=bt.API.processDataByFilters!==void 0?bt.API.processDataByFilters(W,de):{data:W,reverseChain:[]}).reverseChain+(Array.isArray(be)?be.join(" "):be.toString());if(xt.data.length!==0&&(It.push({key:"Length",value:xt.data.length}),Ae===!0&&It.push({key:"Length1",value:Ue})),Vt.length!=0)if(Vt.split("/").length-1==1)It.push({key:"Filter",value:Vt});else{It.push({key:"Filter",value:"["+Vt+"]"});for(var cr=0;cr<It.length;cr+=1)if(It[cr].key==="DecodeParms"){for(var fn=[],Un=0;Un<xt.reverseChain.split("/").length-1;Un+=1)fn.push("null");fn.push(It[cr].value),It[cr].value="["+fn.join(" ")+"]"}}Y("<<");for(var zr=0;zr<It.length;zr++)Y("/"+It[zr].key+" "+It[zr].value);Y(">>"),xt.data.length!==0&&(Y("stream"),Y(ht(xt.data)),Y("endstream"))},Pe=h.__private__.putPage=function(T){var W=T.number,de=T.data,be=T.objId,Ae=T.contentsObjId;G(be,!0),Y("<</Type /Page"),Y("/Parent "+T.rootDictionaryObjId+" 0 R"),Y("/Resources "+T.resourceDictionaryObjId+" 0 R"),Y("/MediaBox ["+parseFloat(j(T.mediaBox.bottomLeftX))+" "+parseFloat(j(T.mediaBox.bottomLeftY))+" "+j(T.mediaBox.topRightX)+" "+j(T.mediaBox.topRightY)+"]"),T.cropBox!==null&&Y("/CropBox ["+j(T.cropBox.bottomLeftX)+" "+j(T.cropBox.bottomLeftY)+" "+j(T.cropBox.topRightX)+" "+j(T.cropBox.topRightY)+"]"),T.bleedBox!==null&&Y("/BleedBox ["+j(T.bleedBox.bottomLeftX)+" "+j(T.bleedBox.bottomLeftY)+" "+j(T.bleedBox.topRightX)+" "+j(T.bleedBox.topRightY)+"]"),T.trimBox!==null&&Y("/TrimBox ["+j(T.trimBox.bottomLeftX)+" "+j(T.trimBox.bottomLeftY)+" "+j(T.trimBox.topRightX)+" "+j(T.trimBox.topRightY)+"]"),T.artBox!==null&&Y("/ArtBox ["+j(T.artBox.bottomLeftX)+" "+j(T.artBox.bottomLeftY)+" "+j(T.artBox.topRightX)+" "+j(T.artBox.topRightY)+"]"),typeof T.userUnit=="number"&&T.userUnit!==1&&Y("/UserUnit "+T.userUnit),dr.publish("putPage",{objId:be,pageContext:Et[W],pageNumber:W,page:de}),Y("/Contents "+Ae+" 0 R"),Y(">>"),Y("endobj");var Ue=de.join(` `);return S===w&&(Ue+=` Q`),G(Ae,!0),je({data:Ue,filters:Ne(),objectId:Ae}),Y("endobj"),be},Te=h.__private__.putPages=function(){var T,W,de=[];for(T=1;T<=Jt;T++)Et[T].objId=Fn(),Et[T].contentsObjId=Fn();for(T=1;T<=Jt;T++)de.push(Pe({number:T,data:Se[T],objId:Et[T].objId,contentsObjId:Et[T].contentsObjId,mediaBox:Et[T].mediaBox,cropBox:Et[T].cropBox,bleedBox:Et[T].bleedBox,trimBox:Et[T].trimBox,artBox:Et[T].artBox,userUnit:Et[T].userUnit,rootDictionaryObjId:ee,resourceDictionaryObjId:ne}));G(ee,!0),Y("<</Type /Pages");var be="/Kids [";for(W=0;W<Jt;W++)be+=de[W]+" 0 R ";Y(be+"]"),Y("/Count "+Jt),Y(">>"),Y("endobj"),dr.publish("postPutPages")},ke=function(T){dr.publish("putFont",{font:T,out:Y,newObject:sn,putStream:je}),T.isAlreadyPutted!==!0&&(T.objectNumber=sn(),Y("<<"),Y("/Type /Font"),Y("/BaseFont /"+Cd(T.postScriptName)),Y("/Subtype /Type1"),typeof T.encoding=="string"&&Y("/Encoding /"+T.encoding),Y("/FirstChar 32"),Y("/LastChar 255"),Y(">>"),Y("endobj"))},Ge=function(T){T.objectNumber=sn();var W=[];W.push({key:"Type",value:"/XObject"}),W.push({key:"Subtype",value:"/Form"}),W.push({key:"BBox",value:"["+[j(T.x),j(T.y),j(T.x+T.width),j(T.y+T.height)].join(" ")+"]"}),W.push({key:"Matrix",value:"["+T.matrix.toString()+"]"});var de=T.pages[1].join(` `);je({data:de,additionalKeyValues:W,objectId:T.objectNumber}),Y("endobj")},Je=function(T,W){W||(W=21);var de=sn(),be=function(He,ht){var xt,It=[],Vt=1/(ht-1);for(xt=0;xt<1;xt+=Vt)It.push(xt);if(It.push(1),He[0].offset!=0){var cr={offset:0,color:He[0].color};He.unshift(cr)}if(He[He.length-1].offset!=1){var fn={offset:1,color:He[He.length-1].color};He.push(fn)}for(var Un="",zr=0,Yn=0;Yn<It.length;Yn++){for(xt=It[Yn];xt>He[zr+1].offset;)zr++;var Wn=He[zr].offset,Si=(xt-Wn)/(He[zr+1].offset-Wn),sl=He[zr].color,Go=He[zr+1].color;Un+=U(Math.round((1-Si)*sl[0]+Si*Go[0]).toString(16))+U(Math.round((1-Si)*sl[1]+Si*Go[1]).toString(16))+U(Math.round((1-Si)*sl[2]+Si*Go[2]).toString(16))}return Un.trim()}(T.colors,W),Ae=[];Ae.push({key:"FunctionType",value:"0"}),Ae.push({key:"Domain",value:"[0.0 1.0]"}),Ae.push({key:"Size",value:"["+W+"]"}),Ae.push({key:"BitsPerSample",value:"8"}),Ae.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ae.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),je({data:be,additionalKeyValues:Ae,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:de}),Y("endobj"),T.objectNumber=sn(),Y("<< /ShadingType "+T.type),Y("/ColorSpace /DeviceRGB");var Ue="/Coords ["+j(parseFloat(T.coords[0]))+" "+j(parseFloat(T.coords[1]))+" ";T.type===2?Ue+=j(parseFloat(T.coords[2]))+" "+j(parseFloat(T.coords[3])):Ue+=j(parseFloat(T.coords[2]))+" "+j(parseFloat(T.coords[3]))+" "+j(parseFloat(T.coords[4]))+" "+j(parseFloat(T.coords[5])),Y(Ue+="]"),T.matrix&&Y("/Matrix ["+T.matrix.toString()+"]"),Y("/Function "+de+" 0 R"),Y("/Extend [true true]"),Y(">>"),Y("endobj")},at=function(T,W){var de=Fn(),be=sn();W.push({resourcesOid:de,objectOid:be}),T.objectNumber=be;var Ae=[];Ae.push({key:"Type",value:"/Pattern"}),Ae.push({key:"PatternType",value:"1"}),Ae.push({key:"PaintType",value:"1"}),Ae.push({key:"TilingType",value:"1"}),Ae.push({key:"BBox",value:"["+T.boundingBox.map(j).join(" ")+"]"}),Ae.push({key:"XStep",value:j(T.xStep)}),Ae.push({key:"YStep",value:j(T.yStep)}),Ae.push({key:"Resources",value:de+" 0 R"}),T.matrix&&Ae.push({key:"Matrix",value:"["+T.matrix.toString()+"]"}),je({data:T.stream,additionalKeyValues:Ae,objectId:T.objectNumber}),Y("endobj")},Xe=function(T){for(var W in T.objectNumber=sn(),Y("<<"),T)switch(W){case"opacity":Y("/ca "+L(T[W]));break;case"stroke-opacity":Y("/CA "+L(T[W]))}Y(">>"),Y("endobj")},it=function(T){G(T.resourcesOid,!0),Y("<<"),Y("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var W in Y("/Font <<"),zt)zt.hasOwnProperty(W)&&(f===!1||f===!0&&d.hasOwnProperty(W))&&Y("/"+W+" "+zt[W].objectNumber+" 0 R");Y(">>")}(),function(){if(Object.keys(At).length>0){for(var W in Y("/Shading <<"),At)At.hasOwnProperty(W)&&At[W]instanceof tf&&At[W].objectNumber>=0&&Y("/"+W+" "+At[W].objectNumber+" 0 R");dr.publish("putShadingPatternDict"),Y(">>")}}(),function(W){if(Object.keys(At).length>0){for(var de in Y("/Pattern <<"),At)At.hasOwnProperty(de)&&At[de]instanceof h.TilingPattern&&At[de].objectNumber>=0&&At[de].objectNumber<W&&Y("/"+de+" "+At[de].objectNumber+" 0 R");dr.publish("putTilingPatternDict"),Y(">>")}}(T.objectOid),function(){if(Object.keys(Nt).length>0){var W;for(W in Y("/ExtGState <<"),Nt)Nt.hasOwnProperty(W)&&Nt[W].objectNumber>=0&&Y("/"+W+" "+Nt[W].objectNumber+" 0 R");dr.publish("putGStateDict"),Y(">>")}}(),function(){for(var W in Y("/XObject <<"),ci)ci.hasOwnProperty(W)&&ci[W].objectNumber>=0&&Y("/"+W+" "+ci[W].objectNumber+" 0 R");dr.publish("putXobjectDict"),Y(">>")}(),Y(">>"),Y("endobj")},Ct=function(T){Ht[T.fontName]=Ht[T.fontName]||{},Ht[T.fontName][T.fontStyle]=T.id},Lr=function(T,W,de,be,Ae){var Ue={id:"F"+(Object.keys(zt).length+1).toString(10),postScriptName:T,fontName:W,fontStyle:de,encoding:be,isStandardFont:Ae||!1,metadata:{}};return dr.publish("addFont",{font:Ue,instance:this}),zt[Ue.id]=Ue,Ct(Ue),Ue.id},ir=h.__private__.pdfEscape=h.pdfEscape=function(T,W){return function(de,be){var Ae,Ue,He,ht,xt,It,Vt,cr,fn;if(He=(be=be||{}).sourceEncoding||"Unicode",xt=be.outputEncoding,(be.autoencode||xt)&&zt[mt].metadata&&zt[mt].metadata[He]&&zt[mt].metadata[He].encoding&&(ht=zt[mt].metadata[He].encoding,!xt&&zt[mt].encoding&&(xt=zt[mt].encoding),!xt&&ht.codePages&&(xt=ht.codePages[0]),typeof xt=="string"&&(xt=ht[xt]),xt)){for(Vt=!1,It=[],Ae=0,Ue=de.length;Ae<Ue;Ae++)(cr=xt[de.charCodeAt(Ae)])?It.push(String.fromCharCode(cr)):It.push(de[Ae]),It[Ae].charCodeAt(0)>>8&&(Vt=!0);de=It.join("")}for(Ae=de.length;Vt===void 0&&Ae!==0;)de.charCodeAt(Ae-1)>>8&&(Vt=!0),Ae--;if(!Vt)return de;for(It=be.noBOM?[]:[254,255],Ae=0,Ue=de.length;Ae<Ue;Ae++){if((fn=(cr=de.charCodeAt(Ae))>>8)>>8)throw new Error("Character at position "+Ae+" of string '"+de+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");It.push(fn),It.push(cr-(fn<<8))}return String.fromCharCode.apply(void 0,It)}(T,W).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},vn=h.__private__.beginPage=function(T){Se[++Jt]=[],Et[Jt]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(T[0]),topRightY:Number(T[1])}},_s(Jt),ie(Se[M])},Ss=function(T,W){var de,be,Ae;switch(r=W||r,typeof T=="string"&&(de=y(T.toLowerCase()),Array.isArray(de)&&(be=de[0],Ae=de[1])),Array.isArray(T)&&(be=T[0]*Rt,Ae=T[1]*Rt),isNaN(be)&&(be=i[0],Ae=i[1]),(be>14400||Ae>14400)&&(Fr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),be=Math.min(14400,be),Ae=Math.min(14400,Ae)),i=[be,Ae],r.substr(0,1)){case"l":Ae>be&&(i=[Ae,be]);break;case"p":be>Ae&&(i=[Ae,be])}vn(i),Mt(Up),Y(sd),zp!==0&&Y(zp+" J"),Hp!==0&&Y(Hp+" j"),dr.publish("addPage",{pageNumber:Jt})},Ho=function(T){T>0&&T<=Jt&&(Se.splice(T,1),Et.splice(T,1),Jt--,M>Jt&&(M=Jt),this.setPage(M))},_s=function(T){T>0&&T<=Jt&&(M=T)},fo=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return Se.length-1},ac=function(T,W,de){var be,Ae=void 0;return de=de||{},T=T!==void 0?T:zt[mt].fontName,W=W!==void 0?W:zt[mt].fontStyle,be=T.toLowerCase(),Ht[be]!==void 0&&Ht[be][W]!==void 0?Ae=Ht[be][W]:Ht[T]!==void 0&&Ht[T][W]!==void 0?Ae=Ht[T][W]:de.disableWarning===!1&&Fr.warn("Unable to look up font label for font '"+T+"', '"+W+"'. Refer to getFontList() for available fonts."),Ae||de.noFallback||(Ae=Ht.times[W])==null&&(Ae=Ht.times.normal),Ae},$n=h.__private__.putInfo=function(){var T=sn(),W=function(be){return be};for(var de in u!==null&&(W=Xn.encryptor(T,0)),Y("<<"),Y("/Producer ("+ir(W("jsPDF "+bt.version))+")"),Bt)Bt.hasOwnProperty(de)&&Bt[de]&&Y("/"+de.substr(0,1).toUpperCase()+de.substr(1)+" ("+ir(W(Bt[de]))+")");Y("/CreationDate ("+ir(W(V))+")"),Y(">>"),Y("endobj")},id=h.__private__.putCatalog=function(T){var W=(T=T||{}).rootDictionaryObjId||ee;switch(sn(),Y("<<"),Y("/Type /Catalog"),Y("/Pages "+W+" 0 R"),ot||(ot="fullwidth"),ot){case"fullwidth":Y("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Y("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Y("/OpenAction [3 0 R /Fit]");break;case"original":Y("/OpenAction [3 0 R /XYZ null null 1]");break;default:var de=""+ot;de.substr(de.length-1)==="%"&&(ot=parseInt(ot)/100),typeof ot=="number"&&Y("/OpenAction [3 0 R /XYZ null null "+L(ot)+"]")}switch($t||($t="continuous"),$t){case"continuous":Y("/PageLayout /OneColumn");break;case"single":Y("/PageLayout /SinglePage");break;case"two":case"twoleft":Y("/PageLayout /TwoColumnLeft");break;case"tworight":Y("/PageLayout /TwoColumnRight")}pt&&Y("/PageMode /"+pt),dr.publish("putCatalog"),Y(">>"),Y("endobj")},Pw=h.__private__.putTrailer=function(){Y("trailer"),Y("<<"),Y("/Size "+(Z+1)),Y("/Root "+Z+" 0 R"),Y("/Info "+(Z-1)+" 0 R"),u!==null&&Y("/Encrypt "+Xn.oid+" 0 R"),Y("/ID [ <"+Q+"> <"+Q+"> ]"),Y(">>")},Bn=h.__private__.putHeader=function(){Y("%PDF-"+v),Y("%ºß¬à")},f1=h.__private__.putXRef=function(){var T="0000000000";Y("xref"),Y("0 "+(Z+1)),Y("0000000000 65535 f ");for(var W=1;W<=Z;W++)typeof se[W]=="function"?Y((T+se[W]()).slice(-10)+" 00000 n "):se[W]!==void 0?Y((T+se[W]).slice(-10)+" 00000 n "):Y("0000000000 00000 n ")},As=h.__private__.buildDocument=function(){var T;Z=0,oe=0,ve=[],se=[],pe=[],ee=Fn(),ne=Fn(),ie(ve),dr.publish("buildDocument"),Bn(),Te(),function(){dr.publish("putAdditionalObjects");for(var de=0;de<pe.length;de++){var be=pe[de];G(be.objId,!0),Y(be.content),Y("endobj")}dr.publish("postPutAdditionalObjects")}(),T=[],function(){for(var de in zt)zt.hasOwnProperty(de)&&(f===!1||f===!0&&d.hasOwnProperty(de))&&ke(zt[de])}(),function(){var de;for(de in Nt)Nt.hasOwnProperty(de)&&Xe(Nt[de])}(),function(){for(var de in ci)ci.hasOwnProperty(de)&&Ge(ci[de])}(),function(de){var be;for(be in At)At.hasOwnProperty(be)&&(At[be]instanceof tf?Je(At[be]):At[be]instanceof Xd&&at(At[be],de))}(T),dr.publish("putResources"),T.forEach(it),it({resourcesOid:ne,objectOid:Number.MAX_SAFE_INTEGER}),dr.publish("postPutResources"),u!==null&&(Xn.oid=sn(),Y("<<"),Y("/Filter /Standard"),Y("/V "+Xn.v),Y("/R "+Xn.r),Y("/U <"+Xn.toHexString(Xn.U)+">"),Y("/O <"+Xn.toHexString(Xn.O)+">"),Y("/P "+Xn.P),Y(">>"),Y("endobj")),$n(),id();var W=oe;return f1(),Pw(),Y("startxref"),Y(""+W),Y("%%EOF"),ie(Se[M]),ve.join(` `)},ad=h.__private__.getBlob=function(T){return new Blob([De(T)],{type:"application/pdf"})},d1=h.output=h.__private__.output=(va=function(T,W){switch(typeof(W=W||{})=="string"?W={filename:W}:W.filename=W.filename||"generated.pdf",T){case void 0:return As();case"save":h.save(W.filename);break;case"arraybuffer":return De(As());case"blob":return ad(As());case"bloburi":case"bloburl":if(jt.URL!==void 0&&typeof jt.URL.createObjectURL=="function")return jt.URL&&jt.URL.createObjectURL(ad(As()))||void 0;Fr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var de="",be=As();try{de=hI(be)}catch{de=hI(unescape(encodeURIComponent(be)))}return"data:application/pdf;filename="+W.filename+";base64,"+de;case"pdfobjectnewwindow":if(Object.prototype.toString.call(jt)==="[object Window]"){var Ae="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Ue=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';W.pdfObjectUrl&&(Ae=W.pdfObjectUrl,Ue="");var He='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Ae+'"'+Ue+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(W)+");<\/script></body></html>",ht=jt.open();return ht!==null&&ht.document.write(He),ht}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(jt)==="[object Window]"){var xt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(W.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+W.filename+'" width="500px" height="400px" /></body></html>',It=jt.open();if(It!==null){It.document.write(xt);var Vt=this;It.document.documentElement.querySelector("#pdfViewer").onload=function(){It.document.title=W.filename,It.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Vt.output("bloburl"))}}return It}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(jt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var cr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",W)+'"></iframe></body></html>',fn=jt.open();if(fn!==null&&(fn.document.write(cr),fn.document.title=W.filename),fn||typeof safari>"u")return fn;break;case"datauri":case"dataurl":return jt.document.location.href=this.output("datauristring",W);default:return null}},va.foo=function(){try{return va.apply(this,arguments)}catch(de){var T=de.stack||"";~T.indexOf(" at ")&&(T=T.split(" at ")[1]);var W="Error in function "+T.split(` `)[0].split("<")[0]+": "+de.message;if(!jt.console)throw new Error(W);jt.console.error(W,de),jt.alert&&alert(W)}},va.foo.bar=va,va.foo),ho=function(T){return Array.isArray(Qs)===!0&&Qs.indexOf(T)>-1};switch(n){case"pt":Rt=1;break;case"mm":Rt=72/25.4;break;case"cm":Rt=72/2.54;break;case"in":Rt=72;break;case"px":Rt=ho("px_scaling")==1?.75:96/72;break;case"pc":case"em":Rt=12;break;case"ex":Rt=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);Rt=n}var Xn=null;xe(),K();var el=h.__private__.getPageInfo=h.getPageInfo=function(T){if(isNaN(T)||T%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Et[T].objId,pageNumber:T,pageContext:Et[T]}},h1=h.__private__.getPageInfoByObjId=function(T){if(isNaN(T)||T%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var W in Et)if(Et[W].objId===T)break;return el(W)},Tw=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:Et[M].objId,pageNumber:M,pageContext:Et[M]}};h.addPage=function(){return Ss.apply(this,arguments),this},h.setPage=function(){return _s.apply(this,arguments),ie.call(this,Se[M]),this},h.insertPage=function(T){return this.addPage(),this.movePage(M,T),this},h.movePage=function(T,W){var de,be;if(T>W){de=Se[T],be=Et[T];for(var Ae=T;Ae>W;Ae--)Se[Ae]=Se[Ae-1],Et[Ae]=Et[Ae-1];Se[W]=de,Et[W]=be,this.setPage(W)}else if(T<W){de=Se[T],be=Et[T];for(var Ue=T;Ue<W;Ue++)Se[Ue]=Se[Ue+1],Et[Ue]=Et[Ue+1];Se[W]=de,Et[W]=be,this.setPage(W)}return this},h.deletePage=function(){return Ho.apply(this,arguments),this},h.__private__.text=h.text=function(T,W,de,be,Ae){var Ue,He,ht,xt,It,Vt,cr,fn,Un,zr=(be=be||{}).scope||this;if(typeof T=="number"&&typeof W=="number"&&(typeof de=="string"||Array.isArray(de))){var Yn=de;de=W,W=T,T=Yn}if(arguments[3]instanceof Pt==0?(ht=arguments[4],xt=arguments[5],pr(cr=arguments[3])==="object"&&cr!==null||(typeof ht=="string"&&(xt=ht,ht=null),typeof cr=="string"&&(xt=cr,cr=null),typeof cr=="number"&&(ht=cr,cr=null),be={flags:cr,angle:ht,align:xt})):(C("The transform parameter of text() with a Matrix value"),Un=Ae),isNaN(W)||isNaN(de)||T==null)throw new Error("Invalid arguments passed to jsPDF.text");if(T.length===0)return zr;var Wn,Si="",sl=typeof be.lineHeightFactor=="number"?be.lineHeightFactor:Tu,Go=zr.internal.scaleFactor;function ll(yr){return yr=yr.split(" ").join(Array(be.TabLen||9).join(" ")),ir(yr,cr)}function Kp(yr){for(var Rr,Cn=yr.concat(),Jn=[],fl=Cn.length;fl--;)typeof(Rr=Cn.shift())=="string"?Jn.push(Rr):Array.isArray(yr)&&(Rr.length===1||Rr[1]===void 0&&Rr[2]===void 0)?Jn.push(Rr[0]):Jn.push([Rr[0],Rr[1],Rr[2]]);return Jn}function cd(yr,Rr){var Cn;if(typeof yr=="string")Cn=Rr(yr)[0];else if(Array.isArray(yr)){for(var Jn,fl,i0=yr.concat(),dd=[],A1=i0.length;A1--;)typeof(Jn=i0.shift())=="string"?dd.push(Rr(Jn)[0]):Array.isArray(Jn)&&typeof Jn[0]=="string"&&(fl=Rr(Jn[0],Jn[1],Jn[2]),dd.push([fl[0],fl[1],fl[2]]));Cn=dd}return Cn}var oc=!1,ju=!0;if(typeof T=="string")oc=!0;else if(Array.isArray(T)){var Lu=T.concat();He=[];for(var sc,_i=Lu.length;_i--;)(typeof(sc=Lu.shift())!="string"||Array.isArray(sc)&&typeof sc[0]!="string")&&(ju=!1);oc=ju}if(oc===!1)throw new Error('Type of text must be string or Array. "'+T+'" is not recognized.');typeof T=="string"&&(T=T.match(/[\r?\n]/)?T.split(/\r\n|\r|\n/g):[T]);var Iu=$e/zr.internal.scaleFactor,Du=Iu*(sl-1);switch(be.baseline){case"bottom":de-=Du;break;case"top":de+=Iu-Du;break;case"hanging":de+=Iu-2*Du;break;case"middle":de+=Iu/2-Du}if((Vt=be.maxWidth||0)>0&&(typeof T=="string"?T=zr.splitTextToSize(T,Vt):Object.prototype.toString.call(T)==="[object Array]"&&(T=T.reduce(function(yr,Rr){return yr.concat(zr.splitTextToSize(Rr,Vt))},[]))),Ue={text:T,x:W,y:de,options:be,mutex:{pdfEscape:ir,activeFontKey:mt,fonts:zt,activeFontSize:$e}},dr.publish("preProcessText",Ue),T=Ue.text,ht=(be=Ue.options).angle,Un instanceof Pt==0&&ht&&typeof ht=="number"){ht*=Math.PI/180,be.rotationDirection===0&&(ht=-ht),S===w&&(ht=-ht);var Xp=Math.cos(ht),Yp=Math.sin(ht);Un=new Pt(Xp,Yp,-Yp,Xp,0,0)}else ht&&ht instanceof Pt&&(Un=ht);S!==w||Un||(Un=zo),(It=be.charSpace||nl)!==void 0&&(Si+=j(B(It))+` Tc `,this.setCharSpace(this.getCharSpace()||0)),(fn=be.horizontalScale)!==void 0&&(Si+=j(100*fn)+` Tz `),be.lang;var Qi=-1,cl=be.renderingMode!==void 0?be.renderingMode:be.stroke,ud=zr.internal.getCurrentPageInfo().pageContext;switch(cl){case 0:case!1:case"fill":Qi=0;break;case 1:case!0:case"stroke":Qi=1;break;case 2:case"fillThenStroke":Qi=2;break;case 3:case"invisible":Qi=3;break;case 4:case"fillAndAddForClipping":Qi=4;break;case 5:case"strokeAndAddPathForClipping":Qi=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Qi=6;break;case 7:case"addToPathForClipping":Qi=7}var S1=ud.usedRenderingMode!==void 0?ud.usedRenderingMode:-1;Qi!==-1?Si+=Qi+` Tr `:S1!==-1&&(Si+=`0 Tr `),Qi!==-1&&(ud.usedRenderingMode=Qi),xt=be.align||"left";var po,Ru=$e*sl,Jp=zr.internal.pageSize.getWidth(),Zp=zt[mt];It=be.charSpace||nl,Vt=be.maxWidth||0,cr=Object.assign({autoencode:!0,noBOM:!0},be.flags);var lc=[],Mu=function(yr){return zr.getStringUnitWidth(yr,{font:Zp,charSpace:It,fontSize:$e,doKerning:!1})*$e/Go};if(Object.prototype.toString.call(T)==="[object Array]"){var ja;He=Kp(T),xt!=="left"&&(po=He.map(Mu));var La,cc=0;if(xt==="right"){W-=po[0],T=[],_i=He.length;for(var ul=0;ul<_i;ul++)ul===0?(La=tl(W),ja=rl(de)):(La=B(cc-po[ul]),ja=-Ru),T.push([He[ul],La,ja]),cc=po[ul]}else if(xt==="center"){W-=po[0]/2,T=[],_i=He.length;for(var uc=0;uc<_i;uc++)uc===0?(La=tl(W),ja=rl(de)):(La=B((cc-po[uc])/2),ja=-Ru),T.push([He[uc],La,ja]),cc=po[uc]}else if(xt==="left"){T=[],_i=He.length;for(var Qp=0;Qp<_i;Qp++)T.push(He[Qp])}else if(xt==="justify"&&Zp.encoding==="Identity-H"){T=[],_i=He.length,Vt=Vt!==0?Vt:Jp;for(var fd=0,Tn=0;Tn<_i;Tn++)if(ja=Tn===0?rl(de):-Ru,La=Tn===0?tl(W):fd,Tn<_i-1){var _1=B((Vt-po[Tn])/(He[Tn].split(" ").length-1)),Ns=He[Tn].split(" ");T.push([Ns[0]+" ",La,ja]),fd=0;for(var Ps=1;Ps<Ns.length;Ps++){var e0=(Mu(Ns[Ps-1]+" "+Ns[Ps])-Mu(Ns[Ps]))*Go+_1;Ps==Ns.length-1?T.push([Ns[Ps],e0,0]):T.push([Ns[Ps]+" ",e0,0]),fd-=e0}}else T.push([He[Tn],La,ja]);T.push(["",fd,0])}else{if(xt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(T=[],_i=He.length,Vt=Vt!==0?Vt:Jp,Tn=0;Tn<_i;Tn++){ja=Tn===0?rl(de):-Ru,La=Tn===0?tl(W):0;var t0=He[Tn].split(" ").length-1,r0=t0>0?(Vt-po[Tn])/t0:0;Tn<_i-1?lc.push(j(B(r0))):lc.push(0),T.push([He[Tn],La,ja])}}}(typeof be.R2L=="boolean"?be.R2L:dt)===!0&&(T=cd(T,function(yr,Rr,Cn){return[yr.split("").reverse().join(""),Rr,Cn]})),Ue={text:T,x:W,y:de,options:be,mutex:{pdfEscape:ir,activeFontKey:mt,fonts:zt,activeFontSize:$e}},dr.publish("postProcessText",Ue),T=Ue.text,Wn=Ue.mutex.isHex||!1;var n0=zt[mt].encoding;n0!=="WinAnsiEncoding"&&n0!=="StandardEncoding"||(T=cd(T,function(yr,Rr,Cn){return[ll(yr),Rr,Cn]})),He=Kp(T),T=[];for(var fc,dc,hc,Fu=Array.isArray(He[0])?1:0,pc="",$u=function(yr,Rr,Cn){var Jn="";return Cn instanceof Pt?(Cn=typeof be.angle=="number"?Wo(Cn,new Pt(1,0,0,1,yr,Rr)):Wo(new Pt(1,0,0,1,yr,Rr),Cn),S===w&&(Cn=Wo(new Pt(1,0,0,-1,0,0),Cn)),Jn=Cn.join(" ")+` Tm `):Jn=j(yr)+" "+j(Rr)+` Td `,Jn},mo=0;mo<He.length;mo++){switch(pc="",Fu){case 1:hc=(Wn?"<":"(")+He[mo][0]+(Wn?">":")"),fc=parseFloat(He[mo][1]),dc=parseFloat(He[mo][2]);break;case 0:hc=(Wn?"<":"(")+He[mo]+(Wn?">":")"),fc=tl(W),dc=rl(de)}lc!==void 0&&lc[mo]!==void 0&&(pc=lc[mo]+` Tw `),mo===0?T.push(pc+$u(fc,dc,Un)+hc):Fu===0?T.push(pc+hc):Fu===1&&T.push(pc+$u(fc,dc,Un)+hc)}T=Fu===0?T.join(` Tj T* `):T.join(` Tj `),T+=` Tj `;var Ts=`BT /`;return Ts+=mt+" "+$e+` Tf `,Ts+=j($e*sl)+` TL `,Ts+=Cu+` `,Ts+=Si,Ts+=T,Y(Ts+="ET"),d[mt]=!0,zr};var Cw=h.__private__.clip=h.clip=function(T){return Y(T==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return Cw("evenodd")},h.__private__.discardPath=h.discardPath=function(){return Y("n"),this};var Es=h.__private__.isValidStyle=function(T){var W=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(T)!==-1&&(W=!0),W};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(T){return Es(T)&&(c=T),this};var p1=h.__private__.getStyle=h.getStyle=function(T){var W=c;switch(T){case"D":case"S":W="S";break;case"F":W="f";break;case"FD":case"DF":W="B";break;case"f":case"f*":case"B":case"B*":W=T}return W},m1=h.close=function(){return Y("h"),this};h.stroke=function(){return Y("S"),this},h.fill=function(T){return od("f",T),this},h.fillEvenOdd=function(T){return od("f*",T),this},h.fillStroke=function(T){return od("B",T),this},h.fillStrokeEvenOdd=function(T){return od("B*",T),this};var od=function(T,W){pr(W)==="object"?kw(W,T):Y(T)},Pu=function(T){T===null||S===w&&T===void 0||(T=p1(T),Y(T))};function Ow(T,W,de,be,Ae){var Ue=new Xd(W||this.boundingBox,de||this.xStep,be||this.yStep,this.gState,Ae||this.matrix);Ue.stream=this.stream;var He=T+"$$"+this.cloneIndex+++"$$";return Fi(He,Ue),Ue}var kw=function(T,W){var de=wr[T.key],be=At[de];if(be instanceof tf)Y("q"),Y(jw(W)),be.gState&&h.setGState(be.gState),Y(T.matrix.toString()+" cm"),Y("/"+de+" sh"),Y("Q");else if(be instanceof Xd){var Ae=new Pt(1,0,0,-1,0,ku());T.matrix&&(Ae=Ae.multiply(T.matrix||zo),de=Ow.call(be,T.key,T.boundingBox,T.xStep,T.yStep,Ae).id),Y("q"),Y("/Pattern cs"),Y("/"+de+" scn"),be.gState&&h.setGState(be.gState),Y(W),Y("Q")}},jw=function(T){switch(T){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Bp=h.moveTo=function(T,W){return Y(j(B(T))+" "+j(z(W))+" m"),this},g1=h.lineTo=function(T,W){return Y(j(B(T))+" "+j(z(W))+" l"),this},Vo=h.curveTo=function(T,W,de,be,Ae,Ue){return Y([j(B(T)),j(z(W)),j(B(de)),j(z(be)),j(B(Ae)),j(z(Ue)),"c"].join(" ")),this};h.__private__.line=h.line=function(T,W,de,be,Ae){if(isNaN(T)||isNaN(W)||isNaN(de)||isNaN(be)||!Es(Ae))throw new Error("Invalid arguments passed to jsPDF.line");return S===x?this.lines([[de-T,be-W]],T,W,[1,1],Ae||"S"):this.lines([[de-T,be-W]],T,W,[1,1]).stroke()},h.__private__.lines=h.lines=function(T,W,de,be,Ae,Ue){var He,ht,xt,It,Vt,cr,fn,Un,zr,Yn,Wn,Si;if(typeof T=="number"&&(Si=de,de=W,W=T,T=Si),be=be||[1,1],Ue=Ue||!1,isNaN(W)||isNaN(de)||!Array.isArray(T)||!Array.isArray(be)||!Es(Ae)||typeof Ue!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Bp(W,de),He=be[0],ht=be[1],It=T.length,Yn=W,Wn=de,xt=0;xt<It;xt++)(Vt=T[xt]).length===2?(Yn=Vt[0]*He+Yn,Wn=Vt[1]*ht+Wn,g1(Yn,Wn)):(cr=Vt[0]*He+Yn,fn=Vt[1]*ht+Wn,Un=Vt[2]*He+Yn,zr=Vt[3]*ht+Wn,Yn=Vt[4]*He+Yn,Wn=Vt[5]*ht+Wn,Vo(cr,fn,Un,zr,Yn,Wn));return Ue&&m1(),Pu(Ae),this},h.path=function(T){for(var W=0;W<T.length;W++){var de=T[W],be=de.c;switch(de.op){case"m":Bp(be[0],be[1]);break;case"l":g1(be[0],be[1]);break;case"c":Vo.apply(this,be);break;case"h":m1()}}return this},h.__private__.rect=h.rect=function(T,W,de,be,Ae){if(isNaN(T)||isNaN(W)||isNaN(de)||isNaN(be)||!Es(Ae))throw new Error("Invalid arguments passed to jsPDF.rect");return S===x&&(be=-be),Y([j(B(T)),j(z(W)),j(B(de)),j(B(be)),"re"].join(" ")),Pu(Ae),this},h.__private__.triangle=h.triangle=function(T,W,de,be,Ae,Ue,He){if(isNaN(T)||isNaN(W)||isNaN(de)||isNaN(be)||isNaN(Ae)||isNaN(Ue)||!Es(He))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[de-T,be-W],[Ae-de,Ue-be],[T-Ae,W-Ue]],T,W,[1,1],He,!0),this},h.__private__.roundedRect=h.roundedRect=function(T,W,de,be,Ae,Ue,He){if(isNaN(T)||isNaN(W)||isNaN(de)||isNaN(be)||isNaN(Ae)||isNaN(Ue)||!Es(He))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ht=4/3*(Math.SQRT2-1);return Ae=Math.min(Ae,.5*de),Ue=Math.min(Ue,.5*be),this.lines([[de-2*Ae,0],[Ae*ht,0,Ae,Ue-Ue*ht,Ae,Ue],[0,be-2*Ue],[0,Ue*ht,-Ae*ht,Ue,-Ae,Ue],[2*Ae-de,0],[-Ae*ht,0,-Ae,-Ue*ht,-Ae,-Ue],[0,2*Ue-be],[0,-Ue*ht,Ae*ht,-Ue,Ae,-Ue]],T+Ae,W,[1,1],He,!0),this},h.__private__.ellipse=h.ellipse=function(T,W,de,be,Ae){if(isNaN(T)||isNaN(W)||isNaN(de)||isNaN(be)||!Es(Ae))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Ue=4/3*(Math.SQRT2-1)*de,He=4/3*(Math.SQRT2-1)*be;return Bp(T+de,W),Vo(T+de,W-He,T+Ue,W-be,T,W-be),Vo(T-Ue,W-be,T-de,W-He,T-de,W),Vo(T-de,W+He,T-Ue,W+be,T,W+be),Vo(T+Ue,W+be,T+de,W+He,T+de,W),Pu(Ae),this},h.__private__.circle=h.circle=function(T,W,de,be){if(isNaN(T)||isNaN(W)||isNaN(de)||!Es(be))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(T,W,de,de,be)},h.setFont=function(T,W,de){return de&&(W=P(W,de)),mt=ac(T,W,{disableWarning:!1}),this};var Lw=h.__private__.getFont=h.getFont=function(){return zt[ac.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var T,W,de={};for(T in Ht)if(Ht.hasOwnProperty(T))for(W in de[T]=[],Ht[T])Ht[T].hasOwnProperty(W)&&de[T].push(W);return de},h.addFont=function(T,W,de,be,Ae){var Ue=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Ue.indexOf(arguments[3])!==-1?Ae=arguments[3]:arguments[3]&&Ue.indexOf(arguments[3])==-1&&(de=P(de,be)),Lr.call(this,T,W,de,Ae=Ae||"Identity-H")};var Tu,Up=e.lineWidth||.200025,Iw=h.__private__.getLineWidth=h.getLineWidth=function(){return Up},Mt=h.__private__.setLineWidth=h.setLineWidth=function(T){return Up=T,Y(j(B(T))+" w"),this};h.__private__.setLineDash=bt.API.setLineDash=bt.API.setLineDashPattern=function(T,W){if(T=T||[],W=W||0,isNaN(W)||!Array.isArray(T))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return T=T.map(function(de){return j(B(de))}).join(" "),W=j(B(W)),Y("["+T+"] "+W+" d"),this};var Dw=h.__private__.getLineHeight=h.getLineHeight=function(){return $e*Tu};h.__private__.getLineHeight=h.getLineHeight=function(){return $e*Tu};var Rw=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(T){return typeof(T=T||1.15)=="number"&&(Tu=T),this},Mw=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return Tu};Rw(e.lineHeight);var tl=h.__private__.getHorizontalCoordinate=function(T){return B(T)},rl=h.__private__.getVerticalCoordinate=function(T){return S===w?T:Et[M].mediaBox.topRightY-Et[M].mediaBox.bottomLeftY-B(T)},Fw=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(T){return j(tl(T))},$w=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(T){return j(rl(T))},sd=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return fe(sd)},h.__private__.setStrokeColor=h.setDrawColor=function(T,W,de,be){return sd=he({ch1:T,ch2:W,ch3:de,ch4:be,pdfColorType:"draw",precision:2}),Y(sd),this};var Wp=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return fe(Wp)},h.__private__.setFillColor=h.setFillColor=function(T,W,de,be){return Wp=he({ch1:T,ch2:W,ch3:de,ch4:be,pdfColorType:"fill",precision:2}),Y(Wp),this};var Cu=e.textColor||"0 g",Bw=h.__private__.getTextColor=h.getTextColor=function(){return fe(Cu)};h.__private__.setTextColor=h.setTextColor=function(T,W,de,be){return Cu=he({ch1:T,ch2:W,ch3:de,ch4:be,pdfColorType:"text",precision:3}),this};var nl=e.charSpace,Uw=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(nl||0)};h.__private__.setCharSpace=h.setCharSpace=function(T){if(isNaN(T))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return nl=T,this};var zp=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(T){var W=h.CapJoinStyles[T];if(W===void 0)throw new Error("Line cap style of '"+T+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return zp=W,Y(W+" J"),this};var Hp=0;h.__private__.setLineJoin=h.setLineJoin=function(T){var W=h.CapJoinStyles[T];if(W===void 0)throw new Error("Line join style of '"+T+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Hp=W,Y(W+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(T){if(T=T||0,isNaN(T))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Y(j(B(T))+" M"),this},h.GState=d2,h.setGState=function(T){(T=typeof T=="string"?Nt[Lt[T]]:v1(null,T)).equals(Wr)||(Y("/"+T.id+" gs"),Wr=T)};var v1=function(T,W){if(!T||!Lt[T]){var de=!1;for(var be in Nt)if(Nt.hasOwnProperty(be)&&Nt[be].equals(W)){de=!0;break}if(de)W=Nt[be];else{var Ae="GS"+(Object.keys(Nt).length+1).toString(10);Nt[Ae]=W,W.id=Ae}return T&&(Lt[T]=W.id),dr.publish("addGState",W),W}};h.addGState=function(T,W){return v1(T,W),this},h.saveGraphicsState=function(){return Y("q"),Ur.push({key:mt,size:$e,color:Cu}),this},h.restoreGraphicsState=function(){Y("Q");var T=Ur.pop();return mt=T.key,$e=T.size,Cu=T.color,Wr=null,this},h.setCurrentTransformationMatrix=function(T){return Y(T.toString()+" cm"),this},h.comment=function(T){return Y("#"+T),this};var il=function(T,W){var de=T||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return de},set:function(Ue){isNaN(Ue)||(de=parseFloat(Ue))}});var be=W||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return be},set:function(Ue){isNaN(Ue)||(be=parseFloat(Ue))}});var Ae="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ae},set:function(Ue){Ae=Ue.toString()}}),this},Vp=function(T,W,de,be){il.call(this,T,W),this.type="rect";var Ae=de||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ae},set:function(He){isNaN(He)||(Ae=parseFloat(He))}});var Ue=be||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ue},set:function(He){isNaN(He)||(Ue=parseFloat(He))}}),this},ld=function(){this.page=Jt,this.currentPage=M,this.pages=Se.slice(0),this.pagesContext=Et.slice(0),this.x=yt,this.y=on,this.matrix=nr,this.width=qp(M),this.height=x1(M),this.outputDestination=Le,this.id="",this.objectNumber=-1};ld.prototype.restore=function(){Jt=this.page,M=this.currentPage,Et=this.pagesContext,Se=this.pages,yt=this.x,on=this.y,nr=this.matrix,y1(M,this.width),al(M,this.height),Le=this.outputDestination};var Gp=function(T,W,de,be,Ae){uo.push(new ld),Jt=M=0,Se=[],yt=T,on=W,nr=Ae,vn([de,be])};for(var Ou in h.beginFormObject=function(T,W,de,be,Ae){return Gp(T,W,de,be,Ae),this},h.endFormObject=function(T){return function(W){if(Uo[W])uo.pop().restore();else{var de=new ld,be="Xo"+(Object.keys(ci).length+1).toString(10);de.id=be,Uo[W]=be,ci[be]=de,dr.publish("addFormObject",de),uo.pop().restore()}}(T),this},h.doFormObject=function(T,W){var de=ci[Uo[T]];return Y("q"),Y(W.toString()+" cm"),Y("/"+de.id+" Do"),Y("Q"),this},h.getFormObject=function(T){var W=ci[Uo[T]];return{x:W.x,y:W.y,width:W.width,height:W.height,matrix:W.matrix}},h.save=function(T,W){return T=T||"generated.pdf",(W=W||{}).returnPromise=W.returnPromise||!1,W.returnPromise===!1?(Ju(ad(As()),T),typeof Ju.unload=="function"&&jt.setTimeout&&setTimeout(Ju.unload,911),this):new Promise(function(de,be){try{var Ae=Ju(ad(As()),T);typeof Ju.unload=="function"&&jt.setTimeout&&setTimeout(Ju.unload,911),de(Ae)}catch(Ue){be(Ue.message)}})},bt.API)bt.API.hasOwnProperty(Ou)&&(Ou==="events"&&bt.API.events.length?function(T,W){var de,be,Ae;for(Ae=W.length-1;Ae!==-1;Ae--)de=W[Ae][0],be=W[Ae][1],T.subscribe.apply(T,[de].concat(typeof be=="function"?[be]:be))}(dr,bt.API.events):h[Ou]=bt.API[Ou]);function qp(T){return Et[T].mediaBox.topRightX-Et[T].mediaBox.bottomLeftX}function y1(T,W){Et[T].mediaBox.topRightX=W+Et[T].mediaBox.bottomLeftX}function x1(T){return Et[T].mediaBox.topRightY-Et[T].mediaBox.bottomLeftY}function al(T,W){Et[T].mediaBox.topRightY=W+Et[T].mediaBox.bottomLeftY}var ol=h.getPageWidth=function(T){return qp(T=T||M)/Rt},b1=h.setPageWidth=function(T,W){y1(T,W*Rt)},ku=h.getPageHeight=function(T){return x1(T=T||M)/Rt},w1=h.setPageHeight=function(T,W){al(T,W*Rt)};return h.internal={pdfEscape:ir,getStyle:p1,getFont:Lw,getFontSize:tt,getCharSpace:Uw,getTextColor:Bw,getLineHeight:Dw,getLineHeightFactor:Mw,getLineWidth:Iw,write:Ie,getHorizontalCoordinate:tl,getVerticalCoordinate:rl,getCoordinateString:Fw,getVerticalCoordinateString:$w,collections:{},newObject:sn,newAdditionalObject:ue,newObjectDeferred:Fn,newObjectDeferredBegin:G,getFilters:Ne,putStream:je,events:dr,scaleFactor:Rt,pageSize:{getWidth:function(){return ol(M)},setWidth:function(T){b1(M,T)},getHeight:function(){return ku(M)},setHeight:function(T){w1(M,T)}},encryptionOptions:u,encryption:Xn,getEncryptor:function(T){return u!==null?Xn.encryptor(T,0):function(W){return W}},output:d1,getNumberOfPages:fo,get pages(){return Se},out:Y,f2:L,f3:I,getPageInfo:el,getPageInfoByObjId:h1,getCurrentPageInfo:Tw,getPDFVersion:p,Point:il,Rectangle:Vp,Matrix:Pt,hasHotfix:ho},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return ol(M)},set:function(T){b1(M,T)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return ku(M)},set:function(T){w1(M,T)},enumerable:!0,configurable:!0}),(function(T){for(var W=0,de=nt.length;W<de;W++){var be=Lr.call(this,T[W][0],T[W][1],T[W][2],nt[W][3],!0);f===!1&&(d[be]=!0);var Ae=T[W][0].split("-");Ct({id:be,fontName:Ae[0],fontStyle:Ae[1]||""})}dr.publish("addFonts",{fonts:zt,dictionary:Ht})}).call(h,nt),mt="F1",Ss(i,r),dr.publish("initialized"),h}Td.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Td.prototype.toHexString=function(e){return e.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Td.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},Td.prototype.processOwnerPassword=function(e,t){return u3(c3(t).substr(0,5),e)},Td.prototype.encryptor=function(e,t){var r=c3(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return u3(r,n)}},d2.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||pr(e)!==pr(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},bt.API={events:[]},bt.version="4.2.0";var Sn=bt.API,NP=1,nd=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ed=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},zf=function(e){return e.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var r=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(r.length===1?"0"+r:r)})},Ut=function(e){return e.toFixed(2)},Nc=function(e){return e.toFixed(5)};Sn.__acroform__={};var ka=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},vI=function(e){return e*NP},Ls=function(e){var t=new DH,r=ft.internal.getHeight(e)||0,n=ft.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Ut(n)),Number(Ut(r))],t},EIe=Sn.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},NIe=Sn.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},PIe=Sn.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Dn=Sn.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return PIe(e,t-1)},Rn=Sn.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return EIe(e,t-1)},Mn=Sn.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return NIe(e,t-1)},TIe=Sn.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,i=e[0],a=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=r(i)||0,l.lowerLeft_Y=n(a+s)||0,l.upperRight_X=r(i+o)||0,l.upperRight_Y=n(a)||0,[Number(Ut(l.lowerLeft_X)),Number(Ut(l.lowerLeft_Y)),Number(Ut(l.upperRight_X)),Number(Ut(l.upperRight_Y))]},CIe=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=f3(e,r),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+Ut(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var a=Ls(e);return a.scope=e.scope,a.stream=t.join(` `),a}},f3=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(L){return L.split(` `)}):i.map(function(L){return[L]});var a=r,o=ft.internal.getHeight(e)||0;o=o<0?-o:o;var s=ft.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(L,I,B){if(L+1<i.length){var z=I+" "+i[L+1][0];return $v(z,e,B).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var c,u,f=$v("3",e,a).height,d=e.multiline?o-a:(o-f)/2,h=d+=2,v=0,p=0,m=0;if(a<=0){t=`(...) Tj `,t+="% Width of Text: "+$v(t,e,a=12).width+", FieldWidth:"+s+` `;break}for(var y="",x=0,w=0;w<i.length;w++)if(i.hasOwnProperty(w)){var S=!1;if(i[w].length!==1&&m!==i[w].length-1){if((f+2)*(x+2)+2>o)continue e;y+=i[w][m],S=!0,p=w,w--}else{y=(y+=i[w][m]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var A=parseInt(w),N=l(A,y,a),P=w>=i.length-1;if(N&&!P){y+=" ",m=0;continue}if(N||P){if(P)p=A;else if(e.multiline&&(f+2)*(x+2)+2>o)continue e}else{if(!e.multiline||(f+2)*(x+2)+2>o)continue e;p=A}}for(var j="",C=v;C<=p;C++){var R=i[C];if(e.multiline){if(C===p){j+=R[m]+" ",m=(m+1)%R.length;continue}if(C===v){j+=R[R.length-1]+" ";continue}}j+=R[0]+" "}switch(j=j.substr(j.length-1)==" "?j.substr(0,j.length-1):j,u=$v(j,e,a).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;default:c=2}t+=Ut(c)+" "+Ut(h)+` Td `,t+="("+nd(j)+`) Tj `,t+=-Ut(c)+` 0 Td `,h=-(a+2),u=0,v=S?p:p+1,x++,y=""}break}return n.text=t,n.fontSize=a,n},$v=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},OIe={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},kIe=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find(function(n){return n.type===r.type&&n.object===r.object})===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},jIe=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(bs.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(OIe)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");NP=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new RH,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&kIe(a,r)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(r){(function(n,i){var a=!n;for(var o in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],l=[],c=s.Rect;if(s.Rect&&(s.Rect=TIe(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=ft.createDefaultAppearanceStream(s),pr(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=CIe(s);l.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var f="";for(var d in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(d)){var h=s.appearanceStreamContent[d];if(f+="/"+d+" ",f+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var o in h)if(h.hasOwnProperty(o)){var v=h[o];typeof v=="function"&&(v=v.call(i,s)),f+="/"+o+" "+v+" ",i.internal.acroformPlugin.xForms.indexOf(v)>=0||i.internal.acroformPlugin.xForms.push(v)}}else typeof(v=h)=="function"&&(v=v.call(i,s)),f+="/"+o+" "+v,i.internal.acroformPlugin.xForms.indexOf(v)>=0||i.internal.acroformPlugin.xForms.push(v);f+=">>"}l.push({key:"AP",value:`<< `+f+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}a&&function(p,m){for(var y in p)if(p.hasOwnProperty(y)){var x=y,w=p[y];m.internal.newObjectDeferredBegin(w.objId,!0),pr(w)==="object"&&typeof w.putStream=="function"&&w.putStream(),delete p[x]}}(i.internal.acroformPlugin.xForms,i)})(r,e)}),e.internal.acroformPlugin.isInitialized=!0}},IH=Sn.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(o){return o};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),pr(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)==="/"?i+="/"+zf(e[a].substr(1)):(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),i+="("+nd(n(e[a].toString()))+")")}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},zS=function(e,t,r){var n=function(i){return i};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),"("+nd(n(e))+")"},$s=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};$s.prototype.toString=function(){return this.objId+" 0 R"},$s.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},$s.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"});for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:IH(i,this.objId,this.scope)}):i instanceof $s?(i.scope=this.scope,e.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:n,value:i}))}return e};var DH=function(){$s.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};ka(DH,$s);var RH=function(){$s.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+nd(r(e))+")"}},set:function(r){e=r}})};ka(RH,$s);var bs=function e(){$s.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Dn(t,3)},set:function(y){y?this.F=Rn(t,3):this.F=Mn(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');r=y}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(y){n=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(y){n[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(y){n[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(y){n[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(y){n[3]=y}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof h2)return;a="FieldObject"+e.FieldNum++}var y=function(x){return x};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+nd(y(a))+")"},set:function(y){a=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(y){a=y}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/NP:c},set:function(y){c=y}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(y){u=y}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof h2||this instanceof mf))return zS(f,this.objId,this.scope)},set:function(y){y=y.toString(),f=y}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof di==0?zS(d,this.objId,this.scope):d},set:function(y){y=y.toString(),d=this instanceof di==0?y.substr(0,1)==="("?Ed(y.substr(1,y.length-2)):Ed(y):y}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof di==1?Ed(d.substr(1,d.length-1)):d},set:function(y){y=y.toString(),d=this instanceof di==1?"/"+zf(y):y}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof di==0?zS(h,this.objId,this.scope):h},set:function(y){y=y.toString(),h=this instanceof di==0?y.substr(0,1)==="("?Ed(y.substr(1,y.length-2)):Ed(y):y}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof di==1?Ed(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof di==1?"/"+zf(y):y}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var v,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(y){y=!!y,p=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(v)return v},set:function(y){v=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,1)},set:function(y){y?this.Ff=Rn(this.Ff,1):this.Ff=Mn(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,2)},set:function(y){y?this.Ff=Rn(this.Ff,2):this.Ff=Mn(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,3)},set:function(y){y?this.Ff=Rn(this.Ff,3):this.Ff=Mn(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(m!==null)return m},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');m=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(m){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};ka(bs,$s);var mh=function(){bs.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return IH(t,this.objId,this.scope)},set:function(r){var n,i;i=[],typeof(n=r)=="string"&&(i=function(a,o,s){s||(s=1);for(var l,c=[];l=o.exec(a);)c.push(l[s]);return c}(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,18)},set:function(r){r?this.Ff=Rn(this.Ff,18):this.Ff=Mn(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Rn(this.Ff,19):this.Ff=Mn(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,20)},set:function(r){r?(this.Ff=Rn(this.Ff,20),t.sort()):this.Ff=Mn(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,22)},set:function(r){r?this.Ff=Rn(this.Ff,22):this.Ff=Mn(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,23)},set:function(r){r?this.Ff=Rn(this.Ff,23):this.Ff=Mn(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,27)},set:function(r){r?this.Ff=Rn(this.Ff,27):this.Ff=Mn(this.Ff,27)}}),this.hasAppearanceStream=!1};ka(mh,bs);var gh=function(){mh.call(this),this.fontName="helvetica",this.combo=!1};ka(gh,mh);var vh=function(){gh.call(this),this.combo=!0};ka(vh,gh);var cy=function(){vh.call(this),this.edit=!0};ka(cy,vh);var di=function(){bs.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,15)},set:function(r){r?this.Ff=Rn(this.Ff,15):this.Ff=Mn(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,16)},set:function(r){r?this.Ff=Rn(this.Ff,16):this.Ff=Mn(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,17)},set:function(r){r?this.Ff=Rn(this.Ff,17):this.Ff=Mn(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,26)},set:function(r){r?this.Ff=Rn(this.Ff,26):this.Ff=Mn(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(a){return a};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+nd(r(t[n]))+")");return i.push(">>"),i.join(` `)}},set:function(r){pr(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){var n=r==null?"":r.toString();n.substr(0,1)==="/"&&(n=n.substr(1)),e="/"+zf(n)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+zf(r)}})};ka(di,bs);var uy=function(){di.call(this),this.pushButton=!0};ka(uy,di);var yh=function(){di.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};ka(yh,di);var h2=function(){var e,t;bs.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,o=[];for(a in o.push("<<"),n)o.push("/"+a+" ("+nd(i(n[a]))+")");return o.push(">>"),o.join(` `)},set:function(i){pr(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){var a=i==null?"":i.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),r="/"+zf(a)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(i){var a=i==null?"":i.toString();a.substr(0,1)==="/"&&(a=a.substr(1)),r="/"+zf(a)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ft.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ka(h2,bs),yh.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},yh.prototype.createOption=function(e){var t=new h2;return t.Parent=this,t.optionName=e,this.Kids.push(t),LIe.call(this.scope,t),t};var fy=function(){di.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ft.CheckBox.createAppearanceStream()};ka(fy,di);var mf=function(){bs.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,13)},set:function(t){t?this.Ff=Rn(this.Ff,13):this.Ff=Mn(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,21)},set:function(t){t?this.Ff=Rn(this.Ff,21):this.Ff=Mn(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,23)},set:function(t){t?this.Ff=Rn(this.Ff,23):this.Ff=Mn(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,24)},set:function(t){t?this.Ff=Rn(this.Ff,24):this.Ff=Mn(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,25)},set:function(t){t?this.Ff=Rn(this.Ff,25):this.Ff=Mn(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,26)},set:function(t){t?this.Ff=Rn(this.Ff,26):this.Ff=Mn(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ka(mf,bs);var dy=function(){mf.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Dn(this.Ff,14)},set:function(e){e?this.Ff=Rn(this.Ff,14):this.Ff=Mn(this.Ff,14)}}),this.password=!0};ka(dy,mf);var ft={CheckBox:{createAppearanceStream:function(){return{N:{On:ft.CheckBox.YesNormal},D:{On:ft.CheckBox.YesPushDown,Off:ft.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Ls(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=f3(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+Ut(ft.internal.getWidth(e))+" "+Ut(ft.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+Ut(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(` `),t},YesNormal:function(e){var t=Ls(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],a=ft.internal.getHeight(e),o=ft.internal.getWidth(e),s=f3(e,e.caption);return i.push("1 g"),i.push("0 0 "+Ut(o)+" "+Ut(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Ut(o-1)+" "+Ut(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+Ut(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(` `),t},OffPushDown:function(e){var t=Ls(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Ut(ft.internal.getWidth(e))+" "+Ut(ft.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(` `),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ft.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ft.RadioButton.Circle.YesNormal,t.D[e]=ft.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Ls(e);t.scope=e.scope;var r=[],n=ft.internal.getWidth(e)<=ft.internal.getHeight(e)?ft.internal.getWidth(e)/4:ft.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=ft.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Nc(ft.internal.getWidth(e)/2)+" "+Nc(ft.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(` `),t},YesPushDown:function(e){var t=Ls(e);t.scope=e.scope;var r=[],n=ft.internal.getWidth(e)<=ft.internal.getHeight(e)?ft.internal.getWidth(e)/4:ft.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ft.internal.Bezier_C).toFixed(5)),o=Number((n*ft.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Nc(ft.internal.getWidth(e)/2)+" "+Nc(ft.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Nc(ft.internal.getWidth(e)/2)+" "+Nc(ft.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(` `),t},OffPushDown:function(e){var t=Ls(e);t.scope=e.scope;var r=[],n=ft.internal.getWidth(e)<=ft.internal.getHeight(e)?ft.internal.getWidth(e)/4:ft.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ft.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Nc(ft.internal.getWidth(e)/2)+" "+Nc(ft.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(` `),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ft.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ft.RadioButton.Cross.YesNormal,t.D[e]=ft.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Ls(e);t.scope=e.scope;var r=[],n=ft.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+Ut(ft.internal.getWidth(e)-2)+" "+Ut(ft.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Ut(n.x1.x)+" "+Ut(n.x1.y)+" m"),r.push(Ut(n.x2.x)+" "+Ut(n.x2.y)+" l"),r.push(Ut(n.x4.x)+" "+Ut(n.x4.y)+" m"),r.push(Ut(n.x3.x)+" "+Ut(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(` `),t},YesPushDown:function(e){var t=Ls(e);t.scope=e.scope;var r=ft.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+Ut(ft.internal.getWidth(e))+" "+Ut(ft.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Ut(ft.internal.getWidth(e)-2)+" "+Ut(ft.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(Ut(r.x1.x)+" "+Ut(r.x1.y)+" m"),n.push(Ut(r.x2.x)+" "+Ut(r.x2.y)+" l"),n.push(Ut(r.x4.x)+" "+Ut(r.x4.y)+" m"),n.push(Ut(r.x3.x)+" "+Ut(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(` `),t},OffPushDown:function(e){var t=Ls(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Ut(ft.internal.getWidth(e))+" "+Ut(ft.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(` `),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};ft.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ft.internal.getWidth(e),r=ft.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},ft.internal.getWidth=function(e){var t=0;return pr(e)==="object"&&(t=vI(e.Rect[2])),t},ft.internal.getHeight=function(e){var t=0;return pr(e)==="object"&&(t=vI(e.Rect[3])),t};var LIe=Sn.addField=function(e){if(jIe(this,e),!(e instanceof bs))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Sn.AcroFormChoiceField=mh,Sn.AcroFormListBox=gh,Sn.AcroFormComboBox=vh,Sn.AcroFormEditBox=cy,Sn.AcroFormButton=di,Sn.AcroFormPushButton=uy,Sn.AcroFormRadioButton=yh,Sn.AcroFormCheckBox=fy,Sn.AcroFormTextField=mf,Sn.AcroFormPasswordField=dy,Sn.AcroFormAppearance=ft,Sn.AcroForm={ChoiceField:mh,ListBox:gh,ComboBox:vh,EditBox:cy,Button:di,PushButton:uy,RadioButton:yh,CheckBox:fy,TextField:mf,PasswordField:dy,Appearance:ft},bt.AcroForm={ChoiceField:mh,ListBox:gh,ComboBox:vh,EditBox:cy,Button:di,PushButton:uy,RadioButton:yh,CheckBox:fy,TextField:mf,PasswordField:dy,Appearance:ft};bt.AcroForm;function MH(e){return e.reduce(function(t,r,n){return t[r]=n,t},{})}(function(e){var t="addImage_";e.__addimage__={};var r="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},i=e.__addimage__.getImageFileTypeByImageData=function(L,I){var B,z,V,Q,ae,K=r;if((I=I||r)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if(N(L))for(ae in n)for(V=n[ae],B=0;B<V.length;B+=1){for(Q=!0,z=0;z<V[B].length;z+=1)if(V[B][z]!==void 0&&V[B][z]!==L[z]){Q=!1;break}if(Q===!0){K=ae;break}}else for(ae in n)for(V=n[ae],B=0;B<V.length;B+=1){for(Q=!0,z=0;z<V[B].length;z+=1)if(V[B][z]!==void 0&&V[B][z]!==L.charCodeAt(z)){Q=!1;break}if(Q===!0){K=ae;break}}return K===r&&I!==r&&(K=I),K},a=function L(I){for(var B=this.internal.write,z=this.internal.putStream,V=(0,this.internal.getFilters)();V.indexOf("FlateEncode")!==-1;)V.splice(V.indexOf("FlateEncode"),1);I.objectId=this.internal.newObject();var Q=[];if(Q.push({key:"Type",value:"/XObject"}),Q.push({key:"Subtype",value:"/Image"}),Q.push({key:"Width",value:I.width}),Q.push({key:"Height",value:I.height}),I.colorSpace===y.INDEXED?Q.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(I.palette.length/3-1)+" "+("sMask"in I&&I.sMask!==void 0?I.objectId+2:I.objectId+1)+" 0 R]"}):(Q.push({key:"ColorSpace",value:"/"+I.colorSpace}),I.colorSpace===y.DEVICE_CMYK&&Q.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Q.push({key:"BitsPerComponent",value:I.bitsPerComponent}),"decodeParameters"in I&&I.decodeParameters!==void 0&&Q.push({key:"DecodeParms",value:"<<"+I.decodeParameters+">>"}),"transparency"in I&&Array.isArray(I.transparency)&&I.transparency.length>0){for(var ae="",K=0,re=I.transparency.length;K<re;K++)ae+=I.transparency[K]+" "+I.transparency[K]+" ";Q.push({key:"Mask",value:"["+ae+"]"})}I.sMask!==void 0&&Q.push({key:"SMask",value:I.objectId+1+" 0 R"});var ye=I.filter!==void 0?["/"+I.filter]:void 0;if(z({data:I.data,additionalKeyValues:Q,alreadyAppliedFilters:ye,objectId:I.objectId}),B("endobj"),"sMask"in I&&I.sMask!==void 0){var xe,O=(xe=I.sMaskBitsPerComponent)!==null&&xe!==void 0?xe:I.bitsPerComponent,M={width:I.width,height:I.height,colorSpace:"DeviceGray",bitsPerComponent:O,data:I.sMask};"filter"in I&&(M.decodeParameters="/Predictor ".concat(I.predictor," /Colors 1 /BitsPerComponent ").concat(O," /Columns ").concat(I.width),M.filter=I.filter),L.call(this,M)}if(I.colorSpace===y.INDEXED){var F=this.internal.newObject();z({data:j(new Uint8Array(I.palette)),objectId:F}),B("endobj")}},o=function(){var L=this.internal.collections[t+"images"];for(var I in L)a.call(this,L[I])},s=function(){var L,I=this.internal.collections[t+"images"],B=this.internal.write;for(var z in I)B("/I"+(L=I[z]).index,L.objectId,"0","R")},l=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",s))},c=function(){var L=this.internal.collections[t+"images"];return l.call(this),L},u=function(){return Object.keys(this.internal.collections[t+"images"]).length},f=function(L){return typeof e["process"+L.toUpperCase()]=="function"},d=function(L){return pr(L)==="object"&&L.nodeType===1},h=function(L,I){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var B=""+L.getAttribute("src");if(B.indexOf("data:image/")===0)return ly(unescape(B).split("base64,").pop());var z=e.loadFile(B,!0);if(z!==void 0)return z}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var V;switch(I){case"PNG":V="image/png";break;case"WEBP":V="image/webp";break;default:V="image/jpeg"}return ly(L.toDataURL(V,1).split("base64,").pop())}},v=function(L){var I=this.internal.collections[t+"images"];if(I){for(var B in I)if(L===I[B].alias)return I[B]}},p=function(L,I,B){return L||I||(L=-96,I=-96),L<0&&(L=-1*B.width*72/L/this.internal.scaleFactor),I<0&&(I=-1*B.height*72/I/this.internal.scaleFactor),L===0&&(L=I*B.width/B.height),I===0&&(I=L*B.height/B.width),[L,I]},m=function(L,I,B,z,V,Q){var ae=p.call(this,B,z,V),K=this.internal.getCoordinateString,re=this.internal.getVerticalCoordinateString,ye=c.call(this);if(B=ae[0],z=ae[1],ye[V.index]=V,Q){Q*=Math.PI/180;var xe=Math.cos(Q),O=Math.sin(Q),M=function(U){return U.toFixed(4)},F=[M(xe),M(O),M(-1*O),M(xe),0,0,"cm"]}this.internal.write("q"),Q?(this.internal.write([1,"0","0",1,K(L),re(I+z),"cm"].join(" ")),this.internal.write(F.join(" ")),this.internal.write([K(B),"0","0",K(z),"0","0","cm"].join(" "))):this.internal.write([K(B),"0","0",K(z),K(L),re(I+z),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+V.index+" Do"),this.internal.write("Q")},y=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var x=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},w=e.__addimage__.sHashCode=function(L){var I,B,z=0;if(typeof L=="string")for(B=L.length,I=0;I<B;I++)z=(z<<5)-z+L.charCodeAt(I),z|=0;else if(N(L))for(B=L.byteLength/2,I=0;I<B;I++)z=(z<<5)-z+L[I],z|=0;return z},S=e.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var I=!0;return L.length===0&&(I=!1),L.length%4!=0&&(I=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(I=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(I=!1),I},A=e.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var I=L.indexOf(",");return I<0?null:L.substring(0,I).trim().endsWith("base64")?L.substring(I+1):null};e.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var N=e.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},P=e.__addimage__.binaryStringToUint8Array=function(L){for(var I=L.length,B=new Uint8Array(I),z=0;z<I;z++)B[z]=L.charCodeAt(z);return B},j=e.__addimage__.arrayBufferToBinaryString=function(L){for(var I="",B=N(L)?L:new Uint8Array(L),z=0;z<B.length;z+=8192)I+=String.fromCharCode.apply(null,B.subarray(z,z+8192));return I};e.addImage=function(){var L,I,B,z,V,Q,ae,K,re;if(typeof arguments[1]=="number"?(I=r,B=arguments[1],z=arguments[2],V=arguments[3],Q=arguments[4],ae=arguments[5],K=arguments[6],re=arguments[7]):(I=arguments[1],B=arguments[2],z=arguments[3],V=arguments[4],Q=arguments[5],ae=arguments[6],K=arguments[7],re=arguments[8]),pr(L=arguments[0])==="object"&&!d(L)&&"imageData"in L){var ye=L;L=ye.imageData,I=ye.format||I||r,B=ye.x||B||0,z=ye.y||z||0,V=ye.w||ye.width||V,Q=ye.h||ye.height||Q,ae=ye.alias||ae,K=ye.compression||K,re=ye.rotation||ye.angle||re}var xe=this.internal.getFilters();if(K===void 0&&xe.indexOf("FlateEncode")!==-1&&(K="SLOW"),isNaN(B)||isNaN(z))throw new Error("Invalid coordinates passed to jsPDF.addImage");l.call(this);var O=C.call(this,L,I,ae,K);return m.call(this,B,z,V,Q,O,re),this};var C=function(L,I,B,z){var V,Q,ae;if(typeof L=="string"&&i(L)===r){L=unescape(L);var K=R(L,!1);(K!==""||(K=e.loadFile(L,!0))!==void 0)&&(L=K)}if(d(L)&&(L=h(L,I)),I=i(L,I),!f(I))throw new Error("addImage does not support files of type '"+I+"', please ensure that a plugin for '"+I+"' support is added.");if(((ae=B)==null||ae.length===0)&&(B=function(re){return typeof re=="string"||N(re)?w(re):N(re.data)?w(re.data):null}(L)),(V=v.call(this,B))||(L instanceof Uint8Array||I==="RGBA"||(Q=L,L=P(L)),V=this["process"+I.toUpperCase()](L,u.call(this),B,function(re){return re&&typeof re=="string"&&(re=re.toUpperCase()),re in e.image_compression?re:x.NONE}(z),Q)),!V)throw new Error("An unknown error occurred whilst processing the image.");return V},R=e.__addimage__.convertBase64ToBinaryString=function(L,I){I=typeof I!="boolean"||I;var B,z="";if(typeof L=="string"){var V;B=(V=A(L))!==null&&V!==void 0?V:L;try{z=ly(B)}catch(Q){if(I)throw S(B)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Q.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return z};e.getImageProperties=function(L){var I,B,z="";if(d(L)&&(L=h(L)),typeof L=="string"&&i(L)===r&&((z=R(L,!1))===""&&(z=e.loadFile(L)||""),L=z),B=i(L),!f(B))throw new Error("addImage does not support files of type '"+B+"', please ensure that a plugin for '"+B+"' support is added.");if(L instanceof Uint8Array||(L=P(L)),!(I=this["process"+B.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return I.fileType=B,I}})(bt.API),function(e){var t=function(r){if(r!==void 0&&r!="")return!0};bt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,i,a,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),c=r.pageContext.annotations,u=!1,f=0;f<c.length&&!u;f++)switch((n=c[f]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var d=0;d<c.length;d++){n=c[d];var h=this.internal.pdfEscape,v=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),m=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(p.objId),x=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+h(y(n.contents))+")",a+=" /Popup "+m.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+h(y(x))+") >>",p.content=a;var w=p.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+w,n.open&&(a+=" /Open true"),a+=" >>",m.content=a,this.internal.write(p.objId,"0 R",m.objId,"0 R");break;case"freetext":i="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var S=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(v(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+S+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var A=this.annotations._nameMap[n.options.name];n.options.pageNumber=A.page,n.options.top=A.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",a="",n.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+h(v(n.options.url))+") >>";else if(n.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,a+=" /FitV "+n.options.left+"]";break;default:var N=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+N+" "+n.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,i,a,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:c(n),w:l(r+i),h:c(n+a)},options:o,type:"link"})},e.textWithLink=function(r,n,i,a){var o,s,l=this.getTextWidth(r),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var u=this.splitTextToSize(r,s).length;o=Math.ceil(c*u)}else s=l,o=c;return this.text(r,n,i,a),i+=.2*c,a.align==="center"&&(n-=l/2),a.align==="right"&&(n-=l),this.link(n,i-c,s,o,a),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}}(bt.API),function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(p){return t[p.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(p){return typeof p=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(p)},s=e.__arabicParser__.isArabicEndLetter=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(p){return o(p)&&i.indexOf(p.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length==4},f=e.__arabicParser__.resolveLigatures=function(p){var m=0,y=r,x="",w=0;for(m=0;m<p.length;m+=1)y[p.charCodeAt(m)]!==void 0?(w++,typeof(y=y[p.charCodeAt(m)])=="number"&&(x+=String.fromCharCode(y),y=r,w=0),m===p.length-1&&(y=r,x+=p.charAt(m-(w-1)),m-=w-1,w=0)):(y=r,x+=p.charAt(m-w),m-=w,w=0);return x};e.__arabicParser__.isArabicDiacritic=function(p){return p!==void 0&&n[p.charCodeAt(0)]!==void 0};var d=e.__arabicParser__.getCorrectForm=function(p,m,y){return o(p)?a(p)===!1?-1:!c(p)||!o(m)&&!o(y)||!o(y)&&s(m)||s(p)&&!o(m)||s(p)&&l(m)||s(p)&&s(m)?0:u(p)&&o(m)&&!s(m)&&o(y)&&c(y)?3:s(p)||!o(y)?1:2:-1},h=function(p){var m=0,y=0,x=0,w="",S="",A="",N=(p=p||"").split("\\s+"),P=[];for(m=0;m<N.length;m+=1){for(P.push(""),y=0;y<N[m].length;y+=1)w=N[m][y],S=N[m][y-1],A=N[m][y+1],o(w)?(x=d(w,S,A),P[m]+=x!==-1?String.fromCharCode(t[w.charCodeAt(0)][x]):w):P[m]+=w;P[m]=f(P[m])}return P.join(" ")},v=e.__arabicParser__.processArabic=e.processArabic=function(){var p,m=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(m)){var x=0;for(y=[],x=0;x<m.length;x+=1)Array.isArray(m[x])?y.push([h(m[x][0]),m[x][1],m[x][2]]):y.push([h(m[x])]);p=y}else p=h(m);return typeof arguments[0]=="string"?p:(arguments[0].text=p,arguments[0])};e.events.push(["preProcessText",v])}(bt.API),bt.API.autoPrint=function(e){var t;return(e=e||{}).variant=e.variant||"non-conform",e.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")})),this},function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var i;if((r=r||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(bt.API),function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(p){l=p}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(p){c=p}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(p){u=p}});var f=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return f},set:function(p){f=p}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(p){d=p}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(p){h=p}});var v=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return v},set:function(p){v=p}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){n.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),f=c.font||this.getFont(),d=c.scaleFactor||this.internal.scaleFactor,h=0,v=0,p=0,m=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var y=c.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce(function(w,S){return w.concat(m.splitTextToSize(S,y))},[])):l=Array.isArray(l)?l:[l];for(var x=0;x<l.length;x++)h<(p=this.getStringUnitWidth(l[x],{font:f})*u)&&(h=p);return h!==0&&(v=l.length),{w:h/=d,h:Math.max((v*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/d,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),n.call(this);var c=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,f=this.internal.__cell__.margins||t,d=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+f.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=f.top,h&&d&&(this.printHeaderRow(l.lineNumber,!0),l.y+=d[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,u,f,d){if(n.call(this),!u)throw new Error("No data for PDF table.");var h,v,p,m,y=[],x=[],w=[],S={},A={},N=[],P=[],j=(d=d||{}).autoSize||!1,C=d.printHeaders!==!1,R=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,L=d.margins||Object.assign({width:this.getPageWidth()},t),I=typeof d.padding=="number"?d.padding:3,B=d.headerBackgroundColor||"#c8c8c8",z=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=C,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=R,this.internal.__cell__.padding=I,this.internal.__cell__.headerBackgroundColor=B,this.internal.__cell__.headerTextColor=z,this.setFontSize(R),f==null)x=y=Object.keys(u[0]),w=y.map(function(){return"left"});else if(Array.isArray(f)&&pr(f[0])==="object")for(y=f.map(function(ye){return ye.name}),x=f.map(function(ye){return ye.prompt||ye.name||""}),w=f.map(function(ye){return ye.align||"left"}),h=0;h<f.length;h+=1)A[f[h].name]=.7499990551181103*f[h].width;else Array.isArray(f)&&typeof f[0]=="string"&&(x=y=f,w=y.map(function(){return"left"}));if(j||Array.isArray(f)&&typeof f[0]=="string")for(h=0;h<y.length;h+=1){for(S[m=y[h]]=u.map(function(ye){return ye[m]}),this.setFont(void 0,"bold"),N.push(this.getTextDimensions(x[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),v=S[m],this.setFont(void 0,"normal"),p=0;p<v.length;p+=1)N.push(this.getTextDimensions(v[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);A[m]=Math.max.apply(null,N)+I+I,N=[]}if(C){var V={};for(h=0;h<y.length;h+=1)V[y[h]]={},V[y[h]].text=x[h],V[y[h]].align=w[h];var Q=s.call(this,V,A);P=y.map(function(ye){return new a(l,c,A[ye],Q,V[ye].text,void 0,V[ye].align)}),this.setTableHeaderRow(P),this.printHeaderRow(1,!1)}var ae=f.reduce(function(ye,xe){return ye[xe.name]=xe.align,ye},{});for(h=0;h<u.length;h+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:h,data:u[h]},this);var K=s.call(this,u[h],A);for(p=0;p<y.length;p+=1){var re=u[h][y[p]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:h,col:p,data:re},this),o.call(this,new a(l,c,A[y[p]],K,re,h+2,ae[y[p]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var u=this.internal.__cell__.padding,f=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(l).map(function(h){var v=l[h];return this.splitTextToSize(v.hasOwnProperty("text")?v.text:v,c[h]-u-u)},this).map(function(h){return this.getLineHeightFactor()*h.length*f/d+u+u},this).reduce(function(h,v){return Math.max(h,v)},0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var f=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(f[0],f[1],f[2],f[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){u=this.internal.__cell__.tableHeaderRow[h].clone(),c&&(u.y=this.internal.__cell__.margins.top||0,d.push(u)),u.lineNumber=l;var v=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,u),this.setTextColor(v)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),r=!1}}(bt.API);var FH={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},$H=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],d3=MH($H),BH=[100,200,300,400,500,600,700,800,900],IIe=MH(BH);function HS(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=function(a){return FH[a=a||"normal"]?a:"normal"}(e.style),n=function(a){return a?typeof a=="number"?a>=100&&a<=900&&a%100==0?a:400:/^\d00$/.test(a)?parseInt(a):a==="bold"?700:400:400}(e.weight),i=function(a){return typeof d3[a=a||"normal"]=="number"?a:"normal"}(e.stretch);return{family:t,style:r,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,r,n].join(" ")}}}function yI(e,t,r,n){var i;for(i=r;i>=0&&i<t.length;i+=n)if(e[t[i]])return e[t[i]];for(i=r;i>=0&&i<t.length;i-=n)if(e[t[i]])return e[t[i]]}var DIe={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},xI={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function bI(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function wI(e){return e.trimLeft()}function RIe(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function MIe(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var Nd,Bv,SI,_I,AI,VS=["times"];function EI(e,t,r,n,i){var a=4,o=PI;switch(i){case bt.API.image_compression.FAST:a=1,o=NI;break;case bt.API.image_compression.MEDIUM:a=6,o=TI;break;case bt.API.image_compression.SLOW:a=9,o=CI}e=function(l,c,u,f){for(var d,h=l.length/c,v=new Uint8Array(l.length+h),p=[FIe,NI,PI,TI,CI],m=0;m<h;m+=1){var y=m*c,x=l.subarray(y,y+c);if(f)v.set(f(x,u,d),y+m);else{for(var w=p.length,S=[],A=0;A<w;A+=1)S[A]=p[A](x,u,d);var N=BIe(S.concat());v.set(S[N],y+m)}d=x}return v}(e,t,Math.ceil(r*n/8),o);var s=a3(e,{level:a});return bt.API.__addimage__.arrayBufferToBinaryString(s)}function FIe(e){var t=Array.apply([],e);return t.unshift(0),t}function NI(e,t){var r=e.length,n=[];n[0]=1;for(var i=0;i<r;i+=1){var a=e[i-t]||0;n[i+1]=e[i]-a+256&255}return n}function PI(e,t,r){var n=e.length,i=[];i[0]=2;for(var a=0;a<n;a+=1){var o=r&&r[a]||0;i[a+1]=e[a]-o+256&255}return i}function TI(e,t,r){var n=e.length,i=[];i[0]=3;for(var a=0;a<n;a+=1){var o=e[a-t]||0,s=r&&r[a]||0;i[a+1]=e[a]+256-(o+s>>>1)&255}return i}function CI(e,t,r){var n=e.length,i=[];i[0]=4;for(var a=0;a<n;a+=1){var o=$Ie(e[a-t]||0,r&&r[a]||0,r&&r[a-t]||0);i[a+1]=e[a]-o+256&255}return i}function $Ie(e,t,r){if(e===t&&t===r)return e;var n=Math.abs(t-r),i=Math.abs(e-r),a=Math.abs(e+t-r-r);return n<=i&&n<=a?e:i<=a?t:r}function BIe(e){var t=e.map(function(r){return r.reduce(function(n,i){return n+Math.abs(i)},0)});return t.indexOf(Math.min.apply(null,t))}function GS(e,t,r){var n=t*r,i=Math.floor(n/8),a=16-(n-8*i+r),o=(1<<r)-1;return UH(e,i)>>a&o}function OI(e,t,r,n){var i=r*n,a=Math.floor(i/8),o=16-(i-8*a+n),s=(1<<n)-1,l=(t&s)<<o;(function(c,u,f){if(u+1<c.byteLength)c.setUint16(u,f,!1);else{var d=f>>8&255;c.setUint8(u,d)}})(e,a,UH(e,a)&~(s<<o)&65535|l)}function UH(e,t){return t+1<e.byteLength?e.getUint16(t,!1):e.getUint8(t)<<8}function UIe(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,o=1<<1+(7&i);e[t++],e[t++];var s=null,l=null;a&&(s=t,l=o,t+=3*o);var c=!0,u=[],f=0,d=null,h=0,v=null;for(this.width=r,this.height=n;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,v=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var p=e[t++];f=e[t++]|e[t++]<<8,d=e[t++],1&p||(d=null),h=p>>2&7,t++;break;case 254:for(;;){if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,w=e[t++]|e[t++]<<8,S=e[t++],A=S>>6&1,N=1<<1+(7&S),P=s,j=l,C=!1;S>>7&&(C=!0,P=t,j=N,t+=3*N);var R=t;for(t++;;){var L;if(!((L=e[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}u.push({x:m,y,width:x,height:w,has_local_palette:C,palette_offset:P,palette_size:j,data_offset:R,data_length:t-R,transparent_index:d,interlaced:!!A,delay:f,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return v},this.frameInfo=function(I){if(I<0||I>=u.length)throw new Error("Frame index out of range.");return u[I]},this.decodeAndBlitFrameBGRA=function(I,B){var z=this.frameInfo(I),V=z.width*z.height;if(V>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var Q=new Uint8Array(V);kI(e,z.data_offset,Q,V);var ae=z.palette_offset,K=z.transparent_index;K===null&&(K=256);var re=z.width,ye=r-re,xe=re,O=4*(z.y*r+z.x),M=4*((z.y+z.height)*r+z.x),F=O,U=4*ye;z.interlaced===!0&&(U+=4*r*7);for(var Z=8,se=0,ve=Q.length;se<ve;++se){var oe=Q[se];if(xe===0&&(xe=re,(F+=U)>=M&&(U=4*ye+4*r*(Z-1),F=O+(re+ye)*(Z<<1),Z>>=1)),oe===K)F+=4;else{var pe=e[ae+3*oe],Se=e[ae+3*oe+1],me=e[ae+3*oe+2];B[F++]=me,B[F++]=Se,B[F++]=pe,B[F++]=255}--xe}},this.decodeAndBlitFrameRGBA=function(I,B){var z=this.frameInfo(I),V=z.width*z.height;if(V>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var Q=new Uint8Array(V);kI(e,z.data_offset,Q,V);var ae=z.palette_offset,K=z.transparent_index;K===null&&(K=256);var re=z.width,ye=r-re,xe=re,O=4*(z.y*r+z.x),M=4*((z.y+z.height)*r+z.x),F=O,U=4*ye;z.interlaced===!0&&(U+=4*r*7);for(var Z=8,se=0,ve=Q.length;se<ve;++se){var oe=Q[se];if(xe===0&&(xe=re,(F+=U)>=M&&(U=4*ye+4*r*(Z-1),F=O+(re+ye)*(Z<<1),Z>>=1)),oe===K)F+=4;else{var pe=e[ae+3*oe],Se=e[ae+3*oe+1],me=e[ae+3*oe+2];B[F++]=pe,B[F++]=Se,B[F++]=me,B[F++]=255}--xe}}}function kI(e,t,r,n){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,l=i+1,c=(1<<l)-1,u=0,f=0,d=0,h=e[t++],v=new Int32Array(4096),p=null;;){for(;u<16&&h!==0;)f|=e[t++]<<u,u+=8,h===1?h=e[t++]:--h;if(u<l)break;var m=f&c;if(f>>=l,u-=l,m!==a){if(m===o)break;for(var y=m<s?m:p,x=0,w=y;w>a;)w=v[w]>>8,++x;var S=w;if(d+x+(y!==m?1:0)>n)return void Fr.log("Warning, gif stream longer than expected.");r[d++]=S;var A=d+=x;for(y!==m&&(r[d++]=S),w=y;x--;)w=v[w],r[--A]=255&w,w>>=8;p!==null&&s<4096&&(v[s++]=p<<8|S,s>=c+1&&l<12&&(++l,c=c<<1|1)),p=m}else s=o+1,c=(1<<(l=i+1))-1,p=null}return d!==n&&Fr.log("Warning, gif stream shorter than expected."),r}/** * @license Copyright (c) 2008, Adobe Systems Incorporated All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Adobe Systems Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */function qS(e){var t,r,n,i,a,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),f=new Array(65535),d=new Array(65535),h=new Array(64),v=new Array(64),p=[],m=0,y=7,x=new Array(64),w=new Array(64),S=new Array(64),A=new Array(256),N=new Array(2048),P=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],j=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],C=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],B=[0,1,2,3,4,5,6,7,8,9,10,11],z=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],V=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Q(O,M){for(var F=0,U=0,Z=new Array,se=1;se<=16;se++){for(var ve=1;ve<=O[se];ve++)Z[M[U]]=[],Z[M[U]][0]=F,Z[M[U]][1]=se,U++,F++;F*=2}return Z}function ae(O){for(var M=O[0],F=O[1]-1;F>=0;)M&1<<F&&(m|=1<<y),F--,--y<0&&(m==255?(K(255),K(0)):K(m),y=7,m=0)}function K(O){p.push(O)}function re(O){K(O>>8&255),K(255&O)}function ye(O,M,F,U,Z){for(var se,ve=Z[0],oe=Z[240],pe=function($e,ot){var tt,dt,pt,Ft,$t,kt,er,Bt,mt,Rt,yt=0;for(mt=0;mt<8;++mt){tt=$e[yt],dt=$e[yt+1],pt=$e[yt+2],Ft=$e[yt+3],$t=$e[yt+4],kt=$e[yt+5],er=$e[yt+6];var on=tt+(Bt=$e[yt+7]),nr=tt-Bt,zt=dt+er,Ht=dt-er,Ur=pt+kt,At=pt-kt,wr=Ft+$t,Nt=Ft-$t,Lt=on+wr,Wr=on-wr,Jt=zt+Ur,Et=zt-Ur;$e[yt]=Lt+Jt,$e[yt+4]=Lt-Jt;var dr=.707106781*(Et+Wr);$e[yt+2]=Wr+dr,$e[yt+6]=Wr-dr;var Qs=.382683433*((Lt=Nt+At)-(Et=Ht+nr)),ci=.5411961*Lt+Qs,Uo=1.306562965*Et+Qs,uo=.707106781*(Jt=At+Ht),Pt=nr+uo,Wo=nr-uo;$e[yt+5]=Wo+ci,$e[yt+3]=Wo-ci,$e[yt+1]=Pt+Uo,$e[yt+7]=Pt-Uo,yt+=8}for(yt=0,mt=0;mt<8;++mt){tt=$e[yt],dt=$e[yt+8],pt=$e[yt+16],Ft=$e[yt+24],$t=$e[yt+32],kt=$e[yt+40],er=$e[yt+48];var zo=tt+(Bt=$e[yt+56]),Fi=tt-Bt,va=dt+er,sn=dt-er,Fn=pt+kt,G=pt-kt,ue=Ft+$t,ee=Ft-$t,ne=zo+ue,fe=zo-ue,he=va+Fn,Ne=va-Fn;$e[yt]=ne+he,$e[yt+32]=ne-he;var je=.707106781*(Ne+fe);$e[yt+16]=fe+je,$e[yt+48]=fe-je;var Pe=.382683433*((ne=ee+G)-(Ne=sn+Fi)),Te=.5411961*ne+Pe,ke=1.306562965*Ne+Pe,Ge=.707106781*(he=G+sn),Je=Fi+Ge,at=Fi-Ge;$e[yt+40]=at+Te,$e[yt+24]=at-Te,$e[yt+8]=Je+ke,$e[yt+56]=Je-ke,yt++}for(mt=0;mt<64;++mt)Rt=$e[mt]*ot[mt],h[mt]=Rt>0?Rt+.5|0:Rt-.5|0;return h}(O,M),Se=0;Se<64;++Se)v[P[Se]]=pe[Se];var me=v[0]-F;F=v[0],me==0?ae(U[0]):(ae(U[d[se=32767+me]]),ae(f[se]));for(var Le=63;Le>0&&v[Le]==0;)Le--;if(Le==0)return ae(ve),F;for(var ie,Y=1;Y<=Le;){for(var Ie=Y;v[Y]==0&&Y<=Le;)++Y;var De=Y-Ie;if(De>=16){ie=De>>4;for(var nt=1;nt<=ie;++nt)ae(oe);De&=15}se=32767+v[Y],ae(Z[(De<<4)+d[se]]),ae(f[se]),Y++}return Le!=63&&ae(ve),F}function xe(O){O=Math.min(Math.max(O,1),100),a!=O&&(function(M){for(var F=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],U=0;U<64;U++){var Z=o((F[U]*M+50)/100);Z=Math.min(Math.max(Z,1),255),s[P[U]]=Z}for(var se=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ve=0;ve<64;ve++){var oe=o((se[ve]*M+50)/100);oe=Math.min(Math.max(oe,1),255),l[P[ve]]=oe}for(var pe=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Se=0,me=0;me<8;me++)for(var Le=0;Le<8;Le++)c[Se]=1/(s[P[Se]]*pe[me]*pe[Le]*8),u[Se]=1/(l[P[Se]]*pe[me]*pe[Le]*8),Se++}(O<50?Math.floor(5e3/O):Math.floor(200-2*O)),a=O)}this.encode=function(O,M){M&&xe(M),p=new Array,m=0,y=7,re(65496),re(65504),re(16),K(74),K(70),K(73),K(70),K(0),K(1),K(1),K(0),re(1),re(1),K(0),K(0),function(){re(65499),re(132),K(0);for(var dt=0;dt<64;dt++)K(s[dt]);K(1);for(var pt=0;pt<64;pt++)K(l[pt])}(),function(dt,pt){re(65472),re(17),K(8),re(pt),re(dt),K(3),K(1),K(17),K(0),K(2),K(17),K(1),K(3),K(17),K(1)}(O.width,O.height),function(){re(65476),re(418),K(0);for(var dt=0;dt<16;dt++)K(j[dt+1]);for(var pt=0;pt<=11;pt++)K(C[pt]);K(16);for(var Ft=0;Ft<16;Ft++)K(R[Ft+1]);for(var $t=0;$t<=161;$t++)K(L[$t]);K(1);for(var kt=0;kt<16;kt++)K(I[kt+1]);for(var er=0;er<=11;er++)K(B[er]);K(17);for(var Bt=0;Bt<16;Bt++)K(z[Bt+1]);for(var mt=0;mt<=161;mt++)K(V[mt])}(),re(65498),re(12),K(3),K(1),K(0),K(2),K(17),K(3),K(17),K(0),K(63),K(0);var F=0,U=0,Z=0;m=0,y=7,this.encode.displayName="_encode_";for(var se,ve,oe,pe,Se,me,Le,ie,Y,Ie=O.data,De=O.width,nt=O.height,$e=4*De,ot=0;ot<nt;){for(se=0;se<$e;){for(Se=$e*ot+se,Le=-1,ie=0,Y=0;Y<64;Y++)me=Se+(ie=Y>>3)*$e+(Le=4*(7&Y)),ot+ie>=nt&&(me-=$e*(ot+1+ie-nt)),se+Le>=$e&&(me-=se+Le-$e+4),ve=Ie[me++],oe=Ie[me++],pe=Ie[me++],x[Y]=(N[ve]+N[oe+256|0]+N[pe+512|0]>>16)-128,w[Y]=(N[ve+768|0]+N[oe+1024|0]+N[pe+1280|0]>>16)-128,S[Y]=(N[ve+1280|0]+N[oe+1536|0]+N[pe+1792|0]>>16)-128;F=ye(x,c,F,t,n),U=ye(w,u,U,r,i),Z=ye(S,u,Z,r,i),se+=32}ot+=8}if(y>=0){var tt=[];tt[1]=y+1,tt[0]=(1<<y+1)-1,ae(tt)}return re(65497),new Uint8Array(p)},e=e||50,function(){for(var O=String.fromCharCode,M=0;M<256;M++)A[M]=O(M)}(),t=Q(j,C),r=Q(I,B),n=Q(R,L),i=Q(z,V),function(){for(var O=1,M=2,F=1;F<=15;F++){for(var U=O;U<M;U++)d[32767+U]=F,f[32767+U]=[],f[32767+U][1]=F,f[32767+U][0]=U;for(var Z=-(M-1);Z<=-O;Z++)d[32767+Z]=F,f[32767+Z]=[],f[32767+Z][1]=F,f[32767+Z][0]=M-1+Z;O<<=1,M<<=1}}(),function(){for(var O=0;O<256;O++)N[O]=19595*O,N[O+256|0]=38470*O,N[O+512|0]=7471*O+32768,N[O+768|0]=-11059*O,N[O+1024|0]=-21709*O,N[O+1280|0]=32768*O+8421375,N[O+1536|0]=-27439*O,N[O+1792|0]=-5329*O}(),xe(e)}/** * @license * Copyright (c) 2017 Aras Abbasi * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */function es(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function jI(e){function t(C){if(!C)throw Error("assert :P")}function r(C,R,L){for(var I=0;4>I;I++)if(C[R+I]!=L.charCodeAt(I))return!0;return!1}function n(C,R,L,I,B){for(var z=0;z<B;z++)C[R+z]=L[I+z]}function i(C,R,L,I){for(var B=0;B<I;B++)C[R+B]=L}function a(C){return new Int32Array(C)}function o(C,R){for(var L=[],I=0;I<C;I++)L.push(new R);return L}function s(C,R){var L=[];return function I(B,z,V){for(var Q=V[z],ae=0;ae<Q&&(B.push(V.length>z+1?[]:new R),!(V.length<z+1));ae++)I(B[ae],z+1,V)}(L,0,C),L}var l=function(){var C=this;function R(b,_){for(var k=1<<_-1>>>0;b&k;)k>>>=1;return k?(b&k-1)+k:b}function L(b,_,k,D,H){t(!(D%k));do b[_+(D-=k)]=H;while(0<D)}function I(b,_,k,D,H){if(t(2328>=H),512>=H)var q=a(512);else if((q=a(H))==null)return 0;return function(X,J,te,le,we,Oe){var ce,_e,Ee=J,Me=1<<te,Ce=a(16),Be=a(16);for(t(we!=0),t(le!=null),t(X!=null),t(0<te),_e=0;_e<we;++_e){if(15<le[_e])return 0;++Ce[le[_e]]}if(Ce[0]==we)return 0;for(Be[1]=0,ce=1;15>ce;++ce){if(Ce[ce]>1<<ce)return 0;Be[ce+1]=Be[ce]+Ce[ce]}for(_e=0;_e<we;++_e)ce=le[_e],0<le[_e]&&(Oe[Be[ce]++]=_e);if(Be[15]==1)return(le=new B).g=0,le.value=Oe[0],L(X,Ee,1,Me,le),Me;var We,qe=-1,Ve=Me-1,wt=0,ut=1,Gt=1,gt=1<<te;for(_e=0,ce=1,we=2;ce<=te;++ce,we<<=1){if(ut+=Gt<<=1,0>(Gt-=Ce[ce]))return 0;for(;0<Ce[ce];--Ce[ce])(le=new B).g=ce,le.value=Oe[_e++],L(X,Ee+wt,we,gt,le),wt=R(wt,ce)}for(ce=te+1,we=2;15>=ce;++ce,we<<=1){if(ut+=Gt<<=1,0>(Gt-=Ce[ce]))return 0;for(;0<Ce[ce];--Ce[ce]){if(le=new B,(wt&Ve)!=qe){for(Ee+=gt,We=1<<(qe=ce)-te;15>qe&&!(0>=(We-=Ce[qe]));)++qe,We<<=1;Me+=gt=1<<(We=qe-te),X[J+(qe=wt&Ve)].g=We+te,X[J+qe].value=Ee-J-qe}le.g=ce-te,le.value=Oe[_e++],L(X,Ee+(wt>>te),we,gt,le),wt=R(wt,ce)}}return ut!=2*Be[15]-1?0:Me}(b,_,k,D,H,q)}function B(){this.value=this.g=0}function z(){this.value=this.g=0}function V(){this.G=o(5,B),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Mu,z)}function Q(b,_,k,D){t(b!=null),t(_!=null),t(2147483648>D),b.Ca=254,b.I=0,b.b=-8,b.Ka=0,b.oa=_,b.pa=k,b.Jd=_,b.Yc=k+D,b.Zc=4<=D?k+D-4+1:k,ve(b)}function ae(b,_){for(var k=0;0<_--;)k|=pe(b,128)<<_;return k}function K(b,_){var k=ae(b,_);return oe(b)?-k:k}function re(b,_,k,D){var H,q=0;for(t(b!=null),t(_!=null),t(4294967288>D),b.Sb=D,b.Ra=0,b.u=0,b.h=0,4<D&&(D=4),H=0;H<D;++H)q+=_[k+H]<<8*H;b.Ra=q,b.bb=D,b.oa=_,b.pa=k}function ye(b){for(;8<=b.u&&b.bb<b.Sb;)b.Ra>>>=8,b.Ra+=b.oa[b.pa+b.bb]<<cc-8>>>0,++b.bb,b.u-=8;U(b)&&(b.h=1,b.u=0)}function xe(b,_){if(t(0<=_),!b.h&&_<=La){var k=F(b)&ja[_];return b.u+=_,ye(b),k}return b.h=1,b.u=0}function O(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function M(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function F(b){return b.Ra>>>(b.u&cc-1)>>>0}function U(b){return t(b.bb<=b.Sb),b.h||b.bb==b.Sb&&b.u>cc}function Z(b,_){b.u=_,b.h=U(b)}function se(b){b.u>=ul&&(t(b.u>=ul),ye(b))}function ve(b){t(b!=null&&b.oa!=null),b.pa<b.Zc?(b.I=(b.oa[b.pa++]|b.I<<8)>>>0,b.b+=8):(t(b!=null&&b.oa!=null),b.pa<b.Yc?(b.b+=8,b.I=b.oa[b.pa++]|b.I<<8):b.Ka?b.b=0:(b.I<<=8,b.b+=8,b.Ka=1))}function oe(b){return ae(b,1)}function pe(b,_){var k=b.Ca;0>b.b&&ve(b);var D=b.b,H=k*_>>>8,q=(b.I>>>D>H)+0;for(q?(k-=H,b.I-=H+1<<D>>>0):k=H+1,D=k,H=0;256<=D;)H+=8,D>>=8;return D=7^H+uc[D],b.b-=D,b.Ca=(k<<D)-1,q}function Se(b,_,k){b[_+0]=k>>24&255,b[_+1]=k>>16&255,b[_+2]=k>>8&255,b[_+3]=255&k}function me(b,_){return b[_+0]|b[_+1]<<8}function Le(b,_){return me(b,_)|b[_+2]<<16}function ie(b,_){return me(b,_)|me(b,_+2)<<16}function Y(b,_){var k=1<<_;return t(b!=null),t(0<_),b.X=a(k),b.X==null?0:(b.Mb=32-_,b.Xa=_,1)}function Ie(b,_){t(b!=null),t(_!=null),t(b.Xa==_.Xa),n(_.X,0,b.X,0,1<<_.Xa)}function De(){this.X=[],this.Xa=this.Mb=0}function nt(b,_,k,D){t(k!=null),t(D!=null);var H=k[0],q=D[0];return H==0&&(H=(b*q+_/2)/_),q==0&&(q=(_*H+b/2)/b),0>=H||0>=q?0:(k[0]=H,D[0]=q,1)}function $e(b,_){return b+(1<<_)-1>>>_}function ot(b,_){return((4278255360&b)+(4278255360&_)>>>0&4278255360)+((16711935&b)+(16711935&_)>>>0&16711935)>>>0}function tt(b,_){C[_]=function(k,D,H,q,X,J,te){var le;for(le=0;le<X;++le){var we=C[b](J[te+le-1],H,q+le);J[te+le]=ot(k[D+le],we)}}}function dt(){this.ud=this.hd=this.jd=0}function pt(b,_){return((4278124286&(b^_))>>>1)+(b&_)>>>0}function Ft(b){return 0<=b&&256>b?b:0>b?0:255<b?255:void 0}function $t(b,_){return Ft(b+(b-_+.5>>1))}function kt(b,_,k){return Math.abs(_-k)-Math.abs(b-k)}function er(b,_,k,D,H,q,X){for(D=q[X-1],k=0;k<H;++k)q[X+k]=D=ot(b[_+k],D)}function Bt(b,_,k,D,H){var q;for(q=0;q<k;++q){var X=b[_+q],J=X>>8&255,te=16711935&(te=(te=16711935&X)+((J<<16)+J));D[H+q]=(4278255360&X)+te>>>0}}function mt(b,_){_.jd=255&b,_.hd=b>>8&255,_.ud=b>>16&255}function Rt(b,_,k,D,H,q){var X;for(X=0;X<D;++X){var J=_[k+X],te=J>>>8,le=J,we=255&(we=(we=J>>>16)+((b.jd<<24>>24)*(te<<24>>24)>>>5));le=255&(le=(le+=(b.hd<<24>>24)*(te<<24>>24)>>>5)+((b.ud<<24>>24)*(we<<24>>24)>>>5)),H[q+X]=(4278255360&J)+(we<<16)+le}}function yt(b,_,k,D,H){C[_]=function(q,X,J,te,le,we,Oe,ce,_e){for(te=Oe;te<ce;++te)for(Oe=0;Oe<_e;++Oe)le[we++]=H(J[D(q[X++])])},C[b]=function(q,X,J,te,le,we,Oe){var ce=8>>q.b,_e=q.Ea,Ee=q.K[0],Me=q.w;if(8>ce)for(q=(1<<q.b)-1,Me=(1<<ce)-1;X<J;++X){var Ce,Be=0;for(Ce=0;Ce<_e;++Ce)Ce&q||(Be=D(te[le++])),we[Oe++]=H(Ee[Be&Me]),Be>>=ce}else C["VP8LMapColor"+k](te,le,Ee,Me,we,Oe,X,J,_e)}}function on(b,_,k,D,H){for(k=_+k;_<k;){var q=b[_++];D[H++]=q>>16&255,D[H++]=q>>8&255,D[H++]=255&q}}function nr(b,_,k,D,H){for(k=_+k;_<k;){var q=b[_++];D[H++]=q>>16&255,D[H++]=q>>8&255,D[H++]=255&q,D[H++]=q>>24&255}}function zt(b,_,k,D,H){for(k=_+k;_<k;){var q=(X=b[_++])>>16&240|X>>12&15,X=240&X|X>>28&15;D[H++]=q,D[H++]=X}}function Ht(b,_,k,D,H){for(k=_+k;_<k;){var q=(X=b[_++])>>16&248|X>>13&7,X=X>>5&224|X>>3&31;D[H++]=q,D[H++]=X}}function Ur(b,_,k,D,H){for(k=_+k;_<k;){var q=b[_++];D[H++]=255&q,D[H++]=q>>8&255,D[H++]=q>>16&255}}function At(b,_,k,D,H,q){if(q==0)for(k=_+k;_<k;)Se(D,((q=b[_++])[0]>>24|q[1]>>8&65280|q[2]<<8&16711680|q[3]<<24)>>>0),H+=32;else n(D,H,b,_,k)}function wr(b,_){C[_][0]=C[b+"0"],C[_][1]=C[b+"1"],C[_][2]=C[b+"2"],C[_][3]=C[b+"3"],C[_][4]=C[b+"4"],C[_][5]=C[b+"5"],C[_][6]=C[b+"6"],C[_][7]=C[b+"7"],C[_][8]=C[b+"8"],C[_][9]=C[b+"9"],C[_][10]=C[b+"10"],C[_][11]=C[b+"11"],C[_][12]=C[b+"12"],C[_][13]=C[b+"13"],C[_][14]=C[b+"0"],C[_][15]=C[b+"0"]}function Nt(b){return b==Hw||b==Vw||b==O1||b==Gw}function Lt(){this.eb=[],this.size=this.A=this.fb=0}function Wr(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Jt(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Lt,this.f.kb=new Wr,this.sd=null}function Et(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function dr(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Qs(b){return alert("todo:WebPSamplerProcessPlane"),b.T}function ci(b,_){var k=b.T,D=_.ba.f.RGBA,H=D.eb,q=D.fb+b.ka*D.A,X=vo[_.ba.S],J=b.y,te=b.O,le=b.f,we=b.N,Oe=b.ea,ce=b.W,_e=_.cc,Ee=_.dc,Me=_.Mc,Ce=_.Nc,Be=b.ka,We=b.ka+b.T,qe=b.U,Ve=qe+1>>1;for(Be==0?X(J,te,null,null,le,we,Oe,ce,le,we,Oe,ce,H,q,null,null,qe):(X(_.ec,_.fc,J,te,_e,Ee,Me,Ce,le,we,Oe,ce,H,q-D.A,H,q,qe),++k);Be+2<We;Be+=2)_e=le,Ee=we,Me=Oe,Ce=ce,we+=b.Rc,ce+=b.Rc,q+=2*D.A,X(J,(te+=2*b.fa)-b.fa,J,te,_e,Ee,Me,Ce,le,we,Oe,ce,H,q-D.A,H,q,qe);return te+=b.fa,b.j+We<b.o?(n(_.ec,_.fc,J,te,qe),n(_.cc,_.dc,le,we,Ve),n(_.Mc,_.Nc,Oe,ce,Ve),k--):1&We||X(J,te,null,null,le,we,Oe,ce,le,we,Oe,ce,H,q+D.A,null,null,qe),k}function Uo(b,_,k){var D=b.F,H=[b.J];if(D!=null){var q=b.U,X=_.ba.S,J=X==C1||X==O1;_=_.ba.f.RGBA;var te=[0],le=b.ka;te[0]=b.T,b.Kb&&(le==0?--te[0]:(--le,H[0]-=b.width),b.j+b.ka+b.T==b.o&&(te[0]=b.o-b.j-le));var we=_.eb;le=_.fb+le*_.A,b=sT(D,H[0],b.width,q,te,we,le+(J?0:3),_.A),t(k==te),b&&Nt(X)&&a0(we,le,J,q,te,_.A)}return 0}function uo(b){var _=b.ma,k=_.ba.S,D=11>k,H=k==P1||k==T1||k==C1||k==zw||k==12||Nt(k);if(_.memory=null,_.Ib=null,_.Jb=null,_.Nd=null,!Jp(_.Oa,b,H?11:12))return 0;if(H&&Nt(k)&&Kp(),b.da)alert("todo:use_scaling");else{if(D){if(_.Ib=Qs,b.Kb){if(k=b.U+1>>1,_.memory=a(b.U+2*k),_.memory==null)return 0;_.ec=_.memory,_.fc=0,_.cc=_.ec,_.dc=_.fc+b.U,_.Mc=_.cc,_.Nc=_.dc+k,_.Ib=ci,Kp()}}else alert("todo:EmitYUV");H&&(_.Jb=Uo,D&&Go())}if(D&&!_T){for(b=0;256>b;++b)ZG[b]=89858*(b-128)+j1>>k1,tq[b]=-22014*(b-128)+j1,eq[b]=-45773*(b-128),QG[b]=113618*(b-128)+j1>>k1;for(b=s0;b<Xw;++b)_=76283*(b-16)+j1>>k1,rq[b-s0]=$n(_,255),nq[b-s0]=$n(_+8>>4,15);_T=1}return 1}function Pt(b){var _=b.ma,k=b.U,D=b.T;return t(!(1&b.ka)),0>=k||0>=D?0:(k=_.Ib(b,_),_.Jb!=null&&_.Jb(b,_,k),_.Dc+=k,1)}function Wo(b){b.ma.memory=null}function zo(b,_,k,D){return xe(b,8)!=47?0:(_[0]=xe(b,14)+1,k[0]=xe(b,14)+1,D[0]=xe(b,1),xe(b,3)!=0?0:!b.h)}function Fi(b,_){if(4>b)return b+1;var k=b-2>>1;return(2+(1&b)<<k)+xe(_,k)+1}function va(b,_){return 120<_?_-120:1<=(k=((k=FG[_-1])>>4)*b+(8-(15&k)))?k:1;var k}function sn(b,_,k){var D=F(k),H=b[_+=255&D].g-8;return 0<H&&(Z(k,k.u+8),D=F(k),_+=b[_].value,_+=D&(1<<H)-1),Z(k,k.u+b[_].g),b[_].value}function Fn(b,_,k){return k.g+=b.g,k.value+=b.value<<_>>>0,t(8>=k.g),b.g}function G(b,_,k){var D=b.xc;return t((_=D==0?0:b.vc[b.md*(k>>D)+(_>>D)])<b.Wb),b.Ya[_]}function ue(b,_,k,D){var H=b.ab,q=b.c*_,X=b.C;_=X+_;var J=k,te=D;for(D=b.Ta,k=b.Ua;0<H--;){var le=b.gc[H],we=X,Oe=_,ce=J,_e=te,Ee=(te=D,J=k,le.Ea);switch(t(we<Oe),t(Oe<=le.nc),le.hc){case 2:Tn(ce,_e,(Oe-we)*Ee,te,J);break;case 0:var Me=we,Ce=Oe,Be=te,We=J,qe=(gt=le).Ea;Me==0&&(Qp(ce,_e,null,null,1,Be,We),er(ce,_e+1,0,0,qe-1,Be,We+1),_e+=qe,We+=qe,++Me);for(var Ve=1<<gt.b,wt=Ve-1,ut=$e(qe,gt.b),Gt=gt.K,gt=gt.w+(Me>>gt.b)*ut;Me<Ce;){var or=Gt,Zn=gt,qt=1;for(fd(ce,_e,Be,We-qe,1,Be,We);qt<qe;){var vt=(qt&~wt)+Ve;vt>qe&&(vt=qe),(0,t0[or[Zn++]>>8&15])(ce,_e+ +qt,Be,We+qt-qe,vt-qt,Be,We+qt),qt=vt}_e+=qe,We+=qe,++Me&wt||(gt+=ut)}Oe!=le.nc&&n(te,J-Ee,te,J+(Oe-we-1)*Ee,Ee);break;case 1:for(Ee=ce,Ce=_e,qe=(ce=le.Ea)-(We=ce&~(Be=(_e=1<<le.b)-1)),Me=$e(ce,le.b),Ve=le.K,le=le.w+(we>>le.b)*Me;we<Oe;){for(wt=Ve,ut=le,Gt=new dt,gt=Ce+We,or=Ce+ce;Ce<gt;)mt(wt[ut++],Gt),r0(Gt,Ee,Ce,_e,te,J),Ce+=_e,J+=_e;Ce<or&&(mt(wt[ut++],Gt),r0(Gt,Ee,Ce,qe,te,J),Ce+=qe,J+=qe),++we&Be||(le+=Me)}break;case 3:if(ce==te&&_e==J&&0<le.b){for(Ce=te,ce=Ee=J+(Oe-we)*Ee-(We=(Oe-we)*$e(le.Ea,le.b)),_e=te,Be=J,Me=[],We=(qe=We)-1;0<=We;--We)Me[We]=_e[Be+We];for(We=qe-1;0<=We;--We)Ce[ce+We]=Me[We];_1(le,we,Oe,te,Ee,te,J)}else _1(le,we,Oe,ce,_e,te,J)}J=D,te=k}te!=k&&n(D,k,J,te,q)}function ee(b,_){var k=b.V,D=b.Ba+b.c*b.C,H=_-b.C;if(t(_<=b.l.o),t(16>=H),0<H){var q=b.l,X=b.Ta,J=b.Ua,te=q.width;if(ue(b,H,k,D),H=J=[J],t((k=b.C)<(D=_)),t(q.v<q.va),D>q.o&&(D=q.o),k<q.j){var le=q.j-k;k=q.j,H[0]+=le*te}if(k>=D?k=0:(H[0]+=4*q.v,q.ka=k-q.j,q.U=q.va-q.v,q.T=D-k,k=1),k){if(J=J[0],11>(k=b.ca).S){var we=k.f.RGBA,Oe=(D=k.S,H=q.U,q=q.T,le=we.eb,we.A),ce=q;for(we=we.fb+b.Ma*we.A;0<ce--;){var _e=X,Ee=J,Me=H,Ce=le,Be=we;switch(D){case N1:n0(_e,Ee,Me,Ce,Be);break;case P1:fc(_e,Ee,Me,Ce,Be);break;case Hw:fc(_e,Ee,Me,Ce,Be),a0(Ce,Be,0,Me,1,0);break;case pT:Fu(_e,Ee,Me,Ce,Be);break;case T1:At(_e,Ee,Me,Ce,Be,1);break;case Vw:At(_e,Ee,Me,Ce,Be,1),a0(Ce,Be,0,Me,1,0);break;case C1:At(_e,Ee,Me,Ce,Be,0);break;case O1:At(_e,Ee,Me,Ce,Be,0),a0(Ce,Be,1,Me,1,0);break;case zw:dc(_e,Ee,Me,Ce,Be);break;case Gw:dc(_e,Ee,Me,Ce,Be),oT(Ce,Be,Me,1,0);break;case mT:hc(_e,Ee,Me,Ce,Be);break;default:t(0)}J+=te,we+=Oe}b.Ma+=q}else alert("todo:EmitRescaledRowsYUVA");t(b.Ma<=k.height)}}b.C=_,t(b.C<=b.i)}function ne(b){var _;if(0<b.ua)return 0;for(_=0;_<b.Wb;++_){var k=b.Ya[_].G,D=b.Ya[_].H;if(0<k[1][D[1]+0].g||0<k[2][D[2]+0].g||0<k[3][D[3]+0].g)return 0}return 1}function fe(b,_,k,D,H,q){if(b.Z!=0){var X=b.qd,J=b.rd;for(t(gc[b.Z]!=null);_<k;++_)gc[b.Z](X,J,D,H,D,H,q),X=D,J=H,H+=q;b.qd=X,b.rd=J}}function he(b,_){var k=b.l.ma,D=k.Z==0||k.Z==1?b.l.j:b.C;if(D=b.C<D?D:b.C,t(_<=b.l.o),_>D){var H=b.l.width,q=k.ca,X=k.tb+H*D,J=b.V,te=b.Ba+b.c*D,le=b.gc;t(b.ab==1),t(le[0].hc==3),Ps(le[0],D,_,J,te,q,X),fe(k,D,_,q,X,H)}b.C=b.Ma=_}function Ne(b,_,k,D,H,q,X){var J=b.$/D,te=b.$%D,le=b.m,we=b.s,Oe=k+b.$,ce=Oe;H=k+D*H;var _e=k+D*q,Ee=280+we.ua,Me=b.Pb?J:16777216,Ce=0<we.ua?we.Wa:null,Be=we.wc,We=Oe<_e?G(we,te,J):null;t(b.C<q),t(_e<=H);var qe=!1;e:for(;;){for(;qe||Oe<_e;){var Ve=0;if(J>=Me){var wt=Oe-k;t((Me=b).Pb),Me.wd=Me.m,Me.xd=wt,0<Me.s.ua&&Ie(Me.s.Wa,Me.s.vb),Me=J+BG}if(te&Be||(We=G(we,te,J)),t(We!=null),We.Qb&&(_[Oe]=We.qb,qe=!0),!qe)if(se(le),We.jc){Ve=le,wt=_;var ut=Oe,Gt=We.pd[F(Ve)&Mu-1];t(We.jc),256>Gt.g?(Z(Ve,Ve.u+Gt.g),wt[ut]=Gt.value,Ve=0):(Z(Ve,Ve.u+Gt.g-256),t(256<=Gt.value),Ve=Gt.value),Ve==0&&(qe=!0)}else Ve=sn(We.G[0],We.H[0],le);if(le.h)break;if(qe||256>Ve){if(!qe)if(We.nd)_[Oe]=(We.qb|Ve<<8)>>>0;else{if(se(le),qe=sn(We.G[1],We.H[1],le),se(le),wt=sn(We.G[2],We.H[2],le),ut=sn(We.G[3],We.H[3],le),le.h)break;_[Oe]=(ut<<24|qe<<16|Ve<<8|wt)>>>0}if(qe=!1,++Oe,++te>=D&&(te=0,++J,X!=null&&J<=q&&!(J%16)&&X(b,J),Ce!=null))for(;ce<Oe;)Ve=_[ce++],Ce.X[(506832829*Ve&4294967295)>>>Ce.Mb]=Ve}else if(280>Ve){if(Ve=Fi(Ve-256,le),wt=sn(We.G[4],We.H[4],le),se(le),wt=va(D,wt=Fi(wt,le)),le.h)break;if(Oe-k<wt||H-Oe<Ve)break e;for(ut=0;ut<Ve;++ut)_[Oe+ut]=_[Oe+ut-wt];for(Oe+=Ve,te+=Ve;te>=D;)te-=D,++J,X!=null&&J<=q&&!(J%16)&&X(b,J);if(t(Oe<=H),te&Be&&(We=G(we,te,J)),Ce!=null)for(;ce<Oe;)Ve=_[ce++],Ce.X[(506832829*Ve&4294967295)>>>Ce.Mb]=Ve}else{if(!(Ve<Ee))break e;for(qe=Ve-280,t(Ce!=null);ce<Oe;)Ve=_[ce++],Ce.X[(506832829*Ve&4294967295)>>>Ce.Mb]=Ve;Ve=Oe,t(!(qe>>>(wt=Ce).Xa)),_[Ve]=wt.X[qe],qe=!0}qe||t(le.h==U(le))}if(b.Pb&&le.h&&Oe<H)t(b.m.h),b.a=5,b.m=b.wd,b.$=b.xd,0<b.s.ua&&Ie(b.s.vb,b.s.Wa);else{if(le.h)break e;X!=null&&X(b,J>q?q:J),b.a=0,b.$=Oe-k}return 1}return b.a=3,0}function je(b){t(b!=null),b.vc=null,b.yc=null,b.Ya=null;var _=b.Wa;_!=null&&(_.X=null),b.vb=null,t(b!=null)}function Pe(){var b=new It;return b==null?null:(b.a=0,b.xb=yT,wr("Predictor","VP8LPredictors"),wr("Predictor","VP8LPredictors_C"),wr("PredictorAdd","VP8LPredictorsAdd"),wr("PredictorAdd","VP8LPredictorsAdd_C"),Tn=Bt,r0=Rt,n0=on,fc=nr,dc=zt,hc=Ht,Fu=Ur,C.VP8LMapColor32b=Ns,C.VP8LMapColor8b=e0,b)}function Te(b,_,k,D,H){var q=1,X=[b],J=[_],te=D.m,le=D.s,we=null,Oe=0;e:for(;;){if(k)for(;q&&xe(te,1);){var ce=X,_e=J,Ee=D,Me=1,Ce=Ee.m,Be=Ee.gc[Ee.ab],We=xe(Ce,2);if(Ee.Oc&1<<We)q=0;else{switch(Ee.Oc|=1<<We,Be.hc=We,Be.Ea=ce[0],Be.nc=_e[0],Be.K=[null],++Ee.ab,t(4>=Ee.ab),We){case 0:case 1:Be.b=xe(Ce,3)+2,Me=Te($e(Be.Ea,Be.b),$e(Be.nc,Be.b),0,Ee,Be.K),Be.K=Be.K[0];break;case 3:var qe,Ve=xe(Ce,8)+1,wt=16<Ve?0:4<Ve?1:2<Ve?2:3;if(ce[0]=$e(Be.Ea,wt),Be.b=wt,qe=Me=Te(Ve,1,0,Ee,Be.K)){var ut,Gt=Ve,gt=Be,or=1<<(8>>gt.b),Zn=a(or);if(Zn==null)qe=0;else{var qt=gt.K[0],vt=gt.w;for(Zn[0]=gt.K[0][0],ut=1;ut<1*Gt;++ut)Zn[ut]=ot(qt[vt+ut],Zn[ut-1]);for(;ut<4*or;++ut)Zn[ut]=0;gt.K[0]=null,gt.K[0]=Zn,qe=1}}Me=qe;break;case 2:break;default:t(0)}q=Me}}if(X=X[0],J=J[0],q&&xe(te,1)&&!(q=1<=(Oe=xe(te,4))&&11>=Oe)){D.a=3;break e}var rt;if(rt=q)t:{var On,Wt,lr,Jr=D,Ai=X,ea=J,yn=Oe,$i=k,ta=Jr.m,Qn=Jr.s,ur=[null],Sr=1,xn=0,_r=$G[yn];r:for(;;){if($i&&xe(ta,1)){var Ei=xe(ta,3)+2,Ko=$e(Ai,Ei),kn=$e(ea,Ei),ya=Ko*kn;if(!Te(Ko,kn,0,Jr,ur))break r;for(ur=ur[0],Qn.xc=Ei,On=0;On<ya;++On){var Mr=ur[On]>>8&65535;ur[On]=Mr,Mr>=Sr&&(Sr=Mr+1)}}if(ta.h)break r;for(Wt=0;5>Wt;++Wt){var ei=gT[Wt];!Wt&&0<yn&&(ei+=1<<yn),xn<ei&&(xn=ei)}var Da=o(Sr*_r,B),ra=Sr,Ra=o(ra,V);if(Ra==null)var Ma=null;else t(65536>=ra),Ma=Ra;var xa=a(xn);if(Ma==null||xa==null||Da==null){Jr.a=1;break r}var Fa=Da;for(On=lr=0;On<Sr;++On){var Hr=Ma[On],$a=Hr.G,Xo=Hr.H,Bu=0,hl=1,Ni=0;for(Wt=0;5>Wt;++Wt){ei=gT[Wt],$a[Wt]=Fa,Xo[Wt]=lr,!Wt&&0<yn&&(ei+=1<<yn);i:{var I1,Yw=ei,D1=Jr,l0=xa,oq=Fa,sq=lr,Jw=0,vc=D1.m,lq=xe(vc,1);if(i(l0,0,0,Yw),lq){var cq=xe(vc,1)+1,uq=xe(vc,1),NT=xe(vc,uq==0?1:8);l0[NT]=1,cq==2&&(l0[NT=xe(vc,8)]=1);var R1=1}else{var PT=a(19),TT=xe(vc,4)+4;if(19<TT){D1.a=3;var M1=0;break i}for(I1=0;I1<TT;++I1)PT[MG[I1]]=xe(vc,3);var Zw=void 0,c0=void 0,CT=D1,fq=PT,F1=Yw,OT=l0,Qw=0,yc=CT.m,kT=8,jT=o(128,B);n:for(;I(jT,0,7,fq,19);){if(xe(yc,1)){var dq=2+2*xe(yc,3);if((Zw=2+xe(yc,dq))>F1)break n}else Zw=F1;for(c0=0;c0<F1&&Zw--;){se(yc);var LT=jT[0+(127&F(yc))];Z(yc,yc.u+LT.g);var hd=LT.value;if(16>hd)OT[c0++]=hd,hd!=0&&(kT=hd);else{var hq=hd==16,IT=hd-16,pq=DG[IT],DT=xe(yc,IG[IT])+pq;if(c0+DT>F1)break n;for(var mq=hq?kT:0;0<DT--;)OT[c0++]=mq}}Qw=1;break n}Qw||(CT.a=3),R1=Qw}(R1=R1&&!vc.h)&&(Jw=I(oq,sq,8,l0,Yw)),R1&&Jw!=0?M1=Jw:(D1.a=3,M1=0)}if(M1==0)break r;if(hl&&RG[Wt]==1&&(hl=Fa[lr].g==0),Bu+=Fa[lr].g,lr+=M1,3>=Wt){var u0,e5=xa[0];for(u0=1;u0<ei;++u0)xa[u0]>e5&&(e5=xa[u0]);Ni+=e5}}if(Hr.nd=hl,Hr.Qb=0,hl&&(Hr.qb=($a[3][Xo[3]+0].value<<24|$a[1][Xo[1]+0].value<<16|$a[2][Xo[2]+0].value)>>>0,Bu==0&&256>$a[0][Xo[0]+0].value&&(Hr.Qb=1,Hr.qb+=$a[0][Xo[0]+0].value<<8)),Hr.jc=!Hr.Qb&&6>Ni,Hr.jc){var $1,pl=Hr;for($1=0;$1<Mu;++$1){var xc=$1,bc=pl.pd[xc],B1=pl.G[0][pl.H[0]+xc];256<=B1.value?(bc.g=B1.g+256,bc.value=B1.value):(bc.g=0,bc.value=0,xc>>=Fn(B1,8,bc),xc>>=Fn(pl.G[1][pl.H[1]+xc],16,bc),xc>>=Fn(pl.G[2][pl.H[2]+xc],0,bc),Fn(pl.G[3][pl.H[3]+xc],24,bc))}}}Qn.vc=ur,Qn.Wb=Sr,Qn.Ya=Ma,Qn.yc=Da,rt=1;break t}rt=0}if(!(q=rt)){D.a=3;break e}if(0<Oe){if(le.ua=1<<Oe,!Y(le.Wa,Oe)){D.a=1,q=0;break e}}else le.ua=0;var t5=D,RT=X,gq=J,r5=t5.s,n5=r5.xc;if(t5.c=RT,t5.i=gq,r5.md=$e(RT,n5),r5.wc=n5==0?-1:(1<<n5)-1,k){D.xb=qG;break e}if((we=a(X*J))==null){D.a=1,q=0;break e}q=(q=Ne(D,we,0,X,J,J,null))&&!te.h;break e}return q?(H!=null?H[0]=we:(t(we==null),t(k)),D.$=0,k||je(le)):je(le),q}function ke(b,_){var k=b.c*b.i,D=k+_+16*_;return t(b.c<=_),b.V=a(D),b.V==null?(b.Ta=null,b.Ua=0,b.a=1,0):(b.Ta=b.V,b.Ua=b.Ba+k+_,1)}function Ge(b,_){var k=b.C,D=_-k,H=b.V,q=b.Ba+b.c*k;for(t(_<=b.l.o);0<D;){var X=16<D?16:D,J=b.l.ma,te=b.l.width,le=te*X,we=J.ca,Oe=J.tb+te*k,ce=b.Ta,_e=b.Ua;ue(b,X,H,q),lT(ce,_e,we,Oe,le),fe(J,k,k+X,we,Oe,te),D-=X,H+=X*b.c,k+=X}t(k==_),b.C=b.Ma=_}function Je(){this.ub=this.yd=this.td=this.Rb=0}function at(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Xe(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function it(){this.Yb=function(){var b=[];return function _(k,D,H){for(var q=H[D],X=0;X<q&&(k.push(H.length>D+1?[]:0),!(H.length<D+1));X++)_(k[X],D+1,H)}(b,0,[3,11]),b}()}function Ct(){this.jb=a(3),this.Wc=s([4,8],it),this.Xc=s([4,17],it)}function Lr(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function ir(){this.ld=this.La=this.dd=this.tc=0}function vn(){this.Na=this.la=0}function Ss(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ho(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function _s(){this.uc=this.M=this.Nb=0,this.wa=Array(new ir),this.Y=0,this.ya=Array(new Ho),this.aa=0,this.l=new id}function fo(){this.y=a(16),this.f=a(8),this.ea=a(8)}function ac(){this.cb=this.a=0,this.sc="",this.m=new O,this.Od=new Je,this.Kc=new at,this.ed=new Lr,this.Qa=new Xe,this.Ic=this.$c=this.Aa=0,this.D=new _s,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,O),this.ia=0,this.pb=o(4,Ss),this.Pa=new Ct,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new fo),this.Hd=0,this.rb=Array(new vn),this.sb=0,this.wa=Array(new ir),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ho),this.L=this.aa=0,this.gd=s([4,2],ir),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function $n(b,_){return 0>b?0:b>_?_:b}function id(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Pw(){var b=new ac;return b!=null&&(b.a=0,b.sc="OK",b.cb=0,b.Xb=0,o0||(o0=ad)),b}function Bn(b,_,k){return b.a==0&&(b.a=_,b.sc=k,b.cb=0),0}function f1(b,_,k){return 3<=k&&b[_+0]==157&&b[_+1]==1&&b[_+2]==42}function As(b,_){if(b==null)return 0;if(b.a=0,b.sc="OK",_==null)return Bn(b,2,"null VP8Io passed to VP8GetHeaders()");var k=_.data,D=_.w,H=_.ha;if(4>H)return Bn(b,7,"Truncated header.");var q=k[D+0]|k[D+1]<<8|k[D+2]<<16,X=b.Od;if(X.Rb=!(1&q),X.td=q>>1&7,X.yd=q>>4&1,X.ub=q>>5,3<X.td)return Bn(b,3,"Incorrect keyframe parameters.");if(!X.yd)return Bn(b,4,"Frame not displayable.");D+=3,H-=3;var J=b.Kc;if(X.Rb){if(7>H)return Bn(b,7,"cannot parse picture header");if(!f1(k,D,H))return Bn(b,3,"Bad code word");J.c=16383&(k[D+4]<<8|k[D+3]),J.Td=k[D+4]>>6,J.i=16383&(k[D+6]<<8|k[D+5]),J.Ud=k[D+6]>>6,D+=7,H-=7,b.za=J.c+15>>4,b.Ub=J.i+15>>4,_.width=J.c,_.height=J.i,_.Da=0,_.j=0,_.v=0,_.va=_.width,_.o=_.height,_.da=0,_.ib=_.width,_.hb=_.height,_.U=_.width,_.T=_.height,i((q=b.Pa).jb,0,255,q.jb.length),t((q=b.Qa)!=null),q.Cb=0,q.Bb=0,q.Fb=1,i(q.Zb,0,0,q.Zb.length),i(q.Lb,0,0,q.Lb)}if(X.ub>H)return Bn(b,7,"bad partition length");Q(q=b.m,k,D,X.ub),D+=X.ub,H-=X.ub,X.Rb&&(J.Ld=oe(q),J.Kd=oe(q)),J=b.Qa;var te,le=b.Pa;if(t(q!=null),t(J!=null),J.Cb=oe(q),J.Cb){if(J.Bb=oe(q),oe(q)){for(J.Fb=oe(q),te=0;4>te;++te)J.Zb[te]=oe(q)?K(q,7):0;for(te=0;4>te;++te)J.Lb[te]=oe(q)?K(q,6):0}if(J.Bb)for(te=0;3>te;++te)le.jb[te]=oe(q)?ae(q,8):255}else J.Bb=0;if(q.Ka)return Bn(b,3,"cannot parse segment header");if((J=b.ed).zd=oe(q),J.Tb=ae(q,6),J.wb=ae(q,3),J.Pc=oe(q),J.Pc&&oe(q)){for(le=0;4>le;++le)oe(q)&&(J.vd[le]=K(q,6));for(le=0;4>le;++le)oe(q)&&(J.od[le]=K(q,6))}if(b.L=J.Tb==0?0:J.zd?1:2,q.Ka)return Bn(b,3,"cannot parse filter header");var we=H;if(H=te=D,D=te+we,J=we,b.Xb=(1<<ae(b.m,2))-1,we<3*(le=b.Xb))k=7;else{for(te+=3*le,J-=3*le,we=0;we<le;++we){var Oe=k[H+0]|k[H+1]<<8|k[H+2]<<16;Oe>J&&(Oe=J),Q(b.Jc[+we],k,te,Oe),te+=Oe,J-=Oe,H+=3}Q(b.Jc[+le],k,te,J),k=te<D?0:5}if(k!=0)return Bn(b,k,"cannot parse partitions");for(k=ae(te=b.m,7),H=oe(te)?K(te,4):0,D=oe(te)?K(te,4):0,J=oe(te)?K(te,4):0,le=oe(te)?K(te,4):0,te=oe(te)?K(te,4):0,we=b.Qa,Oe=0;4>Oe;++Oe){if(we.Cb){var ce=we.Zb[Oe];we.Fb||(ce+=k)}else{if(0<Oe){b.pb[Oe]=b.pb[0];continue}ce=k}var _e=b.pb[Oe];_e.Sc[0]=qw[$n(ce+H,127)],_e.Sc[1]=Kw[$n(ce+0,127)],_e.Eb[0]=2*qw[$n(ce+D,127)],_e.Eb[1]=101581*Kw[$n(ce+J,127)]>>16,8>_e.Eb[1]&&(_e.Eb[1]=8),_e.Qc[0]=qw[$n(ce+le,117)],_e.Qc[1]=Kw[$n(ce+te,127)],_e.lc=ce+te}if(!X.Rb)return Bn(b,4,"Not a key frame.");for(oe(q),X=b.Pa,k=0;4>k;++k){for(H=0;8>H;++H)for(D=0;3>D;++D)for(J=0;11>J;++J)le=pe(q,VG[k][H][D][J])?ae(q,8):zG[k][H][D][J],X.Wc[k][H].Yb[D][J]=le;for(H=0;17>H;++H)X.Xc[k][H]=X.Wc[k][GG[H]]}return b.kc=oe(q),b.kc&&(b.Bd=ae(q,8)),b.cb=1}function ad(b,_,k,D,H,q,X){var J=_[H].Yb[k];for(k=0;16>H;++H){if(!pe(b,J[k+0]))return H;for(;!pe(b,J[k+1]);)if(J=_[++H].Yb[0],k=0,H==16)return 16;var te=_[H+1].Yb;if(pe(b,J[k+2])){var le=b,we=0;if(pe(le,(ce=J)[(Oe=k)+3]))if(pe(le,ce[Oe+6])){for(J=0,Oe=2*(we=pe(le,ce[Oe+8]))+(ce=pe(le,ce[Oe+9+we])),we=0,ce=UG[Oe];ce[J];++J)we+=we+pe(le,ce[J]);we+=3+(8<<Oe)}else pe(le,ce[Oe+7])?(we=7+2*pe(le,165),we+=pe(le,145)):we=5+pe(le,159);else we=pe(le,ce[Oe+4])?3+pe(le,ce[Oe+5]):2;J=te[2]}else we=1,J=te[1];te=X+WG[H],0>(le=b).b&&ve(le);var Oe,ce=le.b,_e=(Oe=le.Ca>>1)-(le.I>>ce)>>31;--le.b,le.Ca+=_e,le.Ca|=1,le.I-=(Oe+1&_e)<<ce,q[te]=((we^_e)-_e)*D[(0<H)+0]}return 16}function d1(b){var _=b.rb[b.sb-1];_.la=0,_.Na=0,i(b.zc,0,0,b.zc.length),b.ja=0}function ho(b,_,k,D,H){H=b[_+k+32*D]+(H>>3),b[_+k+32*D]=-256&H?0>H?0:255:H}function Xn(b,_,k,D,H,q){ho(b,_,0,k,D+H),ho(b,_,1,k,D+q),ho(b,_,2,k,D-q),ho(b,_,3,k,D-H)}function el(b){return(20091*b>>16)+b}function h1(b,_,k,D){var H,q=0,X=a(16);for(H=0;4>H;++H){var J=b[_+0]+b[_+8],te=b[_+0]-b[_+8],le=(35468*b[_+4]>>16)-el(b[_+12]),we=el(b[_+4])+(35468*b[_+12]>>16);X[q+0]=J+we,X[q+1]=te+le,X[q+2]=te-le,X[q+3]=J-we,q+=4,_++}for(H=q=0;4>H;++H)J=(b=X[q+0]+4)+X[q+8],te=b-X[q+8],le=(35468*X[q+4]>>16)-el(X[q+12]),ho(k,D,0,0,J+(we=el(X[q+4])+(35468*X[q+12]>>16))),ho(k,D,1,0,te+le),ho(k,D,2,0,te-le),ho(k,D,3,0,J-we),q++,D+=32}function Tw(b,_,k,D){var H=b[_+0]+4,q=35468*b[_+4]>>16,X=el(b[_+4]),J=35468*b[_+1]>>16;Xn(k,D,0,H+X,b=el(b[_+1]),J),Xn(k,D,1,H+q,b,J),Xn(k,D,2,H-q,b,J),Xn(k,D,3,H-X,b,J)}function Cw(b,_,k,D,H){h1(b,_,k,D),H&&h1(b,_+16,k,D+4)}function Es(b,_,k,D){$u(b,_+0,k,D,1),$u(b,_+32,k,D+128,1)}function p1(b,_,k,D){var H;for(b=b[_+0]+4,H=0;4>H;++H)for(_=0;4>_;++_)ho(k,D,_,H,b)}function m1(b,_,k,D){b[_+0]&&yr(b,_+0,k,D),b[_+16]&&yr(b,_+16,k,D+4),b[_+32]&&yr(b,_+32,k,D+128),b[_+48]&&yr(b,_+48,k,D+128+4)}function od(b,_,k,D){var H,q=a(16);for(H=0;4>H;++H){var X=b[_+0+H]+b[_+12+H],J=b[_+4+H]+b[_+8+H],te=b[_+4+H]-b[_+8+H],le=b[_+0+H]-b[_+12+H];q[0+H]=X+J,q[8+H]=X-J,q[4+H]=le+te,q[12+H]=le-te}for(H=0;4>H;++H)X=(b=q[0+4*H]+3)+q[3+4*H],J=q[1+4*H]+q[2+4*H],te=q[1+4*H]-q[2+4*H],le=b-q[3+4*H],k[D+0]=X+J>>3,k[D+16]=le+te>>3,k[D+32]=X-J>>3,k[D+48]=le-te>>3,D+=64}function Pu(b,_,k){var D,H=_-32,q=Ia,X=255-b[H-1];for(D=0;D<k;++D){var J,te=q,le=X+b[_-1];for(J=0;J<k;++J)b[_+J]=te[le+b[H+J]];_+=32}}function Ow(b,_){Pu(b,_,4)}function kw(b,_){Pu(b,_,8)}function jw(b,_){Pu(b,_,16)}function Bp(b,_){var k;for(k=0;16>k;++k)n(b,_+32*k,b,_-32,16)}function g1(b,_){var k;for(k=16;0<k;--k)i(b,_,b[_-1],16),_+=32}function Vo(b,_,k){var D;for(D=0;16>D;++D)i(_,k+32*D,b,16)}function Lw(b,_){var k,D=16;for(k=0;16>k;++k)D+=b[_-1+32*k]+b[_+k-32];Vo(D>>5,b,_)}function Tu(b,_){var k,D=8;for(k=0;16>k;++k)D+=b[_-1+32*k];Vo(D>>4,b,_)}function Up(b,_){var k,D=8;for(k=0;16>k;++k)D+=b[_+k-32];Vo(D>>4,b,_)}function Iw(b,_){Vo(128,b,_)}function Mt(b,_,k){return b+2*_+k+2>>2}function Dw(b,_){var k,D=_-32;for(D=new Uint8Array([Mt(b[D-1],b[D+0],b[D+1]),Mt(b[D+0],b[D+1],b[D+2]),Mt(b[D+1],b[D+2],b[D+3]),Mt(b[D+2],b[D+3],b[D+4])]),k=0;4>k;++k)n(b,_+32*k,D,0,D.length)}function Rw(b,_){var k=b[_-1],D=b[_-1+32],H=b[_-1+64],q=b[_-1+96];Se(b,_+0,16843009*Mt(b[_-1-32],k,D)),Se(b,_+32,16843009*Mt(k,D,H)),Se(b,_+64,16843009*Mt(D,H,q)),Se(b,_+96,16843009*Mt(H,q,q))}function Mw(b,_){var k,D=4;for(k=0;4>k;++k)D+=b[_+k-32]+b[_-1+32*k];for(D>>=3,k=0;4>k;++k)i(b,_+32*k,D,4)}function tl(b,_){var k=b[_-1+0],D=b[_-1+32],H=b[_-1+64],q=b[_-1-32],X=b[_+0-32],J=b[_+1-32],te=b[_+2-32],le=b[_+3-32];b[_+0+96]=Mt(D,H,b[_-1+96]),b[_+1+96]=b[_+0+64]=Mt(k,D,H),b[_+2+96]=b[_+1+64]=b[_+0+32]=Mt(q,k,D),b[_+3+96]=b[_+2+64]=b[_+1+32]=b[_+0+0]=Mt(X,q,k),b[_+3+64]=b[_+2+32]=b[_+1+0]=Mt(J,X,q),b[_+3+32]=b[_+2+0]=Mt(te,J,X),b[_+3+0]=Mt(le,te,J)}function rl(b,_){var k=b[_+1-32],D=b[_+2-32],H=b[_+3-32],q=b[_+4-32],X=b[_+5-32],J=b[_+6-32],te=b[_+7-32];b[_+0+0]=Mt(b[_+0-32],k,D),b[_+1+0]=b[_+0+32]=Mt(k,D,H),b[_+2+0]=b[_+1+32]=b[_+0+64]=Mt(D,H,q),b[_+3+0]=b[_+2+32]=b[_+1+64]=b[_+0+96]=Mt(H,q,X),b[_+3+32]=b[_+2+64]=b[_+1+96]=Mt(q,X,J),b[_+3+64]=b[_+2+96]=Mt(X,J,te),b[_+3+96]=Mt(J,te,te)}function Fw(b,_){var k=b[_-1+0],D=b[_-1+32],H=b[_-1+64],q=b[_-1-32],X=b[_+0-32],J=b[_+1-32],te=b[_+2-32],le=b[_+3-32];b[_+0+0]=b[_+1+64]=q+X+1>>1,b[_+1+0]=b[_+2+64]=X+J+1>>1,b[_+2+0]=b[_+3+64]=J+te+1>>1,b[_+3+0]=te+le+1>>1,b[_+0+96]=Mt(H,D,k),b[_+0+64]=Mt(D,k,q),b[_+0+32]=b[_+1+96]=Mt(k,q,X),b[_+1+32]=b[_+2+96]=Mt(q,X,J),b[_+2+32]=b[_+3+96]=Mt(X,J,te),b[_+3+32]=Mt(J,te,le)}function $w(b,_){var k=b[_+0-32],D=b[_+1-32],H=b[_+2-32],q=b[_+3-32],X=b[_+4-32],J=b[_+5-32],te=b[_+6-32],le=b[_+7-32];b[_+0+0]=k+D+1>>1,b[_+1+0]=b[_+0+64]=D+H+1>>1,b[_+2+0]=b[_+1+64]=H+q+1>>1,b[_+3+0]=b[_+2+64]=q+X+1>>1,b[_+0+32]=Mt(k,D,H),b[_+1+32]=b[_+0+96]=Mt(D,H,q),b[_+2+32]=b[_+1+96]=Mt(H,q,X),b[_+3+32]=b[_+2+96]=Mt(q,X,J),b[_+3+64]=Mt(X,J,te),b[_+3+96]=Mt(J,te,le)}function sd(b,_){var k=b[_-1+0],D=b[_-1+32],H=b[_-1+64],q=b[_-1+96];b[_+0+0]=k+D+1>>1,b[_+2+0]=b[_+0+32]=D+H+1>>1,b[_+2+32]=b[_+0+64]=H+q+1>>1,b[_+1+0]=Mt(k,D,H),b[_+3+0]=b[_+1+32]=Mt(D,H,q),b[_+3+32]=b[_+1+64]=Mt(H,q,q),b[_+3+64]=b[_+2+64]=b[_+0+96]=b[_+1+96]=b[_+2+96]=b[_+3+96]=q}function Wp(b,_){var k=b[_-1+0],D=b[_-1+32],H=b[_-1+64],q=b[_-1+96],X=b[_-1-32],J=b[_+0-32],te=b[_+1-32],le=b[_+2-32];b[_+0+0]=b[_+2+32]=k+X+1>>1,b[_+0+32]=b[_+2+64]=D+k+1>>1,b[_+0+64]=b[_+2+96]=H+D+1>>1,b[_+0+96]=q+H+1>>1,b[_+3+0]=Mt(J,te,le),b[_+2+0]=Mt(X,J,te),b[_+1+0]=b[_+3+32]=Mt(k,X,J),b[_+1+32]=b[_+3+64]=Mt(D,k,X),b[_+1+64]=b[_+3+96]=Mt(H,D,k),b[_+1+96]=Mt(q,H,D)}function Cu(b,_){var k;for(k=0;8>k;++k)n(b,_+32*k,b,_-32,8)}function Bw(b,_){var k;for(k=0;8>k;++k)i(b,_,b[_-1],8),_+=32}function nl(b,_,k){var D;for(D=0;8>D;++D)i(_,k+32*D,b,8)}function Uw(b,_){var k,D=8;for(k=0;8>k;++k)D+=b[_+k-32]+b[_-1+32*k];nl(D>>4,b,_)}function zp(b,_){var k,D=4;for(k=0;8>k;++k)D+=b[_+k-32];nl(D>>3,b,_)}function Hp(b,_){var k,D=4;for(k=0;8>k;++k)D+=b[_-1+32*k];nl(D>>3,b,_)}function v1(b,_){nl(128,b,_)}function il(b,_,k){var D=b[_-k],H=b[_+0],q=3*(H-D)+Ww[1020+b[_-2*k]-b[_+k]],X=E1[112+(q+4>>3)];b[_-k]=Ia[255+D+E1[112+(q+3>>3)]],b[_+0]=Ia[255+H-X]}function Vp(b,_,k,D){var H=b[_+0],q=b[_+k];return go[255+b[_-2*k]-b[_-k]]>D||go[255+q-H]>D}function ld(b,_,k,D){return 4*go[255+b[_-k]-b[_+0]]+go[255+b[_-2*k]-b[_+k]]<=D}function Gp(b,_,k,D,H){var q=b[_-3*k],X=b[_-2*k],J=b[_-k],te=b[_+0],le=b[_+k],we=b[_+2*k],Oe=b[_+3*k];return 4*go[255+J-te]+go[255+X-le]>D?0:go[255+b[_-4*k]-q]<=H&&go[255+q-X]<=H&&go[255+X-J]<=H&&go[255+Oe-we]<=H&&go[255+we-le]<=H&&go[255+le-te]<=H}function Ou(b,_,k,D){var H=2*D+1;for(D=0;16>D;++D)ld(b,_+D,k,H)&&il(b,_+D,k)}function qp(b,_,k,D){var H=2*D+1;for(D=0;16>D;++D)ld(b,_+D*k,1,H)&&il(b,_+D*k,1)}function y1(b,_,k,D){var H;for(H=3;0<H;--H)Ou(b,_+=4*k,k,D)}function x1(b,_,k,D){var H;for(H=3;0<H;--H)qp(b,_+=4,k,D)}function al(b,_,k,D,H,q,X,J){for(q=2*q+1;0<H--;){if(Gp(b,_,k,q,X))if(Vp(b,_,k,J))il(b,_,k);else{var te=b,le=_,we=k,Oe=te[le-2*we],ce=te[le-we],_e=te[le+0],Ee=te[le+we],Me=te[le+2*we],Ce=27*(We=Ww[1020+3*(_e-ce)+Ww[1020+Oe-Ee]])+63>>7,Be=18*We+63>>7,We=9*We+63>>7;te[le-3*we]=Ia[255+te[le-3*we]+We],te[le-2*we]=Ia[255+Oe+Be],te[le-we]=Ia[255+ce+Ce],te[le+0]=Ia[255+_e-Ce],te[le+we]=Ia[255+Ee-Be],te[le+2*we]=Ia[255+Me-We]}_+=D}}function ol(b,_,k,D,H,q,X,J){for(q=2*q+1;0<H--;){if(Gp(b,_,k,q,X))if(Vp(b,_,k,J))il(b,_,k);else{var te=b,le=_,we=k,Oe=te[le-we],ce=te[le+0],_e=te[le+we],Ee=E1[112+(4+(Me=3*(ce-Oe))>>3)],Me=E1[112+(Me+3>>3)],Ce=Ee+1>>1;te[le-2*we]=Ia[255+te[le-2*we]+Ce],te[le-we]=Ia[255+Oe+Me],te[le+0]=Ia[255+ce-Ee],te[le+we]=Ia[255+_e-Ce]}_+=D}}function b1(b,_,k,D,H,q){al(b,_,k,1,16,D,H,q)}function ku(b,_,k,D,H,q){al(b,_,1,k,16,D,H,q)}function w1(b,_,k,D,H,q){var X;for(X=3;0<X;--X)ol(b,_+=4*k,k,1,16,D,H,q)}function T(b,_,k,D,H,q){var X;for(X=3;0<X;--X)ol(b,_+=4,1,k,16,D,H,q)}function W(b,_,k,D,H,q,X,J){al(b,_,H,1,8,q,X,J),al(k,D,H,1,8,q,X,J)}function de(b,_,k,D,H,q,X,J){al(b,_,1,H,8,q,X,J),al(k,D,1,H,8,q,X,J)}function be(b,_,k,D,H,q,X,J){ol(b,_+4*H,H,1,8,q,X,J),ol(k,D+4*H,H,1,8,q,X,J)}function Ae(b,_,k,D,H,q,X,J){ol(b,_+4,1,H,8,q,X,J),ol(k,D+4,1,H,8,q,X,J)}function Ue(){this.ba=new Jt,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new dr,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function He(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ht(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function xt(){this.ua=0,this.Wa=new De,this.vb=new De,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new V,this.yc=new B}function It(){this.xb=this.a=0,this.l=new id,this.ca=new Jt,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new M,this.Pb=0,this.wd=new M,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new xt,this.ab=0,this.gc=o(4,ht),this.Oc=0}function Vt(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new id,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cr(b,_,k,D,H,q,X){for(b=b==null?0:b[_+0],_=0;_<X;++_)H[q+_]=b+k[D+_]&255,b=H[q+_]}function fn(b,_,k,D,H,q,X){var J;if(b==null)cr(null,null,k,D,H,q,X);else for(J=0;J<X;++J)H[q+J]=b[_+J]+k[D+J]&255}function Un(b,_,k,D,H,q,X){if(b==null)cr(null,null,k,D,H,q,X);else{var J,te=b[_+0],le=te,we=te;for(J=0;J<X;++J)le=we+(te=b[_+J])-le,we=k[D+J]+(-256&le?0>le?0:255:le)&255,le=te,H[q+J]=we}}function zr(b,_,k,D){var H=_.width,q=_.o;if(t(b!=null&&_!=null),0>k||0>=D||k+D>q)return null;if(!b.Cc){if(b.ga==null){var X;if(b.ga=new Vt,(X=b.ga==null)||(X=_.width*_.o,t(b.Gb.length==0),b.Gb=a(X),b.Uc=0,b.Gb==null?X=0:(b.mb=b.Gb,b.nb=b.Uc,b.rc=null,X=1),X=!X),!X){X=b.ga;var J=b.Fa,te=b.P,le=b.qc,we=b.mb,Oe=b.nb,ce=te+1,_e=le-1,Ee=X.l;if(t(J!=null&&we!=null&&_!=null),gc[0]=null,gc[1]=cr,gc[2]=fn,gc[3]=Un,X.ca=we,X.tb=Oe,X.c=_.width,X.i=_.height,t(0<X.c&&0<X.i),1>=le)_=0;else if(X.$a=3&J[te+0],X.Z=J[te+0]>>2&3,X.Lc=J[te+0]>>4&3,te=J[te+0]>>6&3,0>X.$a||1<X.$a||4<=X.Z||1<X.Lc||te)_=0;else if(Ee.put=Pt,Ee.ac=uo,Ee.bc=Wo,Ee.ma=X,Ee.width=_.width,Ee.height=_.height,Ee.Da=_.Da,Ee.v=_.v,Ee.va=_.va,Ee.j=_.j,Ee.o=_.o,X.$a)e:{t(X.$a==1),_=Pe();t:for(;;){if(_==null){_=0;break e}if(t(X!=null),X.mc=_,_.c=X.c,_.i=X.i,_.l=X.l,_.l.ma=X,_.l.width=X.c,_.l.height=X.i,_.a=0,re(_.m,J,ce,_e),!Te(X.c,X.i,1,_,null)||(_.ab==1&&_.gc[0].hc==3&&ne(_.s)?(X.ic=1,J=_.c*_.i,_.Ta=null,_.Ua=0,_.V=a(J),_.Ba=0,_.V==null?(_.a=1,_=0):_=1):(X.ic=0,_=ke(_,X.c)),!_))break t;_=1;break e}X.mc=null,_=0}else _=_e>=X.c*X.i;X=!_}if(X)return null;b.ga.Lc!=1?b.Ga=0:D=q-k}t(b.ga!=null),t(k+D<=q);e:{if(_=(J=b.ga).c,q=J.l.o,J.$a==0){if(ce=b.rc,_e=b.Vc,Ee=b.Fa,te=b.P+1+k*_,le=b.mb,we=b.nb+k*_,t(te<=b.P+b.qc),J.Z!=0)for(t(gc[J.Z]!=null),X=0;X<D;++X)gc[J.Z](ce,_e,Ee,te,le,we,_),ce=le,_e=we,we+=_,te+=_;else for(X=0;X<D;++X)n(le,we,Ee,te,_),ce=le,_e=we,we+=_,te+=_;b.rc=ce,b.Vc=_e}else{if(t(J.mc!=null),_=k+D,t((X=J.mc)!=null),t(_<=X.i),X.C>=_)_=1;else if(J.ic||Go(),J.ic){J=X.V,ce=X.Ba,_e=X.c;var Me=X.i,Ce=(Ee=1,te=X.$/_e,le=X.$%_e,we=X.m,Oe=X.s,X.$),Be=_e*Me,We=_e*_,qe=Oe.wc,Ve=Ce<We?G(Oe,le,te):null;t(Ce<=Be),t(_<=Me),t(ne(Oe));t:for(;;){for(;!we.h&&Ce<We;){if(le&qe||(Ve=G(Oe,le,te)),t(Ve!=null),se(we),256>(Me=sn(Ve.G[0],Ve.H[0],we)))J[ce+Ce]=Me,++Ce,++le>=_e&&(le=0,++te<=_&&!(te%16)&&he(X,te));else{if(!(280>Me)){Ee=0;break t}Me=Fi(Me-256,we);var wt,ut=sn(Ve.G[4],Ve.H[4],we);if(se(we),!(Ce>=(ut=va(_e,ut=Fi(ut,we)))&&Be-Ce>=Me)){Ee=0;break t}for(wt=0;wt<Me;++wt)J[ce+Ce+wt]=J[ce+Ce+wt-ut];for(Ce+=Me,le+=Me;le>=_e;)le-=_e,++te<=_&&!(te%16)&&he(X,te);Ce<We&&le&qe&&(Ve=G(Oe,le,te))}t(we.h==U(we))}he(X,te>_?_:te);break t}!Ee||we.h&&Ce<Be?(Ee=0,X.a=we.h?5:3):X.$=Ce,_=Ee}else _=Ne(X,X.V,X.Ba,X.c,X.i,_,Ge);if(!_){D=0;break e}}k+D>=q&&(b.Cc=1),D=1}if(!D)return null;if(b.Cc&&((D=b.ga)!=null&&(D.mc=null),b.ga=null,0<b.Ga))return alert("todo:WebPDequantizeLevels"),null}return b.nb+k*H}function Yn(b,_,k,D,H,q){for(;0<H--;){var X,J=b,te=_+(k?1:0),le=b,we=_+(k?0:3);for(X=0;X<D;++X){var Oe=le[we+4*X];Oe!=255&&(Oe*=32897,J[te+4*X+0]=J[te+4*X+0]*Oe>>23,J[te+4*X+1]=J[te+4*X+1]*Oe>>23,J[te+4*X+2]=J[te+4*X+2]*Oe>>23)}_+=q}}function Wn(b,_,k,D,H){for(;0<D--;){var q;for(q=0;q<k;++q){var X=b[_+2*q+0],J=15&(le=b[_+2*q+1]),te=4369*J,le=(240&le|le>>4)*te>>16;b[_+2*q+0]=(240&X|X>>4)*te>>16&240|(15&X|X<<4)*te>>16>>4&15,b[_+2*q+1]=240&le|J}_+=H}}function Si(b,_,k,D,H,q,X,J){var te,le,we=255;for(le=0;le<H;++le){for(te=0;te<D;++te){var Oe=b[_+te];q[X+4*te]=Oe,we&=Oe}_+=k,X+=J}return we!=255}function sl(b,_,k,D,H){var q;for(q=0;q<H;++q)k[D+q]=b[_+q]>>8}function Go(){a0=Yn,oT=Wn,sT=Si,lT=sl}function ll(b,_,k){C[b]=function(D,H,q,X,J,te,le,we,Oe,ce,_e,Ee,Me,Ce,Be,We,qe){var Ve,wt=qe-1>>1,ut=J[te+0]|le[we+0]<<16,Gt=Oe[ce+0]|_e[Ee+0]<<16;t(D!=null);var gt=3*ut+Gt+131074>>2;for(_(D[H+0],255>,gt>>16,Me,Ce),q!=null&&(gt=3*Gt+ut+131074>>2,_(q[X+0],255>,gt>>16,Be,We)),Ve=1;Ve<=wt;++Ve){var or=J[te+Ve]|le[we+Ve]<<16,Zn=Oe[ce+Ve]|_e[Ee+Ve]<<16,qt=ut+or+Gt+Zn+524296,vt=qt+2*(or+Gt)>>3;gt=vt+ut>>1,ut=(qt=qt+2*(ut+Zn)>>3)+or>>1,_(D[H+2*Ve-1],255>,gt>>16,Me,Ce+(2*Ve-1)*k),_(D[H+2*Ve-0],255&ut,ut>>16,Me,Ce+(2*Ve-0)*k),q!=null&&(gt=qt+Gt>>1,ut=vt+Zn>>1,_(q[X+2*Ve-1],255>,gt>>16,Be,We+(2*Ve-1)*k),_(q[X+2*Ve+0],255&ut,ut>>16,Be,We+(2*Ve+0)*k)),ut=or,Gt=Zn}1&qe||(gt=3*ut+Gt+131074>>2,_(D[H+qe-1],255>,gt>>16,Me,Ce+(qe-1)*k),q!=null&&(gt=3*Gt+ut+131074>>2,_(q[X+qe-1],255>,gt>>16,Be,We+(qe-1)*k)))}}function Kp(){vo[N1]=KG,vo[P1]=xT,vo[pT]=XG,vo[T1]=bT,vo[C1]=wT,vo[zw]=ST,vo[mT]=YG,vo[Hw]=xT,vo[Vw]=bT,vo[O1]=wT,vo[Gw]=ST}function cd(b){return b&-16384?0>b?0:255:b>>JG}function oc(b,_){return cd((19077*b>>8)+(26149*_>>8)-14234)}function ju(b,_,k){return cd((19077*b>>8)-(6419*_>>8)-(13320*k>>8)+8708)}function Lu(b,_){return cd((19077*b>>8)+(33050*_>>8)-17685)}function sc(b,_,k,D,H){D[H+0]=oc(b,k),D[H+1]=ju(b,_,k),D[H+2]=Lu(b,_)}function _i(b,_,k,D,H){D[H+0]=Lu(b,_),D[H+1]=ju(b,_,k),D[H+2]=oc(b,k)}function Iu(b,_,k,D,H){var q=ju(b,_,k);_=q<<3&224|Lu(b,_)>>3,D[H+0]=248&oc(b,k)|q>>5,D[H+1]=_}function Du(b,_,k,D,H){var q=240&Lu(b,_)|15;D[H+0]=240&oc(b,k)|ju(b,_,k)>>4,D[H+1]=q}function Xp(b,_,k,D,H){D[H+0]=255,sc(b,_,k,D,H+1)}function Yp(b,_,k,D,H){_i(b,_,k,D,H),D[H+3]=255}function Qi(b,_,k,D,H){sc(b,_,k,D,H),D[H+3]=255}function cl(b,_,k){C[b]=function(D,H,q,X,J,te,le,we,Oe){for(var ce=we+(-2&Oe)*k;we!=ce;)_(D[H+0],q[X+0],J[te+0],le,we),_(D[H+1],q[X+0],J[te+0],le,we+k),H+=2,++X,++te,we+=2*k;1&Oe&&_(D[H+0],q[X+0],J[te+0],le,we)}}function ud(b,_,k){return k==0?b==0?_==0?6:5:_==0?4:0:k}function S1(b,_,k,D,H){switch(b>>>30){case 3:$u(_,k,D,H,0);break;case 2:mo(_,k,D,H);break;case 1:yr(_,k,D,H)}}function po(b,_){var k,D,H=_.M,q=_.Nb,X=b.oc,J=b.pc+40,te=b.oc,le=b.pc+584,we=b.oc,Oe=b.pc+600;for(k=0;16>k;++k)X[J+32*k-1]=129;for(k=0;8>k;++k)te[le+32*k-1]=129,we[Oe+32*k-1]=129;for(0<H?X[J-1-32]=te[le-1-32]=we[Oe-1-32]=129:(i(X,J-32-1,127,21),i(te,le-32-1,127,9),i(we,Oe-32-1,127,9)),D=0;D<b.za;++D){var ce=_.ya[_.aa+D];if(0<D){for(k=-1;16>k;++k)n(X,J+32*k-4,X,J+32*k+12,4);for(k=-1;8>k;++k)n(te,le+32*k-4,te,le+32*k+4,4),n(we,Oe+32*k-4,we,Oe+32*k+4,4)}var _e=b.Gd,Ee=b.Hd+D,Me=ce.ad,Ce=ce.Hc;if(0<H&&(n(X,J-32,_e[Ee].y,0,16),n(te,le-32,_e[Ee].f,0,8),n(we,Oe-32,_e[Ee].ea,0,8)),ce.Za){var Be=X,We=J-32+16;for(0<H&&(D>=b.za-1?i(Be,We,_e[Ee].y[15],4):n(Be,We,_e[Ee+1].y,0,4)),k=0;4>k;k++)Be[We+128+k]=Be[We+256+k]=Be[We+384+k]=Be[We+0+k];for(k=0;16>k;++k,Ce<<=2)Be=X,We=J+AT[k],qo[ce.Ob[k]](Be,We),S1(Ce,Me,16*+k,Be,We)}else if(Be=ud(D,H,ce.Ob[0]),mc[Be](X,J),Ce!=0)for(k=0;16>k;++k,Ce<<=2)S1(Ce,Me,16*+k,X,J+AT[k]);for(k=ce.Gc,Be=ud(D,H,ce.Dd),dl[Be](te,le),dl[Be](we,Oe),Ce=Me,Be=te,We=le,255&(ce=0|k)&&(170&ce?Ts(Ce,256,Be,We):Rr(Ce,256,Be,We)),ce=we,Ce=Oe,255&(k>>=8)&&(170&k?Ts(Me,320,ce,Ce):Rr(Me,320,ce,Ce)),H<b.Ub-1&&(n(_e[Ee].y,0,X,J+480,16),n(_e[Ee].f,0,te,le+224,8),n(_e[Ee].ea,0,we,Oe+224,8)),k=8*q*b.B,_e=b.sa,Ee=b.ta+16*D+16*q*b.R,Me=b.qa,ce=b.ra+8*D+k,Ce=b.Ha,Be=b.Ia+8*D+k,k=0;16>k;++k)n(_e,Ee+k*b.R,X,J+32*k,16);for(k=0;8>k;++k)n(Me,ce+k*b.B,te,le+32*k,8),n(Ce,Be+k*b.B,we,Oe+32*k,8)}}function Ru(b,_,k,D,H,q,X,J,te){var le=[0],we=[0],Oe=0,ce=te!=null?te.kd:0,_e=te??new He;if(b==null||12>k)return 7;_e.data=b,_e.w=_,_e.ha=k,_=[_],k=[k],_e.gb=[_e.gb];e:{var Ee=_,Me=k,Ce=_e.gb;if(t(b!=null),t(Me!=null),t(Ce!=null),Ce[0]=0,12<=Me[0]&&!r(b,Ee[0],"RIFF")){if(r(b,Ee[0]+8,"WEBP")){Ce=3;break e}var Be=ie(b,Ee[0]+4);if(12>Be||4294967286<Be){Ce=3;break e}if(ce&&Be>Me[0]-8){Ce=7;break e}Ce[0]=Be,Ee[0]+=12,Me[0]-=12}Ce=0}if(Ce!=0)return Ce;for(Be=0<_e.gb[0],k=k[0];;){e:{var We=b;Me=_,Ce=k;var qe=le,Ve=we,wt=Ee=[0];if((gt=Oe=[Oe])[0]=0,8>Ce[0])Ce=7;else{if(!r(We,Me[0],"VP8X")){if(ie(We,Me[0]+4)!=10){Ce=3;break e}if(18>Ce[0]){Ce=7;break e}var ut=ie(We,Me[0]+8),Gt=1+Le(We,Me[0]+12);if(2147483648<=Gt*(We=1+Le(We,Me[0]+15))){Ce=3;break e}wt!=null&&(wt[0]=ut),qe!=null&&(qe[0]=Gt),Ve!=null&&(Ve[0]=We),Me[0]+=18,Ce[0]-=18,gt[0]=1}Ce=0}}if(Oe=Oe[0],Ee=Ee[0],Ce!=0)return Ce;if(Me=!!(2&Ee),!Be&&Oe)return 3;if(q!=null&&(q[0]=!!(16&Ee)),X!=null&&(X[0]=Me),J!=null&&(J[0]=0),X=le[0],Ee=we[0],Oe&&Me&&te==null){Ce=0;break}if(4>k){Ce=7;break}if(Be&&Oe||!Be&&!Oe&&!r(b,_[0],"ALPH")){k=[k],_e.na=[_e.na],_e.P=[_e.P],_e.Sa=[_e.Sa];e:{ut=b,Ce=_,Be=k;var gt=_e.gb;qe=_e.na,Ve=_e.P,wt=_e.Sa,Gt=22,t(ut!=null),t(Be!=null),We=Ce[0];var or=Be[0];for(t(qe!=null),t(wt!=null),qe[0]=null,Ve[0]=null,wt[0]=0;;){if(Ce[0]=We,Be[0]=or,8>or){Ce=7;break e}var Zn=ie(ut,We+4);if(4294967286<Zn){Ce=3;break e}var qt=8+Zn+1&-2;if(Gt+=qt,0<gt&&Gt>gt){Ce=3;break e}if(!r(ut,We,"VP8 ")||!r(ut,We,"VP8L")){Ce=0;break e}if(or[0]<qt){Ce=7;break e}r(ut,We,"ALPH")||(qe[0]=ut,Ve[0]=We+8,wt[0]=Zn),We+=qt,or-=qt}}if(k=k[0],_e.na=_e.na[0],_e.P=_e.P[0],_e.Sa=_e.Sa[0],Ce!=0)break}k=[k],_e.Ja=[_e.Ja],_e.xa=[_e.xa];e:if(gt=b,Ce=_,Be=k,qe=_e.gb[0],Ve=_e.Ja,wt=_e.xa,ut=Ce[0],We=!r(gt,ut,"VP8 "),Gt=!r(gt,ut,"VP8L"),t(gt!=null),t(Be!=null),t(Ve!=null),t(wt!=null),8>Be[0])Ce=7;else{if(We||Gt){if(gt=ie(gt,ut+4),12<=qe&>>qe-12){Ce=3;break e}if(ce&>>Be[0]-8){Ce=7;break e}Ve[0]=gt,Ce[0]+=8,Be[0]-=8,wt[0]=Gt}else wt[0]=5<=Be[0]&>[ut+0]==47&&!(gt[ut+4]>>5),Ve[0]=Be[0];Ce=0}if(k=k[0],_e.Ja=_e.Ja[0],_e.xa=_e.xa[0],_=_[0],Ce!=0)break;if(4294967286<_e.Ja)return 3;if(J==null||Me||(J[0]=_e.xa?2:1),X=[X],Ee=[Ee],_e.xa){if(5>k){Ce=7;break}J=X,ce=Ee,Me=q,b==null||5>k?b=0:5<=k&&b[_+0]==47&&!(b[_+4]>>5)?(Be=[0],gt=[0],qe=[0],re(Ve=new M,b,_,k),zo(Ve,Be,gt,qe)?(J!=null&&(J[0]=Be[0]),ce!=null&&(ce[0]=gt[0]),Me!=null&&(Me[0]=qe[0]),b=1):b=0):b=0}else{if(10>k){Ce=7;break}J=Ee,b==null||10>k||!f1(b,_+3,k-3)?b=0:(ce=b[_+0]|b[_+1]<<8|b[_+2]<<16,Me=16383&(b[_+7]<<8|b[_+6]),b=16383&(b[_+9]<<8|b[_+8]),1&ce||3<(ce>>1&7)||!(ce>>4&1)||ce>>5>=_e.Ja||!Me||!b?b=0:(X&&(X[0]=Me),J&&(J[0]=b),b=1))}if(!b||(X=X[0],Ee=Ee[0],Oe&&(le[0]!=X||we[0]!=Ee)))return 3;te!=null&&(te[0]=_e,te.offset=_-te.w,t(4294967286>_-te.w),t(te.offset==te.ha-k));break}return Ce==0||Ce==7&&Oe&&te==null?(q!=null&&(q[0]|=_e.na!=null&&0<_e.na.length),D!=null&&(D[0]=X),H!=null&&(H[0]=Ee),0):Ce}function Jp(b,_,k){var D=_.width,H=_.height,q=0,X=0,J=D,te=H;if(_.Da=b!=null&&0<b.Da,_.Da&&(J=b.cd,te=b.bd,q=b.v,X=b.j,11>k||(q&=-2,X&=-2),0>q||0>X||0>=J||0>=te||q+J>D||X+te>H))return 0;if(_.v=q,_.j=X,_.va=q+J,_.o=X+te,_.U=J,_.T=te,_.da=b!=null&&0<b.da,_.da){if(!nt(J,te,k=[b.ib],q=[b.hb]))return 0;_.ib=k[0],_.hb=q[0]}return _.ob=b!=null&&b.ob,_.Kb=b==null||!b.Sd,_.da&&(_.ob=_.ib<3*D/4&&_.hb<3*H/4,_.Kb=0),1}function Zp(b){if(b==null)return 2;if(11>b.S){var _=b.f.RGBA;_.fb+=(b.height-1)*_.A,_.A=-_.A}else _=b.f.kb,b=b.height,_.O+=(b-1)*_.fa,_.fa=-_.fa,_.N+=(b-1>>1)*_.Ab,_.Ab=-_.Ab,_.W+=(b-1>>1)*_.Db,_.Db=-_.Db,_.F!=null&&(_.J+=(b-1)*_.lb,_.lb=-_.lb);return 0}function lc(b,_,k,D){if(D==null||0>=b||0>=_)return 2;if(k!=null){if(k.Da){var H=k.cd,q=k.bd,X=-2&k.v,J=-2&k.j;if(0>X||0>J||0>=H||0>=q||X+H>b||J+q>_)return 2;b=H,_=q}if(k.da){if(!nt(b,_,H=[k.ib],q=[k.hb]))return 2;b=H[0],_=q[0]}}D.width=b,D.height=_;e:{var te=D.width,le=D.height;if(b=D.S,0>=te||0>=le||!(b>=N1&&13>b))b=2;else{if(0>=D.Rd&&D.sd==null){X=q=H=_=0;var we=(J=te*ET[b])*le;if(11>b||(q=(le+1)/2*(_=(te+1)/2),b==12&&(X=(H=te)*le)),(le=a(we+2*q+X))==null){b=1;break e}D.sd=le,11>b?((te=D.f.RGBA).eb=le,te.fb=0,te.A=J,te.size=we):((te=D.f.kb).y=le,te.O=0,te.fa=J,te.Fd=we,te.f=le,te.N=0+we,te.Ab=_,te.Cd=q,te.ea=le,te.W=0+we+q,te.Db=_,te.Ed=q,b==12&&(te.F=le,te.J=0+we+2*q),te.Tc=X,te.lb=H)}if(_=1,H=D.S,q=D.width,X=D.height,H>=N1&&13>H)if(11>H)b=D.f.RGBA,_&=(J=Math.abs(b.A))*(X-1)+q<=b.size,_&=J>=q*ET[H],_&=b.eb!=null;else{b=D.f.kb,J=(q+1)/2,we=(X+1)/2,te=Math.abs(b.fa),le=Math.abs(b.Ab);var Oe=Math.abs(b.Db),ce=Math.abs(b.lb),_e=ce*(X-1)+q;_&=te*(X-1)+q<=b.Fd,_&=le*(we-1)+J<=b.Cd,_=(_&=Oe*(we-1)+J<=b.Ed)&te>=q&le>=J&Oe>=J,_&=b.y!=null,_&=b.f!=null,_&=b.ea!=null,H==12&&(_&=ce>=q,_&=_e<=b.Tc,_&=b.F!=null)}else _=0;b=_?0:2}}return b!=0||k!=null&&k.fd&&(b=Zp(D)),b}var Mu=64,ja=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],La=24,cc=32,ul=8,uc=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];tt("Predictor0","PredictorAdd0"),C.Predictor0=function(){return 4278190080},C.Predictor1=function(b){return b},C.Predictor2=function(b,_,k){return _[k+0]},C.Predictor3=function(b,_,k){return _[k+1]},C.Predictor4=function(b,_,k){return _[k-1]},C.Predictor5=function(b,_,k){return pt(pt(b,_[k+1]),_[k+0])},C.Predictor6=function(b,_,k){return pt(b,_[k-1])},C.Predictor7=function(b,_,k){return pt(b,_[k+0])},C.Predictor8=function(b,_,k){return pt(_[k-1],_[k+0])},C.Predictor9=function(b,_,k){return pt(_[k+0],_[k+1])},C.Predictor10=function(b,_,k){return pt(pt(b,_[k-1]),pt(_[k+0],_[k+1]))},C.Predictor11=function(b,_,k){var D=_[k+0];return 0>=kt(D>>24&255,b>>24&255,(_=_[k-1])>>24&255)+kt(D>>16&255,b>>16&255,_>>16&255)+kt(D>>8&255,b>>8&255,_>>8&255)+kt(255&D,255&b,255&_)?D:b},C.Predictor12=function(b,_,k){var D=_[k+0];return(Ft((b>>24&255)+(D>>24&255)-((_=_[k-1])>>24&255))<<24|Ft((b>>16&255)+(D>>16&255)-(_>>16&255))<<16|Ft((b>>8&255)+(D>>8&255)-(_>>8&255))<<8|Ft((255&b)+(255&D)-(255&_)))>>>0},C.Predictor13=function(b,_,k){var D=_[k-1];return($t((b=pt(b,_[k+0]))>>24&255,D>>24&255)<<24|$t(b>>16&255,D>>16&255)<<16|$t(b>>8&255,D>>8&255)<<8|$t(255&b,255&D))>>>0};var Qp=C.PredictorAdd0;C.PredictorAdd1=er,tt("Predictor2","PredictorAdd2"),tt("Predictor3","PredictorAdd3"),tt("Predictor4","PredictorAdd4"),tt("Predictor5","PredictorAdd5"),tt("Predictor6","PredictorAdd6"),tt("Predictor7","PredictorAdd7"),tt("Predictor8","PredictorAdd8"),tt("Predictor9","PredictorAdd9"),tt("Predictor10","PredictorAdd10"),tt("Predictor11","PredictorAdd11"),tt("Predictor12","PredictorAdd12"),tt("Predictor13","PredictorAdd13");var fd=C.PredictorAdd2;yt("ColorIndexInverseTransform","MapARGB","32b",function(b){return b>>8&255},function(b){return b}),yt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(b){return b},function(b){return b>>8&255});var Tn,_1=C.ColorIndexInverseTransform,Ns=C.MapARGB,Ps=C.VP8LColorIndexInverseTransformAlpha,e0=C.MapAlpha,t0=C.VP8LPredictorsAdd=[];t0.length=16,(C.VP8LPredictors=[]).length=16,(C.VP8LPredictorsAdd_C=[]).length=16,(C.VP8LPredictors_C=[]).length=16;var r0,n0,fc,dc,hc,Fu,pc,$u,mo,Ts,yr,Rr,Cn,Jn,fl,i0,dd,A1,eT,tT,rT,nT,iT,aT,a0,oT,sT,lT,cT=a(511),uT=a(2041),fT=a(225),dT=a(767),hT=0,Ww=uT,E1=fT,Ia=dT,go=cT,N1=0,P1=1,pT=2,T1=3,C1=4,zw=5,mT=6,Hw=7,Vw=8,O1=9,Gw=10,IG=[2,3,7],DG=[3,3,11],gT=[280,256,256,256,40],RG=[0,1,1,1,0],MG=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],FG=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],$G=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],BG=8,qw=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],Kw=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],o0=null,UG=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],WG=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],vT=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],zG=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],HG=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],VG=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],GG=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],mc=[],qo=[],dl=[],qG=1,yT=2,gc=[],vo=[];ll("UpsampleRgbLinePair",sc,3),ll("UpsampleBgrLinePair",_i,3),ll("UpsampleRgbaLinePair",Qi,4),ll("UpsampleBgraLinePair",Yp,4),ll("UpsampleArgbLinePair",Xp,4),ll("UpsampleRgba4444LinePair",Du,2),ll("UpsampleRgb565LinePair",Iu,2);var KG=C.UpsampleRgbLinePair,XG=C.UpsampleBgrLinePair,xT=C.UpsampleRgbaLinePair,bT=C.UpsampleBgraLinePair,wT=C.UpsampleArgbLinePair,ST=C.UpsampleRgba4444LinePair,YG=C.UpsampleRgb565LinePair,k1=16,j1=1<<k1-1,s0=-227,Xw=482,JG=6,_T=0,ZG=a(256),QG=a(256),eq=a(256),tq=a(256),rq=a(Xw-s0),nq=a(Xw-s0);cl("YuvToRgbRow",sc,3),cl("YuvToBgrRow",_i,3),cl("YuvToRgbaRow",Qi,4),cl("YuvToBgraRow",Yp,4),cl("YuvToArgbRow",Xp,4),cl("YuvToRgba4444Row",Du,2),cl("YuvToRgb565Row",Iu,2);var AT=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],L1=[0,2,8],iq=[8,7,6,4,4,2,2,2,1,1,1,1],aq=1;this.WebPDecodeRGBA=function(b,_,k,D,H){var q=P1,X=new Ue,J=new Jt;X.ba=J,J.S=q,J.width=[J.width],J.height=[J.height];var te=J.width,le=J.height,we=new Et;if(we==null||b==null)var Oe=2;else t(we!=null),Oe=Ru(b,_,k,we.width,we.height,we.Pd,we.Qd,we.format,null);if(Oe!=0?te=0:(te!=null&&(te[0]=we.width[0]),le!=null&&(le[0]=we.height[0]),te=1),te){J.width=J.width[0],J.height=J.height[0],D!=null&&(D[0]=J.width),H!=null&&(H[0]=J.height);e:{if(D=new id,(H=new He).data=b,H.w=_,H.ha=k,H.kd=1,_=[0],t(H!=null),((b=Ru(H.data,H.w,H.ha,null,null,null,_,null,H))==0||b==7)&&_[0]&&(b=4),(_=b)==0){if(t(X!=null),D.data=H.data,D.w=H.w+H.offset,D.ha=H.ha-H.offset,D.put=Pt,D.ac=uo,D.bc=Wo,D.ma=X,H.xa){if((b=Pe())==null){X=1;break e}if(function(ce,_e){var Ee=[0],Me=[0],Ce=[0];t:for(;;){if(ce==null)return 0;if(_e==null)return ce.a=2,0;if(ce.l=_e,ce.a=0,re(ce.m,_e.data,_e.w,_e.ha),!zo(ce.m,Ee,Me,Ce)){ce.a=3;break t}if(ce.xb=yT,_e.width=Ee[0],_e.height=Me[0],!Te(Ee[0],Me[0],1,ce,null))break t;return 1}return t(ce.a!=0),0}(b,D)){if(D=(_=lc(D.width,D.height,X.Oa,X.ba))==0){t:{D=b;r:for(;;){if(D==null){D=0;break t}if(t(D.s.yc!=null),t(D.s.Ya!=null),t(0<D.s.Wb),t((k=D.l)!=null),t((H=k.ma)!=null),D.xb!=0){if(D.ca=H.ba,D.tb=H.tb,t(D.ca!=null),!Jp(H.Oa,k,T1)){D.a=2;break r}if(!ke(D,k.width)||k.da)break r;if((k.da||Nt(D.ca.S))&&Go(),11>D.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),D.ca.f.kb.F!=null&&Go()),D.Pb&&0<D.s.ua&&D.s.vb.X==null&&!Y(D.s.vb,D.s.Wa.Xa)){D.a=1;break r}D.xb=0}if(!Ne(D,D.V,D.Ba,D.c,D.i,k.o,ee))break r;H.Dc=D.Ma,D=1;break t}t(D.a!=0),D=0}D=!D}D&&(_=b.a)}else _=b.a}else{if((b=new Pw)==null){X=1;break e}if(b.Fa=H.na,b.P=H.P,b.qc=H.Sa,As(b,D)){if((_=lc(D.width,D.height,X.Oa,X.ba))==0){if(b.Aa=0,k=X.Oa,t((H=b)!=null),k!=null){if(0<(te=0>(te=k.Md)?0:100<te?255:255*te/100)){for(le=we=0;4>le;++le)12>(Oe=H.pb[le]).lc&&(Oe.ia=te*iq[0>Oe.lc?0:Oe.lc]>>3),we|=Oe.ia;we&&(alert("todo:VP8InitRandom"),H.ia=1)}H.Ga=k.Id,100<H.Ga?H.Ga=100:0>H.Ga&&(H.Ga=0)}(function(ce,_e){if(ce==null)return 0;if(_e==null)return Bn(ce,2,"NULL VP8Io parameter in VP8Decode().");if(!ce.cb&&!As(ce,_e))return 0;if(t(ce.cb),_e.ac==null||_e.ac(_e)){_e.ob&&(ce.L=0);var Ee=L1[ce.L];if(ce.L==2?(ce.yb=0,ce.zb=0):(ce.yb=_e.v-Ee>>4,ce.zb=_e.j-Ee>>4,0>ce.yb&&(ce.yb=0),0>ce.zb&&(ce.zb=0)),ce.Va=_e.o+15+Ee>>4,ce.Hb=_e.va+15+Ee>>4,ce.Hb>ce.za&&(ce.Hb=ce.za),ce.Va>ce.Ub&&(ce.Va=ce.Ub),0<ce.L){var Me=ce.ed;for(Ee=0;4>Ee;++Ee){var Ce;if(ce.Qa.Cb){var Be=ce.Qa.Lb[Ee];ce.Qa.Fb||(Be+=Me.Tb)}else Be=Me.Tb;for(Ce=0;1>=Ce;++Ce){var We=ce.gd[Ee][Ce],qe=Be;if(Me.Pc&&(qe+=Me.vd[0],Ce&&(qe+=Me.od[0])),0<(qe=0>qe?0:63<qe?63:qe)){var Ve=qe;0<Me.wb&&(Ve=4<Me.wb?Ve>>2:Ve>>1)>9-Me.wb&&(Ve=9-Me.wb),1>Ve&&(Ve=1),We.dd=Ve,We.tc=2*qe+Ve,We.ld=40<=qe?2:15<=qe?1:0}else We.tc=0;We.La=Ce}}}Ee=0}else Bn(ce,6,"Frame setup failed"),Ee=ce.a;if(Ee=Ee==0){if(Ee){ce.$c=0,0<ce.Aa||(ce.Ic=aq);t:{Ee=ce.Ic,Me=4*(Ve=ce.za);var wt=32*Ve,ut=Ve+1,Gt=0<ce.L?Ve*(0<ce.Aa?2:1):0,gt=(ce.Aa==2?2:1)*Ve;if((We=Me+832+(Ce=3*(16*Ee+L1[ce.L])/2*wt)+(Be=ce.Fa!=null&&0<ce.Fa.length?ce.Kc.c*ce.Kc.i:0))!=We)Ee=0;else{if(We>ce.Vb){if(ce.Vb=0,ce.Ec=a(We),ce.Fc=0,ce.Ec==null){Ee=Bn(ce,1,"no memory during frame initialization.");break t}ce.Vb=We}We=ce.Ec,qe=ce.Fc,ce.Ac=We,ce.Bc=qe,qe+=Me,ce.Gd=o(wt,fo),ce.Hd=0,ce.rb=o(ut+1,vn),ce.sb=1,ce.wa=Gt?o(Gt,ir):null,ce.Y=0,ce.D.Nb=0,ce.D.wa=ce.wa,ce.D.Y=ce.Y,0<ce.Aa&&(ce.D.Y+=Ve),t(!0),ce.oc=We,ce.pc=qe,qe+=832,ce.ya=o(gt,Ho),ce.aa=0,ce.D.ya=ce.ya,ce.D.aa=ce.aa,ce.Aa==2&&(ce.D.aa+=Ve),ce.R=16*Ve,ce.B=8*Ve,Ve=(wt=L1[ce.L])*ce.R,wt=wt/2*ce.B,ce.sa=We,ce.ta=qe+Ve,ce.qa=ce.sa,ce.ra=ce.ta+16*Ee*ce.R+wt,ce.Ha=ce.qa,ce.Ia=ce.ra+8*Ee*ce.B+wt,ce.$c=0,qe+=Ce,ce.mb=Be?We:null,ce.nb=Be?qe:null,t(qe+Be<=ce.Fc+ce.Vb),d1(ce),i(ce.Ac,ce.Bc,0,Me),Ee=1}}if(Ee){if(_e.ka=0,_e.y=ce.sa,_e.O=ce.ta,_e.f=ce.qa,_e.N=ce.ra,_e.ea=ce.Ha,_e.Vd=ce.Ia,_e.fa=ce.R,_e.Rc=ce.B,_e.F=null,_e.J=0,!hT){for(Ee=-255;255>=Ee;++Ee)cT[255+Ee]=0>Ee?-Ee:Ee;for(Ee=-1020;1020>=Ee;++Ee)uT[1020+Ee]=-128>Ee?-128:127<Ee?127:Ee;for(Ee=-112;112>=Ee;++Ee)fT[112+Ee]=-16>Ee?-16:15<Ee?15:Ee;for(Ee=-255;510>=Ee;++Ee)dT[255+Ee]=0>Ee?0:255<Ee?255:Ee;hT=1}pc=od,$u=Cw,Ts=Es,yr=p1,Rr=m1,mo=Tw,Cn=b1,Jn=ku,fl=W,i0=de,dd=w1,A1=T,eT=be,tT=Ae,rT=Ou,nT=qp,iT=y1,aT=x1,qo[0]=Mw,qo[1]=Ow,qo[2]=Dw,qo[3]=Rw,qo[4]=tl,qo[5]=Fw,qo[6]=rl,qo[7]=$w,qo[8]=Wp,qo[9]=sd,mc[0]=Lw,mc[1]=jw,mc[2]=Bp,mc[3]=g1,mc[4]=Tu,mc[5]=Up,mc[6]=Iw,dl[0]=Uw,dl[1]=kw,dl[2]=Cu,dl[3]=Bw,dl[4]=Hp,dl[5]=zp,dl[6]=v1,Ee=1}else Ee=0}Ee&&(Ee=function(or,Zn){for(or.M=0;or.M<or.Va;++or.M){var qt,vt=or.Jc[or.M&or.Xb],rt=or.m,On=or;for(qt=0;qt<On.za;++qt){var Wt=rt,lr=On,Jr=lr.Ac,Ai=lr.Bc+4*qt,ea=lr.zc,yn=lr.ya[lr.aa+qt];if(lr.Qa.Bb?yn.$b=pe(Wt,lr.Pa.jb[0])?2+pe(Wt,lr.Pa.jb[2]):pe(Wt,lr.Pa.jb[1]):yn.$b=0,lr.kc&&(yn.Ad=pe(Wt,lr.Bd)),yn.Za=!pe(Wt,145)+0,yn.Za){var $i=yn.Ob,ta=0;for(lr=0;4>lr;++lr){var Qn,ur=ea[0+lr];for(Qn=0;4>Qn;++Qn){ur=HG[Jr[Ai+Qn]][ur];for(var Sr=vT[pe(Wt,ur[0])];0<Sr;)Sr=vT[2*Sr+pe(Wt,ur[Sr])];ur=-Sr,Jr[Ai+Qn]=ur}n($i,ta,Jr,Ai,4),ta+=4,ea[0+lr]=ur}}else ur=pe(Wt,156)?pe(Wt,128)?1:3:pe(Wt,163)?2:0,yn.Ob[0]=ur,i(Jr,Ai,ur,4),i(ea,0,ur,4);yn.Dd=pe(Wt,142)?pe(Wt,114)?pe(Wt,183)?1:3:2:0}if(On.m.Ka)return Bn(or,7,"Premature end-of-partition0 encountered.");for(;or.ja<or.za;++or.ja){if(On=vt,Wt=(rt=or).rb[rt.sb-1],Jr=rt.rb[rt.sb+rt.ja],qt=rt.ya[rt.aa+rt.ja],Ai=rt.kc?qt.Ad:0)Wt.la=Jr.la=0,qt.Za||(Wt.Na=Jr.Na=0),qt.Hc=0,qt.Gc=0,qt.ia=0;else{var xn,_r;if(Wt=Jr,Jr=On,Ai=rt.Pa.Xc,ea=rt.ya[rt.aa+rt.ja],yn=rt.pb[ea.$b],lr=ea.ad,$i=0,ta=rt.rb[rt.sb-1],ur=Qn=0,i(lr,$i,0,384),ea.Za)var Ei=0,Ko=Ai[3];else{Sr=a(16);var kn=Wt.Na+ta.Na;if(kn=o0(Jr,Ai[1],kn,yn.Eb,0,Sr,0),Wt.Na=ta.Na=(0<kn)+0,1<kn)pc(Sr,0,lr,$i);else{var ya=Sr[0]+3>>3;for(Sr=0;256>Sr;Sr+=16)lr[$i+Sr]=ya}Ei=1,Ko=Ai[0]}var Mr=15&Wt.la,ei=15&ta.la;for(Sr=0;4>Sr;++Sr){var Da=1&ei;for(ya=_r=0;4>ya;++ya)Mr=Mr>>1|(Da=(kn=o0(Jr,Ko,kn=Da+(1&Mr),yn.Sc,Ei,lr,$i))>Ei)<<7,_r=_r<<2|(3<kn?3:1<kn?2:lr[$i+0]!=0),$i+=16;Mr>>=4,ei=ei>>1|Da<<7,Qn=(Qn<<8|_r)>>>0}for(Ko=Mr,Ei=ei>>4,xn=0;4>xn;xn+=2){for(_r=0,Mr=Wt.la>>4+xn,ei=ta.la>>4+xn,Sr=0;2>Sr;++Sr){for(Da=1&ei,ya=0;2>ya;++ya)kn=Da+(1&Mr),Mr=Mr>>1|(Da=0<(kn=o0(Jr,Ai[2],kn,yn.Qc,0,lr,$i)))<<3,_r=_r<<2|(3<kn?3:1<kn?2:lr[$i+0]!=0),$i+=16;Mr>>=2,ei=ei>>1|Da<<5}ur|=_r<<4*xn,Ko|=Mr<<4<<xn,Ei|=(240&ei)<<xn}Wt.la=Ko,ta.la=Ei,ea.Hc=Qn,ea.Gc=ur,ea.ia=43690&ur?0:yn.ia,Ai=!(Qn|ur)}if(0<rt.L&&(rt.wa[rt.Y+rt.ja]=rt.gd[qt.$b][qt.Za],rt.wa[rt.Y+rt.ja].La|=!Ai),On.Ka)return Bn(or,7,"Premature end-of-file encountered.")}if(d1(or),rt=Zn,On=1,qt=(vt=or).D,Wt=0<vt.L&&vt.M>=vt.zb&&vt.M<=vt.Va,vt.Aa==0)t:{if(qt.M=vt.M,qt.uc=Wt,po(vt,qt),On=1,qt=(_r=vt.D).Nb,Wt=(ur=L1[vt.L])*vt.R,Jr=ur/2*vt.B,Sr=16*qt*vt.R,ya=8*qt*vt.B,Ai=vt.sa,ea=vt.ta-Wt+Sr,yn=vt.qa,lr=vt.ra-Jr+ya,$i=vt.Ha,ta=vt.Ia-Jr+ya,ei=(Mr=_r.M)==0,Qn=Mr>=vt.Va-1,vt.Aa==2&&po(vt,_r),_r.uc)for(Da=(kn=vt).D.M,t(kn.D.uc),_r=kn.yb;_r<kn.Hb;++_r){Ei=_r,Ko=Da;var ra=(Ra=(Ni=kn).D).Nb;xn=Ni.R;var Ra=Ra.wa[Ra.Y+Ei],Ma=Ni.sa,xa=Ni.ta+16*ra*xn+16*Ei,Fa=Ra.dd,Hr=Ra.tc;if(Hr!=0)if(t(3<=Hr),Ni.L==1)0<Ei&&nT(Ma,xa,xn,Hr+4),Ra.La&&aT(Ma,xa,xn,Hr),0<Ko&&rT(Ma,xa,xn,Hr+4),Ra.La&&iT(Ma,xa,xn,Hr);else{var $a=Ni.B,Xo=Ni.qa,Bu=Ni.ra+8*ra*$a+8*Ei,hl=Ni.Ha,Ni=Ni.Ia+8*ra*$a+8*Ei;ra=Ra.ld,0<Ei&&(Jn(Ma,xa,xn,Hr+4,Fa,ra),i0(Xo,Bu,hl,Ni,$a,Hr+4,Fa,ra)),Ra.La&&(A1(Ma,xa,xn,Hr,Fa,ra),tT(Xo,Bu,hl,Ni,$a,Hr,Fa,ra)),0<Ko&&(Cn(Ma,xa,xn,Hr+4,Fa,ra),fl(Xo,Bu,hl,Ni,$a,Hr+4,Fa,ra)),Ra.La&&(dd(Ma,xa,xn,Hr,Fa,ra),eT(Xo,Bu,hl,Ni,$a,Hr,Fa,ra))}}if(vt.ia&&alert("todo:DitherRow"),rt.put!=null){if(_r=16*Mr,Mr=16*(Mr+1),ei?(rt.y=vt.sa,rt.O=vt.ta+Sr,rt.f=vt.qa,rt.N=vt.ra+ya,rt.ea=vt.Ha,rt.W=vt.Ia+ya):(_r-=ur,rt.y=Ai,rt.O=ea,rt.f=yn,rt.N=lr,rt.ea=$i,rt.W=ta),Qn||(Mr-=ur),Mr>rt.o&&(Mr=rt.o),rt.F=null,rt.J=null,vt.Fa!=null&&0<vt.Fa.length&&_r<Mr&&(rt.J=zr(vt,rt,_r,Mr-_r),rt.F=vt.mb,rt.F==null&&rt.F.length==0)){On=Bn(vt,3,"Could not decode alpha data.");break t}_r<rt.j&&(ur=rt.j-_r,_r=rt.j,t(!(1&ur)),rt.O+=vt.R*ur,rt.N+=vt.B*(ur>>1),rt.W+=vt.B*(ur>>1),rt.F!=null&&(rt.J+=rt.width*ur)),_r<Mr&&(rt.O+=rt.v,rt.N+=rt.v>>1,rt.W+=rt.v>>1,rt.F!=null&&(rt.J+=rt.v),rt.ka=_r-rt.j,rt.U=rt.va-rt.v,rt.T=Mr-_r,On=rt.put(rt))}qt+1!=vt.Ic||Qn||(n(vt.sa,vt.ta-Wt,Ai,ea+16*vt.R,Wt),n(vt.qa,vt.ra-Jr,yn,lr+8*vt.B,Jr),n(vt.Ha,vt.Ia-Jr,$i,ta+8*vt.B,Jr))}if(!On)return Bn(or,6,"Output aborted.")}return 1}(ce,_e)),_e.bc!=null&&_e.bc(_e),Ee&=1}return Ee?(ce.cb=0,Ee):0})(b,D)||(_=b.a)}}else _=b.a}_==0&&X.Oa!=null&&X.Oa.fd&&(_=Zp(X.ba))}X=_}q=X!=0?null:11>q?J.f.RGBA.eb:J.f.kb.y}else q=null;return q};var ET=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(C,R){for(var L="",I=0;I<4;I++)L+=String.fromCharCode(C[R++]);return L}function u(C,R){return C[R+0]|C[R+1]<<8}function f(C,R){return(C[R+0]|C[R+1]<<8|C[R+2]<<16)>>>0}function d(C,R){return(C[R+0]|C[R+1]<<8|C[R+2]<<16|C[R+3]<<24)>>>0}new l;var h=[0],v=[0],p=[],m=new l,y=e,x=function(C,R){var L={},I=0,B=!1,z=0,V=0;if(L.frames=[],!function(O,M){for(var F=0;F<4;F++)if(O[M+F]!="RIFF".charCodeAt(F))return!0;return!1}(C,R)){for(d(C,R+=4),R+=8;R<C.length;){var Q=c(C,R),ae=d(C,R+=4);R+=4;var K=ae+(1&ae);switch(Q){case"VP8 ":case"VP8L":L.frames[I]===void 0&&(L.frames[I]={}),(xe=L.frames[I]).src_off=B?V:R-8,xe.src_size=z+ae+8,I++,B&&(B=!1,z=0,V=0);break;case"VP8X":(xe=L.header={}).feature_flags=C[R];var re=R+4;xe.canvas_width=1+f(C,re),re+=3,xe.canvas_height=1+f(C,re),re+=3;break;case"ALPH":B=!0,z=K+8,V=R-8;break;case"ANIM":(xe=L.header).bgcolor=d(C,R),re=R+4,xe.loop_count=u(C,re),re+=2;break;case"ANMF":var ye,xe;(xe=L.frames[I]={}).offset_x=2*f(C,R),R+=3,xe.offset_y=2*f(C,R),R+=3,xe.width=1+f(C,R),R+=3,xe.height=1+f(C,R),R+=3,xe.duration=f(C,R),R+=3,ye=C[R++],xe.dispose=1&ye,xe.blend=ye>>1&1}Q!="ANMF"&&(R+=K)}return L}}(y,0);x.response=y,x.rgbaoutput=!0,x.dataurl=!1;var w=x.header?x.header:null,S=x.frames?x.frames:null;if(w){w.loop_counter=w.loop_count,h=[w.canvas_height],v=[w.canvas_width];for(var A=0;A<S.length&&S[A].blend!=0;A++);}var N=S[0],P=m.WebPDecodeRGBA(y,N.src_off,N.src_size,v,h);N.rgba=P,N.imgwidth=v[0],N.imgheight=h[0];for(var j=0;j<v[0]*h[0]*4;j++)p[j]=P[j];return this.width=v,this.height=h,this.data=p,this}/** ==================================================================== * @license * jsPDF XMP metadata plugin * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * ==================================================================== */function WIe(){var e,t=this.internal.__metadata__.metadata,r=unescape(encodeURIComponent(t));e=this.internal.__metadata__.rawXml?r:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceUri+'"><jspdf:metadata>'+r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+e.length+" >>"),this.internal.write("stream"),this.internal.write(e),this.internal.write("endstream"),this.internal.write("endobj")}function zIe(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(e){var t,r,n,i,a,o,s,l,c,u=function(O){return O=O||{},this.isStrokeTransparent=O.isStrokeTransparent||!1,this.strokeOpacity=O.strokeOpacity||1,this.strokeStyle=O.strokeStyle||"#000000",this.fillStyle=O.fillStyle||"#000000",this.isFillTransparent=O.isFillTransparent||!1,this.fillOpacity=O.fillOpacity||1,this.font=O.font||"10px sans-serif",this.textBaseline=O.textBaseline||"alphabetic",this.textAlign=O.textAlign||"left",this.lineWidth=O.lineWidth||1,this.lineJoin=O.lineJoin||"miter",this.lineCap=O.lineCap||"butt",this.path=O.path||[],this.transform=O.transform!==void 0?O.transform.clone():new l,this.globalCompositeOperation=O.globalCompositeOperation||"normal",this.globalAlpha=O.globalAlpha||1,this.clip_path=O.clip_path||[],this.currentPoint=O.currentPoint||new o,this.miterLimit=O.miterLimit||10,this.lastPoint=O.lastPoint||new o,this.lineDashOffset=O.lineDashOffset||0,this.lineDash=O.lineDash||[],this.margin=O.margin||[0,0,0,0],this.prevPageLastElemOffset=O.prevPageLastElemOffset||0,this.ignoreClearRect=typeof O.ignoreClearRect!="boolean"||O.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new f(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new u}]);var f=function(O){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var M=O;Object.defineProperty(this,"pdf",{get:function(){return M}});var F=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return F},set:function(Y){F=!!Y}});var U=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return U},set:function(Y){U=!!Y}});var Z=0;Object.defineProperty(this,"posX",{get:function(){return Z},set:function(Y){isNaN(Y)||(Z=Y)}});var se=0;Object.defineProperty(this,"posY",{get:function(){return se},set:function(Y){isNaN(Y)||(se=Y)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Y){var Ie;typeof Y=="number"?Ie=[Y,Y,Y,Y]:((Ie=new Array(4))[0]=Y[0],Ie[1]=Y.length>=2?Y[1]:Ie[0],Ie[2]=Y.length>=3?Y[2]:Ie[0],Ie[3]=Y.length>=4?Y[3]:Ie[1]),c.margin=Ie}});var ve=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ve},set:function(Y){ve=Y}});var oe=0;Object.defineProperty(this,"lastBreak",{get:function(){return oe},set:function(Y){oe=Y}});var pe=[];Object.defineProperty(this,"pageBreaks",{get:function(){return pe},set:function(Y){pe=Y}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Y){Y instanceof u&&(c=Y)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Y){c.path=Y}});var Se=[];Object.defineProperty(this,"ctxStack",{get:function(){return Se},set:function(Y){Se=Y}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Y){var Ie;Ie=d(Y),this.ctx.fillStyle=Ie.style,this.ctx.isFillTransparent=Ie.a===0,this.ctx.fillOpacity=Ie.a,this.pdf.setFillColor(Ie.r,Ie.g,Ie.b,{a:Ie.a}),this.pdf.setTextColor(Ie.r,Ie.g,Ie.b,{a:Ie.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Y){var Ie=d(Y);this.ctx.strokeStyle=Ie.style,this.ctx.isStrokeTransparent=Ie.a===0,this.ctx.strokeOpacity=Ie.a,Ie.a===0?this.pdf.setDrawColor(255,255,255):(Ie.a,this.pdf.setDrawColor(Ie.r,Ie.g,Ie.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Y){["butt","round","square"].indexOf(Y)!==-1&&(this.ctx.lineCap=Y,this.pdf.setLineCap(Y))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Y){isNaN(Y)||(this.ctx.lineWidth=Y,this.pdf.setLineWidth(Y))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Y){["bevel","round","miter"].indexOf(Y)!==-1&&(this.ctx.lineJoin=Y,this.pdf.setLineJoin(Y))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Y){isNaN(Y)||(this.ctx.miterLimit=Y,this.pdf.setMiterLimit(Y))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Y){this.ctx.textBaseline=Y}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Y){["right","end","center","left","start"].indexOf(Y)!==-1&&(this.ctx.textAlign=Y)}});var me=null,Le=null,ie=null;Object.defineProperty(this,"fontFaces",{get:function(){return ie},set:function(Y){me=null,Le=null,ie=Y}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Y){var Ie;if(this.ctx.font=Y,(Ie=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(Y))!==null){var De=Ie[1];Ie[2];var nt=Ie[3],$e=Ie[4];Ie[5];var ot=Ie[6],tt=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec($e)[2];$e=Math.floor(tt==="px"?parseFloat($e)*this.pdf.internal.scaleFactor:tt==="em"?parseFloat($e)*this.pdf.getFontSize():parseFloat($e)*this.pdf.internal.scaleFactor),this.pdf.setFontSize($e);var dt=function(yt){var on,nr,zt=[],Ht=yt.trim();if(Ht==="")return VS;if(Ht in xI)return[xI[Ht]];for(;Ht!=="";){switch(nr=null,on=(Ht=wI(Ht)).charAt(0)){case'"':case"'":nr=RIe(Ht.substring(1),on);break;default:nr=MIe(Ht)}if(nr===null||(zt.push(nr[0]),(Ht=wI(nr[1]))!==""&&Ht.charAt(0)!==","))return VS;Ht=Ht.replace(/^,/,"")}return zt}(ot);if(this.fontFaces){var pt=function(yt,on){var nr=yt.getFontList(),zt=JSON.stringify(nr);if(me===null||Le!==zt){var Ht=function(Ur){var At=[];return Object.keys(Ur).forEach(function(wr){Ur[wr].forEach(function(Nt){var Lt=null;switch(Nt){case"bold":Lt={family:wr,weight:"bold"};break;case"italic":Lt={family:wr,style:"italic"};break;case"bolditalic":Lt={family:wr,weight:"bold",style:"italic"};break;case"":case"normal":Lt={family:wr}}Lt!==null&&(Lt.ref={name:wr,style:Nt},At.push(Lt))})}),At}(nr);me=function(Ur){for(var At={},wr=0;wr<Ur.length;++wr){var Nt=HS(Ur[wr]),Lt=Nt.family,Wr=Nt.stretch,Jt=Nt.style,Et=Nt.weight;At[Lt]=At[Lt]||{},At[Lt][Wr]=At[Lt][Wr]||{},At[Lt][Wr][Jt]=At[Lt][Wr][Jt]||{},At[Lt][Wr][Jt][Et]=Nt}return At}(Ht.concat(on)),Le=zt}return me}(this.pdf,this.fontFaces),Ft=dt.map(function(yt){return{family:yt,stretch:"normal",weight:nt,style:De}}),$t=function(yt,on,nr){for(var zt=(nr=nr||{}).defaultFontFamily||"times",Ht=Object.assign({},DIe,nr.genericFontFamilies||{}),Ur=null,At=null,wr=0;wr<on.length;++wr)if(Ht[(Ur=HS(on[wr])).family]&&(Ur.family=Ht[Ur.family]),yt.hasOwnProperty(Ur.family)){At=yt[Ur.family];break}if(!(At=At||yt[zt]))throw new Error("Could not find a font-family for the rule '"+bI(Ur)+"' and default family '"+zt+"'.");if(At=function(Nt,Lt){if(Lt[Nt])return Lt[Nt];var Wr=d3[Nt],Jt=Wr<=d3.normal?-1:1,Et=yI(Lt,$H,Wr,Jt);if(!Et)throw new Error("Could not find a matching font-stretch value for "+Nt);return Et}(Ur.stretch,At),At=function(Nt,Lt){if(Lt[Nt])return Lt[Nt];for(var Wr=FH[Nt],Jt=0;Jt<Wr.length;++Jt)if(Lt[Wr[Jt]])return Lt[Wr[Jt]];throw new Error("Could not find a matching font-style for "+Nt)}(Ur.style,At),!(At=function(Nt,Lt){if(Lt[Nt])return Lt[Nt];if(Nt===400&&Lt[500])return Lt[500];if(Nt===500&&Lt[400])return Lt[400];var Wr=IIe[Nt],Jt=yI(Lt,BH,Wr,Nt<400?-1:1);if(!Jt)throw new Error("Could not find a matching font-weight for value "+Nt);return Jt}(Ur.weight,At)))throw new Error("Failed to resolve a font for the rule '"+bI(Ur)+"'.");return At}(pt,Ft);this.pdf.setFont($t.ref.name,$t.ref.style)}else{var kt="";(nt==="bold"||parseInt(nt,10)>=700||De==="bold")&&(kt="bold"),De==="italic"&&(kt+="italic"),kt.length===0&&(kt="normal");for(var er="",Bt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},mt=0;mt<dt.length;mt++){if(this.pdf.internal.getFont(dt[mt],kt,{noFallback:!0,disableWarning:!0})!==void 0){er=dt[mt];break}if(kt==="bolditalic"&&this.pdf.internal.getFont(dt[mt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)er=dt[mt],kt="bold";else if(this.pdf.internal.getFont(dt[mt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){er=dt[mt],kt="normal";break}}if(er===""){for(var Rt=0;Rt<dt.length;Rt++)if(Bt[dt[Rt]]){er=Bt[dt[Rt]];break}}er=er===""?"Times":er,this.pdf.setFont(er,kt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Y){this.ctx.globalCompositeOperation=Y}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Y){this.ctx.globalAlpha=Y}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Y){this.ctx.lineDashOffset=Y,xe.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Y){this.ctx.lineDash=Y,xe.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Y){this.ctx.ignoreClearRect=!!Y}})};f.prototype.setLineDash=function(O){this.lineDash=O},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){S.call(this,"fill",!1)},f.prototype.stroke=function(){S.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(O,M){if(isNaN(O)||isNaN(M))throw Fr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var F=this.ctx.transform.applyToPoint(new o(O,M));this.path.push({type:"mt",x:F.x,y:F.y}),this.ctx.lastPoint=new o(O,M)},f.prototype.closePath=function(){var O=new o(0,0),M=0;for(M=this.path.length-1;M!==-1;M--)if(this.path[M].type==="begin"&&pr(this.path[M+1])==="object"&&typeof this.path[M+1].x=="number"){O=new o(this.path[M+1].x,this.path[M+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(O.x,O.y)},f.prototype.lineTo=function(O,M){if(isNaN(O)||isNaN(M))throw Fr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var F=this.ctx.transform.applyToPoint(new o(O,M));this.path.push({type:"lt",x:F.x,y:F.y}),this.ctx.lastPoint=new o(F.x,F.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),S.call(this,null,!0)},f.prototype.quadraticCurveTo=function(O,M,F,U){if(isNaN(F)||isNaN(U)||isNaN(O)||isNaN(M))throw Fr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Z=this.ctx.transform.applyToPoint(new o(F,U)),se=this.ctx.transform.applyToPoint(new o(O,M));this.path.push({type:"qct",x1:se.x,y1:se.y,x:Z.x,y:Z.y}),this.ctx.lastPoint=new o(Z.x,Z.y)},f.prototype.bezierCurveTo=function(O,M,F,U,Z,se){if(isNaN(Z)||isNaN(se)||isNaN(O)||isNaN(M)||isNaN(F)||isNaN(U))throw Fr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ve=this.ctx.transform.applyToPoint(new o(Z,se)),oe=this.ctx.transform.applyToPoint(new o(O,M)),pe=this.ctx.transform.applyToPoint(new o(F,U));this.path.push({type:"bct",x1:oe.x,y1:oe.y,x2:pe.x,y2:pe.y,x:ve.x,y:ve.y}),this.ctx.lastPoint=new o(ve.x,ve.y)},f.prototype.arc=function(O,M,F,U,Z,se){if(isNaN(O)||isNaN(M)||isNaN(F)||isNaN(U)||isNaN(Z))throw Fr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(se=!!se,!this.ctx.transform.isIdentity){var ve=this.ctx.transform.applyToPoint(new o(O,M));O=ve.x,M=ve.y;var oe=this.ctx.transform.applyToPoint(new o(0,F)),pe=this.ctx.transform.applyToPoint(new o(0,0));F=Math.sqrt(Math.pow(oe.x-pe.x,2)+Math.pow(oe.y-pe.y,2))}Math.abs(Z-U)>=2*Math.PI&&(U=0,Z=2*Math.PI),this.path.push({type:"arc",x:O,y:M,radius:F,startAngle:U,endAngle:Z,counterclockwise:se})},f.prototype.arcTo=function(O,M,F,U,Z){throw new Error("arcTo not implemented.")},f.prototype.rect=function(O,M,F,U){if(isNaN(O)||isNaN(M)||isNaN(F)||isNaN(U))throw Fr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(O,M),this.lineTo(O+F,M),this.lineTo(O+F,M+U),this.lineTo(O,M+U),this.lineTo(O,M),this.lineTo(O+F,M),this.lineTo(O,M)},f.prototype.fillRect=function(O,M,F,U){if(isNaN(O)||isNaN(M)||isNaN(F)||isNaN(U))throw Fr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var Z={};this.lineCap!=="butt"&&(Z.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Z.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(O,M,F,U),this.fill(),Z.hasOwnProperty("lineCap")&&(this.lineCap=Z.lineCap),Z.hasOwnProperty("lineJoin")&&(this.lineJoin=Z.lineJoin)}},f.prototype.strokeRect=function(O,M,F,U){if(isNaN(O)||isNaN(M)||isNaN(F)||isNaN(U))throw Fr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");v.call(this)||(this.beginPath(),this.rect(O,M,F,U),this.stroke())},f.prototype.clearRect=function(O,M,F,U){if(isNaN(O)||isNaN(M)||isNaN(F)||isNaN(U))throw Fr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(O,M,F,U))},f.prototype.save=function(O){O=typeof O!="boolean"||O;for(var M=this.pdf.internal.getCurrentPageInfo().pageNumber,F=0;F<this.pdf.internal.getNumberOfPages();F++)this.pdf.setPage(F+1),this.pdf.internal.out("q");if(this.pdf.setPage(M),O){this.ctx.fontSize=this.pdf.internal.getFontSize();var U=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=U}},f.prototype.restore=function(O){O=typeof O!="boolean"||O;for(var M=this.pdf.internal.getCurrentPageInfo().pageNumber,F=0;F<this.pdf.internal.getNumberOfPages();F++)this.pdf.setPage(F+1),this.pdf.internal.out("Q");this.pdf.setPage(M),O&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(O){var M,F,U,Z;if(O.isCanvasGradient===!0&&(O=O.getColor()),!O)return{r:0,g:0,b:0,a:0,style:O};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(O))M=0,F=0,U=0,Z=0;else{var se=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(O);if(se!==null)M=parseInt(se[1]),F=parseInt(se[2]),U=parseInt(se[3]),Z=1;else if((se=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(O))!==null)M=parseInt(se[1]),F=parseInt(se[2]),U=parseInt(se[3]),Z=parseFloat(se[4]);else{if(Z=1,typeof O=="string"&&O.charAt(0)!=="#"){var ve=new kH(O);O=ve.ok?ve.toHex():"#000000"}O.length===4?(M=O.substring(1,2),M+=M,F=O.substring(2,3),F+=F,U=O.substring(3,4),U+=U):(M=O.substring(1,3),F=O.substring(3,5),U=O.substring(5,7)),M=parseInt(M,16),F=parseInt(F,16),U=parseInt(U,16)}}return{r:M,g:F,b:U,a:Z,style:O}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},v=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(O,M,F,U){if(isNaN(M)||isNaN(F)||typeof O!="string")throw Fr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(U=isNaN(U)?void 0:U,!h.call(this)){var Z=K(this.ctx.transform.rotation),se=this.ctx.transform.scaleX;I.call(this,{text:O,x:M,y:F,scale:se,angle:Z,align:this.textAlign,maxWidth:U})}},f.prototype.strokeText=function(O,M,F,U){if(isNaN(M)||isNaN(F)||typeof O!="string")throw Fr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!v.call(this)){U=isNaN(U)?void 0:U;var Z=K(this.ctx.transform.rotation),se=this.ctx.transform.scaleX;I.call(this,{text:O,x:M,y:F,scale:se,renderingMode:"stroke",angle:Z,align:this.textAlign,maxWidth:U})}},f.prototype.measureText=function(O){if(typeof O!="string")throw Fr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var M=this.pdf,F=this.pdf.internal.scaleFactor,U=M.internal.getFontSize(),Z=M.getStringUnitWidth(O)*U/M.internal.scaleFactor;return new function(se){var ve=(se=se||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ve}}),this}({width:Z*=Math.round(96*F/72*1e4)/1e4})},f.prototype.scale=function(O,M){if(isNaN(O)||isNaN(M))throw Fr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var F=new l(O,0,0,M,0,0);this.ctx.transform=this.ctx.transform.multiply(F)},f.prototype.rotate=function(O){if(isNaN(O))throw Fr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var M=new l(Math.cos(O),Math.sin(O),-Math.sin(O),Math.cos(O),0,0);this.ctx.transform=this.ctx.transform.multiply(M)},f.prototype.translate=function(O,M){if(isNaN(O)||isNaN(M))throw Fr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var F=new l(1,0,0,1,O,M);this.ctx.transform=this.ctx.transform.multiply(F)},f.prototype.transform=function(O,M,F,U,Z,se){if(isNaN(O)||isNaN(M)||isNaN(F)||isNaN(U)||isNaN(Z)||isNaN(se))throw Fr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ve=new l(O,M,F,U,Z,se);this.ctx.transform=this.ctx.transform.multiply(ve)},f.prototype.setTransform=function(O,M,F,U,Z,se){O=isNaN(O)?1:O,M=isNaN(M)?0:M,F=isNaN(F)?0:F,U=isNaN(U)?1:U,Z=isNaN(Z)?0:Z,se=isNaN(se)?0:se,this.ctx.transform=new l(O,M,F,U,Z,se)};var p=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(O,M,F,U,Z,se,ve,oe,pe){var Se=this.pdf.getImageProperties(O),me=1,Le=1,ie=1,Y=1;U!==void 0&&oe!==void 0&&(ie=oe/U,Y=pe/Z,me=Se.width/U*oe/U,Le=Se.height/Z*pe/Z),se===void 0&&(se=M,ve=F,M=0,F=0),U!==void 0&&oe===void 0&&(oe=U,pe=Z),U===void 0&&oe===void 0&&(oe=Se.width,pe=Se.height);var Ie=this.ctx.transform.decompose(),De=K(Ie.rotate.shx),nt=new l,$e=(nt=(nt=(nt=nt.multiply(Ie.translate)).multiply(Ie.skew)).multiply(Ie.scale)).applyToRectangle(new s(se-M*ie,ve-F*Y,U*me,Z*Le));if(this.autoPaging){for(var ot,tt=m.call(this,$e),dt=[],pt=0;pt<tt.length;pt+=1)dt.indexOf(tt[pt])===-1&&dt.push(tt[pt]);w(dt);for(var Ft=dt[0],$t=dt[dt.length-1],kt=Ft;kt<$t+1;kt++){this.pdf.setPage(kt);var er=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Bt=kt===1?this.posY+this.margin[0]:this.margin[0],mt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Rt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],yt=kt===1?0:mt+(kt-2)*Rt;if(this.ctx.clip_path.length!==0){var on=this.path;ot=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(ot,this.posX+this.margin[3],-yt+Bt+this.ctx.prevPageLastElemOffset),A.call(this,"fill",!0),this.path=on}var nr=JSON.parse(JSON.stringify($e));nr=x([nr],this.posX+this.margin[3],-yt+Bt+this.ctx.prevPageLastElemOffset)[0];var zt=(kt>Ft||kt<$t)&&p.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],er,Rt,null).clip().discardPath()),this.pdf.addImage(O,"JPEG",nr.x,nr.y,nr.w,nr.h,null,null,De),zt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(O,"JPEG",$e.x,$e.y,$e.w,$e.h,null,null,De)};var m=function(O,M,F){var U=[];M=M||this.pdf.internal.pageSize.width,F=F||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Z=this.posY+this.ctx.prevPageLastElemOffset;switch(O.type){default:case"mt":case"lt":U.push(Math.floor((O.y+Z)/F)+1);break;case"arc":U.push(Math.floor((O.y+Z-O.radius)/F)+1),U.push(Math.floor((O.y+Z+O.radius)/F)+1);break;case"qct":var se=re(this.ctx.lastPoint.x,this.ctx.lastPoint.y,O.x1,O.y1,O.x,O.y);U.push(Math.floor((se.y+Z)/F)+1),U.push(Math.floor((se.y+se.h+Z)/F)+1);break;case"bct":var ve=ye(this.ctx.lastPoint.x,this.ctx.lastPoint.y,O.x1,O.y1,O.x2,O.y2,O.x,O.y);U.push(Math.floor((ve.y+Z)/F)+1),U.push(Math.floor((ve.y+ve.h+Z)/F)+1);break;case"rect":U.push(Math.floor((O.y+Z)/F)+1),U.push(Math.floor((O.y+O.h+Z)/F)+1)}for(var oe=0;oe<U.length;oe+=1)for(;this.pdf.internal.getNumberOfPages()<U[oe];)y.call(this);return U},y=function(){var O=this.fillStyle,M=this.strokeStyle,F=this.font,U=this.lineCap,Z=this.lineWidth,se=this.lineJoin;this.pdf.addPage(),this.fillStyle=O,this.strokeStyle=M,this.font=F,this.lineCap=U,this.lineWidth=Z,this.lineJoin=se},x=function(O,M,F){for(var U=0;U<O.length;U++)switch(O[U].type){case"bct":O[U].x2+=M,O[U].y2+=F;case"qct":O[U].x1+=M,O[U].y1+=F;default:O[U].x+=M,O[U].y+=F}return O},w=function(O){return O.sort(function(M,F){return M-F})},S=function(O,M){var F=this.fillStyle,U=this.strokeStyle,Z=this.lineCap,se=this.lineWidth,ve=Math.abs(se*this.ctx.transform.scaleX),oe=this.lineJoin;if(this.autoPaging){for(var pe,Se,me=JSON.parse(JSON.stringify(this.path)),Le=JSON.parse(JSON.stringify(this.path)),ie=[],Y=0;Y<Le.length;Y++)if(Le[Y].x!==void 0)for(var Ie=m.call(this,Le[Y]),De=0;De<Ie.length;De+=1)ie.indexOf(Ie[De])===-1&&ie.push(Ie[De]);for(var nt=0;nt<ie.length;nt++)for(;this.pdf.internal.getNumberOfPages()<ie[nt];)y.call(this);w(ie);for(var $e=ie[0],ot=ie[ie.length-1],tt=$e;tt<ot+1;tt++){this.pdf.setPage(tt),this.fillStyle=F,this.strokeStyle=U,this.lineCap=Z,this.lineWidth=ve,this.lineJoin=oe;var dt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pt=tt===1?this.posY+this.margin[0]:this.margin[0],Ft=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],$t=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],kt=tt===1?0:Ft+(tt-2)*$t;if(this.ctx.clip_path.length!==0){var er=this.path;pe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(pe,this.posX+this.margin[3],-kt+pt+this.ctx.prevPageLastElemOffset),A.call(this,O,!0),this.path=er}if(Se=JSON.parse(JSON.stringify(me)),this.path=x(Se,this.posX+this.margin[3],-kt+pt+this.ctx.prevPageLastElemOffset),M===!1||tt===0){var Bt=(tt>$e||tt<ot)&&p.call(this);Bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],dt,$t,null).clip().discardPath()),A.call(this,O,M),Bt&&this.pdf.restoreGraphicsState()}this.lineWidth=se}this.path=me}else this.lineWidth=ve,A.call(this,O,M),this.lineWidth=se},A=function(O,M){if((O!=="stroke"||M||!v.call(this))&&(O==="stroke"||M||!h.call(this))){for(var F,U,Z=[],se=this.path,ve=0;ve<se.length;ve++){var oe=se[ve];switch(oe.type){case"begin":Z.push({begin:!0});break;case"close":Z.push({close:!0});break;case"mt":Z.push({start:oe,deltas:[],abs:[]});break;case"lt":var pe=Z.length;if(se[ve-1]&&!isNaN(se[ve-1].x)&&(F=[oe.x-se[ve-1].x,oe.y-se[ve-1].y],pe>0)){for(;pe>=0;pe--)if(Z[pe-1].close!==!0&&Z[pe-1].begin!==!0){Z[pe-1].deltas.push(F),Z[pe-1].abs.push(oe);break}}break;case"bct":F=[oe.x1-se[ve-1].x,oe.y1-se[ve-1].y,oe.x2-se[ve-1].x,oe.y2-se[ve-1].y,oe.x-se[ve-1].x,oe.y-se[ve-1].y],Z[Z.length-1].deltas.push(F);break;case"qct":var Se=se[ve-1].x+2/3*(oe.x1-se[ve-1].x),me=se[ve-1].y+2/3*(oe.y1-se[ve-1].y),Le=oe.x+2/3*(oe.x1-oe.x),ie=oe.y+2/3*(oe.y1-oe.y),Y=oe.x,Ie=oe.y;F=[Se-se[ve-1].x,me-se[ve-1].y,Le-se[ve-1].x,ie-se[ve-1].y,Y-se[ve-1].x,Ie-se[ve-1].y],Z[Z.length-1].deltas.push(F);break;case"arc":Z.push({deltas:[],abs:[],arc:!0}),Array.isArray(Z[Z.length-1].abs)&&Z[Z.length-1].abs.push(oe)}}U=M?null:O==="stroke"?"stroke":"fill";for(var De=!1,nt=0;nt<Z.length;nt++)if(Z[nt].arc)for(var $e=Z[nt].abs,ot=0;ot<$e.length;ot++){var tt=$e[ot];tt.type==="arc"?j.call(this,tt.x,tt.y,tt.radius,tt.startAngle,tt.endAngle,tt.counterclockwise,void 0,M,!De):B.call(this,tt.x,tt.y),De=!0}else if(Z[nt].close===!0)this.pdf.internal.out("h"),De=!1;else if(Z[nt].begin!==!0){var dt=Z[nt].start.x,pt=Z[nt].start.y;z.call(this,Z[nt].deltas,dt,pt),De=!0}U&&C.call(this,U),M&&R.call(this)}},N=function(O){var M=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,F=M*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return O-F;case"top":return O+M-F;case"hanging":return O+M-2*F;case"middle":return O+M/2-F;default:return O}},P=function(O){return O+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var O=function(){};return O.colorStops=[],O.addColorStop=function(M,F){this.colorStops.push([M,F])},O.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},O.isCanvasGradient=!0,O},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var j=function(O,M,F,U,Z,se,ve,oe,pe){for(var Se=Q.call(this,F,U,Z,se),me=0;me<Se.length;me++){var Le=Se[me];me===0&&(pe?L.call(this,Le.x1+O,Le.y1+M):B.call(this,Le.x1+O,Le.y1+M)),V.call(this,O,M,Le.x2,Le.y2,Le.x3,Le.y3,Le.x4,Le.y4)}oe?R.call(this):C.call(this,ve)},C=function(O){switch(O){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},R=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(O,M){this.pdf.internal.out(r(O)+" "+n(M)+" m")},I=function(O){var M;switch(O.align){case"right":case"end":M="right";break;case"center":M="center";break;default:M="left"}var F,U,Z,se=this.pdf.getTextDimensions(O.text),ve=N.call(this,O.y),oe=P.call(this,ve)-se.h,pe=this.ctx.transform.applyToPoint(new o(O.x,ve));if(this.autoPaging){var Se=this.ctx.transform.decompose(),me=new l;me=(me=(me=me.multiply(Se.translate)).multiply(Se.skew)).multiply(Se.scale);for(var Le=this.ctx.transform.applyToRectangle(new s(O.x,ve,se.w,se.h)),ie=me.applyToRectangle(new s(O.x,oe,se.w,se.h)),Y=m.call(this,ie),Ie=[],De=0;De<Y.length;De+=1)Ie.indexOf(Y[De])===-1&&Ie.push(Y[De]);w(Ie);for(var nt=Ie[0],$e=Ie[Ie.length-1],ot=nt;ot<$e+1;ot++){this.pdf.setPage(ot);var tt=ot===1?this.posY+this.margin[0]:this.margin[0],dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],pt=this.pdf.internal.pageSize.height-this.margin[2],Ft=pt-this.margin[0],$t=this.pdf.internal.pageSize.width-this.margin[1],kt=$t-this.margin[3],er=ot===1?0:dt+(ot-2)*Ft;if(this.ctx.clip_path.length!==0){var Bt=this.path;F=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(F,this.posX+this.margin[3],-1*er+tt),A.call(this,"fill",!0),this.path=Bt}var mt=x([JSON.parse(JSON.stringify(ie))],this.posX+this.margin[3],-er+tt+this.ctx.prevPageLastElemOffset)[0];O.scale>=.01&&(U=this.pdf.internal.getFontSize(),this.pdf.setFontSize(U*O.scale),Z=this.lineWidth,this.lineWidth=Z*O.scale);var Rt=this.autoPaging!=="text";if(Rt||mt.y+mt.h<=pt){if(Rt||mt.y>=tt&&mt.x<=$t){var yt=Rt?O.text:this.pdf.splitTextToSize(O.text,O.maxWidth||$t-mt.x)[0],on=x([JSON.parse(JSON.stringify(Le))],this.posX+this.margin[3],-er+tt+this.ctx.prevPageLastElemOffset)[0],nr=Rt&&(ot>nt||ot<$e)&&p.call(this);nr&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],kt,Ft,null).clip().discardPath()),this.pdf.text(yt,on.x,on.y,{angle:O.angle,align:M,renderingMode:O.renderingMode}),nr&&this.pdf.restoreGraphicsState()}}else mt.y<pt&&(this.ctx.prevPageLastElemOffset+=pt-mt.y);O.scale>=.01&&(this.pdf.setFontSize(U),this.lineWidth=Z)}}else O.scale>=.01&&(U=this.pdf.internal.getFontSize(),this.pdf.setFontSize(U*O.scale),Z=this.lineWidth,this.lineWidth=Z*O.scale),this.pdf.text(O.text,pe.x+this.posX,pe.y+this.posY,{angle:O.angle,align:M,renderingMode:O.renderingMode,maxWidth:O.maxWidth}),O.scale>=.01&&(this.pdf.setFontSize(U),this.lineWidth=Z)},B=function(O,M,F,U){F=F||0,U=U||0,this.pdf.internal.out(r(O+F)+" "+n(M+U)+" l")},z=function(O,M,F){return this.pdf.lines(O,M,F,null,null)},V=function(O,M,F,U,Z,se,ve,oe){this.pdf.internal.out([t(i(F+O)),t(a(U+M)),t(i(Z+O)),t(a(se+M)),t(i(ve+O)),t(a(oe+M)),"c"].join(" "))},Q=function(O,M,F,U){for(var Z=2*Math.PI,se=Math.PI/2;M>F;)M-=Z;var ve=Math.abs(F-M);ve<Z&&U&&(ve=Z-ve);for(var oe=[],pe=U?-1:1,Se=M;ve>1e-5;){var me=Se+pe*Math.min(ve,se);oe.push(ae.call(this,O,Se,me)),ve-=Math.abs(me-Se),Se=me}return oe},ae=function(O,M,F){var U=(F-M)/2,Z=O*Math.cos(U),se=O*Math.sin(U),ve=Z,oe=-se,pe=ve*ve+oe*oe,Se=pe+ve*Z+oe*se,me=4/3*(Math.sqrt(2*pe*Se)-Se)/(ve*se-oe*Z),Le=ve-me*oe,ie=oe+me*ve,Y=Le,Ie=-ie,De=U+M,nt=Math.cos(De),$e=Math.sin(De);return{x1:O*Math.cos(M),y1:O*Math.sin(M),x2:Le*nt-ie*$e,y2:Le*$e+ie*nt,x3:Y*nt-Ie*$e,y3:Y*$e+Ie*nt,x4:O*Math.cos(F),y4:O*Math.sin(F)}},K=function(O){return 180*O/Math.PI},re=function(O,M,F,U,Z,se){var ve=O+.5*(F-O),oe=M+.5*(U-M),pe=Z+.5*(F-Z),Se=se+.5*(U-se),me=Math.min(O,Z,ve,pe),Le=Math.max(O,Z,ve,pe),ie=Math.min(M,se,oe,Se),Y=Math.max(M,se,oe,Se);return new s(me,ie,Le-me,Y-ie)},ye=function(O,M,F,U,Z,se,ve,oe){var pe,Se,me,Le,ie,Y,Ie,De,nt,$e,ot,tt,dt,pt,Ft=F-O,$t=U-M,kt=Z-F,er=se-U,Bt=ve-Z,mt=oe-se;for(Se=0;Se<41;Se++)nt=(Ie=(me=O+(pe=Se/40)*Ft)+pe*((ie=F+pe*kt)-me))+pe*(ie+pe*(Z+pe*Bt-ie)-Ie),$e=(De=(Le=M+pe*$t)+pe*((Y=U+pe*er)-Le))+pe*(Y+pe*(se+pe*mt-Y)-De),Se==0?(ot=nt,tt=$e,dt=nt,pt=$e):(ot=Math.min(ot,nt),tt=Math.min(tt,$e),dt=Math.max(dt,nt),pt=Math.max(pt,$e));return new s(Math.round(ot),Math.round(tt),Math.round(dt-ot),Math.round(pt-tt))},xe=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var O,M,F=(O=this.ctx.lineDash,M=this.ctx.lineDashOffset,JSON.stringify({lineDash:O,lineDashOffset:M}));this.prevLineDash!==F&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=F)}}})(bt.API),function(e){var t=function(o){var s,l,c,u,f,d,h,v,p,m;for(l=[],c=0,u=(o+=s="\0\0\0\0".slice(o.length%4||4)).length;u>c;c+=4)(f=(o.charCodeAt(c)<<24)+(o.charCodeAt(c+1)<<16)+(o.charCodeAt(c+2)<<8)+o.charCodeAt(c+3))!==0?(d=(f=((f=((f=((f=(f-(m=f%85))/85)-(p=f%85))/85)-(v=f%85))/85)-(h=f%85))/85)%85,l.push(d+33,h+33,v+33,p+33,m+33)):l.push(122);return function(y,x){for(var w=x;w>0;w--)y.pop()}(l,s.length),String.fromCharCode.apply(String,l)+"~>"},r=function(o){var s,l,c,u,f,d=String,h="length",v=255,p="charCodeAt",m="slice",y="replace";for(o[m](-2),o=o[m](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),c=[],u=0,f=(o+=s="uuuuu"[m](o[h]%5||5))[h];f>u;u+=5)l=52200625*(o[p](u)-33)+614125*(o[p](u+1)-33)+7225*(o[p](u+2)-33)+85*(o[p](u+3)-33)+(o[p](u+4)-33),c.push(v&l>>24,v&l>>16,v&l>>8,v&l);return function(x,w){for(var S=w;S>0;S--)x.pop()}(c,s[h]),d.fromCharCode.apply(d,c)},n=function(o){return o.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},i=function(o){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),s.test(o)===!1)return"";for(var l="",c=0;c<o.length;c+=2)l+=String.fromCharCode("0x"+(o[c]+o[c+1]));return l},a=function(o){for(var s=new Uint8Array(o.length),l=o.length;l--;)s[l]=o.charCodeAt(l);return(s=a3(s)).reduce(function(c,u){return c+String.fromCharCode(u)},"")};e.processDataByFilters=function(o,s){var l=0,c=o||"",u=[];for(typeof(s=s||[])=="string"&&(s=[s]),l=0;l<s.length;l+=1)switch(s[l]){case"ASCII85Decode":case"/ASCII85Decode":c=r(c),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=t(c),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=i(c),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=n(c),u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=a(c),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[l]+'" is not implemented')}return{data:c,reverseChain:u.reverse().join(" ")}}}(bt.API),function(e){e.loadFile=function(t,r,n){return function(i,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=function(l,c,u){var f=new XMLHttpRequest,d=0,h=function(v){var p=v.length,m=[],y=String.fromCharCode;for(d=0;d<p;d+=1)m.push(y(255&v.charCodeAt(d)));return m.join("")};if(f.open("GET",l,!c),f.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(f.onload=function(){f.status===200?u(h(this.responseText)):u(void 0)}),f.send(null),c&&f.status===200)return h(f.responseText)}(i,a,o)}catch{}return s}(t,r,n)},e.allowFsRead=void 0,e.loadImageFile=e.loadFile}(bt.API),function(e){function t(){return(jt.html2canvas?Promise.resolve(jt.html2canvas):NS(()=>import("./html2canvas.esm-CBrSDip1.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function r(){return(jt.DOMPurify?Promise.resolve(jt.DOMPurify):NS(()=>import("./purify.es-BgtpMKW3.js"),[])).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var n=function(s){var l=pr(s);return l==="undefined"?"undefined":l==="string"||s instanceof String?"string":l==="number"||s instanceof Number?"number":l==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":l==="object"?"object":"unknown"},i=function(s,l){var c=document.createElement(s);for(var u in l.className&&(c.className=l.className),l.innerHTML&&l.dompurify&&(c.innerHTML=l.dompurify.sanitize(l.innerHTML)),l.style)c.style[u]=l.style[u];return c},a=function s(l,c){for(var u=l.nodeType===3?document.createTextNode(l.nodeValue):l.cloneNode(!1),f=l.firstChild;f;f=f.nextSibling)c!==!0&&f.nodeType===1&&f.nodeName==="SCRIPT"||u.appendChild(s(f,c));return l.nodeType===1&&(l.nodeName==="CANVAS"?(u.width=l.width,u.height=l.height,u.getContext("2d").drawImage(l,0,0)):l.nodeName!=="TEXTAREA"&&l.nodeName!=="SELECT"||(u.value=l.value),u.addEventListener("load",function(){u.scrollTop=l.scrollTop,u.scrollLeft=l.scrollLeft},!0)),u},o=function s(l){var c=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),u=s.convert(Promise.resolve(),c);return(u=u.setProgress(1,s,1,[s])).set(l)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(s,l){return s.__proto__=l||o.prototype,s},o.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},o.prototype.from=function(s,l){return this.then(function(){switch(l=l||function(c){switch(n(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s),l){case"string":return this.then(r).then(function(c){return this.set({src:i("div",{innerHTML:s,dompurify:c})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},o.prototype.to=function(s){switch(s){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},o.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var s={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},l=a(this.prop.src,this.opt.html2canvas.javascriptEnabled);l.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(l),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},o.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(l){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,l(this.prop.container,c)}).then(function(l){(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(t).then(function(l){var c=this.opt.jsPDF,u=this.opt.fontFaces,f=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:f,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete d.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=u,u)for(var h=0;h<u.length;++h){var v=u[h],p=v.src.find(function(m){return m.format==="truetype"});p&&c.addFont(p.url,v.ref.name,v.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,c.context2d.save(!0),l(this.prop.container,d)}).then(function(l){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(l),this.prop.canvas=l,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(s,l,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(s,l):this.outputPdf(s,l)},o.prototype.outputPdf=function(s,l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,l)})},o.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+s+'" is not supported.'}})},o.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(s){if(n(s)!=="object")return this;var l=Object.keys(s||{}).map(function(c){if(c in o.template.prop)return function(){this.prop[c]=s[c]};switch(c){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[c]=s[c]}}},this);return this.then(function(){return this.thenList(l)})},o.prototype.get=function(s,l){return this.then(function(){var c=s in o.template.prop?this.prop[s]:this.opt[s];return l?l(c):c})},o.prototype.setMargin=function(s){return this.then(function(){switch(n(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},o.prototype.setPageSize=function(s){function l(c,u){return Math.floor(c*u/72*96)}return this.then(function(){(s=s||bt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:l(s.inner.width,s.k),height:l(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},o.prototype.setProgress=function(s,l,c,u){return s!=null&&(this.progress.val=s),l!=null&&(this.progress.state=l),c!=null&&(this.progress.n=c),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(s,l,c,u){return this.setProgress(s?this.progress.val+s:null,l||null,c?this.progress.n+c:null,u?this.progress.stack.concat(u):null)},o.prototype.then=function(s,l){var c=this;return this.thenCore(s,l,function(u,f){return c.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,function(d){return c.updateProgress(null,u),d}).then(u,f).then(function(d){return c.updateProgress(1),d})})},o.prototype.thenCore=function(s,l,c){c=c||Promise.prototype.then;var u=this;s&&(s=s.bind(u)),l&&(l=l.bind(u));var f=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?u:o.convert(Object.assign({},u),Promise.prototype),d=c.call(f,s,l);return o.convert(d,u.__proto__)},o.prototype.thenExternal=function(s,l){return Promise.prototype.then.call(this,s,l)},o.prototype.thenList=function(s){var l=this;return s.forEach(function(c){l=l.thenCore(c)}),l},o.prototype.catch=function(s){s&&(s=s.bind(this));var l=Promise.prototype.catch.call(this,s);return o.convert(l,this)},o.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},o.prototype.error=function(s){return this.then(function(){throw new Error(s)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,bt.getPageSize=function(s,l,c){if(pr(s)==="object"){var u=s;s=u.orientation,l=u.unit||l,c=u.format||c}l=l||"mm",c=c||"a4",s=(""+(s||"P")).toLowerCase();var f,d=(""+c).toLowerCase(),h={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(l){case"pt":f=1;break;case"mm":f=72/25.4;break;case"cm":f=72/2.54;break;case"in":f=72;break;case"px":f=.75;break;case"pc":case"em":f=12;break;case"ex":f=6;break;default:throw"Invalid unit: "+l}var v,p=0,m=0;if(h.hasOwnProperty(d))p=h[d][1]/f,m=h[d][0]/f;else try{p=c[1],m=c[0]}catch{throw new Error("Invalid format: "+c)}if(s==="p"||s==="portrait")s="p",m>p&&(v=m,m=p,p=v);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",p>m&&(v=m,m=p,p=v)}return{width:m,height:p,unit:l,k:f,orientation:s}},e.html=function(s,l){(l=l||{}).callback=l.callback||function(){},l.html2canvas=l.html2canvas||{},l.html2canvas.canvas=l.html2canvas.canvas||this.canvas,l.jsPDF=l.jsPDF||this,l.fontFaces=l.fontFaces?l.fontFaces.map(HS):null;var c=new o(l);return l.worker?c:c.from(s).doCallback()}}(bt.API),bt.API.addJS=function(e){var t,r,n=function(i){for(var a="",o=0;o<i.length;o++){var s=i[o];if(s==="("||s===")"){for(var l=0,c=o-1;c>=0&&i[c]==="\\";c--)l++;a+=l%2==0?"\\"+s:s}else a+=s}return a}(e);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),r=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+n+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&r!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=r.outline.render().split(/\r\n/),a=0;a<i.length;a++){var o=i[a],s=n.exec(o);if(s!=null){var l=s[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(a=0;a<c;a++){var f=r.internal.newObject();u.push(f);var d=r.internal.getPageInfo(a+1);r.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var h=r.internal.newObject();for(r.internal.write("<< /Names [ "),a=0;a<u.length;a++)r.internal.write("(page_"+(a+1)+")"+u[a]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+h+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){var r=this;r.outline.root.children.length>0&&(r.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&r.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,i,a){var o={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(o),o},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<n.children.length;a++){var o=n.children[a];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(n)),a>0&&this.line("/Prev "+this.makeRef(n.children[a-1])),a<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[a+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var l=r.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},r.outline.line=function(n){this.ctx.val+=n+`\r `},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r `+n.id+` 0 obj\r <<\r `},r.outline.objEnd=function(){this.ctx.val+=`>> \r endobj\r `},r.outline.count_r=function(n,i){for(var a=0;a<i.children.length;a++)n.count++,this.count_r(n,i.children[a]);return n.count}}])}(bt.API),function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,i,a,o,s){var l,c=this.decode.DCT_DECODE,u=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=o||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,l=function(f){for(var d,h=256*f.charCodeAt(4)+f.charCodeAt(5),v=f.length,p={width:0,height:0,numcomponents:1},m=4;m<v;m+=2){if(m+=h,t.indexOf(f.charCodeAt(m+1))!==-1){d=256*f.charCodeAt(m+5)+f.charCodeAt(m+6),p={width:256*f.charCodeAt(m+7)+f.charCodeAt(m+8),height:d,numcomponents:f.charCodeAt(m+9)};break}h=256*f.charCodeAt(m+2)+f.charCodeAt(m+3)}return p}(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r),l.numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:n,alias:i}}return u}}(bt.API),bt.API.processPNG=function(e,t,r,n){if(this.__addimage__.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.__addimage__.isArrayBufferView(e)){var i,a=bIe(e,{checkCrc:!0}),o=a.width,s=a.height,l=a.channels,c=a.palette,u=a.depth;i=c&&l===1?function(j){for(var C=j.width,R=j.height,L=j.data,I=j.palette,B=j.depth,z=!1,V=[],Q=[],ae=void 0,K=!1,re=0,ye=0;ye<I.length;ye++){var xe=PL(I[ye],4),O=xe[0],M=xe[1],F=xe[2],U=xe[3];V.push(O,M,F),U!=null&&(U===0?(re++,Q.length<1&&Q.push(ye)):U<255&&(K=!0))}if(K||re>1){z=!0,Q=void 0;var Z=C*R;ae=new Uint8Array(Z);for(var se=new DataView(L.buffer),ve=0;ve<Z;ve++){var oe=GS(se,ve,B),pe=PL(I[oe],4)[3];ae[ve]=pe}}else re===0&&(Q=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:z?8:void 0,colorBytes:L,alphaBytes:ae,needSMask:z,palette:V,mask:Q}}(a):l===2||l===4?function(j){for(var C=j.data,R=j.width,L=j.height,I=j.channels,B=j.depth,z=I===2?"DeviceGray":"DeviceRGB",V=I-1,Q=R*L,ae=V,K=Q*ae,re=1*Q,ye=Math.ceil(K*B/8),xe=Math.ceil(re*B/8),O=new Uint8Array(ye),M=new Uint8Array(xe),F=new DataView(C.buffer),U=new DataView(O.buffer),Z=new DataView(M.buffer),se=!1,ve=0;ve<Q;ve++){for(var oe=ve*I,pe=0;pe<ae;pe++)OI(U,GS(F,oe+pe,B),ve*ae+pe,B);var Se=GS(F,oe+ae,B);Se<(1<<B)-1&&(se=!0),OI(Z,Se,1*ve,B)}return{colorSpace:z,colorsPerPixel:V,sMaskBitsPerComponent:se?B:void 0,colorBytes:O,alphaBytes:M,needSMask:se}}(a):function(j){var C=j.data,R=j.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:R,colorsPerPixel:R==="DeviceGray"?1:3,colorBytes:C instanceof Uint16Array?function(L){for(var I=L.length,B=new Uint8Array(2*I),z=new DataView(B.buffer,B.byteOffset,B.byteLength),V=0;V<I;V++)z.setUint16(2*V,L[V],!1);return B}(C):C,needSMask:!1}}(a);var f,d,h,v=i,p=v.colorSpace,m=v.colorsPerPixel,y=v.sMaskBitsPerComponent,x=v.colorBytes,w=v.alphaBytes,S=v.needSMask,A=v.palette,N=v.mask,P=null;return n!==bt.API.image_compression.NONE&&typeof a3=="function"?(P=function(j){var C;switch(j){case bt.API.image_compression.FAST:C=11;break;case bt.API.image_compression.MEDIUM:C=13;break;case bt.API.image_compression.SLOW:C=14;break;default:C=12}return C}(n),f=this.decode.FLATE_DECODE,d="/Predictor ".concat(P," /Colors ").concat(m," /BitsPerComponent ").concat(u," /Columns ").concat(o),e=EI(x,Math.ceil(o*m*u/8),m,u,n),S&&(h=EI(w,Math.ceil(o*y/8),1,y,n))):(f=void 0,d=void 0,e=x,S&&(h=w)),(this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e))&&(e=this.__addimage__.arrayBufferToBinaryString(e)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:r,data:e,index:t,filter:f,decodeParameters:d,transparency:N,palette:A,sMask:h,predictor:P,width:o,height:s,bitsPerComponent:u,sMaskBitsPerComponent:y,colorSpace:p}}},function(e){e.processGIF89A=function(t,r,n,i){var a=new UIe(t),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},u=new qS(100).encode(c,100);return e.processJPEG.call(this,u,r,n,i)},e.processGIF87A=e.processGIF89A}(bt.API),es.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},es.prototype.parseBGR=function(){this.pos=this.offset;var e="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[e]()}catch(r){Fr.log("bit decode error:"+r)}},es.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}r!==0&&(this.pos+=4-r)}},es.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*i*4,s=a>>4,l=15&a,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},es.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+4*n;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},es.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,c=a>>15?255:0,u=n*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=e}},es.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&r)/r*255|0,c=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},es.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},es.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=o}},es.prototype.getData=function(){return this.data},function(e){e.processBMP=function(t,r,n,i){var a=new es(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new qS(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}}(bt.API),jI.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(t,r,n,i){var a=new jI(t),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new qS(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}}(bt.API),bt.API.processRGBA=function(e,t,r){for(var n=e.data,i=n.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var u=n[c],f=n[c+1],d=n[c+2],h=n[c+3];a[s++]=u,a[s++]=f,a[s++]=d,o[l++]=h}var v=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:v,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},bt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Nd=bt.API,Bv=Nd.getCharWidthsArray=function(e,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,f=t.doKerning!==!1,d=0,h=e.length,v=0,p=s[0]||l,m=[];for(r=0;r<h;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?m.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+o*(1e3/a)||0)/1e3):(d=f&&pr(c[n])==="object"&&!isNaN(parseInt(c[n][v],10))?c[n][v]/u:0,m.push((s[n]||p)/l+d)),v=n;return m},SI=Nd.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Nd.processArabic&&(e=Nd.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,i)/r:Bv.apply(this,arguments).reduce(function(a,o){return a+o},0)},_I=function(e,t,r,n){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<r;)s+=t[a],a++;i.push(e.slice(0,a));var l=a;for(s=0;a!==o;)s+t[a]>n&&(i.push(e.slice(l,a)),s=0,l=a),s+=t[a],a++;return l!==a&&i.push(e.slice(l,a)),i},AI=function(e,t,r){r||(r={});var n,i,a,o,s,l,c,u=[],f=[u],d=r.textIndent||0,h=0,v=0,p=e.split(" "),m=Bv.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?p[0].length+2:r.lineIndent||0){var y=Array(l).join(" "),x=[];p.map(function(S){(S=S.split(/\s*\n/)).length>1?x=x.concat(S.map(function(A,N){return(N&&A.length?` `:"")+A})):x.push(S[0])}),p=x,l=SI.apply(this,[y,r])}for(a=0,o=p.length;a<o;a++){var w=0;if(n=p[a],l&&n[0]==` `&&(n=n.substr(1),w=1),d+h+(v=(i=Bv.apply(this,[n,r])).reduce(function(S,A){return S+A},0))>t||w){if(v>t){for(s=_I.apply(this,[n,i,t-(d+h),t]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);v=i.slice(n.length-(u[0]?u[0].length:0)).reduce(function(S,A){return S+A},0)}else u=[n];f.push(u),d=v+l,h=m}else u.push(n),d+=h+v,h=m}return c=l?function(S,A){return(A?y:"")+S.join(" ")}:function(S){return S.join(" ")},f.map(c)},Nd.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.fontStyle),d="Unicode";return f.metadata[d]?{widths:f.metadata[d].widths||{0:1},kerning:f.metadata[d].kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var s,l,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(AI.apply(this,[n[s],o,a]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="0123456789abcdef",r="klmnopqrstuvwxyz",n={},i={},a=0;a<16;a++)n[r[a]]=t[a],i[t[a]]=r[a];var o=function(d){return"0x"+parseInt(d,10).toString(16)},s=e.__fontmetrics__.compress=function(d){var h,v,p,m,y=["{"];for(var x in d){if(h=d[x],isNaN(parseInt(x,10))?v="'"+x+"'":(x=parseInt(x,10),v=(v=o(x).slice(2)).slice(0,-1)+i[v.slice(-1)]),typeof h=="number")h<0?(p=o(h).slice(3),m="-"):(p=o(h).slice(2),m=""),p=m+p.slice(0,-1)+i[p.slice(-1)];else{if(pr(h)!=="object")throw new Error("Don't know what to do with value type "+pr(h)+".");p=s(h)}y.push(v+p)}return y.push("}"),y.join("")},l=e.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var h,v,p,m,y={},x=1,w=y,S=[],A="",N="",P=d.length-1,j=1;j<P;j+=1)(m=d[j])=="'"?h?(p=h.join(""),h=void 0):h=[]:h?h.push(m):m=="{"?(S.push([w,p]),w={},p=void 0):m=="}"?((v=S.pop())[0][v[1]]=w,p=void 0,w=v[0]):m=="-"?x=-1:p===void 0?n.hasOwnProperty(m)?(A+=n[m],p=parseInt(A,16)*x,x=1,A=""):A+=m:n.hasOwnProperty(m)?(N+=n[m],w[p]=parseInt(N,16)*x,x=1,p=void 0,N=""):N+=m;return y},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:l("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},f={Unicode:{"Courier-Oblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":l("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":l("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:l("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":l("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:l("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":l("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":l("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":l("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":l("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(d){var h=d.font,v=f.Unicode[h.postScriptName];v&&(h.metadata.Unicode={},h.metadata.Unicode.widths=v.widths,h.metadata.Unicode.kerning=v.kerning);var p=u.Unicode[h.postScriptName];p&&(h.metadata.Unicode.encoding=p,h.encoding=p.codePages[0])}])}(bt.API),function(e){var t=function(r){for(var n=r.length,i=new Uint8Array(n),a=0;a<n;a++)i[a]=r.charCodeAt(a);return i};e.API.events.push(["addFont",function(r){var n=void 0,i=r.font,a=r.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(ly(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,n)}}])}(bt),bt.API.addSvgAsImage=function(e,t,r,n,i,a,o,s){if(isNaN(t)||isNaN(r))throw Fr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(n)||isNaN(i))throw Fr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=n,l.height=i;var c=l.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height);var u={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return(jt.canvg?Promise.resolve(jt.canvg):NS(()=>import("./index.es-CbYRFVCO.js"),[])).catch(function(d){return Promise.reject(new Error("Could not load canvg: "+d))}).then(function(d){return d.default?d.default:d}).then(function(d){return d.fromString(c,e,u)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(d){return d.render(u)}).then(function(){f.addImage(l.toDataURL("image/jpeg",1),t,r,n,i,o,s)})},bt.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(t,r);return this},bt.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,u=0,f=0;function d(v,p){var m,y=!1;for(m=0;m<v.length;m+=1)v[m]===p&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var h=s.length;for(f=0;f<h;f+=1)r[s[f]].value=r[s[f]].defaultValue,r[s[f]].explicitSet=!1}if(pr(e)==="object"){for(i in e)if(a=e[i],d(s,i)&&a!==void 0){if(r[i].type==="boolean"&&typeof a=="boolean")r[i].value=a;else if(r[i].type==="name"&&d(r[i].valueSet,a))r[i].value=a;else if(r[i].type==="integer"&&Number.isInteger(a))r[i].value=a;else if(r[i].type==="array"){for(c=0;c<a.length;c+=1)if(n=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(n=!1);n===!0&&l.push([a[c][0]-1,a[c][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var v,p=[];for(v in r)r[v].explicitSet===!0&&(r[v].type==="name"?p.push("/"+v+" /"+r[v].value):p.push("/"+v+" "+r[v].value));p.length!==0&&this.internal.write(`/ViewerPreferences << `+p.join(` `)+` >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},bt.API.addMetadata=function(e,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:e,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",zIe),this.internal.events.subscribe("postPutResources",WIe)),this},function(e){var t=e.API,r=t.pdfEscape16=function(a,o){for(var s,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],u=[""],f=0,d=a.length;f<d;++f){if(s=o.metadata.characterToGlyph(a.charCodeAt(f)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=a.charCodeAt(f),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(c[4-s.length],s)}return u.join("")},n=function(a){var o,s,l,c,u,f,d;for(u=`/CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo << /Registry (Adobe) /Ordering (UCS) /Supplement 0 >> def /CMapName /Adobe-Identity-UCS def /CMapType 2 def 1 begincodespacerange <0000><ffff> endcodespacerange`,l=[],f=0,d=(s=Object.keys(a).sort(function(h,v){return h-v})).length;f<d;f++)o=s[f],l.length>=100&&(u+=` `+l.length+` beginbfchar `+l.join(` `)+` endbfchar`,l=[]),a[o]!==void 0&&a[o]!==null&&typeof a[o].toString=="function"&&(c=("0000"+a[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(u+=` `+l.length+` beginbfchar `+l.join(` `)+` endbfchar `),u+`endcmap CMapName currentdict /CMap defineresource pop end end`};t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var f=s.metadata.Unicode.widths,d=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),h="",v=0;v<d.length;v++)h+=String.fromCharCode(d[v]);var p=c();u({data:h,addLength1:!0,objectId:p}),l("endobj");var m=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:m}),l("endobj");var y=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+Cd(s.fontName)),l("/FontFile2 "+p+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var x=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+Cd(s.fontName)),l("/FontDescriptor "+y+" 0 R"),l("/W "+e.API.PDFObject.convert(f)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+m+" 0 R"),l("/BaseFont /"+Cd(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+x+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,u=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var f=s.metadata.rawData,d="",h=0;h<f.length;h++)d+=String.fromCharCode(f[h]);var v=c();u({data:d,addLength1:!0,objectId:v}),l("endobj");var p=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:p}),l("endobj");var m=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+v+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+Cd(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var y=0;y<s.metadata.hmtx.widths.length;y++)s.metadata.hmtx.widths[y]=parseInt(s.metadata.hmtx.widths[y]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+p+" 0 R/BaseFont/"+Cd(s.fontName)+"/FontDescriptor "+m+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]);var i=function(a){var o,s=a.text||"",l=a.x,c=a.y,u=a.options||{},f=a.mutex||{},d=f.pdfEscape,h=f.activeFontKey,v=f.fonts,p=h,m="",y=0,x="",w=v[p].encoding;if(v[p].encoding!=="Identity-H")return{text:s,x:l,y:c,options:u,mutex:f};for(x=s,p=h,Array.isArray(s)&&(x=s[0]),y=0;y<x.length;y+=1)v[p].metadata.hasOwnProperty("cmap")&&(o=v[p].metadata.cmap.unicode.codeMap[x[y].charCodeAt(0)]),o||x[y].charCodeAt(0)<256&&v[p].metadata.hasOwnProperty("Unicode")?m+=x[y]:m+="";var S="";return parseInt(p.slice(1))<14||w==="WinAnsiEncoding"?S=d(m,p).split("").map(function(A){return A.charCodeAt(0).toString(16)}).join(""):w==="Identity-H"&&(S=r(m,v[p])),f.isHex=!0,{text:S,x:l,y:c,options:u,mutex:f}};t.events.push(["postProcessText",function(a){var o=a.text||"",s=[],l={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?s.push([i(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):s.push(i(Object.assign({},l,{text:o[c]})).text);a.text=s}else a.text=i(Object.assign({},l,{text:o})).text}])}(bt),function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}}(bt.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,a,o,s,l,c,u,f=t,d=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],v={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},m=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],y=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),x=!1,w=0;this.__bidiEngine__={};var S=function(L){var I=L.charCodeAt(),B=I>>8,z=p[B];return z!==void 0?f[256*z+(255&I)]:B===252||B===253?"AL":y.test(B)?"L":B===8?"R":"N"},A=function(L){for(var I,B=0;B<L.length;B++){if((I=S(L.charAt(B)))==="L")return!1;if(I==="R")return!0}return!1},N=function(L,I,B,z){var V,Q,ae,K,re=I[z];switch(re){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":x=!1;break;case"N":case"AN":break;case"EN":x&&(re="AN");break;case"AL":x=!0,re="R";break;case"WS":case"BN":re="N";break;case"CS":z<1||z+1>=I.length||(V=B[z-1])!=="EN"&&V!=="AN"||(Q=I[z+1])!=="EN"&&Q!=="AN"?re="N":x&&(Q="AN"),re=Q===V?Q:"N";break;case"ES":re=(V=z>0?B[z-1]:"B")==="EN"&&z+1<I.length&&I[z+1]==="EN"?"EN":"N";break;case"ET":if(z>0&&B[z-1]==="EN"){re="EN";break}if(x){re="N";break}for(ae=z+1,K=I.length;ae<K&&I[ae]==="ET";)ae++;re=ae<K&&I[ae]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(K=I.length,ae=z+1;ae<K&&I[ae]==="NSM";)ae++;if(ae<K){var ye=L[z],xe=ye>=1425&&ye<=2303||ye===64286;if(V=I[ae],xe&&(V==="R"||V==="AL")){re="R";break}}}re=z<1||(V=I[z-1])==="B"?"N":B[z-1];break;case"B":x=!1,i=!0,re=w;break;case"S":a=!0,re="N"}return re},P=function(L,I,B){var z=L.split("");return B&&j(z,B,{hiLevel:w}),z.reverse(),I&&I.reverse(),z.join("")},j=function(L,I,B){var z,V,Q,ae,K,re=-1,ye=L.length,xe=0,O=[],M=w?h:d,F=[];for(x=!1,i=!1,a=!1,V=0;V<ye;V++)F[V]=S(L[V]);for(Q=0;Q<ye;Q++){if(K=xe,O[Q]=N(L,F,O,Q),z=240&(xe=M[K][v[O[Q]]]),xe&=15,I[Q]=ae=M[xe][5],z>0)if(z===16){for(V=re;V<Q;V++)I[V]=1;re=-1}else re=-1;if(M[xe][6])re===-1&&(re=Q);else if(re>-1){for(V=re;V<Q;V++)I[V]=ae;re=-1}F[Q]==="B"&&(I[Q]=0),B.hiLevel|=ae}a&&function(U,Z,se){for(var ve=0;ve<se;ve++)if(U[ve]==="S"){Z[ve]=w;for(var oe=ve-1;oe>=0&&U[oe]==="WS";oe--)Z[oe]=w}}(F,I,ye)},C=function(L,I,B,z,V){if(!(V.hiLevel<L)){if(L===1&&w===1&&!i)return I.reverse(),void(B&&B.reverse());for(var Q,ae,K,re,ye=I.length,xe=0;xe<ye;){if(z[xe]>=L){for(K=xe+1;K<ye&&z[K]>=L;)K++;for(re=xe,ae=K-1;re<ae;re++,ae--)Q=I[re],I[re]=I[ae],I[ae]=Q,B&&(Q=B[re],B[re]=B[ae],B[ae]=Q);xe=K}xe++}}},R=function(L,I,B){var z=L.split(""),V={hiLevel:w};return B||(B=[]),j(z,B,V),function(Q,ae,K){if(K.hiLevel!==0&&u)for(var re,ye=0;ye<Q.length;ye++)ae[ye]===1&&(re=m.indexOf(Q[ye]))>=0&&(Q[ye]=m[re+1])}(z,B,V),C(2,z,I,B,V),C(1,z,I,B,V),z.join("")};return this.__bidiEngine__.doBidiReorder=function(L,I,B){if(function(V,Q){if(Q)for(var ae=0;ae<V.length;ae++)Q[ae]=ae;s===void 0&&(s=A(V)),c===void 0&&(c=A(V))}(L,I),o||!l||c)if(o&&l&&s^c)w=s?1:0,L=P(L,I,B);else if(!o&&l&&c)w=s?1:0,L=R(L,I,B),L=P(L,I);else if(!o||s||l||c){if(o&&!l&&s^c)L=P(L,I),s?(w=0,L=R(L,I,B)):(w=1,L=R(L,I,B),L=P(L,I));else if(o&&s&&!l&&c)w=1,L=R(L,I,B),L=P(L,I);else if(!o&&!l&&s^c){var z=u;s?(w=1,L=R(L,I,B),w=0,u=!1,L=R(L,I,B),u=z):(w=0,L=R(L,I,B),L=P(L,I),w=1,u=!1,L=R(L,I,B),u=z,L=P(L,I))}}else w=0,L=R(L,I,B);else w=s?1:0,L=R(L,I,B);return L},this.__bidiEngine__.setOptions=function(L){L&&(o=L.isInputVisual,l=L.isOutputVisual,s=L.isInputRtl,c=L.isOutputRtl,u=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var i=n.text;n.x,n.y;var a=n.options||{};n.mutex,a.lang;var o=[];if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,r.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(o=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?o.push([r.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):o.push([r.doBidiReorder(i[s])]);n.text=o}else n.text=r.doBidiReorder(i);r.setOptions({isInputVisual:!0})}])}(bt),bt.API.TTFFont=function(){function e(t){var r;if(this.rawData=t,r=this.contents=new pu(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new iDe(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new HIe(this.contents),this.head=new GIe(this),this.name=new JIe(this),this.cmap=new WH(this),this.toUnicode={},this.hhea=new qIe(this),this.maxp=new ZIe(this),this.hmtx=new QIe(this),this.post=new XIe(this),this.os2=new KIe(this),this.loca=new nDe(this),this.glyf=new eDe(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,r,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,s,l,c;for(c=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),32768&(r=i>>16)&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var i,a,o,s;for(o=0,a=0,s=(t=""+t).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=t.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/r)||0;return o*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e}();var ws,pu=function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,i;for(i=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.writeByte(t.charCodeAt(r)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,i,a,o,s,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*i+16777216*a+65536*o+256*s+l},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,i,a;for(a=[],n=0,i=t.length;n<i;n++)r=t[n],a.push(this.writeByte(r));return a},e}(),HIe=function(){var e;function t(r){var n,i,a;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,i,a,o,s,l,c,u,f,d,h,v,p;for(p in h=Object.keys(r).length,l=Math.log(2),f=16*Math.floor(Math.log(h)/l),o=Math.floor(f/l),u=16*h-f,(i=new pu).writeInt(this.scalarType),i.writeShort(h),i.writeShort(f),i.writeShort(o),i.writeShort(u),a=16*h,c=i.pos+a,s=null,v=[],r)for(d=r[p],i.writeString(p),i.writeInt(e(d)),i.writeInt(c),i.writeInt(d.length),v=v.concat(d),p==="head"&&(s=c),c+=d.length;c%4;)v.push(0),c++;return i.write(v),n=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(n),i.data},e=function(r){var n,i,a,o;for(r=zH.call(r);r.length%4;)r.push(0);for(a=new pu(r),i=0,n=0,o=r.length;n<o;n=n+=4)i+=a.readUInt32();return 4294967295&i},t}(),VIe={}.hasOwnProperty,Zs=function(e,t){for(var r in t)VIe.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};ws=function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var GIe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="head",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},e.prototype.encode=function(t){var r;return(r=new pu).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},e}(),LI=function(){function e(t,r){var n,i,a,o,s,l,c,u,f,d,h,v,p,m,y,x,w;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),f=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(h=t.readUInt16(),d=h/2,t.pos+=6,a=function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A}(),t.pos+=2,p=function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A}(),c=function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A}(),u=function(){var S,A;for(A=[],l=S=0;0<=d?S<d:S>d;l=0<=d?++S:--S)A.push(t.readUInt16());return A}(),i=(this.length-t.pos+this.offset)/2,s=function(){var S,A;for(A=[],l=S=0;0<=i?S<i:S>i;l=0<=i?++S:--S)A.push(t.readUInt16());return A}(),l=y=0,w=a.length;y<w;l=++y)for(m=a[l],n=x=v=p[l];v<=m?x<=m:x>=m;n=v<=m?++x:--x)u[l]===0?o=n+c[l]:(o=s[u[l]/2+(n-v)-(d-l)]||0)!==0&&(o+=c[l]),this.codeMap[n]=65535&o}t.pos=f}return e.encode=function(t,r){var n,i,a,o,s,l,c,u,f,d,h,v,p,m,y,x,w,S,A,N,P,j,C,R,L,I,B,z,V,Q,ae,K,re,ye,xe,O,M,F,U,Z,se,ve,oe,pe,Se,me;switch(z=new pu,o=Object.keys(t).sort(function(Le,ie){return Le-ie}),r){case"macroman":for(p=0,m=function(){var Le=[];for(v=0;v<256;++v)Le.push(0);return Le}(),x={0:0},a={},V=0,re=o.length;V<re;V++)x[oe=t[i=o[V]]]==null&&(x[oe]=++p),a[i]={old:t[i],new:x[t[i]]},m[i]=x[t[i]];return z.writeUInt16(1),z.writeUInt16(0),z.writeUInt32(12),z.writeUInt16(0),z.writeUInt16(262),z.writeUInt16(0),z.write(m),{charMap:a,subtable:z.data,maxGlyphID:p+1};case"unicode":for(I=[],f=[],w=0,x={},n={},y=c=null,Q=0,ye=o.length;Q<ye;Q++)x[A=t[i=o[Q]]]==null&&(x[A]=++w),n[i]={old:A,new:x[A]},s=x[A]-i,y!=null&&s===c||(y&&f.push(y),I.push(i),c=s),y=i;for(y&&f.push(y),f.push(65535),I.push(65535),R=2*(C=I.length),j=2*Math.pow(Math.log(C)/Math.LN2,2),d=Math.log(j/2)/Math.LN2,P=2*C-j,l=[],N=[],h=[],v=ae=0,xe=I.length;ae<xe;v=++ae){if(L=I[v],u=f[v],L===65535){l.push(0),N.push(0);break}if(L-(B=n[L].new)>=32768)for(l.push(0),N.push(2*(h.length+C-v)),i=K=L;L<=u?K<=u:K>=u;i=L<=u?++K:--K)h.push(n[i].new);else l.push(B-L),N.push(0)}for(z.writeUInt16(3),z.writeUInt16(1),z.writeUInt32(12),z.writeUInt16(4),z.writeUInt16(16+8*C+2*h.length),z.writeUInt16(0),z.writeUInt16(R),z.writeUInt16(j),z.writeUInt16(d),z.writeUInt16(P),se=0,O=f.length;se<O;se++)i=f[se],z.writeUInt16(i);for(z.writeUInt16(0),ve=0,M=I.length;ve<M;ve++)i=I[ve],z.writeUInt16(i);for(pe=0,F=l.length;pe<F;pe++)s=l[pe],z.writeUInt16(s);for(Se=0,U=N.length;Se<U;Se++)S=N[Se],z.writeUInt16(S);for(me=0,Z=h.length;me<Z;me++)p=h[me],z.writeUInt16(p);return{charMap:n,subtable:z.data,maxGlyphID:w+1}}},e}(),WH=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="cmap",e.prototype.parse=function(t){var r,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new LI(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},e.encode=function(t,r){var n,i;return r==null&&(r="macroman"),n=LI.encode(t,r),(i=new pu).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},e}(),qIe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="hhea",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},e}(),KIe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="OS/2",e.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},e}(),XIe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="post",e.prototype.parse=function(t){var r,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:case 196608:break;case 131072:var a;for(n=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)r=t.readByte(),i.push(this.names.push(t.readString(r)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 262144:return this.map=(function(){var o,s,l;for(l=[],a=o=0,s=this.file.maxp.numGlyphs;0<=s?o<s:o>s;a=0<=s?++o:--o)l.push(t.readUInt32());return l}).call(this)}},e}(),YIe=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},JIe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="name",e.prototype.parse=function(t){var r,n,i,a,o,s,l,c,u,f,d;for(t.pos=this.offset,t.readShort(),r=t.readShort(),s=t.readShort(),n=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+s+t.readShort()});for(l={},a=u=0,f=n.length;u<f;a=++u)i=n[a],t.pos=i.offset,c=t.readString(i.length),o=new YIe(c,i),l[d=i.nameID]==null&&(l[d]=[]),l[i.nameID].push(o);this.strings=l,this.copyright=l[0],this.fontFamily=l[1],this.fontSubfamily=l[2],this.uniqueSubfamily=l[3],this.fontName=l[4],this.version=l[5];try{this.postscriptName=l[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=l[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=l[7],this.manufacturer=l[8],this.designer=l[9],this.description=l[10],this.vendorUrl=l[11],this.designerUrl=l[12],this.license=l[13],this.licenseUrl=l[14],this.preferredFamily=l[15],this.preferredSubfamily=l[17],this.compatibleFull=l[18],this.sampleText=l[19]},e}(),ZIe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="maxp",e.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},e}(),QIe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="hmtx",e.prototype.parse=function(t){var r,n,i,a,o,s,l;for(t.pos=this.offset,this.metrics=[],r=0,s=this.file.hhea.numberOfMetrics;0<=s?r<s:r>s;r=0<=s?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var c,u;for(u=[],r=c=0;0<=i?c<i:c>i;r=0<=i?++c:--c)u.push(t.readInt16());return u}(),this.widths=(function(){var c,u,f,d;for(d=[],c=0,u=(f=this.metrics).length;c<u;c++)a=f[c],d.push(a.advance);return d}).call(this),n=this.widths[this.widths.length-1],l=[],r=o=0;0<=i?o<i:o>i;r=0<=i?++o:--o)l.push(this.widths.push(n));return l},e.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},e}(),zH=[].slice,eDe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(t){var r,n,i,a,o,s,l,c,u,f;return t in this.cache?this.cache[t]:(a=this.file.loca,r=this.file.contents,n=a.indexOf(t),(i=a.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,o=(s=new pu(r.read(i))).readShort(),c=s.readShort(),f=s.readShort(),l=s.readShort(),u=s.readShort(),this.cache[t]=o===-1?new rDe(s,c,f,l,u):new tDe(s,o,c,f,l,u),this.cache[t]))},e.prototype.encode=function(t,r,n){var i,a,o,s,l;for(o=[],a=[],s=0,l=r.length;s<l;s++)i=t[r[s]],a.push(o.length),i&&(o=o.concat(i.encode(n)));return a.push(o.length),{table:o,offsets:a}},e}(),tDe=function(){function e(t,r,n,i,a,o){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),rDe=function(){function e(t,r,n,i,a){var o,s;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new pu(zH.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e}(),nDe=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return Zs(e,ws),e.prototype.tag="loca",e.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=4)a.push(t.readUInt32());return a}).call(this)},e.prototype.indexOf=function(t){return this.offsets[t]},e.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},e.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,o=0;o<n.length;++o)if(n[o]=i,a<r.length&&r[a]==o){++a,n[o]=i;var s=this.offsets[o],l=this.offsets[o+1]-s;l>0&&(i+=l)}for(var c=new Array(4*n.length),u=0;u<n.length;++u)c[4*u+3]=255&n[u],c[4*u+2]=(65280&n[u])>>8,c[4*u+1]=(16711680&n[u])>>16,c[4*u]=(4278190080&n[u])>>24;return c},e}(),iDe=function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,i,a;for(r in i=this.font.cmap.tables[0].codeMap,t={},a=this.subset)n=a[r],t[r]=i[n];return t},e.prototype.glyphsFor=function(t){var r,n,i,a,o,s,l;for(i={},o=0,s=t.length;o<s;o++)i[a=t[o]]=this.font.glyf.glyphFor(a);for(a in r=[],i)(n=i[a])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(a in l=this.glyphsFor(r))n=l[a],i[a]=n;return i},e.prototype.encode=function(t,r){var n,i,a,o,s,l,c,u,f,d,h,v,p,m,y;for(i in n=WH.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},y=n.charMap)h[(l=y[i]).old]=l.new;for(v in d=n.maxGlyphID,o)v in h||(h[v]=d++);return u=function(x){var w,S;for(w in S={},x)S[x[w]]=w;return S}(h),f=Object.keys(u).sort(function(x,w){return x-w}),p=function(){var x,w,S;for(S=[],x=0,w=f.length;x<w;x++)s=f[x],S.push(u[s]);return S}(),a=this.font.glyf.encode(o,p,h),c=this.font.loca.encode(a.offsets,p),m={cmap:this.font.cmap.raw(),glyf:a.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},e}();bt.API.PDFObject=function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,i,a,o;if(Array.isArray(r))return"["+function(){var s,l,c;for(c=[],s=0,l=r.length;s<l;s++)n=r[s],c.push(t.convert(n));return c}().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(i in a=["<<"],r)o=r[i],a.push("/"+i+" "+t.convert(o));return a.push(">>"),a.join(` `)}return""+r},t}();function HH(e,t,r,n,i){n=n||{};var a=1.15,o=i.internal.scaleFactor,s=i.internal.getFontSize()/o,l=i.getLineHeightFactor?i.getLineHeightFactor():a,c=s*l,u=/\r\n|\r|\n/g,f="",d=1;if((n.valign==="middle"||n.valign==="bottom"||n.halign==="center"||n.halign==="right")&&(f=typeof e=="string"?e.split(u):e,d=f.length||1),r+=s*(2-a),n.valign==="middle"?r-=d/2*c:n.valign==="bottom"&&(r-=d*c),n.halign==="center"||n.halign==="right"){var h=s;if(n.halign==="center"&&(h*=.5),f&&d>=1){for(var v=0;v<f.length;v++)i.text(f[v],t-i.getStringUnitWidth(f[v])*h,r),r+=c;return i}t-=i.getStringUnitWidth(e)*h}return n.halign==="justify"?i.text(e,t,r,{maxWidth:n.maxWidth||100,align:"justify"}):i.text(e,t,r),i}var II={},xh=function(){function e(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return e.setDefaults=function(t,r){r===void 0&&(r=null),r?r.__autoTableDocumentDefaults=t:II=t},e.unifyColor=function(t){return Array.isArray(t)?t:typeof t=="number"?[t,t,t]:typeof t=="string"?[t]:null},e.prototype.applyStyles=function(t,r){var n,i,a;r===void 0&&(r=!1),t.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(t.fontStyle);var o=this.jsPDFDocument.internal.getFont(),s=o.fontStyle,l=o.fontName;if(t.font&&(l=t.font),t.fontStyle){s=t.fontStyle;var c=this.getFontList()[l];c&&c.indexOf(s)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(c[0]),s=c[0])}if(this.jsPDFDocument.setFont(l,s),t.fontSize&&this.jsPDFDocument.setFontSize(t.fontSize),!r){var u=e.unifyColor(t.fillColor);u&&(n=this.jsPDFDocument).setFillColor.apply(n,u),u=e.unifyColor(t.textColor),u&&(i=this.jsPDFDocument).setTextColor.apply(i,u),u=e.unifyColor(t.lineColor),u&&(a=this.jsPDFDocument).setDrawColor.apply(a,u),typeof t.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(t.lineWidth)}},e.prototype.splitTextToSize=function(t,r,n){return this.jsPDFDocument.splitTextToSize(t,r,n)},e.prototype.rect=function(t,r,n,i,a){return this.jsPDFDocument.rect(t,r,n,i,a)},e.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},e.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},e.prototype.getDocument=function(){return this.jsPDFDocument},e.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},e.prototype.addPage=function(){return this.jsPDFDocument.addPage()},e.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},e.prototype.getGlobalOptions=function(){return II||{}},e.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},e.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return t.width==null&&(t={width:t.getWidth(),height:t.getHeight()}),t},e.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},e.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},e.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},e.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},e}(),h3=function(e,t){return h3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},h3(e,t)};function VH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");h3(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var GH=function(e){VH(t,e);function t(r){var n=e.call(this)||this;return n._element=r,n}return t}(Array);function aDe(e){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/e,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function oDe(e){var t={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return t[e]}function p2(e,t,r){r.applyStyles(t,!0);var n=Array.isArray(e)?e:[e],i=n.map(function(a){return r.getTextWidth(a)}).reduce(function(a,o){return Math.max(a,o)},0);return i}function qH(e,t,r,n){var i=t.settings.tableLineWidth,a=t.settings.tableLineColor;e.applyStyles({lineWidth:i,lineColor:a});var o=KH(i,!1);o&&e.rect(r.x,r.y,t.getWidth(e.pageSize().width),n.y-r.y,o)}function KH(e,t){var r=e>0,n=t||t===0;return r&&n?"DF":r?"S":n?"F":null}function lw(e,t){var r,n,i,a;if(e=e||t,Array.isArray(e)){if(e.length>=4)return{top:e[0],right:e[1],bottom:e[2],left:e[3]};if(e.length===3)return{top:e[0],right:e[1],bottom:e[2],left:e[1]};if(e.length===2)return{top:e[0],right:e[1],bottom:e[0],left:e[1]};e.length===1?e=e[0]:e=t}return typeof e=="object"?(typeof e.vertical=="number"&&(e.top=e.vertical,e.bottom=e.vertical),typeof e.horizontal=="number"&&(e.right=e.horizontal,e.left=e.horizontal),{left:(r=e.left)!==null&&r!==void 0?r:t,top:(n=e.top)!==null&&n!==void 0?n:t,right:(i=e.right)!==null&&i!==void 0?i:t,bottom:(a=e.bottom)!==null&&a!==void 0?a:t}):(typeof e!="number"&&(e=t),{top:e,right:e,bottom:e,left:e})}function XH(e,t){var r=lw(t.settings.margin,0);return e.pageSize().width-(r.left+r.right)}function sDe(e,t,r,n,i){var a={},o=1.3333333333333333,s=KS(t,function(w){return i.getComputedStyle(w).backgroundColor});s!=null&&(a.fillColor=s);var l=KS(t,function(w){return i.getComputedStyle(w).color});l!=null&&(a.textColor=l);var c=cDe(n,r);c&&(a.cellPadding=c);var u="borderTopColor",f=o*r,d=n.borderTopWidth;if(n.borderBottomWidth===d&&n.borderRightWidth===d&&n.borderLeftWidth===d){var h=(parseFloat(d)||0)/f;h&&(a.lineWidth=h)}else a.lineWidth={top:(parseFloat(n.borderTopWidth)||0)/f,right:(parseFloat(n.borderRightWidth)||0)/f,bottom:(parseFloat(n.borderBottomWidth)||0)/f,left:(parseFloat(n.borderLeftWidth)||0)/f},a.lineWidth.top||(a.lineWidth.right?u="borderRightColor":a.lineWidth.bottom?u="borderBottomColor":a.lineWidth.left&&(u="borderLeftColor"));var v=KS(t,function(w){return i.getComputedStyle(w)[u]});v!=null&&(a.lineColor=v);var p=["left","right","center","justify"];p.indexOf(n.textAlign)!==-1&&(a.halign=n.textAlign),p=["middle","bottom","top"],p.indexOf(n.verticalAlign)!==-1&&(a.valign=n.verticalAlign);var m=parseInt(n.fontSize||"");isNaN(m)||(a.fontSize=m/o);var y=lDe(n);y&&(a.fontStyle=y);var x=(n.fontFamily||"").toLowerCase();return e.indexOf(x)!==-1&&(a.font=x),a}function lDe(e){var t="";return(e.fontWeight==="bold"||e.fontWeight==="bolder"||parseInt(e.fontWeight)>=700)&&(t="bold"),(e.fontStyle==="italic"||e.fontStyle==="oblique")&&(t+="italic"),t}function KS(e,t){var r=YH(e,t);if(!r)return null;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!n||!Array.isArray(n))return null;var i=[parseInt(n[1]),parseInt(n[2]),parseInt(n[3])],a=parseInt(n[4]);return a===0||isNaN(i[0])||isNaN(i[1])||isNaN(i[2])?null:i}function YH(e,t){var r=t(e);return r==="rgba(0, 0, 0, 0)"||r==="transparent"||r==="initial"||r==="inherit"?e.parentElement==null?null:YH(e.parentElement,t):r}function cDe(e,t){var r=[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft],n=96/(72/t),i=(parseInt(e.lineHeight)-parseInt(e.fontSize))/t/2,a=r.map(function(s){return parseInt(s||"0")/n}),o=lw(a,0);return i>o.top&&(o.top=i),i>o.bottom&&(o.bottom=i),o}function JH(e,t,r,n,i){var a,o;n===void 0&&(n=!1),i===void 0&&(i=!1);var s;typeof t=="string"?s=r.document.querySelector(t):s=t;var l=Object.keys(e.getFontList()),c=e.scaleFactor(),u=[],f=[],d=[];if(!s)return console.error("Html table could not be found with input: ",t),{head:u,body:f,foot:d};for(var h=0;h<s.rows.length;h++){var v=s.rows[h],p=(o=(a=v==null?void 0:v.parentElement)===null||a===void 0?void 0:a.tagName)===null||o===void 0?void 0:o.toLowerCase(),m=uDe(l,c,r,v,n,i);m&&(p==="thead"?u.push(m):p==="tfoot"?d.push(m):f.push(m))}return{head:u,body:f,foot:d}}function uDe(e,t,r,n,i,a){for(var o=new GH(n),s=0;s<n.cells.length;s++){var l=n.cells[s],c=r.getComputedStyle(l);if(i||c.display!=="none"){var u=void 0;a&&(u=sDe(e,l,t,c,r)),o.push({rowSpan:l.rowSpan,colSpan:l.colSpan,styles:u,_element:l,content:fDe(l)})}}var f=r.getComputedStyle(n);if(o.length>0&&(i||f.display!=="none"))return o}function fDe(e){var t=e.cloneNode(!0);return t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/ +/g," "),t.innerHTML=t.innerHTML.split(/<br.*?>/).map(function(r){return r.trim()}).join(` `),t.innerText||t.textContent||""}function dDe(e,t,r){for(var n=0,i=[e,t,r];n<i.length;n++){var a=i[n];a&&typeof a!="object"&&console.error("The options parameter should be of type object, is: "+typeof a),a.startY&&typeof a.startY!="number"&&(console.error("Invalid value for startY option",a.startY),delete a.startY)}}function Tl(e,t,r,n,i){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var a=Object(e),o=1;o<arguments.length;o++){var s=arguments[o];if(s!=null)for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(a[l]=s[l])}return a}function hDe(e,t){var r=new xh(e),n=r.getDocumentOptions(),i=r.getGlobalOptions();dDe(i,n,t);var a=Tl({},i,n,t),o;typeof window<"u"&&(o=window);var s=pDe(i,n,t),l=mDe(i,n,t),c=gDe(r,a),u=yDe(r,a,o);return{id:t.tableId,content:u,hooks:l,styles:s,settings:c}}function pDe(e,t,r){for(var n={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},i=function(l){if(l==="columnStyles"){var c=e[l],u=t[l],f=r[l];n.columnStyles=Tl({},c,u,f)}else{var d=[e,t,r],h=d.map(function(v){return v[l]||{}});n[l]=Tl({},h[0],h[1],h[2])}},a=0,o=Object.keys(n);a<o.length;a++){var s=o[a];i(s)}return n}function mDe(e,t,r){for(var n=[e,t,r],i={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},a=0,o=n;a<o.length;a++){var s=o[a];s.didParseCell&&i.didParseCell.push(s.didParseCell),s.willDrawCell&&i.willDrawCell.push(s.willDrawCell),s.didDrawCell&&i.didDrawCell.push(s.didDrawCell),s.willDrawPage&&i.willDrawPage.push(s.willDrawPage),s.didDrawPage&&i.didDrawPage.push(s.didDrawPage)}return i}function gDe(e,t){var r,n,i,a,o,s,l,c,u,f,d,h,v=lw(t.margin,40/e.scaleFactor()),p=(r=vDe(e,t.startY))!==null&&r!==void 0?r:v.top,m;t.showFoot===!0?m="everyPage":t.showFoot===!1?m="never":m=(n=t.showFoot)!==null&&n!==void 0?n:"everyPage";var y;t.showHead===!0?y="everyPage":t.showHead===!1?y="never":y=(i=t.showHead)!==null&&i!==void 0?i:"everyPage";var x=(a=t.useCss)!==null&&a!==void 0?a:!1,w=t.theme||(x?"plain":"striped"),S=!!t.horizontalPageBreak,A=(o=t.horizontalPageBreakRepeat)!==null&&o!==void 0?o:null;return{includeHiddenHtml:(s=t.includeHiddenHtml)!==null&&s!==void 0?s:!1,useCss:x,theme:w,startY:p,margin:v,pageBreak:(l=t.pageBreak)!==null&&l!==void 0?l:"auto",rowPageBreak:(c=t.rowPageBreak)!==null&&c!==void 0?c:"auto",tableWidth:(u=t.tableWidth)!==null&&u!==void 0?u:"auto",showHead:y,showFoot:m,tableLineWidth:(f=t.tableLineWidth)!==null&&f!==void 0?f:0,tableLineColor:(d=t.tableLineColor)!==null&&d!==void 0?d:200,horizontalPageBreak:S,horizontalPageBreakRepeat:A,horizontalPageBreakBehaviour:(h=t.horizontalPageBreakBehaviour)!==null&&h!==void 0?h:"afterAllRows"}}function vDe(e,t){var r=e.getLastAutoTable(),n=e.scaleFactor(),i=e.pageNumber(),a=!1;if(r&&r.startPageNumber){var o=r.startPageNumber+r.pageNumber-1;a=o===i}return typeof t=="number"?t:(t==null||t===!1)&&a&&(r==null?void 0:r.finalY)!=null?r.finalY+20/n:null}function yDe(e,t,r){var n=t.head||[],i=t.body||[],a=t.foot||[];if(t.html){var o=t.includeHiddenHtml;if(r){var s=JH(e,t.html,r,o,t.useCss)||{};n=s.head||n,i=s.body||n,a=s.foot||n}else console.error("Cannot parse html in non browser environment")}var l=t.columns||xDe(n,i,a);return{columns:l,head:n,body:i,foot:a}}function xDe(e,t,r){var n=e[0]||t[0]||r[0]||[],i=[];return Object.keys(n).filter(function(a){return a!=="_element"}).forEach(function(a){var o=1,s;Array.isArray(n)?s=n[parseInt(a)]:s=n[a],typeof s=="object"&&!Array.isArray(s)&&(o=(s==null?void 0:s.colSpan)||1);for(var l=0;l<o;l++){var c=void 0;Array.isArray(n)?c=i.length:c=a+(l>0?"_".concat(l):"");var u={dataKey:c};i.push(u)}}),i}var p3=function(){function e(t,r,n){this.table=r,this.pageNumber=r.pageNumber,this.settings=r.settings,this.cursor=n,this.doc=t.getDocument()}return e}(),bDe=function(e){VH(t,e);function t(r,n,i,a,o,s){var l=e.call(this,r,n,s)||this;return l.cell=i,l.row=a,l.column=o,l.section=a.section,l}return t}(p3),wDe=function(){function e(t,r){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=r.columns,this.head=r.head,this.body=r.body,this.foot=r.foot}return e.prototype.getHeadHeight=function(t){return this.head.reduce(function(r,n){return r+n.getMaxCellHeight(t)},0)},e.prototype.getFootHeight=function(t){return this.foot.reduce(function(r,n){return r+n.getMaxCellHeight(t)},0)},e.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},e.prototype.callCellHooks=function(t,r,n,i,a,o){for(var s=0,l=r;s<l.length;s++){var c=l[s],u=new bDe(t,this,n,i,a,o),f=c(u)===!1;if(n.text=Array.isArray(n.text)?n.text:[n.text],f)return!1}return!0},e.prototype.callEndPageHooks=function(t,r){t.applyStyles(t.userStyles);for(var n=0,i=this.hooks.didDrawPage;n<i.length;n++){var a=i[n];a(new p3(t,this,r))}},e.prototype.callWillDrawPageHooks=function(t,r){for(var n=0,i=this.hooks.willDrawPage;n<i.length;n++){var a=i[n];a(new p3(t,this,r))}},e.prototype.getWidth=function(t){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var r=this.columns.reduce(function(i,a){return i+a.wrappedWidth},0);return r}else{var n=this.settings.margin;return t-n.left-n.right}},e}(),ZH=function(){function e(t,r,n,i,a){a===void 0&&(a=!1),this.height=0,this.raw=t,t instanceof GH&&(this.raw=t._element,this.element=t._element),this.index=r,this.section=n,this.cells=i,this.spansMultiplePages=a}return e.prototype.getMaxCellHeight=function(t){var r=this;return t.reduce(function(n,i){var a;return Math.max(n,((a=r.cells[i.index])===null||a===void 0?void 0:a.height)||0)},0)},e.prototype.hasRowSpan=function(t){var r=this;return t.filter(function(n){var i=r.cells[n.index];return i?i.rowSpan>1:!1}).length>0},e.prototype.canEntireRowFit=function(t,r){return this.getMaxCellHeight(r)<=t},e.prototype.getMinimumRowHeight=function(t,r){var n=this;return t.reduce(function(i,a){var o=n.cells[a.index];if(!o)return 0;var s=r.getLineHeight(o.styles.fontSize),l=o.padding("vertical"),c=l+s;return c>i?c:i},0)},e}(),QH=function(){function e(t,r,n){var i;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=r,this.section=n,this.raw=t;var a=t;t!=null&&typeof t=="object"&&!Array.isArray(t)?(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,a=(i=t.content)!==null&&i!==void 0?i:t,t._element&&(this.raw=t._element)):(this.rowSpan=1,this.colSpan=1);var o=a!=null?""+a:"",s=/\r\n|\r|\n/g;this.text=o.split(s)}return e.prototype.getTextPos=function(){var t;if(this.styles.valign==="top")t=this.y+this.padding("top");else if(this.styles.valign==="bottom")t=this.y+this.height-this.padding("bottom");else{var r=this.height-this.padding("vertical");t=this.y+r/2+this.padding("top")}var n;if(this.styles.halign==="right")n=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var i=this.width-this.padding("horizontal");n=this.x+i/2+this.padding("left")}else n=this.x+this.padding("left");return{x:n,y:t}},e.prototype.getContentHeight=function(t,r){r===void 0&&(r=1.15);var n=Array.isArray(this.text)?this.text.length:1,i=this.styles.fontSize/t*r,a=n*i+this.padding("vertical");return Math.max(a,this.styles.minCellHeight)},e.prototype.padding=function(t){var r=lw(this.styles.cellPadding,0);return t==="vertical"?r.top+r.bottom:t==="horizontal"?r.left+r.right:r[t]},e}(),SDe=function(){function e(t,r,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=r,this.index=n}return e.prototype.getMaxCustomCellWidth=function(t){for(var r=0,n=0,i=t.allRows();n<i.length;n++){var a=i[n],o=a.cells[this.index];o&&typeof o.styles.cellWidth=="number"&&(r=Math.max(r,o.styles.cellWidth))}return r},e}();function _De(e,t){ADe(e,t);var r=[],n=0;t.columns.forEach(function(a){var o=a.getMaxCustomCellWidth(t);o?a.width=o:(a.width=a.wrappedWidth,r.push(a)),n+=a.width});var i=t.getWidth(e.pageSize().width)-n;i&&(i=m3(r,i,function(a){return Math.max(a.minReadableWidth,a.minWidth)})),i&&(i=m3(r,i,function(a){return a.minWidth})),i=Math.abs(i),!t.settings.horizontalPageBreak&&i>.1/e.scaleFactor()&&(i=i<1?i:Math.round(i),console.log("Of the table content, ".concat(i," units width could not fit page"))),NDe(t),PDe(t,e),EDe(t)}function ADe(e,t){var r=e.scaleFactor(),n=t.settings.horizontalPageBreak,i=XH(e,t);t.allRows().forEach(function(a){for(var o=0,s=t.columns;o<s.length;o++){var l=s[o],c=a.cells[l.index];if(c){var u=t.hooks.didParseCell;t.callCellHooks(e,u,c,a,l,null);var f=c.padding("horizontal");c.contentWidth=p2(c.text,c.styles,e)+f;var d=p2(c.text.join(" ").split(/[^\S\u00A0]+/),c.styles,e);if(c.minReadableWidth=d+c.padding("horizontal"),typeof c.styles.cellWidth=="number")c.minWidth=c.styles.cellWidth,c.wrappedWidth=c.styles.cellWidth;else if(c.styles.cellWidth==="wrap"||n===!0)c.contentWidth>i?(c.minWidth=i,c.wrappedWidth=i):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var h=10/r;c.minWidth=c.styles.minCellWidth||h,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}}),t.allRows().forEach(function(a){for(var o=0,s=t.columns;o<s.length;o++){var l=s[o],c=a.cells[l.index];if(c&&c.colSpan===1)l.wrappedWidth=Math.max(l.wrappedWidth,c.wrappedWidth),l.minWidth=Math.max(l.minWidth,c.minWidth),l.minReadableWidth=Math.max(l.minReadableWidth,c.minReadableWidth);else{var u=t.styles.columnStyles[l.dataKey]||t.styles.columnStyles[l.index]||{},f=u.cellWidth||u.minCellWidth;f&&typeof f=="number"&&(l.minWidth=f,l.wrappedWidth=f)}c&&(c.colSpan>1&&!l.minWidth&&(l.minWidth=c.minWidth),c.colSpan>1&&!l.wrappedWidth&&(l.wrappedWidth=c.minWidth))}})}function m3(e,t,r){for(var n=t,i=e.reduce(function(h,v){return h+v.wrappedWidth},0),a=0;a<e.length;a++){var o=e[a],s=o.wrappedWidth/i,l=n*s,c=o.width+l,u=r(o),f=c<u?u:c;t-=f-o.width,o.width=f}if(t=Math.round(t*1e10)/1e10,t){var d=e.filter(function(h){return t<0?h.width>r(h):!0});d.length&&(t=m3(d,t,r))}return t}function EDe(e){for(var t={},r=1,n=e.allRows(),i=0;i<n.length;i++)for(var a=n[i],o=0,s=e.columns;o<s.length;o++){var l=s[o],c=t[l.index];if(r>1)r--,delete a.cells[l.index];else if(c)c.cell.height+=a.height,r=c.cell.colSpan,delete a.cells[l.index],c.left--,c.left<=1&&delete t[l.index];else{var u=a.cells[l.index];if(!u)continue;if(u.height=a.height,u.rowSpan>1){var f=n.length-i,d=u.rowSpan>f?f:u.rowSpan;t[l.index]={cell:u,left:d,row:a}}}}}function NDe(e){for(var t=e.allRows(),r=0;r<t.length;r++)for(var n=t[r],i=null,a=0,o=0,s=0;s<e.columns.length;s++){var l=e.columns[s];if(o-=1,o>1&&e.columns[s+1])a+=l.width,delete n.cells[l.index];else if(i){var c=i;delete n.cells[l.index],i=null,c.width=l.width+a}else{var c=n.cells[l.index];if(!c)continue;if(o=c.colSpan,a=0,c.colSpan>1){i=c,a+=l.width;continue}c.width=l.width+a}}}function PDe(e,t){for(var r={count:0,height:0},n=0,i=e.allRows();n<i.length;n++){for(var a=i[n],o=0,s=e.columns;o<s.length;o++){var l=s[o],c=a.cells[l.index];if(c){t.applyStyles(c.styles,!0);var u=c.width-c.padding("horizontal");if(c.styles.overflow==="linebreak")c.text=t.splitTextToSize(c.text,u+1/t.scaleFactor(),{fontSize:c.styles.fontSize});else if(c.styles.overflow==="ellipsize")c.text=DI(c.text,u,c.styles,t,"...");else if(c.styles.overflow==="hidden")c.text=DI(c.text,u,c.styles,t,"");else if(typeof c.styles.overflow=="function"){var f=c.styles.overflow(c.text,u);typeof f=="string"?c.text=[f]:c.text=f}c.contentHeight=c.getContentHeight(t.scaleFactor(),t.getLineHeightFactor());var d=c.contentHeight/c.rowSpan;c.rowSpan>1&&r.count*r.height<d*c.rowSpan?r={height:d,count:c.rowSpan}:r&&r.count>0&&r.height>d&&(d=r.height),d>a.height&&(a.height=d)}}r.count--}}function DI(e,t,r,n,i){return e.map(function(a){return TDe(a,t,r,n,i)})}function TDe(e,t,r,n,i){var a=1e4*n.scaleFactor();if(t=Math.ceil(t*a)/a,t>=p2(e,r,n))return e;for(;t<p2(e+i,r,n)&&!(e.length<=1);)e=e.substring(0,e.length-1);return e.trim()+i}function CDe(e,t){var r=new xh(e),n=ODe(t,r.scaleFactor()),i=new wDe(t,n);return _De(r,i),r.applyStyles(r.userStyles),i}function ODe(e,t){var r=e.content,n=jDe(r.columns);if(r.head.length===0){var i=RI(n,"head");i&&r.head.push(i)}if(r.foot.length===0){var i=RI(n,"foot");i&&r.foot.push(i)}var a=e.settings.theme,o=e.styles;return{columns:n,head:XS("head",r.head,n,o,a,t),body:XS("body",r.body,n,o,a,t),foot:XS("foot",r.foot,n,o,a,t)}}function XS(e,t,r,n,i,a){var o={},s=t.map(function(l,c){for(var u=0,f={},d=0,h=0,v=0,p=r;v<p.length;v++){var m=p[v];if(o[m.index]==null||o[m.index].left===0)if(h===0){var y=void 0;Array.isArray(l)?y=l[m.index-d-u]:y=l[m.dataKey];var x={};typeof y=="object"&&!Array.isArray(y)&&(x=(y==null?void 0:y.styles)||{});var w=LDe(e,m,c,i,n,a,x),S=new QH(y,w,e);f[m.dataKey]=S,f[m.index]=S,h=S.colSpan-1,o[m.index]={left:S.rowSpan-1,times:h}}else h--,d++;else o[m.index].left--,h=o[m.index].times,u++}return new ZH(l,c,e,f)});return s}function RI(e,t){var r={};return e.forEach(function(n){if(n.raw!=null){var i=kDe(t,n.raw);i!=null&&(r[n.dataKey]=i)}}),Object.keys(r).length>0?r:null}function kDe(e,t){if(e==="head"){if(typeof t=="object")return t.header||null;if(typeof t=="string"||typeof t=="number")return t}else if(e==="foot"&&typeof t=="object")return t.footer;return null}function jDe(e){return e.map(function(t,r){var n,i;return typeof t=="object"?i=(n=t.dataKey)!==null&&n!==void 0?n:r:i=r,new SDe(i,t,r)})}function LDe(e,t,r,n,i,a,o){var s=oDe(n),l;e==="head"?l=i.headStyles:e==="body"?l=i.bodyStyles:e==="foot"&&(l=i.footStyles);var c=Tl({},s.table,s[e],i.styles,l),u=i.columnStyles[t.dataKey]||i.columnStyles[t.index]||{},f=e==="body"?u:{},d=e==="body"&&r%2===0?Tl({},s.alternateRow,i.alternateRowStyles):{},h=aDe(a),v=Tl({},h,c,d,f);return Tl(v,o)}function IDe(e,t,r){var n;r===void 0&&(r={});var i=XH(e,t),a=new Map,o=[],s=[],l=[];Array.isArray(t.settings.horizontalPageBreakRepeat)?l=t.settings.horizontalPageBreakRepeat:(typeof t.settings.horizontalPageBreakRepeat=="string"||typeof t.settings.horizontalPageBreakRepeat=="number")&&(l=[t.settings.horizontalPageBreakRepeat]),l.forEach(function(d){var h=t.columns.find(function(v){return v.dataKey===d||v.index===d});h&&!a.has(h.index)&&(a.set(h.index,!0),o.push(h.index),s.push(t.columns[h.index]),i-=h.wrappedWidth)});for(var c=!0,u=(n=r==null?void 0:r.start)!==null&&n!==void 0?n:0;u<t.columns.length;){if(a.has(u)){u++;continue}var f=t.columns[u].wrappedWidth;if(c||i>=f)c=!1,o.push(u),s.push(t.columns[u]),i-=f;else break;u++}return{colIndexes:o,columns:s,lastIndex:u-1}}function DDe(e,t){for(var r=[],n=0;n<t.columns.length;n++){var i=IDe(e,t,{start:n});i.columns.length&&(r.push(i),n=i.lastIndex)}return r}function RDe(e,t){var r=t.settings,n=r.startY,i=r.margin,a={x:i.left,y:n},o=t.getHeadHeight(t.columns)+t.getFootHeight(t.columns),s=n+i.bottom+o;if(r.pageBreak==="avoid"){var l=t.body,c=l.reduce(function(d,h){return d+h.height},0);s+=c}var u=new xh(e);(r.pageBreak==="always"||r.startY!=null&&s>u.pageSize().height)&&(tV(u),a.y=i.top),t.callWillDrawPageHooks(u,a);var f=Tl({},a);t.startPageNumber=u.pageNumber(),r.horizontalPageBreak?MDe(u,t,f,a):(u.applyStyles(u.userStyles),(r.showHead==="firstPage"||r.showHead==="everyPage")&&t.head.forEach(function(d){return Kl(u,t,d,a,t.columns)}),u.applyStyles(u.userStyles),t.body.forEach(function(d,h){var v=h===t.body.length-1;m2(u,t,d,v,f,a,t.columns)}),u.applyStyles(u.userStyles),(r.showFoot==="lastPage"||r.showFoot==="everyPage")&&t.foot.forEach(function(d){return Kl(u,t,d,a,t.columns)})),qH(u,t,f,a),t.callEndPageHooks(u,a),t.finalY=a.y,e.lastAutoTable=t,u.applyStyles(u.userStyles)}function MDe(e,t,r,n){var i=DDe(e,t),a=t.settings;if(a.horizontalPageBreakBehaviour==="afterAllRows")i.forEach(function(c,u){e.applyStyles(e.userStyles),u>0?pm(e,t,r,n,c.columns,!0):MI(e,t,n,c.columns),FDe(e,t,r,n,c.columns),YS(e,t,n,c.columns)});else for(var o=-1,s=i[0],l=function(){var c=o;if(s){e.applyStyles(e.userStyles);var u=s.columns;o>=0?pm(e,t,r,n,u,!0):MI(e,t,n,u),c=FI(e,t,o+1,n,u),YS(e,t,n,u)}var f=c-o;i.slice(1).forEach(function(d){e.applyStyles(e.userStyles),pm(e,t,r,n,d.columns,!0),FI(e,t,o+1,n,d.columns,f),YS(e,t,n,d.columns)}),o=c};o<t.body.length-1;)l()}function MI(e,t,r,n){var i=t.settings;e.applyStyles(e.userStyles),(i.showHead==="firstPage"||i.showHead==="everyPage")&&t.head.forEach(function(a){return Kl(e,t,a,r,n)})}function FDe(e,t,r,n,i){e.applyStyles(e.userStyles),t.body.forEach(function(a,o){var s=o===t.body.length-1;m2(e,t,a,s,r,n,i)})}function FI(e,t,r,n,i,a){e.applyStyles(e.userStyles),a=a??t.body.length;var o=Math.min(r+a,t.body.length),s=-1;return t.body.slice(r,o).forEach(function(l,c){var u=r+c===t.body.length-1,f=eV(e,t,u,n);l.canEntireRowFit(f,i)&&(Kl(e,t,l,n,i),s=r+c)}),s}function YS(e,t,r,n){var i=t.settings;e.applyStyles(e.userStyles),(i.showFoot==="lastPage"||i.showFoot==="everyPage")&&t.foot.forEach(function(a){return Kl(e,t,a,r,n)})}function $De(e,t,r){var n=r.getLineHeight(e.styles.fontSize),i=e.padding("vertical"),a=Math.floor((t-i)/n);return Math.max(0,a)}function BDe(e,t,r,n){var i={};e.spansMultiplePages=!0,e.height=0;for(var a=0,o=0,s=r.columns;o<s.length;o++){var l=s[o],c=e.cells[l.index];if(c){Array.isArray(c.text)||(c.text=[c.text]);var u=new QH(c.raw,c.styles,c.section);u=Tl(u,c),u.text=[];var f=$De(c,t,n);c.text.length>f&&(u.text=c.text.splice(f,c.text.length));var d=n.scaleFactor(),h=n.getLineHeightFactor();c.contentHeight=c.getContentHeight(d,h),c.contentHeight>=t&&(c.contentHeight=t,u.styles.minCellHeight-=t),c.contentHeight>e.height&&(e.height=c.contentHeight),u.contentHeight=u.getContentHeight(d,h),u.contentHeight>a&&(a=u.contentHeight),i[l.index]=u}}var v=new ZH(e.raw,-1,e.section,i,!0);v.height=a;for(var p=0,m=r.columns;p<m.length;p++){var l=m[p],u=v.cells[l.index];u&&(u.height=v.height);var c=e.cells[l.index];c&&(c.height=e.height)}return v}function UDe(e,t,r,n){var i=e.pageSize().height,a=n.settings.margin,o=a.top+a.bottom,s=i-o;t.section==="body"&&(s-=n.getHeadHeight(n.columns)+n.getFootHeight(n.columns));var l=t.getMinimumRowHeight(n.columns,e),c=l<r;if(l>s)return console.log("Will not be able to print row ".concat(t.index," correctly since it's minimum height is larger than page height")),!0;if(!c)return!1;var u=t.hasRowSpan(n.columns),f=t.getMaxCellHeight(n.columns)>s;return f?(u&&console.log("The content of row ".concat(t.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(u||n.settings.rowPageBreak==="avoid")}function m2(e,t,r,n,i,a,o){var s=eV(e,t,n,a);if(r.canEntireRowFit(s,o))Kl(e,t,r,a,o);else if(UDe(e,r,s,t)){var l=BDe(r,s,t,e);Kl(e,t,r,a,o),pm(e,t,i,a,o),m2(e,t,l,n,i,a,o)}else pm(e,t,i,a,o),m2(e,t,r,n,i,a,o)}function Kl(e,t,r,n,i){n.x=t.settings.margin.left;for(var a=0,o=i;a<o.length;a++){var s=o[a],l=r.cells[s.index];if(!l){n.x+=s.width;continue}e.applyStyles(l.styles),l.x=n.x,l.y=n.y;var c=t.callCellHooks(e,t.hooks.willDrawCell,l,r,s,n);if(c===!1){n.x+=s.width;continue}WDe(e,l,n);var u=l.getTextPos();HH(l.text,u.x,u.y,{halign:l.styles.halign,valign:l.styles.valign,maxWidth:Math.ceil(l.width-l.padding("left")-l.padding("right"))},e.getDocument()),t.callCellHooks(e,t.hooks.didDrawCell,l,r,s,n),n.x+=s.width}n.y+=r.height}function WDe(e,t,r){var n=t.styles;if(e.getDocument().setFillColor(e.getDocument().getFillColor()),typeof n.lineWidth=="number"){var i=KH(n.lineWidth,n.fillColor);i&&e.rect(t.x,r.y,t.width,t.height,i)}else typeof n.lineWidth=="object"&&(n.fillColor&&e.rect(t.x,r.y,t.width,t.height,"F"),zDe(e,t,r,n.lineWidth))}function zDe(e,t,r,n){var i,a,o,s;n.top&&(i=r.x,a=r.y,o=r.x+t.width,s=r.y,n.right&&(o+=.5*n.right),n.left&&(i-=.5*n.left),l(n.top,i,a,o,s)),n.bottom&&(i=r.x,a=r.y+t.height,o=r.x+t.width,s=r.y+t.height,n.right&&(o+=.5*n.right),n.left&&(i-=.5*n.left),l(n.bottom,i,a,o,s)),n.left&&(i=r.x,a=r.y,o=r.x,s=r.y+t.height,n.top&&(a-=.5*n.top),n.bottom&&(s+=.5*n.bottom),l(n.left,i,a,o,s)),n.right&&(i=r.x+t.width,a=r.y,o=r.x+t.width,s=r.y+t.height,n.top&&(a-=.5*n.top),n.bottom&&(s+=.5*n.bottom),l(n.right,i,a,o,s));function l(c,u,f,d,h){e.getDocument().setLineWidth(c),e.getDocument().line(u,f,d,h,"S")}}function eV(e,t,r,n){var i=t.settings.margin.bottom,a=t.settings.showFoot;return(a==="everyPage"||a==="lastPage"&&r)&&(i+=t.getFootHeight(t.columns)),e.pageSize().height-n.y-i}function pm(e,t,r,n,i,a){i===void 0&&(i=[]),a===void 0&&(a=!1),e.applyStyles(e.userStyles),t.settings.showFoot==="everyPage"&&!a&&t.foot.forEach(function(s){return Kl(e,t,s,n,i)}),t.callEndPageHooks(e,n);var o=t.settings.margin;qH(e,t,r,n),tV(e),t.pageNumber++,n.x=o.left,n.y=o.top,r.y=o.top,t.callWillDrawPageHooks(e,n),t.settings.showHead==="everyPage"&&(t.head.forEach(function(s){return Kl(e,t,s,n,i)}),e.applyStyles(e.userStyles))}function tV(e){var t=e.pageNumber();e.setPage(t+1);var r=e.pageNumber();return r===t?(e.addPage(),!0):!1}function HDe(e){e.API.autoTable=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t[0],i=hDe(this,n),a=CDe(this,i);return RDe(this,a),this},e.API.lastAutoTable=!1,e.API.autoTableText=function(t,r,n,i){HH(t,r,n,i,this)},e.API.autoTableSetDefaults=function(t){return xh.setDefaults(t,this),this},e.autoTableSetDefaults=function(t,r){xh.setDefaults(t,r)},e.API.autoTableHtmlToJson=function(t,r){var n;if(r===void 0&&(r=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var i=new xh(this),a=JH(i,t,window,r,!1),o=a.head,s=a.body,l=((n=o[0])===null||n===void 0?void 0:n.map(function(c){return c.content}))||[];return{columns:l,rows:s,data:s}}}var JS;try{if(typeof window<"u"&&window){var $I=window,BI=$I.jsPDF||((JS=$I.jspdf)===null||JS===void 0?void 0:JS.jsPDF);BI&&HDe(BI)}}catch(e){console.error("Could not apply autoTable plugin",e)}const rV=e=>e?new Date(e).toLocaleDateString("id-ID",{day:"numeric",month:"short",year:"numeric"}):"-",cw={new:"New",contacted:"Contacted",follow_up:"Follow Up",interested:"Interested",registered:"Registered",enrolled:"Enrolled",lost:"Lost"},nV={reguler:"Reguler",beamsiswa_kip:"Beasiswa KIP"},iV={pagi:"Kelas Pagi",malam:"Kelas Malam"},VDe=(e,t="leads-export")=>{const r=e.map((s,l)=>({No:l+1,Nama:s.name,WhatsApp:s.phone,Email:s.email,Sekolah:s.school||"-",Program:s.program||"-","Jenis Pendaftaran":nV[s.registration_type]||s.registration_type||"-",Kelas:iV[s.class_type]||s.class_type||"-",Status:cw[s.status]||s.status||"-",Sumber:s.source||"-",Priority:s.priority||"-",Catatan:s.notes||"-","Tgl Dibuat":rV(s.created_at)})),n=ph.json_to_sheet(r);n["!cols"]=[{wch:5},{wch:25},{wch:15},{wch:25},{wch:20},{wch:20},{wch:18},{wch:12},{wch:12},{wch:15},{wch:10},{wch:30},{wch:15}];const i=ph.book_new();ph.book_append_sheet(i,n,"Leads");const a=new Date().toISOString().split("T")[0],o=`${t}-${a}.xlsx`;Xz(i,o)},GDe=(e,t="leads-export")=>{const r=new bt;r.setFontSize(18),r.text("STIE ARLINDO - Data Leads",14,22),r.setFontSize(10),r.text(`Tanggal Export: ${new Date().toLocaleDateString("id-ID")}`,14,30),r.text(`Total Leads: ${e.length}`,14,36);const n=e.map(o=>[o.name,o.phone||"-",o.email||"-",o.program||"-",nV[o.registration_type]||o.registration_type||"-",iV[o.class_type]||o.class_type||"-",cw[o.status]||o.status||"-",o.source||"-",rV(o.created_at)]);r.autoTable({head:[["Nama","WhatsApp","Email","Program","Jenis Daftar","Kelas","Status","Sumber","Tgl Dibuat"]],body:n,startY:42,styles:{fontSize:8,cellPadding:2},headStyles:{fillColor:[94,106,210],textColor:255,fontStyle:"bold"},alternateRowStyles:{fillColor:[245,247,250]}});const i=new Date().toISOString().split("T")[0],a=`${t}-${i}.pdf`;r.save(a)},qDe=(e,t="reports-export")=>{const r=[];r.push({Metric:"Total Leads",Value:e.totalLeads||0}),r.push({Metric:"New Leads",Value:e.newLeads||0}),r.push({Metric:"Registered",Value:e.registered||0}),r.push({Metric:"Enrolled",Value:e.enrolled||0}),r.push({Metric:"Hot Leads",Value:e.hotLeads||0}),r.push({Metric:"Lost Leads",Value:e.lostLeads||0}),r.push({Metric:"Conversion Rate (%)",Value:e.conversionRate||0}),r.push({Metric:"Lost Rate (%)",Value:e.lostRate||0}),r.push({}),r.push({Metric:"LEADS BY STATUS",Value:""}),e.byStatus&&e.byStatus.forEach(s=>{r.push({Metric:cw[s.status]||s.status,Value:s.count})}),r.push({}),r.push({Metric:"LEADS BY SOURCE",Value:""}),e.bySource&&e.bySource.forEach(s=>{r.push({Metric:s.source||"Unknown",Value:s.count})}),r.push({}),r.push({Metric:"LEADS BY PROGRAM",Value:""}),e.byProgram&&e.byProgram.forEach(s=>{r.push({Metric:s.program||"Unknown",Value:s.count})});const n=ph.json_to_sheet(r);n["!cols"]=[{wch:25},{wch:15}];const i=ph.book_new();ph.book_append_sheet(i,n,"Reports");const a=new Date().toISOString().split("T")[0],o=`${t}-${a}.xlsx`;Xz(i,o)},KDe=(e,t="reports-export")=>{const r=new bt;r.setFontSize(18),r.text("STIE ARLINDO - Laporan CRM",14,22),r.setFontSize(10),r.text(`Tanggal Export: ${new Date().toLocaleDateString("id-ID")}`,14,30);let n=40;r.setFontSize(14),r.text("Ringkasan",14,n),n+=8,r.setFontSize(10);const i=[["Total Leads",e.totalLeads||0],["New Leads",e.newLeads||0],["Registered",e.registered||0],["Enrolled",e.enrolled||0],["Hot Leads",e.hotLeads||0],["Lost Leads",e.lostLeads||0],["Conversion Rate",`${e.conversionRate||0}%`],["Lost Rate",`${e.lostRate||0}%`]];if(r.autoTable({head:[["Metric","Value"]],body:i,startY:n,styles:{fontSize:10},headStyles:{fillColor:[94,106,210]}}),n=r.lastAutoTable.finalY+15,e.byStatus&&e.byStatus.length>0){r.setFontSize(14),r.text("Leads by Status",14,n),n+=8;const s=e.byStatus.map(l=>[cw[l.status]||l.status,l.count]);r.autoTable({head:[["Status","Jumlah"]],body:s,startY:n,styles:{fontSize:10},headStyles:{fillColor:[94,106,210]}}),n=r.lastAutoTable.finalY+15}if(e.bySource&&e.bySource.length>0){r.setFontSize(14),r.text("Leads by Source",14,n),n+=8;const s=e.bySource.map(l=>[l.source||"Unknown",l.count]);r.autoTable({head:[["Source","Jumlah"]],body:s,startY:n,styles:{fontSize:10},headStyles:{fillColor:[94,106,210]}}),n=r.lastAutoTable.finalY+15}if(e.byProgram&&e.byProgram.length>0){r.setFontSize(14),r.text("Leads by Program",14,n),n+=8;const s=e.byProgram.map(l=>[l.program||"Unknown",l.count]);r.autoTable({head:[["Program","Jumlah"]],body:s,startY:n,styles:{fontSize:10},headStyles:{fillColor:[94,106,210]}})}const a=new Date().toISOString().split("T")[0],o=`${t}-${a}.pdf`;r.save(o)},Uv=[{value:"new",label:"New"},{value:"contacted",label:"Contacted"},{value:"follow_up",label:"Follow Up"},{value:"interested",label:"Interested"},{value:"registered",label:"Registered"},{value:"enrolled",label:"Enrolled"},{value:"lost",label:"Lost"}],ZS=[{value:"reguler",label:"Reguler"},{value:"beasiswa_kip",label:"Beasiswa KIP"}],QS=[{value:"pagi",label:"Kelas Pagi"},{value:"malam",label:"Kelas Malam"}],UI=["Instagram","Facebook","Twitter","Google Ads","Expo Pendidikan","School Visit","Referral","Offline","Website","Other"],WI={new:{label:"New",color:"bg-blue-100 text-blue-700 border-blue-200"},contacted:{label:"Contacted",color:"bg-yellow-100 text-yellow-700 border-yellow-200"},follow_up:{label:"Follow Up",color:"bg-yellow-100 text-yellow-700 border-yellow-200"},interested:{label:"Interested",color:"bg-indigo-100 text-indigo-700 border-indigo-200"},registered:{label:"Registered",color:"bg-green-100 text-green-700 border-green-200"},enrolled:{label:"Enrolled",color:"bg-green-100 text-green-700 border-green-200"},lost:{label:"Lost",color:"bg-red-100 text-red-700 border-red-200"}};function XDe({onNewLead:e}){xu();const{leads:t,fetchLeads:r,createLead:n,updateLead:i,deleteLead:a,bulkDelete:o,isLoading:s,error:l}=V2(),[c,u]=E.useState(""),[f,d]=E.useState("all"),[h,v]=E.useState("all"),[p,m]=E.useState("all"),[y,x]=E.useState("all"),[w,S]=E.useState([]),[A,N]=E.useState(!1),[P,j]=E.useState(!1),[C,R]=E.useState(null),[L,I]=E.useState(null),[B,z]=E.useState(!1),[V,Q]=E.useState({name:"",phone:"",email:"",school:"",program:"",source:"",status:"new",notes:"",registration_type:"reguler",class_type:"pagi"}),ae=()=>{VDe(re),z(!1)},K=()=>{GDe(re),z(!1)};E.useEffect(()=>{r()},[]);const re=t.filter(ie=>{var ot,tt;const Y=ie.name.toLowerCase().includes(c.toLowerCase())||((ot=ie.email)==null?void 0:ot.toLowerCase().includes(c.toLowerCase()))||((tt=ie.phone)==null?void 0:tt.includes(c)),Ie=f==="all"||!f||ie.status===f,De=h==="all"||!h||ie.source===h,nt=p==="all"||!p||ie.registration_type===p,$e=y==="all"||!y||ie.class_type===y;return Y&&Ie&&De&&nt&&$e}),ye=ie=>{ie.target.checked?S(re.map(Y=>Y.id)):S([])},xe=ie=>{S(Y=>Y.includes(ie)?Y.filter(Ie=>Ie!==ie):[...Y,ie])},O=async()=>{await n(V)&&(N(!1),Q({name:"",phone:"",email:"",school:"",program:"",source:"",status:"new",notes:"",registration_type:"reguler",class_type:"pagi"}),r())},M=ie=>{R(ie),Q({name:ie.name||"",phone:ie.phone||"",email:ie.email||"",school:ie.school||"",program:ie.program||"",source:ie.source||"",status:ie.status||"new",notes:ie.notes||"",registration_type:ie.registration_type||"reguler",class_type:ie.class_type||"pagi"}),j(!0)},F=async()=>{if(!C||!C.id)return;await i(C.id,V)&&(j(!1),R(null),r())},U=async ie=>{window.confirm("Are you sure you want to delete this lead?")&&(await a(ie),r())},Z=async()=>{window.confirm(`Are you sure you want to delete ${w.length} leads?`)&&(await o(w),S([]),r())},se=async(ie,Y)=>{const Ie=await i(ie,{status:Y});I(null),Ie&&r()},ve=()=>[...new Set(t.map(Y=>Y.source).filter(Boolean))].map(Y=>({value:Y,label:Y})),oe=ie=>{var De;const Y=((De=ie.phone)==null?void 0:De.replace(/[^0-9]/g,""))||"",Ie=`Halo ${ie.name}, Terima kasih sudah menghubungi STIE ARLINDO! 👋%0A%0APerkenalkan, saya dari tim admissions STIE ARLINDO.%0A%0APerlu informasi lebih lanjut tentang program studi yang anda minati?`;return`https://wa.me/${Y}?text=${Ie}`},pe=ie=>{const Y=oe(ie);window.open(Y,"_blank")},Se=ie=>{const Y=WI[ie]||WI.new;return g.jsx("span",{className:`inline-flex items-center gap-1 px-3 py-1.5 text-xs font-semibold rounded-lg border ${Y.color}`,children:Y.label})},me=ie=>({reguler:"Reguler",beamsiswa_kip:"Beasiswa KIP"})[ie]||ie,Le=ie=>({pagi:"Kelas Pagi",malam:"Kelas Malam"})[ie]||ie;return g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-3xl font-bold text-slate-800",children:"Leads"}),g.jsx("p",{className:"text-slate-500 mt-1",children:"Kelola data calon mahasiswa"})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs("div",{className:"relative",children:[g.jsxs(Qt,{variant:"secondary",size:"sm",onClick:()=>z(!B),className:"flex items-center",children:[g.jsx(_E,{className:"w-4 h-4 mr-2"}),"Export"]}),B&&g.jsxs("div",{className:"absolute right-0 mt-2 w-48 bg-white rounded-xl shadow-lg border border-slate-200 py-1 z-50",children:[g.jsxs("button",{onClick:ae,className:"w-full px-4 py-2.5 text-left text-sm text-slate-700 hover:bg-slate-50 flex items-center gap-2",children:[g.jsx(yZ,{className:"w-4 h-4 text-green-600"}),"Export Excel"]}),g.jsxs("button",{onClick:K,className:"w-full px-4 py-2.5 text-left text-sm text-slate-700 hover:bg-slate-50 flex items-center gap-2",children:[g.jsx($l,{className:"w-4 h-4 text-red-600"}),"Export PDF"]})]})]}),g.jsxs(Qt,{onClick:()=>N(!0),className:"bg-blue-600 hover:bg-blue-700",children:[g.jsx(wf,{className:"w-4 h-4 mr-2"}),"Tambah Lead"]})]})]}),l&&g.jsxs("div",{className:"p-4 bg-red-50 border border-red-200 rounded-xl flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-red-100 flex items-center justify-center",children:g.jsx(TE,{className:"w-4 h-4 text-red-600"})}),g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-red-700",children:l}),g.jsx("p",{className:"text-sm text-red-500",children:"Pastikan server berjalan di port 5000"})]})]}),g.jsx(Qt,{variant:"secondary",size:"sm",onClick:()=>r(),children:"Coba Lagi"})]}),g.jsx(An,{className:"p-4",children:g.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[g.jsxs("div",{className:"flex-1 relative",children:[g.jsx(NE,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-5 h-5 text-slate-400"}),g.jsx(Xt,{placeholder:"Cari berdasarkan nama, email, atau telepon...",value:c,onChange:ie=>u(ie.target.value),className:"pl-10 h-11"})]}),g.jsxs(jn,{value:f,onValueChange:d,children:[g.jsx(bn,{className:"w-full md:w-40 h-11",children:g.jsx(Ln,{placeholder:"Status"})}),g.jsxs(wn,{children:[g.jsx(Vr,{value:"all",children:"Semua Status"}),Uv.map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))]})]}),g.jsxs(jn,{value:h,onValueChange:v,children:[g.jsx(bn,{className:"w-full md:w-40 h-11",children:g.jsx(Ln,{placeholder:"Sumber"})}),g.jsxs(wn,{children:[g.jsx(Vr,{value:"all",children:"Semua Sumber"}),ve().map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))]})]}),g.jsxs(jn,{value:p,onValueChange:m,children:[g.jsx(bn,{className:"w-full md:w-40 h-11",children:g.jsx(Ln,{placeholder:"Jenis Daftar"})}),g.jsxs(wn,{children:[g.jsx(Vr,{value:"all",children:"Semua"}),ZS.map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))]})]}),g.jsxs(jn,{value:y,onValueChange:x,children:[g.jsx(bn,{className:"w-full md:w-40 h-11",children:g.jsx(Ln,{placeholder:"Kelas"})}),g.jsxs(wn,{children:[g.jsx(Vr,{value:"all",children:"Semua Kelas"}),QS.map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))]})]})]})}),w.length>0&&g.jsxs("div",{className:"flex items-center gap-4 p-4 bg-blue-50 border border-blue-100 rounded-xl",children:[g.jsxs("span",{className:"text-sm font-semibold text-blue-700",children:[w.length," dipilih"]}),g.jsxs(Qt,{variant:"destructive",size:"sm",onClick:Z,children:[g.jsx(OZ,{className:"w-4 h-4 mr-1"}),"Hapus"]}),g.jsx(Qt,{variant:"ghost",size:"sm",onClick:()=>S([]),children:"Batal"})]}),g.jsxs(An,{className:"overflow-hidden",children:[g.jsx("div",{className:"overflow-x-auto",children:g.jsxs("table",{className:"w-full",children:[g.jsx("thead",{children:g.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[g.jsx("th",{className:"w-12 px-4 py-4 text-left",children:g.jsx(J4,{checked:w.length===re.length&&re.length>0,onCheckedChange:ye})}),g.jsx("th",{className:"px-4 py-4 text-left text-sm font-semibold text-slate-600",children:"Nama"}),g.jsx("th",{className:"px-4 py-4 text-left text-sm font-semibold text-slate-600",children:"Kontak"}),g.jsx("th",{className:"px-4 py-4 text-left text-sm font-semibold text-slate-600",children:"Sekolah"}),g.jsx("th",{className:"px-4 py-4 text-left text-sm font-semibold text-slate-600",children:"Program"}),g.jsx("th",{className:"px-4 py-4 text-left text-sm font-semibold text-slate-600",children:"Jenis Daftar"}),g.jsx("th",{className:"px-4 py-4 text-left text-sm font-semibold text-slate-600",children:"Kelas"}),g.jsx("th",{className:"px-4 py-4 text-left text-sm font-semibold text-slate-600",children:"Status"}),g.jsx("th",{className:"px-4 py-4 text-left text-sm font-semibold text-slate-600",children:"WhatsApp"}),g.jsx("th",{className:"w-24 px-4 py-4 text-left text-sm font-semibold text-slate-600",children:"Aksi"})]})}),g.jsx("tbody",{children:s?g.jsx("tr",{children:g.jsx("td",{colSpan:10,className:"text-center py-12",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx("div",{className:"w-8 h-8 border-4 border-blue-200 border-t-blue-600 rounded-full animate-spin"}),g.jsx("p",{className:"text-slate-500",children:"Memuat data..."})]})})}):re.length===0?g.jsx("tr",{children:g.jsx("td",{colSpan:10,className:"text-center py-12",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-100 flex items-center justify-center",children:g.jsx(DZ,{className:"w-8 h-8 text-slate-400"})}),g.jsx("p",{className:"text-slate-500",children:"Belum ada data leads"})]})})}):re.map(ie=>g.jsxs("tr",{className:"border-b border-slate-100 hover:bg-slate-50",children:[g.jsx("td",{className:"px-4 py-4",children:g.jsx(J4,{checked:w.includes(ie.id),onCheckedChange:()=>xe(ie.id)})}),g.jsx("td",{className:"px-4 py-4",children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-100 flex items-center justify-center text-blue-700 font-bold",children:ie.name.charAt(0)}),g.jsx("span",{className:"font-semibold text-slate-800",children:ie.name})]})}),g.jsx("td",{className:"px-4 py-4",children:g.jsxs("div",{className:"flex flex-col gap-1",children:[g.jsxs("a",{href:`tel:${ie.phone}`,className:"text-sm text-slate-600 hover:text-blue-600 flex items-center gap-1.5",children:[g.jsx(q2,{className:"w-4 h-4"}),ie.phone]}),ie.email&&g.jsxs("a",{href:`mailto:${ie.email}`,className:"text-xs text-slate-500 hover:text-blue-600 flex items-center gap-1.5",children:[g.jsx(G2,{className:"w-3.5 h-3.5"}),ie.email]})]})}),g.jsx("td",{className:"px-4 py-4 text-slate-600",children:ie.school}),g.jsx("td",{className:"px-4 py-4 text-slate-600",children:ie.program}),g.jsx("td",{className:"px-4 py-4",children:g.jsx("span",{className:"inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-lg bg-purple-100 text-purple-700",children:me(ie.registration_type)})}),g.jsx("td",{className:"px-4 py-4",children:g.jsx("span",{className:"inline-flex items-center px-3 py-1.5 text-xs font-medium rounded-lg bg-indigo-100 text-indigo-700",children:Le(ie.class_type)})}),g.jsx("td",{className:"px-4 py-4",children:L===ie.id?g.jsxs(jn,{value:ie.status,onValueChange:Y=>se(ie.id,Y),children:[g.jsx(bn,{className:"w-36 h-9",children:g.jsx(Ln,{})}),g.jsx(wn,{children:Uv.map(Y=>g.jsx(Vr,{value:Y.value,children:Y.label},Y.value))})]}):g.jsxs("div",{className:"flex items-center gap-2",children:[Se(ie.status),g.jsx("button",{onClick:()=>I(ie.id),className:"p-1 hover:bg-slate-100 rounded",title:"Ubah Status",children:g.jsx(Mm,{className:"w-3.5 h-3.5 text-slate-400"})})]})}),g.jsx("td",{className:"px-4 py-4",children:ie.phone&&g.jsxs("button",{onClick:()=>pe(ie),className:"flex items-center gap-2 px-4 py-2 bg-green-500 hover:bg-green-600 text-white rounded-[15px] font-medium text-sm transition-colors",children:[g.jsx(Wd,{className:"w-4 h-4"}),"WhatsApp"]})}),g.jsx("td",{className:"px-4 py-4",children:g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(Qt,{variant:"ghost",size:"icon-sm",onClick:()=>M(ie),children:g.jsx(Mm,{className:"w-4 h-4"})}),g.jsx(Qt,{variant:"ghost",size:"icon-sm",onClick:()=>U(ie.id),className:"hover:text-red-600",children:g.jsx(zg,{className:"w-4 h-4"})})]})})]},ie.id))})]})}),re.length>0&&g.jsx("div",{className:"px-6 py-4 border-t border-slate-200 flex items-center justify-between",children:g.jsxs("p",{className:"text-sm text-slate-500",children:["Menampilkan ",re.length," dari ",t.length," leads"]})})]}),g.jsx(ip,{open:A,onOpenChange:N,children:g.jsxs(If,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[g.jsx(Df,{children:g.jsx(Mf,{children:"Tambah Lead Baru"})}),g.jsxs("div",{className:"grid grid-cols-2 gap-4 py-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Nama *"}),g.jsx(Xt,{value:V.name,onChange:ie=>Q({...V,name:ie.target.value}),placeholder:"Nama lengkap"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"WhatsApp"}),g.jsx(Xt,{value:V.phone,onChange:ie=>Q({...V,phone:ie.target.value}),placeholder:"628xxx"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Email"}),g.jsx(Xt,{value:V.email,onChange:ie=>Q({...V,email:ie.target.value}),placeholder:"email@example.com"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Sekolah"}),g.jsx(Xt,{value:V.school,onChange:ie=>Q({...V,school:ie.target.value}),placeholder:"Nama sekolah"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Program Interest"}),g.jsx(Xt,{value:V.program,onChange:ie=>Q({...V,program:ie.target.value}),placeholder:"Program"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Sumber"}),g.jsxs(jn,{value:V.source,onValueChange:ie=>Q({...V,source:ie}),children:[g.jsx(bn,{children:g.jsx(Ln,{placeholder:"Pilih sumber"})}),g.jsx(wn,{children:UI.map(ie=>g.jsx(Vr,{value:ie,children:ie},ie))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Jenis Pendaftaran"}),g.jsxs(jn,{value:V.registration_type,onValueChange:ie=>Q({...V,registration_type:ie}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:ZS.map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Kelas"}),g.jsxs(jn,{value:V.class_type,onValueChange:ie=>Q({...V,class_type:ie}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:QS.map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Status"}),g.jsxs(jn,{value:V.status,onValueChange:ie=>Q({...V,status:ie}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:Uv.map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))})]})]}),g.jsxs("div",{className:"space-y-2 col-span-2",children:[g.jsx(St,{children:"Catatan"}),g.jsx("textarea",{className:"input min-h-[80px]",value:V.notes,onChange:ie=>Q({...V,notes:ie.target.value}),placeholder:"Catatan tambahan..."})]})]}),g.jsxs(Rf,{children:[g.jsx(Qt,{variant:"secondary",onClick:()=>N(!1),children:"Batal"}),g.jsx(Qt,{onClick:O,children:"Tambah Lead"})]})]})}),g.jsx(ip,{open:P,onOpenChange:j,children:g.jsxs(If,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[g.jsx(Df,{children:g.jsx(Mf,{children:"Edit Lead"})}),g.jsxs("div",{className:"grid grid-cols-2 gap-4 py-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Nama *"}),g.jsx(Xt,{value:V.name,onChange:ie=>Q({...V,name:ie.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"WhatsApp"}),g.jsx(Xt,{value:V.phone,onChange:ie=>Q({...V,phone:ie.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Email"}),g.jsx(Xt,{value:V.email,onChange:ie=>Q({...V,email:ie.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Sekolah"}),g.jsx(Xt,{value:V.school,onChange:ie=>Q({...V,school:ie.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Program Interest"}),g.jsx(Xt,{value:V.program,onChange:ie=>Q({...V,program:ie.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Sumber"}),g.jsxs(jn,{value:V.source,onValueChange:ie=>Q({...V,source:ie}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:UI.map(ie=>g.jsx(Vr,{value:ie,children:ie},ie))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Jenis Pendaftaran"}),g.jsxs(jn,{value:V.registration_type,onValueChange:ie=>Q({...V,registration_type:ie}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:ZS.map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Kelas"}),g.jsxs(jn,{value:V.class_type,onValueChange:ie=>Q({...V,class_type:ie}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:QS.map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Status"}),g.jsxs(jn,{value:V.status,onValueChange:ie=>Q({...V,status:ie}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:Uv.map(ie=>g.jsx(Vr,{value:ie.value,children:ie.label},ie.value))})]})]}),g.jsxs("div",{className:"space-y-2 col-span-2",children:[g.jsx(St,{children:"Catatan"}),g.jsx("textarea",{className:"input min-h-[80px]",value:V.notes,onChange:ie=>Q({...V,notes:ie.target.value})})]})]}),g.jsxs(Rf,{children:[g.jsx(Qt,{variant:"secondary",onClick:()=>{j(!1),R(null)},children:"Batal"}),g.jsx(Qt,{onClick:F,children:"Simpan Perubahan"})]})]})})]})}const YDe=[{value:"new",label:"New"},{value:"contacted",label:"Contacted"},{value:"follow_up",label:"Follow Up"},{value:"interested",label:"Interested"},{value:"registered",label:"Registered"},{value:"enrolled",label:"Enrolled"},{value:"lost",label:"Lost"}],JDe=[{value:"low",label:"Low"},{value:"medium",label:"Medium"},{value:"high",label:"High"},{value:"hot",label:"Hot"}],zI={new:{label:"New",color:"bg-info/10 text-info border-info/20"},contacted:{label:"Contacted",color:"bg-warning/10 text-warning border-warning/20"},follow_up:{label:"Follow Up",color:"bg-warning/10 text-warning border-warning/20"},interested:{label:"Interested",color:"bg-primary/10 text-primary border-primary/20"},registered:{label:"Registered",color:"bg-success/10 text-success border-success/20"},enrolled:{label:"Enrolled",color:"bg-success/10 text-success border-success/20"},lost:{label:"Lost",color:"bg-danger/10 text-danger border-danger/20"}},HI={low:{label:"Low",color:"bg-surface-light text-text-muted border-border"},medium:{label:"Medium",color:"bg-info/10 text-info border-info/20"},high:{label:"High",color:"bg-warning/10 text-warning border-warning/20"},hot:{label:"Hot",color:"bg-danger/10 text-danger border-danger/20"}};function ZDe(){var p;const{id:e}=xY(),t=xu(),{currentLead:r,fetchLead:n,updateLead:i,deleteLead:a,isLoading:o}=V2(),[s,l]=E.useState(!1),[c,u]=E.useState({});E.useEffect(()=>{n(e)},[e]),E.useEffect(()=>{r&&u({...r})},[r]);const f=async()=>{await i(e,c),l(!1),n(e)},d=async()=>{window.confirm("Are you sure you want to delete this lead?")&&(await a(e),t("/leads"))},h=m=>{const y=zI[m]||zI.new;return g.jsx("span",{className:`inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-lg border ${y.color}`,children:y.label})},v=m=>{const y=HI[m]||HI.medium;return g.jsxs("span",{className:`inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium rounded-lg border ${y.color}`,children:[y.label," Priority"]})};return o||!r?g.jsx("div",{className:"flex items-center justify-center h-96",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx("div",{className:"w-8 h-8 border-2 border-primary/30 border-t-primary rounded-full animate-spin"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Loading lead details..."})]})}):g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Qt,{variant:"ghost",size:"icon",onClick:()=>t("/leads"),children:g.jsx(uZ,{className:"w-5 h-5"})}),g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:r.name}),g.jsx("p",{className:"text-sm text-text-muted",children:"Lead Details"})]})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[r.phone&&g.jsx("a",{href:`https://wa.me/${r.phone}`,target:"_blank",rel:"noopener noreferrer",children:g.jsxs(Qt,{className:"bg-success hover:bg-success-light",children:[g.jsx(LF,{className:"w-4 h-4 mr-2"}),"WhatsApp"]})}),g.jsxs(Qt,{variant:"secondary",onClick:()=>l(!0),children:[g.jsx(Mm,{className:"w-4 h-4 mr-2"}),"Edit"]}),g.jsxs(Qt,{variant:"destructive",onClick:d,children:[g.jsx(zg,{className:"w-4 h-4 mr-2"}),"Delete"]})]})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[h(r.status),v(r.priority)]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[g.jsxs(An,{className:"p-6",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center",children:g.jsx($l,{className:"w-4 h-4 text-primary"})}),g.jsx("h3",{className:"font-semibold text-foreground",children:"Personal Information"})]}),g.jsxs("div",{className:"flex items-center gap-4 mb-6",children:[g.jsx("div",{className:"w-14 h-14 rounded-2xl bg-gradient-to-br from-primary to-secondary flex items-center justify-center text-white text-xl font-bold",children:(p=r.name)==null?void 0:p.charAt(0)}),g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-foreground",children:r.name}),g.jsx("p",{className:"text-sm text-text-muted",children:"Lead"})]})]}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"flex items-center gap-3 p-3 bg-surface-light rounded-xl",children:[g.jsx(q2,{className:"w-4 h-4 text-text-muted"}),g.jsx("span",{className:"text-sm text-foreground",children:r.phone||"-"})]}),g.jsxs("div",{className:"flex items-center gap-3 p-3 bg-surface-light rounded-xl",children:[g.jsx(G2,{className:"w-4 h-4 text-text-muted"}),g.jsx("span",{className:"text-sm text-foreground",children:r.email||"-"})]})]})]}),g.jsxs(An,{className:"p-6",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-success/10 flex items-center justify-center",children:g.jsx(jh,{className:"w-4 h-4 text-success"})}),g.jsx("h3",{className:"font-semibold text-foreground",children:"Education Information"})]}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"p-4 bg-surface-light rounded-xl",children:[g.jsx("p",{className:"text-xs text-text-muted mb-1",children:"School"}),g.jsx("p",{className:"font-medium text-foreground",children:r.school||"-"})]}),g.jsxs("div",{className:"p-4 bg-surface-light rounded-xl",children:[g.jsx("p",{className:"text-xs text-text-muted mb-1",children:"Program Interest"}),g.jsx("p",{className:"font-medium text-foreground",children:r.program||"-"})]})]})]}),g.jsxs(An,{className:"p-6",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-secondary/10 flex items-center justify-center",children:g.jsx(PF,{className:"w-4 h-4 text-secondary"})}),g.jsx("h3",{className:"font-semibold text-foreground",children:"Lead Details"})]}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("div",{className:"p-4 bg-surface-light rounded-xl",children:[g.jsx("p",{className:"text-xs text-text-muted mb-1",children:"Source"}),g.jsx("p",{className:"font-medium text-foreground",children:r.source||"-"})]}),g.jsxs("div",{className:"p-4 bg-surface-light rounded-xl",children:[g.jsx("p",{className:"text-xs text-text-muted mb-1",children:"Created"}),g.jsx("p",{className:"font-medium text-foreground",children:SF(r.created_at)})]}),r.next_follow_up&&g.jsxs("div",{className:`p-4 rounded-xl ${new Date(r.next_follow_up)<new Date?"bg-danger/10":"bg-warning/10"}`,children:[g.jsx("p",{className:"text-xs text-text-muted mb-1",children:"Next Follow Up"}),g.jsx("p",{className:`font-medium ${new Date(r.next_follow_up)<new Date?"text-danger":"text-foreground"}`,children:Ch(r.next_follow_up)})]})]})]})]}),r.notes&&g.jsxs(An,{className:"p-6",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-warning/10 flex items-center justify-center",children:g.jsx($l,{className:"w-4 h-4 text-warning"})}),g.jsx("h3",{className:"font-semibold text-foreground",children:"Notes"})]}),g.jsx("p",{className:"text-text-secondary whitespace-pre-wrap leading-relaxed",children:r.notes})]}),g.jsxs(An,{className:"p-6",children:[g.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[g.jsx("div",{className:"w-8 h-8 rounded-lg bg-info/10 flex items-center justify-center",children:g.jsx(kh,{className:"w-4 h-4 text-info"})}),g.jsx("h3",{className:"font-semibold text-foreground",children:"Follow Up History"})]}),r.followUps&&r.followUps.length>0?g.jsx("div",{className:"space-y-3",children:r.followUps.map((m,y)=>g.jsxs("div",{className:"flex items-start gap-4 p-4 bg-surface-light rounded-xl animate-slide-up",style:{animationDelay:`${y*50}ms`},children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center flex-shrink-0",children:m.completed?g.jsx(Oh,{className:"w-5 h-5 text-success"}):g.jsx(EF,{className:"w-5 h-5 text-warning"})}),g.jsxs("div",{className:"flex-1",children:[g.jsxs("div",{className:"flex items-center justify-between mb-1",children:[g.jsx("p",{className:"font-medium text-foreground",children:Ch(m.follow_up_date)}),m.completed&&g.jsx("span",{className:"inline-flex items-center px-2 py-0.5 bg-success/10 text-success text-xs font-medium rounded-md border border-success/20",children:"Completed"})]}),g.jsx("p",{className:"text-sm text-text-muted",children:m.notes||"No notes"})]})]},m.id))}):g.jsxs("div",{className:"text-center py-8",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-surface-light flex items-center justify-center mx-auto mb-3",children:g.jsx(kh,{className:"w-6 h-6 text-text-muted"})}),g.jsx("p",{className:"text-text-muted",children:"No follow up history"})]})]}),g.jsx(ip,{open:s,onOpenChange:l,children:g.jsxs(If,{className:"max-w-2xl max-h-[90vh] overflow-y-auto",children:[g.jsx(Df,{children:g.jsx(Mf,{children:"Edit Lead"})}),g.jsxs("div",{className:"grid grid-cols-2 gap-4 py-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Name *"}),g.jsx(Xt,{value:c.name||"",onChange:m=>u({...c,name:m.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"WhatsApp"}),g.jsx(Xt,{value:c.phone||"",onChange:m=>u({...c,phone:m.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Email"}),g.jsx(Xt,{value:c.email||"",onChange:m=>u({...c,email:m.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"School"}),g.jsx(Xt,{value:c.school||"",onChange:m=>u({...c,school:m.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Program Interest"}),g.jsx(Xt,{value:c.program||"",onChange:m=>u({...c,program:m.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Source"}),g.jsx(Xt,{value:c.source||"",onChange:m=>u({...c,source:m.target.value})})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Status"}),g.jsxs(jn,{value:c.status||"",onValueChange:m=>u({...c,status:m}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:YDe.map(m=>g.jsx(Vr,{value:m.value,children:m.label},m.value))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Priority"}),g.jsxs(jn,{value:c.priority||"",onValueChange:m=>u({...c,priority:m}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:JDe.map(m=>g.jsx(Vr,{value:m.value,children:m.label},m.value))})]})]}),g.jsxs("div",{className:"space-y-2 col-span-2",children:[g.jsx(St,{children:"Next Follow Up"}),g.jsx(Xt,{type:"date",value:c.next_follow_up||"",onChange:m=>u({...c,next_follow_up:m.target.value})})]}),g.jsxs("div",{className:"space-y-2 col-span-2",children:[g.jsx(St,{children:"Notes"}),g.jsx("textarea",{className:"input min-h-[80px]",value:c.notes||"",onChange:m=>u({...c,notes:m.target.value})})]})]}),g.jsxs(Rf,{children:[g.jsx(Qt,{variant:"secondary",onClick:()=>l(!1),children:"Cancel"}),g.jsx(Qt,{onClick:f,children:"Update Lead"})]})]})})]})}function QDe(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eRe(e){var t=QDe(e,"string");return pr(t)=="symbol"?t:t+""}function tRe(e,t,r){return(t=eRe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VI(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 GI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VI(Object(r),!0).forEach(function(n){tRe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VI(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ba(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var qI=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),KI=function(){return Math.random().toString(36).substring(7).split("").join(".")},XI={INIT:"@@redux/INIT"+KI(),REPLACE:"@@redux/REPLACE"+KI()};function rRe(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function aV(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ba(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ba(1));return r(aV)(e,t)}if(typeof e!="function")throw new Error(ba(2));var i=e,a=t,o=[],s=o,l=!1;function c(){s===o&&(s=o.slice())}function u(){if(l)throw new Error(ba(3));return a}function f(p){if(typeof p!="function")throw new Error(ba(4));if(l)throw new Error(ba(5));var m=!0;return c(),s.push(p),function(){if(m){if(l)throw new Error(ba(6));m=!1,c();var x=s.indexOf(p);s.splice(x,1),o=null}}}function d(p){if(!rRe(p))throw new Error(ba(7));if(typeof p.type>"u")throw new Error(ba(8));if(l)throw new Error(ba(9));try{l=!0,a=i(a,p)}finally{l=!1}for(var m=o=s,y=0;y<m.length;y++){var x=m[y];x()}return p}function h(p){if(typeof p!="function")throw new Error(ba(10));i=p,d({type:XI.REPLACE})}function v(){var p,m=f;return p={subscribe:function(x){if(typeof x!="object"||x===null)throw new Error(ba(11));function w(){x.next&&x.next(u())}w();var S=m(w);return{unsubscribe:S}}},p[qI]=function(){return this},p}return d({type:XI.INIT}),n={dispatch:d,subscribe:f,getState:u,replaceReducer:h},n[qI]=v,n}function YI(e,t){return function(){return t(e.apply(this,arguments))}}function JI(e,t){if(typeof e=="function")return YI(e,t);if(typeof e!="object"||e===null)throw new Error(ba(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=YI(i,t))}return r}function oV(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function nRe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ba(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=t.map(function(l){return l(o)});return a=oV.apply(void 0,s)(i.dispatch),GI(GI({},i),{},{dispatch:a})}}}function iRe(e){e()}let sV=iRe;const aRe=e=>sV=e,oRe=()=>sV,ZI=Symbol.for("react-redux-context"),QI=typeof globalThis<"u"?globalThis:{};function sRe(){var e;if(!E.createContext)return{};const t=(e=QI[ZI])!=null?e:QI[ZI]=new Map;let r=t.get(E.createContext);return r||(r=E.createContext(null),t.set(E.createContext,r)),r}const lV=sRe(),lRe=()=>{throw new Error("uSES not initialized!")};var cV={exports:{}},jr={};/** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var wi=typeof Symbol=="function"&&Symbol.for,PP=wi?Symbol.for("react.element"):60103,TP=wi?Symbol.for("react.portal"):60106,uw=wi?Symbol.for("react.fragment"):60107,fw=wi?Symbol.for("react.strict_mode"):60108,dw=wi?Symbol.for("react.profiler"):60114,hw=wi?Symbol.for("react.provider"):60109,pw=wi?Symbol.for("react.context"):60110,CP=wi?Symbol.for("react.async_mode"):60111,mw=wi?Symbol.for("react.concurrent_mode"):60111,gw=wi?Symbol.for("react.forward_ref"):60112,vw=wi?Symbol.for("react.suspense"):60113,cRe=wi?Symbol.for("react.suspense_list"):60120,yw=wi?Symbol.for("react.memo"):60115,xw=wi?Symbol.for("react.lazy"):60116,uRe=wi?Symbol.for("react.block"):60121,fRe=wi?Symbol.for("react.fundamental"):60117,dRe=wi?Symbol.for("react.responder"):60118,hRe=wi?Symbol.for("react.scope"):60119;function co(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case PP:switch(e=e.type,e){case CP:case mw:case uw:case dw:case fw:case vw:return e;default:switch(e=e&&e.$$typeof,e){case pw:case gw:case xw:case yw:case hw:return e;default:return t}}case TP:return t}}}function uV(e){return co(e)===mw}jr.AsyncMode=CP;jr.ConcurrentMode=mw;jr.ContextConsumer=pw;jr.ContextProvider=hw;jr.Element=PP;jr.ForwardRef=gw;jr.Fragment=uw;jr.Lazy=xw;jr.Memo=yw;jr.Portal=TP;jr.Profiler=dw;jr.StrictMode=fw;jr.Suspense=vw;jr.isAsyncMode=function(e){return uV(e)||co(e)===CP};jr.isConcurrentMode=uV;jr.isContextConsumer=function(e){return co(e)===pw};jr.isContextProvider=function(e){return co(e)===hw};jr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===PP};jr.isForwardRef=function(e){return co(e)===gw};jr.isFragment=function(e){return co(e)===uw};jr.isLazy=function(e){return co(e)===xw};jr.isMemo=function(e){return co(e)===yw};jr.isPortal=function(e){return co(e)===TP};jr.isProfiler=function(e){return co(e)===dw};jr.isStrictMode=function(e){return co(e)===fw};jr.isSuspense=function(e){return co(e)===vw};jr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===uw||e===mw||e===dw||e===fw||e===vw||e===cRe||typeof e=="object"&&e!==null&&(e.$$typeof===xw||e.$$typeof===yw||e.$$typeof===hw||e.$$typeof===pw||e.$$typeof===gw||e.$$typeof===fRe||e.$$typeof===dRe||e.$$typeof===hRe||e.$$typeof===uRe)};jr.typeOf=co;cV.exports=jr;var pRe=cV.exports,OP=pRe,mRe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},gRe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vRe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kP={};kP[OP.ForwardRef]=vRe;kP[OP.Memo]=fV;function eD(e){return OP.isMemo(e)?fV:kP[e.$$typeof]||mRe}var yRe=Object.defineProperty,xRe=Object.getOwnPropertyNames,tD=Object.getOwnPropertySymbols,bRe=Object.getOwnPropertyDescriptor,wRe=Object.getPrototypeOf,rD=Object.prototype;function dV(e,t,r){if(typeof t!="string"){if(rD){var n=wRe(t);n&&n!==rD&&dV(e,n,r)}var i=xRe(t);tD&&(i=i.concat(tD(t)));for(var a=eD(e),o=eD(t),s=0;s<i.length;++s){var l=i[s];if(!gRe[l]&&!(r&&r[l])&&!(o&&o[l])&&!(a&&a[l])){var c=bRe(t,l);try{yRe(e,l,c)}catch{}}}}return e}var SRe=dV;const nD=gr(SRe),_Re=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ARe(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,l,c,u,f,d;function h(x,w){return l=x,c=w,u=e(l,c),f=t(n,c),d=r(u,f,c),s=!0,d}function v(){return u=e(l,c),t.dependsOnOwnProps&&(f=t(n,c)),d=r(u,f,c),d}function p(){return e.dependsOnOwnProps&&(u=e(l,c)),t.dependsOnOwnProps&&(f=t(n,c)),d=r(u,f,c),d}function m(){const x=e(l,c),w=!o(x,u);return u=x,w&&(d=r(u,f,c)),d}function y(x,w){const S=!a(w,c),A=!i(x,l,w,c);return l=x,c=w,S&&A?v():S?p():A?m():d}return function(w,S){return s?y(w,S):h(w,S)}}function ERe(e,t){let{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:i}=t,a=PB(t,_Re);const o=r(e,a),s=n(e,a),l=i(e,a);return ARe(o,s,l,e,a)}function NRe(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...a)=>t(i(...a)))}return r}function g3(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function iD(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function hV(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=iD(e);let c=a(s,l);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=iD(c),c=a(s,l)),c},a}}function jP(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function PRe(e){return e&&typeof e=="object"?g3(t=>NRe(e,t)):e?typeof e=="function"?hV(e):jP(e,"mapDispatchToProps"):g3(t=>({dispatch:t}))}function TRe(e){return e?typeof e=="function"?hV(e):jP(e,"mapStateToProps"):g3(()=>({}))}function CRe(e,t,r){return tu({},r,e,t)}function ORe(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,c,u){const f=e(l,c,u);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function kRe(e){return e?typeof e=="function"?ORe(e):jP(e,"mergeProps"):()=>CRe}function jRe(){const e=oRe();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],i=t;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0,a=r={callback:n,next:null,prev:r};return a.prev?a.prev.next=a:t=a,function(){!i||t===null||(i=!1,a.next?a.next.prev=a.prev:r=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}const aD={notify(){},get:()=>[]};function pV(e,t){let r,n=aD,i=0,a=!1;function o(p){u();const m=n.subscribe(p);let y=!1;return()=>{y||(y=!0,m(),f())}}function s(){n.notify()}function l(){v.onStateChange&&v.onStateChange()}function c(){return a}function u(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=jRe())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=aD)}function d(){a||(a=!0,u())}function h(){a&&(a=!1,f())}const v={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return v}const LRe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",g2=LRe?E.useLayoutEffect:E.useEffect;function oD(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function e_(e,t){if(oD(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!oD(e[r[i]],t[r[i]]))return!1;return!0}const IRe=["reactReduxForwardedRef"];let mV=lRe;const DRe=e=>{mV=e},RRe=[null,null];function MRe(e,t,r){g2(()=>e(...t),r)}function FRe(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function $Re(e,t,r,n,i,a,o,s,l,c,u){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const p=t.getState();let m,y;try{m=n(p,i.current)}catch(x){y=x,d=x}y||(d=null),m===a.current?o.current||c():(a.current=m,l.current=m,o.current=!0,u())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function BRe(e,t){return e===t}function gV(e,t,r,{pure:n,areStatesEqual:i=BRe,areOwnPropsEqual:a=e_,areStatePropsEqual:o=e_,areMergedPropsEqual:s=e_,forwardRef:l=!1,context:c=lV}={}){const u=c,f=TRe(e),d=PRe(t),h=kRe(r),v=!!e;return m=>{const y=m.displayName||m.name||"Component",x=`Connect(${y})`,w={shouldHandleStateChanges:v,displayName:x,wrappedComponentName:y,WrappedComponent:m,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function S(P){const[j,C,R]=E.useMemo(()=>{const{reactReduxForwardedRef:me}=P,Le=PB(P,IRe);return[P.context,me,Le]},[P]),L=E.useMemo(()=>j&&j.Consumer&&JF.isContextConsumer(E.createElement(j.Consumer,null))?j:u,[j,u]),I=E.useContext(L),B=!!P.store&&!!P.store.getState&&!!P.store.dispatch,z=!!I&&!!I.store,V=B?P.store:I.store,Q=z?I.getServerState:V.getState,ae=E.useMemo(()=>ERe(V.dispatch,w),[V]),[K,re]=E.useMemo(()=>{if(!v)return RRe;const me=pV(V,B?void 0:I.subscription),Le=me.notifyNestedSubs.bind(me);return[me,Le]},[V,B,I]),ye=E.useMemo(()=>B?I:tu({},I,{subscription:K}),[B,I,K]),xe=E.useRef(),O=E.useRef(R),M=E.useRef(),F=E.useRef(!1);E.useRef(!1);const U=E.useRef(!1),Z=E.useRef();g2(()=>(U.current=!0,()=>{U.current=!1}),[]);const se=E.useMemo(()=>()=>M.current&&R===O.current?M.current:ae(V.getState(),R),[V,R]),ve=E.useMemo(()=>Le=>K?$Re(v,V,K,ae,O,xe,F,U,M,re,Le):()=>{},[K]);MRe(FRe,[O,xe,F,R,M,re]);let oe;try{oe=mV(ve,se,Q?()=>ae(Q(),R):se)}catch(me){throw Z.current&&(me.message+=` The error may be correlated with this previous error: ${Z.current.stack} `),me}g2(()=>{Z.current=void 0,M.current=void 0,xe.current=oe});const pe=E.useMemo(()=>E.createElement(m,tu({},oe,{ref:C})),[C,m,oe]);return E.useMemo(()=>v?E.createElement(L.Provider,{value:ye},pe):pe,[L,pe,ye])}const N=E.memo(S);if(N.WrappedComponent=m,N.displayName=S.displayName=x,l){const j=E.forwardRef(function(R,L){return E.createElement(N,tu({},R,{reactReduxForwardedRef:L}))});return j.displayName=x,j.WrappedComponent=m,nD(j,m)}return nD(N,m)}}function URe({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",noopCheck:a="once"}){const o=E.useMemo(()=>{const c=pV(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:i,noopCheck:a}},[e,n,i,a]),s=E.useMemo(()=>e.getState(),[e]);g2(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,s]);const l=t||lV;return E.createElement(l.Provider,{value:o},r)}DRe(bE.useSyncExternalStore);aRe(Yl.unstable_batchedUpdates);function WRe(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function vV(e,t){var r=E.useState(function(){return{inputs:t,result:e()}})[0],n=E.useRef(!0),i=E.useRef(r),a=n.current||!!(t&&i.current.inputs&&WRe(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return E.useEffect(function(){n.current=!1,i.current=o},[o]),o.result}function zRe(e,t){return vV(function(){return e},t)}var sr=vV,_t=zRe,cs=function(t){var r=t.top,n=t.right,i=t.bottom,a=t.left,o=n-a,s=i-r,l={top:r,right:n,bottom:i,left:a,width:o,height:s,x:a,y:r,center:{x:(n+a)/2,y:(i+r)/2}};return l},LP=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},sD=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},HRe=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},t_={top:0,right:0,bottom:0,left:0},IP=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?t_:n,a=t.border,o=a===void 0?t_:a,s=t.padding,l=s===void 0?t_:s,c=cs(LP(r,i)),u=cs(sD(r,o)),f=cs(sD(u,l));return{marginBox:c,borderBox:cs(r),paddingBox:u,contentBox:f,margin:i,border:o,padding:l}},wo=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&su(),i},VRe=function(){return{x:window.pageXOffset,y:window.pageYOffset}},v2=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,s=HRe(n,r);return IP({borderBox:s,border:i,margin:a,padding:o})},y2=function(t,r){return r===void 0&&(r=VRe()),v2(t,r)},yV=function(t,r){var n={top:wo(r.marginTop),right:wo(r.marginRight),bottom:wo(r.marginBottom),left:wo(r.marginLeft)},i={top:wo(r.paddingTop),right:wo(r.paddingRight),bottom:wo(r.paddingBottom),left:wo(r.paddingLeft)},a={top:wo(r.borderTopWidth),right:wo(r.borderRightWidth),bottom:wo(r.borderBottomWidth),left:wo(r.borderLeftWidth)};return IP({borderBox:t,margin:n,padding:i,border:a})},xV=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return yV(r,n)},lD=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function GRe(e,t){return!!(e===t||lD(e)&&lD(t))}function qRe(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!GRe(e[r],t[r]))return!1;return!0}function yi(e,t){t===void 0&&(t=qRe);var r=null;function n(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r&&r.lastThis===this&&t(i,r.lastArgs))return r.lastResult;var o=e.apply(this,i);return r={lastResult:o,lastArgs:i,lastThis:this},o}return n.clear=function(){r=null},n}var kg=function(t){var r=[],n=null,i=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];r=s,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return i.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},i};function bV(e,t){}bV.bind(null,"warn");bV.bind(null,"error");function nu(){}function KRe(e,t){return{...e,...t}}function Co(e,t,r){const n=t.map(i=>{const a=KRe(r,i.options);return e.addEventListener(i.eventName,i.fn,a),function(){e.removeEventListener(i.eventName,i.fn,a)}});return function(){n.forEach(a=>{a()})}}const XRe="Invariant failed";class x2 extends Error{}x2.prototype.toString=function(){return this.message};function et(e,t){throw new x2(XRe)}class YRe extends ge.Component{constructor(...t){super(...t),this.callbacks=null,this.unbind=nu,this.onWindowError=r=>{const n=this.getCallbacks();n.isDragging()&&n.tryAbort(),r.error instanceof x2&&r.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=r=>{this.callbacks=r}}componentDidMount(){this.unbind=Co(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof x2){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const JRe=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key `,b2=e=>e+1,ZRe=e=>` You have lifted an item in position ${b2(e.source.index)} `,wV=(e,t)=>{const r=e.droppableId===t.droppableId,n=b2(e.index),i=b2(t.index);return r?` You have moved the item from position ${n} to position ${i} `:` You have moved the item from position ${n} in list ${e.droppableId} to list ${t.droppableId} in position ${i} `},SV=(e,t,r)=>t.droppableId===r.droppableId?` The item ${e} has been combined with ${r.draggableId}`:` The item ${e} in list ${t.droppableId} has been combined with ${r.draggableId} in list ${r.droppableId} `,QRe=e=>{const t=e.destination;if(t)return wV(e.source,t);const r=e.combine;return r?SV(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},cD=e=>` The item has returned to its starting position of ${b2(e.index)} `,eMe=e=>{if(e.reason==="CANCEL")return` Movement cancelled. ${cD(e.source)} `;const t=e.destination,r=e.combine;return t?` You have dropped the item. ${wV(e.source,t)} `:r?` You have dropped the item. ${SV(e.draggableId,e.source,r)} `:` The item has been dropped while not over a drop area. ${cD(e.source)} `},tMe={dragHandleUsageInstructions:JRe,onDragStart:ZRe,onDragUpdate:QRe,onDragEnd:eMe};var hy=tMe;const xi={x:0,y:0},Li=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),Za=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),iu=(e,t)=>e.x===t.x&&e.y===t.y,Mp=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),Hf=(e,t,r=0)=>e==="x"?{x:t,y:r}:{x:r,y:t},jg=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),uD=(e,t)=>Math.min(...t.map(r=>jg(e,r))),_V=e=>t=>({x:e(t.x),y:e(t.y)});var rMe=(e,t)=>{const r=cs({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};const c1=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),fD=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],nMe={top:0,right:0,bottom:0,left:0},iMe=(e,t)=>t?c1(e,t.scroll.diff.displacement):e,aMe=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,oMe=(e,t)=>t&&t.shouldClipSubject?rMe(t.pageMarginBox,e):cs(e);var op=({page:e,withPlaceholder:t,axis:r,frame:n})=>{const i=iMe(e.marginBox,n),a=aMe(i,r,t),o=oMe(a,n);return{page:e,withPlaceholder:t,active:o}},DP=(e,t)=>{e.frame||et();const r=e.frame,n=Za(t,r.scroll.initial),i=Mp(n),a={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:i},max:r.scroll.max}},o=op({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:a});return{...e,frame:a,subject:o}};const AV=yi(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),EV=yi(e=>e.reduce((t,r)=>(t[r.descriptor.id]=r,t),{})),bw=yi(e=>Object.values(e)),sMe=yi(e=>Object.values(e));var Fp=yi((e,t)=>sMe(t).filter(n=>e===n.descriptor.droppableId).sort((n,i)=>n.descriptor.index-i.descriptor.index));function RP(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function ww(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Sw=yi((e,t)=>t.filter(r=>r.descriptor.id!==e.descriptor.id)),lMe=({isMovingForward:e,draggable:t,destination:r,insideDestination:n,previousImpact:i})=>{if(!r.isCombineEnabled||!RP(i))return null;function o(h){const v={type:"COMBINE",combine:{draggableId:h,droppableId:r.descriptor.id}};return{...i,at:v}}const s=i.displaced.all,l=s.length?s[0]:null;if(e)return l?o(l):null;const c=Sw(t,n);if(!l){if(!c.length)return null;const h=c[c.length-1];return o(h.descriptor.id)}const u=c.findIndex(h=>h.descriptor.id===l);u===-1&&et();const f=u-1;if(f<0)return null;const d=c[f];return o(d.descriptor.id)},$p=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const NV={point:xi,value:0},Lg={invisible:{},visible:{},all:[]},cMe={displaced:Lg,displacedBy:NV,at:null};var uMe=cMe,jo=(e,t)=>r=>e<=r&&r<=t,PV=e=>{const t=jo(e.top,e.bottom),r=jo(e.left,e.right);return n=>{if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;const a=t(n.top)||t(n.bottom),o=r(n.left)||r(n.right);if(a&&o)return!0;const l=n.top<e.top&&n.bottom>e.bottom,c=n.left<e.left&&n.right>e.right;return l&&c?!0:l&&o||c&&a}},fMe=e=>{const t=jo(e.top,e.bottom),r=jo(e.left,e.right);return n=>t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right)};const MP={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},TV={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var dMe=e=>t=>{const r=jo(t.top,t.bottom),n=jo(t.left,t.right);return i=>e===MP?r(i.top)&&r(i.bottom):n(i.left)&&n(i.right)};const hMe=(e,t)=>{const r=t.frame?t.frame.scroll.diff.displacement:xi;return c1(e,r)},pMe=(e,t,r)=>t.subject.active?r(t.subject.active)(e):!1,mMe=(e,t,r)=>r(t)(e),FP=({target:e,destination:t,viewport:r,withDroppableDisplacement:n,isVisibleThroughFrameFn:i})=>{const a=n?hMe(e,t):e;return pMe(a,t,i)&&mMe(a,r,i)},gMe=e=>FP({...e,isVisibleThroughFrameFn:PV}),CV=e=>FP({...e,isVisibleThroughFrameFn:fMe}),vMe=e=>FP({...e,isVisibleThroughFrameFn:dMe(e.destination.axis)}),yMe=(e,t,r)=>{if(typeof r=="boolean")return r;if(!t)return!0;const{invisible:n,visible:i}=t;if(n[e])return!1;const a=i[e];return a?a.shouldAnimate:!0};function xMe(e,t){const r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return cs(LP(r,n))}function Ig({afterDragging:e,destination:t,displacedBy:r,viewport:n,forceShouldAnimate:i,last:a}){return e.reduce(function(s,l){const c=xMe(l,r),u=l.descriptor.id;if(s.all.push(u),!gMe({target:c,destination:t,viewport:n,withDroppableDisplacement:!0}))return s.invisible[l.descriptor.id]=!0,s;const d=yMe(u,a,i),h={draggableId:u,shouldAnimate:d};return s.visible[u]=h,s},{all:[],visible:{},invisible:{}})}function bMe(e,t){if(!e.length)return 0;const r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}function dD({insideDestination:e,inHomeList:t,displacedBy:r,destination:n}){const i=bMe(e,{inHomeList:t});return{displaced:Lg,displacedBy:r,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:i}}}}function w2({draggable:e,insideDestination:t,destination:r,viewport:n,displacedBy:i,last:a,index:o,forceShouldAnimate:s}){const l=$p(e,r);if(o==null)return dD({insideDestination:t,inHomeList:l,displacedBy:i,destination:r});const c=t.find(v=>v.descriptor.index===o);if(!c)return dD({insideDestination:t,inHomeList:l,displacedBy:i,destination:r});const u=Sw(e,t),f=t.indexOf(c),d=u.slice(f);return{displaced:Ig({afterDragging:d,destination:r,displacedBy:i,last:a,viewport:n.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:o}}}}function mu(e,t){return!!t.effected[e]}var wMe=({isMovingForward:e,destination:t,draggables:r,combine:n,afterCritical:i})=>{if(!t.isCombineEnabled)return null;const a=n.draggableId,s=r[a].descriptor.index;return mu(a,i)?e?s:s-1:e?s+1:s},SMe=({isMovingForward:e,isInHomeList:t,insideDestination:r,location:n})=>{if(!r.length)return null;const i=n.index,a=e?i+1:i-1,o=r[0].descriptor.index,s=r[r.length-1].descriptor.index,l=t?s:s+1;return a<o||a>l?null:a},_Me=({isMovingForward:e,isInHomeList:t,draggable:r,draggables:n,destination:i,insideDestination:a,previousImpact:o,viewport:s,afterCritical:l})=>{const c=o.at;if(c||et(),c.type==="REORDER"){const f=SMe({isMovingForward:e,isInHomeList:t,location:c.destination,insideDestination:a});return f==null?null:w2({draggable:r,insideDestination:a,destination:i,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:f})}const u=wMe({isMovingForward:e,destination:i,displaced:o.displaced,draggables:n,combine:c.combine,afterCritical:l});return u==null?null:w2({draggable:r,insideDestination:a,destination:i,viewport:s,last:o.displaced,displacedBy:o.displacedBy,index:u})},AMe=({displaced:e,afterCritical:t,combineWith:r,displacedBy:n})=>{const i=!!(e.visible[r]||e.invisible[r]);return mu(r,t)?i?xi:Mp(n.point):i?n.point:xi},EMe=({afterCritical:e,impact:t,draggables:r})=>{const n=ww(t);n||et();const i=n.draggableId,a=r[i].page.borderBox.center,o=AMe({displaced:t.displaced,afterCritical:e,combineWith:i,displacedBy:t.displacedBy});return Li(a,o)};const OV=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,NMe=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,$P=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,hD=({axis:e,moveRelativeTo:t,isMoving:r})=>Hf(e.line,t.marginBox[e.end]+OV(e,r),$P(e,t.marginBox,r)),pD=({axis:e,moveRelativeTo:t,isMoving:r})=>Hf(e.line,t.marginBox[e.start]-NMe(e,r),$P(e,t.marginBox,r)),PMe=({axis:e,moveInto:t,isMoving:r})=>Hf(e.line,t.contentBox[e.start]+OV(e,r),$P(e,t.contentBox,r));var TMe=({impact:e,draggable:t,draggables:r,droppable:n,afterCritical:i})=>{const a=Fp(n.descriptor.id,r),o=t.page,s=n.axis;if(!a.length)return PMe({axis:s,moveInto:n.page,isMoving:o});const{displaced:l,displacedBy:c}=e,u=l.all[0];if(u){const d=r[u];if(mu(u,i))return pD({axis:s,moveRelativeTo:d.page,isMoving:o});const h=v2(d.page,c.point);return pD({axis:s,moveRelativeTo:h,isMoving:o})}const f=a[a.length-1];if(f.descriptor.id===t.descriptor.id)return o.borderBox.center;if(mu(f.descriptor.id,i)){const d=v2(f.page,Mp(i.displacedBy.point));return hD({axis:s,moveRelativeTo:d,isMoving:o})}return hD({axis:s,moveRelativeTo:f.page,isMoving:o})},v3=(e,t)=>{const r=e.frame;return r?Li(t,r.scroll.diff.displacement):t};const CMe=({impact:e,draggable:t,droppable:r,draggables:n,afterCritical:i})=>{const a=t.page.borderBox.center,o=e.at;return!r||!o?a:o.type==="REORDER"?TMe({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:i}):EMe({impact:e,draggables:n,afterCritical:i})};var _w=e=>{const t=CMe(e),r=e.droppable;return r?v3(r,t):t},kV=(e,t)=>{const r=Za(t,e.scroll.initial),n=Mp(r);return{frame:cs({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function mD(e,t){return e.map(r=>t[r])}function OMe(e,t){for(let r=0;r<t.length;r++){const n=t[r].visible[e];if(n)return n}return null}var kMe=({impact:e,viewport:t,destination:r,draggables:n,maxScrollChange:i})=>{const a=kV(t,Li(t.scroll.current,i)),o=r.frame?DP(r,Li(r.frame.scroll.current,i)):r,s=e.displaced,l=Ig({afterDragging:mD(s.all,n),destination:r,displacedBy:e.displacedBy,viewport:a.frame,last:s,forceShouldAnimate:!1}),c=Ig({afterDragging:mD(s.all,n),destination:o,displacedBy:e.displacedBy,viewport:t.frame,last:s,forceShouldAnimate:!1}),u={},f={},d=[s,l,c];return s.all.forEach(v=>{const p=OMe(v,d);if(p){f[v]=p;return}u[v]=!0}),{...e,displaced:{all:s.all,invisible:u,visible:f}}},jMe=(e,t)=>Li(e.scroll.diff.displacement,t),BP=({pageBorderBoxCenter:e,draggable:t,viewport:r})=>{const n=jMe(r,e),i=Za(n,t.page.borderBox.center);return Li(t.client.borderBox.center,i)},jV=({draggable:e,destination:t,newPageBorderBoxCenter:r,viewport:n,withDroppableDisplacement:i,onlyOnMainAxis:a=!1})=>{const o=Za(r,e.page.borderBox.center),l={target:c1(e.page.borderBox,o),destination:t,withDroppableDisplacement:i,viewport:n};return a?vMe(l):CV(l)},LMe=({isMovingForward:e,draggable:t,destination:r,draggables:n,previousImpact:i,viewport:a,previousPageBorderBoxCenter:o,previousClientSelection:s,afterCritical:l})=>{if(!r.isEnabled)return null;const c=Fp(r.descriptor.id,n),u=$p(t,r),f=lMe({isMovingForward:e,draggable:t,destination:r,insideDestination:c,previousImpact:i})||_Me({isMovingForward:e,isInHomeList:u,draggable:t,draggables:n,destination:r,insideDestination:c,previousImpact:i,viewport:a,afterCritical:l});if(!f)return null;const d=_w({impact:f,draggable:t,droppable:r,draggables:n,afterCritical:l});if(jV({draggable:t,destination:r,newPageBorderBoxCenter:d,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:BP({pageBorderBoxCenter:d,draggable:t,viewport:a}),impact:f,scrollJumpRequest:null};const v=Za(d,o),p=kMe({impact:f,viewport:a,destination:r,draggables:n,maxScrollChange:v});return{clientSelection:s,impact:p,scrollJumpRequest:v}};const ia=e=>{const t=e.subject.active;return t||et(),t};var IMe=({isMovingForward:e,pageBorderBoxCenter:t,source:r,droppables:n,viewport:i})=>{const a=r.subject.active;if(!a)return null;const o=r.axis,s=jo(a[o.start],a[o.end]),l=bw(n).filter(u=>u!==r).filter(u=>u.isEnabled).filter(u=>!!u.subject.active).filter(u=>PV(i.frame)(ia(u))).filter(u=>{const f=ia(u);return e?a[o.crossAxisEnd]<f[o.crossAxisEnd]:f[o.crossAxisStart]<a[o.crossAxisStart]}).filter(u=>{const f=ia(u),d=jo(f[o.start],f[o.end]);return s(f[o.start])||s(f[o.end])||d(a[o.start])||d(a[o.end])}).sort((u,f)=>{const d=ia(u)[o.crossAxisStart],h=ia(f)[o.crossAxisStart];return e?d-h:h-d}).filter((u,f,d)=>ia(u)[o.crossAxisStart]===ia(d[0])[o.crossAxisStart]);if(!l.length)return null;if(l.length===1)return l[0];const c=l.filter(u=>jo(ia(u)[o.start],ia(u)[o.end])(t[o.line]));return c.length===1?c[0]:c.length>1?c.sort((u,f)=>ia(u)[o.start]-ia(f)[o.start])[0]:l.sort((u,f)=>{const d=uD(t,fD(ia(u))),h=uD(t,fD(ia(f)));return d!==h?d-h:ia(u)[o.start]-ia(f)[o.start]})[0]};const gD=(e,t)=>{const r=e.page.borderBox.center;return mu(e.descriptor.id,t)?Za(r,t.displacedBy.point):r},DMe=(e,t)=>{const r=e.page.borderBox;return mu(e.descriptor.id,t)?c1(r,Mp(t.displacedBy.point)):r};var RMe=({pageBorderBoxCenter:e,viewport:t,destination:r,insideDestination:n,afterCritical:i})=>n.filter(o=>CV({target:DMe(o,i),destination:r,viewport:t.frame,withDroppableDisplacement:!0})).sort((o,s)=>{const l=jg(e,v3(r,gD(o,i))),c=jg(e,v3(r,gD(s,i)));return l<c?-1:c<l?1:o.descriptor.index-s.descriptor.index})[0]||null,u1=yi(function(t,r){const n=r[t.line];return{value:n,point:Hf(t.line,n)}});const MMe=(e,t,r)=>{const n=e.axis;if(e.descriptor.mode==="virtual")return Hf(n.line,t[n.line]);const i=e.subject.page.contentBox[n.size],l=Fp(e.descriptor.id,r).reduce((c,u)=>c+u.client.marginBox[n.size],0)+t[n.line]-i;return l<=0?null:Hf(n.line,l)},LV=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),IV=(e,t,r)=>{const n=e.frame;$p(t,e)&&et(),e.subject.withPlaceholder&&et();const i=u1(e.axis,t.displaceBy).point,a=MMe(e,i,r),o={placeholderSize:i,increasedBy:a,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){const u=op({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:e.frame});return{...e,subject:u}}const s=a?Li(n.scroll.max,a):n.scroll.max,l=LV(n,s),c=op({page:e.subject.page,withPlaceholder:o,axis:e.axis,frame:l});return{...e,subject:c,frame:l}},FMe=e=>{const t=e.subject.withPlaceholder;t||et();const r=e.frame;if(!r){const o=op({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:o}}const n=t.oldFrameMaxScroll;n||et();const i=LV(r,n),a=op({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return{...e,subject:a,frame:i}};var $Me=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:r,draggable:n,draggables:i,destination:a,viewport:o,afterCritical:s})=>{if(!t){if(r.length)return null;const f={displaced:Lg,displacedBy:NV,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},d=_w({impact:f,draggable:n,droppable:a,draggables:i,afterCritical:s}),h=$p(n,a)?a:IV(a,n,i);return jV({draggable:n,destination:h,newPageBorderBoxCenter:d,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?f:null}const l=e[a.axis.line]<=t.page.borderBox.center[a.axis.line],c=(()=>{const f=t.descriptor.index;return t.descriptor.id===n.descriptor.id||l?f:f+1})(),u=u1(a.axis,n.displaceBy);return w2({draggable:n,insideDestination:r,destination:a,viewport:o,displacedBy:u,last:Lg,index:c})},BMe=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:r,isOver:n,draggables:i,droppables:a,viewport:o,afterCritical:s})=>{const l=IMe({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:a,viewport:o});if(!l)return null;const c=Fp(l.descriptor.id,i),u=RMe({pageBorderBoxCenter:t,viewport:o,destination:l,insideDestination:c,afterCritical:s}),f=$Me({previousPageBorderBoxCenter:t,destination:l,draggable:r,draggables:i,moveRelativeTo:u,insideDestination:c,viewport:o,afterCritical:s});if(!f)return null;const d=_w({impact:f,draggable:r,droppable:l,draggables:i,afterCritical:s});return{clientSelection:BP({pageBorderBoxCenter:d,draggable:r,viewport:o}),impact:f,scrollJumpRequest:null}},ro=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const UMe=(e,t)=>{const r=ro(e);return r?t[r]:null};var WMe=({state:e,type:t})=>{const r=UMe(e.impact,e.dimensions.droppables),n=!!r,i=e.dimensions.droppables[e.critical.droppable.id],a=r||i,o=a.axis.direction,s=o==="vertical"&&(t==="MOVE_UP"||t==="MOVE_DOWN")||o==="horizontal"&&(t==="MOVE_LEFT"||t==="MOVE_RIGHT");if(s&&!n)return null;const l=t==="MOVE_DOWN"||t==="MOVE_RIGHT",c=e.dimensions.draggables[e.critical.draggable.id],u=e.current.page.borderBoxCenter,{draggables:f,droppables:d}=e.dimensions;return s?LMe({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,destination:a,draggables:f,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):BMe({isMovingForward:l,previousPageBorderBoxCenter:u,draggable:c,isOver:a,draggables:f,droppables:d,viewport:e.viewport,afterCritical:e.afterCritical})};function Zu(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function DV(e){const t=jo(e.top,e.bottom),r=jo(e.left,e.right);return function(i){return t(i.y)&&r(i.x)}}function zMe(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function HMe({pageBorderBox:e,draggable:t,candidates:r}){const n=t.page.borderBox.center,i=r.map(a=>{const o=a.axis,s=Hf(a.axis.line,e.center[o.line],a.page.borderBox.center[o.crossAxisLine]);return{id:a.descriptor.id,distance:jg(n,s)}}).sort((a,o)=>o.distance-a.distance);return i[0]?i[0].id:null}function VMe({pageBorderBox:e,draggable:t,droppables:r}){const n=bw(r).filter(i=>{if(!i.isEnabled)return!1;const a=i.subject.active;if(!a||!zMe(e,a))return!1;if(DV(a)(e.center))return!0;const o=i.axis,s=a.center[o.crossAxisLine],l=e[o.crossAxisStart],c=e[o.crossAxisEnd],u=jo(a[o.crossAxisStart],a[o.crossAxisEnd]),f=u(l),d=u(c);return!f&&!d?!0:f?l<s:c>s});return n.length?n.length===1?n[0].descriptor.id:HMe({pageBorderBox:e,draggable:t,candidates:n}):null}const RV=(e,t)=>cs(c1(e,t));var GMe=(e,t)=>{const r=e.frame;return r?RV(t,r.scroll.diff.value):t};function MV({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function qMe({draggable:e,closest:t,inHomeList:r}){return t?r&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var KMe=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:r,insideDestination:n,last:i,viewport:a,afterCritical:o})=>{const s=r.axis,l=u1(r.axis,t.displaceBy),c=l.value,u=e[s.start],f=e[s.end],h=Sw(t,n).find(p=>{const m=p.descriptor.id,y=p.page.borderBox.center[s.line],x=mu(m,o),w=MV({displaced:i,id:m});return x?w?f<=y:u<y-c:w?f<=y+c:u<y})||null,v=qMe({draggable:t,closest:h,inHomeList:$p(t,r)});return w2({draggable:t,insideDestination:n,destination:r,viewport:a,last:i,displacedBy:l,index:v})};const XMe=4;var YMe=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:r,destination:n,insideDestination:i,afterCritical:a})=>{if(!n.isCombineEnabled)return null;const o=n.axis,s=u1(n.axis,e.displaceBy),l=s.value,c=t[o.start],u=t[o.end],d=Sw(e,i).find(v=>{const p=v.descriptor.id,m=v.page.borderBox,x=m[o.size]/XMe,w=mu(p,a),S=MV({displaced:r.displaced,id:p});return w?S?u>m[o.start]+x&&u<m[o.end]-x:c>m[o.start]-l+x&&c<m[o.end]-l-x:S?u>m[o.start]+l+x&&u<m[o.end]+l-x:c>m[o.start]+x&&c<m[o.end]-x});return d?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:n.descriptor.id}}}:null},FV=({pageOffset:e,draggable:t,draggables:r,droppables:n,previousImpact:i,viewport:a,afterCritical:o})=>{const s=RV(t.page.borderBox,e),l=VMe({pageBorderBox:s,draggable:t,droppables:n});if(!l)return uMe;const c=n[l],u=Fp(c.descriptor.id,r),f=GMe(c,s);return YMe({pageBorderBoxWithDroppableScroll:f,draggable:t,previousImpact:i,destination:c,insideDestination:u,afterCritical:o})||KMe({pageBorderBoxWithDroppableScroll:f,draggable:t,destination:c,insideDestination:u,last:i.displaced,viewport:a,afterCritical:o})},UP=(e,t)=>({...e,[t.descriptor.id]:t});const JMe=({previousImpact:e,impact:t,droppables:r})=>{const n=ro(e),i=ro(t);if(!n||n===i)return r;const a=r[n];if(!a.subject.withPlaceholder)return r;const o=FMe(a);return UP(r,o)};var ZMe=({draggable:e,draggables:t,droppables:r,previousImpact:n,impact:i})=>{const a=JMe({previousImpact:n,impact:i,droppables:r}),o=ro(i);if(!o)return a;const s=r[o];if($p(e,s)||s.subject.withPlaceholder)return a;const l=IV(s,e,t);return UP(a,l)},mm=({state:e,clientSelection:t,dimensions:r,viewport:n,impact:i,scrollJumpRequest:a})=>{const o=n||e.viewport,s=r||e.dimensions,l=t||e.current.client.selection,c=Za(l,e.initial.client.selection),u={offset:c,selection:l,borderBoxCenter:Li(e.initial.client.borderBoxCenter,c)},f={selection:Li(u.selection,o.scroll.current),borderBoxCenter:Li(u.borderBoxCenter,o.scroll.current),offset:Li(u.offset,o.scroll.diff.value)},d={client:u,page:f};if(e.phase==="COLLECTING")return{...e,dimensions:s,viewport:o,current:d};const h=s.draggables[e.critical.draggable.id],v=i||FV({pageOffset:f.offset,draggable:h,draggables:s.draggables,droppables:s.droppables,previousImpact:e.impact,viewport:o,afterCritical:e.afterCritical}),p=ZMe({draggable:h,impact:v,previousImpact:e.impact,draggables:s.draggables,droppables:s.droppables});return{...e,current:d,dimensions:{draggables:s.draggables,droppables:p},impact:v,viewport:o,scrollJumpRequest:a||null,forceShouldAnimate:a?!1:null}};function QMe(e,t){return e.map(r=>t[r])}var $V=({impact:e,viewport:t,draggables:r,destination:n,forceShouldAnimate:i})=>{const a=e.displaced,o=QMe(a.all,r),s=Ig({afterDragging:o,destination:n,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:i,last:a});return{...e,displaced:s}},BV=({impact:e,draggable:t,droppable:r,draggables:n,viewport:i,afterCritical:a})=>{const o=_w({impact:e,draggable:t,draggables:n,droppable:r,afterCritical:a});return BP({pageBorderBoxCenter:o,draggable:t,viewport:i})},UV=({state:e,dimensions:t,viewport:r})=>{e.movementMode!=="SNAP"&&et();const n=e.impact,i=r||e.viewport,a=t||e.dimensions,{draggables:o,droppables:s}=a,l=o[e.critical.draggable.id],c=ro(n);c||et();const u=s[c],f=$V({impact:n,viewport:i,destination:u,draggables:o}),d=BV({impact:f,draggable:l,droppable:u,draggables:o,viewport:i,afterCritical:e.afterCritical});return mm({impact:f,clientSelection:d,state:e,dimensions:a,viewport:i})},eFe=e=>({index:e.index,droppableId:e.droppableId}),WV=({draggable:e,home:t,draggables:r,viewport:n})=>{const i=u1(t.axis,e.displaceBy),a=Fp(t.descriptor.id,r),o=a.indexOf(e);o===-1&&et();const s=a.slice(o+1),l=s.reduce((d,h)=>(d[h.descriptor.id]=!0,d),{}),c={inVirtualList:t.descriptor.mode==="virtual",displacedBy:i,effected:l};return{impact:{displaced:Ig({afterDragging:s,destination:t,displacedBy:i,last:null,viewport:n.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:eFe(e.descriptor)}},afterCritical:c}},tFe=(e,t)=>({draggables:e.draggables,droppables:UP(e.droppables,t)}),rFe=({draggable:e,offset:t,initialWindowScroll:r})=>{const n=v2(e.client,t),i=y2(n,r);return{...e,placeholder:{...e.placeholder,client:n},client:n,page:i}},nFe=e=>{const t=e.frame;return t||et(),t},iFe=({additions:e,updatedDroppables:t,viewport:r})=>{const n=r.scroll.diff.value;return e.map(i=>{const a=i.descriptor.droppableId,o=t[a],l=nFe(o).scroll.diff.value,c=Li(n,l);return rFe({draggable:i,offset:c,initialWindowScroll:r.scroll.initial})})},aFe=({state:e,published:t})=>{const r=t.modified.map(y=>{const x=e.dimensions.droppables[y.droppableId];return DP(x,y.scroll)}),n={...e.dimensions.droppables,...AV(r)},i=EV(iFe({additions:t.additions,updatedDroppables:n,viewport:e.viewport})),a={...e.dimensions.draggables,...i};t.removals.forEach(y=>{delete a[y]});const o={droppables:n,draggables:a},s=ro(e.impact),l=s?o.droppables[s]:null,c=o.draggables[e.critical.draggable.id],u=o.droppables[e.critical.droppable.id],{impact:f,afterCritical:d}=WV({draggable:c,home:u,draggables:a,viewport:e.viewport}),h=l&&l.isCombineEnabled?e.impact:f,v=FV({pageOffset:e.current.page.offset,draggable:o.draggables[e.critical.draggable.id],draggables:o.draggables,droppables:o.droppables,previousImpact:h,viewport:e.viewport,afterCritical:d}),p={...e,phase:"DRAGGING",impact:v,onLiftImpact:f,dimensions:o,afterCritical:d,forceShouldAnimate:!1};return e.phase==="COLLECTING"?p:{...p,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}};const y3=e=>e.movementMode==="SNAP",r_=(e,t,r)=>{const n=tFe(e.dimensions,t);return!y3(e)||r?mm({state:e,dimensions:n}):UV({state:e,dimensions:n})};function n_(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const vD={phase:"IDLE",completed:null,shouldFlush:!1};var oFe=(e=vD,t)=>{if(t.type==="FLUSH")return{...vD,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&et();const{critical:r,clientSelection:n,viewport:i,dimensions:a,movementMode:o}=t.payload,s=a.draggables[r.draggable.id],l=a.droppables[r.droppable.id],c={selection:n,borderBoxCenter:s.client.borderBox.center,offset:xi},u={client:c,page:{selection:Li(c.selection,i.scroll.initial),borderBoxCenter:Li(c.selection,i.scroll.initial),offset:Li(c.selection,i.scroll.diff.value)}},f=bw(a.droppables).every(p=>!p.isFixedOnPage),{impact:d,afterCritical:h}=WV({draggable:s,home:l,draggables:a.draggables,viewport:i});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:o,dimensions:a,initial:u,current:u,isWindowScrollAllowed:f,impact:d,afterCritical:h,onLiftImpact:d,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&et(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||et(),aFe({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Zu(e)||et();const{client:r}=t.payload;return iu(r,e.current.client.selection)?e:mm({state:e,clientSelection:r,impact:y3(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return n_(e);Zu(e)||et();const{id:r,newScroll:n}=t.payload,i=e.dimensions.droppables[r];if(!i)return e;const a=DP(i,n);return r_(e,a,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Zu(e)||et();const{id:r,isEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||et(),i.isEnabled===n&&et();const a={...i,isEnabled:n};return r_(e,a,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Zu(e)||et();const{id:r,isCombineEnabled:n}=t.payload,i=e.dimensions.droppables[r];i||et(),i.isCombineEnabled===n&&et();const a={...i,isCombineEnabled:n};return r_(e,a,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Zu(e)||et(),e.isWindowScrollAllowed||et();const r=t.payload.newScroll;if(iu(e.viewport.scroll.current,r))return n_(e);const n=kV(e.viewport,r);return y3(e)?UV({state:e,viewport:n}):mm({state:e,viewport:n})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Zu(e))return e;const r=t.payload.maxScroll;if(iu(r,e.viewport.scroll.max))return e;const n={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:n}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&et();const r=WMe({state:e,type:t.type});return r?mm({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const r=t.payload.reason;return e.phase!=="COLLECTING"&&et(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if(t.type==="DROP_ANIMATE"){const{completed:r,dropDuration:n,newHomeClientOffset:i}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||et(),{phase:"DROP_ANIMATING",completed:r,dropDuration:n,newHomeClientOffset:i,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:r}=t.payload;return{phase:"IDLE",completed:r,shouldFlush:!1}}return e};const sFe=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),lFe=e=>({type:"LIFT",payload:e}),cFe=e=>({type:"INITIAL_PUBLISH",payload:e}),uFe=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),fFe=()=>({type:"COLLECTION_STARTING",payload:null}),dFe=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),hFe=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),pFe=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),zV=e=>({type:"MOVE",payload:e}),mFe=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),gFe=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),vFe=()=>({type:"MOVE_UP",payload:null}),yFe=()=>({type:"MOVE_DOWN",payload:null}),xFe=()=>({type:"MOVE_RIGHT",payload:null}),bFe=()=>({type:"MOVE_LEFT",payload:null}),WP=()=>({type:"FLUSH",payload:null}),wFe=e=>({type:"DROP_ANIMATE",payload:e}),zP=e=>({type:"DROP_COMPLETE",payload:e}),HV=e=>({type:"DROP",payload:e}),SFe=e=>({type:"DROP_PENDING",payload:e}),VV=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var _Fe=e=>({getState:t,dispatch:r})=>n=>i=>{if(i.type!=="LIFT"){n(i);return}const{id:a,clientSelection:o,movementMode:s}=i.payload,l=t();l.phase==="DROP_ANIMATING"&&r(zP({completed:l.completed})),t().phase!=="IDLE"&&et(),r(WP()),r(sFe({draggableId:a,movementMode:s}));const u={draggableId:a,scrollOptions:{shouldPublishImmediately:s==="SNAP"}},{critical:f,dimensions:d,viewport:h}=e.startPublishing(u);r(cFe({critical:f,dimensions:d,clientSelection:o,movementMode:s,viewport:h}))},AFe=e=>()=>t=>r=>{r.type==="INITIAL_PUBLISH"&&e.dragging(),r.type==="DROP_ANIMATE"&&e.dropping(r.payload.completed.result.reason),(r.type==="FLUSH"||r.type==="DROP_COMPLETE")&&e.resting(),t(r)};const HP={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Dg={opacity:{drop:0,combining:.7},scale:{drop:.75}},GV={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Vu=`${GV.outOfTheWay}s ${HP.outOfTheWay}`,gm={fluid:`opacity ${Vu}`,snap:`transform ${Vu}, opacity ${Vu}`,drop:e=>{const t=`${e}s ${HP.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${Vu}`,placeholder:`height ${Vu}, width ${Vu}, margin ${Vu}`},yD=e=>iu(e,xi)?void 0:`translate(${e.x}px, ${e.y}px)`,x3={moveTo:yD,drop:(e,t)=>{const r=yD(e);if(r)return t?`${r} scale(${Dg.scale.drop})`:r}},{minDropTime:b3,maxDropTime:qV}=GV,EFe=qV-b3,xD=1500,NFe=.6;var PFe=({current:e,destination:t,reason:r})=>{const n=jg(e,t);if(n<=0)return b3;if(n>=xD)return qV;const i=n/xD,a=b3+EFe*i,o=r==="CANCEL"?a*NFe:a;return Number(o.toFixed(2))},TFe=({impact:e,draggable:t,dimensions:r,viewport:n,afterCritical:i})=>{const{draggables:a,droppables:o}=r,s=ro(e),l=s?o[s]:null,c=o[t.descriptor.droppableId],u=BV({impact:e,draggable:t,draggables:a,afterCritical:i,droppable:l||c,viewport:n});return Za(u,t.client.borderBox.center)},CFe=({draggables:e,reason:t,lastImpact:r,home:n,viewport:i,onLiftImpact:a})=>!r.at||t!=="DROP"?{impact:$V({draggables:e,impact:a,destination:n,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:r.at.type==="REORDER"?{impact:r,didDropInsideDroppable:!0}:{impact:{...r,displaced:Lg},didDropInsideDroppable:!0};const OFe=({getState:e,dispatch:t})=>r=>n=>{if(n.type!=="DROP"){r(n);return}const i=e(),a=n.payload.reason;if(i.phase==="COLLECTING"){t(SFe({reason:a}));return}if(i.phase==="IDLE")return;i.phase==="DROP_PENDING"&&i.isWaiting&&et(),i.phase==="DRAGGING"||i.phase==="DROP_PENDING"||et();const s=i.critical,l=i.dimensions,c=l.draggables[i.critical.draggable.id],{impact:u,didDropInsideDroppable:f}=CFe({reason:a,lastImpact:i.impact,afterCritical:i.afterCritical,onLiftImpact:i.onLiftImpact,home:i.dimensions.droppables[i.critical.droppable.id],viewport:i.viewport,draggables:i.dimensions.draggables}),d=f?RP(u):null,h=f?ww(u):null,v={index:s.draggable.index,droppableId:s.droppable.id},p={draggableId:c.descriptor.id,type:c.descriptor.type,source:v,reason:a,mode:i.movementMode,destination:d,combine:h},m=TFe({impact:u,draggable:c,dimensions:l,viewport:i.viewport,afterCritical:i.afterCritical}),y={critical:i.critical,afterCritical:i.afterCritical,result:p,impact:u};if(!(!iu(i.current.client.offset,m)||!!p.combine)){t(zP({completed:y}));return}const w=PFe({current:i.current.client.offset,destination:m,reason:a});t(wFe({newHomeClientOffset:m,dropDuration:w,completed:y}))};var kFe=OFe,KV=()=>({x:window.pageXOffset,y:window.pageYOffset});function jFe(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function LFe({onWindowScroll:e}){function t(){e(KV())}const r=kg(t),n=jFe(r);let i=nu;function a(){return i!==nu}function o(){a()&&et(),i=Co(window,[n])}function s(){a()||et(),r.cancel(),i(),i=nu}return{start:o,stop:s,isActive:a}}const IFe=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH",DFe=e=>{const t=LFe({onWindowScroll:r=>{e.dispatch(mFe({newScroll:r}))}});return r=>n=>{!t.isActive()&&n.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&IFe(n)&&t.stop(),r(n)}};var RFe=DFe,MFe=e=>{let t=!1,r=!1;const n=setTimeout(()=>{r=!0}),i=a=>{t||r||(t=!0,e(a),clearTimeout(n))};return i.wasCalled=()=>t,i},FFe=()=>{const e=[],t=i=>{const a=e.findIndex(s=>s.timerId===i);a===-1&&et();const[o]=e.splice(a,1);o.callback()};return{add:i=>{const a=setTimeout(()=>t(a)),o={timerId:a,callback:i};e.push(o)},flush:()=>{if(!e.length)return;const i=[...e];e.length=0,i.forEach(a=>{clearTimeout(a.timerId),a.callback()})}}};const $Fe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,BFe=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,UFe=(e,t)=>{if(e===t)return!0;const r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n},I0=(e,t)=>{t()},Wv=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function i_(e,t,r,n){if(!e){r(n(t));return}const i=MFe(r);e(t,{announce:i}),i.wasCalled()||r(n(t))}var WFe=(e,t)=>{const r=FFe();let n=null;const i=(f,d)=>{n&&et(),I0("onBeforeCapture",()=>{const h=e().onBeforeCapture;h&&h({draggableId:f,mode:d})})},a=(f,d)=>{n&&et(),I0("onBeforeDragStart",()=>{const h=e().onBeforeDragStart;h&&h(Wv(f,d))})},o=(f,d)=>{n&&et();const h=Wv(f,d);n={mode:d,lastCritical:f,lastLocation:h.source,lastCombine:null},r.add(()=>{I0("onDragStart",()=>i_(e().onDragStart,h,t,hy.onDragStart))})},s=(f,d)=>{const h=RP(d),v=ww(d);n||et();const p=!UFe(f,n.lastCritical);p&&(n.lastCritical=f);const m=!$Fe(n.lastLocation,h);m&&(n.lastLocation=h);const y=!BFe(n.lastCombine,v);if(y&&(n.lastCombine=v),!p&&!m&&!y)return;const x={...Wv(f,n.mode),combine:v,destination:h};r.add(()=>{I0("onDragUpdate",()=>i_(e().onDragUpdate,x,t,hy.onDragUpdate))})},l=()=>{n||et(),r.flush()},c=f=>{n||et(),n=null,I0("onDragEnd",()=>i_(e().onDragEnd,f,t,hy.onDragEnd))};return{beforeCapture:i,beforeStart:a,start:o,update:s,flush:l,drop:c,abort:()=>{if(!n)return;const f={...Wv(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"};c(f)}}},zFe=(e,t)=>{const r=WFe(e,t);return n=>i=>a=>{if(a.type==="BEFORE_INITIAL_CAPTURE"){r.beforeCapture(a.payload.draggableId,a.payload.movementMode);return}if(a.type==="INITIAL_PUBLISH"){const s=a.payload.critical;r.beforeStart(s,a.payload.movementMode),i(a),r.start(s,a.payload.movementMode);return}if(a.type==="DROP_COMPLETE"){const s=a.payload.completed.result;r.flush(),i(a),r.drop(s);return}if(i(a),a.type==="FLUSH"){r.abort();return}const o=n.getState();o.phase==="DRAGGING"&&r.update(o.critical,o.impact)}};const HFe=e=>t=>r=>{if(r.type!=="DROP_ANIMATION_FINISHED"){t(r);return}const n=e.getState();n.phase!=="DROP_ANIMATING"&&et(),e.dispatch(zP({completed:n.completed}))};var VFe=HFe;const GFe=e=>{let t=null,r=null;function n(){r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)}return i=>a=>{if((a.type==="FLUSH"||a.type==="DROP_COMPLETE"||a.type==="DROP_ANIMATION_FINISHED")&&n(),i(a),a.type!=="DROP_ANIMATE")return;const o={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(VV())}};r=requestAnimationFrame(()=>{r=null,t=Co(window,[o])})}};var qFe=GFe,KFe=e=>()=>t=>r=>{(r.type==="DROP_COMPLETE"||r.type==="FLUSH"||r.type==="DROP_ANIMATE")&&e.stopPublishing(),t(r)},XFe=e=>{let t=!1;return()=>r=>n=>{if(n.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),e.tryRestoreFocusRecorded();return}if(r(n),!!t){if(n.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(n.type==="DROP_COMPLETE"){t=!1;const i=n.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const YFe=e=>e.type==="DROP_COMPLETE"||e.type==="DROP_ANIMATE"||e.type==="FLUSH";var JFe=e=>t=>r=>n=>{if(YFe(n)){e.stop(),r(n);return}if(n.type==="INITIAL_PUBLISH"){r(n);const i=t.getState();i.phase!=="DRAGGING"&&et(),e.start(i);return}r(n),e.scroll(t.getState())};const ZFe=e=>t=>r=>{if(t(r),r.type!=="PUBLISH_WHILE_DRAGGING")return;const n=e.getState();n.phase==="DROP_PENDING"&&(n.isWaiting||e.dispatch(HV({reason:n.reason})))};var QFe=ZFe;const e7e=oV;var t7e=({dimensionMarshal:e,focusMarshal:t,styleMarshal:r,getResponders:n,announce:i,autoScroller:a})=>aV(oFe,e7e(nRe(AFe(r),KFe(e),_Fe(e),kFe,VFe,qFe,QFe,JFe(a),RFe,XFe(t),zFe(n,i))));const a_=()=>({additions:{},removals:{},modified:{}});function r7e({registry:e,callbacks:t}){let r=a_(),n=null;const i=()=>{n||(t.collectionStarting(),n=requestAnimationFrame(()=>{n=null;const{additions:l,removals:c,modified:u}=r,f=Object.keys(l).map(v=>e.draggable.getById(v).getDimension(xi)).sort((v,p)=>v.descriptor.index-p.descriptor.index),d=Object.keys(u).map(v=>{const m=e.droppable.getById(v).callbacks.getScrollWhileDragging();return{droppableId:v,scroll:m}}),h={additions:f,removals:Object.keys(c),modified:d};r=a_(),t.publish(h)}))};return{add:l=>{const c=l.descriptor.id;r.additions[c]=l,r.modified[l.descriptor.droppableId]=!0,r.removals[c]&&delete r.removals[c],i()},remove:l=>{const c=l.descriptor;r.removals[c.id]=!0,r.modified[c.droppableId]=!0,r.additions[c.id]&&delete r.additions[c.id],i()},stop:()=>{n&&(cancelAnimationFrame(n),n=null,r=a_())}}}var XV=({scrollHeight:e,scrollWidth:t,height:r,width:n})=>{const i=Za({x:t,y:e},{x:n,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},YV=()=>{const e=document.documentElement;return e||et(),e},JV=()=>{const e=YV();return XV({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},n7e=()=>{const e=KV(),t=JV(),r=e.y,n=e.x,i=YV(),a=i.clientWidth,o=i.clientHeight,s=n+a,l=r+o;return{frame:cs({top:r,left:n,right:s,bottom:l}),scroll:{initial:e,current:e,max:t,diff:{value:xi,displacement:xi}}}},i7e=({critical:e,scrollOptions:t,registry:r})=>{const n=n7e(),i=n.scroll.current,a=e.droppable,o=r.droppable.getAllByType(a.type).map(u=>u.callbacks.getDimensionAndWatchScroll(i,t)),s=r.draggable.getAllByType(e.draggable.type).map(u=>u.getDimension(i));return{dimensions:{draggables:EV(s),droppables:AV(o)},critical:e,viewport:n}};function bD(e,t,r){return!(r.descriptor.id===t.id||r.descriptor.type!==t.type||e.droppable.getById(r.descriptor.droppableId).descriptor.mode!=="virtual")}var a7e=(e,t)=>{let r=null;const n=r7e({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=(d,h)=>{e.droppable.exists(d)||et(),r&&t.updateDroppableIsEnabled({id:d,isEnabled:h})},a=(d,h)=>{r&&(e.droppable.exists(d)||et(),t.updateDroppableIsCombineEnabled({id:d,isCombineEnabled:h}))},o=(d,h)=>{r&&(e.droppable.exists(d)||et(),t.updateDroppableScroll({id:d,newScroll:h}))},s=(d,h)=>{r&&e.droppable.getById(d).callbacks.scroll(h)},l=()=>{if(!r)return;n.stop();const d=r.critical.droppable;e.droppable.getAllByType(d.type).forEach(h=>h.callbacks.dragStopped()),r.unsubscribe(),r=null},c=d=>{r||et();const h=r.critical.draggable;d.type==="ADDITION"&&bD(e,h,d.value)&&n.add(d.value),d.type==="REMOVAL"&&bD(e,h,d.value)&&n.remove(d.value)};return{updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:a,scrollDroppable:s,updateDroppableScroll:o,startPublishing:d=>{r&&et();const h=e.draggable.getById(d.draggableId),v=e.droppable.getById(h.descriptor.droppableId),p={draggable:h.descriptor,droppable:v.descriptor},m=e.subscribe(c);return r={critical:p,unsubscribe:m},i7e({critical:p,registry:e,scrollOptions:d.scrollOptions})},stopPublishing:l}},ZV=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",o7e=e=>{window.scrollBy(e.x,e.y)};const s7e=yi(e=>bw(e).filter(t=>!(!t.isEnabled||!t.frame))),l7e=(e,t)=>s7e(t).find(n=>(n.frame||et(),DV(n.frame.pageMarginBox)(e)))||null;var c7e=({center:e,destination:t,droppables:r})=>{if(t){const i=r[t];return i.frame?i:null}return l7e(e,r)};const Rg={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var u7e=(e,t,r=()=>Rg)=>{const n=r(),i=e[t.size]*n.startFromPercentage,a=e[t.size]*n.maxScrollAtPercentage;return{startScrollingFrom:i,maxScrollValueAt:a}},QV=({startOfRange:e,endOfRange:t,current:r})=>{const n=t-e;return n===0?0:(r-e)/n},VP=1,f7e=(e,t,r=()=>Rg)=>{const n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return VP;const a=1-QV({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),o=n.maxPixelScroll*n.ease(a);return Math.ceil(o)},d7e=(e,t,r)=>{const n=r(),i=n.durationDampening.accelerateAt,a=n.durationDampening.stopDampeningAt,o=t,s=a,c=Date.now()-o;if(c>=a)return e;if(c<i)return VP;const u=QV({startOfRange:i,endOfRange:s,current:c}),f=e*n.ease(u);return Math.ceil(f)},wD=({distanceToEdge:e,thresholds:t,dragStartTime:r,shouldUseTimeDampening:n,getAutoScrollerOptions:i})=>{const a=f7e(e,t,i);return a===0?0:n?Math.max(d7e(a,r,i),VP):a},SD=({container:e,distanceToEdges:t,dragStartTime:r,axis:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const o=u7e(e,n,a);return t[n.end]<t[n.start]?wD({distanceToEdge:t[n.end],thresholds:o,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a}):-1*wD({distanceToEdge:t[n.start],thresholds:o,dragStartTime:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a})},h7e=({container:e,subject:t,proposedScroll:r})=>{const n=t.height>e.height,i=t.width>e.width;return!i&&!n?r:i&&n?null:{x:i?0:r.x,y:n?0:r.y}};const p7e=_V(e=>e===0?0:e);var eG=({dragStartTime:e,container:t,subject:r,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const o={top:n.y-t.top,right:t.right-n.x,bottom:t.bottom-n.y,left:n.x-t.left},s=SD({container:t,distanceToEdges:o,dragStartTime:e,axis:MP,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),l=SD({container:t,distanceToEdges:o,dragStartTime:e,axis:TV,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),c=p7e({x:l,y:s});if(iu(c,xi))return null;const u=h7e({container:t,subject:r,proposedScroll:c});return u?iu(u,xi)?null:u:null};const m7e=_V(e=>e===0?0:e>0?1:-1),GP=(()=>{const e=(t,r)=>t<0?t:t>r?t-r:0;return({current:t,max:r,change:n})=>{const i=Li(t,n),a={x:e(i.x,r.x),y:e(i.y,r.y)};return iu(a,xi)?null:a}})(),tG=({max:e,current:t,change:r})=>{const n={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},i=m7e(r),a=GP({max:n,current:t,change:i});return!a||i.x!==0&&a.x===0||i.y!==0&&a.y===0},qP=(e,t)=>tG({current:e.scroll.current,max:e.scroll.max,change:t}),g7e=(e,t)=>{if(!qP(e,t))return null;const r=e.scroll.max,n=e.scroll.current;return GP({current:n,max:r,change:t})},KP=(e,t)=>{const r=e.frame;return r?tG({current:r.scroll.current,max:r.scroll.max,change:t}):!1},v7e=(e,t)=>{const r=e.frame;return!r||!KP(e,t)?null:GP({current:r.scroll.current,max:r.scroll.max,change:t})};var y7e=({viewport:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const o=eG({dragStartTime:n,container:e.frame,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return o&&qP(e,o)?o:null},x7e=({droppable:e,subject:t,center:r,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})=>{const o=e.frame;if(!o)return null;const s=eG({dragStartTime:n,container:o.pageMarginBox,subject:t,center:r,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return s&&KP(e,s)?s:null},_D=({state:e,dragStartTime:t,shouldUseTimeDampening:r,scrollWindow:n,scrollDroppable:i,getAutoScrollerOptions:a})=>{const o=e.current.page.borderBoxCenter,l=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const f=e.viewport,d=y7e({dragStartTime:t,viewport:f,subject:l,center:o,shouldUseTimeDampening:r,getAutoScrollerOptions:a});if(d){n(d);return}}const c=c7e({center:o,destination:ro(e.impact),droppables:e.dimensions.droppables});if(!c)return;const u=x7e({dragStartTime:t,droppable:c,subject:l,center:o,shouldUseTimeDampening:r,getAutoScrollerOptions:a});u&&i(c.descriptor.id,u)},b7e=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:r=()=>Rg})=>{const n=kg(e),i=kg(t);let a=null;const o=c=>{a||et();const{shouldUseTimeDampening:u,dragStartTime:f}=a;_D({state:c,scrollWindow:n,scrollDroppable:i,dragStartTime:f,shouldUseTimeDampening:u,getAutoScrollerOptions:r})};return{start:c=>{a&&et();const u=Date.now();let f=!1;const d=()=>{f=!0};_D({state:c,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:d,scrollDroppable:d,getAutoScrollerOptions:r}),a={dragStartTime:u,shouldUseTimeDampening:f},f&&o(c)},stop:()=>{a&&(n.cancel(),i.cancel(),a=null)},scroll:o}},w7e=({move:e,scrollDroppable:t,scrollWindow:r})=>{const n=(s,l)=>{const c=Li(s.current.client.selection,l);e({client:c})},i=(s,l)=>{if(!KP(s,l))return l;const c=v7e(s,l);if(!c)return t(s.descriptor.id,l),null;const u=Za(l,c);return t(s.descriptor.id,u),Za(l,u)},a=(s,l,c)=>{if(!s||!qP(l,c))return c;const u=g7e(l,c);if(!u)return r(c),null;const f=Za(c,u);return r(f),Za(c,f)};return s=>{const l=s.scrollJumpRequest;if(!l)return;const c=ro(s.impact);c||et();const u=i(s.dimensions.droppables[c],l);if(!u)return;const f=s.viewport,d=a(s.isWindowScrollAllowed,f,u);d&&n(s,d)}},S7e=({scrollDroppable:e,scrollWindow:t,move:r,getAutoScrollerOptions:n})=>{const i=b7e({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:n}),a=w7e({move:r,scrollWindow:t,scrollDroppable:e});return{scroll:l=>{if(!(n().disabled||l.phase!=="DRAGGING")){if(l.movementMode==="FLUID"){i.scroll(l);return}l.scrollJumpRequest&&a(l)}},start:i.start,stop:i.stop}};const sp="data-rfd",lp=(()=>{const e=`${sp}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),w3=(()=>{const e=`${sp}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),_7e=(()=>{const e=`${sp}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),AD={contextId:`${sp}-scroll-container-context-id`},A7e=e=>t=>`[${t}="${e}"]`,D0=(e,t)=>e.map(r=>{const n=r.styles[t];return n?`${r.selector} { ${n} }`:""}).join(" "),E7e="pointer-events: none;";var N7e=e=>{const t=A7e(e),r=(()=>{const s=` cursor: -webkit-grab; cursor: grab; `;return{selector:t(lp.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; `,resting:s,dragging:E7e,dropAnimating:s}}})(),n=(()=>{const s=` transition: ${gm.outOfTheWay}; `;return{selector:t(w3.contextId),styles:{dragging:s,dropAnimating:s,userCancel:s}}})(),i={selector:t(_7e.contextId),styles:{always:"overflow-anchor: none;"}},o=[n,r,i,{selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; `}}];return{always:D0(o,"always"),resting:D0(o,"resting"),dragging:D0(o,"dragging"),dropAnimating:D0(o,"dropAnimating"),userCancel:D0(o,"userCancel")}};const P7e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;var no=P7e;const o_=()=>{const e=document.querySelector("head");return e||et(),e},ED=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function T7e(e,t){const r=sr(()=>N7e(e),[e]),n=E.useRef(null),i=E.useRef(null),a=_t(yi(f=>{const d=i.current;d||et(),d.textContent=f}),[]),o=_t(f=>{const d=n.current;d||et(),d.textContent=f},[]);no(()=>{!n.current&&!i.current||et();const f=ED(t),d=ED(t);return n.current=f,i.current=d,f.setAttribute(`${sp}-always`,e),d.setAttribute(`${sp}-dynamic`,e),o_().appendChild(f),o_().appendChild(d),o(r.always),a(r.resting),()=>{const h=v=>{const p=v.current;p||et(),o_().removeChild(p),v.current=null};h(n),h(i)}},[t,o,a,r.always,r.resting,e]);const s=_t(()=>a(r.dragging),[a,r.dragging]),l=_t(f=>{if(f==="DROP"){a(r.dropAnimating);return}a(r.userCancel)},[a,r.dropAnimating,r.userCancel]),c=_t(()=>{i.current&&a(r.resting)},[a,r.resting]);return sr(()=>({dragging:s,dropping:l,resting:c}),[s,l,c])}function rG(e,t){return Array.from(e.querySelectorAll(t))}var nG=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Aw(e){return e instanceof nG(e).HTMLElement}function C7e(e,t){const r=`[${lp.contextId}="${e}"]`,n=rG(document,r);if(!n.length)return null;const i=n.find(a=>a.getAttribute(lp.draggableId)===t);return!i||!Aw(i)?null:i}function O7e(e){const t=E.useRef({}),r=E.useRef(null),n=E.useRef(null),i=E.useRef(!1),a=_t(function(d,h){const v={id:d,focus:h};return t.current[d]=v,function(){const m=t.current;m[d]!==v&&delete m[d]}},[]),o=_t(function(d){const h=C7e(e,d);h&&h!==document.activeElement&&h.focus()},[e]),s=_t(function(d,h){r.current===d&&(r.current=h)},[]),l=_t(function(){n.current||i.current&&(n.current=requestAnimationFrame(()=>{n.current=null;const d=r.current;d&&o(d)}))},[o]),c=_t(function(d){r.current=null;const h=document.activeElement;h&&h.getAttribute(lp.draggableId)===d&&(r.current=d)},[]);return no(()=>(i.current=!0,function(){i.current=!1;const d=n.current;d&&cancelAnimationFrame(d)}),[]),sr(()=>({register:a,tryRecordFocus:c,tryRestoreFocusRecorded:l,tryShiftRecord:s}),[a,c,l,s])}function k7e(){const e={draggables:{},droppables:{}},t=[];function r(f){return t.push(f),function(){const h=t.indexOf(f);h!==-1&&t.splice(h,1)}}function n(f){t.length&&t.forEach(d=>d(f))}function i(f){return e.draggables[f]||null}function a(f){const d=i(f);return d||et(),d}const o={register:f=>{e.draggables[f.descriptor.id]=f,n({type:"ADDITION",value:f})},update:(f,d)=>{const h=e.draggables[d.descriptor.id];h&&h.uniqueId===f.uniqueId&&(delete e.draggables[d.descriptor.id],e.draggables[f.descriptor.id]=f)},unregister:f=>{const d=f.descriptor.id,h=i(d);h&&f.uniqueId===h.uniqueId&&(delete e.draggables[d],e.droppables[f.descriptor.droppableId]&&n({type:"REMOVAL",value:f}))},getById:a,findById:i,exists:f=>!!i(f),getAllByType:f=>Object.values(e.draggables).filter(d=>d.descriptor.type===f)};function s(f){return e.droppables[f]||null}function l(f){const d=s(f);return d||et(),d}const c={register:f=>{e.droppables[f.descriptor.id]=f},unregister:f=>{const d=s(f.descriptor.id);d&&f.uniqueId===d.uniqueId&&delete e.droppables[f.descriptor.id]},getById:l,findById:s,exists:f=>!!s(f),getAllByType:f=>Object.values(e.droppables).filter(d=>d.descriptor.type===f)};function u(){e.draggables={},e.droppables={},t.length=0}return{draggable:o,droppable:c,subscribe:r,clean:u}}function j7e(){const e=sr(k7e,[]);return E.useEffect(()=>function(){ge.version.startsWith("16")||ge.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}var XP=ge.createContext(null),S2=()=>{const e=document.body;return e||et(),e};const L7e={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};var I7e=L7e;const D7e=e=>`rfd-announcement-${e}`;function R7e(e){const t=sr(()=>D7e(e),[e]),r=E.useRef(null);return E.useEffect(function(){const a=document.createElement("div");return r.current=a,a.id=t,a.setAttribute("aria-live","assertive"),a.setAttribute("aria-atomic","true"),tu(a.style,I7e),S2().appendChild(a),function(){setTimeout(function(){const l=S2();l.contains(a)&&l.removeChild(a),a===r.current&&(r.current=null)})}},[t]),_t(i=>{const a=r.current;if(a){a.textContent=i;return}},[])}let M7e=0;const iG={separator:"::"};function F7e(e,t=iG){return sr(()=>`${e}${t.separator}${M7e++}`,[t.separator,e])}function $7e(e,t=iG){const r=ge.useId();return sr(()=>`${e}${t.separator}${r}`,[t.separator,e,r])}var YP="useId"in ge?$7e:F7e;function B7e({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function U7e({contextId:e,text:t}){const r=YP("hidden-text",{separator:"-"}),n=sr(()=>B7e({contextId:e,uniqueId:r}),[r,e]);return E.useEffect(function(){const a=document.createElement("div");return a.id=n,a.textContent=t,a.style.display="none",S2().appendChild(a),function(){const s=S2();s.contains(a)&&s.removeChild(a)}},[n,t]),n}var Ew=ge.createContext(null);function aG(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),t}function W7e(){let e=null;function t(){return!!e}function r(o){return o===e}function n(o){e&&et();const s={abandon:o};return e=s,s}function i(){e||et(),e=null}function a(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:r,claim:n,release:i,tryAbandon:a}}function Mg(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const z7e=9,H7e=13,JP=27,oG=32,V7e=33,G7e=34,q7e=35,K7e=36,X7e=37,Y7e=38,J7e=39,Z7e=40,Q7e={[H7e]:!0,[z7e]:!0};var sG=e=>{Q7e[e.keyCode]&&e.preventDefault()};const e$e=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(n=>`on${n}`in document)||e})();var Nw=e$e;const lG=0,ND=5;function t$e(e,t){return Math.abs(t.x-e.x)>=ND||Math.abs(t.y-e.y)>=ND}const PD={type:"IDLE"};function r$e({cancel:e,completed:t,getPhase:r,setPhase:n}){return[{eventName:"mousemove",fn:i=>{const{button:a,clientX:o,clientY:s}=i;if(a!==lG)return;const l={x:o,y:s},c=r();if(c.type==="DRAGGING"){i.preventDefault(),c.actions.move(l);return}c.type!=="PENDING"&&et();const u=c.point;if(!t$e(u,l))return;i.preventDefault();const f=c.actions.fluidLift(l);n({type:"DRAGGING",actions:f})}},{eventName:"mouseup",fn:i=>{const a=r();if(a.type!=="DRAGGING"){e();return}i.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:i=>{r().type==="DRAGGING"&&i.preventDefault(),e()}},{eventName:"keydown",fn:i=>{if(r().type==="PENDING"){e();return}if(i.keyCode===JP){i.preventDefault(),e();return}sG(i)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{r().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:i=>{const a=r();if(a.type==="IDLE"&&et(),a.actions.shouldRespectForcePress()){e();return}i.preventDefault()}},{eventName:Nw,fn:e}]}function n$e(e){const t=E.useRef(PD),r=E.useRef(nu),n=sr(()=>({eventName:"mousedown",fn:function(f){if(f.defaultPrevented||f.button!==lG||f.ctrlKey||f.metaKey||f.shiftKey||f.altKey)return;const d=e.findClosestDraggableId(f);if(!d)return;const h=e.tryGetLock(d,o,{sourceEvent:f});if(!h)return;f.preventDefault();const v={x:f.clientX,y:f.clientY};r.current(),c(h,v)}}),[e]),i=sr(()=>({eventName:"webkitmouseforcewillbegin",fn:u=>{if(u.defaultPrevented)return;const f=e.findClosestDraggableId(u);if(!f)return;const d=e.findOptionsForDraggable(f);d&&(d.shouldRespectForcePress||e.canGetLock(f)&&u.preventDefault())}}),[e]),a=_t(function(){const f={passive:!1,capture:!0};r.current=Co(window,[i,n],f)},[i,n]),o=_t(()=>{t.current.type!=="IDLE"&&(t.current=PD,r.current(),a())},[a]),s=_t(()=>{const u=t.current;o(),u.type==="DRAGGING"&&u.actions.cancel({shouldBlockNextClick:!0}),u.type==="PENDING"&&u.actions.abort()},[o]),l=_t(function(){const f={capture:!0,passive:!1},d=r$e({cancel:s,completed:o,getPhase:()=>t.current,setPhase:h=>{t.current=h}});r.current=Co(window,d,f)},[s,o]),c=_t(function(f,d){t.current.type!=="IDLE"&&et(),t.current={type:"PENDING",point:d,actions:f},l()},[l]);no(function(){return a(),function(){r.current()}},[a])}function i$e(){}const a$e={[G7e]:!0,[V7e]:!0,[K7e]:!0,[q7e]:!0};function o$e(e,t){function r(){t(),e.cancel()}function n(){t(),e.drop()}return[{eventName:"keydown",fn:i=>{if(i.keyCode===JP){i.preventDefault(),r();return}if(i.keyCode===oG){i.preventDefault(),n();return}if(i.keyCode===Z7e){i.preventDefault(),e.moveDown();return}if(i.keyCode===Y7e){i.preventDefault(),e.moveUp();return}if(i.keyCode===J7e){i.preventDefault(),e.moveRight();return}if(i.keyCode===X7e){i.preventDefault(),e.moveLeft();return}if(a$e[i.keyCode]){i.preventDefault();return}sG(i)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:Nw,fn:r}]}function s$e(e){const t=E.useRef(i$e),r=sr(()=>({eventName:"keydown",fn:function(a){if(a.defaultPrevented||a.keyCode!==oG)return;const o=e.findClosestDraggableId(a);if(!o)return;const s=e.tryGetLock(o,u,{sourceEvent:a});if(!s)return;a.preventDefault();let l=!0;const c=s.snapLift();t.current();function u(){l||et(),l=!1,t.current(),n()}t.current=Co(window,o$e(c,u),{capture:!0,passive:!1})}}),[e]),n=_t(function(){const a={passive:!1,capture:!0};t.current=Co(window,[r],a)},[r]);no(function(){return n(),function(){t.current()}},[n])}const s_={type:"IDLE"},l$e=120,c$e=.15;function u$e({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:r=>{r.preventDefault()}},{eventName:"keydown",fn:r=>{if(t().type!=="DRAGGING"){e();return}r.keyCode===JP&&r.preventDefault(),e()}},{eventName:Nw,fn:e}]}function f$e({cancel:e,completed:t,getPhase:r}){return[{eventName:"touchmove",options:{capture:!1},fn:n=>{const i=r();if(i.type!=="DRAGGING"){e();return}i.hasMoved=!0;const{clientX:a,clientY:o}=n.touches[0],s={x:a,y:o};n.preventDefault(),i.actions.move(s)}},{eventName:"touchend",fn:n=>{const i=r();if(i.type!=="DRAGGING"){e();return}n.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:n=>{if(r().type!=="DRAGGING"){e();return}n.preventDefault(),e()}},{eventName:"touchforcechange",fn:n=>{const i=r();i.type==="IDLE"&&et();const a=n.touches[0];if(!a||!(a.force>=c$e))return;const s=i.actions.shouldRespectForcePress();if(i.type==="PENDING"){s&&e();return}if(s){if(i.hasMoved){n.preventDefault();return}e();return}n.preventDefault()}},{eventName:Nw,fn:e}]}function d$e(e){const t=E.useRef(s_),r=E.useRef(nu),n=_t(function(){return t.current},[]),i=_t(function(h){t.current=h},[]),a=sr(()=>({eventName:"touchstart",fn:function(h){if(h.defaultPrevented)return;const v=e.findClosestDraggableId(h);if(!v)return;const p=e.tryGetLock(v,s,{sourceEvent:h});if(!p)return;const m=h.touches[0],{clientX:y,clientY:x}=m,w={x:y,y:x};r.current(),f(p,w)}}),[e]),o=_t(function(){const h={capture:!0,passive:!1};r.current=Co(window,[a],h)},[a]),s=_t(()=>{const d=t.current;d.type!=="IDLE"&&(d.type==="PENDING"&&clearTimeout(d.longPressTimerId),i(s_),r.current(),o())},[o,i]),l=_t(()=>{const d=t.current;s(),d.type==="DRAGGING"&&d.actions.cancel({shouldBlockNextClick:!0}),d.type==="PENDING"&&d.actions.abort()},[s]),c=_t(function(){const h={capture:!0,passive:!1},v={cancel:l,completed:s,getPhase:n},p=Co(window,f$e(v),h),m=Co(window,u$e(v),h);r.current=function(){p(),m()}},[l,n,s]),u=_t(function(){const h=n();h.type!=="PENDING"&&et();const v=h.actions.fluidLift(h.point);i({type:"DRAGGING",actions:v,hasMoved:!1})},[n,i]),f=_t(function(h,v){n().type!=="IDLE"&&et();const p=setTimeout(u,l$e);i({type:"PENDING",point:v,actions:h,longPressTimerId:p}),c()},[c,n,i,u]);no(function(){return o(),function(){r.current();const v=n();v.type==="PENDING"&&(clearTimeout(v.longPressTimerId),i(s_))}},[n,o,i]),no(function(){return Co(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const h$e=["input","button","textarea","select","option","optgroup","video","audio"];function cG(e,t){if(t==null)return!1;if(h$e.includes(t.tagName.toLowerCase()))return!0;const n=t.getAttribute("contenteditable");return n==="true"||n===""?!0:t===e?!1:cG(e,t.parentElement)}function p$e(e,t){const r=t.target;return Aw(r)?cG(e,r):!1}var m$e=e=>cs(e.getBoundingClientRect()).center;function g$e(e){return e instanceof nG(e).Element}const v$e=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(n=>n in Element.prototype)||e})();function uG(e,t){return e==null?null:e[v$e](t)?e:uG(e.parentElement,t)}function y$e(e,t){return e.closest?e.closest(t):uG(e,t)}function x$e(e){return`[${lp.contextId}="${e}"]`}function b$e(e,t){const r=t.target;if(!g$e(r))return null;const n=x$e(e),i=y$e(r,n);return!i||!Aw(i)?null:i}function w$e(e,t){const r=b$e(e,t);return r?r.getAttribute(lp.draggableId):null}function S$e(e,t){const r=`[${w3.contextId}="${e}"]`,i=rG(document,r).find(a=>a.getAttribute(w3.id)===t);return!i||!Aw(i)?null:i}function _$e(e){e.preventDefault()}function zv({expected:e,phase:t,isLockActive:r,shouldWarn:n}){return!(!r()||e!==t)}function fG({lockAPI:e,store:t,registry:r,draggableId:n}){if(e.isClaimed())return!1;const i=r.draggable.findById(n);return!(!i||!i.options.isEnabled||!ZV(t.getState(),n))}function A$e({lockAPI:e,contextId:t,store:r,registry:n,draggableId:i,forceSensorStop:a,sourceEvent:o}){if(!fG({lockAPI:e,store:r,registry:n,draggableId:i}))return null;const l=n.draggable.getById(i),c=S$e(t,l.descriptor.id);if(!c||o&&!l.options.canDragInteractiveElements&&p$e(c,o))return null;const u=e.claim(a||nu);let f="PRE_DRAG";function d(){return l.options.shouldRespectForcePress}function h(){return e.isActive(u)}function v(A,N){zv({expected:A,phase:f,isLockActive:h,shouldWarn:!0})&&r.dispatch(N())}const p=v.bind(null,"DRAGGING");function m(A){function N(){e.release(),f="COMPLETED"}f!=="PRE_DRAG"&&(N(),et()),r.dispatch(lFe(A.liftActionArgs)),f="DRAGGING";function P(j,C={shouldBlockNextClick:!1}){if(A.cleanup(),C.shouldBlockNextClick){const R=Co(window,[{eventName:"click",fn:_$e,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(R)}N(),r.dispatch(HV({reason:j}))}return{isActive:()=>zv({expected:"DRAGGING",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:d,drop:j=>P("DROP",j),cancel:j=>P("CANCEL",j),...A.actions}}function y(A){const N=kg(j=>{p(()=>zV({client:j}))});return{...m({liftActionArgs:{id:i,clientSelection:A,movementMode:"FLUID"},cleanup:()=>N.cancel(),actions:{move:N}}),move:N}}function x(){const A={moveUp:()=>p(vFe),moveRight:()=>p(xFe),moveDown:()=>p(yFe),moveLeft:()=>p(bFe)};return m({liftActionArgs:{id:i,clientSelection:m$e(c),movementMode:"SNAP"},cleanup:nu,actions:A})}function w(){zv({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!0})&&e.release()}return{isActive:()=>zv({expected:"PRE_DRAG",phase:f,isLockActive:h,shouldWarn:!1}),shouldRespectForcePress:d,fluidLift:y,snapLift:x,abort:w}}const E$e=[n$e,s$e,d$e];function N$e({contextId:e,store:t,registry:r,customSensors:n,enableDefaultSensors:i}){const a=[...i?E$e:[],...n||[]],o=E.useState(()=>W7e())[0],s=_t(function(m,y){Mg(m)&&!Mg(y)&&o.tryAbandon()},[o]);no(function(){let m=t.getState();return t.subscribe(()=>{const x=t.getState();s(m,x),m=x})},[o,t,s]),no(()=>o.tryAbandon,[o.tryAbandon]);const l=_t(p=>fG({lockAPI:o,registry:r,store:t,draggableId:p}),[o,r,t]),c=_t((p,m,y)=>A$e({lockAPI:o,registry:r,contextId:e,store:t,draggableId:p,forceSensorStop:m||null,sourceEvent:y&&y.sourceEvent?y.sourceEvent:null}),[e,o,r,t]),u=_t(p=>w$e(e,p),[e]),f=_t(p=>{const m=r.draggable.findById(p);return m?m.options:null},[r.draggable]),d=_t(function(){o.isClaimed()&&(o.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(WP()))},[o,t]),h=_t(()=>o.isClaimed(),[o]),v=sr(()=>({canGetLock:l,tryGetLock:c,findClosestDraggableId:u,findOptionsForDraggable:f,tryReleaseLock:d,isLockClaimed:h}),[l,c,u,f,d,h]);for(let p=0;p<a.length;p++)a[p](v)}const P$e=e=>({onBeforeCapture:t=>{const r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};ge.version.startsWith("16")||ge.version.startsWith("17")?r():Yl.flushSync(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),T$e=e=>({...Rg,...e.autoScrollerOptions,durationDampening:{...Rg.durationDampening,...e.autoScrollerOptions}});function R0(e){return e.current||et(),e.current}function C$e(e){const{contextId:t,setCallbacks:r,sensors:n,nonce:i,dragHandleUsageInstructions:a}=e,o=E.useRef(null),s=aG(e),l=_t(()=>P$e(s.current),[s]),c=_t(()=>T$e(s.current),[s]),u=R7e(t),f=U7e({contextId:t,text:a}),d=T7e(t,i),h=_t(R=>{R0(o).dispatch(R)},[]),v=sr(()=>JI({publishWhileDragging:uFe,updateDroppableScroll:dFe,updateDroppableIsEnabled:hFe,updateDroppableIsCombineEnabled:pFe,collectionStarting:fFe},h),[h]),p=j7e(),m=sr(()=>a7e(p,v),[p,v]),y=sr(()=>S7e({scrollWindow:o7e,scrollDroppable:m.scrollDroppable,getAutoScrollerOptions:c,...JI({move:zV},h)}),[m.scrollDroppable,h,c]),x=O7e(t),w=sr(()=>t7e({announce:u,autoScroller:y,dimensionMarshal:m,focusMarshal:x,getResponders:l,styleMarshal:d}),[u,y,m,x,l,d]);o.current=w;const S=_t(()=>{const R=R0(o);R.getState().phase!=="IDLE"&&R.dispatch(WP())},[]),A=_t(()=>{const R=R0(o).getState();return R.phase==="DROP_ANIMATING"?!0:R.phase==="IDLE"?!1:R.isDragging},[]),N=sr(()=>({isDragging:A,tryAbort:S}),[A,S]);r(N);const P=_t(R=>ZV(R0(o).getState(),R),[]),j=_t(()=>Zu(R0(o).getState()),[]),C=sr(()=>({marshal:m,focus:x,contextId:t,canLift:P,isMovementAllowed:j,dragHandleUsageInstructionsId:f,registry:p}),[t,m,f,x,P,j,p]);return N$e({contextId:t,store:w,registry:p,customSensors:n||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),E.useEffect(()=>S,[S]),ge.createElement(Ew.Provider,{value:C},ge.createElement(URe,{context:XP,store:w},e.children))}let O$e=0;function k$e(){return sr(()=>`${O$e++}`,[])}function j$e(){return ge.useId()}var L$e="useId"in ge?j$e:k$e;function dG(e){const t=L$e(),r=e.dragHandleUsageInstructions||hy.dragHandleUsageInstructions;return ge.createElement(YRe,null,n=>ge.createElement(C$e,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const TD={dragging:5e3,dropAnimating:4500},I$e=(e,t)=>t?gm.drop(t.duration):e?gm.snap:gm.fluid,D$e=(e,t)=>{if(e)return t?Dg.opacity.drop:Dg.opacity.combining},R$e=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function M$e(e){const r=e.dimension.client,{offset:n,combineWith:i,dropping:a}=e,o=!!i,s=R$e(e),l=!!a,c=l?x3.drop(n,o):x3.moveTo(n);return{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:I$e(s,a),transform:c,opacity:D$e(o,l),zIndex:l?TD.dropAnimating:TD.dragging,pointerEvents:"none"}}function F$e(e){return{transform:x3.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function $$e(e){return e.type==="DRAGGING"?M$e(e):F$e(e)}function B$e(e,t,r=xi){const n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=yV(i,n),o=y2(a,r),s={client:a,tagName:t.tagName.toLowerCase(),display:n.display},l={x:a.marginBox.width,y:a.marginBox.height};return{descriptor:e,placeholder:s,displaceBy:l,client:a,page:o}}function U$e(e){const t=YP("draggable"),{descriptor:r,registry:n,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:s}=e,l=sr(()=>({canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:s}),[a,s,o]),c=_t(h=>{const v=i();return v||et(),B$e(r,v,h)},[r,i]),u=sr(()=>({uniqueId:t,descriptor:r,options:l,getDimension:c}),[r,c,l,t]),f=E.useRef(u),d=E.useRef(!0);no(()=>(n.draggable.register(f.current),()=>n.draggable.unregister(f.current)),[n.draggable]),no(()=>{if(d.current){d.current=!1;return}const h=f.current;f.current=u,n.draggable.update(u,h)},[u,n.draggable])}var ZP=ge.createContext(null);function _2(e){const t=E.useContext(e);return t||et(),t}function W$e(e){e.preventDefault()}const z$e=e=>{const t=E.useRef(null),r=_t((N=null)=>{t.current=N},[]),n=_t(()=>t.current,[]),{contextId:i,dragHandleUsageInstructionsId:a,registry:o}=_2(Ew),{type:s,droppableId:l}=_2(ZP),c=sr(()=>({id:e.draggableId,index:e.index,type:s,droppableId:l}),[e.draggableId,e.index,s,l]),{children:u,draggableId:f,isEnabled:d,shouldRespectForcePress:h,canDragInteractiveElements:v,isClone:p,mapped:m,dropAnimationFinished:y}=e;if(!p){const N=sr(()=>({descriptor:c,registry:o,getDraggableRef:n,canDragInteractiveElements:v,shouldRespectForcePress:h,isEnabled:d}),[c,o,n,v,h,d]);U$e(N)}const x=sr(()=>d?{tabIndex:0,role:"button","aria-describedby":a,"data-rfd-drag-handle-draggable-id":f,"data-rfd-drag-handle-context-id":i,draggable:!1,onDragStart:W$e}:null,[i,a,f,d]),w=_t(N=>{m.type==="DRAGGING"&&m.dropping&&N.propertyName==="transform"&&(ge.version.startsWith("16")||ge.version.startsWith("17")?y():Yl.flushSync(y))},[y,m]),S=sr(()=>{const N=$$e(m),P=m.type==="DRAGGING"&&m.dropping?w:void 0;return{innerRef:r,draggableProps:{"data-rfd-draggable-context-id":i,"data-rfd-draggable-id":f,style:N,onTransitionEnd:P},dragHandleProps:x}},[i,x,f,m,w,r]),A=sr(()=>({draggableId:c.id,type:c.type,source:{index:c.index,droppableId:c.droppableId}}),[c.droppableId,c.id,c.index,c.type]);return ge.createElement(ge.Fragment,null,u(S,m.snapshot,A))};var H$e=z$e,hG=(e,t)=>e===t,pG=e=>{const{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};const V$e=e=>e.combine?e.combine.draggableId:null,G$e=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function q$e(){const e=yi((i,a)=>({x:i,y:a})),t=yi((i,a,o=null,s=null,l=null)=>({isDragging:!0,isClone:a,isDropAnimating:!!l,dropAnimation:l,mode:i,draggingOver:o,combineWith:s,combineTargetFor:null})),r=yi((i,a,o,s,l=null,c=null,u=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:l,combineWith:c,mode:a,offset:i,dimension:o,forceShouldAnimate:u,snapshot:t(a,s,l,c,null)}}));return(i,a)=>{if(Mg(i)){if(i.critical.draggable.id!==a.draggableId)return null;const o=i.current.client.offset,s=i.dimensions.draggables[a.draggableId],l=ro(i.impact),c=G$e(i.impact),u=i.forceShouldAnimate;return r(e(o.x,o.y),i.movementMode,s,a.isClone,l,c,u)}if(i.phase==="DROP_ANIMATING"){const o=i.completed;if(o.result.draggableId!==a.draggableId)return null;const s=a.isClone,l=i.dimensions.draggables[a.draggableId],c=o.result,u=c.mode,f=pG(c),d=V$e(c),v={duration:i.dropDuration,curve:HP.drop,moveTo:i.newHomeClientOffset,opacity:d?Dg.opacity.drop:null,scale:d?Dg.scale.drop:null};return{mapped:{type:"DRAGGING",offset:i.newHomeClientOffset,dimension:l,dropping:v,draggingOver:f,combineWith:d,mode:u,forceShouldAnimate:null,snapshot:t(u,s,f,d,v)}}}return null}}function mG(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const K$e={mapped:{type:"SECONDARY",offset:xi,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:mG(null)}};function X$e(){const e=yi((o,s)=>({x:o,y:s})),t=yi(mG),r=yi((o,s=null,l)=>({mapped:{type:"SECONDARY",offset:o,combineTargetFor:s,shouldAnimateDisplacement:l,snapshot:t(s)}})),n=o=>o?r(xi,o,!0):null,i=(o,s,l,c)=>{const u=l.displaced.visible[o],f=!!(c.inVirtualList&&c.effected[o]),d=ww(l),h=d&&d.draggableId===o?s:null;if(!u){if(!f)return n(h);if(l.displaced.invisible[o])return null;const m=Mp(c.displacedBy.point),y=e(m.x,m.y);return r(y,h,!0)}if(f)return n(h);const v=l.displacedBy.point,p=e(v.x,v.y);return r(p,h,u.shouldAnimate)};return(o,s)=>{if(Mg(o))return o.critical.draggable.id===s.draggableId?null:i(s.draggableId,o.critical.draggable.id,o.impact,o.afterCritical);if(o.phase==="DROP_ANIMATING"){const l=o.completed;return l.result.draggableId===s.draggableId?null:i(s.draggableId,l.result.draggableId,l.impact,l.afterCritical)}return null}}const Y$e=()=>{const e=q$e(),t=X$e();return(n,i)=>e(n,i)||t(n,i)||K$e},J$e={dropAnimationFinished:VV},Z$e=gV(Y$e,J$e,null,{context:XP,areStatePropsEqual:hG})(H$e);var Q$e=Z$e;function gG(e){return _2(ZP).isUsingCloneFor===e.draggableId&&!e.isClone?null:ge.createElement(Q$e,e)}function vG(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,n=!!e.shouldRespectForcePress;return ge.createElement(gG,tu({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}const yG=e=>t=>e===t,eBe=yG("scroll"),tBe=yG("auto"),CD=(e,t)=>t(e.overflowX)||t(e.overflowY),rBe=e=>{const t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return CD(r,eBe)||CD(r,tBe)},nBe=()=>!1,xG=e=>e==null?null:e===document.body?nBe()?e:null:e===document.documentElement?null:rBe(e)?e:xG(e.parentElement);var S3=e=>({x:e.scrollLeft,y:e.scrollTop});const bG=e=>e?window.getComputedStyle(e).position==="fixed"?!0:bG(e.parentElement):!1;var iBe=e=>{const t=xG(e),r=bG(e);return{closestScrollable:t,isFixedOnPage:r}},aBe=({descriptor:e,isEnabled:t,isCombineEnabled:r,isFixedOnPage:n,direction:i,client:a,page:o,closest:s})=>{const l=(()=>{if(!s)return null;const{scrollSize:d,client:h}=s,v=XV({scrollHeight:d.scrollHeight,scrollWidth:d.scrollWidth,height:h.paddingBox.height,width:h.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:h,scrollSize:d,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:v,diff:{value:xi,displacement:xi}}}})(),c=i==="vertical"?MP:TV,u=op({page:o,withPlaceholder:null,axis:c,frame:l});return{descriptor:e,isCombineEnabled:r,isFixedOnPage:n,axis:c,isEnabled:t,client:a,page:o,frame:l,subject:u}};const oBe=(e,t)=>{const r=xV(e);if(!t||e!==t)return r;const n=r.paddingBox.top-t.scrollTop,i=r.paddingBox.left-t.scrollLeft,a=n+t.scrollHeight,o=i+t.scrollWidth,l=LP({top:n,right:o,bottom:a,left:i},r.border);return IP({borderBox:l,margin:r.margin,border:r.border,padding:r.padding})};var sBe=({ref:e,descriptor:t,env:r,windowScroll:n,direction:i,isDropDisabled:a,isCombineEnabled:o,shouldClipSubject:s})=>{const l=r.closestScrollable,c=oBe(e,l),u=y2(c,n),f=(()=>{if(!l)return null;const h=xV(l),v={scrollHeight:l.scrollHeight,scrollWidth:l.scrollWidth};return{client:h,page:y2(h,n),scroll:S3(l),scrollSize:v,shouldClipSubject:s}})();return aBe({descriptor:t,isEnabled:!a,isCombineEnabled:o,isFixedOnPage:r.isFixedOnPage,direction:i,client:c,page:u,closest:f})};const lBe={passive:!1},cBe={passive:!0};var OD=e=>e.shouldPublishImmediately?lBe:cBe;const Hv=e=>e&&e.env.closestScrollable||null;function uBe(e){const t=E.useRef(null),r=_2(Ew),n=YP("droppable"),{registry:i,marshal:a}=r,o=aG(e),s=sr(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),l=E.useRef(s),c=sr(()=>yi((S,A)=>{t.current||et();const N={x:S,y:A};a.updateDroppableScroll(s.id,N)}),[s.id,a]),u=_t(()=>{const S=t.current;return!S||!S.env.closestScrollable?xi:S3(S.env.closestScrollable)},[]),f=_t(()=>{const S=u();c(S.x,S.y)},[u,c]),d=sr(()=>kg(f),[f]),h=_t(()=>{const S=t.current,A=Hv(S);if(S&&A||et(),S.scrollOptions.shouldPublishImmediately){f();return}d()},[d,f]),v=_t((S,A)=>{t.current&&et();const N=o.current,P=N.getDroppableRef();P||et();const j=iBe(P),C={ref:P,descriptor:s,env:j,scrollOptions:A};t.current=C;const R=sBe({ref:P,descriptor:s,env:j,windowScroll:S,direction:N.direction,isDropDisabled:N.isDropDisabled,isCombineEnabled:N.isCombineEnabled,shouldClipSubject:!N.ignoreContainerClipping}),L=j.closestScrollable;return L&&(L.setAttribute(AD.contextId,r.contextId),L.addEventListener("scroll",h,OD(C.scrollOptions))),R},[r.contextId,s,h,o]),p=_t(()=>{const S=t.current,A=Hv(S);return S&&A||et(),S3(A)},[]),m=_t(()=>{const S=t.current;S||et();const A=Hv(S);t.current=null,A&&(d.cancel(),A.removeAttribute(AD.contextId),A.removeEventListener("scroll",h,OD(S.scrollOptions)))},[h,d]),y=_t(S=>{const A=t.current;A||et();const N=Hv(A);N||et(),N.scrollTop+=S.y,N.scrollLeft+=S.x},[]),x=sr(()=>({getDimensionAndWatchScroll:v,getScrollWhileDragging:p,dragStopped:m,scroll:y}),[m,v,p,y]),w=sr(()=>({uniqueId:n,descriptor:s,callbacks:x}),[x,s,n]);no(()=>(l.current=w.descriptor,i.droppable.register(w),()=>{t.current&&m(),i.droppable.unregister(w)}),[x,s,m,w,a,i.droppable]),no(()=>{t.current&&a.updateDroppableIsEnabled(l.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),no(()=>{t.current&&a.updateDroppableIsCombineEnabled(l.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function l_(){}const kD={width:0,height:0,margin:nMe},fBe=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>e||r==="close"?kD:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},dBe=({isAnimatingOpenOnMount:e,placeholder:t,animate:r})=>{const n=fBe({isAnimatingOpenOnMount:e,placeholder:t,animate:r});return{display:t.display,boxSizing:"border-box",width:n.width,height:n.height,marginTop:n.margin.top,marginRight:n.margin.right,marginBottom:n.margin.bottom,marginLeft:n.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:r!=="none"?gm.placeholder:null}},hBe=e=>{const t=E.useRef(null),r=_t(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:n,onTransitionEnd:i,onClose:a,contextId:o}=e,[s,l]=E.useState(e.animate==="open");E.useEffect(()=>s?n!=="open"?(r(),l(!1),l_):t.current?l_:(t.current=setTimeout(()=>{t.current=null,l(!1)}),r):l_,[n,s,r]);const c=_t(f=>{f.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),u=dBe({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return ge.createElement(e.placeholder.tagName,{style:u,"data-rfd-placeholder-context-id":o,onTransitionEnd:c,ref:e.innerRef})};var pBe=ge.memo(hBe);class mBe extends ge.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,r){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:r.isVisible?{isVisible:!0,data:r.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const gBe=e=>{const t=E.useContext(Ew);t||et();const{contextId:r,isMovementAllowed:n}=t,i=E.useRef(null),a=E.useRef(null),{children:o,droppableId:s,type:l,mode:c,direction:u,ignoreContainerClipping:f,isDropDisabled:d,isCombineEnabled:h,snapshot:v,useClone:p,updateViewportMaxScroll:m,getContainerForClone:y}=e,x=_t(()=>i.current,[]),w=_t((L=null)=>{i.current=L},[]);_t(()=>a.current,[]);const S=_t((L=null)=>{a.current=L},[]),A=_t(()=>{n()&&m({maxScroll:JV()})},[n,m]);uBe({droppableId:s,type:l,mode:c,direction:u,isDropDisabled:d,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:x});const N=sr(()=>ge.createElement(mBe,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:L,data:I,animate:B})=>ge.createElement(pBe,{placeholder:I,onClose:L,innerRef:S,animate:B,contextId:r,onTransitionEnd:A})),[r,A,e.placeholder,e.shouldAnimatePlaceholder,S]),P=sr(()=>({innerRef:w,placeholder:N,droppableProps:{"data-rfd-droppable-id":s,"data-rfd-droppable-context-id":r}}),[r,s,N,w]),j=p?p.dragging.draggableId:null,C=sr(()=>({droppableId:s,type:l,isUsingCloneFor:j}),[s,j,l]);function R(){if(!p)return null;const{dragging:L,render:I}=p,B=ge.createElement(gG,{draggableId:L.draggableId,index:L.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(z,V)=>I(z,V,L));return QM.createPortal(B,y())}return ge.createElement(ZP.Provider,{value:C},o(P,v),R())};var vBe=gBe;function yBe(){return document.body||et(),document.body}const jD={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:yBe},wG=e=>{let t={...e},r;for(r in jD)e[r]===void 0&&(t={...t,[r]:jD[r]});return t},c_=(e,t)=>e===t.droppable.type,LD=(e,t)=>t.draggables[e.draggable.id],xBe=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=yi(a=>({draggableId:a.id,type:a.type,source:{index:a.index,droppableId:a.droppableId}})),n=yi((a,o,s,l,c,u)=>{const f=c.descriptor.id;if(c.descriptor.droppableId===a){const v=u?{render:u,dragging:r(c.descriptor)}:null,p={isDraggingOver:s,draggingOverWith:s?f:null,draggingFromThisWith:f,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!1,snapshot:p,useClone:v}}if(!o)return t;if(!l)return e;const h={isDraggingOver:s,draggingOverWith:f,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:c.placeholder,shouldAnimatePlaceholder:!0,snapshot:h,useClone:null}});return(a,o)=>{const s=wG(o),l=s.droppableId,c=s.type,u=!s.isDropDisabled,f=s.renderClone;if(Mg(a)){const d=a.critical;if(!c_(c,d))return t;const h=LD(d,a.dimensions),v=ro(a.impact)===l;return n(l,u,v,v,h,f)}if(a.phase==="DROP_ANIMATING"){const d=a.completed;if(!c_(c,d.critical))return t;const h=LD(d.critical,a.dimensions);return n(l,u,pG(d.result)===l,ro(d.impact)===l,h,f)}if(a.phase==="IDLE"&&a.completed&&!a.shouldFlush){const d=a.completed;if(!c_(c,d.critical))return t;const h=ro(d.impact)===l,v=!!(d.impact.at&&d.impact.at.type==="COMBINE"),p=d.critical.droppable.id===l;return h?v?e:t:p?e:t}return t}},bBe={updateViewportMaxScroll:gFe},wBe=gV(xBe,bBe,(e,t,r)=>({...wG(r),...e,...t}),{context:XP,areStatePropsEqual:hG})(vBe);var SG=wBe;const ID=[{id:"new",title:"Baru",color:"bg-blue-500",lightColor:"bg-blue-50",textColor:"text-blue-600"},{id:"contacted",title:"Dihubungi",color:"bg-yellow-500",lightColor:"bg-yellow-50",textColor:"text-yellow-600"},{id:"follow_up",title:"Follow Up",color:"bg-yellow-500",lightColor:"bg-yellow-50",textColor:"text-yellow-600"},{id:"interested",title:"Minat",color:"bg-indigo-500",lightColor:"bg-indigo-50",textColor:"text-indigo-600"},{id:"registered",title:"Terdaftar",color:"bg-green-500",lightColor:"bg-green-50",textColor:"text-green-600"},{id:"enrolled",title:"Daftar Ulang",color:"bg-green-500",lightColor:"bg-green-50",textColor:"text-green-600"}];function SBe(){const e=xu(),{leads:t,fetchLeads:r,updateLead:n}=V2(),[i,a]=E.useState({});E.useEffect(()=>{r()},[]),E.useEffect(()=>{const s={};ID.forEach(l=>{s[l.id]=t.filter(c=>c.status===l.id)}),a(s)},[t]);const o=async s=>{if(!s.destination)return;const{source:l,destination:c,draggableId:u}=s;if(l.droppableId===c.droppableId)return;const f=t.find(d=>d.id===parseInt(u));f&&(await n(f.id,{...f,status:c.droppableId}),r())};return g.jsxs("div",{className:"p-6 h-[calc(100vh-4rem)] flex flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between mb-6",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-3xl font-bold text-slate-800",children:"Pipeline"}),g.jsx("p",{className:"text-slate-500 mt-1",children:"Drag and drop leads antar tahapan"})]}),g.jsxs(Qt,{size:"sm",className:"bg-blue-600 hover:bg-blue-700",children:[g.jsx(wf,{className:"w-4 h-4 mr-2"}),"Tambah Lead"]})]}),g.jsx("div",{className:"flex-1 overflow-hidden",children:g.jsx(dG,{onDragEnd:o,children:g.jsx("div",{className:"flex gap-5 h-full overflow-x-auto pb-4",children:ID.map(s=>{var l;return g.jsxs("div",{className:"flex-shrink-0 w-80 flex flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-3 mb-3 bg-white rounded-xl border border-slate-200 shadow-sm",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("span",{className:`w-3 h-3 rounded-full ${s.color}`}),g.jsx("span",{className:"font-semibold text-slate-800 text-base",children:s.title})]}),g.jsx("div",{className:"flex items-center gap-2",children:g.jsx("span",{className:`text-sm px-3 py-1 rounded-lg ${s.lightColor} ${s.textColor} font-semibold`,children:((l=i[s.id])==null?void 0:l.length)||0})})]}),g.jsx("div",{className:"flex-1 overflow-y-auto",children:g.jsx(SG,{droppableId:s.id,children:(c,u)=>{var f;return g.jsxs("div",{ref:c.innerRef,...c.droppableProps,className:`space-y-3 min-h-[200px] rounded-xl p-3 transition-all ${u.isDraggingOver?`${s.lightColor} border-2 border-dashed ${s.textColor}/30`:"bg-slate-100/50"}`,children:[(f=i[s.id])==null?void 0:f.map((d,h)=>g.jsx(vG,{draggableId:String(d.id),index:h,children:(v,p)=>g.jsxs("div",{ref:v.innerRef,...v.draggableProps,...v.dragHandleProps,className:`group bg-white border border-slate-200 rounded-xl p-4 cursor-pointer transition-all duration-200 ${p.isDragging?"shadow-lg ring-2 ring-blue-400 rotate-2 scale-105":"hover:border-slate-300 hover:shadow-md"}`,onClick:()=>e(`/leads/${d.id}`),children:[g.jsx("div",{className:"flex items-start justify-between mb-3",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(OF,{className:"w-5 h-5 text-slate-300 cursor-grab"}),g.jsx("h4",{className:"font-semibold text-slate-800 text-base",children:d.name})]})}),d.program&&g.jsxs("p",{className:"text-sm text-slate-600 mb-2 flex items-center gap-2",children:[g.jsx(PF,{className:"w-4 h-4 text-slate-400"}),d.program]}),d.school&&g.jsxs("p",{className:"text-sm text-slate-500 mb-3 flex items-center gap-2",children:[g.jsx("span",{className:"text-lg",children:"🏫"}),d.school]}),g.jsxs("div",{className:"flex items-center justify-between mt-4 pt-3 border-t border-slate-100",children:[d.next_follow_up&&g.jsxs("p",{className:`text-sm flex items-center gap-1.5 ${new Date(d.next_follow_up)<new Date?"text-red-500":"text-slate-500"}`,children:[g.jsx(TF,{className:"w-4 h-4"}),new Date(d.next_follow_up).toLocaleDateString("id-ID",{day:"numeric",month:"short"})]}),d.phone&&g.jsxs("a",{href:`https://wa.me/${d.phone}`,target:"_blank",rel:"noopener noreferrer",onClick:m=>m.stopPropagation(),className:"flex items-center gap-1.5 px-3 py-1.5 bg-green-500 hover:bg-green-600 text-white rounded-lg text-sm font-medium transition-colors",children:[g.jsx(LF,{className:"w-4 h-4"}),"WA"]})]})]})},d.id)),c.placeholder]})}})})]},s.id)})})})})]})}const u_=[{id:"todo",title:"To Do",color:"bg-slate-400",lightColor:"bg-slate-50",textColor:"text-slate-600"},{id:"in_progress",title:"Sedang Dikerjakan",color:"bg-blue-500",lightColor:"bg-blue-50",textColor:"text-blue-600"},{id:"done",title:"Selesai",color:"bg-green-500",lightColor:"bg-green-50",textColor:"text-green-600"}],_Be=[{value:"low",label:"Rendah"},{value:"medium",label:"Sedang"},{value:"high",label:"Tinggi"}],DD={low:{label:"Rendah",color:"bg-slate-100 text-slate-600 border-slate-200"},medium:{label:"Sedang",color:"bg-blue-50 text-blue-600 border-blue-200"},high:{label:"Tinggi",color:"bg-red-50 text-red-600 border-red-200"}};function ABe(){const{tasks:e,fetchTasks:t,createTask:r,updateTask:n,deleteTask:i}=aZ(),[a,o]=E.useState({}),[s,l]=E.useState(!1),[c,u]=E.useState(null),[f,d]=E.useState({title:"",description:"",priority:"medium",status:"todo",due_date:""});E.useEffect(()=>{t()},[]),E.useEffect(()=>{const w={};u_.forEach(S=>{w[S.id]=e.filter(A=>A.status===S.id)}),o(w)},[e]);const h=async w=>{if(!w.destination)return;const{source:S,destination:A,draggableId:N}=w;if(S.droppableId===A.droppableId)return;const P=e.find(j=>j.id===parseInt(N));P&&(await n(P.id,{...P,status:A.droppableId}),t())},v=async()=>{c?await n(c.id,f):await r(f),l(!1),u(null),d({title:"",description:"",priority:"medium",status:"todo",due_date:""}),t()},p=w=>{u(w),d({...w}),l(!0)},m=async w=>{window.confirm("Apakah Anda yakin ingin menghapus task ini?")&&(await i(w),t())},y=w=>{const S=DD[w]||DD.medium;return g.jsx("span",{className:`inline-flex items-center px-3 py-1.5 text-sm font-medium rounded-lg border ${S.color}`,children:S.label})},x=w=>{switch(w){case"done":return g.jsx(Oh,{className:"w-5 h-5 text-green-500"});case"in_progress":return g.jsx(kh,{className:"w-5 h-5 text-blue-500"});default:return g.jsx(pZ,{className:"w-5 h-5 text-slate-400"})}};return g.jsxs("div",{className:"p-6 h-[calc(100vh-4rem)] flex flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between mb-6",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-3xl font-bold text-slate-800",children:"Tasks"}),g.jsx("p",{className:"text-slate-500 mt-1",children:"Kelola tugas dengan Kanban board"})]}),g.jsxs(Qt,{onClick:()=>l(!0),className:"bg-blue-600 hover:bg-blue-700",children:[g.jsx(wf,{className:"w-5 h-5 mr-2"}),"Tambah Task"]})]}),g.jsx("div",{className:"flex-1 overflow-hidden",children:g.jsx(dG,{onDragEnd:h,children:g.jsx("div",{className:"flex gap-5 h-full overflow-x-auto pb-4",children:u_.map(w=>{var S;return g.jsxs("div",{className:"flex-shrink-0 w-80 flex flex-col",children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-3 mb-3 bg-white rounded-xl border border-slate-200 shadow-sm",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[x(w.id),g.jsx("span",{className:"font-semibold text-slate-800 text-base",children:w.title})]}),g.jsx("div",{className:"flex items-center gap-2",children:g.jsx("span",{"className-3":!0,"py-":`text-sm px1 rounded-lg ${w.lightColor} ${w.textColor} font-semibold`,children:((S=a[w.id])==null?void 0:S.length)||0})})]}),g.jsx("div",{className:"flex-1 overflow-y-auto",children:g.jsx(SG,{droppableId:w.id,children:(A,N)=>{var P;return g.jsxs("div",{ref:A.innerRef,...A.droppableProps,className:`space-y-3 min-h-[200px] rounded-xl p-3 transition-all ${N.isDraggingOver?`${w.lightColor} border-2 border-dashed ${w.textColor}/30`:"bg-slate-100/50"}`,children:[(P=a[w.id])==null?void 0:P.map((j,C)=>g.jsx(vG,{draggableId:String(j.id),index:C,children:(R,L)=>g.jsxs("div",{ref:R.innerRef,...R.draggableProps,...R.dragHandleProps,className:`group bg-white border border-slate-200 rounded-xl p-4 transition-all duration-200 ${L.isDragging?"shadow-lg ring-2 ring-blue-400 rotate-2 scale-105":"hover:border-slate-300 hover:shadow-md"}`,children:[g.jsx("div",{className:"flex items-start justify-between mb-3",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(OF,{className:"w-5 h-5 text-slate-300 cursor-grab"}),g.jsx("h4",{className:"font-semibold text-slate-800 text-base",children:j.title})]})}),j.description&&g.jsx("p",{className:"text-sm text-slate-500 mb-4 line-clamp-2 ml-7",children:j.description}),g.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-slate-100",children:[y(j.priority),j.due_date&&g.jsxs("span",{className:`text-sm flex items-center gap-1.5 ${new Date(j.due_date)<new Date?"text-red-500":"text-slate-500"}`,children:[g.jsx(TF,{className:"w-4 h-4"}),Ch(j.due_date)]})]}),g.jsxs("div",{className:"flex items-center gap-2 mt-3 pt-3 border-t border-slate-100",children:[g.jsxs("button",{onClick:()=>p(j),className:"flex-1 flex items-center justify-center gap-2 py-2 bg-blue-50 hover:bg-blue-100 text-blue-600 rounded-lg text-sm font-medium transition-colors",children:[g.jsx(Mm,{className:"w-4 h-4"}),"Edit"]}),g.jsxs("button",{onClick:()=>m(j.id),className:"flex-1 flex items-center justify-center gap-2 py-2 bg-red-50 hover:bg-red-100 text-red-600 rounded-lg text-sm font-medium transition-colors",children:[g.jsx(zg,{className:"w-4 h-4"}),"Hapus"]})]})]})},j.id)),A.placeholder]})}})})]},w.id)})})})}),g.jsx(ip,{open:s,onOpenChange:l,children:g.jsxs(If,{className:"max-w-md",children:[g.jsx(Df,{children:g.jsx(Mf,{children:c?"Edit Task":"Tambah Task Baru"})}),g.jsxs("div",{className:"space-y-4 py-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Judul *"}),g.jsx(Xt,{value:f.title,onChange:w=>d({...f,title:w.target.value}),placeholder:"Judul task"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Deskripsi"}),g.jsx("textarea",{className:"input min-h-[80px]",value:f.description,onChange:w=>d({...f,description:w.target.value}),placeholder:"Deskripsi task..."})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Prioritas"}),g.jsxs(jn,{value:f.priority,onValueChange:w=>d({...f,priority:w}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:_Be.map(w=>g.jsx(Vr,{value:w.value,children:w.label},w.value))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Status"}),g.jsxs(jn,{value:f.status,onValueChange:w=>d({...f,status:w}),children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:u_.map(w=>g.jsx(Vr,{value:w.id,children:w.title},w.id))})]})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Tanggal Jatuh Tempo"}),g.jsx(Xt,{type:"date",value:f.due_date,onChange:w=>d({...f,due_date:w.target.value})})]})]}),g.jsxs(Rf,{children:[g.jsx(Qt,{variant:"secondary",onClick:()=>l(!1),children:"Batal"}),g.jsxs(Qt,{onClick:v,children:[c?"Simpan":"Tambah"," Task"]})]})]})})]})}const RD=["#5E6AD2","#8B5CF6","#10B981","#F59E0B","#EF4444","#06B6D4","#71717A"],EBe={new:"New",contacted:"Contacted",follow_up:"Follow Up",interested:"Interested",registered:"Registered",enrolled:"Enrolled",lost:"Lost"},NBe=[{key:"totalLeads",label:"Total Leads",icon:Sf,color:"from-primary to-primary-light",bgColor:"bg-primary/10"},{key:"conversionRate",label:"Conversion Rate",icon:EZ,color:"from-success to-success-light",bgColor:"bg-success/10",suffix:"%"},{key:"hotLeads",label:"Hot Leads",icon:EE,color:"from-danger to-danger-light",bgColor:"bg-danger/10"},{key:"lostRate",label:"Lost Rate",icon:PE,color:"from-warning to-warning-light",bgColor:"bg-warning/10",suffix:"%"}];function PBe(){var a,o,s;const{stats:e,fetchStats:t,isLoading:r}=_F();E.useEffect(()=>{t()},[]);const n=()=>{e&&qDe(e)},i=()=>{e&&KDe(e)};return r||!e?g.jsx("div",{className:"flex items-center justify-center h-96",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx("div",{className:"w-8 h-8 border-2 border-primary/30 border-t-primary rounded-full animate-spin"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Loading reports..."})]})}):g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:"Reports"}),g.jsx("p",{className:"text-sm text-text-muted mt-1",children:"Analytics and performance metrics"})]}),g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsxs(Qt,{variant:"secondary",size:"sm",onClick:i,children:[g.jsx($l,{className:"w-4 h-4 mr-2"}),"Export PDF"]}),g.jsxs(Qt,{variant:"secondary",size:"sm",onClick:n,children:[g.jsx(_E,{className:"w-4 h-4 mr-2"}),"Export Excel"]})]})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:NBe.map((l,c)=>g.jsxs("div",{className:"card p-5 animate-slide-up",style:{animationDelay:`${c*50}ms`},children:[g.jsx("div",{className:"flex items-start justify-between",children:g.jsx("div",{className:`p-2.5 rounded-xl ${l.bgColor}`,children:g.jsx(l.icon,{className:`w-5 h-5 text-${l.color.split(" ")[0].replace("from-","")}`})})}),g.jsxs("div",{className:"mt-4",children:[g.jsxs("p",{className:"text-3xl font-bold text-foreground",children:[l.key==="conversionRate"||l.key==="lostRate"?e[l.key]:e.totalLeads||0,l.suffix||""]}),g.jsx("p",{className:"text-sm text-text-muted mt-1",children:l.label})]})]},l.key))}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[g.jsxs("div",{className:"card p-6 animate-slide-up",style:{animationDelay:"200ms"},children:[g.jsxs("div",{className:"mb-6",children:[g.jsx("h3",{className:"font-semibold text-foreground",children:"Lead Status Distribution"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Leads by status"})]}),g.jsx("div",{className:"h-72",children:g.jsx(ih,{width:"100%",height:"100%",children:g.jsxs(Ux,{data:((a=e.byStatus)==null?void 0:a.map(l=>({name:EBe[l.status]||l.status,value:l.count})))||[],layout:"vertical",children:[g.jsx(yg,{strokeDasharray:"3 3",stroke:"#27272A",horizontal:!0,vertical:!1}),g.jsx(Tf,{type:"number",tick:{fontSize:11,fill:"#71717A"},axisLine:!1,tickLine:!1}),g.jsx(Cf,{dataKey:"name",type:"category",tick:{fontSize:11,fill:"#A1A1AA"},width:90,axisLine:!1,tickLine:!1}),g.jsx(ca,{contentStyle:{backgroundColor:"#27272A",border:"1px solid #3F3F46",borderRadius:"12px",padding:"12px"},labelStyle:{color:"#FAFAFA"},itemStyle:{color:"#A1A1AA"}}),g.jsx(Gs,{dataKey:"value",fill:"#5E6AD2",radius:[0,6,6,0]})]})})})]}),g.jsxs("div",{className:"card p-6 animate-slide-up",style:{animationDelay:"250ms"},children:[g.jsxs("div",{className:"mb-6",children:[g.jsx("h3",{className:"font-semibold text-foreground",children:"Lead Sources"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Distribution by source"})]}),g.jsx("div",{className:"h-72 flex items-center justify-center",children:g.jsx(ih,{width:"100%",height:"100%",children:g.jsxs(E9,{children:[g.jsx(Ys,{data:((o=e.bySource)==null?void 0:o.map(l=>({name:l.source||"Unknown",value:l.count})))||[],cx:"50%",cy:"50%",innerRadius:50,outerRadius:90,paddingAngle:3,dataKey:"value",children:(e.bySource||[]).map((l,c)=>g.jsx(Kg,{fill:RD[c%RD.length]},`cell-${c}`))}),g.jsx(ca,{contentStyle:{backgroundColor:"#27272A",border:"1px solid #3F3F46",borderRadius:"12px",padding:"12px"},labelStyle:{color:"#FAFAFA"},itemStyle:{color:"#A1A1AA"}}),g.jsx(Zc,{verticalAlign:"bottom",height:36,formatter:l=>g.jsx("span",{className:"text-xs text-text-muted",children:l})})]})})})]})]}),g.jsxs("div",{className:"card p-6 animate-slide-up",style:{animationDelay:"300ms"},children:[g.jsxs("div",{className:"mb-6",children:[g.jsx("h3",{className:"font-semibold text-foreground",children:"Program Interest"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Most popular programs"})]}),g.jsx("div",{className:"h-72",children:g.jsx(ih,{width:"100%",height:"100%",children:g.jsxs(Ux,{data:((s=e.byProgram)==null?void 0:s.map(l=>({name:l.program||"Unknown",value:l.count})))||[],children:[g.jsx(yg,{strokeDasharray:"3 3",stroke:"#27272A",vertical:!1}),g.jsx(Tf,{dataKey:"name",tick:{fontSize:11,fill:"#71717A"},axisLine:!1,tickLine:!1}),g.jsx(Cf,{tick:{fontSize:11,fill:"#71717A"},axisLine:!1,tickLine:!1}),g.jsx(ca,{contentStyle:{backgroundColor:"#27272A",border:"1px solid #3F3F46",borderRadius:"12px",padding:"12px"},labelStyle:{color:"#FAFAFA"},itemStyle:{color:"#A1A1AA"}}),g.jsx(Gs,{dataKey:"value",fill:"#10B981",radius:[6,6,0,0]})]})})})]}),g.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 animate-slide-up",style:{animationDelay:"350ms"},children:[g.jsxs("div",{className:"card p-4 text-center",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-info/10 flex items-center justify-center mx-auto mb-3",children:g.jsx(Sf,{className:"w-5 h-5 text-info"})}),g.jsx("p",{className:"text-2xl font-bold text-foreground",children:e.newLeads||0}),g.jsx("p",{className:"text-sm text-text-muted",children:"New Leads"})]}),g.jsxs("div",{className:"card p-4 text-center",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-success/10 flex items-center justify-center mx-auto mb-3",children:g.jsx(Oh,{className:"w-5 h-5 text-success"})}),g.jsx("p",{className:"text-2xl font-bold text-foreground",children:e.registered||0}),g.jsx("p",{className:"text-sm text-text-muted",children:"Registered"})]}),g.jsxs("div",{className:"card p-4 text-center",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center mx-auto mb-3",children:g.jsx(Fm,{className:"w-5 h-5 text-primary"})}),g.jsx("p",{className:"text-2xl font-bold text-foreground",children:e.enrolled||0}),g.jsx("p",{className:"text-sm text-text-muted",children:"Enrolled"})]}),g.jsxs("div",{className:"card p-4 text-center",children:[g.jsx("div",{className:"w-10 h-10 rounded-xl bg-danger/10 flex items-center justify-center mx-auto mb-3",children:g.jsx(PE,{className:"w-5 h-5 text-danger"})}),g.jsx("p",{className:"text-2xl font-bold text-foreground",children:e.lostLeads||0}),g.jsx("p",{className:"text-sm text-text-muted",children:"Lost"})]})]})]})}const MD=["All","Proposal","Brochure","Template","Contract","Report"],FD={Proposal:{color:"bg-info/10 text-info border-info/20",icon:"📄"},Brochure:{color:"bg-success/10 text-success border-success/20",icon:"📰"},Template:{color:"bg-primary/10 text-primary border-primary/20",icon:"📋"},Contract:{color:"bg-warning/10 text-warning border-warning/20",icon:"📝"},Report:{color:"bg-secondary/10 text-secondary border-secondary/20",icon:"📊"}};function TBe(){const{documents:e,fetchDocuments:t,uploadDocument:r,deleteDocument:n,isLoading:i}=oZ(),[a,o]=E.useState(!1),[s,l]=E.useState("All"),[c,u]=E.useState(""),[f,d]=E.useState({title:"",category:"",description:"",drive_link:""}),[h,v]=E.useState(null);E.useEffect(()=>{t()},[]);const p=e.filter(S=>{var P,j;const A=((P=S.title)==null?void 0:P.toLowerCase().includes(c.toLowerCase()))||((j=S.description)==null?void 0:j.toLowerCase().includes(c.toLowerCase())),N=s==="All"||S.category===s;return A&&N}),m=async()=>{const S=new FormData;S.append("title",f.title),S.append("category",f.category),S.append("description",f.description),S.append("drive_link",f.drive_link),h&&S.append("file",h),await r(S),o(!1),d({title:"",category:"",description:"",drive_link:""}),v(null),t()},y=async S=>{window.confirm("Are you sure you want to delete this document?")&&(await n(S),t())},x=S=>{const A=FD[S]||FD.Proposal;return g.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium rounded-lg border ${A.color}`,children:[g.jsx("span",{children:A.icon}),S]})},w=S=>{if(!S)return g.jsx(lO,{className:"w-6 h-6 text-text-muted"});const A=S.split(".").pop().toLowerCase();return["jpg","jpeg","png","gif","webp"].includes(A)?g.jsx(wZ,{className:"w-6 h-6 text-success"}):A==="pdf"?g.jsx($l,{className:"w-6 h-6 text-danger"}):g.jsx(lO,{className:"w-6 h-6 text-text-muted"})};return g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:"Documents"}),g.jsx("p",{className:"text-sm text-text-muted mt-1",children:"Manage your marketing documents"})]}),g.jsxs(Qt,{onClick:()=>o(!0),children:[g.jsx(wf,{className:"w-4 h-4 mr-2"}),"Upload Document"]})]}),g.jsx(An,{className:"p-4",children:g.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[g.jsxs("div",{className:"flex-1 relative",children:[g.jsx(NE,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted"}),g.jsx(Xt,{placeholder:"Search documents...",value:c,onChange:S=>u(S.target.value),className:"pl-10"})]}),g.jsxs(jn,{value:s,onValueChange:l,children:[g.jsx(bn,{className:"w-full md:w-48",children:g.jsx(Ln,{placeholder:"Category"})}),g.jsx(wn,{children:MD.map(S=>g.jsx(Vr,{value:S,children:S},S))})]})]})}),i?g.jsx("div",{className:"flex items-center justify-center h-64",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx("div",{className:"w-6 h-6 border-2 border-primary/30 border-t-primary rounded-full animate-spin"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Loading documents..."})]})}):p.length===0?g.jsxs("div",{className:"card p-12 text-center",children:[g.jsx("div",{className:"w-16 h-16 rounded-2xl bg-surface-light flex items-center justify-center mx-auto mb-4",children:g.jsx(xZ,{className:"w-8 h-8 text-text-muted"})}),g.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:"No documents found"}),g.jsx("p",{className:"text-text-muted mb-6",children:"Upload your first document to get started"}),g.jsxs(Qt,{onClick:()=>o(!0),children:[g.jsx(wf,{className:"w-4 h-4 mr-2"}),"Upload Document"]})]}):g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:p.map((S,A)=>g.jsxs("div",{className:"card p-4 hover:border-border-light transition-all duration-200 animate-slide-up",style:{animationDelay:`${A*30}ms`},children:[g.jsxs("div",{className:"flex items-start justify-between mb-3",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-surface-light flex items-center justify-center",children:w(S.file_path)}),g.jsx("div",{className:"flex items-center gap-1",children:x(S.category)})]}),g.jsx("h3",{className:"font-semibold text-foreground mb-1 line-clamp-1",children:S.title}),g.jsx("p",{className:"text-sm text-text-muted mb-3 line-clamp-2",children:S.description||"No description"}),g.jsxs("div",{className:"text-xs text-text-muted mb-4",children:[S.created_by_name&&g.jsxs("span",{children:["by ",S.created_by_name]}),S.created_at&&g.jsxs("span",{children:[" • ",Ch(S.created_at)]})]}),g.jsxs("div",{className:"flex items-center gap-2 pt-3 border-t border-border",children:[S.drive_link&&g.jsx("a",{href:S.drive_link,target:"_blank",rel:"noopener noreferrer",className:"flex-1",children:g.jsxs(Qt,{variant:"secondary",size:"sm",className:"w-full",children:[g.jsx(gZ,{className:"w-3.5 h-3.5 mr-1.5"}),"Drive"]})}),S.file_path&&g.jsx("a",{href:S.file_path,target:"_blank",rel:"noopener noreferrer",className:"flex-1",children:g.jsxs(Qt,{variant:"secondary",size:"sm",className:"w-full",children:[g.jsx(AE,{className:"w-3.5 h-3.5 mr-1.5"}),"View"]})}),g.jsx(Qt,{variant:"ghost",size:"icon-sm",onClick:()=>y(S.id),className:"hover:bg-danger/10",children:g.jsx(zg,{className:"w-4 h-4 text-danger"})})]})]},S.id))}),g.jsx(ip,{open:a,onOpenChange:o,children:g.jsxs(If,{className:"max-w-md",children:[g.jsx(Df,{children:g.jsx(Mf,{children:"Upload Document"})}),g.jsxs("div",{className:"space-y-4 py-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Title *"}),g.jsx(Xt,{value:f.title,onChange:S=>d({...f,title:S.target.value}),placeholder:"Document title"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Category *"}),g.jsxs(jn,{value:f.category,onValueChange:S=>d({...f,category:S}),children:[g.jsx(bn,{children:g.jsx(Ln,{placeholder:"Select category"})}),g.jsx(wn,{children:MD.filter(S=>S!=="All").map(S=>g.jsx(Vr,{value:S,children:S},S))})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Description"}),g.jsx("textarea",{className:"input min-h-[80px]",value:f.description,onChange:S=>d({...f,description:S.target.value}),placeholder:"Document description..."})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"File"}),g.jsx(Xt,{type:"file",onChange:S=>v(S.target.files[0]),accept:".pdf,.doc,.docx,.jpg,.jpeg,.png"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Google Drive Link"}),g.jsx(Xt,{value:f.drive_link,onChange:S=>d({...f,drive_link:S.target.value}),placeholder:"https://drive.google.com/..."})]})]}),g.jsxs(Rf,{children:[g.jsx(Qt,{variant:"secondary",onClick:()=>o(!1),children:"Cancel"}),g.jsx(Qt,{onClick:m,children:"Upload"})]})]})})]})}function CBe(e,t=[]){let r=[];function n(a,o){const s=E.createContext(o);s.displayName=a+"Context";const l=r.length;r=[...r,o];const c=f=>{var y;const{scope:d,children:h,...v}=f,p=((y=d==null?void 0:d[e])==null?void 0:y[l])||s,m=E.useMemo(()=>v,Object.values(v));return g.jsx(p.Provider,{value:m,children:h})};c.displayName=a+"Provider";function u(f,d){var p;const h=((p=d==null?void 0:d[e])==null?void 0:p[l])||s,v=E.useContext(h);if(v)return v;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[c,u]}const i=()=>{const a=r.map(o=>E.createContext(o));return function(s){const l=(s==null?void 0:s[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...s,[e]:l}}),[s,l])}};return i.scopeName=e,[n,OBe(i,...t)]}function OBe(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const o=n.reduce((s,{useScope:l,scopeName:c})=>{const f=l(a)[`__scope${c}`];return{...s,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return r.scopeName=t.scopeName,r}function kBe(){return bE.useSyncExternalStore(jBe,()=>!0,()=>!1)}function jBe(){return()=>{}}var QP="Avatar",[LBe]=CBe(QP),[IBe,_G]=LBe(QP),AG=E.forwardRef((e,t)=>{const{__scopeAvatar:r,...n}=e,[i,a]=E.useState("idle");return g.jsx(IBe,{scope:r,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:g.jsx(K2.span,{...n,ref:t})})});AG.displayName=QP;var EG="AvatarImage",NG=E.forwardRef((e,t)=>{const{__scopeAvatar:r,src:n,onLoadingStatusChange:i=()=>{},...a}=e,o=_G(EG,r),s=DBe(n,a),l=lu(c=>{i(c),o.onImageLoadingStatusChange(c)});return si(()=>{s!=="idle"&&l(s)},[s,l]),s==="loaded"?g.jsx(K2.img,{...a,ref:t,src:n}):null});NG.displayName=EG;var PG="AvatarFallback",TG=E.forwardRef((e,t)=>{const{__scopeAvatar:r,delayMs:n,...i}=e,a=_G(PG,r),[o,s]=E.useState(n===void 0);return E.useEffect(()=>{if(n!==void 0){const l=window.setTimeout(()=>s(!0),n);return()=>window.clearTimeout(l)}},[n]),o&&a.imageLoadingStatus!=="loaded"?g.jsx(K2.span,{...i,ref:t}):null});TG.displayName=PG;function $D(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function DBe(e,{referrerPolicy:t,crossOrigin:r}){const n=kBe(),i=E.useRef(null),a=n?(i.current||(i.current=new window.Image),i.current):null,[o,s]=E.useState(()=>$D(a,e));return si(()=>{s($D(a,e))},[a,e]),si(()=>{const l=f=>()=>{s(f)};if(!a)return;const c=l("loaded"),u=l("error");return a.addEventListener("load",c),a.addEventListener("error",u),t&&(a.referrerPolicy=t),typeof r=="string"&&(a.crossOrigin=r),()=>{a.removeEventListener("load",c),a.removeEventListener("error",u)}},[a,r,t]),o}var CG=AG,OG=NG,kG=TG;const jG=E.forwardRef(({className:e,...t},r)=>g.jsx(CG,{ref:r,className:Yr("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-xl",e),...t}));jG.displayName=CG.displayName;const RBe=E.forwardRef(({className:e,...t},r)=>g.jsx(OG,{ref:r,className:Yr("aspect-square h-full w-full",e),...t}));RBe.displayName=OG.displayName;const LG=E.forwardRef(({className:e,...t},r)=>g.jsx(kG,{ref:r,className:Yr("flex h-full w-full items-center justify-center rounded-xl bg-primary/10 text-primary font-medium",e),...t}));LG.displayName=kG.displayName;const BD=[{value:"masteradmin",label:"Master Admin"},{value:"admin",label:"Admin"},{value:"staff",label:"Staff"}],MBe=[{value:"Tim A",label:"Tim A"},{value:"Tim B",label:"Tim B"},{value:"Tim C",label:"Tim C"},{value:"Tim D",label:"Tim D"}],FBe={masteradmin:{label:"Master Admin",color:"bg-purple-100 text-purple-700 border-purple-200",icon:Jc},admin:{label:"Admin",color:"bg-red-100 text-red-700 border-red-200",icon:Jc},staff:{label:"Staff",color:"bg-blue-100 text-blue-700 border-blue-200",icon:jZ},unknown:{label:"Unknown",color:"bg-gray-100 text-gray-700 border-gray-200",icon:Jc}},f_={label:"Unknown",color:"bg-gray-100 text-gray-700 border-gray-200",icon:Jc};function $Be(){const{user:e}=ar(),{users:t,fetchUsers:r,createUser:n,updateUser:i,deleteUser:a,isLoading:o}=AF(),[s,l]=E.useState(!1),[c,u]=E.useState(null),[f,d]=E.useState(""),[h,v]=E.useState({username:"",name:"",email:"",phone:"",role:"staff",team:"",password:""});E.useEffect(()=>{((e==null?void 0:e.role)==="admin"||(e==null?void 0:e.role)==="masteradmin")&&r()},[e]);const p=(e==null?void 0:e.role)==="admin"||(e==null?void 0:e.role)==="masteradmin",m=(e==null?void 0:e.role)==="masteradmin",y=()=>m?BD:BD.filter(C=>C.value==="staff"),x=t.filter(C=>{var R,L,I;return((R=C.name)==null?void 0:R.toLowerCase().includes(f.toLowerCase()))||((L=C.username)==null?void 0:L.toLowerCase().includes(f.toLowerCase()))||((I=C.email)==null?void 0:I.toLowerCase().includes(f.toLowerCase()))}),w=async()=>{if(!h.username||!h.name||!c&&!h.password){alert("Please fill in all required fields");return}if(h.role==="staff"&&!h.team){alert("Please select a team for Staff role");return}if(c){const C={...h};C.password||delete C.password,await i(c.id,C)}else if(!await n(h)){alert("Failed to create user. Username may already exist.");return}l(!1),u(null),v({username:"",name:"",email:"",phone:"",role:"staff",team:"",password:""}),r()},S=C=>{u(C),v({username:C.username,name:C.name,email:C.email||"",phone:C.phone||"",role:C.role,team:C.team||"",password:""}),l(!0)},A=async C=>{const R=t.find(L=>L.id===C);if((R==null?void 0:R.role)==="masteradmin"&&!m){alert("Cannot delete Master Admin");return}window.confirm("Are you sure you want to delete this user?")&&(await a(C),r())},N=()=>{u(null),v({username:"",name:"",email:"",phone:"",role:"staff",team:"",password:""}),l(!0)},P=C=>{v({...h,role:C,team:C==="staff"?h.team:""})},j=(C,R)=>{const I=FBe[C||"unknown"]||f_,B=(I==null?void 0:I.icon)||Jc;return g.jsxs("div",{className:"flex flex-col gap-1",children:[g.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2.5 py-1 text-xs font-medium rounded-lg border ${(I==null?void 0:I.color)||f_.color}`,children:[g.jsx(B,{className:"w-3.5 h-3.5"}),(I==null?void 0:I.label)||f_.label]}),R&&g.jsx("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 text-xs font-medium rounded-md bg-gray-100 text-gray-600",children:R})]})};return p?g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-semibold text-foreground",children:"Users"}),g.jsx("p",{className:"text-sm text-text-muted mt-1",children:"Manage team members and permissions"})]}),g.jsxs(Qt,{onClick:N,children:[g.jsx(wf,{className:"w-4 h-4 mr-2"}),"Add User"]})]}),g.jsx(An,{className:"p-4",children:g.jsxs("div",{className:"relative max-w-md",children:[g.jsx(NE,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-text-muted"}),g.jsx(Xt,{placeholder:"Search users...",value:f,onChange:C=>d(C.target.value),className:"pl-10"})]})}),g.jsxs(An,{className:"overflow-hidden",children:[g.jsx("div",{className:"overflow-x-auto",children:g.jsxs("table",{className:"table",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"User"}),g.jsx("th",{children:"Email"}),g.jsx("th",{children:"Phone"}),g.jsx("th",{children:"Role / Team"}),g.jsx("th",{children:"Joined"}),g.jsx("th",{className:"w-20",children:"Actions"})]})}),g.jsx("tbody",{children:o?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center py-12",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx("div",{className:"w-6 h-6 border-2 border-primary/30 border-t-primary rounded-full animate-spin"}),g.jsx("p",{className:"text-sm text-text-muted",children:"Loading users..."})]})})}):x.length===0?g.jsx("tr",{children:g.jsx("td",{colSpan:6,className:"text-center py-12",children:g.jsxs("div",{className:"flex flex-col items-center gap-3",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-surface-light flex items-center justify-center",children:g.jsx(IZ,{className:"w-6 h-6 text-text-muted"})}),g.jsx("p",{className:"text-text-muted",children:"No users found"})]})})}):x.map((C,R)=>g.jsxs("tr",{className:"group animate-slide-up",style:{animationDelay:`${R*30}ms`},children:[g.jsx("td",{children:g.jsxs("div",{className:"flex items-center gap-3",children:[g.jsx(jG,{className:"w-10 h-10",children:g.jsx(LG,{className:"bg-primary/10 text-primary",children:iZ(C.name)})}),g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-foreground",children:C.name}),g.jsxs("p",{className:"text-xs text-text-muted",children:["@",C.username]})]})]})}),g.jsx("td",{children:g.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[g.jsx(G2,{className:"w-4 h-4 text-text-muted"}),C.email||"-"]})}),g.jsx("td",{children:g.jsxs("div",{className:"flex items-center gap-2 text-sm text-text-secondary",children:[g.jsx(q2,{className:"w-4 h-4 text-text-muted"}),C.phone||"-"]})}),g.jsx("td",{children:j(C.role,C.team)}),g.jsx("td",{className:"text-sm text-text-muted",children:Ch(C.created_at)}),g.jsx("td",{children:g.jsxs("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[g.jsx(Qt,{variant:"ghost",size:"icon-sm",onClick:()=>S(C),children:g.jsx(Mm,{className:"w-4 h-4"})}),C.id!==(e==null?void 0:e.id)&&g.jsx(Qt,{variant:"ghost",size:"icon-sm",onClick:()=>A(C.id),className:"hover:bg-danger/10",children:g.jsx(zg,{className:"w-4 h-4 text-danger"})})]})})]},C.id))})]})}),x.length>0&&g.jsx("div",{className:"px-6 py-4 border-t border-border flex items-center justify-between",children:g.jsxs("p",{className:"text-sm text-text-muted",children:["Showing ",x.length," of ",t.length," users"]})})]}),g.jsx(ip,{open:s,onOpenChange:l,children:g.jsxs(If,{className:"max-w-md",children:[g.jsx(Df,{children:g.jsx(Mf,{children:c?"Edit User":"Add New User"})}),g.jsxs("div",{className:"space-y-4 py-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Username *"}),g.jsx(Xt,{value:h.username,onChange:C=>v({...h,username:C.target.value}),placeholder:"Username",disabled:c})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsxs(St,{children:["Password ",c?"(leave blank to keep)":"*"]}),g.jsx(Xt,{type:"password",value:h.password,onChange:C=>v({...h,password:C.target.value}),placeholder:"Password"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Full Name *"}),g.jsx(Xt,{value:h.name,onChange:C=>v({...h,name:C.target.value}),placeholder:"Full name"})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Email"}),g.jsx(Xt,{type:"email",value:h.email,onChange:C=>v({...h,email:C.target.value}),placeholder:"email@example.com"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Phone"}),g.jsx(Xt,{value:h.phone,onChange:C=>v({...h,phone:C.target.value}),placeholder:"+62xxx"})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Role"}),g.jsxs(jn,{value:h.role,onValueChange:P,children:[g.jsx(bn,{children:g.jsx(Ln,{})}),g.jsx(wn,{children:y().map(C=>g.jsx(Vr,{value:C.value,children:C.label},C.value))})]})]}),h.role==="staff"&&g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{children:"Tim/Team *"}),g.jsxs(jn,{value:h.team,onValueChange:C=>v({...h,team:C}),children:[g.jsx(bn,{children:g.jsx(Ln,{placeholder:"Pilih Tim"})}),g.jsx(wn,{children:MBe.map(C=>g.jsx(Vr,{value:C.value,children:C.label},C.value))})]})]})]}),g.jsxs(Rf,{children:[g.jsx(Qt,{variant:"secondary",onClick:()=>l(!1),children:"Cancel"}),g.jsxs(Qt,{onClick:w,children:[c?"Update":"Add"," User"]})]})]})})]}):g.jsx("div",{className:"p-6 flex items-center justify-center h-96",children:g.jsxs("div",{className:"text-center",children:[g.jsx("div",{className:"w-16 h-16 rounded-2xl bg-danger/10 flex items-center justify-center mx-auto mb-4",children:g.jsx(Jc,{className:"w-8 h-8 text-danger"})}),g.jsx("h3",{className:"text-lg font-medium text-foreground mb-2",children:"Access Denied"}),g.jsx("p",{className:"text-text-muted",children:"You don't have permission to view this page."})]})})}function BBe(){var w;const{user:e,updateUser:t}=ar(),[r,n]=E.useState(!1),[i,a]=E.useState(!1),[o,s]=E.useState(!1),[l,c]=E.useState({name:"",email:"",phone:""}),[u,f]=E.useState({currentPassword:"",newPassword:"",confirmPassword:""}),[d,h]=E.useState(""),[v,p]=E.useState(!1);ge.useEffect(()=>{e&&c({name:e.name||"",email:e.email||"",phone:e.phone||""})},[e]);const m=async()=>{a(!0);try{const S=ar.getState().token,A=await fetch(`${br}/auth/profile`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${S}`},body:JSON.stringify(l)});if(A.ok)t(l),n(!0),setTimeout(()=>n(!1),3e3);else{const N=await A.json();alert(N.error||"Gagal menyimpan profil")}}catch{alert("Error menyimpan profil")}a(!1)},y=async()=>{if(h(""),p(!1),!u.currentPassword||!u.newPassword||!u.confirmPassword){h("Semua field password harus diisi");return}if(u.newPassword!==u.confirmPassword){h("Password baru dan konfirmasi password tidak cocok");return}if(u.newPassword.length<6){h("Password minimal 6 karakter");return}a(!0);try{const S=ar.getState().token,A=await fetch(`${br}/auth/change-password`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${S}`},body:JSON.stringify({currentPassword:u.currentPassword,newPassword:u.newPassword})}),N=await A.json();A.ok?(p(!0),f({currentPassword:"",newPassword:"",confirmPassword:""}),setTimeout(()=>p(!1),3e3)):h(N.error||"Gagal mengubah password")}catch{h("Error mengubah password")}a(!1)},x=()=>{m()};return g.jsxs("div",{className:"p-6 max-w-4xl mx-auto space-y-6",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-3xl font-bold text-slate-800",children:"Settings"}),g.jsx("p",{className:"text-slate-500 mt-1",children:"Kelola pengaturan akun dan preferensi"})]}),g.jsxs("div",{className:"space-y-6 animate-fade-in",children:[g.jsxs(An,{children:[g.jsxs("div",{className:"p-6 border-b border-slate-200",children:[g.jsx("h2",{className:"text-xl font-bold text-slate-800",children:"Informasi Profile"}),g.jsx("p",{className:"text-slate-500 mt-1",children:"Update informasi personal Anda"})]}),g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex items-center gap-6",children:[g.jsx("div",{className:"relative",children:g.jsx("div",{className:"w-24 h-24 rounded-2xl bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center text-white text-3xl font-bold",children:((w=e==null?void 0:e.name)==null?void 0:w.charAt(0))||"U"})}),g.jsxs("div",{children:[g.jsx("h3",{className:"text-lg font-semibold text-slate-800",children:(e==null?void 0:e.name)||"User"}),g.jsx("p",{className:"text-slate-500 capitalize",children:(e==null?void 0:e.role)||"User"}),g.jsx("p",{className:"text-sm text-blue-600 mt-1",children:"Profil Anda"})]})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{className:"text-base font-medium text-slate-700",children:"Nama Lengkap"}),g.jsx(Xt,{value:l.name,onChange:S=>c({...l,name:S.target.value}),placeholder:"Nama lengkap Anda",className:"h-12 text-base"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{className:"text-base font-medium text-slate-700",children:"Username"}),g.jsx(Xt,{value:(e==null?void 0:e.username)||"",disabled:!0,className:"h-12 text-base bg-slate-50"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{className:"text-base font-medium text-slate-700",children:"Email"}),g.jsx(Xt,{type:"email",value:l.email,onChange:S=>c({...l,email:S.target.value}),placeholder:"email@anda.com",className:"h-12 text-base"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{className:"text-base font-medium text-slate-700",children:"No. Telepon"}),g.jsx(Xt,{value:l.phone,onChange:S=>c({...l,phone:S.target.value}),placeholder:"+62xxx",className:"h-12 text-base"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{className:"text-base font-medium text-slate-700",children:"Role"}),g.jsx(Xt,{value:(e==null?void 0:e.role)||"",disabled:!0,className:"h-12 text-base bg-slate-50 capitalize"})]})]})]})]}),g.jsxs(An,{children:[g.jsxs("div",{className:"p-6 border-b border-slate-200",children:[g.jsxs("h2",{className:"text-xl font-bold text-slate-800 flex items-center gap-2",children:[g.jsx(kF,{className:"w-5 h-5"}),"Ubah Password"]}),g.jsx("p",{className:"text-slate-500 mt-1",children:"Ganti password akun Anda"})]}),g.jsxs("div",{className:"p-6 space-y-4",children:[g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{className:"text-base font-medium text-slate-700",children:"Password Saat Ini"}),g.jsxs("div",{className:"relative",children:[g.jsx(Xt,{type:o?"text":"password",value:u.currentPassword,onChange:S=>f({...u,currentPassword:S.target.value}),placeholder:"Masukkan password saat ini",className:"h-12 text-base pr-10"}),g.jsx("button",{type:"button",onClick:()=>s(!o),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",children:o?g.jsx(CF,{className:"w-5 h-5"}):g.jsx(AE,{className:"w-5 h-5"})})]})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{className:"text-base font-medium text-slate-700",children:"Password Baru"}),g.jsx(Xt,{type:o?"text":"password",value:u.newPassword,onChange:S=>f({...u,newPassword:S.target.value}),placeholder:"Masukkan password baru",className:"h-12 text-base"})]}),g.jsxs("div",{className:"space-y-2",children:[g.jsx(St,{className:"text-base font-medium text-slate-700",children:"Konfirmasi Password Baru"}),g.jsx(Xt,{type:o?"text":"password",value:u.confirmPassword,onChange:S=>f({...u,confirmPassword:S.target.value}),placeholder:"Konfirmasi password baru",className:"h-12 text-base"})]}),d&&g.jsx("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg text-red-600 text-sm",children:d}),v&&g.jsxs("div",{className:"p-3 bg-green-50 border border-green-200 rounded-lg text-green-600 text-sm flex items-center gap-2",children:[g.jsx(Oh,{className:"w-4 h-4"}),"Password berhasil diubah!"]}),g.jsx(Qt,{onClick:y,disabled:i,variant:"secondary",className:"h-11",children:i?"Menyimpan...":"Ubah Password"})]})]})]}),g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("div",{className:"flex items-center gap-2",children:r&&g.jsxs("span",{className:"text-sm text-green-600 flex items-center gap-1 font-medium",children:[g.jsx(Oh,{className:"w-5 h-5"}),"Berhasil disimpan!"]})}),g.jsx(Qt,{onClick:x,disabled:i,className:"bg-blue-600 hover:bg-blue-700 h-12 px-6 text-base font-semibold",children:i?"Menyimpan...":"Simpan Perubahan"})]})]})}function UBe(){const[e,t]=E.useState(!1),[r,n]=E.useState("design"),i=`📋 PRODUCT REQUIREMENT DOCUMENT (PRD) ===================================== 🎓 ARLINDO DIGITAL CRM - STIE ARLINDO Versi: V2.0 (Versi Terbaru) Dibuat oleh: Gusti Dewa Anggading Email: mail.sidewa@gmail.com ===================================== 📌 DESKRIPSI PRODUK Arlindo Digital CRM V2.0 adalah sistem CRM (Customer Relationship Management) khusus untuk pemasaran kampus STIE ARLINDO. Sistem ini dirancang untuk membantu tim marketing dalam mengelola database calon mahasiswa, melacak follow-up, dan meningkatkan konversi enrollment secara efektif dan terstruktur. Sistem ini merupakan pengembangan dari versi sebelumnya dengan fitur-fitur yang lebih lengkap dan performa yang lebih optimal. ===================================== 🎯 FITUR UTAMA V2.0 1. DASHBOARD - Ringkasan statistik leads (total, baru, terdaftar, hot leads) - Grafik distribusi status leads (Bar Chart) - Grafik sumber leads (Pie Chart) - Daftar follow-up yang akan datang - Aktivitas terbaru sistem - Staff Performance Overview (untuk admin) - Filter periode waktu (7, 30, 90 hari) 2. LEADS MANAGEMENT - Tambah, edit, hapus data leads - Filter berdasarkan status, sumber, jenis pendaftaran, kelas - Pencarian data leads (nama, email, telepon) - Bulk delete untuk multiple leads - Quick status change (dropdown inline) - Tombol WhatsApp dengan pesan otomatis - Ekspor data leads ke Excel dan PDF - Kolom tambahan: Jenis Pendaftaran, Kelas 3. PIPELINE (Kanban Board) - Visualisasi pipeline berdasarkan status (6 kolom) - Drag & drop leads antar status - Tracking konversi dari lead ke enrollment - Kolom: Baru, Dihubungi, Follow Up, Minat, Terdaftar, Daftar Ulang 4. TASK MANAGEMENT - Buat dan kelola tugas (Kanban Board) - Prioritas tugas (low, medium, high) - Status tugas (To Do, Sedang Dikerjakan, Selesai) - Due date tugas - Drag & drop antar kolom 5. REPORTS & ANALYTICS - Statistik lengkap leads - Conversion rate analysis - Lead by status, source, program - Visualisasi data dengan grafik (Bar, Pie) - Ekspor laporan ke PDF dan Excel 6. DOCUMENTS - Upload dokumen (brosur, panduan, dll) - Kategori dokumen - Drive link integration - Manajemen dokumen terpusat 7. SETTINGS - Profile management - Notification settings - Security settings 8. USER MANAGEMENT (Admin) - Tambah user baru - Edit informasi user - Hapus user - Role management (admin, masteradmin, user) 9. AUTHENTICATION - Login system dengan JWT - Password hashing dengan bcrypt - Session management - Demo account: Dewa / Dewa123 ===================================== 🔄 FLOW DAN CARA KERJA 1. PENAMBAHAN LEADS BARU - Marketing menambahkan data lead melalui menu Leads - Data yang diperlukan: Nama, No. WA, Email, Sekolah, Program - Lead akan muncul di dalam sistem dengan status "Baru" 2. FOLLOW-UP PROSES - Sistem menampilkan jadwal follow-up di dashboard - Tim marketing menghubungi lead melalui WhatsApp - Status lead diupdate (Baru → Dihubungi → Follow Up → Minat → Terdaftar → Daftar Ulang) 3. WHATSAPP INTEGRATION - Klik tombol WhatsApp di tabel leads atau pipeline - Otomatis membuka WhatsApp dengan pesan sapaan - Pesan: "Halo [Nama], Terima kasih sudah menghubungi STIE ARLINDO! 👋" 4. PIPELINE MANAGEMENT - Leads bergerak melalui pipeline dengan drag & drop - Dari Baru → Dihubungi → Follow Up → Minat → Terdaftar → Daftar Ulang - Tracking konversi terlihat di dashboard 5. TASK MANAGEMENT - Buat task baru dengan prioritas dan deadline - Pindahkan task antar kolom dengan drag & drop - Update status task sesuai progres 6. REPORTING - Lihat laporan lengkap di menu Reports - Analisis sumber leads terbaik - Tracking conversion rate - Ekspor laporan ke PDF/Excel ===================================== 📊 USER ROLES 1. MASTER ADMIN - Akses penuh ke semua fitur - Kelola semua user termasuk admin - Kelola settings sistem - View all reports dan staff performance 2. ADMIN - Akses penuh ke semua fitur - Kelola user - Kelola settings sistem - View all reports 3. USER (Marketing) - Kelola leads - Kelola tasks - View dashboard dan reports - Upload documents ===================================== 🔧 TEKNOLOGI YANG DIGUNAKAN FRONTEND: - React 18 + Vite - Tailwind CSS - Shadcn UI Components - Recharts (Charts) - Lucide React (Icons) - Hello Pangea DnD (Drag & Drop) - React Router DOM - Zustand (State Management) BACKEND: - Node.js - Express.js - SQLite (better-sqlite3) - JWT (jsonwebtoken) - bcryptjs - Multer (File Upload) DATABASE: - SQLite ===================================== 📱 FITUR KHUSUS V2.0 1. WhatsApp Integration - Pesan otomatis dengan nama lead - Langsung terbuka di WhatsApp Web/App 2. Auto Reminder - Pengingat follow-up otomatis - Tampilan di dashboard 3. Responsive Design - Dapat diakses di desktop dan mobile 4. Dark/Light Theme Ready - Tampilan yang nyaman untuk mata 5. Drag & Drop - Pipeline management dengan drag & drop - Task management dengan drag & drop 6. Export Data - Export leads ke Excel dan PDF - Export laporan ke Excel dan PDF 7. Staff Performance Tracking - Overview performa staff marketing - Leads by team visualization ===================================== 🚀 CARA MENJALANKAN APLIKASI 1. Install dependencies: cd client && npm install cd ../server && npm install 2. Jalankan server: cd server && node server.js 3. Jalankan client: cd client && npm run dev 4. Buka browser: http://localhost:5173 5. Login dengan akun demo: Username: Dewa Password: Dewa123 ===================================== 📞 KONTAK PENGEMBANG Jika ada pertanyaan atau ingin mengembangkan fitur baru, silakan hubungi: Gusti Dewa Anggading Email: mail.sidewa@gmail.com ===================================== © 2026 Arlindo Digital CRM - Digilabs Kreasi Nusantara Version: V2.0 Last Updated: 2026 =====================================`,a=()=>{navigator.clipboard.writeText(i),t(!0),setTimeout(()=>t(!1),2e3)};return g.jsxs("div",{className:"p-6 max-w-7xl mx-auto space-y-6",children:[g.jsxs("div",{className:"relative overflow-hidden rounded-2xl bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900 p-8 text-white",children:[g.jsx("div",{className:"absolute top-0 right-0 w-64 h-64 bg-blue-500/10 rounded-full blur-3xl"}),g.jsx("div",{className:"absolute bottom-0 left-0 w-48 h-48 bg-purple-500/10 rounded-full blur-3xl"}),g.jsxs("div",{className:"relative z-10 flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[g.jsx("span",{className:"px-3 py-1 bg-blue-500/20 text-blue-300 text-sm font-medium rounded-full",children:"V2.0"}),g.jsxs("span",{className:"px-3 py-1 bg-green-500/20 text-green-300 text-sm font-medium rounded-full flex items-center gap-1",children:[g.jsx(cO,{className:"w-3 h-3"})," Latest Version"]})]}),g.jsx("h1",{className:"text-4xl font-bold mb-2",children:"Product Requirement Document"}),g.jsx("p",{className:"text-slate-300 text-lg",children:"Arlindo Digital CRM V2.0 - Campus Marketing System"})]}),g.jsx("div",{className:"hidden md:block",children:g.jsx("div",{className:"w-24 h-24 rounded-2xl bg-gradient-to-br from-blue-500 to-purple-600 flex items-center justify-center",children:g.jsx(PZ,{className:"w-12 h-12 text-white"})})})]})]}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[g.jsx(An,{className:"p-6 bg-gradient-to-r from-purple-50 to-indigo-50 border-purple-100",children:g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-purple-500 to-indigo-600 flex items-center justify-center text-white text-2xl font-bold shadow-lg",children:"G"}),g.jsxs("div",{children:[g.jsx("h3",{className:"text-xl font-bold text-slate-800",children:"Dibuat oleh Gusti Dewa Anggading"}),g.jsx("p",{className:"text-slate-600",children:"Arlindo Digital CRM Version V2.0"}),g.jsx("p",{className:"text-blue-600 font-medium",children:"Email: mail.sidewa@gmail.com"})]})]})}),g.jsx(An,{className:"p-6 bg-gradient-to-r from-green-50 to-emerald-50 border-green-100",children:g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-green-500 to-emerald-600 flex items-center justify-center shadow-lg",children:g.jsx(CZ,{className:"w-8 h-8 text-white"})}),g.jsxs("div",{children:[g.jsx("h3",{className:"text-xl font-bold text-slate-800",children:"Tujuan Sistem"}),g.jsx("p",{className:"text-slate-600",children:"Mengelola database calon mahasiswa"}),g.jsx("p",{className:"text-green-600 font-medium",children:"Meningkatkan konversi enrollment"})]})]})})]}),g.jsxs("div",{className:"flex gap-2 flex-wrap",children:[g.jsxs("button",{onClick:()=>n("design"),className:`px-6 py-3 rounded-xl font-medium transition-all ${r==="design"?"bg-blue-600 text-white shadow-lg shadow-blue-600/30":"bg-slate-100 text-slate-600 hover:bg-slate-200"}`,children:[g.jsx($l,{className:"w-5 h-5 inline-block mr-2"}),"Desain PRD"]}),g.jsxs("button",{onClick:()=>n("text"),className:`px-6 py-3 rounded-xl font-medium transition-all ${r==="text"?"bg-blue-600 text-white shadow-lg shadow-blue-600/30":"bg-slate-100 text-slate-600 hover:bg-slate-200"}`,children:[g.jsx(sO,{className:"w-5 h-5 inline-block mr-2"}),"Teks PRD"]})]}),r==="design"&&g.jsxs("div",{className:"space-y-6 animate-fade-in",children:[g.jsxs(An,{className:"p-6 border-l-4 border-l-blue-500",children:[g.jsxs("h2",{className:"text-2xl font-bold text-slate-800 mb-4 flex items-center gap-3",children:[g.jsx("span",{className:"w-10 h-10 rounded-xl bg-blue-100 flex items-center justify-center",children:"📌"}),"Deskripsi Produk"]}),g.jsxs("p",{className:"text-slate-600 leading-relaxed text-lg",children:[g.jsx("strong",{children:"Arlindo Digital CRM V2.0"})," adalah sistem CRM (Customer Relationship Management) khusus untuk pemasaran kampus ",g.jsx("strong",{children:"STIE ARLINDO"}),". Sistem ini merupakan pengembangan dari versi sebelumnya dengan fitur-fitur yang lebih lengkap dan performa yang lebih optimal. Dirancang untuk membantu tim marketing dalam mengelola database calon mahasiswa, melacak follow-up, dan meningkatkan konversi enrollment secara efektif dan terstruktur."]})]}),g.jsxs(An,{className:"p-6 border-l-4 border-l-green-500",children:[g.jsxs("h2",{className:"text-2xl font-bold text-slate-800 mb-6 flex items-center gap-3",children:[g.jsx("span",{className:"w-10 h-10 rounded-xl bg-green-100 flex items-center justify-center",children:"🎯"}),"Fitur Utama V2.0"]}),g.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-4",children:[{icon:SE,title:"Dashboard",desc:"Ringkasan statistik & grafik real-time dengan Staff Performance Overview",color:"bg-blue-100 text-blue-600"},{icon:Sf,title:"Leads Management",desc:"Kelola data calon mahasiswa lengkap dengan filter, search, bulk actions, dan export",color:"bg-purple-100 text-purple-600"},{icon:dA,title:"Pipeline",desc:"Visualisasi sales pipeline dengan drag & drop antar 6 tahapan",color:"bg-indigo-100 text-indigo-600"},{icon:Q0,title:"Task Management",desc:"Kelola tugas tim marketing dengan Kanban board dan prioritas",color:"bg-orange-100 text-orange-600"},{icon:Fm,title:"Reports",desc:"Laporan & analytics lengkap dengan visualisasi dan export",color:"bg-green-100 text-green-600"},{icon:vZ,title:"Documents",desc:"Pusat dokumen kampus dengan upload dan Google Drive integration",color:"bg-yellow-100 text-yellow-600"},{icon:NF,title:"Notifications",desc:"Pengingat otomatis untuk follow-up dan task deadline",color:"bg-red-100 text-red-600"},{icon:Wd,title:"WhatsApp Integration",desc:"Kirim pesan WA otomatis dengan satu klik",color:"bg-green-100 text-green-600"},{icon:Jc,title:"User Management",desc:"Kelola user dengan role (Master Admin, Admin, User)",color:"bg-slate-100 text-slate-600"},{icon:kF,title:"Authentication",desc:"Sistem login aman dengan JWT dan password encryption",color:"bg-cyan-100 text-cyan-600"},{icon:_E,title:"Export Data",desc:"Export data ke Excel dan PDF dengan format profesional",color:"bg-teal-100 text-teal-600"},{icon:cO,title:"Responsive Design",desc:"Tampilan optimal di desktop dan mobile device",color:"bg-pink-100 text-pink-600"}].map((o,s)=>g.jsxs("div",{className:"flex items-start gap-4 p-5 bg-slate-50 rounded-xl hover:shadow-lg transition-shadow",children:[g.jsx("div",{className:`w-12 h-12 rounded-xl flex items-center justify-center flex-shrink-0 ${o.color}`,children:g.jsx(o.icon,{className:"w-6 h-6"})}),g.jsxs("div",{children:[g.jsx("h3",{className:"font-bold text-slate-800 text-lg",children:o.title}),g.jsx("p",{className:"text-sm text-slate-500 mt-1",children:o.desc})]})]},s))})]}),g.jsxs(An,{className:"p-6 border-l-4 border-l-yellow-500",children:[g.jsxs("h2",{className:"text-2xl font-bold text-slate-800 mb-6 flex items-center gap-3",children:[g.jsx("span",{className:"w-10 h-10 rounded-xl bg-yellow-100 flex items-center justify-center",children:"🔄"}),"Flow & Cara Kerja"]}),g.jsx("div",{className:"grid md:grid-cols-2 gap-6",children:[{step:"1",title:"Penambahan Leads Baru",desc:"Marketing menambahkan data lead melalui menu Leads dengan data lengkap (Nama, WA, Email, Sekolah, Program, Jenis Daftar, Kelas)",icon:wf},{step:"2",title:"Follow-Up Proses",desc:"Sistem menampilkan jadwal follow-up di dashboard, tim marketing menghubungi lead",icon:q2},{step:"3",title:"WhatsApp Integration",desc:"Klik tombol WhatsApp untuk pesan otomatis yang langsung membuka WA Web/App",icon:Wd},{step:"4",title:"Pipeline Management",desc:"Leads bergerak melalui pipeline (Baru → Dihubungi → Follow Up → Minat → Terdaftar → Daftar Ulang)",icon:dA},{step:"5",title:"Task Management",desc:"Buat dan kelola tugas dengan drag & drop antar kolom (To Do → In Progress → Done)",icon:Q0},{step:"6",title:"Reporting",desc:"Lihat laporan lengkap dengan visualisasi dan export ke PDF/Excel",icon:Fm}].map((o,s)=>g.jsxs("div",{className:"flex items-start gap-4 p-4 bg-slate-50 rounded-xl",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-yellow-100 flex items-center justify-center flex-shrink-0",children:g.jsx(o.icon,{className:"w-6 h-6 text-yellow-600"})}),g.jsxs("div",{children:[g.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[g.jsx("span",{className:"w-6 h-6 rounded-full bg-yellow-500 text-white flex items-center justify-center text-sm font-bold",children:o.step}),g.jsx("h3",{className:"font-bold text-slate-800",children:o.title})]}),g.jsx("p",{className:"text-sm text-slate-500 ml-8",children:o.desc})]})]},s))})]}),g.jsxs(An,{className:"p-6 border-l-4 border-l-purple-500",children:[g.jsxs("h2",{className:"text-2xl font-bold text-slate-800 mb-6 flex items-center gap-3",children:[g.jsx("span",{className:"w-10 h-10 rounded-xl bg-purple-100 flex items-center justify-center",children:"👥"}),"User Roles & Permissions"]}),g.jsxs("div",{className:"grid md:grid-cols-3 gap-4",children:[g.jsxs("div",{className:"p-5 bg-gradient-to-br from-purple-50 to-purple-100 rounded-xl border border-purple-200",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-purple-500 flex items-center justify-center mb-4",children:g.jsx(TZ,{className:"w-6 h-6 text-white"})}),g.jsx("h3",{className:"font-bold text-purple-700 text-lg",children:"Master Admin"}),g.jsxs("ul",{className:"mt-3 text-sm text-purple-600 space-y-2",children:[g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Akses penuh ke semua fitur"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Kelola semua user termasuk admin"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Kelola settings sistem"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"View all reports"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Staff performance tracking"]})]})]}),g.jsxs("div",{className:"p-5 bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl border border-blue-200",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-500 flex items-center justify-center mb-4",children:g.jsx(Jc,{className:"w-6 h-6 text-white"})}),g.jsx("h3",{className:"font-bold text-blue-700 text-lg",children:"Admin"}),g.jsxs("ul",{className:"mt-3 text-sm text-blue-600 space-y-2",children:[g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Akses penuh ke semua fitur"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Kelola user"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Kelola settings sistem"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"View all reports"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Staff performance tracking"]})]})]}),g.jsxs("div",{className:"p-5 bg-gradient-to-br from-green-50 to-green-100 rounded-xl border border-green-200",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-green-500 flex items-center justify-center mb-4",children:g.jsx(Sf,{className:"w-6 h-6 text-white"})}),g.jsx("h3",{className:"font-bold text-green-700 text-lg",children:"User (Marketing)"}),g.jsxs("ul",{className:"mt-3 text-sm text-green-600 space-y-2",children:[g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Kelola leads sendiri"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Kelola tasks"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"View dashboard"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"View reports"]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx(na,{className:"w-4 h-4"}),"Upload documents"]})]})]})]})]}),g.jsxs(An,{className:"p-6 border-l-4 border-l-indigo-500",children:[g.jsxs("h2",{className:"text-2xl font-bold text-slate-800 mb-6 flex items-center gap-3",children:[g.jsx("span",{className:"w-10 h-10 rounded-xl bg-indigo-100 flex items-center justify-center",children:"🔧"}),"Teknologi yang Digunakan"]}),g.jsxs("div",{className:"grid md:grid-cols-2 gap-6",children:[g.jsxs("div",{children:[g.jsxs("h3",{className:"font-bold text-slate-700 mb-4 flex items-center gap-2",children:[g.jsx(bZ,{className:"w-5 h-5 text-blue-500"}),"Frontend"]}),g.jsx("div",{className:"flex flex-wrap gap-2",children:["React 18 + Vite","Tailwind CSS","Shadcn UI","Recharts","Lucide React","Hello Pangea DnD","React Router","Zustand"].map((o,s)=>g.jsx("span",{className:"px-4 py-2 bg-blue-50 text-blue-700 rounded-lg text-sm font-semibold border border-blue-200",children:o},s))})]}),g.jsxs("div",{children:[g.jsxs("h3",{className:"font-bold text-slate-700 mb-4 flex items-center gap-2",children:[g.jsx(mZ,{className:"w-5 h-5 text-green-500"}),"Backend"]}),g.jsx("div",{className:"flex flex-wrap gap-2",children:["Node.js","Express.js","SQLite","JWT","bcryptjs","Multer"].map((o,s)=>g.jsx("span",{className:"px-4 py-2 bg-green-50 text-green-700 rounded-lg text-sm font-semibold border border-green-200",children:o},s))})]})]})]}),g.jsx(An,{className:"p-8 bg-gradient-to-r from-slate-900 via-slate-800 to-slate-900 border-slate-700",children:g.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between gap-8",children:[g.jsxs("div",{className:"text-center md:text-left max-w-xl",children:[g.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 bg-blue-500/20 rounded-full text-blue-400 text-sm font-medium mb-4",children:[g.jsx(Wd,{className:"w-4 h-4"}),"Hubungi Pengembang"]}),g.jsx("h3",{className:"text-3xl font-bold text-white mb-3",children:"Gusti Dewa Anggading"}),g.jsx("p",{className:"text-slate-300 text-lg leading-relaxed",children:"Punya pertanyaan tentang sistem ini? Ingin mengembangkan fitur baru atau membutuhkan dukungan teknis? Jangan ragu untuk menghubungi kami. Kami siap membantu Anda mengoptimalkan sistem CRM kampus Anda."})]}),g.jsxs("div",{className:"flex flex-col gap-4 w-full md:w-auto",children:[g.jsxs("a",{href:"mailto:mail.sidewa@gmail.com",className:"flex items-center gap-4 px-6 py-4 bg-white/10 hover:bg-white/20 rounded-2xl text-white transition-all hover:scale-105 hover:shadow-lg",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-500/20 flex items-center justify-center",children:g.jsx(G2,{className:"w-6 h-6 text-blue-400"})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-slate-400",children:"Email"}),g.jsx("span",{className:"font-semibold",children:"mail.sidewa@gmail.com"})]})]}),g.jsxs("a",{href:"https://wa.me/6281234567890",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-4 px-6 py-4 bg-green-500/20 hover:bg-green-500/30 rounded-2xl text-white transition-all hover:scale-105 hover:shadow-lg",children:[g.jsx("div",{className:"w-12 h-12 rounded-xl bg-green-500/20 flex items-center justify-center",children:g.jsx(Wd,{className:"w-6 h-6 text-green-400"})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-green-400/80",children:"WhatsApp"}),g.jsx("span",{className:"font-semibold",children:"Chat via WhatsApp"})]})]})]})]})}),g.jsxs("div",{className:"flex items-center justify-center gap-4 py-6",children:[g.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-green-100 text-green-700 rounded-full text-sm font-medium",children:[g.jsx(fZ,{className:"w-4 h-4"}),"Arlindo Digital CRM V2.0"]}),g.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 bg-slate-100 text-slate-600 rounded-full text-sm font-medium",children:[g.jsx(NZ,{className:"w-4 h-4"}),"Last Updated: 2026"]})]})]}),r==="text"&&g.jsxs(An,{className:"p-6 animate-fade-in",children:[g.jsxs("div",{className:"flex items-center justify-between mb-4",children:[g.jsx("h2",{className:"text-xl font-bold text-slate-800",children:"Teks PRD (Siap Copy)"}),g.jsxs(Qt,{onClick:a,className:"bg-blue-600 hover:bg-blue-700",children:[e?g.jsx(Q0,{className:"w-4 h-4 mr-2"}):g.jsx(sO,{className:"w-4 h-4 mr-2"}),e?"Tersalin!":"Copy"]})]}),g.jsx("pre",{className:"bg-slate-800 text-slate-100 p-6 rounded-xl overflow-x-auto text-sm whitespace-pre-wrap font-mono max-h-[600px] overflow-y-auto",children:i})]})]})}function WBe({children:e}){const{token:t}=ar();return t?e:g.jsx(sA,{to:"/login",replace:!0})}function zBe(){return g.jsx("footer",{className:"py-4 px-6 border-t border-slate-200 bg-white",children:g.jsx("div",{className:"flex items-center justify-center",children:g.jsx("p",{className:"text-sm text-slate-500",children:"© 2026 Gusti Dewa Anggading | Arlindo Digital CRM V2.0"})})})}function HBe(){const[e,t]=E.useState(!1),r=()=>t(n=>!n);return g.jsxs("div",{className:"min-h-screen bg-slate-50",children:[g.jsx(FZ,{isMobileMenuOpen:e,toggleMobileMenu:r}),g.jsxs("div",{className:"lg:pl-60",children:[g.jsx($Z,{toggleMobileMenu:r}),g.jsx("main",{className:"pt-16 lg:pt-20 min-h-[calc(100vh-4rem)] lg:min-h-[calc(100vh-5rem)]",children:g.jsxs(cF,{children:[g.jsx(aa,{path:"/dashboard",element:g.jsx(__e,{})}),g.jsx(aa,{path:"/leads",element:g.jsx(XDe,{})}),g.jsx(aa,{path:"/leads/:id",element:g.jsx(ZDe,{})}),g.jsx(aa,{path:"/pipeline",element:g.jsx(SBe,{})}),g.jsx(aa,{path:"/tasks",element:g.jsx(ABe,{})}),g.jsx(aa,{path:"/reports",element:g.jsx(PBe,{})}),g.jsx(aa,{path:"/documents",element:g.jsx(TBe,{})}),g.jsx(aa,{path:"/users",element:g.jsx($Be,{})}),g.jsx(aa,{path:"/settings",element:g.jsx(BBe,{})}),g.jsx(aa,{path:"/prd",element:g.jsx(UBe,{})})]})}),g.jsx(zBe,{})]})]})}function VBe(){return g.jsx(WY,{children:g.jsxs(cF,{children:[g.jsx(aa,{path:"/login",element:g.jsx(ZZ,{})}),g.jsx(aa,{path:"/*",element:g.jsx(WBe,{children:g.jsx(HBe,{})})}),g.jsx(aa,{path:"/",element:g.jsx(sA,{to:"/dashboard",replace:!0})}),g.jsx(aa,{path:"*",element:g.jsx(sA,{to:"/dashboard",replace:!0})})]})})}d_.createRoot(document.getElementById("root")).render(g.jsx(ge.StrictMode,{children:g.jsx(VBe,{})}));export{tRe as _,U1 as c,gr as g};