Files
ai-platform/public/sanrui/index.html
T

155 lines
1.2 MiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#07111f" />
<meta name="description" content="三瑞智研 AI 设计标准化智能体 DEMO" />
<title>三瑞智研 · AI 设计标准化智能体</title>
<script type="module" crossorigin>var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,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 c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=h(),n=p(),r=_();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(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 c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,m=Symbol.for(`react.element`),g=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},ee=[],te=-1;function ne(e){return{current:e}}function re(e){0>te||(e.current=ee[te],ee[te]=null,te--)}function ie(e,t){te++,ee[te]=e.current,e.current=t}var ae=ne(null),oe=ne(null),se=ne(null),ce=ne(null);function le(e,t){switch(ie(se,t),ie(oe,e),ie(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tf(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tf(t),e=nf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}re(ae),ie(ae,e)}function ue(){re(ae),re(oe),re(se)}function de(e){e.memoizedState!==null&&ie(ce,e);var t=ae.current,n=nf(t,e.type);t!==n&&(ie(oe,e),ie(ae,n))}function fe(e){oe.current===e&&(re(ae),re(oe)),ce.current===e&&(re(ce),dp._currentValue=R)}var pe,me;function he(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,me=-1<e.stack.indexOf(`
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+pe+e+me}var ge=!1;function _e(e,t){if(!e||ge)return``;ge=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?he(n):``}function ve(e,t){switch(e.tag){case 26:case 27:case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return e.child!==t&&t!==null?he(`Suspense Fallback`):he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return he(`Activity`);default:return``}}function ye(e){try{var t=``,n=null;do t+=ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var be=Object.prototype.hasOwnProperty,xe=t.unstable_scheduleCallback,Se=t.unstable_cancelCallback,Ce=t.unstable_shouldYield,we=t.unstable_requestPaint,Te=t.unstable_now,Ee=t.unstable_getCurrentPriorityLevel,De=t.unstable_ImmediatePriority,Oe=t.unstable_UserBlockingPriority,ke=t.unstable_NormalPriority,Ae=t.unstable_LowPriority,je=t.unstable_IdlePriority,Me=t.log,Ne=t.unstable_setDisableYieldValue,Pe=null,Fe=null;function Ie(e){if(typeof Me==`function`&&Ne(e),Fe&&typeof Fe.setStrictMode==`function`)try{Fe.setStrictMode(Pe,e)}catch{}}var Le=Math.clz32?Math.clz32:Be,Re=Math.log,ze=Math.LN2;function Be(e){return e>>>=0,e===0?32:31-(Re(e)/ze|0)|0}var Ve=256,He=262144,Ue=4194304;function We(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ge(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=We(n))):i=We(o):i=We(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=We(n))):i=We(o)):i=We(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ke(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Je(){var e=Ue;return Ue<<=1,!(Ue&62914560)&&(Ue=4194304),e}function Ye(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Xe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ze(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Le(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Le(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function $e(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Le(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function et(e,t){var n=t&-t;return n=n&42?1:tt(n),(n&(e.suspendedLanes|t))===0?n:0}function tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function nt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function rt(){var e=L.p;return e===0?(e=window.event,e===void 0?32:Dp(e.type)):e}function it(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var at=Math.random().toString(36).slice(2),ot=`__reactFiber$`+at,st=`__reactProps$`+at,ct=`__reactContainer$`+at,lt=`__reactEvents$`+at,ut=`__reactListeners$`+at,dt=`__reactHandles$`+at,ft=`__reactResources$`+at,pt=`__reactMarker$`+at;function mt(e){delete e[ot],delete e[st],delete e[lt],delete e[ut],delete e[dt]}function ht(e){var t=e[ot];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ct]||n[ot]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wf(e);e!==null;){if(n=e[ot])return n;e=wf(e)}return t}e=n,n=e.parentNode}return null}function gt(e){if(e=e[ot]||e[ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function _t(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function vt(e){var t=e[ft];return t||=e[ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function yt(e){e[pt]=!0}var bt=new Set,xt={};function St(e,t){Ct(e,t),Ct(e+`Capture`,t)}function Ct(e,t){for(xt[e]=t,e=0;e<t.length;e++)bt.add(t[e])}var wt=RegExp(`^[: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]*$`),Tt={},Et={};function Dt(e){return be.call(Et,e)?!0:be.call(Tt,e)?!1:wt.test(e)?Et[e]=!0:(Tt[e]=!0,!1)}function Ot(e,t,n){if(Dt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function kt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function At(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Mt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Nt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&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(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pt(e){if(!e._valueTracker){var t=Mt(e)?`checked`:`value`;e._valueTracker=Nt(e,t,``+e[t])}}function Ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Mt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function It(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Lt=/[\n"\\]/g;function Rt(e){return e.replace(Lt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function zt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+jt(t)):e.value!==``+jt(t)&&(e.value=``+jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Vt(e,o,jt(n)):Vt(e,o,jt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+jt(s):e.removeAttribute(`name`)}function Bt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Pt(e);return}n=n==null?``:``+jt(n),t=t==null?n:``+jt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Pt(e)}function Vt(e,t,n){t===`number`&&It(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ht(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ut(e,t,n){if(t!=null&&(t=``+jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+jt(n)}function Wt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Pt(e)}function Gt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function qt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Kt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Jt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&qt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&qt(e,o,t[o])}function Yt(e){if(e.indexOf(`-`)===-1)return!1;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 Xt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Zt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Qt(e){return Zt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function $t(){}var en=null;function tn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nn=null,rn=null;function an(e){var t=gt(e);if(t&&(e=t.stateNode)){var n=e[st]||null;a:switch(e=t.stateNode,t.type){case`input`:if(zt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Rt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[st]||null;if(!a)throw Error(i(90));zt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ft(r)}break a;case`textarea`:Ut(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ht(e,!!n.multiple,t,!1)}}}var on=!1;function sn(e,t,n){if(on)return e(t,n);on=!0;try{return e(t)}finally{if(on=!1,(nn!==null||rn!==null)&&(ju(),nn&&(t=nn,e=rn,rn=nn=null,an(t),e)))for(t=0;t<e.length;t++)an(e[t])}}function cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[st]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var ln=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),un=!1;if(ln)try{var dn={};Object.defineProperty(dn,"passive",{get:function(){un=!0}}),window.addEventListener(`test`,dn,dn),window.removeEventListener(`test`,dn,dn)}catch{un=!1}var fn=null,pn=null,mn=null;function hn(){if(mn)return mn;var e,t=pn,n=t.length,r,i=`value`in fn?fn.value:fn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return mn=i.slice(e,1<r?1-r:void 0)}function gn(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 _n(){return!0}function vn(){return!1}function yn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?_n:vn,this.isPropagationStopped=vn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=_n)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=_n)},persist:function(){},isPersistent:_n}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xn=yn(bn),Sn=f({},bn,{view:0,detail:0}),Cn=yn(Sn),wn,Tn,En,Dn=f({},Sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,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!==En&&(En&&e.type===`mousemove`?(wn=e.screenX-En.screenX,Tn=e.screenY-En.screenY):Tn=wn=0,En=e),wn)},movementY:function(e){return`movementY`in e?e.movementY:Tn}}),On=yn(Dn),kn=yn(f({},Dn,{dataTransfer:0})),An=yn(f({},Sn,{relatedTarget:0})),jn=yn(f({},bn,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=yn(f({},bn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Nn=yn(f({},bn,{data:0})),Pn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={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`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function Rn(){return Ln}var zn=yn(f({},Sn,{key:function(e){if(e.key){var t=Pn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=gn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return e.type===`keypress`?gn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?gn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Bn=yn(f({},Dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=yn(f({},Sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Hn=yn(f({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=yn(f({},Dn,{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})),Wn=yn(f({},bn,{newState:0,oldState:0})),Gn=[9,13,27,32],Kn=ln&&`CompositionEvent`in window,qn=null;ln&&`documentMode`in document&&(qn=document.documentMode);var Jn=ln&&`TextEvent`in window&&!qn,Yn=ln&&(!Kn||qn&&8<qn&&11>=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=hn(),mn=pn=fn=null,er=!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 Yn&&t.locale!==`ko`?null:t.data;default:return null}}var rr={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 ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!rr[e.type]:t===`textarea`}function ar(e,t,n,r){nn?rn?rn.push(r):rn=[r]:nn=r,t=zd(t,`onChange`),0<t.length&&(n=new xn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var or=null,sr=null;function cr(e){jd(e,0)}function lr(e){if(Ft(_t(e)))return e}function ur(e,t){if(e===`change`)return t}var dr=!1;if(ln){var fr;if(ln){var pr=`oninput`in document;if(!pr){var mr=document.createElement(`div`);mr.setAttribute(`oninput`,`return;`),pr=typeof mr.oninput==`function`}fr=pr}else fr=!1;dr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){or&&(or.detachEvent(`onpropertychange`,gr),sr=or=null)}function gr(e){if(e.propertyName===`value`&&lr(sr)){var t=[];ar(t,sr,e,tn(e)),sn(cr,t)}}function _r(e,t,n){e===`focusin`?(hr(),or=t,sr=n,or.attachEvent(`onpropertychange`,gr)):e===`focusout`&&hr()}function vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return lr(sr)}function yr(e,t){if(e===`click`)return lr(t)}function br(e,t){if(e===`input`||e===`change`)return lr(t)}function xr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Sr=typeof Object.is==`function`?Object.is:xr;function Cr(e,t){if(Sr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!be.call(t,i)||!Sr(e[i],t[i]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tr(e,t){var n=wr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=It(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=It(e.document)}return t}function Or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var kr=ln&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==It(r)||(r=Ar,`selectionStart`in r&&Or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Cr(Mr,r)||(Mr=r,r=zd(jr,`onSelect`),0<r.length&&(t=new xn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ir={animationend:Fr(`Animation`,`AnimationEnd`),animationiteration:Fr(`Animation`,`AnimationIteration`),animationstart:Fr(`Animation`,`AnimationStart`),transitionrun:Fr(`Transition`,`TransitionRun`),transitionstart:Fr(`Transition`,`TransitionStart`),transitioncancel:Fr(`Transition`,`TransitionCancel`),transitionend:Fr(`Transition`,`TransitionEnd`)},Lr={},Rr={};ln&&(Rr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),`TransitionEvent`in window||delete Ir.transitionend.transition);function zr(e){if(Lr[e])return Lr[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rr)return Lr[e]=t[n];return e}var Br=zr(`animationend`),Vr=zr(`animationiteration`),Hr=zr(`animationstart`),Ur=zr(`transitionrun`),Wr=zr(`transitionstart`),Gr=zr(`transitioncancel`),Kr=zr(`transitionend`),qr=new Map,Jr=`abort auxClick beforeToggle 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(` `);Jr.push(`scrollEnd`);function Yr(e,t){qr.set(e,t),St(t,[e])}var Xr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Zr=[],Qr=0,$r=0;function ei(){for(var e=Qr,t=$r=Qr=0;t<e;){var n=Zr[t];Zr[t++]=null;var r=Zr[t];Zr[t++]=null;var i=Zr[t];Zr[t++]=null;var a=Zr[t];if(Zr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ii(n,i,a)}}function ti(e,t,n,r){Zr[Qr++]=e,Zr[Qr++]=t,Zr[Qr++]=n,Zr[Qr++]=r,$r|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ni(e,t,n,r){return ti(e,t,n,r),ai(e)}function ri(e,t){return ti(e,null,null,t),ai(e)}function ii(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Le(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ai(e){if(50<Su)throw Su=0,Cu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function si(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ci(e,t,n,r){return new si(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function di(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=np(e,n,ae.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ci(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return pi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ci(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ci(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ci(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ci(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ci(6,e,null,t),e.lanes=n,e}function hi(e){var t=ci(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:ye(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:ye(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],wi=0,Ti=null,Ei=1,Di=``;function Oi(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function ki(e,t,n){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ti=e;var r=Ei;e=Di;var i=32-Le(r)-1;r&=~(1<<i),n+=1;var a=32-Le(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ei=1<<32-Le(t)+i|n<<i|r,Di=a+e}else Ei=1<<a|n<<i|r,Di=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Di=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null}function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ei=t.id,Di=t.overflow,Ti=e}var Ni=null,Pi=null,Fi=!1,Ii=null,Li=!1,Ri=Error(i(519));function zi(e){throw Gi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ri}function Bi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ot]=e,t[st]=r,n){case`dialog`:Md(`cancel`,t),Md(`close`,t);break;case`iframe`:case`object`:case`embed`:Md(`load`,t);break;case`video`:case`audio`:for(n=0;n<kd.length;n++)Md(kd[n],t);break;case`source`:Md(`error`,t);break;case`img`:case`image`:case`link`:Md(`error`,t),Md(`load`,t);break;case`details`:Md(`toggle`,t);break;case`input`:Md(`invalid`,t),Bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Md(`invalid`,t);break;case`textarea`:Md(`invalid`,t),Wt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Gd(t.textContent,n)?(r.popover!=null&&(Md(`beforetoggle`,t),Md(`toggle`,t)),r.onScroll!=null&&Md(`scroll`,t),r.onScrollEnd!=null&&Md(`scrollend`,t),r.onClick!=null&&(t.onclick=$t),t=!0):t=!1,t||zi(e,!0)}function Vi(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Li=!1;return;case 27:case 3:Li=!0;return;default:Ni=Ni.return}}function Hi(e){if(e!==Ni)return!1;if(!Fi)return Vi(e),Fi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||rf(e.type,e.memoizedProps)),n=!n),n&&Pi&&zi(e),Vi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=Cf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=Cf(e)}else t===27?(t=Pi,df(e.type)?(e=Sf,Sf=null,Pi=e):Pi=t):Pi=Ni?xf(e.stateNode.nextSibling):null;return!0}function Ui(){Pi=Ni=null,Fi=!1}function Wi(){var e=Ii;return e!==null&&(cu===null?cu=e:cu.push.apply(cu,e),Ii=null),e}function Gi(e){Ii===null?Ii=[e]:Ii.push(e)}var Ki=ne(null),qi=null,Ji=null;function Yi(e,t,n){ie(Ki,t._currentValue),t._currentValue=n}function Xi(e){e._currentValue=Ki.current,re(Ki)}function Zi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Qi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Zi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Zi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function $i(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Sr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[dp]:e.push(dp))}a=a.return}e!==null&&Qi(t,e,n,r),t.flags|=262144}function ea(e){for(e=e.firstContext;e!==null;){if(!Sr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ta(e){qi=e,Ji=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function na(e){return ia(qi,e)}function ra(e,t){return qi===null&&ta(e),ia(e,t)}function ia(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ji===null){if(e===null)throw Error(i(308));Ji=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ji=Ji.next=t;return n}var aa=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},oa=t.unstable_scheduleCallback,sa=t.unstable_NormalPriority,ca={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function la(){return{controller:new aa,data:new Map,refCount:0}}function ua(e){e.refCount--,e.refCount===0&&oa(sa,function(){e.controller.abort()})}var da=null,fa=0,pa=0,ma=null;function ha(e,t){if(da===null){var n=da=[];fa=0,pa=Cd(),ma={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return fa++,t.then(ga,ga),t}function ga(){if(--fa===0&&da!==null){ma!==null&&(ma.status=`fulfilled`);var e=da;da=null,pa=0,ma=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function _a(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var va=I.S;I.S=function(e,t){du=Te(),typeof t==`object`&&t&&typeof t.then==`function`&&ha(e,t),va!==null&&va(e,t)};var ya=ne(null);function ba(){var e=ya.current;return e===null?Kl.pooledCache:e}function xa(e,t){t===null?ie(ya,ya.current):ie(ya,t.pool)}function Sa(){var e=ba();return e===null?null:{parent:ca._currentValue,pool:e}}var Ca=Error(i(460)),wa=Error(i(474)),Ta=Error(i(542)),Ea={then:function(){}};function Da(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Oa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then($t,$t),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ma(e),e;default:if(typeof t.status==`string`)t.then($t,$t);else{if(e=Kl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ma(e),e}throw Aa=t,Ca}}function ka(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Aa=e,Ca):e}}var Aa=null;function ja(){if(Aa===null)throw Error(i(459));var e=Aa;return Aa=null,e}function Ma(e){if(e===Ca||e===Ta)throw Error(i(483))}var Na=null,Pa=0;function Fa(e){var t=Pa;return Pa+=1,Na===null&&(Na=[]),Oa(Na,e,t)}function Ia(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function La(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ra(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ui(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&ka(i)===t.type)?(t=a(t,n.props),Ia(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Ia(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case g:return n=fi(t.type,t.key,t.props,null,e.mode,n),Ia(n,t),n.return=e,n;case v:return t=gi(t,e.mode,n),t.return=e,t;case O:return t=ka(t),f(e,t,n)}if(F(t)||M(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Fa(t),n);if(t.$$typeof===C)return f(e,ra(e,t),n);La(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case g:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=ka(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Fa(n),r);if(n.$$typeof===C)return p(e,t,ra(e,n),r);La(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case g:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=ka(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Fa(r),i);if(r.$$typeof===C)return m(e,t,n,ra(t,r),i);La(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Fi&&Oi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Fi&&Oi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Fi&&Oi(i,h),l}function _(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Fi&&Oi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Fi&&Oi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Fi&&Oi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case g:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&ka(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ia(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Ia(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=ka(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),_(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Fa(o),c);if(o.$$typeof===C)return b(e,r,ra(e,o),c);La(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Pa=0;var i=b(e,t,n,r);return Na=null,i}catch(t){if(t===Ca||t===Ta)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var za=Ra(!0),Ba=Ra(!1),Va=!1;function Ha(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ua(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ga(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Gl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function Ka(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}function qa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ja=!1;function Ya(){if(Ja){var e=ma;if(e!==null)throw e}}function Xa(e,t,n,r){Ja=!1;var i=e.updateQueue;Va=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Jl&p)===p:(r&p)===p){p!==0&&p===pa&&(Ja=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Va=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),nu|=o,e.lanes=o,e.memoizedState=d}}function Za(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Za(n[e],t)}var $a=ne(null),eo=ne(0);function to(e,t){e=eu,ie(eo,e),ie($a,t),eu=e|t.baseLanes}function no(){ie(eo,eu),ie($a,$a.current)}function ro(){eu=eo.current,re($a),re(eo)}var io=ne(null),ao=null;function oo(e){var t=e.alternate;ie(fo,fo.current&1),ie(io,e),ao===null&&(t===null||$a.current!==null||t.memoizedState!==null)&&(ao=e)}function so(e){ie(fo,fo.current),ie(io,e),ao===null&&(ao=e)}function co(e){e.tag===22?(ie(fo,fo.current),ie(io,e),ao===null&&(ao=e)):lo(e)}function lo(){ie(fo,fo.current),ie(io,io.current)}function uo(e){re(io),ao===e&&(ao=null),re(fo)}var fo=ne(0);function po(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vf(n)||yf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){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 mo=0,ho=null,go=null,_o=null,vo=!1,yo=!1,bo=!1,xo=0,So=0,Co=null,wo=0;function To(){throw Error(i(321))}function Eo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sr(e[n],t[n]))return!1;return!0}function Do(e,t,n,r,i,a){return mo=a,ho=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Us:Ws,bo=!1,a=n(r,i),bo=!1,yo&&(a=ko(t,n,r,i)),Oo(e),a}function Oo(e){I.H=Hs;var t=go!==null&&go.next!==null;if(mo=0,_o=go=ho=null,vo=!1,So=0,Co=null,t)throw Error(i(300));e===null||sc||(e=e.dependencies,e!==null&&ea(e)&&(sc=!0))}function ko(e,t,n,r){ho=e;var a=0;do{if(yo&&(Co=null),So=0,yo=!1,25<=a)throw Error(i(301));if(a+=1,_o=go=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=Gs,o=t(n,r)}while(yo);return o}function Ao(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Io(t):t,e=e.useState()[0],(go===null?null:go.memoizedState)!==e&&(ho.flags|=1024),t}function jo(){var e=xo!==0;return xo=0,e}function Mo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function No(e){if(vo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vo=!1}mo=0,_o=go=ho=null,yo=!1,So=xo=0,Co=null}function Po(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _o===null?ho.memoizedState=_o=e:_o=_o.next=e,_o}function z(){if(go===null){var e=ho.alternate;e=e===null?null:e.memoizedState}else e=go.next;var t=_o===null?ho.memoizedState:_o.next;if(t!==null)_o=t,go=e;else{if(e===null)throw ho.alternate===null?Error(i(467)):Error(i(310));go=e,e={memoizedState:go.memoizedState,baseState:go.baseState,baseQueue:go.baseQueue,queue:go.queue,next:null},_o===null?ho.memoizedState=_o=e:_o=_o.next=e}return _o}function Fo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Io(e){var t=So;return So+=1,Co===null&&(Co=[]),e=Oa(Co,e,t),t=ho,(_o===null?t.memoizedState:_o.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Us:Ws),e}function Lo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Io(e);if(e.$$typeof===C)return na(e)}throw Error(i(438,String(e)))}function Ro(e){var t=null,n=ho.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ho.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Fo(),ho.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function zo(e,t){return typeof t==`function`?t(e):t}function Bo(e){return Vo(z(),go,e)}function Vo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(mo&f)===f:(Jl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===pa&&(d=!0);else if((mo&p)===p){u=u.next,p===pa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,ho.lanes|=p,nu|=p;f=u.action,bo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,ho.lanes|=f,nu|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(sc=!0,d&&(n=ma,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ho(e){var t=z(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Sr(o,t.memoizedState)||(sc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Uo(e,t,n){var r=ho,a=z(),o=Fi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((go||a).memoizedState,n);if(s&&(a.memoizedState=n,sc=!0),a=a.queue,ms(Ko.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||_o!==null&&_o.memoizedState.tag&1){if(r.flags|=2048,ls(9,{destroy:void 0},Go.bind(null,r,a,n,t),null),Kl===null)throw Error(i(349));o||mo&127||Wo(r,t,n)}return n}function Wo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ho.updateQueue,t===null?(t=Fo(),ho.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Go(e,t,n,r){t.value=n,t.getSnapshot=r,qo(t)&&Jo(e)}function Ko(e,t,n){return n(function(){qo(t)&&Jo(e)})}function qo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function Jo(e){var t=ri(e,2);t!==null&&Eu(t,e,2)}function Yo(e){var t=Po();if(typeof e==`function`){var n=e;if(e=n(),bo){Ie(!0);try{n()}finally{Ie(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:e},t}function Xo(e,t,n,r){return e.baseState=n,Vo(e,go,typeof r==`function`?r:zo)}function Zo(e,t,n,r,a){if(zs(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Qo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Qo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),$o(e,t,s)}catch(n){ts(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),$o(e,t,a)}catch(n){ts(e,t,n)}}function $o(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){es(e,t,n)},function(n){return ts(e,t,n)}):es(e,t,n)}function es(e,t,n){t.status=`fulfilled`,t.value=n,ns(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Qo(e,n)))}function ts(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ns(t),t=t.next;while(t!==r)}e.action=null}function ns(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function rs(e,t){return t}function is(e,t){if(Fi){var n=Kl.formState;if(n!==null){a:{var r=ho;if(Fi){if(Pi){b:{for(var i=Pi,a=Li;i.nodeType!==8;){if(!a){i=null;break b}if(i=xf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=xf(i.nextSibling),r=i.data===`F!`;break a}}zi(r)}r=!1}r&&(t=n[0])}}return n=Po(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rs,lastRenderedState:t},n.queue=r,n=Is.bind(null,ho,r),r.dispatch=n,r=Yo(!1),a=Rs.bind(null,ho,!1,r.queue),r=Po(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Zo.bind(null,ho,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function as(e){return os(z(),go,e)}function os(e,t,n){if(t=Vo(e,t,rs)[0],e=Bo(zo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Io(t)}catch(e){throw e===Ca?Ta:e}else r=t;t=z();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(ho.flags|=2048,ls(9,{destroy:void 0},ss.bind(null,i,n),null)),[r,a,e]}function ss(e,t){e.action=t}function cs(e){var t=z(),n=go;if(n!==null)return os(t,n,e);z(),t=t.memoizedState,n=z();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ls(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ho.updateQueue,t===null&&(t=Fo(),ho.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function us(){return z().memoizedState}function ds(e,t,n,r){var i=Po();ho.flags|=e,i.memoizedState=ls(1|t,{destroy:void 0},n,r===void 0?null:r)}function fs(e,t,n,r){var i=z();r=r===void 0?null:r;var a=i.memoizedState.inst;go!==null&&r!==null&&Eo(r,go.memoizedState.deps)?i.memoizedState=ls(t,a,n,r):(ho.flags|=e,i.memoizedState=ls(1|t,a,n,r))}function ps(e,t){ds(8390656,8,e,t)}function ms(e,t){fs(2048,8,e,t)}function hs(e){ho.flags|=4;var t=ho.updateQueue;if(t===null)t=Fo(),ho.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function gs(e){var t=z().memoizedState;return hs({ref:t,nextImpl:e}),function(){if(Gl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function _s(e,t){return fs(4,2,e,t)}function vs(e,t){return fs(4,4,e,t)}function ys(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bs(e,t,n){n=n==null?null:n.concat([e]),fs(4,4,ys.bind(null,t,e),n)}function xs(){}function Ss(e,t){var n=z();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Cs(e,t){var n=z();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Eo(t,r[1]))return r[0];if(r=e(),bo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r}function ws(e,t,n){return n===void 0||mo&1073741824&&!(Jl&261930)?e.memoizedState=t:(e.memoizedState=n,e=Tu(),ho.lanes|=e,nu|=e,n)}function Ts(e,t,n,r){return Sr(n,t)?n:$a.current===null?!(mo&42)||mo&1073741824&&!(Jl&261930)?(sc=!0,e.memoizedState=n):(e=Tu(),ho.lanes|=e,nu|=e,t):(e=ws(e,n,r),Sr(e,t)||(sc=!0),e)}function Es(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Rs(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ls(e,t,_a(c,r),wu(e)):Ls(e,t,r,wu(e))}catch(n){Ls(e,t,{then:function(){},status:`rejected`,reason:n},wu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function Ds(){}function Os(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ks(e).queue;Es(e,a,t,R,n===null?Ds:function(){return As(e),n(r)})}function ks(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function As(e){var t=ks(e);t.next===null&&(t=e.alternate.memoizedState),Ls(e,t.next.queue,{},wu())}function js(){return na(dp)}function Ms(){return z().memoizedState}function Ns(){return z().memoizedState}function Ps(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=wu();e=Wa(n);var r=Ga(t,e,n);r!==null&&(Eu(r,t,n),Ka(r,t,n)),t={cache:la()},e.payload=t;return}t=t.return}}function Fs(e,t,n){var r=wu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},zs(e)?Bs(t,n):(n=ni(e,t,n,r),n!==null&&(Eu(n,e,r),Vs(n,t,r)))}function Is(e,t,n){Ls(e,t,n,wu())}function Ls(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(zs(e))Bs(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,n);if(i.hasEagerState=!0,i.eagerState=s,Sr(s,o))return ti(e,t,i,0),Kl===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return Eu(n,e,r),Vs(n,t,r),!0}return!1}function Rs(e,t,n,r){if(r={lane:2,revertLane:Cd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},zs(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&Eu(t,e,2)}function zs(e){var t=e.alternate;return e===ho||t!==null&&t===ho}function Bs(e,t){yo=vo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,$e(e,n)}}var Hs={readContext:na,use:Lo,useCallback:To,useContext:To,useEffect:To,useImperativeHandle:To,useLayoutEffect:To,useInsertionEffect:To,useMemo:To,useReducer:To,useRef:To,useState:To,useDebugValue:To,useDeferredValue:To,useTransition:To,useSyncExternalStore:To,useId:To,useHostTransitionStatus:To,useFormState:To,useActionState:To,useOptimistic:To,useMemoCache:To,useCacheRefresh:To};Hs.useEffectEvent=To;var Us={readContext:na,use:Lo,useCallback:function(e,t){return Po().memoizedState=[e,t===void 0?null:t],e},useContext:na,useEffect:ps,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ds(4194308,4,ys.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ds(4194308,4,e,t)},useInsertionEffect:function(e,t){ds(4,2,e,t)},useMemo:function(e,t){var n=Po();t=t===void 0?null:t;var r=e();if(bo){Ie(!0);try{e()}finally{Ie(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Po();if(n!==void 0){var i=n(t);if(bo){Ie(!0);try{n(t)}finally{Ie(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Fs.bind(null,ho,e),[r.memoizedState,e]},useRef:function(e){var t=Po();return e={current:e},t.memoizedState=e},useState:function(e){e=Yo(e);var t=e.queue,n=Is.bind(null,ho,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:xs,useDeferredValue:function(e,t){return ws(Po(),e,t)},useTransition:function(){var e=Yo(!1);return e=Es.bind(null,ho,e.queue,!0,!1),Po().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ho,a=Po();if(Fi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Kl===null)throw Error(i(349));Jl&127||Wo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ps(Ko.bind(null,r,o,e),[e]),r.flags|=2048,ls(9,{destroy:void 0},Go.bind(null,r,o,n,t),null),n},useId:function(){var e=Po(),t=Kl.identifierPrefix;if(Fi){var n=Di,r=Ei;n=(r&~(1<<32-Le(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=xo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=wo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:js,useFormState:is,useActionState:is,useOptimistic:function(e){var t=Po();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Rs.bind(null,ho,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ro,useCacheRefresh:function(){return Po().memoizedState=Ps.bind(null,ho)},useEffectEvent:function(e){var t=Po(),n={impl:e};return t.memoizedState=n,function(){if(Gl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Ws={readContext:na,use:Lo,useCallback:Ss,useContext:na,useEffect:ms,useImperativeHandle:bs,useInsertionEffect:_s,useLayoutEffect:vs,useMemo:Cs,useReducer:Bo,useRef:us,useState:function(){return Bo(zo)},useDebugValue:xs,useDeferredValue:function(e,t){return Ts(z(),go.memoizedState,e,t)},useTransition:function(){var e=Bo(zo)[0],t=z().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:Uo,useId:Ms,useHostTransitionStatus:js,useFormState:as,useActionState:as,useOptimistic:function(e,t){return Xo(z(),go,e,t)},useMemoCache:Ro,useCacheRefresh:Ns};Ws.useEffectEvent=gs;var Gs={readContext:na,use:Lo,useCallback:Ss,useContext:na,useEffect:ms,useImperativeHandle:bs,useInsertionEffect:_s,useLayoutEffect:vs,useMemo:Cs,useReducer:Ho,useRef:us,useState:function(){return Ho(zo)},useDebugValue:xs,useDeferredValue:function(e,t){var n=z();return go===null?ws(n,e,t):Ts(n,go.memoizedState,e,t)},useTransition:function(){var e=Ho(zo)[0],t=z().memoizedState;return[typeof e==`boolean`?e:Io(e),t]},useSyncExternalStore:Uo,useId:Ms,useHostTransitionStatus:js,useFormState:cs,useActionState:cs,useOptimistic:function(e,t){var n=z();return go===null?(n.baseState=e,[e,n.queue.dispatch]):Xo(n,go,e,t)},useMemoCache:Ro,useCacheRefresh:Ns};Gs.useEffectEvent=gs;function Ks(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var qs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wu(),i=Wa(r);i.payload=t,n!=null&&(i.callback=n),t=Ga(e,i,r),t!==null&&(Eu(t,e,r),Ka(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wu(),i=Wa(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ga(e,i,r),t!==null&&(Eu(t,e,r),Ka(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wu(),r=Wa(n);r.tag=2,t!=null&&(r.callback=t),t=Ga(e,r,n),t!==null&&(Eu(t,e,n),Ka(t,e,n))}};function Js(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Cr(n,r)||!Cr(i,a):!0}function Ys(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&qs.enqueueReplaceState(t,t.state,null)}function Xs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Zs(e){Xr(e)}function Qs(e){console.error(e)}function $s(e){Xr(e)}function ec(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function tc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function nc(e,t,n){return n=Wa(n),n.tag=3,n.payload={element:null},n.callback=function(){ec(e,t)},n}function rc(e){return e=Wa(e),e.tag=3,e}function ic(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){tc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){tc(t,n,r),typeof i!=`function`&&(mu===null?mu=new Set([this]):mu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function ac(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&$i(t,n,a,!0),n=io.current,n!==null){switch(n.tag){case 31:case 13:return ao===null?Ru():n.alternate===null&&tu===0&&(tu=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),rd(e,r,a)),!1;case 22:return n.flags|=65536,r===Ea?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),rd(e,r,a)),!1}throw Error(i(435,n.tag))}return rd(e,r,a),Ru(),!1}if(Fi)return t=io.current,t===null?(r!==Ri&&(t=Error(i(423),{cause:r}),Gi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=nc(e.stateNode,r,a),qa(e,a),tu!==4&&(tu=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Ri&&(e=Error(i(422),{cause:r}),Gi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),su===null?su=[o]:su.push(o),tu!==4&&(tu=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=nc(n.stateNode,r,e),qa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(mu===null||!mu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=rc(a),ic(a,e,n,r),qa(n,a),!1}n=n.return}while(n!==null);return!1}var oc=Error(i(461)),sc=!1;function cc(e,t,n,r){t.child=e===null?Ba(t,null,n,r):za(t,e.child,n,r)}function lc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ta(t),r=Do(e,t,n,o,a,i),s=jo(),e!==null&&!sc?(Mo(e,t,i),Nc(e,t,i)):(Fi&&s&&Ai(t),t.flags|=1,cc(e,t,r,i),t.child)}function uc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,dc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Pc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return Nc(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function dc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref){if(sc=!1,t.pendingProps=r=a,Pc(e,i))e.flags&131072&&(sc=!0);else return t.lanes=e.lanes,Nc(e,t,i)}}return yc(e,t,n,r,i)}function fc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return mc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&xa(t,a===null?null:a.cachePool),a===null?no():to(t,a),co(t);else return r=t.lanes=536870912,mc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&xa(t,null),no(),lo(t)):(xa(t,a.cachePool),to(t,a),lo(t),t.memoizedState=null);return cc(e,t,i,n),t.child}function pc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function mc(e,t,n,r,i){var a=ba();return a=a===null?null:{parent:ca._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&xa(t,null),no(),co(t),e!==null&&$i(e,t,r,!0),t.childLanes=i,null}function hc(e,t){return t=Oc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function gc(e,t,n){return za(t,e.child,null,n),e=hc(t,t.pendingProps),e.flags|=2,uo(t),t.memoizedState=null,e}function _c(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Fi){if(r.mode===`hidden`)return e=hc(t,r),t.lanes=536870912,pc(null,e);if(so(t),(e=Pi)?(e=_f(e,Li),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw zi(t);return t.lanes=536870912,null}return hc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(so(t),a){if(t.flags&256)t.flags&=-257,t=gc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(sc||$i(e,t,n,!1),a=(n&e.childLanes)!==0,sc||a){if(r=Kl,r!==null&&(s=et(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),Eu(r,e,s),oc;Ru(),t=gc(e,t,n)}else e=o.treeContext,Pi=xf(s.nextSibling),Ni=t,Fi=!0,Ii=null,Li=!1,e!==null&&Mi(t,e),t=hc(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function vc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function yc(e,t,n,r,i){return ta(t),n=Do(e,t,n,r,void 0,i),r=jo(),e!==null&&!sc?(Mo(e,t,i),Nc(e,t,i)):(Fi&&r&&Ai(t),t.flags|=1,cc(e,t,n,i),t.child)}function bc(e,t,n,r,i,a){return ta(t),t.updateQueue=null,n=ko(t,r,n,i),Oo(e),r=jo(),e!==null&&!sc?(Mo(e,t,a),Nc(e,t,a)):(Fi&&r&&Ai(t),t.flags|=1,cc(e,t,n,a),t.child)}function xc(e,t,n,r,i){if(ta(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=na(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=qs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ha(t),o=n.contextType,a.context=typeof o==`object`&&o?na(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ks(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&qs.enqueueReplaceState(a,a.state,null),Xa(t,r,a,i),Ya(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Xs(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=na(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ys(t,a,r,o),Va=!1;var f=t.memoizedState;a.state=f,Xa(t,r,a,i),Ya(),l=t.memoizedState,s||f!==l||Va?(typeof d==`function`&&(Ks(t,n,d,r),l=t.memoizedState),(c=Va||Js(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ua(e,t),o=t.memoizedProps,u=Xs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=na(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ys(t,a,r,c),Va=!1,f=t.memoizedState,a.state=f,Xa(t,r,a,i),Ya();var p=t.memoizedState;o!==d||f!==p||Va||e!==null&&e.dependencies!==null&&ea(e.dependencies)?(typeof s==`function`&&(Ks(t,n,s,r),p=t.memoizedState),(u=Va||Js(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&ea(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,vc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=za(t,e.child,null,i),t.child=za(t,null,n,i)):cc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Nc(e,t,i),e}function Sc(e,t,n,r){return Ui(),t.flags|=256,cc(e,t,n,r),t.child}var Cc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wc(e){return{baseLanes:e,cachePool:Sa()}}function Tc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=au),e}function Ec(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(fo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Fi){if(a?oo(t):lo(t),(e=Pi)?(e=_f(e,Li),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw zi(t);return yf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(lo(t),a=t.mode,c=Oc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=wc(n),r.childLanes=Tc(e,s,n),t.memoizedState=Cc,pc(null,r)):(oo(t),Dc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(oo(t),t.flags&=-257,t=kc(e,t,n)):t.memoizedState===null?(lo(t),c=r.fallback,a=t.mode,r=Oc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,za(t,e.child,null,n),r=t.child,r.memoizedState=wc(n),r.childLanes=Tc(e,s,n),t.memoizedState=Cc,t=pc(null,r)):(lo(t),t.child=e.child,t.flags|=128,t=null);else if(oo(t),yf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Gi({value:r,source:null,stack:null}),t=kc(e,t,n)}else if(sc||$i(e,t,n,!1),s=(n&e.childLanes)!==0,sc||s){if(s=Kl,s!==null&&(r=et(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),Eu(s,e,r),oc;vf(c)||Ru(),t=kc(e,t,n)}else vf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=xf(c.nextSibling),Ni=t,Fi=!0,Ii=null,Li=!1,e!==null&&Mi(t,e),t=Dc(t,r.children),t.flags|=4096);return t}return a?(lo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,pc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=wc(n):(a=c.cachePool,a===null?a=Sa():(l=ca._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Tc(e,s,n),t.memoizedState=Cc,pc(e.child,r)):(oo(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Dc(e,t){return t=Oc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Oc(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function kc(e,t,n){return za(t,e.child,null,n),e=Dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ac(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Zi(e.return,t,n)}function jc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Mc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=fo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,ie(fo,o),cc(e,t,r,n),r=Fi?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ac(e,n,t);else if(e.tag===19)Ac(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&po(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),jc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&po(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}jc(t,!0,n,null,a,r);break;case`together`:jc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Nc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nu|=t.lanes,(n&t.childLanes)===0){if(e!==null){if($i(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Pc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&ea(e)))}function Fc(e,t,n){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),Yi(t,ca,e.memoizedState.cache),Ui();break;case 27:case 5:de(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:Yi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,so(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(oo(t),e=Nc(e,t,n),e===null?null:e.sibling):Ec(e,t,n):(oo(t),t.flags|=128,null);oo(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=($i(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Mc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ie(fo,fo.current),r)break;return null;case 22:return t.lanes=0,fc(e,t,n,t.pendingProps);case 24:Yi(t,ca,e.memoizedState.cache)}return Nc(e,t,n)}function Ic(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)sc=!0;else{if(!Pc(e,n)&&!(t.flags&128))return sc=!1,Fc(e,t,n);sc=!!(e.flags&131072)}}else sc=!1,Fi&&t.flags&1048576&&ki(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ka(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=Xs(e,r),t.tag=1,t=xc(null,t,e,r,n)):(t.tag=0,t=yc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=lc(null,t,e,r,n);break a}if(a===D){t.tag=14,t=uc(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return yc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Xs(r,t.pendingProps),xc(e,t,r,a,n);case 3:a:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ua(e,t),Xa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Yi(t,ca,r),r!==o.cache&&Qi(t,[ca],n,!0),Ya(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Sc(e,t,r,n);break a}if(r!==a){a=vi(Error(i(424)),t),Gi(a),t=Sc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=xf(e.firstChild),Ni=t,Fi=!0,Ii=null,Li=!0,n=Ba(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ui(),r===a){t=Nc(e,t,n);break a}cc(e,t,r,n)}t=t.child}return t;case 26:return vc(e,t),e===null?(n=Hf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Fi||(n=t.type,e=t.pendingProps,r=ef(se.current).createElement(n),r[ot]=t,r[st]=e,Jd(r,n,e),yt(r),t.stateNode=r):t.memoizedState=Hf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return de(t),e===null&&Fi&&(r=t.stateNode=Tf(t.type,t.pendingProps,se.current),Ni=t,Li=!0,a=Pi,df(t.type)?(Sf=a,Pi=xf(r.firstChild)):Pi=a),cc(e,t,t.pendingProps.children,n),vc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Fi&&((a=r=Pi)&&(r=hf(r,t.type,t.pendingProps,Li),r===null?a=!1:(t.stateNode=r,Ni=t,Pi=xf(r.firstChild),Li=!1,a=!0)),a||zi(t)),de(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,rf(a,o)?r=null:s!==null&&rf(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Do(e,t,Ao,null,null,n),dp._currentValue=a),vc(e,t),cc(e,t,r,n),t.child;case 6:return e===null&&Fi&&((e=n=Pi)&&(n=gf(n,t.pendingProps,Li),n===null?e=!1:(t.stateNode=n,Ni=t,Pi=null,e=!0)),e||zi(t)),null;case 13:return Ec(e,t,n);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=za(t,null,r,n):cc(e,t,r,n),t.child;case 11:return lc(e,t,t.type,t.pendingProps,n);case 7:return cc(e,t,t.pendingProps,n),t.child;case 8:return cc(e,t,t.pendingProps.children,n),t.child;case 12:return cc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Yi(t,t.type,r.value),cc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ta(t),a=na(a),r=r(a),t.flags|=1,cc(e,t,r,n),t.child;case 14:return uc(e,t,t.type,t.pendingProps,n);case 15:return dc(e,t,t.type,t.pendingProps,n);case 19:return Mc(e,t,n);case 31:return _c(e,t,n);case 22:return fc(e,t,n,t.pendingProps);case 24:return ta(t),r=na(ca),e===null?(a=ba(),a===null&&(a=Kl,o=la(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ha(t),Yi(t,ca,a)):((e.lanes&n)!==0&&(Ua(e,t),Xa(t,null,null,n),Ya()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Yi(t,ca,r),r!==a.cache&&Qi(t,[ca],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Yi(t,ca,r))),cc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Lc(e){e.flags|=4}function Rc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Fu())e.flags|=8192;else throw Aa=Ea,wa}}else e.flags&=-16777217}function zc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!rp(t)){if(Fu())e.flags|=8192;else throw Aa=Ea,wa}}function Bc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Je(),e.lanes|=t,ou|=t)}function Vc(e,t){if(!Fi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Hc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Uc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Hc(t),null;case 1:return Hc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Xi(ca),ue(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Hi(t)?Lc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wi())),Hc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Lc(t),o===null?(Hc(t),Rc(t,a,null,r,n)):(Hc(t),zc(t,o))):o?o===e.memoizedState?(Hc(t),t.flags&=-16777217):(Lc(t),Hc(t),zc(t,o)):(e=e.memoizedProps,e!==r&&Lc(t),Hc(t),Rc(t,a,e,r,n)),null;case 27:if(fe(t),n=se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Hc(t),null}e=ae.current,Hi(t)?Bi(t,e):(e=Tf(a,r,n),t.stateNode=e,Lc(t))}return Hc(t),null;case 5:if(fe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Hc(t),null}if(o=ae.current,Hi(t))Bi(t,o);else{var s=ef(se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ot]=t,o[st]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Jd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return Hc(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=se.current,Hi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ni,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ot]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Gd(e.nodeValue,n)),e||zi(t,!0)}else e=ef(e).createTextNode(r),e[ot]=t,t.stateNode=e}return Hc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Hi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ot]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),e=!1}else n=Wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(uo(t),t):(uo(t),null);if(t.flags&128)throw Error(i(558))}return Hc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Hi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ot]=t}else Ui(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),a=!1}else a=Wi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(uo(t),t):(uo(t),null)}return uo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),Hc(t),null);case 4:return ue(),e===null&&Fd(t.stateNode.containerInfo),Hc(t),null;case 10:return Xi(t.type),Hc(t),null;case 19:if(re(fo),r=t.memoizedState,r===null)return Hc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Vc(r,!1);else{if(tu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=po(e),o!==null){for(t.flags|=128,Vc(r,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return ie(fo,fo.current&1|2),Fi&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Te()>fu&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=po(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Fi)return Hc(t),null}else 2*Te()-r.renderingStartTime>fu&&n!==536870912&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Hc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Te(),e.sibling=null,n=fo.current,ie(fo,a?n&1|2:n&1),Fi&&Oi(t,r.treeForkCount),e);case 22:case 23:return uo(t),ro(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Hc(t),t.subtreeFlags&6&&(t.flags|=8192)):Hc(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&re(ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Xi(ca),Hc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Wc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Xi(ca),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(uo(t),t.alternate===null)throw Error(i(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(uo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ui()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(fo),null;case 4:return ue(),null;case 10:return Xi(t.type),null;case 22:case 23:return uo(t),ro(),e!==null&&re(ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Xi(ca),null;case 25:return null;default:return null}}function Gc(e,t){switch(ji(t),t.tag){case 3:Xi(ca),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&uo(t);break;case 13:uo(t);break;case 19:re(fo);break;case 10:Xi(t.type);break;case 22:case 23:uo(t),ro(),e!==null&&re(ya);break;case 24:Xi(ca)}}function Kc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){nd(t,t.return,e)}}function qc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){nd(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){nd(t,t.return,e)}}function Jc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Qa(t,n)}catch(t){nd(e,e.return,t)}}}function Yc(e,t,n){n.props=Xs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){nd(e,t,n)}}function Xc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){nd(e,t,n)}}function Zc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){nd(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){nd(e,t,n)}else n.current=null}}function Qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){nd(e,e.return,t)}}function $c(e,t,n){try{var r=e.stateNode;Yd(r,e.type,n,t),r[st]=t}catch(t){nd(e,e.return,t)}}function el(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&df(e.type)||e.tag===4}function tl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||el(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.tag===27&&df(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=$t));else if(r!==4&&(r===27&&df(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&df(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Jd(t,r,n),t[ot]=e,t[st]=n}catch(t){nd(e,e.return,t)}}var al=!1,ol=!1,sl=!1,cl=typeof WeakSet==`function`?WeakSet:Set,ll=null;function ul(e,t){if(e=e.containerInfo,Qd=bp,e=Dr(e),Or(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for($d={focusedElem:e,selectionRange:n},bp=!1,ll=t;ll!==null;)if(t=ll,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ll=e;else for(;ll!==null;){switch(t=ll,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Xs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){nd(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)mf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:mf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ll=e;break}ll=t.return}}function dl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:El(e,n),r&4&&Kc(5,n);break;case 1:if(El(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){nd(n,n.return,e)}else{var i=Xs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){nd(n,n.return,e)}}}r&64&&Jc(n),r&512&&Xc(n,n.return);break;case 3:if(El(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Qa(e,t)}catch(e){nd(n,n.return,e)}}break;case 27:t===null&&r&4&&il(n);case 26:case 5:El(e,n),t===null&&r&4&&Qc(n),r&512&&Xc(n,n.return);break;case 12:El(e,n);break;case 31:El(e,n),r&4&&_l(e,n);break;case 13:El(e,n),r&4&&vl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=od.bind(null,n),bf(e,n))));break;case 22:if(r=n.memoizedState!==null||al,!r){t=t!==null&&t.memoizedState!==null||ol,i=al;var a=ol;al=r,(ol=t)&&!a?Ol(e,n,!!(n.subtreeFlags&8772)):El(e,n),al=i,ol=a}break;case 30:break;default:El(e,n)}}function fl(e){var t=e.alternate;t!==null&&(e.alternate=null,fl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&mt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var pl=null,ml=!1;function hl(e,t,n){for(n=n.child;n!==null;)gl(e,t,n),n=n.sibling}function gl(e,t,n){if(Fe&&typeof Fe.onCommitFiberUnmount==`function`)try{Fe.onCommitFiberUnmount(Pe,n)}catch{}switch(n.tag){case 26:ol||Zc(n,t),hl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ol||Zc(n,t);var r=pl,i=ml;df(n.type)&&(pl=n.stateNode,ml=!1),hl(e,t,n),Ef(n.stateNode),pl=r,ml=i;break;case 5:ol||Zc(n,t);case 6:if(r=pl,i=ml,pl=null,hl(e,t,n),pl=r,ml=i,pl!==null){if(ml)try{(pl.nodeType===9?pl.body:pl.nodeName===`HTML`?pl.ownerDocument.body:pl).removeChild(n.stateNode)}catch(e){nd(n,t,e)}else try{pl.removeChild(n.stateNode)}catch(e){nd(n,t,e)}}break;case 18:pl!==null&&(ml?(e=pl,ff(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Kp(e)):ff(pl,n.stateNode));break;case 4:r=pl,i=ml,pl=n.stateNode.containerInfo,ml=!0,hl(e,t,n),pl=r,ml=i;break;case 0:case 11:case 14:case 15:qc(2,n,t),ol||qc(4,n,t),hl(e,t,n);break;case 1:ol||(Zc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Yc(n,t,r)),hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:ol=(r=ol)||n.memoizedState!==null,hl(e,t,n),ol=r;break;default:hl(e,t,n)}}function _l(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Kp(e)}catch(e){nd(t,t.return,e)}}}function vl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Kp(e)}catch(e){nd(t,t.return,e)}}function yl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cl),t;default:throw Error(i(435,e.tag))}}function bl(e,t){var n=yl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=sd.bind(null,e,t);t.then(r,r)}})}function xl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(df(c.type)){pl=c.stateNode,ml=!1;break a}break;case 5:pl=c.stateNode,ml=!1;break a;case 3:case 4:pl=c.stateNode.containerInfo,ml=!0;break a}c=c.return}if(pl===null)throw Error(i(160));gl(o,s,a),pl=null,ml=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cl(t,e),t=t.sibling}var Sl=null;function Cl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:xl(t,e),wl(e),r&4&&(qc(3,e,e.return),Kc(3,e),qc(5,e,e.return));break;case 1:xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),r&64&&al&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Sl;if(xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[pt]||o[ot]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Jd(o,r,n),o[ot]=e,yt(o),r=o;break a;case`link`:var s=ep(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Jd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=ep(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Jd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ot]=e,yt(o),r=o}e.stateNode=r}else tp(a,e.type,e.stateNode)}else e.stateNode=Yf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&$c(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?tp(a,e.type,e.stateNode):Yf(a,r,e.memoizedProps))}break;case 27:xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),n!==null&&r&4&&$c(e,e.memoizedProps,n.memoizedProps);break;case 5:if(xl(t,e),wl(e),r&512&&(ol||n===null||Zc(n,n.return)),e.flags&32){a=e.stateNode;try{Gt(a,``)}catch(t){nd(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,$c(e,a,n===null?a:n.memoizedProps)),r&1024&&(sl=!0);break;case 6:if(xl(t,e),wl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){nd(e,e.return,t)}}break;case 3:if($f=null,a=Sl,Sl=kf(t.containerInfo),xl(t,e),Sl=a,wl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Kp(t.containerInfo)}catch(t){nd(e,e.return,t)}sl&&(sl=!1,Tl(e));break;case 4:r=Sl,Sl=kf(e.stateNode.containerInfo),xl(t,e),wl(e),Sl=r;break;case 12:xl(t,e),wl(e);break;case 31:xl(t,e),wl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 13:xl(t,e),wl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(uu=Te()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=al,d=ol;if(al=u||a,ol=d||l,xl(t,e),ol=d,al=u,wl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||al||ol||Dl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){nd(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){nd(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?pf(m,!0):pf(l.stateNode,!1)}catch(e){nd(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,bl(e,n))));break;case 19:xl(t,e),wl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,bl(e,r)));break;case 30:break;case 21:break;default:xl(t,e),wl(e)}}function wl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(el(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;rl(e,tl(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Gt(o,``),n.flags&=-33),rl(e,tl(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;nl(e,tl(e),s);break;default:throw Error(i(161))}}catch(t){nd(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Tl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function El(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dl(e,t.alternate,t),t=t.sibling}function Dl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qc(4,t,t.return),Dl(t);break;case 1:Zc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Yc(t,t.return,n),Dl(t);break;case 27:Ef(t.stateNode);case 26:case 5:Zc(t,t.return),Dl(t);break;case 22:t.memoizedState===null&&Dl(t);break;case 30:Dl(t);break;default:Dl(t)}e=e.sibling}}function Ol(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Ol(i,a,n),Kc(4,a);break;case 1:if(Ol(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){nd(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Za(c[i],s)}catch(e){nd(r,r.return,e)}}n&&o&64&&Jc(a),Xc(a,a.return);break;case 27:il(a);case 26:case 5:Ol(i,a,n),n&&r===null&&o&4&&Qc(a),Xc(a,a.return);break;case 12:Ol(i,a,n);break;case 31:Ol(i,a,n),n&&o&4&&_l(i,a);break;case 13:Ol(i,a,n),n&&o&4&&vl(i,a);break;case 22:a.memoizedState===null&&Ol(i,a,n),Xc(a,a.return);break;case 30:break;default:Ol(i,a,n)}t=t.sibling}}function kl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ua(n))}function Al(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e))}function jl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ml(e,t,n,r),t=t.sibling}function Ml(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:jl(e,t,n,r),i&2048&&Kc(9,t);break;case 1:jl(e,t,n,r);break;case 3:jl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ua(e)));break;case 12:if(i&2048){jl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){nd(t,t.return,e)}}else jl(e,t,n,r);break;case 31:jl(e,t,n,r);break;case 13:jl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?jl(e,t,n,r):(a._visibility|=2,Nl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?jl(e,t,n,r):Pl(e,t),i&2048&&kl(o,t);break;case 24:jl(e,t,n,r),i&2048&&Al(t.alternate,t);break;default:jl(e,t,n,r)}}function Nl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Nl(a,o,s,c,i),Kc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Nl(a,o,s,c,i)):u._visibility&2?Nl(a,o,s,c,i):Pl(a,o),i&&l&2048&&kl(o.alternate,o);break;case 24:Nl(a,o,s,c,i),i&&l&2048&&Al(o.alternate,o);break;default:Nl(a,o,s,c,i)}t=t.sibling}}function Pl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Pl(n,r),i&2048&&kl(r.alternate,r);break;case 24:Pl(n,r),i&2048&&Al(r.alternate,r);break;default:Pl(n,r)}t=t.sibling}}var Fl=8192;function Il(e,t,n){if(e.subtreeFlags&Fl)for(e=e.child;e!==null;)Ll(e,t,n),e=e.sibling}function Ll(e,t,n){switch(e.tag){case 26:Il(e,t,n),e.flags&Fl&&e.memoizedState!==null&&ip(n,Sl,e.memoizedState,e.memoizedProps);break;case 5:Il(e,t,n);break;case 3:case 4:var r=Sl;Sl=kf(e.stateNode.containerInfo),Il(e,t,n),Sl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Fl,Fl=16777216,Il(e,t,n),Fl=r):Il(e,t,n));break;default:Il(e,t,n)}}function Rl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function zl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ll=r,Hl(r,e)}Rl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bl(e),e=e.sibling}function Bl(e){switch(e.tag){case 0:case 11:case 15:zl(e),e.flags&2048&&qc(9,e,e.return);break;case 3:zl(e);break;case 12:zl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vl(e)):zl(e);break;default:zl(e)}}function Vl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ll=r,Hl(r,e)}Rl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qc(8,t,t.return),Vl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Vl(t));break;default:Vl(t)}e=e.sibling}}function Hl(e,t){for(;ll!==null;){var n=ll;switch(n.tag){case 0:case 11:case 15:qc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ua(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ll=r;else a:for(n=e;ll!==null;){r=ll;var i=r.sibling,a=r.return;if(fl(r),r===n){ll=null;break a}if(i!==null){i.return=a,ll=i;break a}ll=a}}}var Ul={getCacheForType:function(e){var t=na(ca),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return na(ca).controller.signal}},Wl=typeof WeakMap==`function`?WeakMap:Map,Gl=0,Kl=null,ql=null,Jl=0,Yl=0,Xl=null,Zl=!1,Ql=!1,$l=!1,eu=0,tu=0,nu=0,ru=0,iu=0,au=0,ou=0,su=null,cu=null,lu=!1,uu=0,du=0,fu=1/0,pu=null,mu=null,hu=0,gu=null,_u=null,vu=0,yu=0,bu=null,xu=null,Su=0,Cu=null;function wu(){return Gl&2&&Jl!==0?Jl&-Jl:I.T===null?rt():Cd()}function Tu(){if(au===0){if(!(Jl&536870912)||Fi){var e=He;He<<=1,!(He&3932160)&&(He=262144),au=e}else au=536870912}return e=io.current,e!==null&&(e.flags|=32),au}function Eu(e,t,n){(e===Kl&&(Yl===2||Yl===9)||e.cancelPendingCommit!==null)&&(Nu(e,0),Au(e,Jl,au,!1)),Xe(e,n),(!(Gl&2)||e!==Kl)&&(e===Kl&&(!(Gl&2)&&(ru|=n),tu===4&&Au(e,Jl,au,!1)),hd(e))}function Du(e,t,n){if(Gl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ke(e,t),a=r?Vu(e,t):zu(e,t,!0),o=r;do{if(a===0){Ql&&!r&&Au(e,t,0,!1);break}if(n=e.current.alternate,o&&!ku(n)){a=zu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=su;var l=c.current.memoizedState.isDehydrated;if(l&&(Nu(c,s).flags|=256),s=zu(c,s,!1),s!==2){if($l&&!l){c.errorRecoveryDisabledLanes|=o,ru|=o,a=4;break a}o=cu,cu=a,o!==null&&(cu===null?cu=o:cu.push.apply(cu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Nu(e,0),Au(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Au(r,t,au,!Zl);break a;case 2:cu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=uu+300-Te(),10<a)){if(Au(r,t,au,!Zl),Ge(r,0,!0)!==0)break a;vu=t,r.timeoutHandle=sf(Ou.bind(null,r,n,cu,pu,lu,t,au,ru,ou,Zl,o,`Throttled`,-0,0),a);break a}Ou(r,n,cu,pu,lu,t,au,ru,ou,Zl,o,null,-0,0)}break}while(1);hd(e)}function Ou(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$t},Ll(t,a,d);var m=(a&62914560)===a?uu-Te():(a&4194048)===a?du-Te():0;if(m=op(d,m),m!==null){vu=a,e.cancelPendingCommit=m(Ju.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Au(e,a,o,!l);return}}Ju(e,t,a,n,r,i,o,s,c)}function ku(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Sr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Au(e,t,n,r){t&=~iu,t&=~ru,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Le(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Qe(e,n,t)}function ju(){return Gl&6?!0:(gd(0,!1),!1)}function Mu(){if(ql!==null){if(Yl===0)var e=ql.return;else e=ql,Ji=qi=null,No(e),Na=null,Pa=0,e=ql;for(;e!==null;)Gc(e.alternate,e),e=e.return;ql=null}}function Nu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,cf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),vu=0,Mu(),Kl=e,ql=n=ui(e.current,null),Jl=t,Yl=0,Xl=null,Zl=!1,Ql=Ke(e,t),$l=!1,ou=au=iu=ru=nu=tu=0,cu=su=null,lu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Le(r),a=1<<i;t|=e[i],r&=~a}return eu=t,ei(),n}function Pu(e,t){ho=null,I.H=Hs,t===Ca||t===Ta?(t=ja(),Yl=3):t===wa?(t=ja(),Yl=4):Yl=t===oc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Xl=t,ql===null&&(tu=1,ec(e,vi(t,e.current)))}function Fu(){var e=io.current;return e===null?!0:(Jl&4194048)===Jl?ao===null:(Jl&62914560)===Jl||Jl&536870912?e===ao:!1}function Iu(){var e=I.H;return I.H=Hs,e===null?Hs:e}function Lu(){var e=I.A;return I.A=Ul,e}function Ru(){tu=4,Zl||(Jl&4194048)!==Jl&&io.current!==null||(Ql=!0),!(nu&134217727)&&!(ru&134217727)||Kl===null||Au(Kl,Jl,au,!1)}function zu(e,t,n){var r=Gl;Gl|=2;var i=Iu(),a=Lu();(Kl!==e||Jl!==t)&&(pu=null,Nu(e,t)),t=!1;var o=tu;a:do try{if(Yl!==0&&ql!==null){var s=ql,c=Xl;switch(Yl){case 8:Mu(),o=6;break a;case 3:case 2:case 9:case 6:io.current===null&&(t=!0);var l=Yl;if(Yl=0,Xl=null,Gu(e,s,c,l),n&&Ql){o=0;break a}break;default:l=Yl,Yl=0,Xl=null,Gu(e,s,c,l)}}Bu(),o=tu;break}catch(t){Pu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ji=qi=null,Gl=r,I.H=i,I.A=a,ql===null&&(Kl=null,Jl=0,ei()),o}function Bu(){for(;ql!==null;)Uu(ql)}function Vu(e,t){var n=Gl;Gl|=2;var r=Iu(),a=Lu();Kl!==e||Jl!==t?(pu=null,fu=Te()+500,Nu(e,t)):Ql=Ke(e,t);a:do try{if(Yl!==0&&ql!==null){t=ql;var o=Xl;b:switch(Yl){case 1:Yl=0,Xl=null,Gu(e,t,o,1);break;case 2:case 9:if(Da(o)){Yl=0,Xl=null,Wu(t);break}t=function(){Yl!==2&&Yl!==9||Kl!==e||(Yl=7),hd(e)},o.then(t,t);break a;case 3:Yl=7;break a;case 4:Yl=5;break a;case 7:Da(o)?(Yl=0,Xl=null,Wu(t)):(Yl=0,Xl=null,Gu(e,t,o,7));break;case 5:var s=null;switch(ql.tag){case 26:s=ql.memoizedState;case 5:case 27:var c=ql;if(s?rp(s):c.stateNode.complete){Yl=0,Xl=null;var l=c.sibling;if(l!==null)ql=l;else{var u=c.return;u===null?ql=null:(ql=u,Ku(u))}break b}}Yl=0,Xl=null,Gu(e,t,o,5);break;case 6:Yl=0,Xl=null,Gu(e,t,o,6);break;case 8:Mu(),tu=6;break a;default:throw Error(i(462))}}Hu();break}catch(t){Pu(e,t)}while(1);return Ji=qi=null,I.H=r,I.A=a,Gl=n,ql===null?(Kl=null,Jl=0,ei(),tu):0}function Hu(){for(;ql!==null&&!Ce();)Uu(ql)}function Uu(e){var t=Ic(e.alternate,e,eu);e.memoizedProps=e.pendingProps,t===null?Ku(e):ql=t}function Wu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=bc(n,t,t.pendingProps,t.type,void 0,Jl);break;case 11:t=bc(n,t,t.pendingProps,t.type.render,t.ref,Jl);break;case 5:No(t);default:Gc(n,t),t=ql=di(t,eu),t=Ic(n,t,eu)}e.memoizedProps=e.pendingProps,t===null?Ku(e):ql=t}function Gu(e,t,n,r){Ji=qi=null,No(t),Na=null,Pa=0;var i=t.return;try{if(ac(e,i,t,n,Jl)){tu=1,ec(e,vi(n,e.current)),ql=null;return}}catch(t){if(i!==null)throw ql=i,t;tu=1,ec(e,vi(n,e.current)),ql=null;return}t.flags&32768?(Fi||r===1?e=!0:Ql||Jl&536870912?e=!1:(Zl=e=!0,(r===2||r===9||r===3||r===6)&&(r=io.current,r!==null&&r.tag===13&&(r.flags|=16384))),qu(t,e)):Ku(t)}function Ku(e){var t=e;do{if(t.flags&32768){qu(t,Zl);return}e=t.return;var n=Uc(t.alternate,t,eu);if(n!==null){ql=n;return}if(t=t.sibling,t!==null){ql=t;return}ql=t=e}while(t!==null);tu===0&&(tu=5)}function qu(e,t){do{var n=Wc(e.alternate,e);if(n!==null){n.flags&=32767,ql=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ql=e;return}ql=e=n}while(e!==null);tu=6,ql=null}function Ju(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do $u();while(hu!==0);if(Gl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=$r,Ze(e,n,o,s,c,l),e===Kl&&(ql=Kl=null,Jl=0),_u=t,gu=e,vu=n,yu=o,bu=a,xu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,cd(ke,function(){return ed(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=Gl,Gl|=4;try{ul(e,t,n)}finally{Gl=s,L.p=a,I.T=r}}hu=1,Yu(),Xu(),Zu()}}function Yu(){if(hu===1){hu=0;var e=gu,t=_u,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Gl;Gl|=4;try{Cl(t,e);var a=$d,o=Dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Er(s.ownerDocument.documentElement,s)){if(c!==null&&Or(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}bp=!!Qd,$d=Qd=null}finally{Gl=i,L.p=r,I.T=n}}e.current=t,hu=2}}function Xu(){if(hu===2){hu=0;var e=gu,t=_u,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=Gl;Gl|=4;try{dl(e,t.alternate,t)}finally{Gl=i,L.p=r,I.T=n}}hu=3}}function Zu(){if(hu===4||hu===3){hu=0,we();var e=gu,t=_u,n=vu,r=xu;t.subtreeFlags&10256||t.flags&10256?hu=5:(hu=0,_u=gu=null,Qu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(mu=null),nt(n),t=t.stateNode,Fe&&typeof Fe.onCommitFiberRoot==`function`)try{Fe.onCommitFiberRoot(Pe,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}vu&3&&$u(),hd(e),i=e.pendingLanes,n&261930&&i&42?e===Cu?Su++:(Su=0,Cu=e):Su=0,gd(0,!1)}}function Qu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ua(t)))}function $u(){return Yu(),Xu(),Zu(),ed()}function ed(){if(hu!==5)return!1;var e=gu,t=yu;yu=0;var n=nt(vu),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=bu,bu=null;var o=gu,s=vu;if(hu=0,_u=gu=null,vu=0,Gl&6)throw Error(i(331));var c=Gl;if(Gl|=4,Bl(o.current),Ml(o,o.current,s,n),Gl=c,gd(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot==`function`)try{Fe.onPostCommitFiberRoot(Pe,o)}catch{}return!0}finally{L.p=a,I.T=r,Qu(e,t)}}function td(e,t,n){t=vi(n,t),t=nc(e.stateNode,t,2),e=Ga(e,t,2),e!==null&&(Xe(e,2),hd(e))}function nd(e,t,n){if(e.tag===3)td(e,e,n);else for(;t!==null;){if(t.tag===3){td(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(mu===null||!mu.has(r))){e=vi(n,e),n=rc(2),r=Ga(t,n,2),r!==null&&(ic(n,r,t,e),Xe(r,2),hd(r));break}}t=t.return}}function rd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||($l=!0,i.add(n),e=id.bind(null,e,t,n),t.then(e,e))}function id(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Kl===e&&(Jl&n)===n&&(tu===4||tu===3&&(Jl&62914560)===Jl&&300>Te()-uu?!(Gl&2)&&Nu(e,0):iu|=n,ou===Jl&&(ou=0)),hd(e)}function ad(e,t){t===0&&(t=Je()),e=ri(e,t),e!==null&&(Xe(e,t),hd(e))}function od(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ad(e,n)}function sd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),ad(e,n)}function cd(e,t){return xe(e,t)}var ld=null,ud=null,dd=!1,fd=!1,pd=!1,md=0;function hd(e){e!==ud&&e.next===null&&(ud===null?ld=ud=e:ud=ud.next=e),fd=!0,dd||(dd=!0,Sd())}function gd(e,t){if(!pd&&fd){pd=!0;do for(var n=!1,r=ld;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Le(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,xd(r,a))}else a=Jl,a=Ge(r,r===Kl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ke(r,a)||(n=!0,xd(r,a))}r=r.next}while(n);pd=!1}}function _d(){vd()}function vd(){fd=dd=!1;var e=0;md!==0&&of()&&(e=md);for(var t=Te(),n=null,r=ld;r!==null;){var i=r.next,a=yd(r,t);a===0?(r.next=null,n===null?ld=i:n.next=i,i===null&&(ud=n)):(n=r,(e!==0||a&3)&&(fd=!0)),r=i}hu!==0&&hu!==5||gd(e,!1),md!==0&&(md=0)}function yd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Le(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=qe(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Kl,n=Jl,n=Ge(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Yl===2||Yl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Se(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ke(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Se(r),nt(n)){case 2:case 8:n=Oe;break;case 32:n=ke;break;case 268435456:n=je;break;default:n=ke}return r=bd.bind(null,e),n=xe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Se(r),e.callbackPriority=2,e.callbackNode=null,2}function bd(e,t){if(hu!==0&&hu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if($u()&&e.callbackNode!==n)return null;var r=Jl;return r=Ge(e,e===Kl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Du(e,r,t),yd(e,Te()),e.callbackNode!=null&&e.callbackNode===n?bd.bind(null,e):null)}function xd(e,t){if($u())return null;Du(e,t,!0)}function Sd(){uf(function(){Gl&6?xe(De,_d):vd()})}function Cd(){if(md===0){var e=pa;e===0&&(e=Ve,Ve<<=1,!(Ve&261888)&&(Ve=256)),md=e}return md}function wd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Qt(``+e)}function Td(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Ed(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=wd((i[st]||null).action),o=r.submitter;o&&(t=(t=o[st]||null)?wd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new xn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(md!==0){var e=o?Td(i,o):new FormData(i);Os(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Td(i,o):new FormData(i),Os(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Dd=0;Dd<Jr.length;Dd++){var Od=Jr[Dd];Yr(Od.toLowerCase(),`on`+(Od[0].toUpperCase()+Od.slice(1)))}Yr(Br,`onAnimationEnd`),Yr(Vr,`onAnimationIteration`),Yr(Hr,`onAnimationStart`),Yr(`dblclick`,`onDoubleClick`),Yr(`focusin`,`onFocus`),Yr(`focusout`,`onBlur`),Yr(Ur,`onTransitionRun`),Yr(Wr,`onTransitionStart`),Yr(Gr,`onTransitionCancel`),Yr(Kr,`onTransitionEnd`),Ct(`onMouseEnter`,[`mouseout`,`mouseover`]),Ct(`onMouseLeave`,[`mouseout`,`mouseover`]),Ct(`onPointerEnter`,[`pointerout`,`pointerover`]),Ct(`onPointerLeave`,[`pointerout`,`pointerover`]),St(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),St(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),St(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),St(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),St(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var kd=`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(` `),Ad=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(kd));function jd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}}}}function Md(e,t){var n=t[lt];n===void 0&&(n=t[lt]=new Set);var r=e+`__bubble`;n.has(r)||(Id(t,e,2,!1),n.add(r))}function Nd(e,t,n){var r=0;t&&(r|=4),Id(n,e,r,t)}var Pd=`_reactListening`+Math.random().toString(36).slice(2);function Fd(e){if(!e[Pd]){e[Pd]=!0,bt.forEach(function(t){t!==`selectionchange`&&(Ad.has(t)||Nd(t,!1,e),Nd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pd]||(t[Pd]=!0,Nd(`selectionchange`,!1,t))}}function Id(e,t,n,r){switch(Dp(t)){case 2:var i=xp;break;case 8:i=Sp;break;default:i=Cp}n=i.bind(null,t,n,e),i=void 0,!un||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Ld(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ht(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}sn(function(){var r=a,i=tn(n),s=[];a:{var c=qr.get(e);if(c!==void 0){var l=xn,u=e;switch(e){case`keypress`:if(gn(n)===0)break a;case`keydown`:case`keyup`:l=zn;break;case`focusin`:u=`focus`,l=An;break;case`focusout`:u=`blur`,l=An;break;case`beforeblur`:case`afterblur`:l=An;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=On;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Vn;break;case Br:case Vr:case Hr:l=jn;break;case Kr:l=Hn;break;case`scroll`:case`scrollend`:l=Cn;break;case`wheel`:l=Un;break;case`copy`:case`cut`:case`paste`:l=Mn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Bn;break;case`toggle`:case`beforetoggle`:l=Wn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=cn(m,p),g!=null&&d.push(Rd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==en&&(u=n.relatedTarget||n.fromElement)&&(ht(u)||u[ct]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ht(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=On,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Bn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:_t(l),h=u==null?c:_t(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ht(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Bd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Vd(s,c,l,d,!1),u!==null&&f!==null&&Vd(s,f,u,d,!0)}}a:{if(c=r?_t(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ur;else if(ir(c)){if(dr)v=br;else{v=vr;var y=_r}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Yt(r.elementType)&&(v=ur):v=yr;if(v&&=v(e,r)){ar(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Vt(c,`number`,c.value)}switch(y=r?_t(r):window,e){case`focusin`:(ir(y)||y.contentEditable===`true`)&&(Ar=y,jr=r,Mr=null);break;case`focusout`:Mr=jr=Ar=null;break;case`mousedown`:Nr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Nr=!1,Pr(s,n,i);break;case`selectionchange`:if(kr)break;case`keydown`:case`keyup`:Pr(s,n,i)}var b;if(Kn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else er?Qn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Yn&&n.locale!==`ko`&&(er||x!==`onCompositionStart`?x===`onCompositionEnd`&&er&&(b=hn()):(fn=i,pn=`value`in fn?fn.value:fn.textContent,er=!0)),y=zd(r,x),0<y.length&&(x=new Nn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=$n(n),b!==null&&(x.data=b)))),(b=Jn?tr(e,n):nr(e,n))&&(x=zd(r,`onBeforeInput`),0<x.length&&(y=new Nn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),Ed(s,e,r,n,i)}jd(s,t)})}function Rd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=cn(e,n),i!=null&&r.unshift(Rd(e,i,a)),i=cn(e,t),i!=null&&r.push(Rd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Bd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Vd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=cn(n,a),l!=null&&o.unshift(Rd(n,l,c))):i||(l=cn(n,a),l!=null&&o.push(Rd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Hd=/\r\n?/g,Ud=/\u0000|\uFFFD/g;function Wd(e){return(typeof e==`string`?e:``+e).replace(Hd,`
`).replace(Ud,``)}function Gd(e,t){return t=Wd(t),Wd(e)===t}function Kd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Gt(e,``+r);break;case`className`:kt(e,`class`,r);break;case`tabIndex`:kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:kt(e,n,r);break;case`style`:Jt(e,r,o);break;case`data`:if(t!==`object`){kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Kd(e,t,`name`,a.name,a,null),Kd(e,t,`formEncType`,a.formEncType,a,null),Kd(e,t,`formMethod`,a.formMethod,a,null),Kd(e,t,`formTarget`,a.formTarget,a,null)):(Kd(e,t,`encType`,a.encType,a,null),Kd(e,t,`method`,a.method,a,null),Kd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Qt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`onScroll`:r!=null&&Md(`scroll`,e);break;case`onScrollEnd`:r!=null&&Md(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Qt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Md(`beforetoggle`,e),Md(`toggle`,e),Ot(e,`popover`,r);break;case`xlinkActuate`:At(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:At(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:At(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:At(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ot(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Xt.get(n)||n,Ot(e,n,r))}}function qd(e,t,n,r,a,o){switch(n){case`style`:Jt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Gt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Gt(e,``+r);break;case`onScroll`:r!=null&&Md(`scroll`,e);break;case`onScrollEnd`:r!=null&&Md(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=$t);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!xt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[st]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Ot(e,n,r)}}}function Jd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Md(`error`,e),Md(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Kd(e,t,o,s,n,null)}}a&&Kd(e,t,`srcSet`,n.srcSet,n,null),r&&Kd(e,t,`src`,n.src,n,null);return;case`input`:Md(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Kd(e,t,r,d,n,null)}}Bt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Md(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Kd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ht(e,!!r,n,!0):Ht(e,!!r,t,!1);return;case`textarea`:for(s in Md(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Kd(e,t,s,c,n,null)}Wt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Kd(e,t,l,r,n,null)}return;case`dialog`:Md(`beforetoggle`,e),Md(`toggle`,e),Md(`cancel`,e),Md(`close`,e);break;case`iframe`:case`object`:Md(`load`,e);break;case`video`:case`audio`:for(r=0;r<kd.length;r++)Md(kd[r],e);break;case`image`:Md(`error`,e),Md(`load`,e);break;case`details`:Md(`toggle`,e);break;case`embed`:case`source`:case`link`:Md(`error`,e),Md(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Kd(e,t,u,r,n,null)}return;default:if(Yt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&qd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Kd(e,t,c,r,n,null))}function Yd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Kd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Kd(e,t,p,m,r,f)}}zt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Kd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Kd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ht(e,!!n,n?[]:``,!1):Ht(e,!!n,t,!0)):Ht(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Kd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Kd(e,t,s,a,r,o)}Ut(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Kd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Kd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Kd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Kd(e,t,u,p,r,m)}return;default:if(Yt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&qd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||qd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Kd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Kd(e,t,f,p,r,m)}function Xd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Zd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Xd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Xd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Qd=null,$d=null;function ef(e){return e.nodeType===9?e:e.ownerDocument}function tf(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function nf(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function rf(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var af=null;function of(){var e=window.event;return e&&e.type===`popstate`?e!==af&&(af=e,!0):(af=null,!1)}var sf=typeof setTimeout==`function`?setTimeout:void 0,cf=typeof clearTimeout==`function`?clearTimeout:void 0,lf=typeof Promise==`function`?Promise:void 0,uf=typeof queueMicrotask==`function`?queueMicrotask:lf===void 0?sf:function(e){return lf.resolve(null).then(e).catch(B)};function B(e){setTimeout(function(){throw e})}function df(e){return e===`head`}function ff(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Kp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Ef(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Ef(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[pt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Ef(e.ownerDocument.body)}n=i}while(n);Kp(t)}function pf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function mf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:mf(n),mt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function hf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[pt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=xf(e.nextSibling),e===null)break}return null}function gf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=xf(e.nextSibling),e===null))return null;return e}function _f(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=xf(e.nextSibling),e===null))return null;return e}function vf(e){return e.data===`$?`||e.data===`$~`}function yf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function bf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function xf(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===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var Sf=null;function Cf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return xf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function wf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Tf(e,t,n){switch(t=ef(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Ef(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);mt(e)}var Df=new Map,Of=new Set;function kf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Af=L.d;L.d={f:jf,r:Mf,D:Ff,C:If,L:Lf,m:Rf,X:Bf,S:zf,M:Vf};function jf(){var e=Af.f(),t=ju();return e||t}function Mf(e){var t=gt(e);t!==null&&t.tag===5&&t.type===`form`?As(t):Af.r(e)}var Nf=typeof document>`u`?null:document;function Pf(e,t,n){var r=Nf;if(r&&typeof t==`string`&&t){var i=Rt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Of.has(i)||(Of.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Jd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Ff(e){Af.D(e),Pf(`dns-prefetch`,e,null)}function If(e,t){Af.C(e,t),Pf(`preconnect`,e,t)}function Lf(e,t,n){Af.L(e,t,n);var r=Nf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Rt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Rt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Rt(n.imageSizes)+`"]`)):i+=`[href="`+Rt(e)+`"]`;var a=i;switch(t){case`style`:a=Uf(e);break;case`script`:a=qf(e)}Df.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Df.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Wf(a))||t===`script`&&r.querySelector(Jf(a))||(t=r.createElement(`link`),Jd(t,`link`,e),yt(t),r.head.appendChild(t)))}}function Rf(e,t){Af.m(e,t);var n=Nf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Rt(r)+`"][href="`+Rt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=qf(e)}if(!Df.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Df.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Jf(a)))return}r=n.createElement(`link`),Jd(r,`link`,e),yt(r),n.head.appendChild(r)}}}function zf(e,t,n){Af.S(e,t,n);var r=Nf;if(r&&e){var i=vt(r).hoistableStyles,a=Uf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Wf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Df.get(a))&&Zf(e,n);var c=o=r.createElement(`link`);yt(c),Jd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Xf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Bf(e,t){Af.X(e,t);var n=Nf;if(n&&e){var r=vt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),yt(a),Jd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vf(e,t){Af.M(e,t);var n=Nf;if(n&&e){var r=vt(n).hoistableScripts,i=qf(e),a=r.get(i);a||(a=n.querySelector(Jf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Df.get(i))&&Qf(e,t),a=n.createElement(`script`),yt(a),Jd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Hf(e,t,n,r){var a=(a=se.current)?kf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Uf(n.href),n=vt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Uf(n.href);var o=vt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Wf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Df.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Df.set(e,n),o||Kf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=qf(n),n=vt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Uf(e){return`href="`+Rt(e)+`"`}function Wf(e){return`link[rel="stylesheet"][`+e+`]`}function Gf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Kf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Jd(t,`link`,n),yt(t),e.head.appendChild(t))}function qf(e){return`[src="`+Rt(e)+`"]`}function Jf(e){return`script[async]`+e}function Yf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Rt(n.href)+`"]`);if(r)return t.instance=r,yt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),yt(r),Jd(r,`style`,a),Xf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Uf(n.href);var o=e.querySelector(Wf(a));if(o)return t.state.loading|=4,t.instance=o,yt(o),o;r=Gf(n),(a=Df.get(a))&&Zf(r,a),o=(e.ownerDocument||e).createElement(`link`),yt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Jd(o,`link`,r),t.state.loading|=4,Xf(o,n.precedence,e),t.instance=o;case`script`:return o=qf(n.src),(a=e.querySelector(Jf(o)))?(t.instance=a,yt(a),a):(r=n,(a=Df.get(o))&&(r=f({},n),Qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),yt(a),Jd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Xf(r,n.precedence,e));return t.instance}function Xf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var $f=null;function ep(e,t,n){if($f===null){var r=new Map,i=$f=new Map;i.set(n,r)}else i=$f,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[pt]||a[ot]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function tp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function np(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function rp(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ip(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Uf(r.href),a=t.querySelector(Wf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=sp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,yt(a);return}a=t.ownerDocument||t,r=Gf(r),(i=Df.get(i))&&Zf(r,i),a=a.createElement(`link`),yt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Jd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=sp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ap=0;function op(e,t){return e.stylesheets&&e.count===0&&lp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ap===0&&(ap=62500*Zd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lp(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ap?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function sp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)lp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cp=null;function lp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cp=new Map,t.forEach(up,e),cp=null,sp.call(e))}function up(e,t){if(!(t.state.loading&4)){var n=cp.get(e);if(n)var r=n.get(null);else{n=new Map,cp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=sp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var dp={$$typeof:C,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function fp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ye(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ye(0),this.hiddenUpdates=Ye(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function pp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new fp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=la(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ha(a),e}function mp(e){return e?(e=oi,e):oi}function hp(e,t,n,r,i,a){i=mp(i),r.context===null?r.context=i:r.pendingContext=i,r=Wa(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ga(e,r,t),n!==null&&(Eu(n,e,t),Ka(n,e,t))}function gp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _p(e,t){gp(e,t),(e=e.alternate)&&gp(e,t)}function vp(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&Eu(t,e,67108864),_p(e,67108864)}}function yp(e){if(e.tag===13||e.tag===31){var t=wu();t=tt(t);var n=ri(e,t);n!==null&&Eu(n,e,t),_p(e,t)}}var bp=!0;function xp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,Cp(e,t,n,r)}finally{L.p=a,I.T=i}}function Sp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,Cp(e,t,n,r)}finally{L.p=a,I.T=i}}function Cp(e,t,n,r){if(bp){var i=wp(r);if(i===null)Ld(e,t,r,Tp,n),Ip(e,r);else if(Rp(i,e,t,n,r))r.stopPropagation();else if(Ip(e,r),t&4&&-1<Fp.indexOf(e)){for(;i!==null;){var a=gt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=We(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Le(o);s.entanglements[1]|=c,o&=~c}hd(a),!(Gl&6)&&(fu=Te()+500,gd(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&Eu(s,a,2),ju(),_p(a,2)}if(a=wp(r),a===null&&Ld(e,t,r,Tp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Ld(e,t,r,null,n)}}function wp(e){return e=tn(e),Ep(e)}var Tp=null;function Ep(e){if(Tp=null,e=ht(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Tp=e,null}function Dp(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ee()){case De:return 2;case Oe:return 8;case ke:case Ae:return 32;case je:return 268435456;default:return 32}default:return 32}}var Op=!1,kp=null,Ap=null,jp=null,Mp=new Map,Np=new Map,Pp=[],Fp=`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`.split(` `);function Ip(e,t){switch(e){case`focusin`:case`focusout`:kp=null;break;case`dragenter`:case`dragleave`:Ap=null;break;case`mouseover`:case`mouseout`:jp=null;break;case`pointerover`:case`pointerout`:Mp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Np.delete(t.pointerId)}}function Lp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=gt(t),t!==null&&vp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Rp(e,t,n,r,i){switch(t){case`focusin`:return kp=Lp(kp,e,t,n,r,i),!0;case`dragenter`:return Ap=Lp(Ap,e,t,n,r,i),!0;case`mouseover`:return jp=Lp(jp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Mp.set(a,Lp(Mp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Np.set(a,Lp(Np.get(a)||null,e,t,n,r,i)),!0}return!1}function zp(e){var t=ht(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,it(e.priority,function(){yp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,it(e.priority,function(){yp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);en=r,n.target.dispatchEvent(r),en=null}else return t=gt(n),t!==null&&vp(t),e.blockedOn=n,!1;t.shift()}return!0}function Vp(e,t,n){Bp(e)&&n.delete(t)}function Hp(){Op=!1,kp!==null&&Bp(kp)&&(kp=null),Ap!==null&&Bp(Ap)&&(Ap=null),jp!==null&&Bp(jp)&&(jp=null),Mp.forEach(Vp),Np.forEach(Vp)}function Up(e,n){e.blockedOn===n&&(e.blockedOn=null,Op||(Op=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Hp)))}var Wp=null;function Gp(e){Wp!==e&&(Wp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Wp===e&&(Wp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Ep(r||n)===null)continue;break}var a=gt(n);a!==null&&(e.splice(t,3),t-=3,Os(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Kp(e){function t(t){return Up(t,e)}kp!==null&&Up(kp,e),Ap!==null&&Up(Ap,e),jp!==null&&Up(jp,e),Mp.forEach(t),Np.forEach(t);for(var n=0;n<Pp.length;n++){var r=Pp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Pp.length&&(n=Pp[0],n.blockedOn===null);)zp(n),n.blockedOn===null&&Pp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[st]||null;if(typeof a==`function`)o||Gp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[st]||null)s=o.formAction;else if(Ep(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Gp(n)}}}function qp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Jp(e){this._internalRoot=e}Yp.prototype.render=Jp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;hp(n,wu(),e,t,null,null)},Yp.prototype.unmount=Jp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;hp(e.current,2,null,e,null,null),ju(),t[ct]=null}};function Yp(e){this._internalRoot=e}Yp.prototype.unstable_scheduleHydration=function(e){if(e){var t=rt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pp.length&&t!==0&&t<Pp[n].priority;n++);Pp.splice(n,0,e),n===0&&zp(e)}};var Xp=n.version;if(Xp!==`19.2.8`)throw Error(i(527,Xp,`19.2.8`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Zp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Qp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Qp.isDisabled&&Qp.supportsFiber)try{Pe=Qp.inject(Zp),Fe=Qp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Zs,s=Qs,c=$s;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=pp(e,1,!1,null,null,n,r,null,o,s,c,qp),e[ct]=t.current,Fd(e),new Jp(t)}})),y=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=v()})),b,x,S,C,w=o((()=>{b=`modulepreload`,x=function(e,t){return new URL(e,t).href},S={},C=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=x(t,n),t=s(t),t in S)return;S[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:b,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})}}));function T(e,t){return t+e.replace(/\\/g,`/`)}function E(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function D(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=P(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),M(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:N(t))}function r(e,t){k(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return F(t,n,r,e)}function O(e,t){if(e===!1||e==null)throw Error(t)}function k(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function A(){return Math.random().toString(36).substring(2,10)}function j(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function M(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?P(t):t,state:n,key:t&&t.key||r||A(),mask:i}}function N({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function P(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function F(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=E(e)?e:M(h.location,e,t);n&&n(r,e),l=u()+1;let d=j(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=E(e)?e:M(h.location,e,t);n&&n(r,e),l=u();let i=j(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return I(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(qt,d),c=e,()=>{i.removeEventListener(qt,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function I(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),O(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:N(t);return i=i.replace(/ $/,`%20`),!n&&Kt.test(i)&&(i=r+i),new URL(i,r)}function L(e,t,n=`/`){return R(e,t,n,!1)}function R(e,t,n,r,i){let a=de((typeof t==`string`?P(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ee(e),s=null,c=ue(a);for(let e=0;s==null&&e<o.length;++e)s=oe(o[e],c,r);return s}function ee(e){let t=te(e);return re(t),t}function te(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;O(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=nn([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(O(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),te(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:ie(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=le(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of ne(e.path))a(e,t,!0,n)}),t}function ne(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=ne(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function re(e){e.sort((e,t)=>e.score===t.score?ae(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}function ie(e,t){let n=e.split(`/`),r=n.length;return n.some(en)&&(r+=$t),t&&(r+=Xt),n.filter(e=>!en(e)).reduce((e,t)=>e+(Jt.test(t)?Yt:t===``?Zt:Qt),r)}function ae(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function oe(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?ce(u,l,s.matcher,s.compiledParams):se(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=se({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:nn([a,d.pathname]),pathnameBase:an(nn([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=nn([a,d.pathnameBase]))}return o}function se(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=le(e.path,e.caseSensitive,e.end);return ce(e,t,n,r)}function ce(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function le(e,t=!1,n=!0){k(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ue(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return k(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function de(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function fe(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?P(e):e,a;return n?(n=tn(n),a=n.startsWith(`/`)?pe(n.substring(1),`/`):pe(n,t)):a=t,{pathname:a,search:on(r),hash:sn(i)}}function pe(e,t){let n=rn(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function me(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function he(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function ge(e){let t=he(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function _e(e,t,n,r=!1){let i;typeof e==`string`?i=P(e):(i={...e},O(!i.pathname||!i.pathname.includes(`?`),me(`?`,`pathname`,`search`,i)),O(!i.pathname||!i.pathname.includes(`#`),me(`#`,`pathname`,`hash`,i)),O(!i.search||!i.search.includes(`#`),me(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=fe(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}function ve(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function ye(e){return nn(e.map(e=>e.route.path).filter(Boolean))||`/`}function be(e,t){let n=e;if(typeof n!=`string`||!Gt.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ln)try{let e=new URL(window.location.href),r=Kt.test(n)?new URL(T(n,e.protocol)):new URL(n),a=de(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{k(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}function xe(e){try{return fn.includes(new URL(e).protocol)}catch{return!1}}function Se(){return zt.useContext(hn)}function Ce(e){if(e.startsWith(`${Cn}:${wn}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function we(e){if(e.startsWith(`${Cn}:${Tn}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new cn(t.status,t.statusText,t.data)}catch{}}function Te(e,{relative:t}={}){O(Ee(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=Bt.useContext(yn),{hash:i,pathname:a,search:o}=je(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:nn([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Ee(){return Bt.useContext(bn)!=null}function De(){return O(Ee(),`useLocation() may be used only in the context of a <Router> component.`),Bt.useContext(bn).location}function Oe(e){Bt.useContext(yn).static||Bt.useLayoutEffect(e)}function ke(){let{isDataRoute:e}=Bt.useContext(xn);return e?Ge():Ae()}function Ae(){O(Ee(),`useNavigate() may be used only in the context of a <Router> component.`);let e=Bt.useContext(pn),{basename:t,navigator:n}=Bt.useContext(yn),{matches:r}=Bt.useContext(xn),{pathname:i}=De(),a=JSON.stringify(ge(r)),o=Bt.useRef(!1);return Oe(()=>{o.current=!0}),Bt.useCallback((r,s={})=>{if(k(o.current,En),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=_e(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:nn([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}function je(e,{relative:t}={}){let{matches:n}=Bt.useContext(xn),{pathname:r}=De(),i=JSON.stringify(ge(n));return Bt.useMemo(()=>_e(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Me(e,t){return Ne(e,t)}function Ne(e,t,n){O(Ee(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=Bt.useContext(yn),{matches:i}=Bt.useContext(xn),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Ke(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=De(),d;if(t){let e=typeof t==`string`?P(t):t;O(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):L(e,{pathname:p});k(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),k(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Le(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:nn([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:nn([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?Bt.createElement(bn.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Pe(){let e=We(),t=ve(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=Bt.createElement(Bt.Fragment,null,Bt.createElement(`p`,null,`💿 Hey developer 👋`),Bt.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,Bt.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,Bt.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),Bt.createElement(Bt.Fragment,null,Bt.createElement(`h2`,null,`Unexpected Application Error!`),Bt.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?Bt.createElement(`pre`,{style:i},n):null,o)}function Fe({children:e,error:t}){let{basename:n}=Bt.useContext(yn);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Ce(t.digest);if(e){let r=kn.get(t);if(r)throw r;let i=be(e.location,n),a=i.absoluteURL||i.to;if(xe(a))throw Error(`Invalid redirect location`);if(ln&&!kn.get(t)){if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw kn.set(t,n),n}}return Bt.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Ie({routeContext:e,match:t,children:n}){let r=Bt.useContext(pn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),Bt.createElement(xn.Provider,{value:e},n)}function Le(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);O(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:ye(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Dn,o&&(s<0&&c===0?(Ke(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?Bt.createElement(n.route.Component,null):n.route.element?n.route.element:e,Bt.createElement(Ie,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?Bt.createElement(On,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Re(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ze(e){let t=Bt.useContext(pn);return O(t,Re(e)),t}function Be(e){let t=Bt.useContext(mn);return O(t,Re(e)),t}function Ve(e){let t=Bt.useContext(xn);return O(t,Re(e)),t}function He(e){let t=Ve(e),n=t.matches[t.matches.length-1];return O(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ue(){return He(`useRouteId`)}function We(){let e=Bt.useContext(Sn),t=Be(`useRouteError`),n=He(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Ge(){let{router:e}=ze(`useNavigate`),t=He(`useNavigate`),n=Bt.useRef(!1);return Oe(()=>{n.current=!0}),Bt.useCallback(async(r,i={})=>{k(n.current,En),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}function Ke(e,t,n){!t&&!An[e]&&(An[e]=!0,k(!1,n))}function qe({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Ne(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Je({to:e,replace:t,state:n,relative:r}){O(Ee(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=Vt.useContext(yn);k(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=Vt.useContext(xn),{pathname:o}=De(),s=ke(),c=_e(e,ge(a),o,r===`path`),l=JSON.stringify(c);return Vt.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function Ye(e){O(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Xe({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){O(!Ee(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=Vt.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=P(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=Vt.useMemo(()=>{let e=de(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return k(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:Vt.createElement(yn.Provider,{value:c},Vt.createElement(bn.Provider,{children:t,value:h}))}function Ze({children:e,location:t}){return Me(Qe(e),t)}function Qe(e,t=[]){let n=[];return Vt.Children.forEach(e,(e,r)=>{if(!Vt.isValidElement(e))return;let i=[...t,r];if(e.type===Vt.Fragment){n.push.apply(n,Qe(e.props.children,i));return}O(e.type===Ye,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Qe(e.props.children,i)),n.push(a)}),n}function $e(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function et(e){return $e(e)&&e.tagName.toLowerCase()===`button`}function tt(e){return $e(e)&&e.tagName.toLowerCase()===`form`}function nt(e){return $e(e)&&e.tagName.toLowerCase()===`input`}function rt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function it(e,t){return e.button===0&&(!t||t===`_self`)&&!rt(e)}function at(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function ot(e,t){let n=at(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}function st(){if(Nn===null)try{new FormData(document.createElement(`form`),0),Nn=!1}catch{Nn=!0}return Nn}function ct(e){return e!=null&&!Pn.has(e)?(k(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Mn}"`),null):e}function lt(e,t){let n,r,i,a,o;if(tt(e)){let o=e.getAttribute(`action`);r=o?de(o,t):null,n=e.getAttribute(`method`)||jn,i=ct(e.getAttribute(`enctype`))||Mn,a=new FormData(e)}else if(et(e)||nt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?de(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||jn,i=ct(e.getAttribute(`formenctype`))||ct(o.getAttribute(`enctype`))||Mn,a=new FormData(o,e),!st()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if($e(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=jn,r=null,i=Mn,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function ut(e,t){if(e===!1||e==null)throw Error(t)}function dt(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&de(i.pathname,t)===`/`?`${rn(t)}/_root.${r}`:`${rn(i.pathname)}.${r}`,i}async function ft(e,t){if(e.id in t)return t[e.id];try{let n=await C(()=>import(e.module),void 0,import.meta.url);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function pt(e){return e!=null&&typeof e.page==`string`}function mt(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function ht(e,t,n){return bt((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await ft(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(mt).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function gt(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function _t(e,t,{includeHydrateFallback:n}={}){return vt(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function vt(e){return[...new Set(e)]}function yt(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function bt(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!pt(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(yt(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function xt(){let e=Ut.useContext(pn);return ut(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function St(){let e=Ut.useContext(mn);return ut(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}function Ct(){let e=Ut.useContext(Fn);return ut(e,`You must render this element inside a <HydratedRouter> element`),e}function wt(e,t){let n=Ut.useContext(Fn),[r,i]=Ut.useState(!1),[a,o]=Ut.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=Ut.useRef(null);Ut.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),Ut.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Tt(s,p),onBlur:Tt(c,m),onMouseEnter:Tt(l,p),onMouseLeave:Tt(u,m),onTouchStart:Tt(d,p)}]:[a,f,{}]:[!1,f,{}]}function Tt(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Et({page:e,...t}){let n=Se(),{nonce:r}=Ct(),{router:i}=xt(),a=Ut.useMemo(()=>L(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?Ut.createElement(Ot,{page:e,matches:a,...t}):Ut.createElement(kt,{page:e,matches:a,...t})):null}function Dt(e){let{manifest:t,routeModules:n}=Ct(),[r,i]=Ut.useState([]);return Ut.useEffect(()=>{let r=!1;return ht(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Ot({page:e,matches:t,...n}){let r=De(),{future:i}=Ct(),{basename:a}=xt(),o=Ut.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=dt(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return Ut.createElement(Ut.Fragment,null,o.map(e=>Ut.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function kt({page:e,matches:t,...n}){let r=De(),{future:i,manifest:a,routeModules:o}=Ct(),{basename:s}=xt(),{loaderData:c,matches:l}=St(),u=Ut.useMemo(()=>gt(e,t,l,a,r,`data`),[e,t,l,a,r]),d=Ut.useMemo(()=>gt(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=Ut.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=dt(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=Ut.useMemo(()=>_t(d,a),[d,a]),m=Dt(d);return Ut.createElement(Ut.Fragment,null,f.map(e=>Ut.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>Ut.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>Ut.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function At(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}function jt({basename:e,children:t,useTransitions:n,window:r}){let i=Wt.useRef();i.current??=D({window:r,v5Compat:!0});let a=i.current,[o,s]=Wt.useState({action:a.action,location:a.location}),c=Wt.useCallback(e=>{n===!1?s(e):Wt.startTransition(()=>s(e))},[n]);return Wt.useLayoutEffect(()=>a.listen(c),[a,c]),Wt.createElement(Xe,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Mt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nt(e){let t=Wt.useContext(pn);return O(t,Mt(e)),t}function Pt(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=ke(),d=De(),f=je(e,{relative:o});return Wt.useCallback(p=>{if(it(p,t)){p.preventDefault();let t=n===void 0?N(d)===N(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?Wt.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function Ft(e){k(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=Wt.useRef(at(e)),n=Wt.useRef(!1),r=De(),i=Wt.useMemo(()=>ot(r.search,n.current?null:t.current),[r.search]),a=ke();return[i,Wt.useCallback((e,t)=>{let r=at(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}function It(){let{router:e}=Nt(`useSubmit`),{basename:t}=Wt.useContext(yn),n=Ue(),r=e.fetch,i=e.navigate;return Wt.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=lt(e,t);if(a.navigate===!1){let e=a.fetcherKey||Vn();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Lt(e,{relative:t}={}){let{basename:n}=Wt.useContext(yn),r=Wt.useContext(xn);O(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...je(e||`.`,{relative:t})},o=De();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:nn([n,a.pathname])),N(a)}function Rt(e,{relative:t}={}){let n=Wt.useContext(gn);O(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Nt(`useViewTransitionState`),i=je(e,{relative:t});if(!n.isTransitioning)return!1;let a=de(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=de(n.nextLocation.pathname,r)||n.nextLocation.pathname;return se(i.pathname,o)!=null||se(i.pathname,a)!=null}var zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn=o((()=>{zt=u(p(),1),Bt=u(p(),1),Vt=u(p(),1),p(),Ht=u(p(),1),Ut=u(p(),1),p(),p(),p(),Wt=u(p(),1),p(),w(),Gt=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Kt=/^[\\/]{2}/,qt=`popstate`,Jt=/^:[\w-]+$/,Yt=3,Xt=2,Zt=1,Qt=10,$t=-2,en=e=>e===`*`,tn=e=>e.replace(/[\\/]{2,}/g,`/`),nn=e=>tn(e.join(`/`)),rn=e=>e.replace(/\/+$/,``),an=e=>rn(e).replace(/^\/*/,`/`),on=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,sn=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,cn=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}},ln=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`),un=[`POST`,`PUT`,`PATCH`,`DELETE`],new Set(un),dn=[`GET`,...un],new Set(dn),fn=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`],pn=zt.createContext(null),pn.displayName=`DataRouter`,mn=zt.createContext(null),mn.displayName=`DataRouterState`,hn=zt.createContext(!1),gn=zt.createContext({isTransitioning:!1}),gn.displayName=`ViewTransition`,_n=zt.createContext(new Map),_n.displayName=`Fetchers`,vn=zt.createContext(null),vn.displayName=`Await`,yn=zt.createContext(null),yn.displayName=`Navigation`,bn=zt.createContext(null),bn.displayName=`Location`,xn=zt.createContext({outlet:null,matches:[],isDataRoute:!1}),xn.displayName=`Route`,Sn=zt.createContext(null),Sn.displayName=`RouteError`,Cn=`REACT_ROUTER_ERROR`,wn=`REDIRECT`,Tn=`ROUTE_ERROR_RESPONSE`,En=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`,Bt.createContext(null),Dn=Bt.createElement(Pe,null),On=class extends Bt.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=we(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:Bt.createElement(xn.Provider,{value:this.props.routeContext},Bt.createElement(Sn.Provider,{value:e,children:this.props.component}));return this.context?Bt.createElement(Fe,{error:e},t):t}},On.contextType=hn,kn=new WeakMap,An={},Vt.memo(qe),Vt.Component,jn=`get`,Mn=`application/x-www-form-urlencoded`,Nn=null,Pn=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]),Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`),Fn=Ut.createContext(void 0),Fn.displayName=`FrameworkContext`,Ht.Component,In=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{In&&(window.__reactRouterVersion=`7.18.2`)}catch{}Ln=Wt.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=Wt.useContext(yn),v=typeof l==`string`&&Gt.test(l),y=be(l,h);l=y.to;let b=Te(l,{relative:r}),x=De(),S=null;if(o){let e=_e(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:nn([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=wt(n,p),E=Pt(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=Wt.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:At(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?Wt.createElement(Wt.Fragment,null,k,Wt.createElement(Et,{page:b})):k}),Ln.displayName=`Link`,Rn=Wt.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=je(a,{relative:c.relative}),d=De(),f=Wt.useContext(mn),{navigator:p,basename:m}=Wt.useContext(yn),h=f!=null&&Rt(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=de(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return Wt.createElement(Ln,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)}),Rn.displayName=`NavLink`,zn=Wt.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=jn,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=Wt.useContext(yn),g=It(),_=Lt(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&Gt.test(s);return Wt.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?Wt.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})}),zn.displayName=`Form`,Bn=0,Vn=()=>`__${String(++Bn)}__`})),Un=o((()=>{Hn()})),Wn=o((()=>{Un()})),Gn,Kn=o((()=>{Gn=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABSCAIAAAAgvZb0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAKf0lEQVR4nO1ceXBTxxnffYcky6eMrRhs4wPqsTkGsEMp8ZEQDgOxMy0ltYHOJCHpdFqaQieTlFJmMk1KmFDSgbSknRAohFJIKKEJoSWFEMIREww2+MA4tsFgfIAMNjaypHdt/7Ck9578JO2TZEty+Y3/sOXVe7u//Y7d7/t2IUIIPIQ3EMHuQHiA8vP7HSZU18zf7EKmnsEfwWILUNf8htEAE+NhogGOTSByMohJmb7LBPRN6epbhOPnufpm4V5f2OgsTYHsdCJvEllSqFo4VNPUYUIffMZeuMKrfVPoINEAVyyi86eTEOJ+RR1N7x9ij37N+di7EEP6OOKX5fT4sViaiEvTnR60aRfT2iG4e2WiAUbrQWwUpP01d4GBgEC/GfQPoPsPUH2LcrdpCrxUrnlsGun1aVg01TYJm/cwZotryxQjLMqj8qeRj4zBFt9gwMaACw38qYv8xQYFW1FSSD33NO35Cd5pqm0Sfveeq/cyxMDli+g5j3qfh5DCjU7h70e46kZXsp54lPxFmcbDF73Q1NWNfv2OzUWOSouo5YvoEFEuH1B1ld+ylx2wygb1XCldUuR2SJ5osljBq1utnd1iAw0NVpVp8ococ9ddVFnPd3Wj3n7UPxASSwSaAnHR0BADczKIvBzXDpt60Js7mLbbos2CEKxbqZmRrawfnmh672P2vxWiX6Mp8MbPtRNTZa7h7GX+4HHuZpeyjQwRaGhQmEstX0jFRok2lGHBG9ttDdfFnsdGwXd/o9MqKZ9bmjpMaM1mq+B4CIRg7fMa6bR03UXbPmSkrwlxaGlQvpAulWiW2YJe2WK7c09kYOk8qrxYwZy7XTXsOcIKEgaWFdNSjs7X8S+/bQ0jjgAANhbsPsxu2ME8cJiFyAi4/kWtTiu2+eQkd/+Bgtwo0/TtDaGyXnQHmSnEkrniJJyu5jftZmxsIMcwYqi+yq9/12Z1uO5xiXD5QlF8WA7sO6qwflam6csLMpe5rFjk6Nsbwp8/ZALW62Dg1m20dR/jNDYLZlOGGNFmna7iuCGrKwWaEALnasSGE1MJp/3nebBlL8OH8X7Ojsp6/qRDFCgSLJ0nyoGNBbVNriNUoKm5TZA69fnfEx/xn7PcnZ6Q8Pf+Y//nLOtQrydnUqSEicorrjZXgSapVQIATJ0otvns9CjZ9wIA7t5HFQ6loSkwcbw4zAv1GNJ0rV3kMiEOGuPtenu9XejuHSWiNIhvakU6pNJwrw/19stGqkBTn1n8PTVJbPBNXfjbJDmqG3nG4a+TjTIqXPYSSjRJFg5REeLnrR2jSpQGF+Kd3XbVidLL/tVvlv2psNl7INnoRulFT2mx4dIUoQMZ40YuGWG2gBudPi50bY61TbReFgvqM8sGq0CTO3+PH+ZMSyJe/5kWo2HAwHLgyjXhwDH2aqs6vhiHTyLkETNGvngeJQkomgLTsojXfqqdkDIsI1LxUPwAe7BAU2D9i5rICBUdxVQRFTQRIU8TACA6EhblqoipYs69GhHFpim4HnFalopBITxTpkbp8JsGFWl4OSVVUBHQJrDfHlxCEw2wbAFNUYAiAUkCmgQkCSnS/idFAoqElEMv08dhdXZY4v5BX4Y+Mz/A41Ll6cJF7QIPNUoXOJYOHON8KPEgCDg+CeblkOSIpwdV0KTXBeytB47LAu2qkGyEm3+lG+EsoYq3xUaHhNK130EVNbyHxRHLgUMnWJKEcdEwPgZkpRGqFpyKUEFTXFRI0AQA6DAJALilycagj47JwodTJhD500lpGFYtVHxTGt/zE37We6pV2LoWoa5F+MdRrmwBtfAxX8hSMfLJmUSUPjAC5afP9GzC3U1Bvxm9f4jd/jHrwySp2/qWui9GGEkkjfHUbZf4rAs+r+De2a86gaZOj55+nIoLtiFPGgM9F261tHmRltNV/MEv1OU+1EkHTYHVyzSvb7f5aVyemUf7vG7KzSEpj0qHU/a47yg7eQKRnY4rJaqVaOp3iGdL6V2f+pUaD/hmwolPv+Ka27As/M5/sZvW4IZYfXFeJYWUNE06FEFRS54H+46ye/+NO3/X2oWr2KUiPs5qeTE9NoHY9hGj6JtHeOt7sYGvaRKqGnhpxRoOzl7mszOwBMX3pdDjeeQfX9a5Ky8bSTTdFBquCWo5AgCcvYSbefTLRqQY4W9f0DS3CXXNQsstobMb9faj3n40wkpXXkyXFyvUCXpFnxmZelCiwXt/A2BKJ6YSLpWGQUGiAb61Wrvxb7baJhVMDVgRji0N/vACCA0NXirTKBZPuoPZgtVsVNEEAIiPhT980kstvBQ8nuQFZ/OxYp3Fh5pErQakjyMW51P50z35DVUHwjB3lypoemsXUzmk8EcR2enE71cFPjluY0Bjq9DYyiQbtenuaxRSkwLvQoZF6bx6ZsG/ldWZak+zpdOqyfoGPE+HD6/d9DOsfvueJ5pJVSlavMZhKU2ed82YVtn+qCBK0+jDQ5qw8JAmLCgsCGgKspxd+6X19jpsF2+xAnfnRgfBDmfdtCoTHuFIPrqcLHDJAyrQFBcNBqz236Vx5VjsBNTNLuG1vw7jdQTnavmlr+DtMrzBGbPukUfQpcczlJVOGu2WHgcKehR8OOCko1d+oYIh2htNUiJvdApO/5oVuDxdiCAzhXBqaGunjKYEgzeaMpLFD20MaL5p5ykngxhlAlUg2RtWSQ6Vpxihi4FToCkvR/bhZUf4JnTydAFBhA7Mn2UfTtdddPe+KE25Q84GK9CU+ggxJlaUmhPnOafelRRS8bGjRKCWzqWdbu7EeZnrxaIJAJA3SWzX3YtOVtqfQpJg9TLNKCgHy0wmnJrRP4COnBFp0tJg0pA8gjJNT+TJ6PynJEc6eQKxTOnQcBghSg/XrtQ4S0k/OcnZJNnyghnk0CpTZZqy0mRn9009aPdhMYy2ZC5VPDtcjVRkBFy3UhPv8ObX24XDp0QhIElQtkDNyfFnS2mpch0+xZ2WRHl+soT+8VN02GlfQhzctFqblWYfdZ8ZvblTdib3qQJl4+vpuoY/7We+uig+g6bAhlXaTMmhkFu30aEv2TOX+NA//Ws0wJIiau4sSuuQFZYD67fZWm6Jmyq9Dv5lnVaxtM4TTUNvM9DSYM0KzczJpEuzqgahopbvNKGefvQgNC7/GJQdQwzMTidmTSFdsrv3+tDGncz1dtnlHy73UUjh5SqZDhN6davVKtmfQQjKFtCeawhCHM1twsadjMu1DCsW0z+Y49NVMoO41Mhv2MG4tMpMJpbOo747JfiZcVXo6kYHjrNnqnmXCGfhDHL1cj8uJhrEpUb+7T3M0CsIU4ywKJcqyCWNGPnlIMLGgHO1fEUNr3gl3qJ86oXv+33N1SA6u9HGnbYOk3LjML00DQCw6keaOTMDdGnaICxW8IcPbDVqMvShjJhIuPZ5jXNx4BnqbipECJyv5w9+wV27FcZkRenh4gKqpJDU63BthY/Xg15s4E9U8tVXeSas7t3JTCEKppPFsylV5Ri+0zQIlgOXGvmva/iOO2jAiswW13PpwYVeByMjQGQENMTA6VnErKlkQpyPrsYvmv5/MNritsOEhzRh4SFNWPgfCrkHrTpxMMUAAAAASUVORK5CYII=`})),qn,Jn=o((()=>{qn=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim()})),Yn,Xn=o((()=>{Yn=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()})),Zn,Qn=o((()=>{Zn=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase())})),$n,er=o((()=>{Qn(),$n=e=>{let t=Zn(e);return t.charAt(0).toUpperCase()+t.slice(1)}})),tr,nr=o((()=>{tr={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`}})),rr,ir=o((()=>{rr=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1}})),ar,or,sr,cr=o((()=>{ar=u(p(),1),or=(0,ar.createContext)({}),sr=()=>(0,ar.useContext)(or)})),lr,ur,dr=o((()=>{lr=u(p(),1),nr(),ir(),Jn(),cr(),ur=(0,lr.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=sr()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,lr.createElement)(`svg`,{ref:c,...tr,width:t??l??tr.width,height:t??l??tr.height,stroke:e??f,strokeWidth:m,className:qn(`lucide`,p,i),...!a&&!rr(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,lr.createElement)(e,t)),...Array.isArray(a)?a:[a]])})})),fr,pr,mr=o((()=>{fr=u(p(),1),Jn(),Xn(),er(),dr(),pr=(e,t)=>{let n=(0,fr.forwardRef)(({className:n,...r},i)=>(0,fr.createElement)(ur,{ref:i,iconNode:t,className:qn(`lucide-${Yn($n(e))}`,`lucide-${e}`,n),...r}));return n.displayName=$n(e),n}})),hr,gr,_r=o((()=>{mr(),hr=[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]],gr=pr(`arrow-down`,hr)})),vr,yr,br=o((()=>{mr(),vr=[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]],yr=pr(`arrow-left`,vr)})),xr,Sr,Cr=o((()=>{mr(),xr=[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]],Sr=pr(`arrow-right`,xr)})),wr,Tr,Er=o((()=>{mr(),wr=[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`m16 12 2 2 4-4`,key:`mdajum`}],[`path`,{d:`M22 6V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2h4.001A2 2 0 0022 17v-1.344`,key:`144kbk`}]],Tr=pr(`book-open-check`,wr)})),Dr,Or,kr=o((()=>{mr(),Dr=[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]],Or=pr(`bot`,Dr)})),Ar,jr,Mr=o((()=>{mr(),Ar=[[`path`,{d:`M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z`,key:`hh9hay`}],[`path`,{d:`m3.3 7 8.7 5 8.7-5`,key:`g66t2b`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}]],jr=pr(`box`,Ar)})),Nr,Pr,Fr=o((()=>{mr(),Nr=[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]],Pr=pr(`boxes`,Nr)})),Ir,Lr,Rr=o((()=>{mr(),Ir=[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]],Lr=pr(`check`,Ir)})),zr,Br,Vr=o((()=>{mr(),zr=[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]],Br=pr(`chevron-right`,zr)})),Hr,Ur,Wr=o((()=>{mr(),Hr=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]],Ur=pr(`circle-check`,Hr)})),Gr,Kr,qr=o((()=>{mr(),Gr=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]],Kr=pr(`circle-dot`,Gr)})),Jr,Yr,Xr=o((()=>{mr(),Jr=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],Yr=pr(`circle-question-mark`,Jr)})),Zr,Qr,$r=o((()=>{mr(),Zr=[[`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`}]],Qr=pr(`circle-x`,Zr)})),ei,ti,ni=o((()=>{mr(),ei=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]],ti=pr(`clock-3`,ei)})),ri,ii,ai=o((()=>{mr(),ri=[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]],ii=pr(`cloud-upload`,ri)})),oi,si,ci=o((()=>{mr(),oi=[[`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`}]],si=pr(`database`,oi)})),li,ui,di=o((()=>{mr(),li=[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]],ui=pr(`download`,li)})),fi,pi,mi=o((()=>{mr(),fi=[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]],pi=pr(`external-link`,fi)})),hi,gi,_i=o((()=>{mr(),hi=[[`path`,{d:`M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6`,key:`g5mvt7`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m14 20 2 2 4-4`,key:`15kota`}]],gi=pr(`file-check-corner`,hi)})),vi,yi,bi=o((()=>{mr(),vi=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`circle`,{cx:`11.5`,cy:`14.5`,r:`2.5`,key:`1bq0ko`}],[`path`,{d:`M13.3 16.3 15 18`,key:`2quom7`}]],yi=pr(`file-search`,vi)})),xi,Si,Ci=o((()=>{mr(),xi=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]],Si=pr(`file-spreadsheet`,xi)})),wi,Ti,Ei=o((()=>{mr(),wi=[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]],Ti=pr(`file-text`,wi)})),Di,Oi,ki=o((()=>{mr(),Di=[[`path`,{d:`M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z`,key:`1fr9dc`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M12 10v2`,key:`hh53o1`}],[`path`,{d:`M16 10v6`,key:`1d6xys`}]],Oi=pr(`folder-kanban`,Di)})),Ai,ji,Mi=o((()=>{mr(),Ai=[[`path`,{d:`M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z`,key:`sc7q7i`}]],ji=pr(`funnel`,Ai)})),Ni,Pi,Fi=o((()=>{mr(),Ni=[[`circle`,{cx:`12`,cy:`18`,r:`3`,key:`1mpf1b`}],[`circle`,{cx:`6`,cy:`6`,r:`3`,key:`1lh9wr`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`path`,{d:`M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9`,key:`1uq4wg`}],[`path`,{d:`M12 12v3`,key:`158kv8`}]],Pi=pr(`git-fork`,Ni)})),Ii,Li,Ri=o((()=>{mr(),Ii=[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]],Li=pr(`info`,Ii)})),zi,Bi,Vi=o((()=>{mr(),zi=[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],Bi=pr(`layers`,zi)})),Hi,Ui,Wi=o((()=>{mr(),Hi=[[`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`}]],Ui=pr(`layout-dashboard`,Hi)})),Gi,Ki,qi=o((()=>{mr(),Gi=[[`rect`,{width:`8`,height:`18`,x:`3`,y:`3`,rx:`1`,key:`oynpb5`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M20.4 18.9c.2.5-.1 1.1-.6 1.3l-1.9.7c-.5.2-1.1-.1-1.3-.6L11.1 5.1c-.2-.5.1-1.1.6-1.3l1.9-.7c.5-.2 1.1.1 1.3.6Z`,key:`1qboyk`}]],Ki=pr(`library-big`,Gi)})),Ji,Yi,Xi=o((()=>{mr(),Ji=[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]],Yi=pr(`list`,Ji)})),Zi,Qi,$i=o((()=>{mr(),Zi=[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]],Qi=pr(`menu`,Zi)})),ea,ta,na=o((()=>{mr(),ea=[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}],[`path`,{d:`M7 11h10`,key:`1twpyw`}],[`path`,{d:`M7 15h6`,key:`d9of3u`}],[`path`,{d:`M7 7h8`,key:`af5zfr`}]],ta=pr(`message-square-text`,ea)})),ra,ia,aa=o((()=>{mr(),ra=[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]],ia=pr(`network`,ra)})),oa,sa,ca=o((()=>{mr(),oa=[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]],sa=pr(`pause`,oa)})),la,ua,da=o((()=>{mr(),la=[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]],ua=pr(`play`,la)})),fa,pa,ma=o((()=>{mr(),fa=[[`path`,{d:`M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2`,key:`143wyd`}],[`path`,{d:`M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6`,key:`1itne7`}],[`rect`,{x:`6`,y:`14`,width:`12`,height:`8`,rx:`1`,key:`1ue0tg`}]],pa=pr(`printer`,fa)})),ha,ga,_a=o((()=>{mr(),ha=[[`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`}]],ga=pr(`refresh-cw`,ha)})),va,ya,ba=o((()=>{mr(),va=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],ya=pr(`rotate-ccw-clock`,va)})),xa,Sa,Ca=o((()=>{mr(),xa=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]],Sa=pr(`rotate-ccw`,xa)})),wa,Ta,Ea=o((()=>{mr(),wa=[[`path`,{d:`M3 7V5a2 2 0 0 1 2-2h2`,key:`aa7l1z`}],[`path`,{d:`M17 3h2a2 2 0 0 1 2 2v2`,key:`4qcy5o`}],[`path`,{d:`M21 17v2a2 2 0 0 1-2 2h-2`,key:`6vwrx8`}],[`path`,{d:`M7 21H5a2 2 0 0 1-2-2v-2`,key:`ioqczr`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`path`,{d:`m16 16-1.9-1.9`,key:`1dq9hf`}]],Ta=pr(`scan-search`,wa)})),Da,Oa,ka=o((()=>{mr(),Da=[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]],Oa=pr(`search`,Da)})),Aa,ja,Ma=o((()=>{mr(),Aa=[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]],ja=pr(`send`,Aa)})),Na,Pa,Fa=o((()=>{mr(),Na=[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]],Pa=pr(`server`,Na)})),Ia,La,Ra=o((()=>{mr(),Ia=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]],La=pr(`shield-alert`,Ia)})),za,Ba,Va=o((()=>{mr(),za=[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]],Ba=pr(`shield-check`,za)})),Ha,Ua,Wa=o((()=>{mr(),Ha=[[`path`,{d:`M21 4v16`,key:`7j8fe9`}],[`path`,{d:`M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z`,key:`zs4d6`}]],Ua=pr(`skip-forward`,Ha)})),Ga,Ka,qa=o((()=>{mr(),Ga=[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],Ka=pr(`sparkles`,Ga)})),Ja,Ya,Xa=o((()=>{mr(),Ja=[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],Ya=pr(`triangle-alert`,Ja)})),Za,Qa,$a=o((()=>{mr(),Za=[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]],Qa=pr(`x`,Za)})),eo=o((()=>{mr(),Wr(),Xr(),$r(),ai(),_i(),Mi(),Vi(),ba(),qa(),Xa(),_r(),br(),Cr(),Er(),kr(),Mr(),Fr(),Rr(),Vr(),qr(),ni(),ci(),di(),mi(),bi(),Ci(),Ei(),ki(),Fi(),Ri(),Wi(),qi(),Xi(),$i(),na(),aa(),ca(),da(),ma(),_a(),Ca(),Ea(),ka(),Ma(),Fa(),Ra(),Va(),Wa(),$a(),cr(),dr()}));function to(e){let t=e.toLowerCase();return t.includes(`基座`)||t.includes(`不能新建`)?{answer:`输入基座外径62mm、孔距48mm、厚度8mm、4-M6、6061铝合金,与成熟通用件 SP-M-001 完全一致。拟新建将触发 RULE-001 并形成重复编码,因此建议直接复用。`,sources:[`SP-M-001`,`RULE-001`]}:t.includes(`重复`)||t.includes(`一物多码`)?{answer:`发现三组主数据风险:SP-M-003 ↔ SP-M-001、SP-P-018 ↔ SP-P-005、SP-E-002 ↔ SP-E-001。另有 SP-S-012 可由标准件 SP-S-011 替代。`,sources:[`SP-M-003`,`SP-P-018`,`SP-E-002`,`SP-S-012`]}:t.includes(`case-001`)||t.includes(`案例`)?{answer:`CASE-001 同时覆盖电机基座、动力输出轴和减震垫圈三类核心物料,且为20kg级多旋翼无人机成熟方案;CASE-003 未覆盖本次动力输出轴,核心覆盖度较低。`,sources:[`CASE-001`,`CASE-003`]}:t.includes(`bom`)||t.includes(`优化`)?{answer:`3 个拟新建定制件分别替换为 SP-M-001、SP-P-005、SP-S-011;新增编码 3→0,定制件 3→0,本次范围内物料复用率为 100%。`,sources:[`SP-M-001`,`SP-P-005`,`SP-S-011`]}:t.includes(`人工`)||t.includes(`审核`)?{answer:`工程师需确认真实工况,标准化工程师需审批规则例外,物料管理员决定重复编码治理;知识卡正式入库前仍需专家审核。DEMO 不执行生产系统写回。`,sources:[`CASE-001`,`KC-2026-0901`]}:{answer:`当前 DEMO 支持围绕相似零件、规则命中、BOM 优化、历史案例和知识沉淀进行问答,请选择推荐问题。`,sources:[]}}var no,ro,io,ao,oo,so,co,lo,uo,fo,po=o((()=>{no=[{code:`SP-M-001`,name:`无刷电机基座A`,category:`动力套件-结构件`,parametersText:`外径62mm;安装孔距48mm;厚度8mm;4-M6安装孔;材质6061铝合金`,compatibleProduct:`多旋翼无人机动力套件`,materialType:`通用件`,drawingNo:`DR-2025-A001`,note:`成熟历史零件,已量产`},{code:`SP-M-002`,name:`无刷电机基座B`,category:`动力套件-结构件`,parametersText:`外径62mm;安装孔距48mm;厚度10mm;4-M6安装孔;材质6061铝合金`,compatibleProduct:`多旋翼无人机动力套件`,materialType:`定制件`,drawingNo:`DR-2025-A012`,note:`改型新建,和A基座高度相似(仅厚度差2mm)`},{code:`SP-M-003`,name:`无刷电机基座C`,category:`动力套件-结构件`,parametersText:`外径62mm;安装孔距48mm;厚度8mm;4-M6安装孔;材质6061铝合金`,compatibleProduct:`多旋翼无人机动力套件`,materialType:`定制件`,drawingNo:`DR-2025-A027`,note:`一物多码案例,参数完全等同于SP-M-001`,riskTag:`一物多码`,canonicalCode:`SP-M-001`},{code:`SP-P-005`,name:`动力输出轴-20`,category:`动力套件-传动件`,parametersText:`轴径20mm;键槽6*3mm;总长75mm;40Cr调质`,compatibleProduct:`机器人动力套件`,materialType:`通用件`,drawingNo:`DR-2025-B005`,note:`成熟量产件`},{code:`SP-P-018`,name:`动力输出轴-20-1`,category:`动力套件-传动件`,parametersText:`轴径20mm;键槽6*3mm;总长75mm;40Cr调质`,compatibleProduct:`巡检机器人动力套件`,materialType:`定制件`,drawingNo:`DR-2025-B033`,note:`重复建码案例,参数与SP-P-005完全一致`,riskTag:`重复建码`,canonicalCode:`SP-P-005`},{code:`SP-S-011`,name:`减震垫圈Φ62`,category:`动力套件-辅件`,parametersText:`内径62mm;外径72mm;厚度2mm;硅胶`,compatibleProduct:`无人机动力套件`,materialType:`标准件`,drawingNo:`DR-STD-008`,note:`企业标准件`},{code:`SP-S-012`,name:`减震垫圈Φ62-厚3`,category:`动力套件-辅件`,parametersText:`内径62mm;外径72mm;厚度3mm;硅胶`,compatibleProduct:`无人机动力套件`,materialType:`定制件`,drawingNo:`DR-2025-C021`,note:`非必要非标,标准件可替代`,riskTag:`非必要非标`,canonicalCode:`SP-S-011`},{code:`SP-F-003`,name:`M6内六角螺栓`,category:`紧固件`,parametersText:`M6×12;8.8级;镀锌`,compatibleProduct:`通用`,materialType:`标准件`,drawingNo:`DR-STD-F03`,note:`企业标准紧固件`},{code:`SP-E-001`,name:`电调安装支架`,category:`动力套件-结构件`,parametersText:`长80mm;宽40mm;孔距60mm;材质6061铝合金`,compatibleProduct:`无人机动力套件`,materialType:`通用件`,drawingNo:`DR-2025-D002`,note:`成熟通用件`},{code:`SP-E-002`,name:`电调安装支架-改`,category:`动力套件-结构件`,parametersText:`长80mm;宽40mm;孔距60mm;材质6061铝合金`,compatibleProduct:`植保无人机动力套件`,materialType:`定制件`,drawingNo:`DR-2025-D015`,note:`一物多码案例,参数与SP-E-001一致`,riskTag:`一物多码`,canonicalCode:`SP-E-001`}],ro=[{id:`RULE-001`,name:`基座类零件复用优先规则`,scope:`动力套件-结构件-电机基座`,condition:`外径62mm、安装孔距48mm、安装孔规格M6、6061铝合金时优先复用SP-M-001`,violation:`参数完全一致时新建物料,形成重复建码风险`,message:`检测到成熟通用件 SP-M-001,建议复用,无需新建物料编码`,riskLevel:`高`},{id:`RULE-002`,name:`传动轴复用规则`,scope:`动力套件-传动件-动力输出轴`,condition:`轴径20mm、键槽6×3mm、总长75mm时优先复用SP-P-005`,violation:`参数一致新建物料,属于重复设计`,message:`当前传动轴与 SP-P-005 完全匹配,请直接复用`,riskLevel:`高`},{id:`RULE-003`,name:`辅件选型优先标准件规则`,scope:`减震垫圈、紧固件、垫片`,condition:`同等性能条件下必须优先选用企业标准件`,violation:`可选标准件却新增定制件,属于不必要非标`,message:`该垫圈匹配标准件 SP-S-011,不建议定制`,riskLevel:`中`},{id:`RULE-004`,name:`新品改型变更判定规则`,scope:`全部结构件`,condition:`仅厚度±2mm且安装尺寸不变时优先评估物料版本变更`,violation:`微小改动即新建物料,增加一物多码风险`,message:`建议评估变更现有物料版本,而非新建编码`,riskLevel:`中`},{id:`RULE-005`,name:`紧固件标准件强制规则`,scope:`全部紧固件`,condition:`M3-M12常规紧固件必须从企业标准件库选型`,violation:`常规紧固件定制化,属于严重非标设计`,message:`请从 SP-F 标准件系列选型,禁止定制`,riskLevel:`高`},{id:`RULE-006`,name:`材质统一规则`,scope:`动力套件-结构件`,condition:`非特殊工况下结构件统一使用6061铝合金`,violation:`无依据切换材质,增加采购与工艺复杂度`,message:`当前材质符合企业统一规范`,riskLevel:`低`}],io=[{id:`CASE-001`,name:`20kg级多旋翼无人机动力基座总成方案`,productType:`多旋翼无人机动力套件`,parameterSummary:`基座外径62,孔距48,M6安装孔;减震垫圈Φ62;输出轴20mm`,solution:`基座选用SP-M-001,传动轴SP-P-005,减震垫圈SP-S-011;无新增定制件`,reusedMaterials:[`SP-M-001`,`SP-P-005`,`SP-S-011`,`SP-F-003`],tags:[`无人机`,`20kg级`,`动力基座`,`成熟量产`]},{id:`CASE-002`,name:`巡检机器人动力传动总成方案`,productType:`轮式巡检机器人动力套件`,parameterSummary:`输出轴20mm;负载扭矩85N·m;转速3000rpm`,solution:`传动轴复用SP-P-005;电调支架复用SP-E-001`,reusedMaterials:[`SP-P-005`,`SP-E-001`],tags:[`机器人`,`传动总成`,`成熟量产`]},{id:`CASE-003`,name:`植保无人机动力套件标准化方案`,productType:`植保无人机动力套件`,parameterSummary:`基座外径62,孔距48;减震垫圈Φ62;电调支架80×40`,solution:`全部零部件选用现有通用件/标准件,BOM零定制件;量产成本降低18%`,reusedMaterials:[`SP-M-001`,`SP-S-011`,`SP-E-001`,`SP-F-003`],tags:[`植保无人机`,`标准化`,`零定制`,`成本优化`]},{id:`CASE-004`,name:`小型物流无人机动力模块方案`,productType:`物流无人机动力套件`,parameterSummary:`基座外径55,孔距42;输出轴18mm;减震垫圈Φ55`,solution:`基座为定制件;传动轴复用SP-P-005变型;记录为待标准化候选`,reusedMaterials:[`SP-P-005(变型)`,`SP-F-003`],tags:[`物流无人机`,`部分复用`,`待标准化`]}],ao=[{id:`REQ-PART-001`,role:`电机基座`,parameterPairs:[[`外径`,`62 mm`],[`安装孔距`,`48 mm`],[`厚度`,`8 mm`],[`安装孔`,`4-M6`],[`材质`,`6061 铝合金`]]},{id:`REQ-PART-002`,role:`动力输出轴`,parameterPairs:[[`轴径`,`20 mm`],[`键槽`,`6×3 mm`],[`总长`,`75 mm`],[`材质`,`40Cr`],[`处理`,`调质`]]},{id:`REQ-PART-003`,role:`减震垫圈`,parameterPairs:[[`内径`,`62 mm`],[`外径`,`72 mm`],[`厚度`,`2 mm`],[`材质`,`硅胶`]]}],oo=[{part:`电机基座`,recommended:`SP-M-001`,candidates:[{code:`SP-M-001`,score:100,type:`通用件`,note:`成熟量产,主编码`},{code:`SP-M-003`,score:100,type:`定制件`,note:`与主编码一物多码`},{code:`SP-M-002`,score:92,type:`定制件`,note:`厚度增加2mm`}]},{part:`动力输出轴`,recommended:`SP-P-005`,candidates:[{code:`SP-P-005`,score:100,type:`通用件`,note:`CASE-001 有跨产品应用佐证`},{code:`SP-P-018`,score:100,type:`定制件`,note:`重复建码风险`}]},{part:`减震垫圈`,recommended:`SP-S-011`,candidates:[{code:`SP-S-011`,score:100,type:`标准件`,note:`企业标准件,强制优先`},{code:`SP-S-012`,score:88,type:`定制件`,note:`厚度3mm,非必要非标`}]}],so=[{id:`RULE-001`,status:`命中`,evidence:`基座参数与 SP-M-001 完全一致且拟新建`},{id:`RULE-002`,status:`命中`,evidence:`传动轴参数与 SP-P-005 完全一致且拟新建`},{id:`RULE-003`,status:`命中`,evidence:`垫圈可直接使用企业标准件 SP-S-011`},{id:`RULE-004`,status:`不适用`,evidence:`本次基座厚度与通用件相同,不属于±2mm改型`},{id:`RULE-005`,status:`不适用`,evidence:`本次输入没有拟定制常规紧固件`},{id:`RULE-006`,status:`通过`,evidence:`结构件材质为企业规范的6061铝合金`}],co=[{title:`需求参数解析`,short:`解析`,status:`parsing`},{title:`相似零件检索`,short:`检索`,status:`retrieving_parts`},{title:`标准规则校验`,short:`校验`,status:`validating_rules`},{title:`BOM 智能优化`,short:`优化`,status:`optimizing_bom`},{title:`历史方案匹配`,short:`案例`,status:`retrieving_cases`},{title:`文档与知识沉淀`,short:`输出`,status:`generating_document`}],lo=[{id:`EV-01`,stage:`ingesting`,title:`需求资料读取完成`,detail:`读取 XQ-2026-0901,识别 3 类零部件、13 项关键参数。`,sourceIds:[`XQ-2026-0901`]},{id:`EV-02`,stage:`parsing`,title:`参数归一化完成`,detail:`4-M6 → 4 个 M6 安装孔;6*3mm → 6×3mm;20公斤级 → 20kg-class。`,sourceIds:[`REQ-PART-001`,`REQ-PART-002`]},{id:`EV-03`,stage:`retrieving_parts`,title:`相似物料检索完成`,detail:`三类零件均命中 100% 参数匹配候选,并发现两组重复编码风险。`,sourceIds:[`SP-M-001`,`SP-M-003`,`SP-P-005`,`SP-P-018`,`SP-S-011`]},{id:`EV-04`,stage:`validating_rules`,title:`企业规则校验完成`,detail:`命中 3 条复用与标准件优先规则;材质统一规则通过。`,sourceIds:[`RULE-001`,`RULE-002`,`RULE-003`,`RULE-006`]},{id:`EV-05`,stage:`optimizing_bom`,title:`BOM 优化完成`,detail:`拟新建 3 项调整为复用 3 项,范围内新增编码从 3 降至 0。`,sourceIds:[`SP-M-001`,`SP-P-005`,`SP-S-011`]},{id:`EV-06`,stage:`retrieving_cases`,title:`成熟案例匹配完成`,detail:`CASE-001 覆盖三类核心物料,优先级高于仅覆盖两类核心物料的 CASE-003。`,sourceIds:[`CASE-001`,`CASE-003`]},{id:`EV-07`,stage:`generating_document`,title:`标准化文档已生成`,detail:`生成 AI-OUT-2026-0901,并创建待专家审核的知识卡片。`,sourceIds:[`AI-OUT-2026-0901`,`KC-2026-0901`]}],uo=[`为什么不能新建电机基座?`,`物料库还有哪些重复编码风险?`,`为什么推荐 CASE-001,而不是 CASE-003?`,`BOM 优化后发生了什么变化?`,`哪些结论仍需要人工审核?`],fo=`# 研发产品设计要求说明文档(标准化校验版)
**项目名称:** 植保无人机 V2.1 改型动力套件开发
**文档编号:** AI-OUT-2026-0901
**生成时间:** 2026-09-01(AI 自动生成)
## 一、参数解析结果
AI 解析需求文档提取关键设计参数:电机基座外径 62mm,孔距 48mm,厚度 8mm,4-M6 安装孔,材质 6061 铝合金;动力输出轴轴径 20mm,键槽 6×3mm,总长 75mm,40Cr 调质;减震垫圈内径 62mm,外径 72mm,厚度 2mm,硅胶。
## 二、相似零部件检索结果
1. 电机基座:SP-M-001(通用件),参数完全匹配,无需新建。
2. 动力输出轴:SP-P-005(通用件),参数完全匹配,无需新建。
3. 减震垫圈:SP-S-011(企业标准件),参数完全匹配,无需新建。
## 三、标准化合规校验结果
当前设计方案计划新建 3 项物料,参数与现有成熟物料完全一致,存在一物多码、重复设计风险。命中 RULE-001、RULE-002、RULE-003,建议取消新建物料。
## 四、BOM 物料智能推荐清单
| 推荐物料编码 | 物料名称 | 物料属性 | 复用建议 |
|---|---|---|---|
| SP-M-001 | 无刷电机基座A | 通用件 | 优先选用 |
| SP-P-005 | 动力输出轴-20 | 通用件 | 优先选用 |
| SP-S-011 | 减震垫圈Φ62 | 标准件 | 优先选用 |
## 五、相似历史方案推荐
匹配成熟案例 CASE-001《20kg 级多旋翼无人机动力基座总成方案》,该方案已量产验证,BOM 零定制件。
## 六、最终标准化设计结论
本次植保无人机 V2.1 动力套件改型无需新增定制零件,全部零部件选用现有库内通用件、标准件,实现设计标准化。预计减少新建物料编码 3 个,降低开模与采购成本。
## 附录:证据来源
- 新品需求:XQ-2026-0901
- 推荐物料:SP-M-001、SP-P-005、SP-S-011
- 命中规则:RULE-001、RULE-002、RULE-003
- 历史案例:CASE-001
- 审核状态:待研发工程师、标准化工程师确认
`})),mo=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),ho=s(((e,t)=>{t.exports=mo()}));function go(e,t){switch(t.type){case`LOAD_SAMPLE`:return{...e,sampleLoaded:!0};case`SET_INTENT`:return{...e,intentMode:t.value};case`SET_ROLE`:return{...e,role:t.value};case`RUN_START`:return{...e,sampleLoaded:!0,isRunning:!0,isPaused:!1,runStatus:`ingesting`,...t.fresh?{evidence:[],completedStages:0,currentStage:0,qa:[],knowledgeStatus:`待专家审核`}:{}};case`RUN_STEP`:return{...e,runStatus:t.event.stage,currentStage:t.stage,completedStages:Math.max(e.completedStages,t.completed),evidence:e.evidence.some(e=>e.id===t.event.id)?e.evidence:[...e.evidence,t.event]};case`RUN_COMPLETE`:return{...e,runStatus:`completed`,currentStage:5,completedStages:6,isRunning:!1,isPaused:!1};case`RUN_PAUSE`:return{...e,isRunning:!1,isPaused:!0};case`RUN_RESET`:return{...xo,sampleLoaded:e.sampleLoaded,role:e.role,intentMode:e.intentMode};case`SUBMIT_KNOWLEDGE`:return{...e,knowledgeStatus:`审核中`};case`ADD_QA`:return{...e,qa:[...e.qa,{question:t.question,answer:t.answer,sources:t.sources}]};case`RESTORE`:return{...xo,...t.state,isRunning:!1,isPaused:!1};default:return e}}function _o({children:e}){let[t,n]=(0,yo.useReducer)(go,xo),[r,i]=(0,yo.useState)(``),[a,o]=(0,yo.useState)(!1),s=(0,yo.useRef)(0);(0,yo.useEffect)(()=>{let e=localStorage.getItem(`sanrui-demo-state`);if(e)try{n({type:`RESTORE`,state:JSON.parse(e)})}catch{localStorage.removeItem(`sanrui-demo-state`)}o(!0)},[]),(0,yo.useEffect)(()=>{a&&localStorage.setItem(`sanrui-demo-state`,JSON.stringify(t))},[a,t]);let c=(0,yo.useCallback)(e=>{i(e),window.setTimeout(()=>i(``),2400)},[]),l=(0,yo.useCallback)((e,t)=>{let r=++s.current;n({type:`RUN_START`,fresh:e}),(async()=>{let i=e?lo:lo.filter(e=>Co[e.id]>=t);for(let e of i){if(r!==s.current)return;n({type:`RUN_STEP`,event:e,stage:Co[e.id],completed:wo[e.id]}),await new Promise(e=>window.setTimeout(e,1150))}r===s.current&&(n({type:`RUN_COMPLETE`}),c(`AI 分析已完成:3 项物料全部建议复用`))})()},[c]),u=(0,yo.useMemo)(()=>({state:t,loadSample:()=>{n({type:`LOAD_SAMPLE`}),c(`演示样例已加载,本地数据源已就绪`)},setIntent:e=>n({type:`SET_INTENT`,value:e}),setRole:e=>n({type:`SET_ROLE`,value:e}),startRun:(e=!0)=>l(e,e?0:t.completedStages),pauseRun:()=>{s.current+=1,n({type:`RUN_PAUSE`}),c(`运行已暂停,已完成阶段会被保留`)},skipRun:()=>{s.current+=1;for(let e of lo)n({type:`RUN_STEP`,event:e,stage:Co[e.id],completed:wo[e.id]});n({type:`RUN_COMPLETE`}),c(`已跳过动画并加载完整分析结果`)},resetRun:()=>{s.current+=1,n({type:`RUN_RESET`}),localStorage.removeItem(`sanrui-demo-state`),c(`任务结果已重置`)},submitKnowledge:()=>{n({type:`SUBMIT_KNOWLEDGE`}),c(`知识卡已提交模拟审核,不会写入生产知识库`)},ask:e=>{let t=to(e);n({type:`ADD_QA`,question:e,answer:t.answer,sources:t.sources})},toast:r,notify:c}),[c,l,t,r]);return(0,bo.jsx)(So.Provider,{value:u,children:e})}function vo(){let e=(0,yo.useContext)(So);if(!e)throw Error(`useDemo must be used inside DemoProvider`);return e}var yo,bo,xo,So,Co,wo,To=o((()=>{yo=u(p(),1),po(),bo=ho(),xo={sampleLoaded:!1,intentMode:`create_new`,runStatus:`idle`,currentStage:0,completedStages:0,evidence:[],isRunning:!1,isPaused:!1,knowledgeStatus:`待专家审核`,role:`研发工程师`,qa:[]},So=(0,yo.createContext)(null),Co={"EV-01":0,"EV-02":0,"EV-03":1,"EV-04":2,"EV-05":3,"EV-06":4,"EV-07":5},wo={"EV-01":0,"EV-02":1,"EV-03":2,"EV-04":3,"EV-05":4,"EV-06":5,"EV-07":6}}));function Eo({children:e,variant:t=`primary`,icon:n,onClick:r,disabled:i,type:a=`button`,className:o=``,title:s}){return(0,z.jsxs)(`button`,{className:`button button-${t} ${o}`,onClick:r,disabled:i,type:a,title:s,children:[n,e]})}function Do({children:e,tone:t=`neutral`}){return(0,z.jsx)(`span`,{className:`tag tag-${t}`,children:e})}function Oo({status:e}){return(0,z.jsx)(Do,{tone:e===`命中`?`danger`:e===`通过`||e===`已完成`?`success`:e===`不适用`?`neutral`:`warning`,children:e})}function ko({children:e,className:t=``}){return(0,z.jsx)(`section`,{className:`panel ${t}`,children:e})}function Ao({eyebrow:e,title:t,action:n}){return(0,z.jsxs)(`div`,{className:`section-title`,children:[(0,z.jsxs)(`div`,{children:[e&&(0,z.jsx)(`span`,{className:`eyebrow`,children:e}),(0,z.jsx)(`h2`,{children:t})]}),n]})}function jo({open:e,onClose:t,title:n,children:r,width:i=`560px`}){return(0,Po.useEffect)(()=>{if(!e)return;let n=e=>e.key===`Escape`&&t();return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[t,e]),e?(0,z.jsx)(`div`,{className:`drawer-backdrop`,onMouseDown:t,role:`presentation`,children:(0,z.jsxs)(`aside`,{className:`drawer`,style:{width:i},onMouseDown:e=>e.stopPropagation(),role:`dialog`,"aria-modal":`true`,"aria-label":n,children:[(0,z.jsxs)(`div`,{className:`drawer-head`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:`证据详情`}),(0,z.jsx)(`h2`,{children:n})]}),(0,z.jsx)(`button`,{className:`icon-button`,onClick:t,"aria-label":`关闭抽屉`,children:(0,z.jsx)(Qa,{size:20})})]}),(0,z.jsx)(`div`,{className:`drawer-body`,children:r})]})}):null}function Mo({children:e}){let t=De(),{state:n,setRole:r,toast:i}=vo(),a=new URLSearchParams(t.search).get(`tab`),o=e=>{let[n,r]=e.split(`?`);return t.pathname===n?!r||new URLSearchParams(r).get(`tab`)===a:!1};return(0,z.jsxs)(`div`,{className:`app-shell`,children:[(0,z.jsxs)(`aside`,{className:`sidebar`,children:[(0,z.jsxs)(`div`,{className:`brand-lockup`,children:[(0,z.jsx)(`div`,{className:`brand-mark`,children:(0,z.jsx)(`img`,{src:Gn,alt:`南昌三瑞智能标识`})}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`strong`,{children:`南昌三瑞智能`}),(0,z.jsx)(`span`,{children:`AI 设计标准化智能体`})]})]}),(0,z.jsx)(`nav`,{className:`sidebar-nav`,"aria-label":`主导航`,children:Fo.map(({label:e,to:t,icon:n})=>(0,z.jsxs)(Ln,{to:t,className:o(t)?`nav-item active`:`nav-item`,children:[(0,z.jsx)(n,{size:18}),(0,z.jsx)(`span`,{children:e}),(0,z.jsx)(Br,{className:`nav-arrow`,size:14})]},t))}),(0,z.jsxs)(`div`,{className:`sidebar-assets`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(Pr,{size:16}),(0,z.jsx)(`span`,{children:`企业研发数据资产`})]}),(0,z.jsx)(`small`,{children:`10 物料 · 6 规则 · 4 案例`})]})]}),(0,z.jsxs)(`div`,{className:`app-main`,children:[(0,z.jsxs)(`header`,{className:`topbar`,children:[(0,z.jsx)(`button`,{className:`mobile-menu icon-button`,"aria-label":`打开菜单`,children:(0,z.jsx)(Qi,{size:20})}),(0,z.jsxs)(`div`,{className:`topbar-context`,children:[(0,z.jsx)(Oi,{size:17}),(0,z.jsx)(`span`,{children:`南昌三瑞智能科技股份有限公司`})]}),(0,z.jsxs)(`div`,{className:`role-select`,children:[(0,z.jsx)(`span`,{children:`当前视角`}),(0,z.jsxs)(`select`,{value:n.role,onChange:e=>r(e.target.value),"aria-label":`切换演示角色`,children:[(0,z.jsx)(`option`,{children:`研发工程师`}),(0,z.jsx)(`option`,{children:`标准化工程师`}),(0,z.jsx)(`option`,{children:`研发负责人`})]}),(0,z.jsx)(`div`,{className:`avatar`,children:`张`})]})]}),(0,z.jsx)(`main`,{className:`page-container`,children:e})]}),i&&(0,z.jsxs)(`div`,{className:`toast`,children:[(0,z.jsx)(`span`,{className:`toast-check`,children:`✓`}),i]})]})}function No({value:e,label:t,note:n,tone:r=`brand`}){return(0,z.jsxs)(`div`,{className:`metric metric-${r}`,children:[(0,z.jsx)(`span`,{children:t}),(0,z.jsx)(`strong`,{children:e}),n&&(0,z.jsx)(`small`,{children:n})]})}var Po,z,Fo,Io=o((()=>{Po=u(p(),1),Kn(),Wn(),eo(),To(),z=ho(),Fo=[{label:`工作台`,to:`/`,icon:Ui},{label:`AI 分析任务`,to:`/task/new`,icon:Ka},{label:`物料零件库`,to:`/knowledge?tab=materials`,icon:si},{label:`标准化规则库`,to:`/knowledge?tab=rules`,icon:Ba},{label:`历史方案库`,to:`/knowledge?tab=cases`,icon:Ki},{label:`输出文档`,to:`/document/AI-OUT-2026-0901`,icon:Ti}]}));function Lo(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Lo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Ro(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Lo(e))&&(r&&(r+=` `),r+=t);return r}var zo=o((()=>{}));function Bo(e){return typeof e==`string`&&Vo.includes(e)}var Vo,Ho=o((()=>{Vo=`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`.split(`.`)}));function Uo(e){return typeof e==`string`&&Jo.has(e)}function Wo(e){return typeof e==`string`&&e.startsWith(`data-`)}function Go(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Uo(n)||Wo(n))&&(t[n]=e[n]);return t}function Ko(e){if(e==null)return null;if((0,qo.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return Go(t)}return typeof e==`object`&&!Array.isArray(e)?Go(e):null}var qo,Jo,Yo=o((()=>{qo=u(p()),Jo=new Set(`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`.split(`.`))}));function Xo(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Uo(n)||Wo(n)||Bo(n))&&(t[n]=e[n]);return t}var Zo=o((()=>{p(),Ho(),Yo()}));function Qo(){return Qo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qo.apply(null,arguments)}function $o(e,t){if(e==null)return{};var n,r,i=es(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function es(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ts,ns,rs,is,as=o((()=>{ts=u(p()),ns=u(p()),zo(),Zo(),rs=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`],is=(0,ns.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,s=e.style,c=e.title,l=e.desc,u=$o(e,rs),d=a||{width:r,height:i,x:0,y:0},f=Ro(`recharts-surface`,o);return ts.createElement(`svg`,Qo({},Xo(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),ts.createElement(`title`,null,c),ts.createElement(`desc`,null,l),n)})}));function os(){return os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},os.apply(null,arguments)}function ss(e,t){if(e==null)return{};var n,r,i=cs(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cs(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ls,us,ds,fs=o((()=>{ls=u(p()),zo(),Zo(),us=[`children`,`className`],ds=ls.forwardRef((e,t)=>{var n=e.children,r=e.className,i=ss(e,us),a=Ro(`recharts-layer`,r);return ls.createElement(`g`,os({className:a},Xo(i),{ref:t}),n)})}));function ps(e){return e===`__proto__`}var ms=o((()=>{}));function hs(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:gs.test(e);default:return!1}}var gs,_s=o((()=>{gs=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/}));function vs(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}var ys=o((()=>{}));function bs(e){return e==null?``:xs(e)}function xs(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(xs).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}var Ss=o((()=>{}));function Cs(e){if(Array.isArray(e))return e.map(vs);if(typeof e==`symbol`)return[e];e=bs(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}var ws=o((()=>{ys(),Ss()}));function Ts(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(ps(t))return n;let r=e[t];return r===void 0?hs(t)&&!Object.hasOwn(e,t)?Ts(e,Cs(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=vs(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Es(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),ps(t))return n;let r=e[t];return r===void 0?n:r}}}function Es(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||ps(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var Ds=o((()=>{ms(),_s(),ys(),ws()})),Os=o((()=>{Ds()}));function ks(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:js),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function As(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+ks(i)+n},``)}var js,Ms=o((()=>{js=4}));function Ns(e,t,n){return Bs(e)&&Bs(t)?ks(e+n*(t-e)):t}function Ps(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):Ts(e,t))===n)}function Fs(e){return e!=null}function Is(){}var Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js=o((()=>{Os(),Ms(),Ls=e=>e===0?0:e>0?1:-1,Rs=e=>typeof e==`number`&&e!=+e,zs=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,Bs=e=>(typeof e==`number`||e instanceof Number)&&!Rs(e),Vs=e=>Bs(e)||typeof e==`string`,Hs=0,Us=e=>{var t=++Hs;return`${e||``}${t}`},Ws=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!Bs(e)&&typeof e!=`string`)return n;var i;if(zs(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Rs(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Gs=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1},Ks=e=>e==null,qs=e=>Ks(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`}));function Ys(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Xs=o((()=>{}));function Zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zs(Object(n),!0).forEach(function(t){$s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $s(e,t,n){return(t=ec(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ec(e){var t=tc(e,`string`);return typeof t==`symbol`?t:t+``}function tc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nc(e){return e==null?!1:typeof e==`object`||ic.includes(e)}var rc,ic,ac=o((()=>{Js(),Xs(),rc=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=Ys(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Qs({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Qs({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Qs({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Qs({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Qs({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Qs({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Qs({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Qs({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(Bs(n.x)||zs(n.x))&&(Bs(n.y)||zs(n.y))?Qs({x:c+Ws(n.x,g),y:l+Ws(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Qs({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},ic=[`top`,`left`,`right`,`bottom`]})),oc,sc,cc=o((()=>{oc=u(p()),sc=(0,oc.createContext)(null)}));function lc(e){return function(){return e}}var uc=o((()=>{}));function dc(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function fc(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return dc;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var pc,mc,hc,gc,_c,vc=o((()=>{pc=Math.PI,mc=2*pc,hc=1e-6,gc=mc-hc,_c=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?dc:fc(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>hc){if(!(Math.abs(u*s-c*l)>hc)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((pc-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>hc&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>hc||Math.abs(this._y1-l)>hc)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%mc+mc),d>gc?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>hc&&this._append`A${n},${n},0,${+(d>=pc)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}},_c.prototype})),yc=o((()=>{vc()}));function bc(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new _c(t)}var xc=o((()=>{yc()}));function Sc(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var Cc=o((()=>{Array.prototype.slice}));function wc(e){this._context=e}function Tc(e){return new wc(e)}var Ec=o((()=>{wc.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)}}}}));function Dc(e){return e[0]}function Oc(e){return e[1]}var kc=o((()=>{}));function Ac(e,t){var n=lc(!0),r=null,i=Tc,a=null,o=bc(s);e=typeof e==`function`?e:e===void 0?Dc:lc(e),t=typeof t==`function`?t:t===void 0?Oc:lc(t);function s(s){var c,l=(s=Sc(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:lc(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:lc(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:lc(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}var jc=o((()=>{Cc(),uc(),Ec(),xc(),kc()}));function Mc(e,t,n){var r=null,i=lc(!0),a=null,o=Tc,s=null,c=bc(l);e=typeof e==`function`?e:e===void 0?Dc:lc(+e),t=typeof t==`function`?t:lc(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?Oc:lc(+n);function l(l){var u,d,f,p=(l=Sc(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return Ac().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:lc(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:lc(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:lc(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:lc(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:lc(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:lc(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:lc(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var Nc=o((()=>{Cc(),uc(),Ec(),jc(),xc(),kc()}));function Pc(e){return new Ic(e,!0)}function Fc(e){return new Ic(e,!1)}var Ic,Lc=o((()=>{Ic=class{constructor(e,t){this._context=e,this._x=t}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(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}}));function Rc(){}var zc=o((()=>{}));function Bc(e,t,n){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+n)/6)}function Vc(e){this._context=e}function Hc(e){return new Vc(e)}var Uc=o((()=>{Vc.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:Bc(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:Bc(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Wc(e){this._context=e}function Gc(e){return new Wc(e)}var Kc=o((()=>{zc(),Uc(),Wc.prototype={areaStart:Rc,areaEnd:Rc,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)}},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:Bc(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function qc(e){this._context=e}function Jc(e){return new qc(e)}var Yc=o((()=>{Uc(),qc.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Bc(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Xc(e){this._context=e}function Zc(e){return new Xc(e)}var Qc=o((()=>{zc(),Xc.prototype={areaStart:Rc,areaEnd:Rc,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 $c(e){return e<0?-1:1}function el(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return($c(a)+$c(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function tl(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function nl(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function rl(e){this._context=e}function il(e){this._context=new al(e)}function al(e){this._context=e}function ol(e){return new rl(e)}function sl(e){return new il(e)}var cl=o((()=>{rl.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:nl(this,this._t0,tl(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=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,nl(this,tl(this,n=el(this,e,t)),n);break;default:nl(this,this._t0,n=el(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(il.prototype=Object.create(rl.prototype)).point=function(e,t){rl.prototype.point.call(this,t,e)},al.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,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}}));function ll(e){this._context=e}function ul(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function dl(e){return new ll(e)}var fl=o((()=>{ll.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,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=ul(e),i=ul(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===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 pl(e,t){this._context=e,this._t=t}function ml(e){return new pl(e,.5)}function hl(e){return new pl(e,0)}function gl(e){return new pl(e,1)}var _l=o((()=>{pl.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}}));function vl(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}var yl=o((()=>{}));function bl(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}var xl=o((()=>{}));function Sl(e,t){return e[t]}function Cl(e){let t=[];return t.key=e,t}function wl(){var e=lc([]),t=bl,n=vl,r=Sl;function i(i){var a=Array.from(e.apply(this,arguments),Cl),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=Sc(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:lc(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:lc(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?bl:typeof e==`function`?e:lc(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??vl,i):n},i}var Tl=o((()=>{Cc(),uc(),yl(),xl()}));function El(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}vl(e,t)}}var Dl=o((()=>{yl()}));function Ol(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}vl(e,t)}}var kl=o((()=>{yl()}));function Al(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,vl(e,t)}}var jl=o((()=>{yl()})),Ml=o((()=>{uc(),xc(),Nc(),jc(),Cc(),Ec(),Lc(),Kc(),Yc(),Uc(),zc(),Qc(),cl(),fl(),_l(),Tl(),Dl(),yl(),kl(),jl(),xl()})),Nl=o((()=>{Ml()})),Pl,Fl,Il,Ll,Rl,zl=o((()=>{Pl=u(p()),Ho(),Fl=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Il=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,Pl.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Bo(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},Ll=(e,t,n)=>r=>(e(t,n,r),null),Rl=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Bo(i)&&typeof a==`function`&&(r||={},r[i]=Ll(a,t,n))}),r}}));function Bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bl(Object(n),!0).forEach(function(t){Hl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hl(e,t,n){return(t=Ul(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ul(e){var t=Wl(e,`string`);return typeof t==`symbol`?t:t+``}function Wl(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Gl(e,t){var n=Vl({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}var Kl=o((()=>{}));function ql(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}var Jl=o((()=>{}));function Yl(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}var Xl=o((()=>{}));function Zl(e){return e}var Ql=o((()=>{}));function $l(e){return Number.isSafeInteger(e)&&e>=0}var eu=o((()=>{}));function tu(e){return e!=null&&typeof e!=`function`&&$l(e.length)}var nu=o((()=>{eu()}));function ru(e){return function(t){return Ts(t,e)}}var iu=o((()=>{Ds()}));function au(e){return e==null||typeof e!=`object`&&typeof e!=`function`}var ou=o((()=>{}));function su(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var cu=o((()=>{}));function lu(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var uu=o((()=>{}));function du(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var fu=o((()=>{})),pu,mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu,Du,Ou,ku,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu=o((()=>{pu=`[object RegExp]`,mu=`[object String]`,hu=`[object Number]`,gu=`[object Boolean]`,_u=`[object Arguments]`,vu=`[object Symbol]`,yu=`[object Date]`,bu=`[object Map]`,xu=`[object Set]`,Su=`[object Array]`,Cu=`[object Function]`,wu=`[object ArrayBuffer]`,Tu=`[object Object]`,Eu=`[object Error]`,Du=`[object DataView]`,Ou=`[object Uint8Array]`,ku=`[object Uint8ClampedArray]`,Au=`[object Uint16Array]`,ju=`[object Uint32Array]`,Mu=`[object BigUint64Array]`,Nu=`[object Int8Array]`,Pu=`[object Int16Array]`,Fu=`[object Int32Array]`,Iu=`[object BigInt64Array]`,Lu=`[object Float32Array]`,Ru=`[object Float64Array]`})),Bu,Vu=o((()=>{Bu=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()}));function Hu(e){return Bu.Buffer!==void 0&&Bu.Buffer.isBuffer(e)}var Uu=o((()=>{Vu()}));function Wu(e,t){return Gu(e,void 0,e,new Map,t)}function Gu(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(au(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Gu(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,Gu(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(Gu(a,void 0,n,r,i));return t}if(Hu(e))return e.subarray();if(su(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Gu(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),Ku(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Ku(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Ku(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Ku(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Ku(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Ku(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Ku(t,e,n,r,i),t}if(typeof e==`object`&&qu(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Ku(t,e,n,r,i),t}return e}function Ku(e,t,n=e,r,i){let a=[...Object.keys(t),...lu(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=Gu(t[s],s,n,r,i))}}function qu(e){switch(du(e)){case _u:case Su:case wu:case Du:case gu:case yu:case Lu:case Ru:case Nu:case Pu:case Fu:case bu:case hu:case Tu:case pu:case xu:case mu:case vu:case Ou:case ku:case Au:case ju:return!0;default:return!1}}var Ju=o((()=>{ou(),cu(),uu(),fu(),zu(),Uu()}));function Yu(e){return Gu(e,void 0,e,new Map,void 0)}var Xu=o((()=>{Ju()}));function Zu(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}var Qu=o((()=>{}));function $u(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}var ed=o((()=>{}));function td(e,t,n){return typeof n==`function`?nd(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?nd(t,r,e,s,!1):!!c},new Map,!0):td(e,t,()=>void 0)}function nd(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return rd(e,t,n,r,i);case`function`:return Object.keys(t).length>0?nd(e,{...t},n,r,i):Zu(e,t);default:return $u(e)&&i?typeof t!=`string`||t===``:Zu(e,t)}}function rd(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return ad(e,t,n,r);if(t instanceof Map)return id(e,t,n,r);if(t instanceof Set)return od(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)au(e)&&(e=Object(e));else{let t=du(e);if(t!==`[object Object]`&&t!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function id(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function ad(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function od(e,t,n,r){return t.size===0||e instanceof Set&&ad([...e],[...t],n,r)}var sd=o((()=>{ou(),fu(),Qu(),ed()}));function cd(e,t){return td(e,t,()=>void 0)}var ld=o((()=>{sd()}));function ud(e){return e=Yu(e),t=>cd(t,e)}var dd=o((()=>{Xu(),ld()}));function fd(e,t){return Wu(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(du(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Ku(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case hu:case mu:case gu:{let t=new e.constructor(e?.valueOf());return Ku(t,e),t}case _u:{let t={};return Ku(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}var pd=o((()=>{fu(),zu(),Ju()}));function md(e){return fd(e)}var hd=o((()=>{pd()}));function gd(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return _d.test(e)}}var _d,vd=o((()=>{_d=/^(?:0|[1-9]\d*)$/}));function yd(e){return typeof e==`object`&&!!e&&du(e)===`[object Arguments]`}var bd=o((()=>{fu()}));function xd(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&hs(t)&&!(t in Object(e))?Cs(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||yd(r))&&gd(t)&&t<r.length))return!1;r=r[t]}return!0}var Sd=o((()=>{_s(),ws(),vd(),bd()}));function Cd(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=vs(e)}return t=md(t),function(n){let r=Ts(n,e);return r===void 0?xd(n,e):t===void 0?r===void 0:cd(r,t)}}var wd=o((()=>{ys(),Ds(),ld(),hd(),Sd()}));function Td(e){if(e==null)return Zl;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?Cd(e[0],e[1]):ud(e);default:return ru(e)}}var Ed=o((()=>{Ql(),iu(),dd(),wd()}));function Dd(e){return e===0?0:e}var Od=o((()=>{}));function kd(e,t=Zl){return tu(e)?ql(Array.from(e),Yl(Td(t),1)).map(Dd):[]}var Ad=o((()=>{Jl(),Xl(),Ql(),nu(),Ed(),Od()})),jd=o((()=>{Ad()}));function Md(e,t,n){return t===!0?kd(e,n):typeof t==`function`?kd(e,t):e}var Nd=o((()=>{jd()})),Pd=s((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Fd=s(((e,t)=>{t.exports=Pd()})),Id=s((e=>{var t=p(),n=Fd();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Ld=s(((e,t)=>{t.exports=Id()})),Rd,zd,Bd=o((()=>{Rd=u(p()),zd=(0,Rd.createContext)(null)}));function Vd(e){var t=(0,Ud.useContext)(zd),n=(0,Ud.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Kd,[t,e]);return(0,Hd.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:qd,t?t.store.getState:Kd,t?t.store.getState:Kd,n,Jd)}var Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd=o((()=>{Hd=Ld(),Ud=u(p()),Bd(),Wd=e=>e,Gd=()=>{var e=(0,Ud.useContext)(zd);return e?e.store.dispatch:Wd},Kd=()=>{},qd=()=>Kd,Jd=(e,t)=>e===t}));function Xd(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Zd(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}function Qd(e){let t=Array.isArray(e[0])?e[0]:e;return Zd(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function $d(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function ef(){return{s:lf,v:void 0,o:null,p:null}}function tf(e){return e instanceof cf?e.deref():e}function nf(e,t={}){let n=ef(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=ef(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=ef(),e.set(n,t)):t=r}}let s=t,c;if(t.s===uf)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=tf(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new cf(c):c}return s.s=uf,s.v=c,c}return o.clearCache=()=>{n=ef(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function rf(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Xd(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=nf,argsMemoizeOptions:u=[]}={...n,...a},d=af(c),f=af(u),p=Qd(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=$d(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var af,of,sf,cf,lf,uf,B,df=o((()=>{af=e=>Array.isArray(e)?e:[e],of=class{constructor(e){this.value=e}deref(){return this.value}},sf=()=>typeof WeakRef>`u`?of:WeakRef,cf=sf(),lf=0,uf=1,B=rf(nf)}));function ff(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}var pf=o((()=>{}));function mf(e,t,n){return $u(n)&&(typeof t==`number`&&tu(n)&&gd(t)&&t<n.length||typeof t==`string`&&t in n)?Zu(n[t],e):!1}var hf=o((()=>{Qu(),nu(),ed(),vd()}));function gf(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var _f,vf=o((()=>{_f=(e,t,n)=>{if(e!==t){let r=gf(e),i=gf(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0}}));function yf(e){return typeof e==`symbol`||e instanceof Symbol}var bf=o((()=>{}));function xf(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||yf(e)?!0:typeof e==`string`&&(Cf.test(e)||!Sf.test(e))||t!=null&&Object.hasOwn(t,e)}var Sf,Cf,wf=o((()=>{bf(),Sf=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cf=/^\w*$/}));function Tf(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=tu(e)?Array.from(e):Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||xf(e)?e:{key:e,path:Cs(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=_f(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}var Ef=o((()=>{nu(),ws(),vf(),wf()}));function Df(e,...t){let n=t.length;return n>1&&mf(e,t[0],t[1])?t=[]:n>2&&mf(t[0],t[1],t[2])&&(t=[t[0]]),Tf(e,ff(t),[`asc`])}var Of=o((()=>{pf(),hf(),Ef()})),kf=o((()=>{Of()})),Af,jf,Mf,Nf=o((()=>{df(),kf(),Af=e=>e.legend.settings,jf=e=>e.legend.size,Mf=e=>e.legend.payload,B([Mf,Af],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Df(r,n):r})}));function Pf(e,t){return zf(e)||Rf(e,t)||If(e,t)||Ff()}function Ff(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function If(e,t){if(e){if(typeof e==`string`)return Lf(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lf(e,t):void 0}}function Lf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rf(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function zf(e){if(Array.isArray(e))return e}function Bf(e,t){return Math.abs(e.height-t.height)>Wf||Math.abs(e.left-t.left)>Wf||Math.abs(e.top-t.top)>Wf||Math.abs(e.width-t.width)>Wf}function Vf(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function Hf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=Pf((0,Uf.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,Uf.useRef)(null),a=(0,Uf.useRef)(n);a.current=n;var o=(0,Uf.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=Vf(e);if(Bf(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=Vf(e);Bf(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,Uf.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}var Uf,Wf,Gf=o((()=>{Uf=u(p()),Wf=1}));function Kf(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. `}function qf(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Jf(e,t,n){if(typeof e!=`function`)throw Error(Kf(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(Kf(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(Kf(1));return n(Jf)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(Kf(3));return i}function d(e){if(typeof e!=`function`)throw Error(Kf(4));if(c)throw Error(Kf(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(Kf(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!qf(e))throw Error(Kf(7));if(e.type===void 0)throw Error(Kf(8));if(typeof e.type!=`string`)throw Error(Kf(17));if(c)throw Error(Kf(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(Kf(10));r=e,f({type:np.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(Kf(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[ep](){return this}}}return f({type:np.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[ep]:m}}function Yf(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:np.INIT})===void 0)throw Error(Kf(12));if(n(void 0,{type:np.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(Kf(13))})}function Xf(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{Yf(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(Kf(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function Zf(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function Qf(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(Kf(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=Zf(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function $f(e){return qf(e)&&`type`in e&&typeof e.type==`string`}var ep,tp,np,rp=o((()=>{ep=typeof Symbol==`function`&&Symbol.observable||`@@observable`,tp=()=>Math.random().toString(36).substring(7).split(``).join(`.`),np={INIT:`@@redux/INIT${tp()}`,REPLACE:`@@redux/REPLACE${tp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${tp()}`}}));function ip(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}function ap(e){return e?op(e)||nm(e)||!!e[Bp]||!!e[Wp]?.[Bp]||rm(e)||im(e):!1}function op(e){if(!e||!am(e))return!1;let t=Up(e);if(t===null||t===Hp[Gp])return!0;let n=Hp.hasOwnProperty.call(t,Wp)&&t[Wp];if(n===Object)return!0;if(!om(n))return!1;let r=Qp.get(n);return r===void 0&&(r=Function.toString.call(n),Qp.set(n,r)),r===Zp}function sp(e,t,n=!0){cp(e)===0?(n?Reflect.ownKeys(e):Hp.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function cp(e){let t=e[Vp];return t?t.type_:nm(e)?1:rm(e)?2:im(e)?3:0}function lp(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function up(e){let t=+e;return Number.isInteger(t)&&String(t)===e}function dp(e,t){if(rm(e))return new Map(e);if(im(e))return new Set(e);if(nm(e))return Array[Gp].slice.call(e);let n=op(e);if(t===!0||t===`class_only`&&!n){let t=Hp.getOwnPropertyDescriptors(e);delete t[Vp];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Jp]===!1&&(a[Jp]=!0,a[Kp]=!0),(a.get||a.set)&&(t[i]={[Kp]:!0,[Jp]:!0,[qp]:a[qp],[Yp]:e[i]})}return Hp.create(Up(e),t)}{let t=Up(e);if(t!==null&&n)return{...e};let r=Hp.create(t);return Hp.assign(r,e)}}function fp(e,t=!1){return mp(e)||Xp(e)||!ap(e)?e:(cp(e)>1&&Hp.defineProperties(e,{set:um,add:um,clear:um,delete:um}),Hp.freeze(e),t&&sp(e,(e,t)=>{fp(t,!0)},!1),e)}function pp(){ip(2)}function mp(e){return e===null||!am(e)||Hp.isFrozen(e)}function hp(e){let t=mm[e];return t||ip(0,e),t}function gp(e,t){t&&(e.patchPlugin_=hp(fm),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function _p(e){vp(e),e.drafts_.forEach(yp),e.drafts_=null}function vp(e){e===gm&&(gm=e.parent_)}function yp(e){let t=e[Vp];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bp(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Vp].modified_&&(_p(t),ip(4)),ap(e)&&(e=xp(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Vp].base_,e,t)}else e=xp(t,n);return Sp(t,e,!0),_p(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===zp?void 0:e}function xp(e,t){if(mp(t))return t;let n=t[Vp];if(!n)return Op(t,e.handledSet_,e);if(!bm(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Ep(n,e)}return n.copy_}function Sp(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fp(t,n)}function Cp(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}function wp(e,t,n,r){let i=cm(e),a=e.type_;if(r!==void 0&&em(i,r,a)===t){tm(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;sp(i,(e,n)=>{if(Xp(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??xm;for(let e of o)tm(i,e,n,a)}function Tp(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!bm(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=lm(i);wp(e,i.draft_??i,a,n),Ep(i,r)})}function Ep(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Cp(e)}}function Dp(e,t,n){let{scope_:r}=e;if(Xp(n)){let i=n[Vp];bm(i,r)&&i.callbacks_.push(function(){Fp(e),wp(e,n,lm(i),t)})}else ap(n)&&e.callbacks_.push(function(){let i=cm(e);e.type_===3?i.has(n)&&Op(n,r.handledSet_,r):em(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Op(em(e.copy_,t,e.type_),r.handledSet_,r)})}function Op(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Xp(e)||t.has(e)||!ap(e)||mp(e)?e:(t.add(e),sp(e,(r,i)=>{if(Xp(i)){let t=i[Vp];bm(t,n)&&(tm(e,r,lm(t),e.type_),Cp(t))}else ap(i)&&Op(i,t,n)}),e)}function kp(e,t){let n=nm(e),r={type_:+!!n,scope_:t?t.scope_:_m(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Sm;n&&(i=[r],a=Cm);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}function Ap(e,t){let n=e[Vp];return(n?cm(n):e)[t]}function jp(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!ap(n)||n[Vp]?!1:e.baseRefs_.has(n)}function Mp(e,t,n){let r=Np(t,n);return r?Yp in r?r[Yp]:r.get?.call(e.draft_):void 0}function Np(e,t){if(!(t in e))return;let n=Up(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Up(n)}}function Pp(e){e.modified_||(e.modified_=!0,e.parent_&&Pp(e.parent_))}function Fp(e){e.copy_||=(e.assigned_=new Map,dp(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Ip(e,t,n,r){let[i,a]=rm(t)?hp(dm).proxyMap_(t,n):im(t)?hp(dm).proxySet_(t,n):kp(t,n);return(n?.scope_??_m()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Tp(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Lp(e){return Xp(e)||ip(10,e),Rp(e)}function Rp(e){if(!ap(e)||mp(e))return e;let t=e[Vp],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=dp(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=dp(e,!0);return sp(n,(e,t)=>{tm(n,e,Rp(t))},r),t&&(t.finalized_=!1),n}var zp,Bp,Vp,Hp,Up,Wp,Gp,Kp,qp,Jp,Yp,Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm,ym,bm,xm,Sm,Cm,wm,eee,Tm,Em,Dm,Om=o((()=>{zp=Symbol.for(`immer-nothing`),Bp=Symbol.for(`immer-draftable`),Vp=Symbol.for(`immer-state`),Hp=Object,Up=Hp.getPrototypeOf,Wp=`constructor`,Gp=`prototype`,Kp=`configurable`,qp=`enumerable`,Jp=`writable`,Yp=`value`,Xp=e=>!!e&&!!e[Vp],Zp=Hp[Gp][Wp].toString(),Qp=new WeakMap,$p=(e,t,n=cp(e))=>n===2?e.has(t):Hp[Gp].hasOwnProperty.call(e,t),em=(e,t,n=cp(e))=>n===2?e.get(t):e[t],tm=(e,t,n,r=cp(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n},nm=Array.isArray,rm=e=>e instanceof Map,im=e=>e instanceof Set,am=e=>typeof e==`object`,om=e=>typeof e==`function`,sm=e=>typeof e==`boolean`,cm=e=>e.copy_||e.base_,lm=e=>e.modified_?e.copy_:e.base_,um={[Yp]:pp},dm=`MapSet`,fm=`Patches`,pm=`ArrayMethods`,mm={},hm=e=>!!mm[e],_m=()=>gm,vm=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:hm(dm)?hp(dm):void 0,arrayMethodsPlugin_:hm(pm)?hp(pm):void 0}),ym=e=>gm=vm(gm,e),bm=(e,t)=>e.scope_===t,xm=[],Sm={get(e,t){if(t===Vp)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=cm(e);if(!$p(i,t,e.type_))return Mp(e,i,t);let a=i[t];if(e.finalized_||!ap(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&up(t))return a;if(a===Ap(e.base_,t)||jp(e,t,a)){Fp(e);let n=e.type_===1?+t:t,r=Ip(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in cm(e)},ownKeys(e){return Reflect.ownKeys(cm(e))},set(e,t,n){let r=Np(cm(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Ap(cm(e),t),i=r?.[Vp];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(lp(n,r)&&(n!==void 0||$p(e.base_,t,e.type_)))return!0;Fp(e),Pp(e)}return e.copy_[t]===n&&(n!==void 0||$p(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Dp(e,t,n),!0)},deleteProperty(e,t){return Fp(e),Ap(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Pp(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=cm(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Jp]:!0,[Kp]:e.type_!==1||t!==`length`,[qp]:r[qp],[Yp]:n[t]}},defineProperty(){ip(11)},getPrototypeOf(e){return Up(e.base_)},setPrototypeOf(){ip(12)}},Cm={};for(let e in Sm){let t=Sm[e];Cm[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Cm.deleteProperty=function(e,t){return Cm.set.call(this,e,t,void 0)},Cm.set=function(e,t,n){return Sm.set.call(this,e[0],t,n,e[0])},wm=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(om(e)&&!om(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}om(t)||ip(6),n!==void 0&&!om(n)&&ip(7);let r;if(ap(e)){let i=ym(this),a=Ip(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?_p(i):vp(i)}return gp(i,n),bp(r,i)}if(!e||!am(e)){if(r=t(e),r===void 0&&(r=e),r===zp&&(r=void 0),this.autoFreeze_&&fp(r,!0),n){let t=[],i=[];hp(fm).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}ip(1,e)},this.produceWithPatches=(e,t)=>{if(om(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},sm(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),sm(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),sm(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ap(e)||ip(8),Xp(e)&&(e=Lp(e));let t=ym(this),n=Ip(t,e,void 0);return n[Vp].isManual_=!0,vp(t),n}finishDraft(e,t){let n=e&&e[Vp];(!n||!n.isManual_)&&ip(9);let{scope_:r}=n;return gp(r,t),bp(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=hp(fm).applyPatches_;return Xp(e)?r(e,t):this.produce(e,e=>r(e,t))}},eee=globalThis.Iterator,eee?.from,Tm=new wm,Em=Tm.produce,Dm=e=>e}));function km(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Am,jm,tee=o((()=>{Am=km(),jm=km}));function Mm(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Rm(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>$f(t)&&t.type===e,n}function Nm(e){return ap(e)?Em(e,()=>{}):e}function Pm(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function nee(e){return typeof e==`boolean`}function ree(e){let t=Vm(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(qf(n))c=Xf(n);else throw Error(Rm(1));let l;l=typeof r==`function`?r(t):t();let u=Zf;i&&(u=zm({trace:!1,...typeof i==`object`&&i}));let d=qm(Qf(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return Jf(c,o,p)}function Fm(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Rm(28));if(r in t)throw Error(Rm(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function iee(e){return typeof e==`function`}function aee(e,t){let[n,r,i]=Fm(t),a;if(iee(e))a=()=>Nm(e());else{let t=Nm(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n){if(Xp(e)){let r=n(e,t);return r===void 0?e:r}if(ap(e))return Em(e,e=>n(e,t));{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}}return e},e)}return o.getInitialState=a,o}function oee(e,t){return`${e}/${t}`}function see({creators:e}={}){let t=e?.asyncThunk?.[Xm];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Rm(11));let i=(typeof e.reducers==`function`?e.reducers(lee()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(Rm(12));if(n in o.sliceCaseReducersByType)throw Error(Rm(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:oee(n,r),createNotation:typeof e.reducers==`function`};dee(a)?pee(o,a,s,t):uee(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Fm(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return aee(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Pm(d,r,m)),i}function i(t=l){return Pm(Pm(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=cee(a,t,()=>Pm(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function cee(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}function lee(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function uee({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!fee(r))throw Error(Rm(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Mm(e,o):Mm(e))}function dee(e){return e._reducerDefinitionType===`asyncThunk`}function fee(e){return e._reducerDefinitionType===`reducerWithPrepare`}function pee({type:e,reducerName:t},n,r,i){if(!i)throw Error(Rm(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||Im,pending:s||Im,rejected:c||Im,settled:l||Im})}function Im(){}function Lm(e,t){let n=ch;return new Promise((r,i)=>{let a=()=>i(new oh(e.reason));if(e.aborted){a();return}n=uh(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=ch})}function Rm(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var zm,Bm,Vm,Hm,Um,Wm,Gm,Km,qm,Jm,Ym,Xm,Zm,Qm,$m,eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh=o((()=>{rp(),Om(),rp(),tee(),zm=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?Zf:Zf.apply(null,arguments)},typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,Bm=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}},Vm=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Bm;return t&&(nee(t)?a.push(Am):a.push(jm(t.extraArgument))),a},Hm=`RTK_autoBatch`,Um=()=>e=>({payload:e,meta:{[Hm]:!0}}),Wm=e=>t=>{setTimeout(t,e)},Gm=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},Km=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?Gm(window.requestAnimationFrame,100):Wm(10):e.type===`callback`?e.queueNotification:Wm(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[Hm],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},qm=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Bm(e);return n&&r.push(Km(typeof n==`object`?n:void 0)),r},Jm=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,Ym=(e=21)=>{let t=``,n=e;for(;n--;)t+=Jm[Math.random()*64|0];return t},Xm=Symbol.for(`rtk-slice-createasyncthunk`),Zm=see(),Qm=`task`,$m=`listener`,eh=`completed`,th=`cancelled`,nh=`task-${th}`,rh=`task-${eh}`,ih=`${$m}-${th}`,ah=`${$m}-${eh}`,oh=class{constructor(e){this.code=e,this.message=`${Qm} ${th} (reason: ${e})`}code;name=`TaskAbortError`;message},sh=(e,t)=>{if(typeof e!=`function`)throw TypeError(Rm(32))},ch=()=>{},lh=(e,t=ch)=>(e.catch(t),e),uh=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),dh=e=>{if(e.aborted)throw new oh(e.reason)},fh=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof oh?`cancelled`:`rejected`,error:e}}finally{t?.()}},ph=e=>t=>lh(Lm(e,t).then(t=>(dh(e),t))),mh=e=>{let t=ph(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:hh}=Object,gh={},_h=`listenerMiddleware`,vh=(e,t)=>{let n=t=>uh(e,()=>t.abort(e.reason));return(r,i)=>{sh(r,`taskExecutor`);let a=new AbortController;n(a);let o=fh(async()=>{dh(e),dh(a.signal);let t=await r({pause:ph(a.signal),delay:mh(a.signal),signal:a.signal});return dh(a.signal),t},()=>a.abort(rh));return i?.autoJoin&&t.push(o.catch(ch)),{result:ph(e)(o),cancel(){a.abort(nh)}}}},yh=(e,t)=>{let n=async(n,r)=>{dh(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await Lm(t,Promise.race(a));return dh(t),e}finally{i()}};return((e,t)=>lh(n(e,t)))},bh=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Mm(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Rm(21));return sh(a,`options.listener`),{predicate:i,type:t,effect:a}},xh=hh(e=>{let{type:t,predicate:n,effect:r}=bh(e);return{id:Ym(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Rm(22))}}},{withTypes:()=>xh}),Sh=(e,t)=>{let{type:n,effect:r,predicate:i}=bh(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Ch=e=>{e.pending.forEach(e=>{e.abort(ih)})},wh=(e,t)=>()=>{for(let e of t.keys())Ch(e);e.clear()},Th=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Eh=hh(Mm(`${_h}/add`),{withTypes:()=>Eh}),Dh=Mm(`${_h}/removeAll`),Oh=hh(Mm(`${_h}/remove`),{withTypes:()=>Oh}),kh=(...e)=>{console.error(`${_h}/error`,...e)},Ah=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=kh}=e;sh(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Ch(e)}),c=(e=>{let n=Sh(t,e)??xh(e);return s(n)});hh(c,{withTypes:()=>c});let l=e=>{let n=Sh(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Ch(n)),!!n};hh(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=yh(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,hh({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:mh(u.signal),pause:ph(u.signal),extra:a,signal:u.signal,fork:vh(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(ih),n.delete(e))})},cancel:()=>{u.abort(ih),e.pending.delete(u)},throwIfCancelled:()=>{dh(u.signal)}})))}catch(e){e instanceof oh||Th(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(ah),i(e),e.pending.delete(u)}},d=wh(t,n);return{middleware:e=>n=>r=>{if(!$f(r))return n(r);if(Eh.match(r))return c(r.payload);if(Dh.match(r)){d();return}if(Oh.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===gh)throw Error(Rm(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,Th(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=gh}return s},startListening:c,stopListening:l,clearListeners:d}}})),Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh=o((()=>{jh(),Mh=Zm({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),Nh=Mh.actions,Ph=Nh.setMargin,Fh=Nh.setLayout,Ih=Nh.setChartSize,Lh=Nh.setScale,Rh=Mh.reducer}));function Bh(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}var Vh=o((()=>{}));function Hh(e){return Number.isFinite(e)}function Uh(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}var Wh=o((()=>{}));function Gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Gh(Object(n),!0).forEach(function(t){mee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mee(e,t,n){return(t=hee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hee(e){var t=gee(e,`string`);return typeof t==`symbol`?t:t+``}function gee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qh(e,t,n){return Ks(e)||Ks(t)?n:Vs(t)?Ts(e,t,n):typeof t==`function`?t(e):n}function _ee(e){return e==null?void 0:String(e)}function vee(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return Kh(Kh({},t),{},{dataKey:n,payload:r,value:i,name:a})}function yee(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var Jh,Yh,Xh,Zh,Qh,$h,eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg=o((()=>{kf(),Os(),Nl(),Js(),Vh(),Wh(),ac(),Jh=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout,c=t.position,l=t.offset,u=l===void 0?0:l;if(c!=null){if(nc(c)){if(c===`top`&&Bs(e.top))return Kh(Kh({},e),{},{top:e.top+(i||0)+u});if(c===`bottom`&&Bs(e.bottom))return Kh(Kh({},e),{},{bottom:e.bottom+(i||0)+u});if(c===`left`&&Bs(e.left))return Kh(Kh({},e),{},{left:e.left+(r||0)+u});if(c===`right`&&Bs(e.right))return Kh(Kh({},e),{},{right:e.right+(r||0)+u})}return e}if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&Bs(e[a]))return Kh(Kh({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&Bs(e[o]))return Kh(Kh({},e),{},{[o]:e[o]+(i||0)})}return e},Yh=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,Xh=(e,t)=>{if(!t||t.length!==2||!Bs(t[0])||!Bs(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Bs(e[0])||e[0]<n)&&(i[0]=n),(!Bs(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},Zh=e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=Rs(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},Qh=e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=Rs(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}},$h={sign:Zh,expand:El,none:vl,silhouette:Ol,wiggle:Al,positive:Qh},eg=(e,t,n)=>{var r=$h[n]??vl,i=wl().keys(t).value((e,t)=>Number(qh(e,t,0))).order(bl).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=qh(e[i],t[r],0);Array.isArray(a)&&a.length===2&&Bs(a[0])&&Bs(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i},tg=e=>{var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,a=e.entry,o=e.index;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=qh(a,t.dataKey,t.scale.domain()[o]);if(Ks(s))return null;var c=t.scale.map(s);return Bs(c)?c-i/2+r:null},ng=e=>{var t=e.numericAxis,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},rg=e=>{var t=e.flat(2).filter(Bs);return[Math.min(...t),Math.max(...t)]},ig=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],ag=(e,t,n)=>{if(e!=null&&Object.keys(e).length!==0)return ig(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=rg(Bh(r,t,n));return!Hh(i[0])||!Hh(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},og=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cg=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=Df(t,e=>e.coordinate),a=[],o=0,s=1,c=i.length;s<c;s++){var l=(i[s]?.coordinate||0)-(i[s-1]?.coordinate||0);a.push(l),o=Math.max(l,o)}var u=o*1e-4,d=1/0;for(var f of a)f>u&&(d=Math.min(f,d));return d===1/0?0:d}return n?void 0:0},lg=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},ug=(e,t)=>t===`centric`?e.angle:e.radius})),fg,pg,mg,hg,gg=o((()=>{fg=e=>e.layout.width,pg=e=>e.layout.height,mg=e=>e.layout.scale,hg=e=>e.layout.margin})),_g,vg,yg=o((()=>{df(),_g=B(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),vg=B(e=>e.cartesianAxis.yAxis,e=>Object.values(e))})),bg,xg=o((()=>{bg=`data-recharts-item-index`}));function Sg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Cg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Sg(Object(n),!0).forEach(function(t){bee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bee(e,t,n){return(t=xee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xee(e){var t=See(e,`string`);return typeof t==`symbol`?t:t+``}function See(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Cee(e){return vg(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function wee(e){return vg(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Tee(e){return _g(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}function Eee(e){return _g(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}var wg,Tg,Eg,Dg,Og=o((()=>{df(),Nf(),dg(),gg(),yg(),xg(),wg=e=>e.brush.height,Tg=B([fg,pg,hg,wg,Cee,wee,Tee,Eee,Af,jf],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=Cg(Cg({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=Jh(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Cg(Cg({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Eg=B(Tg,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Dg=B(fg,pg,(e,t)=>({x:0,y:0,width:e,height:t}))})),kg,Ag,jg,Mg=o((()=>{p(),kg=u(p()),Ag=(0,kg.createContext)(null),jg=()=>(0,kg.useContext)(Ag)!=null})),Ng,Pg,Fg=o((()=>{df(),Og(),gg(),Js(),Ng=e=>e.brush,Pg=B([Ng,Tg,hg],(e,t,n)=>({height:e.height,x:Bs(e.x)?e.x:t.left,y:Bs(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:Bs(e.width)?e.width:t.width}))}));function Dee(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}var Oee=o((()=>{}));function kee(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=Dee(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}var Aee=o((()=>{Oee()}));function jee(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return kee(e,t,{leading:r,maxWait:t,trailing:i})}var Mee=o((()=>{Aee()})),Nee=o((()=>{Mee()})),Ig,Lg=o((()=>{Ig=function(e,t){var n=[...arguments].slice(2);if(typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e)){if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}}}}));function Pee(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=Rg.width,a=Rg.height):i===void 0?i=r&&r>0?void 0:Rg.width:a===void 0&&(a=r&&r>0?void 0:Rg.height),{width:i,height:a}}var Rg,zg,Bg,Vg,Hg,Ug,Wg,Fee=o((()=>{Js(),Rg={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},zg=(e,t,n)=>{var r=n.width,i=r===void 0?Rg.width:r,a=n.height,o=a===void 0?Rg.height:a,s=n.aspect,c=n.maxHeight,l=zs(i)?e:Number(i),u=zs(o)?t:Number(o);return s&&s>0&&(l?u=l/s:u&&(l=u*s),c&&u!=null&&u>c&&(u=c)),{calculatedWidth:l,calculatedHeight:u}},Bg={width:0,height:0,overflow:`visible`},Vg={width:0,overflowX:`visible`},Hg={height:0,overflowY:`visible`},Ug={},Wg=e=>{var t=e.width,n=e.height,r=zs(t),i=zs(n);return r&&i?Bg:r?Vg:i?Hg:Ug}}));function Gg(){return Gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gg.apply(null,arguments)}function Kg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kg(Object(n),!0).forEach(function(t){Iee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kg(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Iee(e,t,n){return(t=Lee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lee(e){var t=Ree(e,`string`);return typeof t==`symbol`?t:t+``}function Ree(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zee(e,t){return Uee(e)||Hee(e,t)||Vee(e,t)||Bee()}function Bee(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vee(e,t){if(e){if(typeof e==`string`)return Jg(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jg(e,t):void 0}}function Jg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Hee(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Uee(e){if(Array.isArray(e))return e}function Wee(e,t){if(e==null)return{};var n,r,i=Gee(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Gee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Kee(e){return Uh(e.width)&&Uh(e.height)}function Yg(e){var t=e.children,n=e.width,r=e.height,i=(0,Zg.useMemo)(()=>({width:n,height:r}),[n,r]);return Kee(i)?Xg.createElement($g.Provider,{value:i},t):null}var Xg,Zg,Qg,$g,e_,t_,n_,r_=o((()=>{zo(),Xg=u(p()),Zg=u(p()),Nee(),Js(),Lg(),Fee(),Wh(),Qg=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`],$g=(0,Zg.createContext)(Rg.initialDimension),e_=()=>(0,Zg.useContext)($g),t_=(0,Zg.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?Rg.initialDimension:r,a=e.width,o=e.height,s=e.minWidth,c=s===void 0?Rg.minWidth:s,l=e.minHeight,u=e.maxHeight,d=e.children,f=e.debounce,p=f===void 0?Rg.debounce:f,m=e.id,h=e.className,g=e.onResize,_=e.style,v=_===void 0?{}:_,y=Wee(e,Qg),b=(0,Zg.useRef)(null),x=(0,Zg.useRef)();x.current=g,(0,Zg.useImperativeHandle)(t,()=>b.current);var S=zee((0,Zg.useState)({containerWidth:i.width,containerHeight:i.height}),2),C=S[0],w=S[1],T=(0,Zg.useCallback)((e,t)=>{w(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,Zg.useEffect)(()=>{if(b.current==null||typeof ResizeObserver>`u`)return Is;var e=e=>{var t,n=e[0];if(n!=null){var r=n.contentRect,i=r.width,a=r.height;T(i,a),(t=x.current)==null||t.call(x,i,a)}};p>0&&(e=jee(e,p,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=b.current.getBoundingClientRect(),r=n.width,i=n.height;return T(r,i),t.observe(b.current),()=>{t.disconnect()}},[T,p]);var E=C.containerWidth,D=C.containerHeight;Ig(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var O=zg(E,D,{width:a,height:o,aspect:n,maxHeight:u}),k=O.calculatedWidth,A=O.calculatedHeight;return Ig(E<0||D<0||k!=null&&k>0||A!=null&&A>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.`,k,A,a,o,c,l,n),Xg.createElement(`div`,Gg({id:m?`${m}`:void 0,className:Ro(`recharts-responsive-container`,h),style:qg(qg({},v),{},{width:a,height:o,minWidth:c,minHeight:l,maxHeight:u}),ref:b},y),Xg.createElement(`div`,{style:Wg({width:a,height:o})},Xg.createElement(Yg,{width:k,height:A},d)))}),n_=(0,Zg.forwardRef)((e,t)=>{var n=e_();if(Uh(n.width)&&Uh(n.height))return e.children;var r=Pee({width:e.width,height:e.height,aspect:e.aspect}),i=r.width,a=r.height,o=zg(void 0,void 0,{width:i,height:a,aspect:e.aspect,maxHeight:e.maxHeight}),s=o.calculatedWidth,c=o.calculatedHeight;return Bs(s)&&Bs(c)?Xg.createElement(Yg,{width:s,height:c},e.children):Xg.createElement(t_,Gg({},e,{width:i,height:a,ref:t}))})})),i_,a_,o_,s_,c_,l_,u_,d_,f_,p_,m_,h_,g_=o((()=>{i_=u(p()),Yd(),zh(),Og(),gg(),Mg(),Fg(),r_(),Wh(),a_=()=>{var e=jg(),t=Vd(Eg),n=Vd(Pg),r=Vd(Ng)?.padding;return!e||!n||!r?t:{width:n.width-r.left-r.right,height:n.height-r.top-r.bottom,x:r.left,y:r.top}},o_={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},s_=()=>Vd(Tg)??o_,c_=()=>Vd(fg),l_=()=>Vd(pg),u_=e=>e.layout.layoutType,d_=()=>Vd(u_),f_=()=>{var e=d_();if(e===`horizontal`||e===`vertical`)return e},p_=e=>{var t=e.layout.layoutType;if(t===`centric`||t===`radial`)return t},m_=()=>d_()!==void 0,h_=e=>{var t=Gd(),n=jg(),r=e.width,i=e.height,a=e_(),o=r,s=i;return a&&(o=a.width>0?a.width:r,s=a.height>0?a.height:i),(0,i_.useEffect)(()=>{!n&&Uh(o)&&Uh(s)&&t(Ih({width:o,height:s}))},[t,n,o,s]),null}})),__,v_,y_,b_,x_,S_,C_=o((()=>{jh(),Om(),__=Zm({name:`legend`,initialState:{settings:{layout:`horizontal`,align:`center`,verticalAlign:`bottom`,itemSorter:`value`,position:void 0,offset:0},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter,e.settings.position=t.payload.position,e.settings.offset=t.payload.offset},addLegendPayload:{reducer(e,t){e.payload.push(Dm(t.payload))},prepare:Um()},replaceLegendPayload:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=Lp(e).payload.indexOf(Dm(r));a>-1&&(e.payload[a]=Dm(i))},prepare:Um()},removeLegendPayload:{reducer(e,t){var n=Lp(e).payload.indexOf(Dm(t.payload));n>-1&&e.payload.splice(n,1)},prepare:Um()}}}),v_=__.actions,v_.setLegendSize,v_.setLegendSettings,y_=v_.addLegendPayload,b_=v_.replaceLegendPayload,x_=v_.removeLegendPayload,S_=__.reducer})),qee=s((e=>{var t=p();t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue})),Jee=s(((e,t)=>{t.exports=qee()}));function Yee(e){e()}function Xee(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Yee(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}function Zee(e,t){let n,r=E_,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Xee())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=E_)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}function w_(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function Qee(e,t){if(w_(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!w_(e[n[r]],t[n[r]]))return!1;return!0}function $ee(){if(!T_.createContext)return{};let e=P_[N_]??=new Map,t=e.get(T_.createContext);return t||(t=T_.createContext(null),e.set(T_.createContext,t)),t}function ete(e){let{children:t,context:n,serverState:r,store:i}=e,a=T_.useMemo(()=>{let e=Zee(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),o=T_.useMemo(()=>i.getState(),[i]);M_(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||F_;return T_.createElement(s.Provider,{value:a},t)}var T_,E_,D_,O_,k_,A_,j_,M_,N_,P_,F_,I_,L_=o((()=>{T_=u(p(),1),Jee(),E_={notify(){},get:()=>[]},D_=()=>typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,O_=D_(),k_=()=>typeof navigator<`u`&&navigator.product===`ReactNative`,A_=k_(),j_=()=>O_||A_?T_.useLayoutEffect:T_.useEffect,M_=j_(),N_=Symbol.for(`react-redux-context`),P_=typeof globalThis<`u`?globalThis:{},F_=$ee(),I_=ete}));function tte(e,t){return e==null&&t==null?!0:typeof e==`number`&&typeof t==`number`?e===t||e!==e&&t!==t:e===t}function R_(e,t){for(var n of new Set([...Object.keys(e),...Object.keys(t)]))if(z_.has(n)){if(e[n]==null&&t[n]==null)continue;if(!Qee(e[n],t[n]))return!1}else if(!tte(e[n],t[n]))return!1;return!0}var z_,B_=o((()=>{L_(),z_=new Set([`axisLine`,`tickLine`,`activeBar`,`activeDot`,`activeLabel`,`activeShape`,`allowEscapeViewBox`,`background`,`cursor`,`dot`,`label`,`line`,`margin`,`padding`,`position`,`shape`,`style`,`tick`,`wrapperStyle`,`radius`,`throttledEvents`])}));function V_(){return V_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V_.apply(null,arguments)}function H_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?H_(Object(n),!0).forEach(function(t){nte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nte(e,t,n){return(t=rte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rte(e){var t=ite(e,`string`);return typeof t==`symbol`?t:t+``}function ite(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ate(e,t){return lte(e)||cte(e,t)||ste(e,t)||ote()}function ote(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ste(e,t){if(e){if(typeof e==`string`)return W_(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W_(e,t):void 0}}function W_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cte(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function lte(e){if(Array.isArray(e))return e}function ute(e){return Array.isArray(e)&&Vs(e[0])&&Vs(e[1])?e.join(` ~ `):e}function dte(e,t){return t==null?e:Df(e,t)}var G_,K_,q_,J_=o((()=>{G_=u(p()),kf(),zo(),Js(),K_={separator:` : `,contentStyle:{margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},itemStyle:{display:`block`,paddingTop:4,paddingBottom:4,color:`#000`},labelStyle:{},accessibilityLayer:!1},q_=e=>{var t=e.separator,n=t===void 0?K_.separator:t,r=e.contentStyle,i=e.itemStyle,a=e.labelStyle,o=a===void 0?K_.labelStyle:a,s=e.payload,c=e.formatter,l=e.itemSorter,u=e.wrapperClassName,d=e.labelClassName,f=e.label,p=e.labelFormatter,m=e.accessibilityLayer,h=m===void 0?K_.accessibilityLayer:m,g=()=>{if(s&&s.length){var e={padding:0,margin:0},t=dte(s,l).map((e,t)=>{if(!e||e.type===`none`)return null;var r=e.formatter||c||ute,a=e.value,o=e.name,l=a,u=o;if(r){var d=r(a,o,e,t,s);if(Array.isArray(d)){var f=ate(d,2);l=f[0],u=f[1]}else if(d!=null)l=d;else return null}var p=U_(U_({},K_.itemStyle),{},{color:e.color||K_.itemStyle.color},i);return G_.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${t}`,style:p},Vs(u)?G_.createElement(`span`,{className:`recharts-tooltip-item-name`},u):null,Vs(u)?G_.createElement(`span`,{className:`recharts-tooltip-item-separator`},n):null,G_.createElement(`span`,{className:`recharts-tooltip-item-value`},l),G_.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return G_.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},t)}return null},_=U_(U_({},K_.contentStyle),r),v=U_({margin:0},o),y=!Ks(f),b=y?f:``,x=Ro(`recharts-default-tooltip`,u),S=Ro(`recharts-tooltip-label`,d);y&&p&&s!=null&&(b=p(f,s));var C=h?{role:`status`,"aria-live":`assertive`}:{};return G_.createElement(`div`,V_({className:x,style:_},C),G_.createElement(`p`,{className:S,style:v},G_.isValidElement(b)?b:`${b}`),g())}}));function fte(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ro(X_,{[`${X_}-right`]:Bs(n)&&t&&Bs(t.x)&&n>=t.x,[`${X_}-left`]:Bs(n)&&t&&Bs(t.x)&&n<t.x,[`${X_}-bottom`]:Bs(r)&&t&&Bs(t.y)&&r>=t.y,[`${X_}-top`]:Bs(r)&&t&&Bs(t.y)&&r<t.y})}function Y_(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offset,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&Bs(a[r]))return a[r];var u=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return o[r]?u:d;var f=c[r];return f==null?0:o[r]?Math.max(u<f?d:u,f):l==null?0:d+s>f+l?Math.max(u,f):Math.max(d,f)}function pte(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function mte(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTop,i=e.offsetLeft,a=e.position,o=e.reverseDirection,s=e.tooltipBox,c=e.useTranslate3d,l=e.viewBox,u,d,f;return s&&s.height>0&&s.width>0&&n?(d=Y_({allowEscapeViewBox:t,coordinate:n,key:`x`,offset:i,position:a,reverseDirection:o,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),f=Y_({allowEscapeViewBox:t,coordinate:n,key:`y`,offset:r,position:a,reverseDirection:o,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),u=pte({translateX:d,translateY:f,useTranslate3d:c})):u=Z_,{cssProperties:u,cssClasses:fte({translateX:d,translateY:f,coordinate:n})}}var X_,Z_,hte=o((()=>{zo(),Js(),X_=`recharts-tooltip-wrapper`,Z_={visibility:`hidden`}})),Q_,$_,ev=o((()=>{Q_=()=>!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout),$_={devToolsEnabled:!0,isSsr:Q_()}}));function gte(e,t){return bte(e)||yte(e,t)||vte(e,t)||_te()}function _te(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vte(e,t){if(e){if(typeof e==`string`)return tv(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tv(e,t):void 0}}function tv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yte(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function bte(e){if(Array.isArray(e))return e}function nv(){var e=gte((0,rv.useState)(()=>$_.isSsr||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches),2),t=e[0],n=e[1];return(0,rv.useEffect)(()=>{if(window.matchMedia){var e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>{n(e.matches)};return e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}},[]),t}var rv,iv=o((()=>{rv=u(p()),ev()}));function av(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ov(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?av(Object(n),!0).forEach(function(t){xte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):av(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xte(e,t,n){return(t=Ste(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ste(e){var t=Cte(e,`string`);return typeof t==`symbol`?t:t+``}function Cte(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wte(e,t){return Ote(e)||Dte(e,t)||Ete(e,t)||Tte()}function Tte(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ete(e,t){if(e){if(typeof e==`string`)return sv(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sv(e,t):void 0}}function sv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dte(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ote(e){if(Array.isArray(e))return e}function kte(e){if(!(e.prefersReducedMotion&&e.isAnimationActive===`auto`)&&e.isAnimationActive&&e.active){var t=typeof e.animationEasing==`string`?e.animationEasing:`ease`;return`transform ${e.animationDuration}ms ${t}`}}function Ate(e){var t=nv(),n=wte(cv.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})),2),r=n[0],i=n[1];cv.useEffect(()=>{var t=t=>{t.key===`Escape`&&i({dismissed:!0,dismissedAtCoordinate:{x:e.coordinate?.x??0,y:e.coordinate?.y??0}})};return document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[e.coordinate?.x,e.coordinate?.y]),r.dismissed&&((e.coordinate?.x??0)!==r.dismissedAtCoordinate.x||(e.coordinate?.y??0)!==r.dismissedAtCoordinate.y)&&i(ov(ov({},r),{},{dismissed:!1}));var a=mte({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset==`number`?e.offset:e.offset.x,offsetTop:typeof e.offset==`number`?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:e.lastBoundingBox,useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),o=a.cssClasses,s=a.cssProperties,c=ov(ov({},e.hasPortalFromProps?{}:ov(ov({transition:kte({prefersReducedMotion:t,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},s),{},{pointerEvents:`none`,position:`absolute`,top:0,left:0})),{},{visibility:!r.dismissed&&e.active&&e.hasPayload?`visible`:`hidden`},e.wrapperStyle);return cv.createElement(`div`,{xmlns:`http://www.w3.org/1999/xhtml`,tabIndex:-1,className:o,style:c,ref:e.innerRef},e.children)}var cv,lv,jte=o((()=>{cv=u(p()),hte(),iv(),lv=cv.memo(Ate)})),uv,dv=o((()=>{Yd(),uv=()=>Vd(e=>e.rootProps.accessibilityLayer)??!0}));function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fv.apply(null,arguments)}function pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pv(Object(n),!0).forEach(function(t){Mte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mte(e,t,n){return(t=Nte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nte(e){var t=Pte(e,`string`);return typeof t==`symbol`?t:t+``}function Pte(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var hv,gv,_v,vv,yv,bv,xv,Sv,Cv,wv,Tv=o((()=>{hv=u(p()),Nl(),zo(),zl(),Js(),Wh(),Yo(),g_(),gv={curveBasisClosed:Gc,curveBasisOpen:Jc,curveBasis:Hc,curveBumpX:Pc,curveBumpY:Fc,curveLinearClosed:Zc,curveLinear:Tc,curveMonotoneX:ol,curveMonotoneY:sl,curveNatural:dl,curveStep:ml,curveStepAfter:gl,curveStepBefore:hl},_v=e=>Hh(e.x)&&Hh(e.y),vv=e=>e.base!=null&&_v(e.base)&&_v(e),yv=e=>e.x,bv=e=>e.y,xv=(e,t)=>{if(typeof e==`function`)return e;var n=`curve${qs(e)}`;if((n===`curveMonotone`||n===`curveBump`)&&t){var r=gv[`${n}${t===`vertical`?`Y`:`X`}`];if(r)return r}return gv[n]||Tc},Sv={connectNulls:!1,type:`linear`},Cv=e=>{var t=e.type,n=t===void 0?Sv.type:t,r=e.points,i=r===void 0?[]:r,a=e.baseLine,o=e.layout,s=e.connectNulls,c=s===void 0?Sv.connectNulls:s,l=xv(n,o),u=c?i.filter(_v):i;if(Array.isArray(a)){var d,f=i.map((e,t)=>mv(mv({},e),{},{base:a[t]}));return d=o===`vertical`?Mc().y(bv).x1(yv).x0(e=>e.base.x):Mc().x(yv).y1(bv).y0(e=>e.base.y),d.defined(vv).curve(l)(c?f.filter(vv):f)}return(o===`vertical`&&Bs(a)?Mc().y(bv).x1(yv).x0(a):Bs(a)?Mc().x(yv).y1(bv).y0(a):Ac().x(yv).y(bv)).defined(_v).curve(l)(u)},wv=e=>{var t=e.className,n=e.points,r=e.path,i=e.pathRef,a=d_();if((!n||!n.length)&&!r)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},s=n&&n.length?Cv(o):r;return hv.createElement(`path`,fv({},Go(e),Il(e),{className:Ro(`recharts-curve`,t),d:s===null?void 0:s,ref:i}))}}));function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ev.apply(null,arguments)}function Dv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fte(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Dv(Object(n),!0).forEach(function(t){Ite(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ite(e,t,n){return(t=Lte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lte(e){var t=Rte(e,`string`);return typeof t==`symbol`?t:t+``}function Rte(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zte(e,t){if(e==null)return{};var n,r,i=Bte(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bte(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ov,kv,Av,jv,Mv=o((()=>{Ov=u(p()),zo(),Js(),Zo(),kv=[`x`,`y`,`top`,`left`,`width`,`height`,`className`],Av=(e,t,n,r,i,a)=>`M${e},${i}v${r}M${a},${t}h${n}`,jv=e=>{var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.top,o=a===void 0?0:a,s=e.left,c=s===void 0?0:s,l=e.width,u=l===void 0?0:l,d=e.height,f=d===void 0?0:d,p=e.className,m=zte(e,kv),h=Fte({x:n,y:i,top:o,left:c,width:u,height:f},m);return!Bs(n)||!Bs(i)||!Bs(u)||!Bs(f)||!Bs(o)||!Bs(c)?null:Ov.createElement(`path`,Ev({},Xo(h),{className:Ro(`recharts-cross`,p),d:Av(n,i,u,f,o,c)}))}}));function Vte(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}var Hte=o((()=>{})),Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Ute=o((()=>{Nv=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Pv=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),Fv=(e,t)=>n=>Pv(Nv(e,t),n),Iv=(e,t)=>n=>Pv([...Nv(e,t).map((e,t)=>e*t).slice(1),0],n),Lv=e=>{var t,n=e.split(`(`);if(n.length!==2||n[0]!==`cubic-bezier`)return null;var r=(t=n[1])==null||(t=t.split(`)`)[0])==null?void 0:t.split(`,`);if(r==null||r.length!==4)return null;var i=r.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]},Rv=function(){var e=[...arguments];if(e.length===1)switch(e[0]){case`linear`:return[0,0,1,1];case`ease`:return[.25,.1,.25,1];case`ease-in`:return[.42,0,1,1];case`ease-out`:return[.42,0,.58,1];case`ease-in-out`:return[0,0,.58,1];default:var t=Lv(e[0]);if(t)return t}return e.length===4?e:[0,0,1,1]},zv=(e,t,n,r)=>{var i=Fv(e,n),a=Fv(t,r),o=Iv(e,n),s=e=>e>1?1:e<0?0:e,c=e=>{for(var t=e>1?1:e,n=t,r=0;r<8;++r){var c=i(n)-t,l=o(n);if(Math.abs(c-t)<1e-4||l<1e-4)return a(n);n=s(n-c/l)}return a(n)};return c.isStepper=!1,c},Bv=function(){return zv(...Rv(...arguments))},Vv=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,a=e.dt,o=a===void 0?16.67:a,s=1,c=[0],l=0,u=0,d=1e4,f=0;f<d;){var p=-(l-s)*n,m=u*i;if(u+=(p-m)*o/1e3,l+=u*o/1e3,c.push(l),Math.abs(l-s)<1e-4&&Math.abs(u)<1e-4)break;f++}c[c.length-1]=s;var h=c.length-1;return e=>{if(e<=0)return 0;if(e>=1)return s;var t=e*h,n=Math.floor(t),r=t-n;return(c[n]??0)+((c[n+1]??0)-(c[n]??0))*r}},Hv=e=>{if(typeof e==`string`)switch(e){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return Bv(e);case`spring`:return Vv();default:if(e.split(`(`)[0]===`cubic-bezier`)return Bv(e)}return typeof e==`function`?e:null}})),Uv,Wte=o((()=>{Uv=(e,t,n)=>{var r,i=a=>{var o=t.tick(a);if(t.getState()===`active`){if(n(t.getInterpolated()),t.getProgress()===1){t.complete(),r=void 0;return}r=e.setTimeout(i,o);return}r=e.setTimeout(i,o)};return r=e.setTimeout(i,0),()=>r?.()}}));function Gte(e){var t=(0,Wv.useContext)(Gv);return(0,Wv.useMemo)(()=>e??t,[e,t])}var Wv,Gv,Kv=o((()=>{Wv=u(p()),Wte(),Gv=(0,Wv.createContext)(Uv),Gv.Provider}));function Kte(e,t,n){return(t=qte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qte(e){var t=Jte(e,`string`);return typeof t==`symbol`?t:t+``}function Jte(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qv(e){return Math.max(0,e)}var Jv,Yv,Xv,Zv,Qv,$v,ey=o((()=>{Js(),Jv=`init`,Yv=`pending`,Xv=`active`,Zv=`completed`,Qv=class{getAnimationStartedTime(){return this.animationStartedTime}getBeginStartedTime(){return this.beginStartedTime}constructor(e){var t;Kte(this,`state`,Jv),this.animationId=e.animationId,this.onAnimationEnd=e.onAnimationEnd,this.animationDuration=qv(e.animationDuration),this.animationBegin=qv(e.animationBegin),this.progress=0,this.from=e.from,this.to=e.to,this.easing=e.easing,(t=e.onAnimationStart)==null||t.call(e)}getState(){return this.state}getEasing(){return this.easing}getAnimationDuration(){return this.animationDuration}tick(e){if(this.getState()===Jv)return this.state=Yv,this.beginStartedTime=e,this.animationBegin;if(this.getState()===Yv){if(this.beginStartedTime==null)throw Error();var t=e-this.beginStartedTime;return t>=this.animationBegin?(this.state=Xv,this.animationStartedTime=e,this.nextAnimationUpdate(0)):qv(this.animationBegin-t)}if(this.getState()===Xv){if(this.animationStartedTime==null)throw Error();var n=e-this.animationStartedTime;return this.setProgress(n/this.animationDuration),this.nextAnimationUpdate(n)}return 0}setProgress(e){this.progress=Math.min(1,Math.max(0,e))}getProgress(){return this.progress}complete(){if(this.progress=1,this.state===`active`){var e;(e=this.onAnimationEnd)==null||e.call(this)}this.state=Zv}getFrom(){return this.from}getTo(){return this.to}getAnimationId(){return this.animationId}getAnimationBegin(){return this.animationBegin}},$v=class extends Qv{nextAnimationUpdate(){return 0}getInterpolated(){return this.easing(Ns(this.getFrom(),this.getTo(),this.getProgress()))}}})),ty,ny=o((()=>{ty=class{setTimeout(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),r=null,i=a=>{a-n>=t?e(a):r=requestAnimationFrame(i)};return r=requestAnimationFrame(i),()=>{r!=null&&cancelAnimationFrame(r)}}}}));function Yte(e,t){return $te(e)||Qte(e,t)||Zte(e,t)||Xte()}function Xte(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zte(e,t){if(e){if(typeof e==`string`)return ry(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ry(e,t):void 0}}function ry(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qte(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function $te(e){if(Array.isArray(e))return e}function iy(e){var t=Gl(e,oy),n=t.animationId,r=t.isActive,i=t.canBegin,a=t.duration,o=t.easing,s=t.begin,c=t.onAnimationEnd,l=t.onAnimationStart,u=t.children,d=nv(),f=r===`auto`?!$_.isSsr&&!d:r,p=Gte(t.animationController),m=Yte((0,ay.useState)(f?sy:cy),2),h=m[0],g=m[1];return(0,ay.useEffect)(()=>{f||g(cy)},[f]),(0,ay.useEffect)(()=>{var e=Hv(o);return!f||!i||e==null?Is:p(new ty,new $v({animationId:n,easing:e,animationDuration:a,animationBegin:s,onAnimationStart:l,onAnimationEnd:c,from:sy,to:cy}),g)},[p,n,f,i,a,o,s,l,c]),u(Number(h))}var ay,oy,sy,cy,ly=o((()=>{ay=u(p()),Js(),Kl(),Ute(),Kv(),ev(),iv(),ey(),ny(),oy={begin:0,duration:1e3,easing:`ease`,isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},sy=0,cy=1}));function uy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`animation-`,n=(0,dy.useRef)(Us(t)),r=(0,dy.useRef)(e);return r.current!==e&&(n.current=Us(t),r.current=e),n.current}var dy,fy=o((()=>{dy=u(p()),Js()})),py,my,hy=o((()=>{py=e=>e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),my=(e,t,n)=>e.map(e=>`${py(e)} ${t}ms ${n}`).join(`,`)}));function gy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gy(Object(n),!0).forEach(function(t){ene(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gy(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ene(e,t,n){return(t=tne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tne(e){var t=nne(e,`string`);return typeof t==`symbol`?t:t+``}function nne(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vy(){return vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vy.apply(null,arguments)}function yy(e,t){if(e==null)return{};var n,r,i=rne(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ine(e,t){return cne(e)||sne(e,t)||one(e,t)||ane()}function ane(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function one(e,t){if(e){if(typeof e==`string`)return by(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?by(e,t):void 0}}function by(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sne(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function cne(e){if(Array.isArray(e))return e}function xy(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Sy,Cy,wy,Ty,lne,une,dne,fne,pne,mne,hne,gne,_ne,vne,Ey,Dy,Oy,ky=o((()=>{Sy=u(p()),Cy=u(p()),zo(),Kl(),ly(),Js(),fy(),hy(),Zo(),Ms(),wy=[`radius`],Ty=[`radius`],Ey=(e,t,n,r,i)=>{var a=ks(n),o=ks(r),s=Math.min(Math.abs(a)/2,Math.abs(o)/2),c=o>=0?1:-1,l=a>=0?1:-1,u=+(o>=0&&a>=0||o<0&&a<0),d;if(s>0&&Array.isArray(i)){for(var f=[0,0,0,0],p=0,m=4;p<m;p++){var h=i[p]??0;f[p]=h>s?s:h}d=As(lne||=xy([`M`,`,`,``]),e,t+c*f[0]),f[0]>0&&(d+=As(une||=xy([`A `,`,`,`,0,0,`,`,`,`,`,``]),f[0],f[0],u,e+l*f[0],t)),d+=As(dne||=xy([`L `,`,`,``]),e+n-l*f[1],t),f[1]>0&&(d+=As(fne||=xy([`A `,`,`,`,0,0,`,`,
`,`,`,``]),f[1],f[1],u,e+n,t+c*f[1])),d+=As(pne||=xy([`L `,`,`,``]),e+n,t+r-c*f[2]),f[2]>0&&(d+=As(mne||=xy([`A `,`,`,`,0,0,`,`,
`,`,`,``]),f[2],f[2],u,e+n-l*f[2],t+r)),d+=As(hne||=xy([`L `,`,`,``]),e+l*f[3],t+r),f[3]>0&&(d+=As(gne||=xy([`A `,`,`,`,0,0,`,`,
`,`,`,``]),f[3],f[3],u,e,t+r-c*f[3])),d+=`Z`}else if(s>0&&i===+i&&i>0){var g=Math.min(s,i);d=As(_ne||=xy(`M .,.
A .,.,0,0,.,.,.
L .,.
A .,.,0,0,.,.,.
L .,.
A .,.,0,0,.,.,.
L .,.
A .,.,0,0,.,.,. Z`.split(`.`)),e,t+c*g,g,g,u,e+l*g,t,e+n-l*g,t,g,g,u,e+n,t+c*g,e+n,t+r-c*g,g,g,u,e+n-l*g,t+r,e+l*g,t+r,g,g,u,e,t+r-c*g)}else d=As(vne||=xy([`M `,`,`,` h `,` v `,` h `,` Z`]),e,t,n,r,-n);return d},Dy={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},Oy=e=>{var t=Gl(e,Dy),n=(0,Cy.useRef)(null),r=ine((0,Cy.useState)(-1),2),i=r[0],a=r[1];(0,Cy.useEffect)(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var o=t.x,s=t.y,c=t.width,l=t.height,u=t.radius,d=t.className,f=t.animationEasing,p=t.animationDuration,m=t.animationBegin,h=t.isAnimationActive,g=t.isUpdateAnimationActive,_=(0,Cy.useRef)(c),v=(0,Cy.useRef)(l),y=(0,Cy.useRef)(o),b=(0,Cy.useRef)(s),x=uy((0,Cy.useMemo)(()=>({x:o,y:s,width:c,height:l,radius:u}),[o,s,c,l,u]),`rectangle-`);if(o!==+o||s!==+s||c!==+c||l!==+l||c===0||l===0)return null;var S=Ro(`recharts-rectangle`,d);if(!g){var C=Xo(t);C.radius;var w=yy(C,wy);return Sy.createElement(`path`,vy({},w,{x:ks(o),y:ks(s),width:ks(c),height:ks(l),radius:typeof u==`number`?u:void 0,className:S,d:Ey(o,s,c,l,u)}))}var T=_.current,E=v.current,D=y.current,O=b.current,k=`0px ${i===-1?1:i}px`,A=`${i}px ${i}px`,j=my([`strokeDasharray`],p,typeof f==`string`?f:Dy.animationEasing);return Sy.createElement(iy,{animationId:x,key:x,canBegin:i>0,duration:p,easing:f,isActive:g,begin:m},e=>{var r=Ns(T,c,e),i=Ns(E,l,e),a=Ns(D,o,e),d=Ns(O,s,e);n.current&&(_.current=r,v.current=i,y.current=a,b.current=d);var f=h?e>0?{transition:j,strokeDasharray:A}:{strokeDasharray:k}:{strokeDasharray:A},p=Xo(t);p.radius;var m=yy(p,Ty);return Sy.createElement(`path`,vy({},m,{radius:typeof u==`number`?u:void 0,className:S,d:Ey(a,d,r,i,u),ref:n,style:_y(_y({},f),t.style)}))})}}));function Ay(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ay(Object(n),!0).forEach(function(t){yne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ay(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yne(e,t,n){return(t=bne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bne(e){var t=xne(e,`string`);return typeof t==`symbol`?t:t+``}function xne(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var My,Ny,Py,Fy,Iy,Ly,Sne,Cne,wne,Ry=o((()=>{My=Math.PI/180,Ny=e=>e*180/Math.PI,Py=(e,t,n,r)=>({x:e+Math.cos(-My*r)*n,y:t+Math.sin(-My*r)*n}),Fy=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},Iy=(e,t)=>{var n=e.x,r=e.y,i=t.x,a=t.y;return Math.sqrt((n-i)**2+(r-a)**2)},Ly=(e,t)=>{var n=e.x,r=e.y,i=t.cx,a=t.cy,o=Iy({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:Ny(c),angleInRadian:c}},Sne=e=>{var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},Cne=(e,t)=>{var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},wne=(e,t)=>{var n=e.relativeX,r=e.relativeY,i=Ly({x:n,y:r},t),a=i.radius,o=i.angle,s=t.innerRadius,c=t.outerRadius;if(a<s||a>c||a===0)return null;var l=Sne(t),u=l.startAngle,d=l.endAngle,f=o,p;if(u<=d){for(;f>d;)f-=360;for(;f<u;)f+=360;p=f>=u&&f<=d}else{for(;f>u;)f-=360;for(;f<d;)f+=360;p=f>=d&&f<=u}return p?jy(jy({},t),{},{radius:a,angle:Cne(f,t)}):null}}));function Tne(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle;return{points:[Py(t,n,r,i),Py(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var Ene=o((()=>{Ry()}));function zy(){return zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zy.apply(null,arguments)}function By(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Dne,One,kne,Ane,jne,Mne,Nne,Pne,Fne,Vy,Hy,Ine,Lne,Rne,zne=o((()=>{Dne=u(p()),zo(),Ry(),Js(),Kl(),Zo(),Ms(),Fne=(e,t)=>Ls(t-e)*Math.min(Math.abs(t-e),359.999),Vy=e=>{var t=e.cx,n=e.cy,r=e.radius,i=e.angle,a=e.sign,o=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(o?1:-1)+r,u=Math.asin(s/l)/My,d=c?i:i+a*u,f=Py(t,n,l,d),p=Py(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:Py(t,n,l*Math.cos(u*My),m),theta:u}},Hy=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.startAngle,o=e.endAngle,s=Fne(a,o),c=a+s,l=Py(t,n,i,a),u=Py(t,n,i,c),d=As(One||=By([`M `,`,`,`
A `,`,`,`,0,
`,`,`,`,
`,`,`,`
`]),l.x,l.y,i,i,+(Math.abs(s)>180),+(a>c),u.x,u.y);if(r>0){var f=Py(t,n,r,a),p=Py(t,n,r,c);d+=As(kne||=By([`L `,`,`,`
A `,`,`,`,0,
`,`,`,`,
`,`,`,` Z`]),p.x,p.y,r,r,+(Math.abs(s)>180),+(a<=c),f.x,f.y)}else d+=As(Ane||=By([`L `,`,`,` Z`]),t,n);return d},Ine=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,o=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=Ls(l-c),d=Vy({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,m=d.theta,h=Vy({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=h.circleTangency,_=h.lineTangency,v=h.theta,y=s?Math.abs(c-l):Math.abs(c-l)-m-v;if(y<0)return o?As(jne||=By([`M `,`,`,`
a`,`,`,`,0,0,1,`,`,0
a`,`,`,`,0,0,1,`,`,0
`]),p.x,p.y,a,a,a*2,a,a,-a*2):Hy({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var b=As(Mne||=By([`M `,`,`,`
A`,`,`,`,0,0,`,`,`,`,`,`
A`,`,`,`,0,`,`,`,`,`,`,`,`
A`,`,`,`,0,0,`,`,`,`,`,`
`]),p.x,p.y,a,a,+(u<0),f.x,f.y,i,i,+(y>180),+(u<0),g.x,g.y,a,a,+(u<0),_.x,_.y);if(r>0){var x=Vy({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),S=x.circleTangency,C=x.lineTangency,w=x.theta,T=Vy({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=T.circleTangency,D=T.lineTangency,O=T.theta,k=s?Math.abs(c-l):Math.abs(c-l)-w-O;if(k<0&&a===0)return`${b}L${t},${n}Z`;b+=As(Nne||=By([`L`,`,`,`
A`,`,`,`,0,0,`,`,`,`,`,`
A`,`,`,`,0,`,`,`,`,`,`,`,`
A`,`,`,`,0,0,`,`,`,`,`,`Z`]),D.x,D.y,a,a,+(u<0),E.x,E.y,r,r,+(k>180),+(u>0),S.x,S.y,a,a,+(u<0),C.x,C.y)}else b+=As(Pne||=By([`L`,`,`,`Z`]),t,n);return b},Lne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Rne=e=>{var t=Gl(e,Lne),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,d=t.className;if(a<i||l===u)return null;var f=Ro(`recharts-sector`,d),p=a-i,m=Ws(o,p,0,!0),h=m>0&&Math.abs(l-u)<360?Ine({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,p/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):Hy({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return Dne.createElement(`path`,zy({},Xo(t),{className:f,d:h}))}}));function Bne(e,t,n){if(e===`horizontal`)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e===`vertical`)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(Fl(t)){if(e===`centric`){var r=t.cx,i=t.cy,a=t.innerRadius,o=t.outerRadius,s=t.angle,c=Py(r,i,a,s),l=Py(r,i,o,s);return[{x:c.x,y:c.y},{x:l.x,y:l.y}]}return Tne(t)}}var Vne=o((()=>{Ry(),zl(),Ene()}));function Hne(e){return yf(e)?NaN:Number(e)}var Une=o((()=>{bf()}));function Uy(e){return e?(e=Hne(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}var Wy=o((()=>{Une()}));function Gy(e,t,n){n&&typeof n!=`number`&&mf(e,t,n)&&(t=n=void 0),e=Uy(e),t===void 0?(t=e,e=0):t=Uy(t),n=n===void 0?e<t?1:-1:Uy(n);let r=Math.max(Math.ceil((t-e)/(n||1)),0),i=Array(r);for(let t=0;t<r;t++)i[t]=e,e+=n;return i}var Wne=o((()=>{Wy(),hf()})),Ky=o((()=>{Wne()})),qy,Jy,Yy,Xy,Zy,Qy,$y=o((()=>{df(),qy=e=>e.chartData,Jy=B([qy],e=>{var t=e.chartData==null?0:e.chartData.length-1;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Yy=(e,t,n,r)=>r?Jy(e):qy(e),Xy=(e,t,n)=>n?Jy(e):qy(e),Zy=B([Yy],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)}),B([Jy],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)}),Qy=B([qy],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)})}));function eb(e,t){return Jne(e)||qne(e,t)||Kne(e,t)||Gne()}function Gne(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kne(e,t){if(e){if(typeof e==`string`)return tb(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tb(e,t):void 0}}function tb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qne(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Jne(e){if(Array.isArray(e))return e}function nb(e){if(Array.isArray(e)&&e.length===2){var t=eb(e,2),n=t[0],r=t[1];if(Hh(n)&&Hh(r))return!0}return!1}function rb(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function ib(e,t){if(t&&typeof e!=`function`&&Array.isArray(e)&&e.length===2){var n=eb(e,2),r=n[0],i=n[1],a,o;if(Hh(r))a=r;else if(typeof r==`function`)return;if(Hh(i))o=i;else if(typeof i==`function`)return;var s=[a,o];if(nb(s))return s}}function Yne(e,t,n){if(!(!n&&t==null)){if(typeof e==`function`&&t!=null)try{var r=e(t,n);if(nb(r))return rb(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var i=eb(e,2),a=i[0],o=i[1],s,c;if(a===`auto`)t!=null&&(s=Math.min(...t));else if(Bs(a))s=a;else if(typeof a==`function`)try{t!=null&&(s=a(t?.[0]))}catch{}else if(typeof a==`string`&&og.test(a)){var l=og.exec(a);if(l==null||l[1]==null||t==null)s=void 0;else{var u=+l[1];s=t[0]-u}}else s=t?.[0];if(o===`auto`)t!=null&&(c=Math.max(...t));else if(Bs(o))c=o;else if(typeof o==`function`)try{t!=null&&(c=o(t?.[1]))}catch{}else if(typeof o==`string`&&sg.test(o)){var d=sg.exec(o);if(d==null||d[1]==null||t==null)c=void 0;else{var f=+d[1];c=t[1]+f}}else c=t?.[1];var p=[s,c];if(nb(p))return t==null?p:rb(p,t,n)}}}var ab=o((()=>{dg(),Js(),Wh()})),ob=s(((e,t)=>{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,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(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]<t[n]),e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,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=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0){if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i)}if((i=e[r=`LN10`])!==void 0){if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i)}return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}));function sb(e){return e===0?1:Math.floor(new lb.default(e).abs().log(10).toNumber())+1}function cb(e,t,n){for(var r=new lb.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var lb,Xne=o((()=>{lb=u(ob())}));function ub(e,t){return ere(e)||$ne(e,t)||Qne(e,t)||Zne()}function Zne(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qne(e,t){if(e){if(typeof e==`string`)return db(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?db(e,t):void 0}}function db(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $ne(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ere(e){if(Array.isArray(e))return e}var fb,pb,mb,hb,gb,_b,vb,yb,bb=o((()=>{fb=u(ob()),Xne(),pb=e=>{var t=ub(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]},mb=(e,t,n)=>{if(e.lte(0))return new fb.default(0);var r=sb(e.toNumber()),i=new fb.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new fb.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?new fb.default(s.toNumber()):new fb.default(Math.ceil(s.toNumber()))},hb=(e,t,n)=>{if(e.lte(0))return new fb.default(0);var r=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new fb.default(i).abs().log(10).toNumber()),o=new fb.default(10).pow(a),s=e.div(o).toNumber(),c=r.findIndex(e=>e>=s-1e-10);if(c===-1&&(o=o.mul(10),c=0),c+=n,c>=r.length){var l=Math.floor(c/r.length);c%=r.length,o=o.mul(new fb.default(10).pow(l))}var u=r[c]??1,d=new fb.default(u).mul(o);return t?d:new fb.default(Math.ceil(d.toNumber()))},gb=(e,t,n)=>{var r=new fb.default(1),i=new fb.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new fb.default(10).pow(sb(e)-1),i=new fb.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new fb.default(Math.floor(e)))}else e===0?i=new fb.default(Math.floor((t-1)/2)):n||(i=new fb.default(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],c=0;c<t;c++)s.push(i.add(new fb.default(c-o).mul(r)).toNumber());return s},_b=function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:mb;if(!Number.isFinite((t-e)/(n-1)))return{step:new fb.default(0),tickMin:new fb.default(0),tickMax:new fb.default(0)};var o=a(new fb.default(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new fb.default(0):(s=new fb.default(e).add(t).div(2),s=s.sub(new fb.default(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),l=Math.ceil(new fb.default(t).sub(s).div(o).toNumber()),u=c+l+1;return u>n?_b(e,t,n,r,i+1,a):(u<n&&(l=t>0?l+(n-u):l,c=t>0?c:c+(n-u)),{step:o,tickMin:s.sub(new fb.default(c).mul(o)),tickMax:s.add(new fb.default(l).mul(o))})},vb=function(e){var t=ub(e,2),n=t[0],r=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=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,s=Math.max(i,2),c=ub(pb([n,r]),2),l=c[0],u=c[1];if(l===-1/0||u===1/0){var d=u===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),u];return n>r?d.reverse():d}if(l===u)return gb(l,i,a);var f=_b(l,u,s,a,0,o===`snap125`?hb:mb),p=f.step,m=f.tickMin,h=f.tickMax,g=cb(m,h.add(new fb.default(.1).mul(p)),p);return n>r?g.reverse():g},yb=function(e,t){var n=ub(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,s=ub(pb([r,i]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0)return[r,i];if(c===l)return[c];var u=o===`snap125`?hb:mb,d=Math.max(t,2),f=u(new fb.default(l).sub(c).div(d-1),a,0),p=[...cb(new fb.default(c),new fb.default(l),f),l];if(a===!1){p=p.map(e=>Math.round(e));var m=p.length-1;m>0&&p[m]===p[m-1]&&(p=p.slice(0,m))}return r>i?p.reverse():p}})),tre=o((()=>{bb()})),xb,Sb,Cb,wb,Tb,Eb,Db,Ob,kb,Ab,jb=o((()=>{xb=e=>e.rootProps.maxBarSize,Sb=e=>e.rootProps.barGap,Cb=e=>e.rootProps.barCategoryGap,wb=e=>e.rootProps.barSize,Tb=e=>e.rootProps.stackOffset,Eb=e=>e.rootProps.reverseStackOrder,Db=e=>e.options.chartName,Ob=e=>e.rootProps.syncId,kb=e=>e.rootProps.syncMethod,Ab=e=>e.options.eventEmitter})),Mb,Nb=o((()=>{Mb={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3}})),Pb,Fb=o((()=>{Nb(),Pb={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:`polygon`,cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:`auto`,orientation:`outer`,reversed:!1,scale:`auto`,tick:!0,tickLine:!0,tickSize:8,type:`auto`,zIndex:Mb.axis}})),Ib,Lb=o((()=>{Nb(),Ib={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:`auto`,label:!1,orientation:`right`,radiusAxisId:0,reversed:!1,scale:`auto`,stroke:`#ccc`,tick:!0,tickCount:5,tickLine:!0,type:`auto`,zIndex:Mb.axis}})),Rb,zb=o((()=>{Rb=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t}}));function Bb(e,t,n){if(n!==`auto`)return n;if(e!=null)return Yh(e,t)?`category`:`number`}var Vb=o((()=>{dg()}));function Hb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ub(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hb(Object(n),!0).forEach(function(t){nre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nre(e,t,n){return(t=rre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rre(e){var t=ire(e,`string`);return typeof t==`symbol`?t:t+``}function ire(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix=o((()=>{df(),gg(),Og(),Ry(),Js(),Fb(),Lb(),zb(),g_(),Vb(),Wb={allowDataOverflow:Pb.allowDataOverflow,allowDecimals:Pb.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Pb.angleAxisId,includeHidden:!1,name:void 0,reversed:Pb.reversed,scale:Pb.scale,tick:Pb.tick,tickCount:void 0,ticks:void 0,type:Pb.type,unit:void 0,niceTicks:`auto`},Gb={allowDataOverflow:Ib.allowDataOverflow,allowDecimals:Ib.allowDecimals,allowDuplicatedCategory:Ib.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Ib.radiusAxisId,includeHidden:Ib.includeHidden,name:void 0,reversed:Ib.reversed,scale:Ib.scale,tick:Ib.tick,tickCount:Ib.tickCount,ticks:void 0,type:Ib.type,unit:void 0,niceTicks:`auto`},Kb=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},qb=B([Kb,p_],(e,t)=>{if(e!=null)return e;var n=Bb(t,`angleAxis`,Wb.type)??`category`;return Ub(Ub({},Wb),{},{type:n})}),Jb=(e,t)=>e.polarAxis.radiusAxis[t],Yb=B([Jb,p_],(e,t)=>{if(e!=null)return e;var n=Bb(t,`radiusAxis`,Gb.type)??`category`;return Ub(Ub({},Gb),{},{type:n})}),Xb=e=>e.polarOptions,Zb=B([fg,pg,Tg],Fy),Qb=B([Xb,Zb],(e,t)=>{if(e!=null)return Ws(e.innerRadius,t,0)}),$b=B([Xb,Zb],(e,t)=>{if(e!=null)return Ws(e.outerRadius,t,t*.8)}),ex=e=>e==null?[0,0]:[e.startAngle,e.endAngle],tx=B([Xb],ex),B([qb,tx],Rb),nx=B([Zb,Qb,$b],(e,t,n)=>{if(e!=null&&t!=null&&n!=null)return[t,n]}),B([Yb,nx],Rb),rx=B([u_,Xb,Qb,$b,fg,pg],(e,t,n,r,i,a)=>{if(!(e!==`centric`&&e!==`radial`||t==null||n==null||r==null)){var o=t.cx,s=t.cy,c=t.startAngle,l=t.endAngle;return{cx:Ws(o,i,i/2),cy:Ws(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:l,clockWise:!1}}})})),ax,ox=o((()=>{ax=(e,t)=>t})),sx,cx=o((()=>{sx=(e,t,n)=>n}));function lx(e){return e?.id}var ux=o((()=>{}));function dx(e,t,n){var r=t.chartData,i=r===void 0?[]:r,a=n.allowDuplicatedCategory,o=n.dataKey,s=new Map;return e.forEach(e=>{var t=e.data??i;if(t!=null&&t.length!==0){var n=lx(e);t.forEach((t,r)=>{var i=o==null||a?r:String(qh(t,o,null)),c=qh(t,e.dataKey,0),l=s.has(i)?s.get(i):{};Object.assign(l,{[n]:c}),s.set(i,l)})}}),Array.from(s.values())}var fx=o((()=>{ux(),dg()}));function px(e){return`stackId`in e&&e.stackId!=null&&e.dataKey!=null}var mx=o((()=>{})),hx,gx=o((()=>{hx=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1]}));function _x(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function are(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var vx=o((()=>{})),yx,bx=o((()=>{g_(),yx=e=>{var t=u_(e);return t===`horizontal`?`xAxis`:t===`vertical`?`yAxis`:t===`centric`?`angleAxis`:`radiusAxis`}})),xx,Sx=o((()=>{xx=e=>e.tooltip.settings.axisId}));function Cx(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],n=i[1];return t<=n?e>=t&&e<=n:e>=n&&e<=t},bandwidth:n?()=>n.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(t,n)=>{var r=e(t);if(r!=null){if(e.bandwidth&&n!=null&&n.position){var i=e.bandwidth();switch(n.position){case`middle`:r+=i/2;break;case`end`:r+=i}}return r}}}}}var wx=o((()=>{})),Tx,Ex=o((()=>{ab(),Wh(),Tx=(e,t)=>{if(t!=null)switch(e){case`linear`:if(!nb(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];Hh(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t;default:return t}}}));function Dx(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}var Ox=o((()=>{}));function ore(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}var kx=o((()=>{}));function Ax(e){let t,n,r;e.length===2?(t=e===Dx||e===ore?e:sre,n=e,r=e):(t=Dx,n=(t,n)=>Dx(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function sre(){return 0}var jx=o((()=>{Ox(),kx()}));function Mx(e){return e===null?NaN:+e}function*cre(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var Nx=o((()=>{})),Px,Fx,lre=o((()=>{Ox(),jx(),Nx(),Px=Ax(Dx),Fx=Px.right,Px.left,Ax(Mx).center}));function Ix({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function ure({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function dre({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function fre(e){return typeof e==`object`&&e?e.valueOf():e}var Lx,pre=o((()=>{Lx=class extends Map{constructor(e,t=fre){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Ix(this,e))}has(e){return super.has(Ix(this,e))}set(e,t){return super.set(ure(this,e),t)}delete(e){return super.delete(dre(this,e))}}}));function mre(e=Dx){if(e===Dx)return Rx;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Rx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:+(e>t))}var zx=o((()=>{Ox()}));function Bx(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Wx?10:a>=Gx?5:a>=Kx?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Bx(e,t,n*2):[s,c,l]}function Vx(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?Bx(t,e,n):Bx(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function Hx(e,t,n){return t=+t,e=+e,n=+n,Bx(e,t,n)[2]}function Ux(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?Hx(t,e,n):Hx(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}var Wx,Gx,Kx,hre=o((()=>{Wx=Math.sqrt(50),Gx=Math.sqrt(10),Kx=Math.sqrt(2)}));function qx(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}var Jx=o((()=>{}));function Yx(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var Xx=o((()=>{}));function Zx(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Rx:mre(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));Zx(e,t,u,d,i)}let a=e[t],o=n,s=r;for(Qx(e,n,t),i(e[r],a)>0&&Qx(e,n,r);o<s;){for(Qx(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?Qx(e,n,s):(++s,Qx(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Qx(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var $x=o((()=>{zx()}));function gre(e,t,n){if(e=Float64Array.from(cre(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Yx(e);if(t>=1)return qx(e);var r,i=(r-1)*t,a=Math.floor(i),o=qx(Zx(e,a).subarray(0,a+1));return o+(Yx(e.subarray(a+1))-o)*(i-a)}}function _re(e,t,n=Mx){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}var vre=o((()=>{Jx(),Xx(),$x(),Nx()}));function yre(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}var bre=o((()=>{})),eS=o((()=>{lre(),Ox(),jx(),kx(),pre(),zx(),hre(),vre(),Jx(),Xx(),$x(),bre()}));function tS(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function nS(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)}return this}var rS=o((()=>{}));function iS(){var e=new Lx,t=[],n=[],r=aS;function i(i){let a=e.get(i);if(a===void 0){if(r!==aS)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Lx;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return iS(t,n).unknown(r)},tS.apply(i,arguments),i}var aS,oS=o((()=>{eS(),rS(),aS=Symbol(`implicit`)}));function sS(){var e=iS().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=yre(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return sS(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},tS.apply(d(),arguments)}function cS(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return cS(t())},e}function xre(){return cS(sS.apply(null,arguments).paddingInner(1))}var Sre=o((()=>{eS(),rS(),oS()}));function lS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function uS(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var dS=o((()=>{}));function fS(){}function pS(){return this.rgb().formatHex()}function Cre(){return this.rgb().formatHex8()}function wre(){return ES(this).formatHsl()}function mS(){return this.rgb().formatRgb()}function hS(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=IS.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?gS(t):n===3?new yS(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?_S(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?_S(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=LS.exec(e))?new yS(t[1],t[2],t[3],1):(t=RS.exec(e))?new yS(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zS.exec(e))?_S(t[1],t[2],t[3],t[4]):(t=BS.exec(e))?_S(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=VS.exec(e))?TS(t[1],t[2]/100,t[3]/100,1):(t=HS.exec(e))?TS(t[1],t[2]/100,t[3]/100,t[4]):US.hasOwnProperty(e)?gS(US[e]):e===`transparent`?new yS(NaN,NaN,NaN,0):null}function gS(e){return new yS(e>>16&255,e>>8&255,e&255,1)}function _S(e,t,n,r){return r<=0&&(e=t=n=NaN),new yS(e,t,n,r)}function Tre(e){return e instanceof fS||(e=hS(e)),e?(e=e.rgb(),new yS(e.r,e.g,e.b,e.opacity)):new yS}function vS(e,t,n,r){return arguments.length===1?Tre(e):new yS(e,t,n,r??1)}function yS(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function bS(){return`#${wS(this.r)}${wS(this.g)}${wS(this.b)}`}function Ere(){return`#${wS(this.r)}${wS(this.g)}${wS(this.b)}${wS((isNaN(this.opacity)?1:this.opacity)*255)}`}function xS(){let e=SS(this.opacity);return`${e===1?`rgb(`:`rgba(`}${CS(this.r)}, ${CS(this.g)}, ${CS(this.b)}${e===1?`)`:`, ${e})`}`}function SS(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function CS(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wS(e){return e=CS(e),(e<16?`0`:``)+e.toString(16)}function TS(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new DS(e,t,n,r)}function ES(e){if(e instanceof DS)return new DS(e.h,e.s,e.l,e.opacity);if(e instanceof fS||(e=hS(e)),!e)return new DS;if(e instanceof DS)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new DS(o,s,c,e.opacity)}function Dre(e,t,n,r){return arguments.length===1?ES(e):new DS(e,t,n,r??1)}function DS(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function OS(e){return e=(e||0)%360,e<0?e+360:e}function kS(e){return Math.max(0,Math.min(1,e||0))}function AS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,Ore=o((()=>{dS(),jS=.7,MS=1/jS,NS=`\\s*([+-]?\\d+)\\s*`,PS=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,FS=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,IS=/^#([0-9a-f]{3,8})$/,LS=RegExp(`^rgb\\(${NS},${NS},${NS}\\)$`),RS=RegExp(`^rgb\\(${FS},${FS},${FS}\\)$`),zS=RegExp(`^rgba\\(${NS},${NS},${NS},${PS}\\)$`),BS=RegExp(`^rgba\\(${FS},${FS},${FS},${PS}\\)$`),VS=RegExp(`^hsl\\(${PS},${FS},${FS}\\)$`),HS=RegExp(`^hsla\\(${PS},${FS},${FS},${PS}\\)$`),US={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},lS(fS,hS,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pS,formatHex:pS,formatHex8:Cre,formatHsl:wre,formatRgb:mS,toString:mS}),lS(yS,vS,uS(fS,{brighter(e){return e=e==null?MS:MS**+e,new yS(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?jS:jS**+e,new yS(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new yS(CS(this.r),CS(this.g),CS(this.b),SS(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:bS,formatHex:bS,formatHex8:Ere,formatRgb:xS,toString:xS})),lS(DS,Dre,uS(fS,{brighter(e){return e=e==null?MS:MS**+e,new DS(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?jS:jS**+e,new DS(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new yS(AS(e>=240?e-240:e+120,i,r),AS(e,i,r),AS(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new DS(OS(this.h),kS(this.s),kS(this.l),SS(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(){let e=SS(this.opacity);return`${e===1?`hsl(`:`hsla(`}${OS(this.h)}, ${kS(this.s)*100}%, ${kS(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),WS=o((()=>{Ore(),dS()})),GS=o((()=>{})),KS=o((()=>{GS()})),qS,JS=o((()=>{qS=e=>()=>e}));function kre(e,t){return function(n){return e+n*t}}function Are(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function jre(e){return(e=+e)==1?YS:function(t,n){return n-t?Are(t,n,e):qS(isNaN(t)?n:t)}}function YS(e,t){var n=t-e;return n?kre(e,n):qS(isNaN(e)?t:e)}var XS=o((()=>{JS()})),ZS,QS=o((()=>{WS(),GS(),KS(),XS(),ZS=(function e(t){var n=jre(t);function r(e,t){var r=n((e=vS(e)).r,(t=vS(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=YS(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function Mre(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Nre(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var $S=o((()=>{}));function Pre(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=cC(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}var eC=o((()=>{lC()}));function Fre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var tC=o((()=>{}));function nC(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var rC=o((()=>{}));function Ire(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=cC(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var iC=o((()=>{lC()}));function Lre(e){return function(){return e}}function Rre(e){return function(t){return e(t)+``}}function zre(e,t){var n=aC.lastIndex=oC.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=aC.exec(e))&&(i=oC.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:nC(r,i)})),n=oC.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Rre(c[0].x):Lre(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var aC,oC,sC=o((()=>{rC(),aC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oC=new RegExp(aC.source,`g`)}));function cC(e,t){var n=typeof t,r;return t==null||n===`boolean`?qS(t):(n===`number`?nC:n===`string`?(r=hS(t))?(t=r,ZS):zre:t instanceof hS?ZS:t instanceof Date?Fre:Nre(t)?Mre:Array.isArray(t)?Pre:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Ire:nC)(e,t)}var lC=o((()=>{WS(),QS(),eC(),tC(),rC(),iC(),sC(),JS(),$S()}));function uC(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Bre=o((()=>{}));function Vre(e,t){t===void 0&&(t=e,e=cC);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}var Hre=o((()=>{lC()})),dC=o((()=>{lC(),eC(),GS(),KS(),tC(),XS(),rC(),$S(),iC(),Bre(),sC(),QS(),WS(),Hre()}));function Ure(e){return function(){return e}}var Wre=o((()=>{}));function fC(e){return+e}var pC=o((()=>{}));function mC(e){return e}function hC(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ure(isNaN(t)?NaN:.5)}function Gre(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Kre(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=hC(i,r),a=n(o,a)):(r=hC(r,i),a=n(a,o)),function(e){return a(r(e))}}function qre(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=hC(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=Fx(e,t,1,r)-1;return a[n](i[n](t))}}function gC(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function _C(){var e=yC,t=yC,n=cC,r,i,a,o=mC,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==mC&&(o=Gre(e[0],e[n-1])),s=n>2?qre:Kre,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),nC))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,fC),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=uC,u()},d.clamp=function(e){return arguments.length?(o=e?!0:mC,u()):o!==mC},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function vC(){return _C()(mC,mC)}var yC,bC=o((()=>{eS(),dC(),Wre(),pC(),yC=[0,1]}));function Jre(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function xC(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var SC=o((()=>{}));function CC(e){return e=xC(Math.abs(e)),e?e[1]:NaN}var wC=o((()=>{SC()}));function Yre(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}var Xre=o((()=>{}));function Zre(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Qre=o((()=>{}));function TC(e){if(!(t=DC.exec(e)))throw Error(`invalid format: `+e);var t;return new EC({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]})}function EC(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+``}var DC,OC=o((()=>{DC=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,TC.prototype=EC.prototype,EC.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 $re(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var eie=o((()=>{}));function tie(e,t){var n=xC(e,t);if(!n)return kC=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(kC=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+xC(e,Math.max(0,t+a-1))[0]}var kC,AC=o((()=>{SC()}));function jC(e,t){var n=xC(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var nie=o((()=>{SC()})),MC,rie=o((()=>{SC(),AC(),nie(),MC={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Jre,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)=>jC(e*100,t),r:jC,s:tie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}}));function NC(e){return e}var iie=o((()=>{}));function aie(e){var t=e.grouping===void 0||e.thousands===void 0?NC:Yre(PC.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?NC:Zre(PC.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=TC(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):MC[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=MC[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=$re(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&kC!==void 0?FC[8+kC/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(CC(t)/3)))*3,r=10**-n,i=l((e=TC(e),e.type=`f`,e),{suffix:FC[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var PC,FC,IC=o((()=>{wC(),Xre(),Qre(),OC(),eie(),rie(),AC(),iie(),PC=Array.prototype.map,FC=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`]}));function oie(e){return LC=aie(e),RC=LC.format,zC=LC.formatPrefix,LC}var LC,RC,zC,sie=o((()=>{IC(),oie({thousands:`,`,grouping:[3],currency:[`$`,``]})}));function cie(e){return Math.max(0,-CC(Math.abs(e)))}var lie=o((()=>{wC()}));function uie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(CC(t)/3)))*3-CC(Math.abs(e)))}var die=o((()=>{wC()}));function fie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,CC(t)-CC(e))+1}var pie=o((()=>{wC()})),BC=o((()=>{sie(),IC(),OC(),lie(),die(),pie()}));function VC(e,t,n,r){var i=Ux(e,t,n),a;switch(r=TC(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=uie(i,o))&&(r.precision=a),zC(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=fie(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=cie(i))&&(r.precision=a-(r.type===`%`)*2)}return RC(r)}var HC=o((()=>{eS(),BC()}));function UC(e){var t=e.domain;return e.ticks=function(e){var n=t();return Vx(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return VC(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=Hx(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function WC(){var e=vC();return e.copy=function(){return gC(e,WC())},tS.apply(e,arguments),UC(e)}var GC=o((()=>{eS(),bC(),rS(),HC()}));function KC(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,fC),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return KC(e).unknown(t)},e=arguments.length?Array.from(e,fC):[0,1],UC(n)}var mie=o((()=>{GC(),pC()}));function qC(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var JC=o((()=>{}));function YC(e){return Math.log(e)}function XC(e){return Math.exp(e)}function hie(e){return-Math.log(-e)}function gie(e){return-Math.exp(-e)}function _ie(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function vie(e){return e===10?_ie:e===Math.E?Math.exp:t=>e**+t}function yie(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 ZC(e){return(t,n)=>-e(-t,n)}function QC(e){let t=e(YC,XC),n=t.domain,r=10,i,a;function o(){return i=yie(r),a=vie(r),n()[0]<0?(i=ZC(i),a=ZC(a),e(hie,gie)):e(YC,XC),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=Vx(o,s,p))}else m=Vx(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=TC(n)).precision==null&&(n.trim=!0),n=RC(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(qC(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function $C(){let e=QC(_C()).domain([1,10]);return e.copy=()=>gC(e,$C()).base(e.base()),tS.apply(e,arguments),e}var ew=o((()=>{eS(),BC(),JC(),bC(),rS()}));function tw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function nw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function rw(e){var t=1,n=e(tw(t),nw(t));return n.constant=function(n){return arguments.length?e(tw(t=+n),nw(t)):t},UC(n)}function iw(){var e=rw(_C());return e.copy=function(){return gC(e,iw()).constant(e.constant())},tS.apply(e,arguments)}var aw=o((()=>{GC(),bC(),rS()}));function ow(e){return function(t){return t<0?-((-t)**+e):t**+e}}function bie(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function xie(e){return e<0?-e*e:e*e}function sw(e){var t=e(mC,mC),n=1;function r(){return n===1?e(mC,mC):n===.5?e(bie,xie):e(ow(n),ow(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},UC(t)}function cw(){var e=sw(_C());return e.copy=function(){return gC(e,cw()).exponent(e.exponent())},tS.apply(e,arguments),e}function Sie(){return cw.apply(null,arguments).exponent(.5)}var lw=o((()=>{GC(),bC(),rS()}));function uw(e){return Math.sign(e)*e*e}function Cie(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function dw(){var e=vC(),t=[0,1],n=!1,r;function i(t){var i=Cie(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(uw(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,fC)).map(uw)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return dw(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},tS.apply(i,arguments),UC(i)}var wie=o((()=>{bC(),rS(),GC(),pC()}));function fw(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=_re(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[Fx(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(Dx),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return fw().domain(e).range(t).unknown(r)},tS.apply(a,arguments)}var Tie=o((()=>{eS(),rS()}));function pw(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[Fx(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return pw().domain([e,t]).range(i).unknown(a)},tS.apply(UC(o),arguments)}var Eie=o((()=>{eS(),GC(),rS()}));function mw(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[Fx(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return mw().domain(e).range(t).unknown(n)},tS.apply(i,arguments)}var Die=o((()=>{eS(),rS()}));function hw(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>hw(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(gw.setTime(+t),_w.setTime(+r),e(gw),e(_w),Math.floor(n(gw,_w))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var gw,_w,vw=o((()=>{gw=new Date,_w=new Date})),yw,bw=o((()=>{vw(),yw=hw(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e),yw.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?hw(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):yw),yw.range})),xw,Sw,Cw,ww,Tw,Ew,Dw,Ow=o((()=>{xw=1e3,Sw=xw*60,Cw=Sw*60,ww=Cw*24,Tw=ww*7,Ew=ww*30,Dw=ww*365})),kw,Aw=o((()=>{vw(),Ow(),kw=hw(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*xw)},(e,t)=>(t-e)/xw,e=>e.getUTCSeconds()),kw.range})),jw,Mw,Nw=o((()=>{vw(),Ow(),jw=hw(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xw)},(e,t)=>{e.setTime(+e+t*Sw)},(e,t)=>(t-e)/Sw,e=>e.getMinutes()),jw.range,Mw=hw(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Sw)},(e,t)=>(t-e)/Sw,e=>e.getUTCMinutes()),Mw.range})),Pw,Fw,Iw=o((()=>{vw(),Ow(),Pw=hw(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xw-e.getMinutes()*Sw)},(e,t)=>{e.setTime(+e+t*Cw)},(e,t)=>(t-e)/Cw,e=>e.getHours()),Pw.range,Fw=hw(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Cw)},(e,t)=>(t-e)/Cw,e=>e.getUTCHours()),Fw.range})),Lw,Rw,zw,Bw=o((()=>{vw(),Ow(),Lw=hw(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sw)/ww,e=>e.getDate()-1),Lw.range,Rw=hw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ww,e=>e.getUTCDate()-1),Rw.range,zw=hw(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ww,e=>Math.floor(e/ww)),zw.range}));function Vw(e){return hw(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sw)/Tw)}function Hw(e){return hw(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Tw)}var Uw,Ww,Gw,Kw,qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT,nT,rT=o((()=>{vw(),Ow(),Uw=Vw(0),Ww=Vw(1),Gw=Vw(2),Kw=Vw(3),qw=Vw(4),Jw=Vw(5),Yw=Vw(6),Uw.range,Ww.range,Gw.range,Kw.range,qw.range,Jw.range,Yw.range,Xw=Hw(0),Zw=Hw(1),Qw=Hw(2),$w=Hw(3),eT=Hw(4),tT=Hw(5),nT=Hw(6),Xw.range,Zw.range,Qw.range,$w.range,eT.range,tT.range,nT.range})),iT,aT,oT=o((()=>{vw(),iT=hw(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()),iT.range,aT=hw(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()),aT.range})),sT,cT,lT=o((()=>{vw(),sT=hw(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()),sT.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:hw(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),sT.range,cT=hw(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()),cT.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:hw(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),cT.range}));function uT(e,t,n,r,i,a){let o=[[kw,1,xw],[kw,5,5*xw],[kw,15,15*xw],[kw,30,30*xw],[a,1,Sw],[a,5,5*Sw],[a,15,15*Sw],[a,30,30*Sw],[i,1,Cw],[i,3,3*Cw],[i,6,6*Cw],[i,12,12*Cw],[r,1,ww],[r,2,2*ww],[n,1,Tw],[t,1,Ew],[t,3,3*Ew],[e,1,Dw]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=Ax(([,,e])=>e).right(o,i);if(a===o.length)return e.every(Ux(t/Dw,n/Dw,r));if(a===0)return yw.every(Math.max(Ux(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var dT,fT,pT,mT,Oie=o((()=>{eS(),Ow(),bw(),Aw(),Nw(),Iw(),Bw(),rT(),oT(),lT(),[dT,fT]=uT(cT,aT,Xw,zw,Fw,Mw),[pT,mT]=uT(sT,iT,Uw,Lw,Pw,jw)})),hT=o((()=>{vw(),bw(),Aw(),Nw(),Iw(),Bw(),rT(),oT(),lT(),Oie()}));function gT(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 _T(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 vT(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function kie(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=bT(i),u=xT(i),d=bT(a),f=xT(a),p=bT(o),m=xT(o),h=bT(s),g=xT(s),_=bT(c),v=xT(c),y={a:N,A:P,b:F,B:I,c:null,d:ET,e:ET,f:Xie,g:oae,G:cae,H:qie,I:Jie,j:Yie,L:DT,m:Zie,M:Qie,p:L,q:R,Q:NT,s:PT,S:$ie,u:eae,U:tae,V:nae,w:rae,W:iae,x:null,X:null,y:aae,Y:sae,Z:lae,"%":MT},b={a:ee,A:te,b:ne,B:re,c:null,d:kT,e:kT,f:pae,g:Cae,G:Tae,H:uae,I:dae,j:fae,L:AT,m:mae,M:hae,p:ie,q:ae,Q:NT,s:PT,S:gae,u:_ae,U:vae,V:yae,w:bae,W:xae,x:null,X:null,y:Sae,Y:wae,Z:Eae,"%":MT},x={a:E,A:D,b:O,B:k,c:A,d:wT,e:wT,f:Uie,g:CT,G:ST,H:TT,I:TT,j:zie,L:Hie,m:Rie,M:Bie,p:T,q:Lie,Q:Gie,s:Kie,S:Vie,u:Mie,U:Nie,V:Pie,w:jie,W:Fie,x:j,X:M,y:CT,Y:ST,Z:Iie,"%":Wie};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=FT[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=vT(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=_T(vT(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Zw.ceil(a):Zw(a),a=Rw.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=gT(vT(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Ww.ceil(a):Ww(a),a=Lw.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?_T(vT(r.y,0,1)).getUTCDay():gT(vT(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,_T(r)):gT(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in FT?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function I(e){return s[e.getMonth()]}function L(e){return i[+(e.getHours()>=12)]}function R(e){return 1+~~(e.getMonth()/3)}function ee(e){return o[e.getUTCDay()]}function te(e){return a[e.getUTCDay()]}function ne(e){return c[e.getUTCMonth()]}function re(e){return s[e.getUTCMonth()]}function ie(e){return i[+(e.getUTCHours()>=12)]}function ae(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}function yT(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Aie(e){return e.replace(RT,`\\$&`)}function bT(e){return RegExp(`^(?:`+e.map(Aie).join(`|`)+`)`,`i`)}function xT(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function jie(e,t,n){var r=IT.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Mie(e,t,n){var r=IT.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Nie(e,t,n){var r=IT.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Pie(e,t,n){var r=IT.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Fie(e,t,n){var r=IT.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ST(e,t,n){var r=IT.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function CT(e,t,n){var r=IT.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Iie(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Lie(e,t,n){var r=IT.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Rie(e,t,n){var r=IT.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function wT(e,t,n){var r=IT.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function zie(e,t,n){var r=IT.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function TT(e,t,n){var r=IT.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Bie(e,t,n){var r=IT.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vie(e,t,n){var r=IT.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Hie(e,t,n){var r=IT.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Uie(e,t,n){var r=IT.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wie(e,t,n){var r=LT.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Gie(e,t,n){var r=IT.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Kie(e,t,n){var r=IT.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ET(e,t){return yT(e.getDate(),t,2)}function qie(e,t){return yT(e.getHours(),t,2)}function Jie(e,t){return yT(e.getHours()%12||12,t,2)}function Yie(e,t){return yT(1+Lw.count(sT(e),e),t,3)}function DT(e,t){return yT(e.getMilliseconds(),t,3)}function Xie(e,t){return DT(e,t)+`000`}function Zie(e,t){return yT(e.getMonth()+1,t,2)}function Qie(e,t){return yT(e.getMinutes(),t,2)}function $ie(e,t){return yT(e.getSeconds(),t,2)}function eae(e){var t=e.getDay();return t===0?7:t}function tae(e,t){return yT(Uw.count(sT(e)-1,e),t,2)}function OT(e){var t=e.getDay();return t>=4||t===0?qw(e):qw.ceil(e)}function nae(e,t){return e=OT(e),yT(qw.count(sT(e),e)+(sT(e).getDay()===4),t,2)}function rae(e){return e.getDay()}function iae(e,t){return yT(Ww.count(sT(e)-1,e),t,2)}function aae(e,t){return yT(e.getFullYear()%100,t,2)}function oae(e,t){return e=OT(e),yT(e.getFullYear()%100,t,2)}function sae(e,t){return yT(e.getFullYear()%1e4,t,4)}function cae(e,t){var n=e.getDay();return e=n>=4||n===0?qw(e):qw.ceil(e),yT(e.getFullYear()%1e4,t,4)}function lae(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+yT(t/60|0,`0`,2)+yT(t%60,`0`,2)}function kT(e,t){return yT(e.getUTCDate(),t,2)}function uae(e,t){return yT(e.getUTCHours(),t,2)}function dae(e,t){return yT(e.getUTCHours()%12||12,t,2)}function fae(e,t){return yT(1+Rw.count(cT(e),e),t,3)}function AT(e,t){return yT(e.getUTCMilliseconds(),t,3)}function pae(e,t){return AT(e,t)+`000`}function mae(e,t){return yT(e.getUTCMonth()+1,t,2)}function hae(e,t){return yT(e.getUTCMinutes(),t,2)}function gae(e,t){return yT(e.getUTCSeconds(),t,2)}function _ae(e){var t=e.getUTCDay();return t===0?7:t}function vae(e,t){return yT(Xw.count(cT(e)-1,e),t,2)}function jT(e){var t=e.getUTCDay();return t>=4||t===0?eT(e):eT.ceil(e)}function yae(e,t){return e=jT(e),yT(eT.count(cT(e),e)+(cT(e).getUTCDay()===4),t,2)}function bae(e){return e.getUTCDay()}function xae(e,t){return yT(Zw.count(cT(e)-1,e),t,2)}function Sae(e,t){return yT(e.getUTCFullYear()%100,t,2)}function Cae(e,t){return e=jT(e),yT(e.getUTCFullYear()%100,t,2)}function wae(e,t){return yT(e.getUTCFullYear()%1e4,t,4)}function Tae(e,t){var n=e.getUTCDay();return e=n>=4||n===0?eT(e):eT.ceil(e),yT(e.getUTCFullYear()%1e4,t,4)}function Eae(){return`+0000`}function MT(){return`%`}function NT(e){return+e}function PT(e){return Math.floor(e/1e3)}var FT,IT,LT,RT,zT=o((()=>{hT(),FT={"-":``,_:` `,0:`0`},IT=/^\s*\d+/,LT=/^%/,RT=/[\\^$*+?|[\]().{}]/g}));function Dae(e){return BT=kie(e),VT=BT.format,Oae=BT.parse,HT=BT.utcFormat,kae=BT.utcParse,BT}var BT,VT,Oae,HT,kae,Aae=o((()=>{zT(),Dae({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`]})})),UT=o((()=>{Aae(),zT()}));function jae(e){return new Date(e)}function Mae(e){return e instanceof Date?+e:+new Date(+e)}function WT(e,t,n,r,i,a,o,s,c,l){var u=vC(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,Mae)):f().map(jae)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(qC(n,e)):u},u.copy=function(){return gC(u,WT(e,t,n,r,i,a,o,s,c,l))},u}function Nae(){return tS.apply(WT(pT,mT,sT,iT,Uw,Lw,Pw,jw,kw,VT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var GT=o((()=>{hT(),UT(),bC(),rS(),JC()}));function Pae(){return tS.apply(WT(dT,fT,cT,aT,Xw,Rw,Fw,Mw,kw,HT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}var Fae=o((()=>{hT(),UT(),GT(),rS()}));function KT(){var e=0,t=1,n,r,i,a,o=mC,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(cC),l.rangeRound=u(uC),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function qT(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function JT(){var e=UC(KT()(mC));return e.copy=function(){return qT(e,JT())},nS.apply(e,arguments)}function YT(){var e=QC(KT()).domain([1,10]);return e.copy=function(){return qT(e,YT()).base(e.base())},nS.apply(e,arguments)}function XT(){var e=rw(KT());return e.copy=function(){return qT(e,XT()).constant(e.constant())},nS.apply(e,arguments)}function ZT(){var e=sw(KT());return e.copy=function(){return qT(e,ZT()).exponent(e.exponent())},nS.apply(e,arguments)}function Iae(){return ZT.apply(null,arguments).exponent(.5)}var QT=o((()=>{dC(),bC(),rS(),GC(),ew(),aw(),lw()}));function $T(){var e=[],t=mC;function n(n){if(n!=null&&!isNaN(n=+n))return t((Fx(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(Dx),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>gre(e,r/t))},n.copy=function(){return $T(t).domain(e)},nS.apply(n,arguments)}var Lae=o((()=>{eS(),bC(),rS()}));function eE(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=mC,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=Vre(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(cC),p.rangeRound=m(uC),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function tE(){var e=UC(eE()(mC));return e.copy=function(){return qT(e,tE())},nS.apply(e,arguments)}function nE(){var e=QC(eE()).domain([.1,1,10]);return e.copy=function(){return qT(e,nE()).base(e.base())},nS.apply(e,arguments)}function rE(){var e=rw(eE());return e.copy=function(){return qT(e,rE()).constant(e.constant())},nS.apply(e,arguments)}function iE(){var e=sw(eE());return e.copy=function(){return qT(e,iE()).exponent(e.exponent())},nS.apply(e,arguments)}function Rae(){return iE.apply(null,arguments).exponent(.5)}var zae=o((()=>{dC(),bC(),rS(),GC(),ew(),QT(),aw(),lw()})),Bae=o((()=>{Sre(),mie(),GC(),ew(),aw(),oS(),lw(),wie(),Tie(),Eie(),Die(),GT(),Fae(),QT(),Lae(),zae(),HC()})),aE=c({scaleBand:()=>sS,scaleDiverging:()=>tE,scaleDivergingLog:()=>nE,scaleDivergingPow:()=>iE,scaleDivergingSqrt:()=>Rae,scaleDivergingSymlog:()=>rE,scaleIdentity:()=>KC,scaleImplicit:()=>aS,scaleLinear:()=>WC,scaleLog:()=>$C,scaleOrdinal:()=>iS,scalePoint:()=>xre,scalePow:()=>cw,scaleQuantile:()=>fw,scaleQuantize:()=>pw,scaleRadial:()=>dw,scaleSequential:()=>JT,scaleSequentialLog:()=>YT,scaleSequentialPow:()=>ZT,scaleSequentialQuantile:()=>$T,scaleSequentialSqrt:()=>Iae,scaleSequentialSymlog:()=>XT,scaleSqrt:()=>Sie,scaleSymlog:()=>iw,scaleThreshold:()=>mw,scaleTime:()=>Nae,scaleUtc:()=>Pae,tickFormat:()=>VC}),oE=o((()=>{Bae()}));function Vae(e){var t=aE;if(e in t&&typeof t[e]==`function`)return t[e]();var n=`scale${qs(e)}`;if(n in t&&typeof t[n]==`function`)return t[n]()}function sE(e,t,n){if(typeof e==`function`)return e.copy().domain(t).range(n);if(e!=null){var r=Vae(e);if(r!=null)return r.domain(t).range(n),r}}function cE(e,t,n,r){if(n!=null&&r!=null)return typeof e.scale==`function`?sE(e.scale,n,r):sE(t,n,r)}var lE=o((()=>{oE(),Js()}));function Hae(e){return`scale${qs(e)}`}function Uae(e){return Hae(e)in aE}var uE,dE=o((()=>{oE(),Js(),uE=(e,t,n)=>{if(e!=null){var r=e.scale,i=e.type;if(r===`auto`)return i===`category`&&n&&(n.indexOf(`LineChart`)>=0||n.indexOf(`AreaChart`)>=0||n.indexOf(`ComposedChart`)>=0&&!t)?`point`:i===`category`?`band`:`linear`;if(typeof r==`string`)return Uae(r)?r:`point`}}}));function Wae(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function fE(e,t){if(e){var n=t??e.domain(),r=n.map(t=>e(t)??0),i=e.range();if(!(n.length===0||i.length<2))return e=>{var t=Wae(r,e);if(t<=0)return n[0];if(t>=n.length)return n[n.length-1];var i=r[t-1]??0,a=r[t]??0;return Math.abs(e-i)<=Math.abs(e-a)?n[t-1]:n[t]}}}var pE=o((()=>{}));function Gae(e){if(e!=null)return`invert`in e&&typeof e.invert==`function`?e.invert.bind(e):fE(e,void 0)}var Kae=o((()=>{pE()}));function mE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mE(Object(n),!0).forEach(function(t){qae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mE(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qae(e,t,n){return(t=Jae(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jae(e){var t=Yae(e,`string`);return typeof t==`symbol`?t:t+``}function Yae(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gE(e,t){return $ae(e)||Qae(e,t)||Zae(e,t)||Xae()}function Xae(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zae(e,t){if(e){if(typeof e==`string`)return _E(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_E(e,t):void 0}}function _E(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qae(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function $ae(e){if(Array.isArray(e))return e}function vE(e,t){return n=>{switch(e){case`xAxis`:return`xAxisId`in n&&n.xAxisId===t;case`yAxis`:return`yAxisId`in n&&n.yAxisId===t;case`zAxis`:return`zAxisId`in n&&n.zAxisId===t;case`angleAxis`:return`angleAxisId`in n&&n.angleAxisId===t;case`radiusAxis`:return`radiusAxisId`in n&&n.radiusAxisId===t;default:return!1}}}function yE(e){if(Vs(e)||e instanceof Date){var t=Number(e);if(Hh(t))return t}}function bE(e){if(Array.isArray(e)){var t=[yE(e[0]),yE(e[1])];return nb(t)?t:void 0}var n=yE(e);if(n!=null)return[n,n]}function xE(e){return e.map(yE).filter(Fs)}function eoe(e,t){var n=yE(e),r=yE(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}function SE(e,t){switch(e){case`xAxis`:return t.direction===`x`;case`yAxis`:return t.direction===`y`;default:return!1}}function toe(e,t,n){if(!n||!n.length)return[];var r;if(typeof t==`number`&&!Rs(t))r=t;else if(Array.isArray(t)){var i=xE(t);i.length>0&&(r=Math.max(...i))}return r==null?[]:xE(n.flatMap(t=>{var n=qh(e,t.dataKey),i,a;if(Array.isArray(n)){var o=gE(n,2);i=o[0],a=o[1]}else i=a=n;if(!(!Hh(i)||!Hh(a)))return[r-i,r+a]}))}function noe(e){var t=e.value;if(Vs(t)||t instanceof Date)return t}function roe(e){if(e.x!=null)return xE([e.x]);var t=e.segment?.map(e=>e.x);return t==null||t.length===0?[]:xE(t)}function ioe(e){if(e.y!=null)return xE([e.y]);var t=e.segment?.map(e=>e.y);return t==null||t.length===0?[]:xE(t)}function CE(e,t){return e.id<t.id?-1:+(e.id>t.id)}var wE,TE,EE,DE,OE,kE,AE,jE,ME,NE,PE,FE,IE,LE,RE,zE,BE,VE,HE,UE,WE,GE,KE,qE,JE,YE,XE,ZE,QE,$E,eD,tD,nD,rD,iD,aD,oD,sD,cD,lD,uD,dD,fD,pD,mD,hD,gD,_D,vD,yD,bD,xD,SD,CD,wD,TD,ED,DD,OD,kD,AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO,rO,iO,aO,oO,sO,cO,lO,uO,dO,fO,pO,mO,hO,gO,_O,vO,yO,bO,xO,SO,CO,wO,TO,EO,DO,OO,kO,AO=o((()=>{df(),Ky(),g_(),dg(),$y(),ab(),Js(),Wh(),tre(),gg(),yg(),Og(),Fg(),jb(),ix(),ox(),cx(),zb(),xg(),ux(),fx(),mx(),gx(),vx(),bx(),Sx(),wx(),Ex(),lE(),dE(),pE(),Kae(),wE=[0,`auto`],TE={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`bottom`,padding:{left:0,right:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`category`,unit:void 0,niceTicks:`auto`},EE=(e,t)=>e.cartesianAxis.xAxis[t],DE=(e,t)=>EE(e,t)??TE,OE={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:wE,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`left`,padding:{top:0,bottom:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`number`,unit:void 0,niceTicks:`auto`,width:60},kE=(e,t)=>e.cartesianAxis.yAxis[t],AE=(e,t)=>kE(e,t)??OE,jE={domain:[0,`auto`],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:``,range:[64,64],scale:`auto`,type:`number`,unit:``},ME=(e,t)=>e.cartesianAxis.zAxis[t]??jE,NE=(e,t,n)=>{switch(t){case`xAxis`:return DE(e,n);case`yAxis`:return AE(e,n);case`zAxis`:return ME(e,n);case`angleAxis`:return qb(e,n);case`radiusAxis`:return Yb(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},PE=(e,t,n)=>{switch(t){case`xAxis`:return DE(e,n);case`yAxis`:return AE(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},FE=(e,t,n)=>{switch(t){case`xAxis`:return DE(e,n);case`yAxis`:return AE(e,n);case`angleAxis`:return qb(e,n);case`radiusAxis`:return Yb(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},IE=e=>e.graphicalItems.cartesianItems.some(e=>e.type===`bar`)||e.graphicalItems.polarItems.some(e=>e.type===`radialBar`),LE=e=>e.graphicalItems.cartesianItems,RE=B([ax,sx],vE),zE=(e,t,n)=>e.filter(n).filter(e=>t?.includeHidden===!0||!e.hide),BE=B([LE,NE,RE],zE,{memoizeOptions:{resultEqualityCheck:_x}}),VE=B([BE],e=>e.filter(e=>e.type===`area`||e.type===`bar`).filter(px)),HE=e=>e.filter(e=>!(`stackId`in e)||e.stackId===void 0),UE=B([BE],HE),WE=e=>e.map(e=>e.data).filter(Boolean).flat(1),GE=B([BE],e=>e.some(e=>!e.data)),KE=B([BE],WE,{memoizeOptions:{resultEqualityCheck:_x}}),qE=(e,t)=>{var n=t.chartData,r=n===void 0?[]:n,i=t.dataStartIndex,a=t.dataEndIndex;return e.length>0?e:r.slice(i,a+1)},JE=B([KE,Yy],qE),YE=(e,t,n)=>t?.dataKey==null?n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:qh(e,t)}))):e.map(e=>({value:e})):e.map(e=>({value:qh(e,t.dataKey)})),XE=(e,t,n,r,i,a)=>{var o=r.chartData,s=o===void 0?[]:o,c=r.dataStartIndex,l=r.dataEndIndex,u=YE(e,t,n);return i&&t?.dataKey!=null&&a.length>0?[...s.slice(c,l+1).map(e=>({value:qh(e,t.dataKey)})).filter(e=>e.value!=null),...u]:u},ZE=B([JE,NE,BE,Yy,GE,KE],XE),QE=B([ZE],e=>e?.map(e=>e.value).sort(eoe)),$E=e=>FE(e,yx(e),xx(e)),eD=B([$E],e=>e?.dataKey),tD=B([VE,Yy,$E],dx),nD=(e,t,n,r)=>{var i=t.reduce((e,t)=>{if(t.stackId==null)return e;var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var i=gE(t,2),a=i[0],o=i[1],s=r?[...o].reverse():o,c=s.map(lx);return[a,{stackedData:eg(e,c,n),graphicalItems:s}]}))},rD=B([tD,VE,Tb,Eb],nD),iD=(e,t,n,r)=>{var i=t.dataStartIndex,a=t.dataEndIndex;if(r==null&&n!==`zAxis`)return ag(e,i,a)},aD=B([NE],e=>e.allowDataOverflow),oD=e=>{if(e==null||!(`domain`in e))return wE;if(e.domain!=null)return e.domain;if(`ticks`in e&&e.ticks!=null){if(e.type===`number`){var t=xE(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===`category`)return e.ticks.map(String)}return e?.domain??wE},sD=B([NE],oD),cD=B([sD,aD],ib),lD=B([rD,qy,ax,cD],iD,{memoizeOptions:{resultEqualityCheck:hx}}),uD=e=>e.errorBars,dD=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>SE(n,e)),fD=function(){var e=[...arguments].filter(Boolean);if(e.length!==0){var t=e.flat();return[Math.min(...t),Math.max(...t)]}},pD=function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o,s;if(n.length>0&&n.forEach(e=>{var n=e.data==null?a:[...e.data],c=r[e.id]?.filter(e=>SE(i,e));n.forEach(n=>{var r=qh(n,t.dataKey??e.dataKey),i=toe(n,r,c);if(i.length>=2){var a=Math.min(...i),l=Math.max(...i);(o==null||a<o)&&(o=a),(s==null||l>s)&&(s=l)}var u=bE(r);u!=null&&(o=o==null?u[0]:Math.min(o,u[0]),s=s==null?u[1]:Math.max(s,u[1]))})}),t?.dataKey!=null&&n.length===0&&e.forEach(e=>{var n=bE(qh(e,t.dataKey));n!=null&&(o=o==null?n[0]:Math.min(o,n[0]),s=s==null?n[1]:Math.max(s,n[1]))}),Hh(o)&&Hh(s))return[o,s]},mD=B([JE,NE,UE,uD,ax,Zy],pD,{memoizeOptions:{resultEqualityCheck:hx}}),hD=(e,t,n)=>{var r=e.map(noe).filter(e=>e!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&Gs(r))?Gy(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},gD=e=>e.referenceElements.dots,_D=(e,t,n)=>e.filter(e=>e.ifOverflow===`extendDomain`).filter(e=>t===`xAxis`?e.xAxisId===n:e.yAxisId===n),vD=B([gD,ax,sx],_D),yD=e=>e.referenceElements.areas,bD=B([yD,ax,sx],_D),xD=e=>e.referenceElements.lines,SD=B([xD,ax,sx],_D),CD=(e,t)=>{if(e!=null){var n=xE(e.map(e=>t===`xAxis`?e.x:e.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},wD=B(vD,ax,CD),TD=(e,t)=>{if(e!=null){var n=xE(e.flatMap(e=>[t===`xAxis`?e.x1:e.y1,t===`xAxis`?e.x2:e.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},ED=B([bD,ax],TD),DD=(e,t)=>{if(e!=null){var n=e.flatMap(e=>t===`xAxis`?roe(e):ioe(e));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},OD=B([SD,ax],DD),kD=B(wD,OD,ED,(e,t,n)=>fD(e,n,t)),AD=(e,t,n,r,i,a,o,s,c)=>{if(n!=null)return n;var l=o===`vertical`&&s===`xAxis`||o===`horizontal`&&s===`yAxis`?fD(r,a,i):fD(a,i),u=Yne(t,l,e.allowDataOverflow);return u==null&&e.allowDataOverflow&&l==null&&c!=null?c:u},jD=e=>{if(!(e==null||e.type!==`number`||!(`ticks`in e)||e.ticks==null)){var t=xE(e.ticks);if(t.length!==0)return[Math.min(...t),Math.max(...t)]}},MD=B([NE],jD,{memoizeOptions:{resultEqualityCheck:hx}}),ND=B([NE,sD,cD,lD,mD,kD,u_,ax,MD],AD,{memoizeOptions:{resultEqualityCheck:hx}}),PD=[0,1],FD=(e,t,n,r,i,a,o)=>{if(e!=null&&n!=null&&n.length!==0||o!==void 0){var s=e.dataKey,c=e.type,l=Yh(t,a);return l&&s==null?Gy(0,n?.length??0):c===`category`?hD(r,e,l):i===`expand`&&!l?PD:o}},ID=B([NE,u_,JE,ZE,Tb,ax,ND],FD),LD=B([NE,IE,Db],uE),RD=(e,t,n)=>{var r=t.niceTicks;if(r!==`none`){var i=oD(t),a=Array.isArray(i)&&(i[0]===`auto`||i[1]===`auto`);if((r===`snap125`||r===`adaptive`)&&t!=null&&t.tickCount&&nb(e)){if(a)return vb(e,t.tickCount,t.allowDecimals,r);if(t.type===`number`)return yb(e,t.tickCount,t.allowDecimals,r)}if(r===`auto`&&n===`linear`&&t!=null&&t.tickCount){if(a&&nb(e))return vb(e,t.tickCount,t.allowDecimals,`adaptive`);if(t.type===`number`&&nb(e))return yb(e,t.tickCount,t.allowDecimals,`adaptive`)}}},zD=B([ID,FE,LD],RD),BD=(e,t,n,r)=>{if(r!==`angleAxis`&&e?.type===`number`&&nb(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0]??0,o=t[1],s=n[n.length-1]??0;return[Math.min(i,a),Math.max(o,s)]}return t},VD=B([NE,ID,zD,ax],BD),HD=B(ZE,NE,(e,t)=>{if(!(!t||t.type!==`number`)){var n=1/0,r=Array.from(xE(e.map(e=>e.value))).sort((e,t)=>e-t),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var s=0;s<r.length-1;s++){var c=r[s],l=r[s+1];if(c!=null&&l!=null){var u=l-c;n=Math.min(n,u)}}return n/o}}),UD=B(HD,u_,Cb,Tg,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!Hh(e))return 0;var a=t===`vertical`?r.height:r.width;if(i===`gap`)return e*a/2;if(i===`no-gap`){var o=Ws(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),WD=(e,t,n)=>{var r=DE(e,t);return r==null||typeof r.padding!=`string`?0:UD(e,`xAxis`,t,n,r.padding)},GD=(e,t,n)=>{var r=AE(e,t);return r==null||typeof r.padding!=`string`?0:UD(e,`yAxis`,t,n,r.padding)},KD=B(DE,WD,(e,t)=>{if(e==null)return{left:0,right:0};var n=e.padding;return typeof n==`string`?{left:t,right:t}:{left:(n.left??0)+t,right:(n.right??0)+t}}),qD=B(AE,GD,(e,t)=>{if(e==null)return{top:0,bottom:0};var n=e.padding;return typeof n==`string`?{top:t,bottom:t}:{top:(n.top??0)+t,bottom:(n.bottom??0)+t}}),JD=B([Tg,KD,Pg,Ng,(e,t,n)=>n],(e,t,n,r,i)=>{var a=r.padding;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),YD=B([Tg,u_,qD,Pg,Ng,(e,t,n)=>n],(e,t,n,r,i,a)=>{var o=i.padding;return a?[r.height-o.bottom,o.top]:t===`horizontal`?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),XD=(e,t,n,r)=>{switch(t){case`xAxis`:return JD(e,n,r);case`yAxis`:return YD(e,n,r);case`zAxis`:return ME(e,n)?.range;case`angleAxis`:return tx(e);case`radiusAxis`:return nx(e,n);default:return}},ZD=B([NE,XD],Rb),QD=B([LD,VD],Tx),$D=B([NE,LD,QD,ZD],cE),eO=(e,t,n,r)=>{if(n!=null&&n.dataKey!=null){var i=n.type,a=n.scale;if(Yh(e,r)&&(i===`number`||a!==`auto`))return t.map(e=>e.value)}},tO=B([u_,ZE,FE,ax],eO),nO=B([$D],Cx),B([$D],Gae),B([$D,QE],fE),B([BE,uD,ax],dD),rO=(e,t)=>t,iO=(e,t,n)=>n,aO=B(_g,rO,iO,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(CE)),oO=B(vg,rO,iO,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(CE)),sO=(e,t)=>{var n=typeof t.height==`number`?t.height:30;return{width:e.width,height:n}},cO=(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height}),lO=B(Tg,DE,sO),uO=(e,t,n)=>{switch(t){case`top`:return e.top;case`bottom`:return n-e.bottom;default:return 0}},dO=(e,t,n)=>{switch(t){case`left`:return e.left;case`right`:return n-e.right;default:return 0}},fO=B(pg,Tg,aO,rO,iO,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=sO(t,n);o??=uO(t,r,e);var c=r===`top`&&!i||r===`bottom`&&i;a[n.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),pO=B(fg,Tg,oO,rO,iO,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=cO(t,n);o??=dO(t,r,e);var c=r===`left`&&!i||r===`right`&&i;a[n.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),mO=(e,t)=>{var n=DE(e,t);if(n!=null)return fO(e,n.orientation,n.mirror)},hO=B([Tg,DE,mO,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),gO=(e,t)=>{var n=AE(e,t);if(n!=null)return pO(e,n.orientation,n.mirror)},B([Tg,AE,gO,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),_O=B(Tg,AE,(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height})),vO=(e,t,n)=>{switch(t){case`xAxis`:return lO(e,n).width;case`yAxis`:return _O(e,n).height;default:return}},yO=(e,t,n,r)=>{if(n!=null){var i=n.allowDuplicatedCategory,a=n.type,o=n.dataKey,s=Yh(e,r),c=t.map(e=>e.value),l=c.filter(e=>e!=null);if(o&&s&&a===`category`&&i&&Gs(l))return c}},bO=B([u_,ZE,NE,ax],yO),B([u_,PE,LD,nO,bO,tO,XD,zD,ax],(e,t,n,r,i,a,o,s,c)=>{if(t!=null){var l=Yh(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:l,niceTicks:s,range:o,realScaleType:n,scale:r}}}),xO=(e,t,n,r,i,a,o,s,c)=>{if(t!=null&&r!=null){var l=Yh(e,c),u=t.type,d=t.ticks,f=t.tickCount,p=n===`scaleBand`&&typeof r.bandwidth==`function`?r.bandwidth()/2:2,m=u===`category`&&r.bandwidth?r.bandwidth()/p:0;m=c===`angleAxis`&&a!=null&&a.length>=2?Ls(a[0]-a[1])*2*m:m;var h=d||i;return h?h.map((e,t)=>{var n=o?o.indexOf(e):e,i=r.map(n);return Hh(i)?{index:t,coordinate:i+m,value:e,offset:m}:null}).filter(Fs):l&&s?s.map((e,t)=>{var n=r.map(e);return Hh(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Fs):r.ticks?r.ticks(f).map((e,t)=>{var n=r.map(e);return Hh(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Fs):r.domain().map((e,t)=>{var n=r.map(e);return Hh(n)?{coordinate:n+m,value:o?o[e]:e,index:t,offset:m}:null}).filter(Fs)}},SO=B([u_,FE,LD,nO,zD,XD,bO,tO,ax],xO),CO=(e,t,n,r,i,a,o)=>{if(t!=null&&n!=null&&r!=null&&r[0]!==r[1]){var s=Yh(e,o),c=t.tickCount,l=0;return l=o===`angleAxis`&&r?.length>=2?Ls(r[0]-r[1])*2*l:l,s&&a?a.map((e,t)=>{var r=n.map(e);return Hh(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Fs):n.ticks?n.ticks(c).map((e,t)=>{var r=n.map(e);return Hh(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Fs):n.domain().map((e,t)=>{var r=n.map(e);return Hh(r)?{coordinate:r+l,value:i?i[e]:e,index:t,offset:l}:null}).filter(Fs)}},wO=B([u_,FE,nO,XD,bO,tO,ax],CO),TO=B(NE,nO,(e,t)=>{if(e!=null&&t!=null)return hE(hE({},e),{},{scale:t})}),EO=B([NE,LD,ID,ZD],cE),DO=B([EO],Cx),B((e,t,n)=>ME(e,n),DO,(e,t)=>{if(e!=null&&t!=null)return hE(hE({},e),{},{scale:t})}),OO=B([u_,_g,vg],(e,t,n)=>{switch(e){case`horizontal`:return t.some(e=>e.reversed)?`right-to-left`:`left-to-right`;case`vertical`:return n.some(e=>e.reversed)?`bottom-to-top`:`top-to-bottom`;case`centric`:case`radial`:return`left-to-right`;default:return}}),kO=(e,t,n)=>e.renderedTicks[t]?.[n],B([kO],e=>{if(!(!e||e.length===0))return t=>{var n=1/0,r=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);a<n&&(n=a,r=i)}return r?.value}})}));function jO(e,t,n){if(e==null)return t;var r=e?`axis`:`item`;return n==null?t:n.includes(r)?r:t}function MO(e,t){return jO(t,NO(e),PO(e))}function aoe(e){return Vd(t=>MO(t,e))}var NO,PO,FO=o((()=>{Yd(),NO=e=>e.options.defaultTooltipEventType,PO=e=>e.options.validateTooltipEventTypes})),IO,LO=o((()=>{Js(),IO=(e,t)=>{var n,r=Number(t);if(!(Rs(r)||t==null))return r>=0?e==null||(n=e[r])==null?void 0:n.value:void 0}})),RO,ooe=o((()=>{RO=e=>e.tooltip.settings})),zO,BO,VO,HO,UO,WO,GO,KO,qO,JO,YO,XO,ZO,QO,$O,ek,tk,nk=o((()=>{jh(),Om(),zO={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},BO={itemInteraction:{click:zO,hover:zO},axisInteraction:{click:zO,hover:zO},keyboardInteraction:zO,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:`hover`,axisId:0,active:!1,defaultIndex:void 0}},VO=Zm({name:`tooltip`,initialState:BO,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(Dm(t.payload))},prepare:Um()},replaceTooltipEntrySettings:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=Lp(e).tooltipItemPayloads.indexOf(Dm(r));a>-1&&(e.tooltipItemPayloads[a]=Dm(i))},prepare:Um()},removeTooltipEntrySettings:{reducer(e,t){var n=Lp(e).tooltipItemPayloads.indexOf(Dm(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:Um()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),HO=VO.actions,UO=HO.addTooltipEntrySettings,WO=HO.replaceTooltipEntrySettings,GO=HO.removeTooltipEntrySettings,KO=HO.setTooltipSettingsState,qO=HO.setActiveMouseOverItemIndex,JO=HO.mouseLeaveItem,YO=HO.mouseLeaveChart,XO=HO.setActiveClickItemIndex,ZO=HO.setMouseOverAxisIndex,QO=HO.setMouseClickAxisIndex,$O=HO.setSyncInteraction,ek=HO.setKeyboardInteraction,tk=VO.reducer}));function rk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ik(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rk(Object(n),!0).forEach(function(t){soe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function soe(e,t,n){return(t=coe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function coe(e){var t=loe(e,`string`);return typeof t==`symbol`?t:t+``}function loe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function uoe(e,t,n){return t===`axis`?n===`click`?e.axisInteraction.click:e.axisInteraction.hover:n===`click`?e.itemInteraction.click:e.itemInteraction.hover}function doe(e){return e.index!=null}var ak,ok=o((()=>{nk(),ak=(e,t,n,r)=>{if(t==null)return zO;var i=uoe(e,t,n);if(i==null)return zO;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(doe(i)){if(a)return ik(ik({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return ik(ik({},zO),{},{coordinate:i.coordinate})}}));function foe(e){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function poe(e,t){var n=foe(e),r=t[0],i=t[1];return n!==void 0&&n>=Math.min(r,i)&&n<=Math.max(r,i)}function moe(e,t,n){if(n==null||t==null)return!0;var r=qh(e,t);return r==null||!nb(n)||poe(r,n)}var sk,ck=o((()=>{Wh(),dg(),ab(),sk=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!Hh(a))return i;var o=0,s=1/0;t.length>0&&(s=t.length-1);var c=Math.max(o,Math.min(a,s)),l=t[c];return l==null||moe(l,n,r)?String(c):null}})),lk,uk=o((()=>{lk=(e,t,n,r,i,a,o)=>{if(a!=null){var s=o[0]?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(n){case`horizontal`:return{x:c.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:c.coordinate}}}}})),dk,fk=o((()=>{dk=(e,t,n,r)=>{if(t===`axis`)return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i=n===`hover`?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId;if(e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(r!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a==null?[]:[a]}return e.tooltipItemPayloads.filter(e=>e.settings?.graphicalItemId===i)}})),pk,mk=o((()=>{pk=e=>e.options.tooltipPayloadSearcher})),hk,gk=o((()=>{hk=e=>e.tooltip}));function _k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_k(Object(n),!0).forEach(function(t){hoe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_k(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hoe(e,t,n){return(t=goe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function goe(e){var t=_oe(e,`string`);return typeof t==`symbol`?t:t+``}function _oe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function voe(e){if(typeof e==`string`||typeof e==`number`)return e}function yoe(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return e}function boe(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e==`function`)return t=>e(t)}function yk(e){if(typeof e==`string`)return e}function xoe(e){if(!(typeof e!=`object`||!e))return{name:`name`in e?voe(e.name):void 0,unit:`unit`in e?yoe(e.unit):void 0,dataKey:`dataKey`in e?boe(e.dataKey):void 0,payload:`payload`in e?e.payload:void 0,color:`color`in e?yk(e.color):void 0,fill:`fill`in e?yk(e.fill):void 0}}function Soe(e,t){return e??t}var bk,xk=o((()=>{Js(),dg(),Vh(),bk=(e,t,n,r,i,a,o)=>{if(t!=null&&a!=null){var s=n.chartData,c=n.computedData,l=n.dataStartIndex,u=n.dataEndIndex;return e.reduce((e,n)=>{var d=n.dataDefinedOnItem,f=n.settings,p=Soe(d,s),m=Array.isArray(p)?Bh(p,l,u):p,h=f?.dataKey??r,g=f?.nameKey,_;return r&&Array.isArray(m)&&!Array.isArray(m[0])&&o===`axis`?(_=Ps(m,r,i),_??=a(m,t,c,g)):_=a(m,t,c,g),Array.isArray(_)?_.forEach(t=>{var n=xoe(t),r=n?.name,i=n?.dataKey,a=n?.payload,o=vk(vk({},f),{},{name:r,unit:n?.unit,color:n?.color??f?.color,fill:n?.fill??f?.fill});e.push(vee({tooltipEntrySettings:o,dataKey:i,payload:a,value:qh(a,i),name:r==null?void 0:String(r)}))}):e.push(vee({tooltipEntrySettings:f,dataKey:h,payload:_,value:qh(_,h),name:qh(_,g)??f?.name})),e},[])}}})),Sk,Ck,wk,Tk,Ek,Dk,Ok,kk,Ak,jk,Mk,Nk,Pk,Fk,Ik,Lk,Rk,zk,Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk,Jk,Yk,Xk,Zk,Qk,$k,eA,tA,nA,rA,iA,aA,oA,sA,cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA=o((()=>{df(),AO(),g_(),dg(),$y(),jb(),Js(),zb(),FO(),LO(),ooe(),ok(),ck(),uk(),gg(),Og(),fk(),mk(),gk(),xk(),Sx(),bx(),fx(),mx(),ab(),gx(),vx(),wx(),Wh(),dE(),lE(),Sk=B([$E,IE,Db],uE),Ck=B([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),wk=B([yx,xx],vE),Tk=B([Ck,$E,wk],zE,{memoizeOptions:{resultEqualityCheck:_x}}),Ek=B([Tk],e=>e.filter(px)),Dk=B([Tk],WE,{memoizeOptions:{resultEqualityCheck:_x}}),Ok=B([Tk],e=>e.some(e=>!e.data)),kk=B([Dk,qy],qE),Ak=B([Ek,qy,$E],dx),jk=B([kk,$E,Tk,qy,Ok,Dk],XE),Mk=B([$E],oD),Nk=B([$E],e=>e.allowDataOverflow),Pk=B([Mk,Nk],ib),Fk=B([Tk],e=>e.filter(px)),Ik=B([Ak,Fk,Tb,Eb],nD),Lk=B([Ik,qy,yx,Pk],iD),Rk=B([Tk],HE),zk=B([kk,$E,Rk,uD,yx,Qy],pD,{memoizeOptions:{resultEqualityCheck:hx}}),Bk=B([gD,yx,xx],_D),Vk=B([Bk,yx],CD),Hk=B([yD,yx,xx],_D),Uk=B([Hk,yx],TD),Wk=B([xD,yx,xx],_D),Gk=B([Wk,yx],DD),Kk=B([Vk,Gk,Uk],fD),qk=B([$E,Mk,Pk,Lk,zk,Kk,u_,yx],AD),Jk=B([$E,u_,kk,jk,Tb,yx,qk],FD),Yk=B([Jk,$E,Sk],RD),Xk=B([$E,Jk,Yk,yx],BD),Zk=e=>{var t=yx(e),n=xx(e);return XD(e,t,n,!1)},Qk=B([$E,Zk],Rb),$k=B([$E,Sk,Xk,Qk],cE),eA=B([$k],Cx),tA=B([u_,jk,$E,yx],yO),nA=B([u_,jk,$E,yx],eO),rA=(e,t,n,r,i,a,o,s)=>{if(t){var c=t.type,l=Yh(e,s);if(r){var u=n===`scaleBand`&&r.bandwidth?r.bandwidth()/2:2,d=c===`category`&&r.bandwidth?r.bandwidth()/u:0;return d=s===`angleAxis`&&i!=null&&i?.length>=2?Ls(i[0]-i[1])*2*d:d,l&&o?o.map((e,t)=>{var n=r.map(e);return Hh(n)?{coordinate:n+d,value:e,index:t,offset:d}:null}).filter(Fs):r.domain().map((e,t)=>{var n=r.map(e);return Hh(n)?{coordinate:n+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(Fs)}}},iA=B([u_,$E,Sk,eA,Zk,tA,nA,yx],rA),aA=B([NO,PO,RO],(e,t,n)=>jO(n.shared,e,t)),oA=e=>e.tooltip.settings.trigger,sA=e=>e.tooltip.settings.defaultIndex,cA=B([hk,aA,oA,sA],ak),lA=B([cA,kk,eD,Jk],sk),uA=B([iA,lA],IO),dA=B([cA],e=>{if(e)return e.dataKey}),fA=B([cA],e=>{if(e)return e.graphicalItemId}),pA=B([hk,aA,oA,sA],dk),mA=B([fg,pg,u_,Tg,iA,sA,pA],lk),hA=B([cA,mA],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),gA=B([cA],e=>e?.active??!1),_A=B([pA,lA,qy,eD,uA,pk,aA],bk),B([_A],e=>{if(e!=null){var t=e.map(e=>e.payload).filter(e=>e!=null);return Array.from(new Set(t))}})}));function yA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yA(Object(n),!0).forEach(function(t){Coe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Coe(e,t,n){return(t=woe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function woe(e){var t=Toe(e,`string`);return typeof t==`symbol`?t:t+``}function Toe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var xA,SA,Eoe=o((()=>{Yd(),dg(),AO(),vA(),xA=()=>Vd($E),SA=()=>{var e=xA(),t=Vd(iA),n=Vd(eA);return cg(!e||!n?void 0:bA(bA({},e),{},{scale:n}),t)}}));function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CA(Object(n),!0).forEach(function(t){Doe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Doe(e,t,n){return(t=Ooe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ooe(e){var t=koe(e,`string`);return typeof t==`symbol`?t:t+``}function koe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Aoe(e,t){var n=e.relativeX,r=e.relativeY;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var TA,EA,DA,joe=o((()=>{Ry(),Js(),TA=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.relativeY};if(e===`vertical`)return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},EA=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`centric`){var a=i.coordinate,o=r.radius;return wA(wA(wA({},r),Py(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,c=r.angle;return wA(wA(wA({},r),Py(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}},DA=(e,t,n,r,i)=>{var a=t?.length??0;if(a<=1||e==null)return 0;if(r===`angleAxis`&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var o=i[1]-i[0],s=(t,n,r)=>[e,e+o,e-o].some(e=>(r?e>=t:e>t)&&e<=n),c=0;c<a;c++){var l=c>0?n[c-1]?.coordinate:n[a-1]?.coordinate,u=n[c]?.coordinate,d=c>=a-1?n[0]?.coordinate:n[c+1]?.coordinate,f=void 0;if(l!=null&&u!=null&&d!=null){if(Ls(u-l)!==Ls(d-u)){var p=[];if(Ls(d-u)===Ls(i[1]-i[0])){f=d;var m=u+i[1]-i[0];p[0]=Math.min(m,(m+l)/2),p[1]=Math.max(m,(m+l)/2)}else{f=l;var h=d+i[1]-i[0];p[0]=Math.min(u,(h+u)/2),p[1]=Math.max(u,(h+u)/2)}var g=[Math.min(u,(f+u)/2),Math.max(u,(f+u)/2)];if(s(g[0],g[1],!1)||s(p[0],p[1],!0))return n[c]?.index}else{var _=Math.min(l,d),v=Math.max(l,d);if(s((_+u)/2,(v+u)/2,!1))return n[c]?.index}}}else if(t)for(var y=0;y<a;y++){var b=t[y];if(b!=null){var x=t[y+1],S=t[y-1];if(y===0&&x!=null&&e<=(b.coordinate+x.coordinate)/2||y===a-1&&S!=null&&e>(b.coordinate+S.coordinate)/2||y>0&&y<a-1&&S!=null&&x!=null&&e>(b.coordinate+S.coordinate)/2&&e<=(b.coordinate+x.coordinate)/2)return b.index}}return-1}})),OA,kA,AA,jA,MA,NA,PA,FA,IA,LA,RA,zA,BA,VA,HA,UA,WA,GA=o((()=>{df(),kf(),Yd(),dg(),$y(),vA(),AO(),jb(),g_(),Og(),gg(),LO(),ok(),ck(),uk(),fk(),mk(),gk(),xk(),joe(),Ry(),OA=()=>Vd(Db),kA=(e,t)=>t,AA=(e,t,n)=>n,jA=(e,t,n,r)=>r,MA=B(iA,e=>Df(e,e=>e.coordinate)),NA=B([hk,kA,AA,jA],ak),PA=B([NA,kk,eD,Jk],sk),FA=(e,t,n)=>{if(t!=null){var r=hk(e);return t===`axis`?n===`hover`?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n===`hover`?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},IA=B([hk,kA,AA,jA],dk),LA=B([fg,pg,u_,Tg,iA,jA,IA],lk),RA=B([NA,LA],(e,t)=>e.coordinate??t),zA=B([iA,PA],IO),BA=B([IA,PA,qy,eD,zA,pk,kA],bk),VA=B([NA,PA],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),HA=(e,t,n,r,i,a,o)=>{if(!(!e||!n||!r||!i)&&Aoe(e,o)){var s=lg(e,t),c=DA(s,a,i,n,r),l=TA(t,i,c,e);return{activeIndex:String(c),activeCoordinate:l}}},UA=(e,t,n,r,i,a,o)=>{if(!(!e||!r||!i||!a||!n)){var s=wne(e,n);if(s){var c=ug(s,t),l=DA(c,o,a,r,i),u=EA(t,a,l,s);return{activeIndex:String(l),activeCoordinate:u}}}},WA=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a))return t===`horizontal`||t===`vertical`?HA(e,t,r,i,a,o,s):UA(e,t,n,r,i,a,o)}})),KA,qA,Moe=o((()=>{df(),vx(),Nb(),KA=B(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),qA=B(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(Mb));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:are}})}));function Noe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Poe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Noe(Object(n),!0).forEach(function(t){Foe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Noe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Foe(e,t,n){return(t=Ioe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ioe(e){var t=Loe(e,`string`);return typeof t==`symbol`?t:t+``}function Loe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Roe(e){return Boe.has(e)}var zoe,Boe,JA,YA,Voe,XA,Hoe,Uoe,Woe,ZA=o((()=>{jh(),Om(),Nb(),zoe={zIndexMap:Object.values(Mb).reduce((e,t)=>Poe(Poe({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},Boe=new Set(Object.values(Mb)),JA=Zm({name:`zIndex`,initialState:zoe,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Um()},unregisterZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(--e.zIndexMap[n].consumers,e.zIndexMap[n].consumers<=0&&!Roe(n)&&delete e.zIndexMap[n])},prepare:Um()},registerZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload,r=n.zIndex,i=n.element,a=n.isPanorama;e.zIndexMap[r]?a?e.zIndexMap[r].panoramaElement=Dm(i):e.zIndexMap[r].element=Dm(i):e.zIndexMap[r]={consumers:0,element:a?void 0:Dm(i),panoramaElement:a?Dm(i):void 0}},prepare:Um()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:Um()}}}),YA=JA.actions,Voe=YA.registerZIndexPortal,XA=YA.unregisterZIndexPortal,Hoe=YA.registerZIndexPortalElement,Uoe=YA.unregisterZIndexPortalElement,Woe=JA.reducer}));function QA(e){var t=e.zIndex,n=e.children,r=m_()&&t!==void 0&&t!==0,i=jg(),a=(0,$A.useRef)(void 0),o=(0,$A.useRef)(new Set),s=Gd(),c=Vd(e=>KA(e,t,i));if((0,$A.useLayoutEffect)(()=>{if(!r){var e=o.current;e.forEach(e=>{s(XA({zIndex:e}))}),e.clear(),a.current=void 0;return}if(o.current.has(t)||(s(Voe({zIndex:t})),o.current.add(t)),c){a.current=c;var n=o.current;n.forEach(e=>{e!==t&&(s(XA({zIndex:e})),n.delete(e))})}},[s,t,r,c]),(0,$A.useLayoutEffect)(()=>{var e=o.current;return()=>{e.forEach(e=>{s(XA({zIndex:e}))}),e.clear()}},[s]),!r)return n;var l=c??a.current;return l?(0,Goe.createPortal)(n,l):null}var $A,Goe,ej=o((()=>{$A=u(p()),Goe=u(_()),Yd(),Moe(),ZA(),g_(),Mg()}));function tj(){return tj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tj.apply(null,arguments)}function Koe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Koe(Object(n),!0).forEach(function(t){qoe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Koe(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qoe(e,t,n){return(t=Joe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Joe(e){var t=Yoe(e,`string`);return typeof t==`symbol`?t:t+``}function Yoe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Xoe(e){var t=e.cursor,n=e.cursorComp,r=e.cursorProps;return(0,ij.isValidElement)(t)?(0,ij.cloneElement)(t,r):(0,ij.createElement)(n,r)}function Zoe(e){var t=e.coordinate,n=e.payload,r=e.index,i=e.offset,a=e.tooltipAxisBandSize,o=e.layout,s=e.cursor,c=e.tooltipEventType,l=e.chartName,u=t,d=n,f=r;if(!s||!u||l!==`ScatterChart`&&c!==`axis`)return null;var p,m,h;if(l===`ScatterChart`)p=u,m=jv,h=Mb.cursorLine;else if(l===`BarChart`)p=Vte(o,u,i,a),m=Oy,h=Mb.cursorRectangle;else if(o===`radial`&&Fl(u)){var g=Tne(u),_=g.cx,v=g.cy,y=g.radius;p={cx:_,cy:v,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:y,outerRadius:y},m=Rne,h=Mb.cursorLine}else p={points:Bne(o,u,i)},m=wv,h=Mb.cursorLine;var b=typeof s==`object`&&`className`in s?s.className:void 0,x=nj(nj(nj(nj({stroke:`#ccc`,pointerEvents:`none`},i),p),Ko(s)),{},{payload:d,payloadIndex:f,className:Ro(`recharts-tooltip-cursor`,b)});return rj.createElement(QA,{zIndex:e.zIndex??h},rj.createElement(Xoe,{cursor:s,cursorComp:m,cursorProps:x}))}function Qoe(e){var t=SA(),n=s_(),r=d_(),i=OA();return t==null||n==null||r==null||i==null?null:rj.createElement(Zoe,tj({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var rj,ij,$oe=o((()=>{rj=u(p()),ij=u(p()),zo(),zl(),Tv(),Mv(),Hte(),ky(),Ene(),zne(),Vne(),g_(),Eoe(),GA(),Yo(),ej(),Nb()})),aj,oj,ese,sj=o((()=>{aj=u(p()),oj=(0,aj.createContext)(null),ese=()=>(0,aj.useContext)(oj)})),tse=s(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),nse,rse,ise=o((()=>{nse=u(tse(),1),rse=nse.default})),cj,lj,uj,ase=o((()=>{ise(),cj=new rse,lj=`recharts.syncEvent.tooltip`,uj=`recharts.syncEvent.brush`})),ose,dj,sse,cse,fj=o((()=>{jh(),Js(),ose=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Rs(n))return e[n]}},dj=Zm({name:`options`,initialState:{chartName:``,tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:`axis`},reducers:{createEventEmitter:e=>{e.eventEmitter??=Symbol(`rechartsEventEmitter`)}}}),sse=dj.reducer,cse=dj.actions.createEventEmitter}));function lse(e){return e.tooltip.syncInteraction}var use=o((()=>{})),dse,pj,mj,hj,fse,pse,gj=o((()=>{jh(),Om(),dse={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},pj=Zm({name:`chartData`,initialState:dse,reducers:{setChartData(e,t){if(e.chartData=Dm(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var n=t.payload,r=n.startIndex,i=n.endIndex;r!=null&&(e.dataStartIndex=r),i!=null&&(e.dataEndIndex=i)}}}),mj=pj.actions,hj=mj.setChartData,fse=mj.setDataStartEndIndexes,mj.setComputedData,pse=pj.reducer}));function mse(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _j(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mse(Object(n),!0).forEach(function(t){hse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mse(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hse(e,t,n){return(t=gse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gse(e){var t=_se(e,`string`);return typeof t==`symbol`?t:t+``}function _se(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function vse(e,t){if(e==null)return{};var n,r,i=yse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function bse(){var e=Vd(Ob),t=Vd(Ab),n=Gd(),r=Vd(kb),i=Vd(iA),a=d_(),o=a_(),s=Vd(e=>e.rootProps.className);(0,vj.useEffect)(()=>{if(e==null)return Is;var s=(s,c,l)=>{if(t!==l&&e===s){if(c.payload.active===!1){n($O({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r===`index`){var u;if(o&&c!=null&&(u=c.payload)!=null&&u.coordinate&&c.payload.sourceViewBox){var d=c.payload.coordinate,f=d.x,p=d.y,m=vse(d,wse),h=c.payload.sourceViewBox,g=h.x,_=h.y,v=h.width,y=h.height,b=_j(_j({},m),{},{x:o.x+(v?(f-g)/v:0)*o.width,y:o.y+(y?(p-_)/y:0)*o.height});n(_j(_j({},c),{},{payload:_j(_j({},c.payload),{},{coordinate:b})}))}else n(c);return}if(i!=null){var x;typeof r==`function`?x=i[r(i,{activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate})]:r===`value`&&(x=i.find(e=>String(e.value)===c.payload.label));var S=c.payload.coordinate;if(S==null||o==null){n($O({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(x==null){n($O({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));return}var C=S.x,w=S.y,T=Math.min(C,o.x+o.width),E=Math.min(w,o.y+o.height),D={x:a===`horizontal`?x.coordinate:T,y:a===`horizontal`?E:x.coordinate};n($O({active:c.payload.active,coordinate:D,dataKey:c.payload.dataKey,index:String(x.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId}))}}};return cj.on(lj,s),()=>{cj.off(lj,s)}},[s,n,t,e,r,i,a,o])}function xse(){var e=Vd(Ob),t=Vd(Ab),n=Gd();(0,vj.useEffect)(()=>{if(e==null)return Is;var r=(r,i,a)=>{t!==a&&e===r&&n(fse(i))};return cj.on(uj,r),()=>{cj.off(uj,r)}},[n,t,e])}function Sse(){var e=Gd();(0,vj.useEffect)(()=>{e(cse())},[e]),bse(),xse()}function Cse(e,t,n,r,i,a){var o=Vd(n=>FA(n,e,t)),s=Vd(fA),c=Vd(Ab),l=Vd(Ob),u=Vd(kb),d=Vd(lse)?.sourceViewBox!=null,f=a_();(0,vj.useEffect)(()=>{if(!d&&l!=null&&c!=null){var e=$O({active:a,coordinate:n,dataKey:o,index:i,label:typeof r==`number`?String(r):r,sourceViewBox:f,graphicalItemId:s});cj.emit(lj,l,e,c)}},[d,n,o,s,i,r,c,l,u,a,f])}var vj,wse,yj=o((()=>{vj=u(p()),Yd(),jb(),ase(),fj(),nk(),GA(),vA(),use(),g_(),gj(),Js(),wse=[`x`,`y`]}));function bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bj(Object(n),!0).forEach(function(t){Tse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tse(e,t,n){return(t=Ese(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ese(e){var t=Dse(e,`string`);return typeof t==`symbol`?t:t+``}function Dse(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ose(e,t){return Mse(e)||jse(e,t)||Ase(e,t)||kse()}function kse(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ase(e,t){if(e){if(typeof e==`string`)return Sj(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sj(e,t):void 0}}function Sj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jse(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Mse(e){if(Array.isArray(e))return e}function Nse(e){return e.dataKey}function Pse(e,t){return Cj.isValidElement(e)?Cj.cloneElement(e,t):typeof e==`function`?Cj.createElement(e,t):Cj.createElement(q_,t)}function Fse(e){var t=Gl(e,Dj),n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.content,s=t.filterNull,c=t.isAnimationActive,l=t.offset,u=t.payloadUniqBy,d=t.position,f=t.reverseDirection,p=t.useTranslate3d,m=t.wrapperStyle,h=t.cursor,g=t.shared,_=t.trigger,v=t.defaultIndex,y=t.portal,b=t.axisId,x=Gd(),S=typeof v==`number`?String(v):v;(0,wj.useEffect)(()=>{x(KO({shared:g,trigger:_,axisId:b,active:n,defaultIndex:S}))},[x,g,_,b,n,S]);var C=a_(),w=uv(),T=aoe(g),E=Vd(e=>VA(e,T,_,S))??{},D=E.activeIndex,O=E.isActive,k=Vd(e=>BA(e,T,_,S)),A=Vd(e=>zA(e,T,_,S)),j=Vd(e=>RA(e,T,_,S)),M=k,N=ese(),P=n??O??!1,F=Ose(Hf([M,P]),2),I=F[0],L=F[1],R=T===`axis`?A:void 0;Cse(T,_,j,R,D,P);var ee=y??N;if(ee==null||C==null||T==null)return null;var te=M??Ej;P||(te=Ej),s&&te.length&&(te=Md(te.filter(e=>e.value!=null&&(e.hide!==!0||t.includeHidden)),u,Nse));var ne=te.length>0,re=xj(xj({},t),{},{payload:te,label:R,active:P,activeIndex:D,coordinate:j,accessibilityLayer:w}),ie=Cj.createElement(lv,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:c,active:P,coordinate:j,hasPayload:ne,offset:l,position:d,reverseDirection:f,useTranslate3d:p,viewBox:C,wrapperStyle:m,lastBoundingBox:I,innerRef:L,hasPortalFromProps:!!y},Pse(o,re));return Cj.createElement(Cj.Fragment,null,(0,Tj.createPortal)(ie,ee),P&&Cj.createElement(Qoe,{cursor:h,tooltipEventType:T,coordinate:j,payload:te,index:D}))}var Cj,wj,Tj,Ej,Dj,Ise=o((()=>{Cj=u(p()),wj=u(p()),Tj=u(_()),J_(),jte(),Nd(),g_(),dv(),Gf(),$oe(),GA(),sj(),Yd(),nk(),yj(),FO(),Kl(),Ej=[],Dj={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:`auto`,itemSorter:`name`,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,wrapperStyle:{}}})),Oj,kj=o((()=>{Oj=e=>null,Oj.displayName=`Cell`}));function Lse(e,t,n){return(t=Rse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rse(e){var t=zse(e,`string`);return typeof t==`symbol`?t:t+``}function zse(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Aj,Bse=o((()=>{Aj=class{constructor(e){Lse(this,`cache`,new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}}));function jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jj(Object(n),!0).forEach(function(t){Hse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jj(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hse(e,t,n){return(t=Use(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Use(e){var t=Wse(e,`string`);return typeof t==`symbol`?t:t+``}function Wse(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Gse(e,t){return`${e}|${t.fontSize||``}|${t.fontFamily||``}|${t.fontWeight||``}|${t.fontStyle||``}|${t.letterSpacing||``}|${t.textTransform||``}`}var Mj,Nj,Pj,Fj,Ij,Lj,Rj=o((()=>{ev(),Bse(),Mj=Vse({},{cacheSize:2e3,enableCache:!0}),Nj=new Aj(Mj.cacheSize),Pj={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},Fj=`recharts_measurement_span`,Ij=(e,t)=>{try{var n=document.getElementById(Fj);n||(n=document.createElement(`span`),n.setAttribute(`id`,Fj),n.setAttribute(`aria-hidden`,`true`),document.body.appendChild(n)),Object.assign(n.style,Pj,t),n.textContent=`${e}`;var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Lj=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||$_.isSsr)return{width:0,height:0};if(!Mj.enableCache)return Ij(e,t);var n=Gse(e,t),r=Nj.get(n);if(r)return r;var i=Ij(e,t);return Nj.set(n,i),i}}));function zj(e,t){return Yse(e)||Jse(e,t)||qse(e,t)||Kse()}function Kse(){throw 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){if(e){if(typeof e==`string`)return Bj(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bj(e,t):void 0}}function Bj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Jse(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Yse(e){if(Array.isArray(e))return e}function Xse(e,t,n){return(t=Zse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zse(e){var t=Qse(e,`string`);return typeof t==`symbol`?t:t+``}function Qse(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $se(e){return Yj.includes(e)}function ece(e,t){return e*Jj[t]}function Vj(e){if(e==null||e.includes(Xj))return Xj;for(var t=e;t.includes(`*`)||t.includes(`/`);){var n=zj(Wj.exec(t)??[],4),r=n[1],i=n[2],a=n[3],o=Zj.parse(r??``),s=Zj.parse(a??``),c=i===`*`?o.multiply(s):o.divide(s);if(c.isNaN())return Xj;t=t.replace(Wj,c.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var l=zj(Gj.exec(t)??[],4),u=l[1],d=l[2],f=l[3],p=Zj.parse(u??``),m=Zj.parse(f??``),h=d===`+`?p.add(m):p.subtract(m);if(h.isNaN())return Xj;t=t.replace(Gj,h.toString())}return t}function tce(e){for(var t=e,n;(n=Qj.exec(t))!=null;){var r=zj(n,2)[1];t=t.replace(Qj,Vj(r))}return t}function nce(e){var t=e.replace(/\s+/g,``);return t=tce(t),t=Vj(t),t}function rce(e){try{return nce(e)}catch{return Xj}}function Hj(e){var t=rce(e.slice(5,-1));return t===Xj?``:t}var Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,ice=o((()=>{Js(),Wj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Gj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Kj=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,qj=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Jj={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Yj=[`cm`,`mm`,`pt`,`pc`,`in`,`Q`,`px`],Xj=`NaN`,Zj=class e{static parse(t){var n=zj(qj.exec(t)??[],3),r=n[1],i=n[2];return r==null?e.NaN:new e(parseFloat(r),i??``)}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,Rs(e)&&(this.unit=``),t!==``&&!Kj.test(t)&&(this.num=NaN,this.unit=``),$se(t)&&(this.num=ece(e,t),this.unit=`px`)}add(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}subtract(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}multiply(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}toString(){return`${this.num}${this.unit}`}isNaN(){return Rs(this.num)}},Uj=Zj,Xse(Zj,`NaN`,new Uj(NaN,``)),Qj=/\(([^()]*)\)/}));function $j(){return $j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$j.apply(null,arguments)}function eM(e,t){if(e==null)return{};var n,r,i=ace(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ace(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tM(e,t){return lce(e)||cce(e,t)||sce(e,t)||oce()}function oce(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sce(e,t){if(e){if(typeof e==`string`)return nM(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?nM(e,t):void 0}}function nM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function cce(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function lce(e){if(Array.isArray(e))return e}function rM(e){return e===`start`||e===`middle`||e===`end`||e===`inherit`}function uce(e){return Ks(e)||typeof e==`string`||typeof e==`number`||typeof e==`boolean`}var iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM=o((()=>{iM=u(p()),aM=u(p()),zo(),Js(),ev(),Rj(),ice(),Zo(),Kl(),Wh(),oM=[`x`,`y`,`lineHeight`,`capHeight`,`fill`,`scaleToFit`,`textAnchor`,`verticalAnchor`],sM=[`dx`,`dy`,`angle`,`className`,`breakAll`],cM=/[ \f\n\r\t\v\u2028\u2029]+/,lM=e=>{var t=e.children,n=e.breakAll,r=e.style;try{var i=[];return Ks(t)||(i=n?t.toString().split(``):t.toString().split(cM)),{wordsWithComputedWidth:i.map(e=>({word:e,width:Lj(e,r).width})),spaceWidth:n?0:Lj(`\xA0`,r).width}}catch{return null}},uM=(e,t,n,r)=>e.reduce((e,i)=>{var a=i.word,o=i.width,s=e[e.length-1];if(s&&o!=null&&(t==null||r||s.width+o+n<Number(t)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[]),dM=e=>e.reduce((e,t)=>e.width>t.width?e:t),fM=`…`,pM=(e,t,n,r,i,a,o,s)=>{var c=lM({breakAll:n,style:r,children:e.slice(0,t)+fM});if(!c)return[!1,[]];var l=uM(c.wordsWithComputedWidth,a,o,s);return[l.length>i||dM(l).width>Number(a),l]},mM=(e,t,n,r,i)=>{var a=e.maxLines,o=e.children,s=e.style,c=e.breakAll,l=Bs(a),u=String(o),d=uM(t,r,n,i);if(!l||i||!(d.length>a||dM(d).width>Number(r)))return d;for(var f=0,p=u.length-1,m=0,h;f<=p&&m<=u.length-1;){var g=Math.floor((f+p)/2),_=tM(pM(u,g-1,c,s,a,r,n,i),2),v=_[0],y=_[1],b=tM(pM(u,g,c,s,a,r,n,i),1)[0];if(!v&&!b&&(f=g+1),v&&b&&(p=g-1),!v&&b){h=y;break}m++}return h||d},hM=e=>[{words:Ks(e)?[]:e.toString().split(cM),width:void 0}],gM=e=>{var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,a=e.breakAll,o=e.maxLines;if((t||n)&&!$_.isSsr){var s,c,l=lM({breakAll:a,children:r,style:i});if(l){var u=l.wordsWithComputedWidth,d=l.spaceWidth;s=u,c=d}else return hM(r);return mM({breakAll:a,children:r,maxLines:o,style:i},s,c,t,!!n)}return hM(r)},_M=`#808080`,vM={angle:0,breakAll:!1,capHeight:`0.71em`,fill:_M,lineHeight:`1em`,scaleToFit:!1,textAnchor:`start`,verticalAnchor:`end`,x:0,y:0},yM=(0,aM.forwardRef)((e,t)=>{var n=Gl(e,vM),r=n.x,i=n.y,a=n.lineHeight,o=n.capHeight,s=n.fill,c=n.scaleToFit,l=n.textAnchor,u=n.verticalAnchor,d=eM(n,oM),f=(0,aM.useMemo)(()=>gM({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:c,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,c,d.style,d.width]),p=d.dx,m=d.dy,h=d.angle,g=d.className,_=d.breakAll,v=eM(d,sM);if(!Vs(r)||!Vs(i)||f.length===0)return null;var y=Number(r)+(Bs(p)?p:0),b=Number(i)+(Bs(m)?m:0);if(!Hh(y)||!Hh(b))return null;var x;switch(u){case`start`:x=Hj(`calc(${o})`);break;case`middle`:x=Hj(`calc(${(f.length-1)/2} * -${a} + (${o} / 2))`);break;default:x=Hj(`calc(${f.length-1} * -${a})`)}var S=[],C=f[0];if(c&&C!=null){var w=C.width,T=d.width;S.push(`scale(${Bs(T)&&Bs(w)?T/w:1})`)}return h&&S.push(`rotate(${h}, ${y}, ${b})`),S.length&&(v.transform=S.join(` `)),iM.createElement(`text`,$j({},Xo(v),{ref:t,x:y,y:b,className:Ro(`recharts-text`,g),textAnchor:l,fill:s.includes(`url`)?_M:s}),f.map((e,t)=>{var n=e.words.join(_?``:` `);return iM.createElement(`tspan`,{x:y,dy:t===0?x:a,key:`${n}-${t}`},n)}))}),yM.displayName=`Text`}));function xM(e,t){if(e==null)return{};var n,r,i=dce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function SM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SM(Object(n),!0).forEach(function(t){fce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fce(e,t,n){return(t=pce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pce(e){var t=mce(e,`string`);return typeof t==`symbol`?t:t+``}function mce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wM(){return wM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wM.apply(null,arguments)}function hce(e){if(!BM(e))return e;var t=e.cx,n=e.cy,r=e.outerRadius,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function TM(e){var t=Gl(e,VM),n=t.viewBox,r=t.parentViewBox,i=t.position,a=t.value,o=t.children,s=t.content,c=t.className,l=c===void 0?``:c,u=t.textBreakAll,d=t.labelRef,f=PM(),p=MM(),m=n==null?i===`center`?p:f??p:BM(n)?n:Ys(n),h,g,_=hce(m);if(!m||Ks(a)&&Ks(o)&&!(0,DM.isValidElement)(s)&&typeof s!=`function`)return null;var v=BM(m)&&(i===`insideStart`||i===`insideEnd`||i===`end`);if(BM(m))v||(g=zM(m,t.offset,t.position));else if(_){var y=rc({viewBox:_,position:i,offset:t.offset,parentViewBox:BM(r)?void 0:r,clamp:!0});g=CM(CM({x:y.x,y:y.y,textAnchor:y.horizontalAnchor,verticalAnchor:y.verticalAnchor},y.width===void 0?{}:{width:y.width}),y.height===void 0?{}:{height:y.height})}var b=CM(CM(CM(CM({},g?.x===void 0?{}:{x:g.x}),g?.y===void 0?{}:{y:g.y}),t),{},{viewBox:m});if((0,DM.isValidElement)(s)){b.labelRef;var x=xM(b,OM);return(0,DM.cloneElement)(s,x)}if(typeof s==`function`){b.content;var S=xM(b,kM);if(h=(0,DM.createElement)(s,S),(0,DM.isValidElement)(h))return h}else h=FM(t);var C=Xo(t);return v&&BM(m)?RM(t,i,h,C,m):g==null?null:EM.createElement(QA,{zIndex:t.zIndex},EM.createElement(yM,wM({ref:d,className:Ro(`recharts-label`,l)},C,g,{textAnchor:rM(C.textAnchor)?C.textAnchor:g.textAnchor,breakAll:u}),h))}function gce(e){var t=e.label,n=e.labelRef;return HM(t,MM(),n)||null}var EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM=o((()=>{EM=u(p()),DM=u(p()),zo(),bM(),Js(),Ry(),g_(),Yd(),ix(),Kl(),Zo(),ej(),Nb(),ac(),Xs(),OM=[`labelRef`],kM=[`content`],AM=(0,DM.createContext)(null),jM=e=>{var t=e.x,n=e.y,r=e.upperWidth,i=e.lowerWidth,a=e.width,o=e.height,s=e.children,c=(0,DM.useMemo)(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o}),[t,n,r,i,a,o]);return EM.createElement(AM.Provider,{value:c},s)},MM=()=>{var e=(0,DM.useContext)(AM),t=a_();return e||(t?Ys(t):void 0)},NM=(0,DM.createContext)(null),PM=()=>{var e=(0,DM.useContext)(NM),t=Vd(rx);return e||t},FM=e=>{var t=e.value,n=e.formatter,r=Ks(e.children)?t:e.children;return typeof n==`function`?n(r):r},IM=e=>e!=null&&typeof e==`function`,LM=(e,t)=>Ls(t-e)*Math.min(Math.abs(t-e),360),RM=(e,t,n,r,i)=>{var a=e.offset,o=e.className,s=i.cx,c=i.cy,l=i.innerRadius,u=i.outerRadius,d=i.startAngle,f=i.endAngle,p=i.clockWise,m=(l+u)/2,h=LM(d,f),g=h>=0?1:-1,_,v;switch(t){case`insideStart`:_=d+g*a,v=p;break;case`insideEnd`:_=f-g*a,v=!p;break;case`end`:_=f+g*a,v=p;break;default:throw Error(`Unsupported position ${t}`)}v=h<=0?v:!v;var y=Py(s,c,m,_),b=Py(s,c,m,_+(v?1:-1)*359),x=`M${y.x},${y.y}
A${m},${m},0,1,${+!v},
${b.x},${b.y}`,S=Ks(e.id)?Us(`recharts-radial-line-`):e.id;return EM.createElement(`text`,wM({},r,{dominantBaseline:`central`,className:Ro(`recharts-radial-bar-label`,o)}),EM.createElement(`defs`,null,EM.createElement(`path`,{id:S,d:x})),EM.createElement(`textPath`,{xlinkHref:`#${S}`},n))},zM=(e,t,n)=>{var r=e.cx,i=e.cy,a=e.innerRadius,o=e.outerRadius,s=(e.startAngle+e.endAngle)/2;if(n===`outside`){var c=Py(r,i,o+t,s),l=c.x;return{x:l,y:c.y,textAnchor:l>=r?`start`:`end`,verticalAnchor:`middle`}}if(n===`center`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`middle`};if(n===`centerTop`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`start`};if(n===`centerBottom`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`end`};var u=(a+o)/2,d=Py(r,i,u,s);return{x:d.x,y:d.y,textAnchor:`middle`,verticalAnchor:`middle`}},BM=e=>e!=null&&`cx`in e&&Bs(e.cx),VM={angle:0,offset:5,zIndex:Mb.label,position:`middle`,textBreakAll:!1},TM.displayName=`Label`,HM=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?EM.createElement(TM,wM({key:`label-implicit`},r)):Vs(e)?EM.createElement(TM,wM({key:`label-implicit`,value:e},r)):(0,DM.isValidElement)(e)?e.type===TM?(0,DM.cloneElement)(e,CM({key:`label-implicit`},r)):EM.createElement(TM,wM({key:`label-implicit`,content:e},r)):IM(e)?EM.createElement(TM,wM({key:`label-implicit`,content:e},r)):e&&typeof e==`object`?EM.createElement(TM,wM({},e,{key:`label-implicit`},r)):null}}));function WM(){return WM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WM.apply(null,arguments)}function GM(e,t){if(e==null)return{};var n,r,i=_ce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _ce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vce(){return(0,JM.useContext)(QM)}function yce(){return(0,JM.useContext)(eN)}function KM(e){var t=e.valueAccessor,n=t===void 0?ZM:t,r=GM(e,YM),i=r.dataKey;r.clockWise;var a=r.id,o=r.textBreakAll,s=r.zIndex,c=GM(r,XM),l=vce(),u=yce(),d=l||u;return!d||!d.length?null:qM.createElement(QA,{zIndex:s??Mb.label},qM.createElement(ds,{className:`recharts-label-list`},d.map((e,t)=>{var s=Ks(i)?n(e,t):qh(e.payload,i),l=Ks(a)?{}:{id:`${a}-${t}`};return qM.createElement(TM,WM({key:`label-${t}`},Xo(e),c,l,{fill:r.fill??e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:t,zIndex:0}))})))}function bce(e){var t=e.label;return t?t===!0?qM.createElement(KM,{key:`labelList-implicit`}):qM.isValidElement(t)||IM(t)?qM.createElement(KM,{key:`labelList-implicit`,content:t}):typeof t==`object`?qM.createElement(KM,WM({key:`labelList-implicit`},t,{type:String(t.type)})):null:null}var qM,JM,YM,XM,ZM,QM,$M,eN,tN=o((()=>{qM=u(p()),JM=u(p()),UM(),fs(),dg(),Js(),Zo(),ej(),Nb(),bM(),YM=[`valueAccessor`],XM=[`dataKey`,`clockWise`,`id`,`textBreakAll`,`zIndex`],ZM=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(uce(t))return t},QM=(0,JM.createContext)(void 0),$M=QM.Provider,eN=(0,JM.createContext)(void 0),eN.Provider,KM.displayName=`LabelList`})),nN,rN,iN,aN=o((()=>{jh(),Om(),nN=Zm({name:`polarAxis`,initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=Dm(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=Dm(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),rN=nN.actions,rN.addRadiusAxis,rN.removeRadiusAxis,rN.addAngleAxis,rN.removeAngleAxis,iN=nN.reducer}));function xce(e){return e&&typeof e==`object`&&`className`in e&&typeof e.className==`string`?e.className:``}var Sce=o((()=>{})),Cce=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.suspense_list`),d=Symbol.for(`react.memo`),f=Symbol.for(`react.lazy`),p=Symbol.for(`react.view_transition`);function m(e){if(typeof e==`object`&&e){var m=e.$$typeof;switch(m){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:case p:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:return e;case o:return e;default:return m}}case n:return m}}}e.isFragment=function(e){return m(e)===r}})),wce=s(((e,t)=>{t.exports=Cce()}));function Tce(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(e=>cN(e)):[cN(t)],dN(e).forEach(e=>{var t=Ts(e,`type.displayName`)||Ts(e,`type.name`);t&&r.indexOf(t)!==-1&&n.push(e)}),n}var oN,sN,cN,lN,uN,dN,fN=o((()=>{Os(),oN=u(p()),sN=wce(),Js(),cN=e=>typeof e==`string`?e:e?e.displayName||e.name||`Component`:``,lN=null,uN=null,dN=e=>{if(e===lN&&Array.isArray(uN))return uN;var t=[];return oN.Children.forEach(e,e=>{Ks(e)||((0,sN.isFragment)(e)?t=t.concat(dN(e.props.children)):t.push(e))}),uN=t,lN=e,t}}));function pN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pN(Object(n),!0).forEach(function(t){Ece(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ece(e,t,n){return(t=Dce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dce(e){var t=Oce(e,`string`);return typeof t==`symbol`?t:t+``}function Oce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hN(e,t){return mN(mN({},t),e)}function kce(e){return(0,_N.isValidElement)(e)?e.props:e}function Ace(e,t){return(0,_N.cloneElement)(e,hN(kce(e),t))}function jce(e){if(`index`in e){var t=e.index;return typeof t==`number`||typeof t==`string`?t:void 0}}function Mce(e){return`isActive`in e&&e.isActive===!0}function Nce(e){var t=e.option,n=e.DefaultShape,r=e.shapeProps,i=e.activeClassName,a=i===void 0?`recharts-active-shape`:i,o=e.inActiveClassName,s=o===void 0?`recharts-shape`:o,c=jce(r),l=(0,_N.isValidElement)(t)?Ace(t,r):t===n?gN.createElement(n,r):typeof t==`function`?t(r,c):typeof t==`object`?gN.createElement(n,hN(t,r)):gN.createElement(n,r);return Mce(r)?gN.createElement(ds,{className:a},l):gN.createElement(ds,{className:s},l)}var gN,_N,vN=o((()=>{gN=u(p()),_N=u(p()),fs()})),yN,bN,xN,SN=o((()=>{Yd(),nk(),yN=(e,t,n)=>{var r=Gd();return(i,a)=>o=>{e?.(i,a,o),r(qO({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},bN=e=>{var t=Gd();return(n,r)=>i=>{e?.(n,r,i),t(JO())}},xN=(e,t,n)=>{var r=Gd();return(i,a)=>o=>{e?.(i,a,o),r(XO({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}}}));function Pce(e){var t=e.tooltipEntrySettings,n=Gd(),r=jg(),i=(0,CN.useRef)(null);return(0,CN.useLayoutEffect)(()=>{r||(i.current===null?n(UO(t)):i.current!==t&&n(WO({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,CN.useLayoutEffect)(()=>()=>{i.current&&=(n(GO(i.current)),null)},[n]),null}var CN,wN=o((()=>{CN=u(p()),Yd(),nk(),Mg()}));function Fce(e){var t=e.legendPayload,n=Gd(),r=jg(),i=(0,TN.useRef)(null);return(0,TN.useLayoutEffect)(()=>{r||(i.current===null?n(y_(t)):i.current!==t&&n(b_({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,TN.useLayoutEffect)(()=>()=>{i.current&&=(n(x_(i.current)),null)},[n]),null}var TN,EN=o((()=>{TN=u(p()),Mg(),Yd(),C_()}));function Ice(e,t){return Bce(e)||zce(e,t)||Rce(e,t)||Lce()}function Lce(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rce(e,t){if(e){if(typeof e==`string`)return DN(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DN(e,t):void 0}}function DN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zce(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Bce(e){if(Array.isArray(e))return e}function ON(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=[];for(var i of n)r.push({status:`removed`,prev:i});for(var a=0;a<t.length;a++){var o=e[a],s=t[a];o==null?r.push({status:`added`,next:s}):r.push({status:`matched`,prev:o,next:s})}return r}function Vce(e,t){var n=e.length/t.length;return ON(t.map((t,r)=>e[Math.floor(r*n)]),t)}function Hce(e,t){return ON(t.map((t,n)=>e[n]),t)}function Uce(e,t){for(var n=new Map,r=0;r<e.length;r++){var i=e[r];if(i!=null){var a=t(i,r);a!=null&&!n.has(a)&&n.set(a,i)}}return n}function Wce(e,t,n){var r=Uce(e,n),i=new Set,a=t.map((e,t)=>{var a=n(e,t);if(a!=null){var o=r.get(a);if(o!==void 0)return i.add(a),o}}),o=[];for(var s of r){var c=Ice(s,2),l=c[0],u=c[1];i.has(l)||o.push(u)}return ON(a,t,o)}function Gce(e,t,n){return t==null?null:e==null?t.map(e=>({status:`added`,next:e})):n===`index`?Vce(e,t):n===`append`?Hce(e,t):Wce(e,t,n)}var kN,AN,jN=o((()=>{kN=`index`,AN=`append`}));function Kce(e,t){var n=(0,MN.useRef)(e),r=(0,MN.useRef)(t.current),i=(0,MN.useRef)(!0);n.current!==e&&(n.current=e,r.current=t.current,i.current=!1);var a=(0,MN.useCallback)(function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(n===0){i.current=!0;return}n===1&&(r.current=e),n>0&&i.current&&a&&(t.current=e)},[t]);return{startValue:r.current,syncStepValue:a}}var MN,NN=o((()=>{MN=u(p())}));function qce(e,t){return Zce(e)||Xce(e,t)||Yce(e,t)||Jce()}function Jce(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yce(e,t){if(e){if(typeof e==`string`)return PN(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?PN(e,t):void 0}}function PN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xce(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Zce(e){if(Array.isArray(e))return e}function Qce(e,t){var n=qce((0,IN.useState)(!1),2),r=n[0],i=n[1];return{isAnimating:r,handleAnimationStart:(0,IN.useCallback)(()=>{typeof e==`function`&&e(),i(!0)},[e]),handleAnimationEnd:(0,IN.useCallback)(()=>{typeof t==`function`&&t(),i(!1)},[t])}}function $ce(e){var t=e.animationInput,n=e.animationIdPrefix,r=e.items,i=e.previousItemsRef,a=e.isAnimationActive,o=e.animationBegin,s=e.animationDuration,c=e.animationEasing,l=e.onAnimationStart,u=e.onAnimationEnd,d=e.animationInterpolateFn,f=e.animationMatchBy,p=e.shouldUpdatePreviousRef,m=e.children,h=e.layout,g=uy(t,n),_=Kce(g,i),v=_.startValue??null,y=Gce(v,r,f??kN);return FN.createElement(iy,{animationId:g,begin:o,duration:s,isActive:a,easing:c,onAnimationEnd:u,onAnimationStart:l,key:g},e=>{var t=v==null,n=r==null?r:d(y,e,h),i=p?p(e):e>0;return _.syncStepValue(n,e,i),n==null?null:m(n,e,t)})}var FN,IN,LN=o((()=>{FN=u(p()),IN=u(p()),ly(),fy(),jN(),NN()}));function ele(e,t){return ile(e)||rle(e,t)||nle(e,t)||tle()}function tle(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nle(e,t){if(e){if(typeof e==`string`)return RN(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RN(e,t):void 0}}function RN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rle(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ile(e){if(Array.isArray(e))return e}var zN,BN,VN,HN=o((()=>{zN=u(p()),Js(),BN=()=>ele(zN.useState(()=>Us(`uid-`)),1)[0],VN=zN.useId??BN}));function ale(e,t){var n=VN();return t||(e?`${e}-${n}`:n)}var ole=o((()=>{HN()})),UN,WN,GN,KN,qN=o((()=>{UN=u(p()),WN=u(p()),ole(),GN=(0,WN.createContext)(void 0),KN=e=>{var t=e.id,n=e.type,r=e.children,i=ale(`recharts-${n}`,t);return UN.createElement(GN.Provider,{value:i},r(i))}})),JN,YN,XN,ZN,QN,$N,eP=o((()=>{jh(),Om(),JN=Zm({name:`graphicalItems`,initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(Dm(t.payload))},prepare:Um()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=Lp(e).cartesianItems.indexOf(Dm(r));a>-1&&(e.cartesianItems[a]=Dm(i))},prepare:Um()},removeCartesianGraphicalItem:{reducer(e,t){var n=Lp(e).cartesianItems.indexOf(Dm(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:Um()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(Dm(t.payload))},prepare:Um()},removePolarGraphicalItem:{reducer(e,t){var n=Lp(e).polarItems.indexOf(Dm(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:Um()},replacePolarGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=Lp(e).polarItems.indexOf(Dm(r));a>-1&&(e.polarItems[a]=Dm(i))},prepare:Um()}}}),YN=JN.actions,XN=YN.addCartesianGraphicalItem,ZN=YN.replaceCartesianGraphicalItem,QN=YN.removeCartesianGraphicalItem,YN.addPolarGraphicalItem,YN.removePolarGraphicalItem,YN.replacePolarGraphicalItem,$N=JN.reducer})),tP,nP,rP,iP=o((()=>{tP=u(p()),Yd(),eP(),nP=e=>{var t=Gd(),n=(0,tP.useRef)(null);return(0,tP.useLayoutEffect)(()=>{n.current===null?t(XN(e)):n.current!==e&&t(ZN({prev:n.current,next:e})),n.current=e},[t,e]),(0,tP.useLayoutEffect)(()=>()=>{n.current&&=(t(QN(n.current)),null)},[t]),null},rP=(0,tP.memo)(nP)}));function aP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?aP(Object(n),!0).forEach(function(t){sle(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sle(e,t,n){return(t=cle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cle(e){var t=lle(e,`string`);return typeof t==`symbol`?t:t+``}function lle(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var sP,cP,lP,uP,dP,fP,pP,mP=o((()=>{jh(),Om(),sP=Zm({name:`cartesianAxis`,initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=Dm(t.payload)},prepare:Um()},replaceXAxis:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next;e.xAxis[r.id]!==void 0&&(r.id!==i.id&&delete e.xAxis[r.id],e.xAxis[i.id]=Dm(i))},prepare:Um()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Um()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=Dm(t.payload)},prepare:Um()},replaceYAxis:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next;e.yAxis[r.id]!==void 0&&(r.id!==i.id&&delete e.yAxis[r.id],e.yAxis[i.id]=Dm(i))},prepare:Um()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Um()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=Dm(t.payload)},prepare:Um()},replaceZAxis:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next;e.zAxis[r.id]!==void 0&&(r.id!==i.id&&delete e.zAxis[r.id],e.zAxis[i.id]=Dm(i))},prepare:Um()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Um()},updateYAxisWidth(e,t){var n=t.payload,r=n.id,i=n.width,a=e.yAxis[r];if(a){var o=a.widthHistory||[];if(o.length===3&&o[0]===o[2]&&i===o[1]&&i!==a.width&&Math.abs(i-(o[0]??0))<=1)return;var s=[...o,i].slice(-3);e.yAxis[r]=oP(oP({},a),{},{width:i,widthHistory:s})}},updateXAxisHeight(e,t){var n=t.payload,r=n.id,i=n.height,a=e.xAxis[r];if(a){var o=a.heightHistory||[];if(o.length===3&&o[0]===o[2]&&i===o[1]&&i!==a.height&&Math.abs(i-(o[0]??0))<=1)return;var s=[...o,i].slice(-3);e.xAxis[r]=oP(oP({},a),{},{height:i,heightHistory:s})}}}}),cP=sP.actions,lP=cP.addXAxis,uP=cP.replaceXAxis,dP=cP.removeXAxis,cP.addYAxis,cP.replaceYAxis,cP.removeYAxis,cP.addZAxis,cP.replaceZAxis,cP.removeZAxis,cP.updateYAxisWidth,fP=cP.updateXAxisHeight,pP=sP.reducer})),hP,ule=o((()=>{df(),Og(),hP=B([Tg],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right}))})),gP,dle=o((()=>{df(),ule(),gg(),gP=B([hP,fg,pg],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}})})),_P,vP=o((()=>{Yd(),dle(),_P=()=>Vd(gP)}));function fle(e,t){return gle(e)||hle(e,t)||mle(e,t)||ple()}function ple(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mle(e,t){if(e){if(typeof e==`string`)return yP(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yP(e,t):void 0}}function yP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hle(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function gle(e){if(Array.isArray(e))return e}var bP,xP,SP=o((()=>{mx(),Js(),bP=(e,t,n)=>{var r=n??e;if(!Ks(r))return Ws(r,t,0)},xP=(e,t,n)=>{var r={},i=e.filter(px),a=e.filter(e=>e.stackId==null),o=i.reduce((e,t)=>{var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},r),s=Object.entries(o).map(e=>{var r=fle(e,2),i=r[0],a=r[1];return{stackId:i,dataKeys:a.map(e=>e.dataKey),barSize:bP(t,n,a[0]?.barSize)}}),c=a.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>e!=null),barSize:bP(t,n,e.barSize)}));return[...s,...c]}}));function CP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CP(Object(n),!0).forEach(function(t){_le(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _le(e,t,n){return(t=vle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vle(e){var t=yle(e,`string`);return typeof t==`symbol`?t:t+``}function yle(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ble(e,t,n,r,i){var a=r.length;if(!(a<1)){var o=Ws(e,n,0,!0),s,c=[];if(Hh(r[0]?.barSize)){var l=!1,u=n/a,d=r.reduce((e,t)=>e+(t.barSize||0),0);d+=(a-1)*o,d>=n&&(d-=(a-1)*o,o=0),d>=n&&u>0&&(l=!0,u*=.9,d=a*u);var f={offset:Math.round((n-d)/2)-o,size:0};s=r.reduce((e,t)=>{var n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:f.offset+f.size+o,size:l?u:t.barSize??0}},r=[...e,n];return f=n.position,r},c)}else{var p=Ws(t,n,0,!0);n-2*p-(a-1)*o<=0&&(o=0);var m=(n-2*p-(a-1)*o)/a;m>1&&(m=Math.round(m));var h=Hh(i)?Math.min(m,i):m;s=r.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p+a*(m-h)/2+(h+o)*n,size:h}}],c)}return s}}var TP,EP=o((()=>{Js(),Wh(),TP=(e,t,n,r,i,a,o)=>{var s=Ks(o)?t:o,c=ble(n,r,i===a?a:i,e,s);return i!==a&&c!=null&&(c=c.map(e=>wP(wP({},e),{},{position:wP(wP({},e.position),{},{offset:e.position.offset-i/2})}))),c}})),DP,OP=o((()=>{ux(),DP=(e,t)=>{var n=lx(t);if(!(!e||n==null||t==null)){var r=t.stackId;if(r!=null){var i=e[r];if(i){var a=i.stackedData;if(a)return a.find(e=>e.key===n)}}}}})),kP,AP=o((()=>{kP=(e,t)=>{if(e!=null&&t!=null){var n=e.find(e=>e.stackId===t.stackId&&t.dataKey!=null&&e.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}}));function xle(e,t){return e&&typeof e==`object`&&`zIndex`in e&&typeof e.zIndex==`number`&&Hh(e.zIndex)?e.zIndex:t}var jP=o((()=>{Wh()})),MP,NP,PP=o((()=>{MP=u(p()),gj(),Yd(),Mg(),NP=e=>{var t=e.chartData,n=Gd(),r=jg();return(0,MP.useEffect)(()=>r?()=>{}:(n(hj(t)),()=>{n(hj(void 0))}),[t,n,r]),null}})),FP,IP,LP,RP=o((()=>{jh(),FP={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},IP=Zm({name:`brush`,initialState:FP,reducers:{setBrushSettings(e,t){return t.payload==null?FP:t.payload}}}),IP.actions.setBrushSettings,LP=IP.reducer}));function Sle(e){return(e%180+180)%180}var zP,BP=o((()=>{zP=function(e){var t=e.width,n=e.height,r=Sle(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)}})),VP,HP,UP,WP,GP=o((()=>{jh(),Om(),VP={dots:[],areas:[],lines:[]},HP=Zm({name:`referenceElements`,initialState:VP,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Lp(e).dots.findIndex(e=>e===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Lp(e).areas.findIndex(e=>e===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(Dm(t.payload))},removeLine:(e,t)=>{var n=Lp(e).lines.findIndex(e=>e===t.payload);n!==-1&&e.lines.splice(n,1)}}}),UP=HP.actions,UP.addDot,UP.removeDot,UP.addArea,UP.removeArea,UP.addLine,UP.removeLine,WP=HP.reducer}));function Cle(e,t){return Dle(e)||Ele(e,t)||Tle(e,t)||wle()}function wle(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tle(e,t){if(e){if(typeof e==`string`)return KP(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KP(e,t):void 0}}function KP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ele(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Dle(e){if(Array.isArray(e))return e}var qP,JP,YP,XP,ZP=o((()=>{qP=u(p()),JP=u(p()),Js(),vP(),YP=(0,JP.createContext)(void 0),XP=e=>{var t=e.children,n=Cle((0,JP.useState)(`${Us(`recharts`)}-clip`),1)[0],r=_P();if(r==null)return null;var i=r.x,a=r.y,o=r.width,s=r.height;return qP.createElement(YP.Provider,{value:n},qP.createElement(`defs`,null,qP.createElement(`clipPath`,{id:n},qP.createElement(`rect`,{x:i,y:a,height:s,width:o}))),t)}}));function Ole(){}var kle=o((()=>{}));function QP(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null?!1:Object.prototype.toString.call(e)===`[object Object]`}var Ale=o((()=>{}));function jle(e,t,n){return $P(e,t,void 0,void 0,void 0,void 0,n)}function $P(e,t,n,r,i,a,o){let s=o(e,t,n,r,i,a);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case`bigint`:case`string`:case`boolean`:case`symbol`:case`undefined`:return e===t;case`number`:return e===t||Object.is(e,t);case`function`:return e===t;case`object`:return eF(e,t,a,o)}return eF(e,t,a,o)}function eF(e,t,n,r){if(Object.is(e,t))return!0;let i=du(e),a=du(t);if(i===`[object Arguments]`&&(i=Tu),a===`[object Arguments]`&&(a=Tu),i!==a)return!1;switch(i){case mu:return e.toString()===t.toString();case hu:return Zu(e.valueOf(),t.valueOf());case gu:case yu:case vu:return Object.is(e.valueOf(),t.valueOf());case pu:return e.source===t.source&&e.flags===t.flags;case Cu:return e===t}n??=new Map;let o=n.get(e),s=n.get(t);if(o!=null&&s!=null)return o===t;n.set(e,t),n.set(t,e);try{switch(i){case bu:if(e.size!==t.size)return!1;for(let[i,a]of e.entries())if(!t.has(i)||!$P(a,t.get(i),i,e,t,n,r))return!1;return!0;case xu:{if(e.size!==t.size)return!1;let i=Array.from(e.values()),a=Array.from(t.values());for(let o=0;o<i.length;o++){let s=i[o],c=a.findIndex(i=>$P(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case Su:case Ou:case ku:case Au:case ju:case Mu:case Nu:case Pu:case Fu:case Iu:case Lu:case Ru:if(Hu(e)!==Hu(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!$P(e[i],t[i],i,e,t,n,r))return!1;return!0;case wu:return e.byteLength===t.byteLength&&eF(new Uint8Array(e),new Uint8Array(t),n,r);case Du:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:eF(new Uint8Array(e),new Uint8Array(t),n,r);case Eu:return e.name===t.name&&e.message===t.message;case Tu:{if(!(eF(e.constructor,t.constructor,n,r)||QP(e)&&QP(t)))return!1;let i=[...Object.keys(e),...lu(e)],a=[...Object.keys(t),...lu(t)];if(i.length!==a.length)return!1;for(let a=0;a<i.length;a++){let o=i[a],s=e[o];if(!Object.hasOwn(t,o))return!1;let c=t[o];if(!$P(s,c,o,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}var Mle=o((()=>{uu(),fu(),zu(),Uu(),Ale(),Qu()}));function Nle(e,t){return jle(e,t,Ole)}var Ple=o((()=>{kle(),Mle()})),Fle=o((()=>{Ple()}));function tF(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}var nF=o((()=>{}));function Ile(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return zP(r,n)}function Lle(e,t,n){var r=n===`width`,i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function rF(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function Rle(e,t){return tF(e,t+1)}var iF=o((()=>{BP(),nF()}));function zle(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:tF(r,l)};var a=c,d,f=()=>(d===void 0&&(d=n(t,a)),d),p=t.coordinate,m=c===0||rF(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function Ble(e,t,n,r,i){var a=(r||[]).slice().length;if(a===0)return[];for(var o=t.start,s=t.end,c=1;c<=a;c++){for(var l=(a-1)%c,u=o,d=!0,f=function(){var t=r[m];if(t==null)return 0;var a=m,o,c=()=>(o===void 0&&(o=n(t,a)),o),f=t.coordinate,p=m===l||rF(e,f,c,u,s);if(!p)return d=!1,1;p&&(u=f+e*(c()/2+i))},p,m=l;m<a&&(p=f(),p===0||p!==1);m+=c);if(d){for(var h=[],g=l;g<a;g+=c){var _=r[g];_!=null&&h.push(_)}return h}}return[]}var Vle=o((()=>{iF(),nF()}));function aF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?aF(Object(n),!0).forEach(function(t){Hle(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hle(e,t,n){return(t=Ule(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ule(e){var t=Wle(e,`string`);return typeof t==`symbol`?t:t+``}function Wle(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Gle(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,s=t.start,c=t.end,l=function(t){var r=a[t];if(r==null)return 1;var l=r,u,d=()=>(u===void 0&&(u=n(r,t)),u);if(t===o-1){var f=e*(l.coordinate+e*d()/2-c);a[t]=l=oF(oF({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else a[t]=l=oF(oF({},l),{},{tickCoord:l.coordinate});l.tickCoord!=null&&rF(e,l.tickCoord,d,s,c)&&(c=l.tickCoord-e*(d()/2+i),a[t]=oF(oF({},l),{},{isShow:!0}))},u=o-1;u>=0;u--)if(l(u))continue;return a}function Kle(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,c=t.start,l=t.end;if(a){var u=r[s-1];if(u!=null){var d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=oF(oF({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null&&rF(e,u.tickCoord,()=>d,c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=oF(oF({},u),{},{isShow:!0}))}}for(var p=a?s-1:s,m=function(t){var r=o[t];if(r==null)return 1;var a=r,s,u=()=>(s===void 0&&(s=n(r,t)),s);if(t===0){var d=e*(a.coordinate-e*u()/2-c);o[t]=a=oF(oF({},a),{},{tickCoord:d<0?a.coordinate-d*e:a.coordinate})}else o[t]=a=oF(oF({},a),{},{tickCoord:a.coordinate});a.tickCoord!=null&&rF(e,a.tickCoord,u,c,l)&&(c=a.tickCoord+e*(u()/2+i),o[t]=oF(oF({},a),{},{isShow:!0}))},h=0;h<p;h++)if(m(h))continue;return o}function qle(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(Bs(c)||$_.isSsr)return Rle(i,Bs(c)?c:0)??[];var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?Lj(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=(e,r)=>{var i=typeof l==`function`?l(e.value,r):e.value;return p===`width`?Ile(Lj(i,{fontSize:t,letterSpacing:n}),m,d):Lj(i,{fontSize:t,letterSpacing:n})[p]},g=i[0],_=i[1],v=i.length>=2&&g!=null&&_!=null?Ls(_.coordinate-g.coordinate):1,y=Lle(a,v,p);return c===`equidistantPreserveStart`?zle(v,y,h,i,o):c===`equidistantPreserveEnd`?Ble(v,y,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?Kle(v,y,h,i,o,c===`preserveStartEnd`):Gle(v,y,h,i,o),f.filter(e=>e.isShow))}var sF=o((()=>{Js(),Rj(),ev(),iF(),Vle()})),cF,Jle=o((()=>{cF=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,i=r===void 0?5:r,a=e.tickSize,o=a===void 0?0:a,s=e.tickMargin,c=s===void 0?0:s,l=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>l&&(l=t.width)}});var u=n?n.getBoundingClientRect().width:0,d=o+c,f=l+d+u+(n?i:0);return Math.round(f)}return 0}})),lF,Yle=o((()=>{lF=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,i=r===void 0?5:r,a=e.tickSize,o=a===void 0?0:a,s=e.tickMargin,c=s===void 0?0:s,l=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.height>l&&(l=t.height)}});var u=n?n.getBoundingClientRect().height:0,d=o+c,f=l+d+u+(n?i:0);return Math.round(f)}return 0}})),uF,dF,fF,pF,mF,hF,gF=o((()=>{jh(),Om(),uF={xAxis:{},yAxis:{}},dF=Zm({name:`renderedTicks`,initialState:uF,reducers:{setRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,i=n.axisId,a=n.ticks;e[r][i]=Dm(a)},removeRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,i=n.axisId;delete e[r][i]}}}),fF=dF.actions,pF=fF.setRenderedTicks,mF=fF.removeRenderedTicks,hF=dF.reducer}));function _F(e,t){return $le(e)||Qle(e,t)||Zle(e,t)||Xle()}function Xle(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zle(e,t){if(e){if(typeof e==`string`)return vF(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vF(e,t):void 0}}function vF(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qle(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function $le(e){if(Array.isArray(e))return e}function eue(e,t){if(e==null)return{};var n,r,i=tue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function yF(){return yF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yF.apply(null,arguments)}function bF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bF(Object(n),!0).forEach(function(t){nue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nue(e,t,n){return(t=rue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rue(e){var t=iue(e,`string`);return typeof t==`symbol`?t:t+``}function iue(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aue(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,o=e.mirror,s=e.axisLine,c=e.otherSvgProps;if(!s)return null;var l=xF(xF(xF({},c),Go(s)),{},{fill:`none`});if(a===`top`||a===`bottom`){var u=+(a===`top`&&!o||a===`bottom`&&o);l=xF(xF({},l),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(a===`left`&&!o||a===`right`&&o);l=xF(xF({},l),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return SF.createElement(`line`,yF({},l,{className:Ro(`recharts-cartesian-axis-line`,Ts(s,`className`))}))}function oue(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h=s?-1:1,g=e.tickSize||o,_=Bs(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case`top`:l=u=e.coordinate,f=n+ +!s*i,d=f-h*g,m=d-h*c,p=_;break;case`left`:d=f=e.coordinate,u=t+ +!s*r,l=u-h*g,p=l-h*c,m=_;break;case`right`:d=f=e.coordinate,u=t+ +s*r,l=u+h*g,p=l+h*c,m=_;break;default:l=u=e.coordinate,f=n+ +s*i,d=f+h*g,m=d+h*c,p=_}return{line:{x1:l,y1:d,x2:u,y2:f},tick:{x:p,y:m}}}function sue(e,t){switch(e){case`left`:return t?`start`:`end`;case`right`:return t?`end`:`start`;default:return`middle`}}function cue(e,t){switch(e){case`left`:case`right`:return`middle`;case`top`:return t?`start`:`end`;default:return t?`end`:`start`}}function lue(e){var t=e.option,n=e.tickProps,r=e.value,i,a=Ro(n.className,`recharts-cartesian-axis-tick-value`);if(SF.isValidElement(t))i=SF.cloneElement(t,xF(xF({},n),{},{className:a}));else if(typeof t==`function`)i=t(xF(xF({},n),{},{className:a}));else{var o=`recharts-cartesian-axis-tick-value`;typeof t!=`boolean`&&(o=Ro(o,xce(t))),i=SF.createElement(yM,yF({},n,{className:o}),r)}return i}function uue(e){var t=e.ticks,n=e.axisType,r=e.axisId,i=Gd(),a=(0,CF.useRef)(null);return(0,CF.useEffect)(()=>{if(r!=null&&n!=null){var e=t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index})),o=a.current;o!=null&&o.axisId===r&&o.axisType===n&&Nle(o.ticks,e)||(a.current={ticks:e,axisId:r,axisType:n},i(pF({ticks:e,axisId:r,axisType:n})))}},[i,t,r,n]),(0,CF.useEffect)(()=>r==null||n==null?Is:()=>{i(mF({axisId:r,axisType:n}))},[i,r,n]),null}var SF,CF,wF,TF,EF,DF,OF,kF=o((()=>{SF=u(p()),CF=u(p()),Os(),Fle(),zo(),fs(),bM(),UM(),Js(),zl(),sF(),Yo(),Jle(),Yle(),Kl(),ej(),Nb(),Sce(),gF(),Yd(),wF=[`axisLine`,`width`,`height`,`className`,`hide`,`ticks`,`axisType`,`axisId`],TF={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`,zIndex:Mb.axis},EF=(0,CF.forwardRef)((e,t)=>{var n=e.ticks,r=n===void 0?[]:n,i=e.tick,a=e.tickLine,o=e.stroke,s=e.tickFormatter,c=e.unit,l=e.padding,u=e.tickTextProps,d=e.orientation,f=e.mirror,p=e.x,m=e.y,h=e.width,g=e.height,_=e.tickSize,v=e.tickMargin,y=e.fontSize,b=e.letterSpacing,x=e.getTicksConfig,S=e.events,C=e.axisType,w=e.axisId,T=qle(xF(xF({},x),{},{ticks:r}),y,b),E=Go(x),D=Ko(i),O=rM(E.textAnchor)?E.textAnchor:sue(d,f),k=cue(d,f),A={};typeof a==`object`&&(A=a);var j=xF(xF({},E),{},{fill:`none`},A),M=T.map(e=>xF({entry:e},oue(e,p,m,h,g,d,_,f,v))),N=M.map(e=>{var t=e.entry,n=e.line;return SF.createElement(ds,{className:`recharts-cartesian-axis-tick`,key:`tick-${t.value}-${t.coordinate}-${t.tickCoord}`},a&&SF.createElement(`line`,yF({},j,n,{className:Ro(`recharts-cartesian-axis-tick-line`,Ts(a,`className`))})))}),P=M.map((e,t)=>{var n=e.entry,r=e.tick,a=xF(xF({},xF(xF(xF(xF({verticalAnchor:k},E),{},{textAnchor:O,stroke:`none`,fill:o},r),{},{index:t,payload:n,visibleTicksCount:T.length,tickFormatter:s,padding:l},u),{},{angle:u?.angle??E.angle??0})),D);return SF.createElement(ds,yF({className:`recharts-cartesian-axis-tick-label`,key:`tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`},Rl(S,n,t)),i&&SF.createElement(lue,{option:i,tickProps:a,value:`${typeof s==`function`?s(n.value,t):n.value}${c||``}`}))});return SF.createElement(`g`,{className:`recharts-cartesian-axis-ticks recharts-${C}-ticks`},SF.createElement(uue,{ticks:T,axisId:w,axisType:C}),P.length>0&&SF.createElement(QA,{zIndex:Mb.label},SF.createElement(`g`,{className:`recharts-cartesian-axis-tick-labels recharts-${C}-tick-labels`,ref:t},P)),N.length>0&&SF.createElement(`g`,{className:`recharts-cartesian-axis-tick-lines recharts-${C}-tick-lines`},N))}),DF=(0,CF.forwardRef)((e,t)=>{var n=e.axisLine,r=e.width,i=e.height,a=e.className,o=e.hide,s=e.ticks,c=e.axisType,l=e.axisId,u=eue(e,wF),d=_F((0,CF.useState)(``),2),f=d[0],p=d[1],m=_F((0,CF.useState)(``),2),h=m[0],g=m[1],_=(0,CF.useRef)(null);(0,CF.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>cF({ticks:_.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin}),getCalculatedHeight:()=>lF({ticks:_.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}));var v=(0,CF.useCallback)(e=>{if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`);_.current=t;var n=t[0];if(n){var r=window.getComputedStyle(n),i=r.fontSize,a=r.letterSpacing;(i!==f||a!==h)&&(p(i),g(a))}}},[f,h]);return o||r!=null&&r<=0||i!=null&&i<=0?null:SF.createElement(QA,{zIndex:e.zIndex},SF.createElement(ds,{className:Ro(`recharts-cartesian-axis`,a)},SF.createElement(aue,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Go(e)}),SF.createElement(EF,{ref:v,axisType:c,events:u,fontSize:f,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:l}),SF.createElement(jM,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},SF.createElement(gce,{label:e.label,labelRef:e.labelRef}),e.children)))}),OF=SF.forwardRef((e,t)=>{var n=Gl(e,TF);return SF.createElement(DF,yF({},n,{ref:t}))}),OF.displayName=`CartesianAxis`})),AF,jF,MF,due=o((()=>{jh(),AF=Zm({name:`errorBars`,initialState:{},reducers:{addErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.errorBar;e[r]||(e[r]=[]),e[r].push(i)},replaceErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.prev,a=n.next;e[r]&&(e[r]=e[r].map(e=>e.dataKey===i.dataKey&&e.direction===i.direction?a:e))},removeErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.errorBar;e[r]&&(e[r]=e[r].filter(e=>e.dataKey!==i.dataKey||e.direction!==i.direction))}}}),jF=AF.actions,jF.addErrorBar,jF.replaceErrorBar,jF.removeErrorBar,MF=AF.reducer}));function fue(e,t){if(e==null)return{};var n,r,i=pue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mue(e){var t=e.children,n=fue(e,FF);return NF.createElement(IF.Provider,{value:n},t)}var NF,PF,FF,IF,LF=o((()=>{NF=u(p()),PF=u(p()),FF=[`children`],IF=(0,PF.createContext)({data:[],xAxisId:`xAxis-0`,yAxisId:`yAxis-0`,dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0})}));function RF(e,t){var n=Vd(t=>DE(t,e)),r=Vd(e=>AE(e,t)),i=n?.allowDataOverflow??TE.allowDataOverflow,a=r?.allowDataOverflow??OE.allowDataOverflow;return{needClip:i||a,needClipX:i,needClipY:a}}function hue(e){var t=e.xAxisId,n=e.yAxisId,r=e.clipPathId,i=_P(),a=RF(t,n),o=a.needClipX,s=a.needClipY,c=a.needClip,l=Vd(e=>JD(e,t,!1)),u=Vd(e=>YD(e,n,!1));if(!c||!i)return null;var d=i.x,f=i.y,p=i.width,m=i.height,h=o&&l?Math.min(l[0],l[1]):d-p/2,g=s&&u?Math.min(u[0],u[1]):f-m/2,_=o&&l?Math.abs(l[1]-l[0]):p*2,v=s&&u?Math.abs(u[1]-u[0]):m*2;return zF.createElement(`clipPath`,{id:`clipPath-${r}`},zF.createElement(`rect`,{x:h,y:g,width:_,height:v}))}var zF,BF=o((()=>{zF=u(p()),Yd(),AO(),vP()}));function VF(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.xAxisId??0}function HF(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.yAxisId??0}var UF=o((()=>{mP()}));function gue(e,t){if(!e)throw Error(WF)}var WF,_ue=o((()=>{WF=`Invariant failed`}));function vue(e,t){if(e==null)return{};var n,r,i=yue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function GF(e){var t=e.option,n=vue(e,qF);return KF.createElement(Nce,{option:t,DefaultShape:JF,shapeProps:n,activeClassName:`recharts-active-bar`,inActiveClassName:`recharts-inactive-bar`})}var KF,qF,JF,YF,bue=o((()=>{KF=u(p()),_ue(),ky(),vN(),Js(),qF=[`option`],JF=Oy,YF=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,r)=>{if(Bs(e))return e;var i=Bs(n)||Ks(n);return i?e(n,r):(!i&&gue(!1,`minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`),t)}}})),XF,ZF,QF,$F,eI,tI,nI,rI,iI,aI,oI,sI,cI,lI,uI,dI,fI,pI,mI,xue=o((()=>{df(),AO(),Js(),dg(),GI(),g_(),$y(),Og(),jb(),SP(),EP(),OP(),UF(),AP(),XF=(e,t,n)=>n,ZF=(e,t)=>t,QF=B([LE,ZF],(e,t)=>e.filter(e=>e.type===`bar`).find(e=>e.id===t)),$F=B([QF],e=>e?.maxBarSize),eI=(e,t,n,r)=>r,tI=B([u_,LE,VF,HF,XF],(e,t,n,r,i)=>t.filter(t=>e===`horizontal`?t.xAxisId===n:t.yAxisId===r).filter(e=>e.isPanorama===i).filter(e=>e.hide===!1).filter(e=>e.type===`bar`)),nI=(e,t,n)=>{var r=u_(e),i=VF(e,t),a=HF(e,t);if(i!=null&&a!=null)return r===`horizontal`?rD(e,`yAxis`,a,n):rD(e,`xAxis`,i,n)},rI=(e,t)=>{var n=u_(e),r=VF(e,t),i=HF(e,t);if(r!=null&&i!=null)return n===`horizontal`?vO(e,`xAxis`,r):vO(e,`yAxis`,i)},iI=B([tI,wb,rI],xP),aI=(e,t,n)=>{var r=QF(e,t);if(r==null)return 0;var i=VF(e,t),a=HF(e,t);if(i==null||a==null)return 0;var o=u_(e),s=xb(e),c=r.maxBarSize,l=Ks(c)?s:c,u,d;return o===`horizontal`?(u=TO(e,`xAxis`,i,n),d=wO(e,`xAxis`,i,n)):(u=TO(e,`yAxis`,a,n),d=wO(e,`yAxis`,a,n)),cg(u,d,!0)??l??0},oI=(e,t,n)=>{var r=u_(e),i=VF(e,t),a=HF(e,t);if(i!=null&&a!=null){var o,s;return r===`horizontal`?(o=TO(e,`xAxis`,i,n),s=wO(e,`xAxis`,i,n)):(o=TO(e,`yAxis`,a,n),s=wO(e,`yAxis`,a,n)),cg(o,s)}},sI=B([iI,xb,Sb,Cb,aI,oI,$F],TP),cI=(e,t,n)=>{var r=VF(e,t);if(r!=null)return TO(e,`xAxis`,r,n)},lI=(e,t,n)=>{var r=HF(e,t);if(r!=null)return TO(e,`yAxis`,r,n)},uI=(e,t,n)=>{var r=VF(e,t);if(r!=null)return wO(e,`xAxis`,r,n)},dI=(e,t,n)=>{var r=HF(e,t);if(r!=null)return wO(e,`yAxis`,r,n)},fI=B([sI,QF],kP),pI=B([nI,QF],DP),mI=B([Tg,Dg,cI,lI,uI,dI,fI,u_,Xy,oI,pI,QF,eI],(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{var p=c.chartData,m=c.dataStartIndex,h=c.dataEndIndex;if(!(d==null||o==null||t==null||s!==`horizontal`&&s!==`vertical`||n==null||r==null||i==null||a==null||l==null)){var g=d.data,_=g!=null&&g.length>0?g:p?.slice(m,h+1);if(_!=null)return Bue({layout:s,barSettings:d,pos:o,parentViewBox:t,bandSize:l,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:_,offset:e,cells:f,dataStartIndex:m})}})}));function hI(){return hI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hI.apply(null,arguments)}function Sue(e,t){if(e==null)return{};var n,r,i=Cue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var gI,_I,vI,yI,bI,xI,SI,CI,wI=o((()=>{gI=u(p()),_I=u(p()),dg(),fs(),vI=[`index`],yI=(0,_I.createContext)(void 0),bI=e=>{var t=(0,_I.useContext)(yI);if(t!=null)return t.stackId;if(e!=null)return _ee(e)},xI=(e,t)=>`recharts-bar-stack-clip-path-${e}-${t}`,SI=e=>{var t=(0,_I.useContext)(yI);if(t!=null){var n=t.stackId;return`url(#${xI(n,e)})`}},CI=e=>{var t=e.index,n=Sue(e,vI),r=SI(t);return gI.createElement(ds,hI({className:`recharts-bar-stack-layer`,clipPath:r},n))}}));function TI(e,t){return Due(e)||Eue(e,t)||Tue(e,t)||wue()}function wue(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tue(e,t){if(e){if(typeof e==`string`)return EI(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?EI(e,t):void 0}}function EI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Eue(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Due(e){if(Array.isArray(e))return e}function DI(){return DI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DI.apply(null,arguments)}function OI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OI(Object(n),!0).forEach(function(t){Oue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Oue(e,t,n){return(t=kue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kue(e){var t=Aue(e,`string`);return typeof t==`symbol`?t:t+``}function Aue(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function AI(e,t){if(e==null)return{};var n,r,i=jue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Mue(e){var t=Vd(lA),n=e.data,r=e.dataKey,i=e.background,a=e.allOtherBarProps,o=a.onMouseEnter,s=a.onMouseLeave,c=a.onClick,l=AI(a,NI),u=yN(o,r,a.id),d=bN(s),f=xN(c,r,a.id);if(!i||n==null)return null;var p=Ko(i);return jI.createElement(QA,{zIndex:xle(i,Mb.barBackground)},n.map((e,n)=>{e.value;var a=e.background;e.tooltipPosition;var o=AI(e,PI);if(!a)return null;var s=u(e,e.originalDataIndex),c=d(e,e.originalDataIndex),m=f(e,e.originalDataIndex),h=kI(kI(kI(kI(kI({option:i,isActive:String(e.originalDataIndex)===t},o),{},{fill:`#eee`},a),p),Rl(l,e,n)),{},{onMouseEnter:s,onMouseLeave:c,onClick:m,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return jI.createElement(GF,DI({key:`background-bar-${n}`},h))}))}function Nue(e){var t=e.showLabels,n=e.children,r=e.rects?.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return kI(kI({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return jI.createElement($M,{value:t?r:void 0},n)}function Pue(e){var t=e.shape,n=e.activeBar,r=e.baseProps,i=e.entry,a=e.index,o=e.dataKey,s=Vd(lA),c=Vd(dA),l=n&&String(i.originalDataIndex)===s&&(c==null||o===c),u=s!=null&&(String(i.originalDataIndex)!==s||c!=null&&o!==c),d=TI((0,MI.useState)(!1),2),f=d[0],p=d[1],m=TI((0,MI.useState)(!1),2),h=m[0],g=m[1];(0,MI.useEffect)(()=>{var e;return l?(p(!0),e=requestAnimationFrame(()=>{g(!0)})):(g(!1),u&&p(!1)),()=>{cancelAnimationFrame(e)}},[l,u]);var _=(0,MI.useCallback)(()=>{l||p(!1)},[l]),v=l&&h,y=l||f,b=l?n===!0?t:n:t,x=jI.createElement(GF,DI({},r,{name:String(r.name)},i,{isActive:v,option:b,index:a,dataKey:o,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance,onTransitionEnd:_}));return y?jI.createElement(QA,{zIndex:Mb.activeBar},jI.createElement(CI,{index:i.originalDataIndex},x)):x}function Fue(e){var t=e.shape,n=e.baseProps,r=e.entry,i=e.index,a=e.dataKey;return jI.createElement(GF,DI({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a,animationElapsedTime:e.animationElapsedTime,isAnimating:e.isAnimating,isEntrance:e.isEntrance}))}function Iue(e){var t=e.data,n=e.props,r=e.animationElapsedTime,i=e.isAnimating,a=e.isEntrance,o=Go(n)??{},s=o.id,c=AI(o,FI),l=n.shape,u=n.dataKey,d=n.activeBar,f=n.onMouseEnter,p=n.onClick,m=n.onMouseLeave,h=AI(n,II),g=yN(f,u,s),_=bN(m),v=xN(p,u,s);return t?jI.createElement(jI.Fragment,null,t.map((e,t)=>jI.createElement(CI,DI({index:e.originalDataIndex,key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className:`recharts-bar-rectangle`},Rl(h,e,t),{onMouseEnter:g(e,e.originalDataIndex),onMouseLeave:_(e,e.originalDataIndex),onClick:v(e,e.originalDataIndex)}),d?jI.createElement(Pue,{shape:l,activeBar:d,baseProps:c,entry:e,index:t,dataKey:u,animationElapsedTime:r,isAnimating:i,isEntrance:a}):jI.createElement(Fue,{shape:l,baseProps:c,entry:e,index:t,dataKey:u,animationElapsedTime:r,isAnimating:i,isEntrance:a})))):null}function Lue(e){var t=e.props,n=e.previousRectanglesRef,r=t.data,i=t.isAnimationActive,a=t.animationBegin,o=t.animationDuration,s=t.animationEasing,c=t.animationInterpolateFn,l=t.layout,u=Qce(t.onAnimationStart,t.onAnimationEnd),d=u.isAnimating,f=u.handleAnimationStart,p=u.handleAnimationEnd;return jI.createElement(Nue,{showLabels:!d,rects:r},jI.createElement($ce,{animationInput:r,animationIdPrefix:`recharts-bar-`,items:r,previousItemsRef:n,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,onAnimationStart:f,onAnimationEnd:p,animationInterpolateFn:c,animationMatchBy:t.animationMatchBy,layout:l},(e,n,r)=>jI.createElement(ds,null,jI.createElement(Iue,{props:t,data:e,animationElapsedTime:n,isAnimating:d||n<1,isEntrance:r}))),jI.createElement(bce,{label:t.label}),t.children)}function Rue(e){var t=(0,MI.useRef)(null);return jI.createElement(Lue,{previousRectanglesRef:t,props:e})}function zue(e){var t=e.xAxisId,n=e.yAxisId,r=e.hide,i=e.legendType,a=e.minPointSize,o=e.activeBar,s=e.animationBegin,c=e.animationDuration,l=e.animationEasing,u=e.isAnimationActive,d=RF(t,n).needClip,f=d_(),p=jg(),m=Tce(e.children,Oj),h=Vd(t=>mI(t,e.id,p,m));if(f!==`vertical`&&f!==`horizontal`)return null;var g,_=h?.[0];return g=_==null||_.height==null||_.width==null?0:f===`vertical`?_.height/2:_.width/2,jI.createElement(mue,{xAxisId:t,yAxisId:n,data:h,dataPointFormatter:VI,errorBarOffset:g},jI.createElement(HI,DI({},e,{layout:f,needClip:d,data:h,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u})))}function Bue(e){var t=e.layout,n=e.barSettings,r=n.dataKey,i=n.minPointSize,a=n.hasCustomShape,o=e.pos,s=e.bandSize,c=e.xAxis,l=e.yAxis,u=e.xAxisTicks,d=e.yAxisTicks,f=e.stackedData,p=e.displayedData,m=e.offset,h=e.cells,g=e.parentViewBox,_=e.dataStartIndex,v=t===`horizontal`?l:c,y=f?v.scale.domain():null,b=ng({numericAxis:v}),x=v.scale.map(b);return p.map((e,n)=>{var p,v,S,C,w,T;if(f){var E=f[n+_];if(E==null)return null;p=Xh(E,y)}else p=qh(e,r),Array.isArray(p)||(p=[b,p]);var D=YF(i,BI)(p[1],n);if(t===`horizontal`){var O=l.scale.map(p[0]),k=l.scale.map(p[1]);if(O==null||k==null)return null;v=tg({axis:c,ticks:u,bandSize:s,offset:o.offset,entry:e,index:n}),S=k??O??void 0,C=o.size;var A=O-k;if(w=Rs(A)?0:A,T={x:v,y:m.top,width:C,height:m.height},Math.abs(D)>0&&Math.abs(w)<Math.abs(D)){var j=Ls(w||D)*(Math.abs(D)-Math.abs(w));S-=j,w+=j}}else{var M=c.scale.map(p[0]),N=c.scale.map(p[1]);if(M==null||N==null)return null;if(v=M,S=tg({axis:l,ticks:d,bandSize:s,offset:o.offset,entry:e,index:n}),C=N-M,w=o.size,T={x:m.left,y:S,width:m.width,height:w},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var P=Ls(C||D)*(Math.abs(D)-Math.abs(C));C+=P}}return v==null||S==null||C==null||w==null||!a&&(C===0||w===0)?null:kI(kI({},e),{},{stackedBarStart:x,x:v,y:S,width:C,height:w,value:f?p:p[1],payload:e,background:T,tooltipPosition:{x:v+C/2,y:S+w/2},parentViewBox:g,originalDataIndex:n},h&&h[n]&&h[n].props)}).filter(Boolean)}function Vue(e){var t=Gl(e,UI),n=bI(t.stackId),r=jg();return jI.createElement(KN,{id:t.id,type:`bar`},e=>jI.createElement(jI.Fragment,null,jI.createElement(Fce,{legendPayload:LI(t)}),jI.createElement(RI,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:e}),jI.createElement(rP,{type:`bar`,id:e,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null&&t.shape!==JF}),jI.createElement(QA,{zIndex:t.zIndex},jI.createElement(zue,DI({},t,{id:e})))))}var jI,MI,NI,PI,FI,II,LI,RI,zI,BI,VI,HI,UI,WI,GI=o((()=>{jI=u(p()),MI=u(p()),zo(),fs(),kj(),tN(),Js(),fN(),dg(),zl(),bue(),SN(),wN(),LF(),BF(),g_(),xue(),Yd(),Mg(),vA(),EN(),Kl(),qN(),iP(),Yo(),LN(),jN(),ej(),Nb(),jP(),B_(),wI(),NI=[`onMouseEnter`,`onMouseLeave`,`onClick`],PI=[`value`,`background`,`tooltipPosition`],FI=[`id`],II=[`onMouseEnter`,`onClick`,`onMouseLeave`],LI=e=>{var t=e.dataKey,n=e.name,r=e.fill,i=e.legendType;return[{inactive:e.hide,dataKey:t,type:i,color:r,value:yee(n,t),payload:e}]},RI=jI.memo(e=>{var t=e.dataKey,n=e.stroke,r=e.strokeWidth,i=e.fill,a=e.name,o=e.hide,s=e.unit,c=e.formatter,l=e.tooltipType,u=e.id,d={dataDefinedOnItem:void 0,getPosition:Is,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:yee(a,t),hide:o,type:l,color:i,unit:s,formatter:c,graphicalItemId:u}};return jI.createElement(Pce,{tooltipEntrySettings:d})}),zI=(e,t,n)=>e==null?[]:t===1?e.flatMap(e=>e.status===`removed`?[]:[e.next]):e.flatMap(e=>{if(e.status===`removed`)return n===`horizontal`?[kI(kI({},e.prev),{},{height:Ns(e.prev.height,0,t),y:Ns(e.prev.y,e.prev.y+e.prev.height,t)})]:[kI(kI({},e.prev),{},{width:Ns(e.prev.width,0,t)})];if(e.status===`matched`)return[kI(kI({},e.next),{},{x:Ns(e.prev.x,e.next.x,t),y:Ns(e.prev.y,e.next.y,t),width:Ns(e.prev.width,e.next.width,t),height:Ns(e.prev.height,e.next.height,t)})];var r=e.next;return n===`horizontal`?[kI(kI({},r),{},{height:Ns(0,r.height,t),y:Ns(r.stackedBarStart,r.y,t)})]:[kI(kI({},r),{},{width:Ns(0,r.width,t),x:Ns(r.stackedBarStart,r.x,t)})]}),BI=0,VI=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:qh(e,t)}},HI=class extends MI.PureComponent{render(){var e=this.props,t=e.hide,n=e.data,r=e.dataKey,i=e.className,a=e.xAxisId,o=e.yAxisId,s=e.needClip,c=e.background,l=e.id;if(t||n==null)return null;var u=Ro(`recharts-bar`,i),d=l;return jI.createElement(ds,{className:u,id:l},s&&jI.createElement(`defs`,null,jI.createElement(hue,{clipPathId:d,xAxisId:a,yAxisId:o})),jI.createElement(ds,{className:`recharts-bar-rectangles`,clipPath:s?`url(#clipPath-${d})`:void 0},jI.createElement(Mue,{data:n,dataKey:r,background:c,allOtherBarProps:this.props}),jI.createElement(Rue,this.props)))}},UI={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:`ease`,animationInterpolateFn:zI,animationMatchBy:AN,background:!1,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`rect`,minPointSize:BI,shape:JF,xAxisId:0,yAxisId:0,zIndex:Mb.bar},WI=jI.memo(Vue,R_),WI.displayName=`Bar`}));function KI(e,t){if(e==null)return{};var n,r,i=Hue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Hue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qI(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function Uue(e,t){if(e===t)return!0;var n=e.domain,r=e.range,i=KI(e,JI),a=t.domain,o=t.range,s=KI(t,YI);return!qI(n,a)||!qI(r,o)?!1:R_(i,s)}var JI,YI,XI=o((()=>{B_(),JI=[`domain`,`range`],YI=[`domain`,`range`]}));function ZI(){return ZI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZI.apply(null,arguments)}function QI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?QI(Object(n),!0).forEach(function(t){Wue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wue(e,t,n){return(t=Gue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gue(e){var t=Kue(e,`string`);return typeof t==`symbol`?t:t+``}function Kue(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function eL(e,t){if(e==null)return{};var n,r,i=que(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function que(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Jue(e){var t=Gd(),n=(0,nL.useRef)(null),r=f_(),i=e.type,a=eL(e,rL),o=Bb(r,`xAxis`,i),s=(0,nL.useMemo)(()=>{if(o!=null)return $I($I({},a),{},{type:o})},[a,o]);return(0,nL.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(lP(s)):n.current!==s&&t(uP({prev:n.current,next:s})),n.current=s)},[s,t]),(0,nL.useLayoutEffect)(()=>()=>{n.current&&=(t(dP(n.current)),null)},[t]),null}var tL,nL,rL,iL,aL,oL,sL,cL,lL,Yue=o((()=>{tL=u(p()),nL=u(p()),zo(),kF(),Yd(),mP(),AO(),Og(),Mg(),UM(),Kl(),XI(),g_(),Vb(),rL=[`type`],iL=[`dangerouslySetInnerHTML`,`ticks`,`scale`],aL=[`id`,`scale`],oL=e=>{var t=e.xAxisId,n=e.className,r=e.height,i=e.label,a=(0,nL.useRef)(null),o=(0,nL.useRef)(null),s=Vd(Dg),c=jg(),l=Gd(),u=`xAxis`,d=Vd(e=>SO(e,u,t,c)),f=Vd(e=>lO(e,t)),p=Vd(e=>hO(e,t)),m=Vd(e=>EE(e,t));if((0,nL.useLayoutEffect)(()=>{if(!(r!==`auto`||!f||IM(i)||(0,nL.isValidElement)(i)||m==null)){var e=a.current;if(e){var n=e.getCalculatedHeight();Math.round(f.height)!==Math.round(n)&&l(fP({id:t,height:n}))}}},[d,f,l,i,t,r,m]),f==null||p==null||m==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var h=eL(e,iL);m.id,m.scale;var g=eL(m,aL);return tL.createElement(OF,ZI({},h,g,{ref:a,labelRef:o,x:p.x,y:p.y,width:f.width,height:f.height,className:Ro(`recharts-${u} ${u}`,n),viewBox:s,ticks:d,axisType:u,axisId:t}))},sL={allowDataOverflow:TE.allowDataOverflow,allowDecimals:TE.allowDecimals,allowDuplicatedCategory:TE.allowDuplicatedCategory,angle:TE.angle,axisLine:TF.axisLine,height:TE.height,hide:!1,includeHidden:TE.includeHidden,interval:TE.interval,label:!1,minTickGap:TE.minTickGap,mirror:TE.mirror,orientation:TE.orientation,padding:TE.padding,reversed:TE.reversed,scale:TE.scale,tick:TE.tick,tickCount:TE.tickCount,tickLine:TF.tickLine,tickSize:TF.tickSize,type:TE.type,niceTicks:TE.niceTicks,xAxisId:0},cL=e=>{var t=Gl(e,sL);return tL.createElement(tL.Fragment,null,tL.createElement(Jue,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),tL.createElement(oL,t))},lL=tL.memo(cL,Uue),lL.displayName=`XAxis`})),uL,dL,fL=o((()=>{df(),g_(),vA(),Og(),GA(),ix(),bx(),uL=(e,t)=>t,dL=B([uL,u_,rx,yx,Qk,iA,MA,Tg],WA)}));function Xue(e){return`getBBox`in e.currentTarget&&typeof e.currentTarget.getBBox==`function`}function pL(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(Xue(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(e,i)=>({relativeX:Math.round((e-t.left)/n),relativeY:Math.round((i-t.top)/r)});return`touches`in e?Array.from(e.touches).map(e=>o(e.clientX,e.clientY)):o(e.clientX,e.clientY)}var mL=o((()=>{})),hL,gL,_L,vL,yL,bL,xL,SL=o((()=>{jh(),nk(),fL(),FO(),mL(),hL=Mm(`mouseClick`),gL=Ah(),gL.startListening({actionCreator:hL,effect:(e,t)=>{var n=e.payload,r=dL(t.getState(),pL(n));r?.activeIndex!=null&&t.dispatch(QO({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}}),_L=Mm(`mouseMove`),vL=Ah(),yL=null,bL=null,xL=null,vL.startListening({actionCreator:_L,effect:(e,t)=>{var n=e.payload,r=t.getState().eventSettings,i=r.throttleDelay,a=r.throttledEvents,o=a===`all`||a?.includes(`mousemove`);yL!==null&&(cancelAnimationFrame(yL),yL=null),bL!==null&&(typeof i!=`number`||!o)&&(clearTimeout(bL),bL=null),xL=pL(n);var s=()=>{var e=t.getState(),n=MO(e,e.tooltip.settings.shared);if(!xL){yL=null,bL=null;return}if(n===`axis`){var r=dL(e,xL);r?.activeIndex==null?t.dispatch(YO()):t.dispatch(ZO({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}yL=null,bL=null};if(!o){s();return}i===`raf`?yL=requestAnimationFrame(s):typeof i==`number`&&bL===null&&(bL=setTimeout(s,i))}})}));function Zue(e,t){return t instanceof HTMLElement?`HTMLElement <${t.tagName} class="${t.className}">`:t===window?`global.window`:e===`children`&&typeof t==`object`&&t?`<<CHILDREN>>`:t}var Que=o((()=>{})),CL,wL,TL,EL,DL=o((()=>{jh(),CL={accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:`none`,syncId:void 0,syncMethod:`index`,baseValue:void 0,reverseStackOrder:!1},wL=Zm({name:`rootProps`,initialState:CL,reducers:{updateOptions:(e,t)=>{e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=t.payload.barGap??CL.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),TL=wL.reducer,EL=wL.actions.updateOptions})),OL,kL,AL=o((()=>{jh(),OL=Zm({name:`polarOptions`,initialState:null,reducers:{updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),OL.actions.updatePolarOptions,kL=OL.reducer})),jL,ML,NL,PL,FL,IL,LL,RL=o((()=>{jh(),nk(),vA(),GA(),AO(),ck(),FO(),jL=Mm(`keyDown`),ML=Mm(`focus`),NL=Mm(`blur`),PL=Ah(),FL=null,IL=null,LL=null,PL.startListening({actionCreator:jL,effect:(e,t)=>{LL=e.payload,FL!==null&&(cancelAnimationFrame(FL),FL=null);var n=t.getState().eventSettings,r=n.throttleDelay,i=n.throttledEvents,a=i===`all`||i.includes(`keydown`);IL!==null&&(typeof r!=`number`||!a)&&(clearTimeout(IL),IL=null);var o=()=>{try{var e=t.getState();if(e.rootProps.accessibilityLayer===!1)return;var n=e.tooltip.keyboardInteraction,r=LL;if(r!==`ArrowRight`&&r!==`ArrowLeft`&&r!==`Enter`)return;var i=sk(n,kk(e),eD(e),Jk(e)),a=i==null?-1:Number(i),o=!Number.isFinite(a)||a<0,s=iA(e),c=kk(e),l=MO(e,e.tooltip.settings.shared);if(r===`Enter`){if(o)return;var u=LA(e,l,`hover`,String(n.index));t.dispatch(ek({active:!n.active,activeIndex:n.index,activeCoordinate:u}));return}var d=OO(e)===`left-to-right`?1:-1,f=r===`ArrowRight`?1:-1,p;if(o){var m=eD(e),h=Jk(e),g=f*d,_=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(p=-1,g>0){for(var v=0;v<c.length;v++)if(sk(_(v),c,m,h)!=null){p=v;break}}else for(var y=c.length-1;y>=0;y--)if(sk(_(y),c,m,h)!=null){p=y;break}if(p<0)return}else{p=a+f*d;var b=s?.length||c.length;if(b===0||p>=b||p<0)return}var x=LA(e,l,`hover`,String(p));t.dispatch(ek({active:!0,activeIndex:p.toString(),activeCoordinate:x}))}finally{FL=null,IL=null}};if(!a){o();return}r===`raf`?FL=requestAnimationFrame(o):typeof r==`number`&&IL===null&&(o(),LL=null,IL=setTimeout(()=>{LL?o():(IL=null,FL=null)},r))}}),PL.startListening({actionCreator:ML,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var r=n.tooltip.keyboardInteraction;if(!r.active&&r.index==null){var i=`0`,a=MO(n,n.tooltip.settings.shared),o=LA(n,a,`hover`,String(i));t.dispatch(ek({active:!0,activeIndex:i,activeCoordinate:o}))}}}}),PL.startListening({actionCreator:NL,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var r=n.tooltip.keyboardInteraction;r.active&&t.dispatch(ek({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}})}));function zL(e){e.persist();var t=e.currentTarget;return new Proxy(e,{get:(e,n)=>{if(n===`currentTarget`)return t;var r=Reflect.get(e,n);return typeof r==`function`?r.bind(e):r}})}var BL=o((()=>{})),VL,HL,UL,WL,GL,KL=o((()=>{jh(),vA(),BL(),VL=Mm(`externalEvent`),HL=Ah(),UL=new Map,WL=new Map,GL=new Map,HL.startListening({actionCreator:VL,effect:(e,t)=>{var n=e.payload,r=n.handler,i=n.reactEvent;if(r!=null){var a=i.type,o=zL(i);GL.set(a,{handler:r,reactEvent:o});var s=UL.get(a);s!==void 0&&(cancelAnimationFrame(s),UL.delete(a));var c=t.getState().eventSettings,l=c.throttleDelay,u=c.throttledEvents,d=u===`all`||u?.includes(a),f=WL.get(a);f!==void 0&&(typeof l!=`number`||!d)&&(clearTimeout(f),WL.delete(a));var p=()=>{var e=GL.get(a);try{if(!e)return;var n=e.handler,r=e.reactEvent,i=t.getState(),o={activeCoordinate:hA(i),activeDataKey:dA(i),activeIndex:lA(i),activeLabel:uA(i),activeTooltipIndex:lA(i),isTooltipActive:gA(i)};n&&n(o,r)}finally{UL.delete(a),WL.delete(a),GL.delete(a)}};if(!d){p();return}if(l===`raf`){var m=requestAnimationFrame(p);UL.set(a,m)}else if(typeof l==`number`){if(!WL.has(a)){p();var h=setTimeout(p,l);WL.set(a,h)}}else p()}}})})),qL,JL,$ue=o((()=>{df(),gk(),qL=B([hk],e=>e.tooltipItemPayloads),JL=B([qL,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(e=>e.settings.graphicalItemId===n);if(r!=null){var i=r.getPosition;if(i!=null)return i(t)}}})})),YL,XL,ZL,QL,$L,eR,tR=o((()=>{jh(),nk(),fL(),mL(),FO(),xg(),$ue(),vA(),BL(),YL=Mm(`touchMove`),XL=Ah(),ZL=null,QL=null,$L=null,eR=null,XL.startListening({actionCreator:YL,effect:(e,t)=>{var n=e.payload;if(n.touches!=null&&n.touches.length!==0){eR=zL(n);var r=t.getState().eventSettings,i=r.throttleDelay,a=r.throttledEvents,o=a===`all`||a.includes(`touchmove`);ZL!==null&&(cancelAnimationFrame(ZL),ZL=null),QL!==null&&(typeof i!=`number`||!o)&&(clearTimeout(QL),QL=null),$L=Array.from(n.touches).map(e=>pL({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var s=()=>{if(eR!=null){var e=t.getState(),n=MO(e,e.tooltip.settings.shared);if(n===`axis`){var r=$L?.[0];if(r==null){ZL=null,QL=null;return}var i=dL(e,r);i?.activeIndex!=null&&t.dispatch(ZO({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(n===`item`){var a=eR.touches[0];if(document.elementFromPoint==null||a==null)return;var o=document.elementFromPoint(a.clientX,a.clientY);if(!o||!o.getAttribute)return;var s=o.getAttribute(bg),c=o.getAttribute(`data-recharts-item-id`)??void 0,l=Tk(e).find(e=>e.id===c);if(s==null||l==null||c==null)return;var u=l.dataKey,d=JL(e,s,c);t.dispatch(qO({activeDataKey:u,activeIndex:s,activeCoordinate:d,activeGraphicalItemId:c}))}ZL=null,QL=null}};if(!o){s();return}i===`raf`?ZL=requestAnimationFrame(s):typeof i==`number`&&QL===null&&(s(),eR=null,QL=setTimeout(()=>{eR?s():(QL=null,ZL=null)},i))}}})})),nR,rR,iR,aR,oR=o((()=>{jh(),Om(),nR={throttleDelay:`raf`,throttledEvents:[`mousemove`,`touchmove`,`pointermove`,`scroll`,`wheel`]},rR=Zm({name:`eventSettings`,initialState:nR,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=Dm(t.payload.throttledEvents))}}}),iR=rR.actions.setEventSettings,aR=rR.reducer})),sR,cR,ede=o((()=>{jh(),fj(),nk(),gj(),zh(),SL(),Que(),mP(),eP(),GP(),RP(),C_(),DL(),aN(),AL(),RL(),KL(),tR(),due(),ev(),ZA(),oR(),gF(),sR=Xf({brush:LP,cartesianAxis:pP,chartData:pse,errorBars:MF,eventSettings:aR,graphicalItems:$N,layout:Rh,legend:S_,options:sse,polarAxis:iN,polarOptions:kL,referenceElements:WP,renderedTicks:hF,rootProps:TL,tooltip:tk,zIndex:Woe}),cR=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Chart`;return ree({reducer:sR,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:![`commonjs`,`es6`,`production`].includes(`es6`)}).concat([gL.middleware,vL.middleware,PL.middleware,HL.middleware,XL.middleware]),enhancers:e=>{var t=e;return typeof e==`function`&&(t=e()),t.concat(Km({type:`raf`}))},devTools:$_.devToolsEnabled&&{serialize:{replacer:Zue},name:`recharts-${t}`}})}}));function tde(e){var t=e.preloadedState,n=e.children,r=e.reduxStoreName,i=jg(),a=(0,uR.useRef)(null);if(i)return n;a.current??=cR(t,r);var o=zd;return lR.createElement(I_,{context:o,store:a.current},n)}var lR,uR,dR=o((()=>{lR=u(p()),uR=u(p()),L_(),ede(),Mg(),Bd()}));function nde(e){var t=e.layout,n=e.margin,r=Gd(),i=jg();return(0,fR.useEffect)(()=>{i||(r(Fh(t)),r(Ph(n)))},[r,i,t,n]),null}var fR,pR,mR=o((()=>{fR=u(p()),Mg(),zh(),Yd(),B_(),pR=(0,fR.memo)(nde,R_)}));function rde(e){var t=Gd();return(0,hR.useEffect)(()=>{t(EL(e))},[t,e]),null}var hR,gR=o((()=>{hR=u(p()),DL(),Yd()})),_R,vR,yR,bR=o((()=>{_R=u(p()),Yd(),oR(),B_(),vR=e=>{var t=Gd();return(0,_R.useEffect)(()=>{t(iR(e))},[t,e]),null},yR=(0,_R.memo)(vR,R_)}));function xR(e){var t=e.zIndex,n=e.isPanorama,r=(0,wR.useRef)(null),i=Gd();return(0,wR.useLayoutEffect)(()=>(r.current&&i(Hoe({zIndex:t,element:r.current,isPanorama:n})),()=>{i(Uoe({zIndex:t,isPanorama:n}))}),[i,t,n]),CR.createElement(`g`,{tabIndex:-1,ref:r,className:`recharts-zIndex-layer_${t}`})}function SR(e){var t=e.children,n=e.isPanorama,r=Vd(qA);if(!r||r.length===0)return t;var i=r.filter(e=>e<0),a=r.filter(e=>e>0);return CR.createElement(CR.Fragment,null,i.map(e=>CR.createElement(xR,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>CR.createElement(xR,{key:e,zIndex:e,isPanorama:n})))}var CR,wR,ide=o((()=>{CR=u(p()),wR=u(p()),Yd(),ZA(),Moe()}));function ade(e,t){if(e==null)return{};var n,r,i=ode(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ode(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function TR(){return TR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TR.apply(null,arguments)}var ER,DR,OR,kR,AR,jR,MR,sde=o((()=>{ER=u(p()),DR=u(p()),g_(),dv(),Mg(),as(),Yd(),Fg(),Wh(),ide(),OR=[`children`],kR={width:`100%`,height:`100%`,display:`block`},AR=(0,DR.forwardRef)((e,t)=>{var n=c_(),r=l_(),i=uv();if(!Uh(n)||!Uh(r))return null;var a=e.children,o=e.otherAttributes,s=e.title,c=e.desc,l,u;return o!=null&&(l=typeof o.tabIndex==`number`?o.tabIndex:i?0:void 0,u=typeof o.role==`string`?o.role:i?`application`:void 0),ER.createElement(is,TR({},o,{title:s,desc:c,role:u,tabIndex:l,width:n,height:r,style:kR,ref:t}),a)}),jR=e=>{var t=e.children,n=Vd(Pg);if(!n)return null;var r=n.width,i=n.height,a=n.y,o=n.x;return ER.createElement(is,{width:r,height:i,x:o,y:a},t)},MR=(0,DR.forwardRef)((e,t)=>{var n=e.children,r=ade(e,OR);return jg()?ER.createElement(jR,null,ER.createElement(SR,{isPanorama:!0},n)):ER.createElement(AR,TR({ref:t},r),ER.createElement(SR,{isPanorama:!1},n))})}));function cde(e,t){return fde(e)||dde(e,t)||ude(e,t)||lde()}function lde(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ude(e,t){if(e){if(typeof e==`string`)return NR(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?NR(e,t):void 0}}function NR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function dde(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function fde(e){if(Array.isArray(e))return e}function pde(){var e=Gd(),t=cde((0,PR.useState)(null),2),n=t[0],r=t[1],i=Vd(mg);return(0,PR.useEffect)(()=>{if(n!=null){var t=n.getBoundingClientRect().width/n.offsetWidth;Hh(t)&&t!==i&&e(Lh(t))}},[n,e,i]),r}var PR,mde=o((()=>{PR=u(p()),Yd(),gg(),zh(),Wh()}));function FR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hde(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?FR(Object(n),!0).forEach(function(t){gde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gde(e,t,n){return(t=_de(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _de(e){var t=vde(e,`string`);return typeof t==`symbol`?t:t+``}function vde(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function IR(){return IR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IR.apply(null,arguments)}function LR(e,t){return Sde(e)||xde(e,t)||bde(e,t)||yde()}function yde(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bde(e,t){if(e){if(typeof e==`string`)return RR(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?RR(e,t):void 0}}function RR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xde(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Sde(e){if(Array.isArray(e))return e}function zR(e){if(typeof e==`number`)return e;if(typeof e==`string`){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}function Cde(e){return e?UR:KR}var BR,VR,HR,UR,WR,GR,KR,qR,JR=o((()=>{BR=u(p()),VR=u(p()),zo(),nk(),Yd(),SL(),yj(),RL(),mde(),KL(),tR(),sj(),cc(),g_(),r_(),HR=()=>(Sse(),null),UR=(0,VR.forwardRef)((e,t)=>{var n=(0,VR.useRef)(null),r=LR((0,VR.useState)({containerWidth:zR(e.style?.width),containerHeight:zR(e.style?.height)}),2),i=r[0],a=r[1],o=(0,VR.useCallback)((e,t)=>{a(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),s=(0,VR.useCallback)(e=>{if(typeof t==`function`&&t(e),n.current!=null&&(n.current.disconnect(),n.current=null),e!=null&&typeof ResizeObserver<`u`){var r=e.getBoundingClientRect(),i=r.width,a=r.height;o(i,a);var s=new ResizeObserver(e=>{var t=e[0];if(t!=null){var n=t.contentRect,r=n.width,i=n.height;o(r,i)}});s.observe(e),n.current=s}},[t,o]);return(0,VR.useEffect)(()=>()=>{n.current?.disconnect()},[o]),BR.createElement(BR.Fragment,null,BR.createElement(h_,{width:i.containerWidth,height:i.containerHeight}),BR.createElement(`div`,IR({ref:s},e)))}),WR=(0,VR.forwardRef)((e,t)=>{var n=e.width,r=e.height,i=LR((0,VR.useState)({containerWidth:zR(n),containerHeight:zR(r)}),2),a=i[0],o=i[1],s=(0,VR.useCallback)((e,t)=>{o(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),c=(0,VR.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null){var n=e.getBoundingClientRect(),r=n.width,i=n.height;s(r,i)}},[t,s]);return BR.createElement(BR.Fragment,null,BR.createElement(h_,{width:a.containerWidth,height:a.containerHeight}),BR.createElement(`div`,IR({ref:c},e)))}),GR=(0,VR.forwardRef)((e,t)=>{var n=e.width,r=e.height;return BR.createElement(BR.Fragment,null,BR.createElement(h_,{width:n,height:r}),BR.createElement(`div`,IR({ref:t},e)))}),KR=(0,VR.forwardRef)((e,t)=>{var n=e.width,r=e.height;return typeof n==`string`||typeof r==`string`?BR.createElement(WR,IR({},e,{ref:t})):typeof n==`number`&&typeof r==`number`?BR.createElement(GR,IR({},e,{width:n,height:r,ref:t})):BR.createElement(BR.Fragment,null,BR.createElement(h_,{width:n,height:r}),BR.createElement(`div`,IR({ref:t},e)))}),qR=(0,VR.forwardRef)((e,t)=>{var n=e.children,r=e.className,i=e.height,a=e.onClick,o=e.onContextMenu,s=e.onDoubleClick,c=e.onMouseDown,l=e.onMouseEnter,u=e.onMouseLeave,d=e.onMouseMove,f=e.onMouseUp,p=e.onTouchEnd,m=e.onTouchMove,h=e.onTouchStart,g=e.style,_=e.width,v=e.responsive,y=e.dispatchTouchEvents,b=y===void 0||y,x=(0,VR.useRef)(null),S=Gd(),C=LR((0,VR.useState)(null),2),w=C[0],T=C[1],E=LR((0,VR.useState)(null),2),D=E[0],O=E[1],k=pde(),A=e_(),j=A?.width>0?A.width:_,M=A?.height>0?A.height:i,N=(0,VR.useCallback)(e=>{k(e),typeof t==`function`&&t(e),T(e),O(e),e!=null&&(x.current=e)},[k,t,T,O]),P=(0,VR.useCallback)(e=>{S(hL(e)),S(VL({handler:a,reactEvent:e}))},[S,a]),F=(0,VR.useCallback)(e=>{S(_L(e)),S(VL({handler:l,reactEvent:e}))},[S,l]),I=(0,VR.useCallback)(e=>{S(YO()),S(VL({handler:u,reactEvent:e}))},[S,u]),L=(0,VR.useCallback)(e=>{S(_L(e)),S(VL({handler:d,reactEvent:e}))},[S,d]),R=(0,VR.useCallback)(()=>{S(ML())},[S]),ee=(0,VR.useCallback)(()=>{S(NL())},[S]),te=(0,VR.useCallback)(e=>{S(jL(e.key))},[S]),ne=(0,VR.useCallback)(e=>{S(VL({handler:o,reactEvent:e}))},[S,o]),re=(0,VR.useCallback)(e=>{S(VL({handler:s,reactEvent:e}))},[S,s]),ie=(0,VR.useCallback)(e=>{S(VL({handler:c,reactEvent:e}))},[S,c]),ae=(0,VR.useCallback)(e=>{S(VL({handler:f,reactEvent:e}))},[S,f]),oe=(0,VR.useCallback)(e=>{S(VL({handler:h,reactEvent:e}))},[S,h]),se=(0,VR.useCallback)(e=>{b&&S(YL(e)),S(VL({handler:m,reactEvent:e}))},[S,b,m]),ce=(0,VR.useCallback)(e=>{S(VL({handler:p,reactEvent:e}))},[S,p]),le=Cde(v);return BR.createElement(oj.Provider,{value:w},BR.createElement(sc.Provider,{value:D},BR.createElement(le,{width:j??g?.width,height:M??g?.height,className:Ro(`recharts-wrapper`,r),style:hde({position:`relative`,cursor:`default`,width:j,height:M},g),onClick:P,onContextMenu:ne,onDoubleClick:re,onFocus:R,onBlur:ee,onKeyDown:te,onMouseDown:ie,onMouseEnter:F,onMouseLeave:I,onMouseMove:L,onMouseUp:ae,onTouchEnd:ce,onTouchMove:se,onTouchStart:oe,ref:N},BR.createElement(HR,null),n)))})}));function wde(e,t){if(e==null)return{};var n,r,i=Tde(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Tde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var YR,XR,ZR,QR,$R=o((()=>{YR=u(p()),XR=u(p()),sde(),JR(),ZP(),Yo(),g_(),ZR=[`width`,`height`,`responsive`,`children`,`className`,`style`,`compact`,`title`,`desc`],QR=(0,XR.forwardRef)((e,t)=>{var n=e.width,r=e.height,i=e.responsive,a=e.children,o=e.className,s=e.style,c=e.compact,l=e.title,u=e.desc,d=Go(wde(e,ZR));return c?YR.createElement(YR.Fragment,null,YR.createElement(h_,{width:n,height:r}),YR.createElement(MR,{otherAttributes:d,title:l,desc:u},a)):YR.createElement(qR,{className:o,style:s,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},YR.createElement(MR,{otherAttributes:d,title:l,desc:u,ref:t},YR.createElement(XP,null,a)))})}));function ez(){return ez=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ez.apply(null,arguments)}function tz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ede(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tz(Object(n),!0).forEach(function(t){Dde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dde(e,t,n){return(t=Ode(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ode(e){var t=kde(e,`string`);return typeof t==`symbol`?t:t+``}function kde(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nz,rz,iz,az,oz,sz=o((()=>{nz=u(p()),rz=u(p()),dR(),PP(),mR(),gR(),bR(),$R(),Kl(),oR(),iz={top:5,right:5,bottom:5,left:5},az=Ede({accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,layout:`horizontal`,margin:iz,responsive:!1,reverseStackOrder:!1,stackOffset:`none`,syncMethod:`index`},nR),oz=(0,rz.forwardRef)(function(e,t){var n=Gl(e.categoricalChartProps,az),r=e.chartName,i=e.defaultTooltipEventType,a=e.validateTooltipEventTypes,o=e.tooltipPayloadSearcher,s=e.categoricalChartProps,c={chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,eventEmitter:void 0};return nz.createElement(tde,{preloadedState:{options:c},reduxStoreName:s.id??r},nz.createElement(NP,{chartData:s.data}),nz.createElement(pR,{layout:n.layout,margin:n.margin}),nz.createElement(yR,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),nz.createElement(rde,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),nz.createElement(QR,ez({},n,{ref:t})))})})),cz,lz,uz,dz,Ade=o((()=>{cz=u(p()),lz=u(p()),fj(),sz(),uz=[`axis`,`item`],dz=(0,lz.forwardRef)((e,t)=>cz.createElement(oz,{chartName:`BarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:uz,tooltipPayloadSearcher:ose,categoricalChartProps:e,ref:t}))})),jde=o((()=>{as(),fs(),ac(),cc(),zo(),Nl(),Js(),Zo(),zl(),Nd(),Yd(),Nf(),Gf(),g_(),C_(),B_(),df(),gg(),Og(),Ise(),J_(),r_(),kj(),bM(),UM(),tN(),Lg(),zne(),Tv(),ky(),Ms(),Yo(),Mv(),Ry(),AO(),ix(),$y(),dg(),ox(),cx(),jb(),Ex(),lE(),ej(),Nb(),Ed(),aN(),Lb(),Vb(),Fb(),Mg(),Os(),fN(),vN(),SN(),wN(),vA(),EN(),xg(),LN(),jN(),qN(),iP(),nu(),vP(),NN(),fx(),SP(),EP(),OP(),AP(),jP(),oE(),Ky(),PP(),gj(),RP(),Fg(),yj(),BP(),GP(),ZP(),kF(),sF(),LF(),BF(),UF(),GA(),HN(),GI(),wI(),Yue(),mP(),XI(),Kv(),hy(),ev(),iv(),ey(),ny(),fj(),sz(),Ade(),dR(),mR(),gR(),bR(),AL(),$R(),oR(),_s(),pd(),bd(),ws(),Ds(),Uu(),Wy(),Rj(),sj(),JR(),nk(),ly(),fy(),bb()})),Mde=c({default:()=>Pde});function Nde({value:e}){let[t,n]=(0,fz.useState)(0);return(0,fz.useEffect)(()=>{let t=performance.now(),r=0,i=a=>{let o=Math.min((a-t)/560,1);n(Math.round(e*(1-(1-o)**3))),o<1&&(r=requestAnimationFrame(i))};return r=requestAnimationFrame(i),()=>cancelAnimationFrame(r)},[e]),(0,V.jsx)(V.Fragment,{children:t})}function Pde(){let e=ke(),{state:t}=vo(),[n,r]=(0,fz.useState)(null);return(0,V.jsxs)(`div`,{className:`page dashboard-page`,children:[(0,V.jsxs)(`section`,{className:`dashboard-hero`,children:[(0,V.jsxs)(`div`,{className:`hero-copy`,children:[(0,V.jsx)(`h1`,{children:`AI研发设计标准化工作台`}),(0,V.jsx)(`p`,{children:`让每一次新品设计,都优先复用成熟物料与企业标准。`}),(0,V.jsx)(`div`,{className:`hero-actions`,children:(0,V.jsx)(Eo,{icon:(0,V.jsx)(ua,{size:17}),onClick:()=>e(`/task/new`),children:`开始新品分析`})})]}),(0,V.jsxs)(`div`,{className:`hero-orbit`,"aria-label":`AI 标准化闭环示意`,children:[(0,V.jsxs)(`div`,{className:`orbit-core`,children:[(0,V.jsx)(Or,{size:30}),(0,V.jsx)(`strong`,{children:`AI 编排中枢`}),(0,V.jsx)(`span`,{children:`规则 · 物料 · 案例`})]}),(0,V.jsx)(`span`,{className:`orbit-node node-a`,children:`解析`}),(0,V.jsx)(`span`,{className:`orbit-node node-b`,children:`检索`}),(0,V.jsx)(`span`,{className:`orbit-node node-c`,children:`校验`}),(0,V.jsx)(`span`,{className:`orbit-node node-d`,children:`沉淀`})]})]}),(0,V.jsx)(`div`,{className:`asset-grid`,children:[{label:`物料零件`,value:10,note:`3 组编码治理风险`,icon:jr,tone:`brand`},{label:`标准化规则`,value:6,note:`覆盖结构、传动与辅件`,icon:La,tone:`warning`},{label:`历史成熟方案`,value:4,note:`2 个量产验证案例`,icon:ya,tone:`blue`}].map(({label:e,value:t,note:n,icon:r,tone:i})=>(0,V.jsxs)(ko,{className:`asset-card`,children:[(0,V.jsx)(`div`,{className:`asset-icon asset-${i}`,children:(0,V.jsx)(r,{size:20})}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`span`,{children:e}),(0,V.jsx)(`strong`,{children:(0,V.jsx)(Nde,{value:t})}),(0,V.jsx)(`small`,{children:n})]})]},e))}),(0,V.jsxs)(`div`,{className:`dashboard-grid`,children:[(0,V.jsxs)(ko,{className:`risk-panel`,children:[(0,V.jsx)(Ao,{eyebrow:`主动治理`,title:`研发标准化风险洞察`,action:(0,V.jsx)(Do,{tone:`danger`,children:`4 项待关注`})}),(0,V.jsxs)(`div`,{className:`risk-content`,children:[(0,V.jsx)(`div`,{className:`risk-list`,children:pz.map((e,t)=>(0,V.jsxs)(`button`,{className:`risk-row`,onClick:()=>r(e),children:[(0,V.jsx)(`span`,{className:`risk-index risk-${t}`,children:t+1}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`strong`,{children:e.title}),(0,V.jsxs)(`small`,{children:[e.a,` ↔ `,e.b]})]}),(0,V.jsx)(Do,{tone:t===3?`warning`:`danger`,children:e.tag}),(0,V.jsx)(Sr,{size:16})]},e.title))}),(0,V.jsxs)(`div`,{className:`risk-chart`,children:[(0,V.jsx)(`strong`,{children:`风险类型分布`}),(0,V.jsx)(n_,{width:`100%`,height:168,children:(0,V.jsxs)(dz,{data:mz,margin:{top:18,right:6,left:6,bottom:0},children:[(0,V.jsx)(lL,{dataKey:`name`,tick:{fill:`#9fb1c7`,fontSize:11},axisLine:!1,tickLine:!1}),(0,V.jsx)(Fse,{cursor:{fill:`rgba(255,255,255,.03)`},contentStyle:{background:`#12243b`,border:`1px solid #243a55`,borderRadius:10}}),(0,V.jsx)(WI,{dataKey:`value`,radius:[7,7,0,0],children:mz.map(e=>(0,V.jsx)(Oj,{fill:e.color},e.name))})]})})]})]})]}),(0,V.jsxs)(ko,{className:`recent-task`,children:[(0,V.jsx)(Ao,{eyebrow:`最近任务`,title:`植保无人机 V2.1 改型`}),(0,V.jsxs)(`div`,{className:`task-status-row`,children:[(0,V.jsx)(`div`,{className:`task-file-icon`,children:(0,V.jsx)(yi,{size:24})}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`strong`,{children:`XQ-2026-0901`}),(0,V.jsx)(`small`,{children:`新品研发需求说明书`})]}),(0,V.jsx)(Do,{tone:t.completedStages===6?`success`:t.sampleLoaded?`brand`:`warning`,children:t.completedStages===6?`分析完成`:t.sampleLoaded?`数据已就绪`:`待运行`})]}),(0,V.jsxs)(`div`,{className:`task-mini-grid`,children:[(0,V.jsx)(No,{label:`拟新建编码`,value:`3`,tone:`warning`}),(0,V.jsx)(No,{label:`AI 预计复用`,value:`3`,tone:`success`})]}),(0,V.jsx)(Eo,{className:`full-button`,icon:(0,V.jsx)(Ta,{size:17}),onClick:()=>e(`/task/demo-v21`),children:`进入 AI 驾驶舱`})]})]}),(0,V.jsxs)(ko,{className:`capability-panel`,children:[(0,V.jsx)(Ao,{eyebrow:`闭环能力`,title:`设计发生时即标准化`}),(0,V.jsx)(`div`,{className:`capability-flow`,children:[[`01`,`参数解析`,`需求与图纸要素结构化`],[`02`,`相似检索`,`全库查找成熟物料`],[`03`,`合规校验`,`执行企业设计规则`],[`04`,`BOM 推荐`,`标准件与通用件优先`],[`05`,`案例复用`,`匹配量产成熟方案`],[`06`,`文档沉淀`,`生成文档与知识草稿`]].map(([e,t,n],r)=>(0,V.jsxs)(`div`,{className:`capability-step`,children:[(0,V.jsx)(`span`,{children:e}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`strong`,{children:t}),(0,V.jsx)(`small`,{children:n})]}),r<5&&(0,V.jsx)(Sr,{size:16})]},e))})]}),(0,V.jsx)(jo,{open:!!n,onClose:()=>r(null),title:n?.title??`风险证据`,children:n&&(()=>{let e=no.find(e=>e.code===n.a),t=no.find(e=>e.code===n.b);return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{className:`drawer-summary danger-summary`,children:[(0,V.jsx)(La,{size:20}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`strong`,{children:n.tag}),(0,V.jsx)(`p`,{children:n.reason})]})]}),(0,V.jsxs)(`div`,{className:`comparison-head`,children:[(0,V.jsxs)(`div`,{children:[(0,V.jsx)(Do,{tone:`success`,children:`建议主编码`}),(0,V.jsx)(`h3`,{children:e.code}),(0,V.jsx)(`p`,{children:e.name})]}),(0,V.jsx)(`span`,{children:`VS`}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(Do,{tone:`danger`,children:`风险编码`}),(0,V.jsx)(`h3`,{children:t.code}),(0,V.jsx)(`p`,{children:t.name})]})]}),(0,V.jsxs)(`div`,{className:`evidence-table`,children:[(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`span`,{children:`关键参数`}),(0,V.jsx)(`b`,{children:e.parametersText}),(0,V.jsx)(`b`,{children:t.parametersText})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`span`,{children:`物料属性`}),(0,V.jsx)(`b`,{children:e.materialType}),(0,V.jsx)(`b`,{children:t.materialType})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`span`,{children:`图纸编号`}),(0,V.jsx)(`b`,{children:e.drawingNo}),(0,V.jsx)(`b`,{children:t.drawingNo})]}),(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`span`,{children:`治理建议`}),(0,V.jsx)(`b`,{children:`保留并优先复用`}),(0,V.jsx)(`b`,{children:`停止新增并提交治理`})]})]}),(0,V.jsxs)(`div`,{className:`audit-note`,children:[(0,V.jsx)(Ur,{size:18}),`以上结论仅基于 DEMO 内置物料主数据,不执行真实编码合并。`]})]})})()})]})}var fz,V,pz,mz,Fde=o((()=>{fz=u(p(),1),Wn(),jde(),eo(),Io(),po(),To(),V=ho(),pz=[{title:`基座一物多码`,a:`SP-M-001`,b:`SP-M-003`,tag:`一物多码`,reason:`参数完全一致,但物料属性分别为通用件与定制件。建议保留成熟主编码 SP-M-001。`},{title:`传动轴重复建码`,a:`SP-P-005`,b:`SP-P-018`,tag:`重复建码`,reason:`轴径、键槽、总长和热处理完全一致。建议复用 SP-P-005 并治理重复编码。`},{title:`支架一物多码`,a:`SP-E-001`,b:`SP-E-002`,tag:`一物多码`,reason:`长宽、孔距与材质完全一致。SP-E-001 为成熟通用件,应作为主编码。`},{title:`垫圈非必要非标`,a:`SP-S-011`,b:`SP-S-012`,tag:`非必要非标`,reason:`标准件已覆盖主要接口。定制 3mm 垫圈应先进行必要性评审。`}],mz=[{name:`一物多码`,value:2,color:`#ff6b6b`},{name:`重复建码`,value:1,color:`#f3b64d`},{name:`非必要非标`,value:1,color:`#5a7cff`}]})),Ide=c({default:()=>Rde});function Lde(e){let t={},n,r=e.match(/(?:文档编号|需求编号|编号)\s*[是为::]*\s*([A-Za-z]{1,4}-\d{4}-\d{3,4})/);r&&(t.docNo=r[1].toUpperCase());let i=e.match(/(?:需求日期|日期)\s*[是为::]*\s*(\d{4})\s*[年./-]\s*(\d{1,2})\s*[月./-]\s*(\d{1,2})/);i&&(t.date=`${i[1]}-${i[2].padStart(2,`0`)}-${i[3].padStart(2,`0`)}`);let a=e.match(/(?:项目名称|项目)\s*[是为::叫]*\s*([^,,;;。\n]{2,40})/);a&&(t.name=a[1].trim());let o=e.match(/(?:适配整机|整机)\s*[是为::叫]*\s*([^,,;;。\n]{2,40})/);return o&&(t.aircraft=o[1].trim()),/复用|优先现有|利旧/.test(e)?n=`reuse_first`:/新建|新建立|定制新/.test(e)&&(n=`create_new`),{project:t,intent:n}}function Rde(){let e=ke(),t=(0,hz.useRef)(null),{state:n,loadSample:r,notify:i,setIntent:a,startRun:o,resetRun:s}=vo(),[c,l]=(0,hz.useState)(n.sampleLoaded?`植保无人机V2.1新品研发需求说明书.xlsx`:``),[u,d]=(0,hz.useState)({docNo:`XQ-2026-0901`,date:`2026-09-01`,name:`植保无人机 V2.1 改型动力套件开发`,aircraft:`20 公斤级植保多旋翼无人机`}),[f,p]=(0,hz.useState)(``),[m,h]=(0,hz.useState)(null),g=e=>{e&&(l(e.name),r(),e.name!==`植保无人机V2.1新品研发需求说明书.xlsx`&&i(`当前为演示环境:文件不会上传,将使用内置解析结果展示流程`))},_=()=>{l(`植保无人机V2.1新品研发需求说明书.xlsx`),r()},v=()=>{o(!0),e(`/task/demo-v21`)},y=()=>{let e=Lde(f),t={...u},n=[];if(e.project.docNo&&(t.docNo=e.project.docNo,n.push(`文档编号`)),e.project.date&&(t.date=e.project.date,n.push(`需求日期`)),e.project.name&&(t.name=e.project.name,n.push(`项目名称`)),e.project.aircraft&&(t.aircraft=e.project.aircraft,n.push(`适配整机`)),e.intent&&(a(e.intent),n.push(e.intent===`reuse_first`?`意图:优先复用`:`意图:分别新建`)),!n.length){h({tone:`warn`,text:`未识别到需求信息,可参考上方示例话术,或直接点击示例填入。`});return}d(t),h({tone:`ok`,text:`已识别并更新:${n.join(`、`)}`}),i(`自然语言信息已填入任务表单`)};return(0,H.jsxs)(`div`,{className:`page task-page`,children:[(0,H.jsx)(`div`,{className:`page-heading`,children:(0,H.jsxs)(`div`,{children:[(0,H.jsxs)(`button`,{className:`back-link`,onClick:()=>e(-1),children:[(0,H.jsx)(yr,{size:16}),`返回工作台`]}),(0,H.jsx)(`span`,{className:`eyebrow`,children:`NEW AI ANALYSIS`}),(0,H.jsx)(`h1`,{children:`新建 AI 分析任务`}),(0,H.jsx)(`p`,{children:`导入新品需求并确认工程师意图,系统将在本地模拟完整标准化分析。`})]})}),(0,H.jsxs)(`div`,{className:`task-form-grid`,children:[(0,H.jsxs)(`div`,{className:`task-main-column`,children:[(0,H.jsxs)(ko,{children:[(0,H.jsx)(Ao,{title:`导入新品需求`,action:(0,H.jsx)(Do,{tone:n.sampleLoaded?`success`:`neutral`,children:n.sampleLoaded?`数据已就绪`:`等待加载`})}),(0,H.jsxs)(`div`,{className:`upload-zone ${n.sampleLoaded?`loaded`:``}`,onClick:()=>t.current?.click(),onDragOver:e=>e.preventDefault(),onDrop:e=>{e.preventDefault(),g(e.dataTransfer.files[0])},role:`button`,tabIndex:0,onKeyDown:e=>e.key===`Enter`&&t.current?.click(),children:[(0,H.jsx)(`input`,{ref:t,type:`file`,accept:`.xlsx,.docx,.pdf,.dwg,.step`,hidden:!0,onChange:e=>g(e.target.files?.[0])}),(0,H.jsx)(`div`,{className:`upload-icon`,children:n.sampleLoaded?(0,H.jsx)(Si,{size:28}):(0,H.jsx)(ii,{size:28})}),!n.sampleLoaded&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`strong`,{children:`拖放需求文档到这里,或点击选择文件`}),(0,H.jsx)(`span`,{children:`界面支持 .xlsx / .docx / .pdf / .dwg / .step`})]}),(0,H.jsx)(Eo,{variant:`secondary`,onClick:()=>{},children:n.sampleLoaded?`上传/更新文件`:`选择本地文件`})]}),(0,H.jsxs)(`div`,{className:`upload-footnote`,children:[(0,H.jsx)(Li,{size:15}),`当前 DEMO 仅真实解析内置样例;选择其他文件时会使用同一组确定性结果展示业务流程。`]}),!n.sampleLoaded&&(0,H.jsxs)(`button`,{className:`sample-load-card`,onClick:_,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(Si,{size:22}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{children:`植保无人机 V2.1 新品研发需求`}),(0,H.jsx)(`small`,{children:`推荐演示样例 · XQ-2026-0901`})]})]}),(0,H.jsxs)(`span`,{children:[`一键加载 `,(0,H.jsx)(ua,{size:14})]})]})]}),(0,H.jsxs)(ko,{children:[(0,H.jsx)(Ao,{title:`确认项目与工程师意图`}),(0,H.jsxs)(`div`,{className:`project-fields`,children:[(0,H.jsxs)(`label`,{children:[(0,H.jsx)(`span`,{children:`文档编号`}),(0,H.jsx)(`input`,{value:u.docNo,readOnly:!0})]}),(0,H.jsxs)(`label`,{children:[(0,H.jsx)(`span`,{children:`需求日期`}),(0,H.jsx)(`input`,{value:u.date,readOnly:!0})]}),(0,H.jsxs)(`label`,{className:`span-2`,children:[(0,H.jsx)(`span`,{children:`项目名称`}),(0,H.jsx)(`input`,{value:u.name,readOnly:!0})]}),(0,H.jsxs)(`label`,{className:`span-2`,children:[(0,H.jsx)(`span`,{children:`适配整机`}),(0,H.jsx)(`input`,{value:u.aircraft,readOnly:!0})]})]})]}),(0,H.jsxs)(ko,{className:`nl-panel`,children:[(0,H.jsx)(Ao,{title:`自然语言快捷录入`}),(0,H.jsxs)(`p`,{className:`nl-hint`,children:[(0,H.jsx)(Li,{size:14}),`用一句话描述需求信息,点击识别后自动填入步骤 02 对应字段与工程师意图。`]}),(0,H.jsx)(`div`,{className:`nl-examples`,children:gz.map(e=>(0,H.jsx)(`button`,{type:`button`,onClick:()=>p(t=>t.trim()?`${t.trim()},${e}`:e),children:e},e))}),(0,H.jsxs)(`div`,{className:`nl-input`,children:[(0,H.jsx)(`textarea`,{rows:3,value:f,placeholder:`例如:项目名称为植保无人机 V3.0 改型动力套件开发,适配整机为 25 公斤级植保多旋翼无人机,文档编号 XQ-2026-1015,需求日期 2026 年 10 月 15 日,优先复用企业现有物料`,onChange:e=>p(e.target.value),onKeyDown:e=>{(e.ctrlKey||e.metaKey)&&e.key===`Enter`&&y()}}),(0,H.jsx)(Eo,{icon:(0,H.jsx)(Ka,{size:15}),disabled:!f.trim(),onClick:y,children:`识别并填入`})]}),m&&(0,H.jsx)(`div`,{className:`nl-feedback ${m.tone}`,children:m.text})]})]}),(0,H.jsxs)(`aside`,{className:`task-side-column`,children:[(0,H.jsxs)(ko,{className:`source-status`,children:[(0,H.jsx)(Ao,{eyebrow:`数据准备`,title:`本地数据源`}),[[`物料零件库`,`10 条`,si],[`标准化规则库`,`6 条`,Pa],[`历史成熟案例`,`4 条`,Si]].map(([e,t,n])=>(0,H.jsxs)(`div`,{className:`source-row`,children:[(0,H.jsx)(`span`,{children:(0,H.jsx)(n,{size:18})}),(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`strong`,{children:e}),(0,H.jsxs)(`small`,{children:[t,` · 内置演示数据`]})]}),(0,H.jsx)(Do,{tone:`success`,children:`已连接`})]},e))]}),(0,H.jsxs)(ko,{className:`run-summary`,children:[(0,H.jsx)(`span`,{className:`eyebrow`,children:`即将执行`}),(0,H.jsx)(`h3`,{children:`六阶段 AI 标准化分析`}),(0,H.jsx)(`ol`,{children:[`需求参数解析与归一化`,`相似零件全库检索`,`企业标准化规则校验`,`BOM 通用件优先推荐`,`历史成熟方案匹配`,`设计文档与知识草稿生成`].map((e,t)=>(0,H.jsxs)(`li`,{children:[(0,H.jsx)(`span`,{children:String(t+1).padStart(2,`0`)}),e]},e))}),(0,H.jsx)(Eo,{className:`full-button run-button`,icon:(0,H.jsx)(Ka,{size:17}),disabled:!n.sampleLoaded,onClick:v,children:`一键运行 AI 分析`}),!n.sampleLoaded&&(0,H.jsx)(`small`,{className:`disabled-hint`,children:`请先加载演示样例`}),(0,H.jsx)(Eo,{className:`full-button`,variant:`ghost`,icon:(0,H.jsx)(Sa,{size:16}),onClick:()=>{s(),l(``)},children:`重置任务`})]})]})]})]})}var hz,H,gz,zde=o((()=>{hz=u(p(),1),Wn(),eo(),Io(),To(),H=ho(),gz=[`项目名称为植保无人机 V3.0 改型动力套件开发`,`适配整机为 25 公斤级植保多旋翼无人机,需求日期 2026-10-15`,`文档编号 XQ-2026-1015`,`优先复用企业现有物料`]})),_z,vz,yz=o((()=>{_z=u(p(),1),vz=(0,_z.createContext)({})}));function bz(e){let t=(0,xz.useRef)(null);return t.current===null&&(t.current=e()),t.current}var xz,Sz=o((()=>{xz=u(p(),1)})),Cz,wz=o((()=>{Cz=typeof window<`u`})),Tz,Ez,Dz=o((()=>{Tz=u(p(),1),wz(),Ez=Cz?Tz.useLayoutEffect:Tz.useEffect})),Oz,kz,Az=o((()=>{Oz=u(p(),1),kz=(0,Oz.createContext)(null)}));function jz(e,t){e.indexOf(t)===-1&&e.push(t)}function Mz(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Nz=o((()=>{})),Pz,Bde=o((()=>{Pz=(e,t,n)=>n>t?t:n<e?e:n})),Fz,Iz,Lz=o((()=>{Fz=()=>{},Iz=()=>{}})),Rz,Vde=o((()=>{Rz={}})),zz,Hde=o((()=>{zz=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)})),Bz,Ude=o((()=>{Bz=e=>typeof e==`object`&&!!e})),Vz,Wde=o((()=>{Vz=e=>/^0[^.\s]+$/u.test(e)}));function Hz(e){let t;return()=>(t===void 0&&(t=e()),t)}var Gde=o((()=>{})),Uz,Wz=o((()=>{Uz=e=>e})),Gz,Kde=o((()=>{Gz=(...e)=>e.reduce((e,t)=>n=>t(e(n)))})),Kz,qde=o((()=>{Kz=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1}})),qz,Jde=o((()=>{Nz(),qz=class{constructor(){this.subscriptions=[]}add(e){return jz(this.subscriptions,e),()=>Mz(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}})),Jz,Yz,Yde=o((()=>{Jz=e=>e*1e3,Yz=e=>e/1e3})),Xz,Xde=o((()=>{Xz=(e,t)=>t?1e3/t*e:0}));function Zde(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Qz(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>$z&&++s<eB);return o}function Zz(e,t,n,r){if(e===t&&n===r)return Uz;let i=t=>Zde(t,0,1,e,n);return e=>e===0||e===1?e:Qz(i(e),t,r)}var Qz,$z,eB,tB=o((()=>{Wz(),Qz=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,$z=1e-7,eB=12})),nB,rB=o((()=>{nB=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2})),iB,aB=o((()=>{iB=e=>t=>1-e(1-t)})),oB,sB,cB,lB=o((()=>{tB(),rB(),aB(),oB=Zz(.33,1.53,.69,.99),sB=iB(oB),cB=nB(sB)})),uB,dB=o((()=>{lB(),uB=e=>e>=1?1:(e*=2)<1?.5*sB(e):.5*(2-2**(-10*(e-1)))})),fB,pB,mB,hB=o((()=>{rB(),aB(),fB=e=>1-Math.sin(Math.acos(e)),pB=iB(fB),mB=nB(fB)})),gB,_B,vB,yB=o((()=>{tB(),gB=Zz(.42,0,1,1),_B=Zz(0,0,.58,1),vB=Zz(.42,0,.58,1)})),bB,Qde=o((()=>{bB=e=>Array.isArray(e)&&typeof e[0]!=`number`})),xB,SB=o((()=>{xB=e=>Array.isArray(e)&&typeof e[0]==`number`})),CB,wB,TB,$de=o((()=>{Lz(),Wz(),dB(),lB(),hB(),tB(),yB(),SB(),CB={linear:Uz,easeIn:gB,easeInOut:vB,easeOut:_B,circIn:fB,circInOut:mB,circOut:pB,backIn:sB,backInOut:cB,backOut:oB,anticipate:uB},wB=e=>typeof e==`string`,TB=e=>{if(xB(e)){Iz(e.length===4,`Cubic bezier arrays must contain four numerical values.`,`cubic-bezier-length`);let[t,n,r,i]=e;return Zz(t,n,r,i)}return wB(e)?(Iz(CB[e]!==void 0,`Invalid easing type '${e}'`,`invalid-easing-type`),CB[e]):e}})),EB=o((()=>{Nz(),Bde(),Lz(),Vde(),Hde(),Ude(),Wde(),Gde(),Wz(),Kde(),qde(),Jde(),Yde(),Xde(),dB(),lB(),hB(),tB(),yB(),rB(),aB(),Qde(),SB(),$de()})),DB,OB=o((()=>{DB=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`]}));function efe(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var tfe=o((()=>{}));function kB(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=DB.reduce((e,t)=>(e[t]=efe(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Rz.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,AB),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:DB.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<DB.length;t++)o[DB[t]].cancel(e)},state:i,steps:o}}var AB,jB=o((()=>{EB(),OB(),tfe(),AB=40})),MB,NB,PB,FB,IB=o((()=>{EB(),jB(),{schedule:MB,cancel:NB,state:PB,steps:FB}=kB(typeof requestAnimationFrame<`u`?requestAnimationFrame:Uz,!0)}));function nfe(){LB=void 0}var LB,RB,zB=o((()=>{EB(),IB(),RB={now:()=>(LB===void 0&&RB.set(PB.isProcessing||Rz.useManualTiming?PB.timestamp:performance.now()),LB),set:e=>{LB=e,queueMicrotask(nfe)}}}));function BB(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var VB,HB,UB,WB,GB,KB=o((()=>{VB=e=>t=>typeof t==`string`&&t.startsWith(e),HB=VB(`--`),UB=VB(`var(--`),WB=e=>UB(e)?GB.test(e.split(`/*`)[0].trim()):!1,GB=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu})),qB,JB,YB,XB=o((()=>{EB(),qB={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},JB={...qB,transform:e=>Pz(0,1,e)},YB={...qB,default:1}})),ZB,QB=o((()=>{ZB=e=>Math.round(e*1e5)/1e5})),$B,eV=o((()=>{$B=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu}));function rfe(e){return e==null}var ife=o((()=>{})),tV,afe=o((()=>{tV=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu})),nV,rV,iV=o((()=>{eV(),ife(),afe(),nV=(e,t)=>n=>!!(typeof n==`string`&&tV.test(n)&&n.startsWith(e)||t&&!rfe(n)&&Object.prototype.hasOwnProperty.call(n,t)),rV=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match($B);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}}})),aV,oV,sV,cV=o((()=>{EB(),XB(),QB(),iV(),aV=e=>Pz(0,255,e),oV={...qB,transform:e=>Math.round(aV(e))},sV={test:nV(`rgb`,`red`),parse:rV(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+oV.transform(e)+`, `+oV.transform(t)+`, `+oV.transform(n)+`, `+ZB(JB.transform(r))+`)`}}));function ofe(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var lV,uV=o((()=>{cV(),iV(),lV={test:nV(`#`),parse:ofe,transform:sV.transform}})),dV,fV,pV,U,mV,hV,gV,_V=o((()=>{dV=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fV=dV(`deg`),pV=dV(`%`),U=dV(`px`),mV=dV(`vh`),hV=dV(`vw`),gV={...pV,parse:e=>pV.parse(e)/100,transform:e=>pV.transform(e*100)}})),vV,yV=o((()=>{XB(),_V(),QB(),iV(),vV={test:nV(`hsl`,`hue`),parse:rV(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+pV.transform(ZB(t))+`, `+pV.transform(ZB(n))+`, `+ZB(JB.transform(r))+`)`}})),bV,xV=o((()=>{uV(),yV(),cV(),bV={test:e=>sV.test(e)||lV.test(e)||vV.test(e),parse:e=>sV.test(e)?sV.parse(e):vV.test(e)?vV.parse(e):lV.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?sV.transform(e):vV.transform(e),getAnimatableNone:e=>{let t=bV.parse(e);return t.alpha=0,bV.transform(t)}}})),SV,sfe=o((()=>{SV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu}));function cfe(e){return isNaN(e)&&typeof e==`string`&&(e.match($B)?.length||0)+(e.match(SV)?.length||0)>0}function CV(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(AV,e=>(bV.test(e)?(r.color.push(a),i.push(EV),n.push(bV.parse(e))):e.startsWith(OV)?(r.var.push(a),i.push(DV),n.push(e)):(r.number.push(a),i.push(TV),n.push(parseFloat(e))),++a,kV)).split(kV),indexes:r,types:i}}function lfe(e){return CV(e).values}function wV({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===TV?ZB(r[a]):e===EV?bV.transform(r[a]):r[a]}return i}}function ufe(e){return wV(CV(e))}function dfe(e){let t=CV(e);return wV(t)(t.values.map((e,n)=>MV(e,t.split[n])))}var TV,EV,DV,OV,kV,AV,jV,MV,NV,PV=o((()=>{xV(),sfe(),eV(),QB(),TV=`number`,EV=`color`,DV=`var`,OV=`var(`,kV="${}",AV=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu,jV=e=>typeof e==`number`?0:bV.test(e)?bV.getAnimatableNone(e):e,MV=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:jV(e),NV={test:cfe,parse:lfe,createTransformer:ufe,getAnimatableNone:dfe}}));function FV(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ffe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=FV(s,r,e+1/3),a=FV(s,r,e),o=FV(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}var pfe=o((()=>{}));function IV(e,t){return n=>n>0?t:e}var LV=o((()=>{})),RV,zV=o((()=>{RV=(e,t,n)=>e+(t-e)*n}));function BV(e){let t=UV(e);if(Fz(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,`color-not-animatable`),!t)return!1;let n=t.parse(e);return t===vV&&(n=ffe(n)),n}var VV,HV,UV,WV,GV=o((()=>{EB(),uV(),yV(),pfe(),cV(),LV(),zV(),VV=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},HV=[lV,sV,vV],UV=e=>HV.find(t=>t.test(e)),WV=(e,t)=>{let n=BV(e),r=BV(t);if(!n||!r)return IV(e,t);let i={...n};return e=>(i.red=VV(n.red,r.red,e),i.green=VV(n.green,r.green,e),i.blue=VV(n.blue,r.blue,e),i.alpha=RV(n.alpha,r.alpha,e),sV.transform(i))}}));function mfe(e,t){return KV.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}var KV,qV=o((()=>{KV=new Set([`none`,`hidden`])}));function hfe(e,t){return n=>RV(e,t,n)}function JV(e){return typeof e==`number`?hfe:typeof e==`string`?WB(e)?IV:bV.test(e)?WV:XV:Array.isArray(e)?YV:typeof e==`object`?bV.test(e)?WV:gfe:IV}function YV(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>JV(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function gfe(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=JV(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function _fe(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var XV,ZV=o((()=>{EB(),KB(),xV(),PV(),GV(),LV(),zV(),qV(),XV=(e,t)=>{let n=NV.createTransformer(t),r=CV(e),i=CV(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?KV.has(e)&&!i.values.length||KV.has(t)&&!r.values.length?mfe(e,t):Gz(YV(_fe(r,i),i.values),n):(Fz(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,`complex-values-different`),IV(e,t))}}));function QV(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?RV(e,t,n):JV(e)(e,t)}var $V=o((()=>{ZV(),zV()})),eH,vfe=o((()=>{zB(),IB(),eH=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>MB.update(t,e),stop:()=>NB(t),now:()=>PB.isProcessing?PB.timestamp:RB.now()}}})),tH,nH=o((()=>{tH=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`}}));function rH(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}var iH,aH=o((()=>{iH=2e4}));function yfe(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(rH(r),iH);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:Yz(i)}}var oH=o((()=>{EB(),aH()}));function sH(e,t){return e*Math.sqrt(1-t*t)}function bfe(e,t,n){let r=n;for(let n=1;n<dH;n++)r-=e(r)/t(r);return r}function xfe({duration:e=uH.duration,bounce:t=uH.bounce,velocity:n=uH.velocity,mass:r=uH.mass}){let i,a;Fz(e<=Jz(uH.maxDuration),`Spring duration must be 10 seconds or less`,`spring-duration-limit`);let o=1-t;o=Pz(uH.minDamping,uH.maxDamping,o),e=Pz(uH.minDuration,uH.maxDuration,Yz(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=sH(t,o),c=Math.exp(-i);return fH-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=sH(t**2,o);return(-i(t)+fH>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=bfe(i,a,s);if(e=Jz(e),isNaN(c))return{stiffness:uH.stiffness,damping:uH.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}function cH(e,t){return t.some(t=>e[t]!==void 0)}function Sfe(e){let t={velocity:uH.velocity,stiffness:uH.stiffness,damping:uH.damping,mass:uH.mass,isResolvedFromDuration:!1,...e};if(!cH(e,mH)&&cH(e,pH)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Pz(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:uH.mass,stiffness:i,damping:a}}else{let n=xfe({...e,velocity:0});t={...t,...n,mass:uH.mass},t.isResolvedFromDuration=!0}}return t}function lH(e=uH.visualDuration,t=uH.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Sfe({...n,velocity:-Yz(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=Yz(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?uH.restSpeed.granular:uH.restSpeed.default,i||=v?uH.restDelta.granular:uH.restDelta.default;let y,b,x,S,C,w;if(h<1)x=sH(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>Jz(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=Jz(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=Jz(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(rH(T),iH),t=tH(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}var uH,dH,fH,pH,mH,hH=o((()=>{EB(),nH(),aH(),oH(),uH={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},dH=12,fH=.001,pH=[`duration`,`bounce`],mH=[`stiffness`,`damping`,`mass`],lH.applyToOptions=e=>{let t=yfe(e,100,lH);return e.ease=t.ease,e.duration=Jz(t.duration),e.type=`keyframes`,e}}));function gH(e,t,n){let r=Math.max(t-_H,0);return Xz(n-e(r),t-r)}var _H,vH=o((()=>{EB(),_H=5}));function yH({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=lH({keyframes:[f.value,m(f.value)],velocity:gH(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}var bH=o((()=>{hH(),vH()}));function Cfe(e,t,n){let r=[],i=n||Rz.mix||QV,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);if(t){let e=Array.isArray(t)?t[n]||Uz:t;a=Gz(e,a)}r.push(a)}return r}function wfe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(Iz(a===t.length,`Both input and output ranges must be the same length`,`range-length`),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Cfe(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Kz(e[r],e[r+1],n);return s[r](i)};return n?t=>l(Pz(e[0],e[a-1],t)):l}var xH=o((()=>{EB(),$V()}));function Tfe(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Kz(0,t,r);e.push(RV(n,1,i))}}var SH=o((()=>{EB(),zV()}));function Efe(e){let t=[0];return Tfe(t,e.length-1),t}var CH=o((()=>{SH()}));function Dfe(e,t){return e.map(e=>e*t)}var Ofe=o((()=>{}));function kfe(e,t){return e.map(()=>t||vB).splice(0,e.length-1)}function wH({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=bB(r)?r.map(TB):TB(r),a={done:!1,value:t[0]},o=wfe(Dfe(n&&n.length===t.length?n:Efe(t),e),t,{ease:Array.isArray(i)?i:kfe(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var TH=o((()=>{EB(),xH(),CH(),Ofe()}));function EH(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(DH),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var DH,OH=o((()=>{DH=e=>e!==null}));function kH(e){typeof e.type==`string`&&(e.type=AH[e.type])}var AH,jH=o((()=>{bH(),TH(),hH(),AH={decay:yH,inertia:yH,tween:wH,keyframes:wH,spring:lH}})),MH,NH=o((()=>{MH=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}})),PH,FH,IH=o((()=>{EB(),zB(),$V(),vfe(),bH(),TH(),aH(),vH(),OH(),jH(),NH(),PH=e=>e/100,FH=class extends MH{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==RB.now()&&this.tick(RB.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;kH(e);let{type:t=wH,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||wH;s!==wH&&typeof o[0]!=`number`&&(this.mixKeyframes=Gz(PH,QV(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=rH(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=Pz(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==yH&&(b.value=EH(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return Yz(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Yz(e)}get time(){return Yz(this.currentTime)}set time(e){e=Jz(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return gH(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(RB.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=Yz(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=eH,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(RB.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}}}));function Afe(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var jfe=o((()=>{}));function LH(e){return+!!e.includes(`scale`)}function RH(e,t){if(!e||e===`none`)return LH(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=KH,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=VH,i=t}if(!i)return LH(t);let a=r[t],o=i[1].split(`,`).map(Mfe);return typeof a==`function`?a(o):o[a]}function Mfe(e){return parseFloat(e.trim())}var zH,BH,VH,HH,UH,WH,GH,KH,qH,JH=o((()=>{zH=e=>e*180/Math.PI,BH=e=>{let t=zH(Math.atan2(e[1],e[0]));return HH(t)},VH={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:BH,rotateZ:BH,skewX:e=>zH(Math.atan(e[1])),skewY:e=>zH(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},HH=e=>(e%=360,e<0&&(e+=360),e),UH=BH,WH=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),GH=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),KH={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:WH,scaleY:GH,scale:e=>(WH(e)+GH(e))/2,rotateX:e=>HH(zH(Math.atan2(e[6],e[5]))),rotateY:e=>HH(zH(Math.atan2(-e[2],e[0]))),rotateZ:UH,rotate:UH,skewX:e=>zH(Math.atan(e[4])),skewY:e=>zH(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2},qH=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return RH(n,t)}})),YH,XH,ZH=o((()=>{YH=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],XH=new Set([...YH,`pathRotation`])}));function Nfe(e){let t=[];return eU.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var QH,$H,eU,tU,nU=o((()=>{JH(),ZH(),XB(),_V(),QH=e=>e===qB||e===U,$H=new Set([`x`,`y`,`z`]),eU=YH.filter(e=>!$H.has(e)),tU={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>RH(t,`x`),y:(e,{transform:t})=>RH(t,`y`)},tU.translateX=tU.x,tU.translateY=tU.y}));function rU(){if(sU){let e=Array.from(aU).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=Nfe(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}sU=!1,oU=!1,aU.forEach(e=>e.complete(cU)),aU.clear()}function iU(){aU.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(sU=!0)})}function Pfe(){cU=!0,iU(),rU(),cU=!1}var aU,oU,sU,cU,lU,uU=o((()=>{jfe(),nU(),IB(),aU=new Set,oU=!1,sU=!1,cU=!1,lU=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(aU.add(this),oU||(oU=!0,MB.read(iU),MB.resolveKeyframes(rU))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Afe(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),aU.delete(this)}cancel(){this.state===`scheduled`&&(aU.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}}})),dU,fU=o((()=>{dU=e=>e.startsWith(`--`)}));function pU(e,t,n){dU(t)?e.style.setProperty(t,n):e.style[t]=n}var mU=o((()=>{fU()})),hU,gU=o((()=>{hU={}}));function _U(e,t){let n=Hz(e);return()=>hU[t]??n()}var vU=o((()=>{EB(),gU()})),yU,bU=o((()=>{vU(),yU=_U(()=>window.ScrollTimeline!==void 0,`scrollTimeline`)})),xU,SU=o((()=>{vU(),xU=_U(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`)})),CU,wU=o((()=>{CU=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`})),TU,EU=o((()=>{wU(),TU={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:CU([0,.65,.55,1]),circOut:CU([.55,0,1,.45]),backIn:CU([.31,.01,.66,-.59]),backOut:CU([.33,1.53,.69,.99])}}));function DU(e,t){if(e)return typeof e==`function`?xU()?tH(e,t):`ease-out`:xB(e)?CU(e):Array.isArray(e)?e.map(e=>DU(e,t)||TU.easeOut):TU[e]}var OU=o((()=>{EB(),SU(),nH(),wU(),EU()}));function Ffe(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=DU(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}var kU=o((()=>{OU()}));function AU(e){return typeof e==`function`&&`applyToOptions`in e}var jU=o((()=>{}));function Ife({type:e,...t}){return AU(e)&&xU()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var MU=o((()=>{SU(),jU()})),NU,PU=o((()=>{EB(),mU(),bU(),OH(),NH(),kU(),MU(),NU=class extends MH{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,Iz(typeof e.type!=`string`,`Mini animate() doesn't support "type" as a string.`,`mini-spring`);let c=Ife(e);this.animation=Ffe(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=EH(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),pU(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return Yz(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+Yz(e)}get time(){return Yz(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Jz(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&yU()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),Uz):r(this)}}}));function Lfe(e){return e in FU}function Rfe(e){typeof e.ease==`string`&&Lfe(e.ease)&&(e.ease=FU[e.ease])}var FU,zfe=o((()=>{EB(),FU={anticipate:uB,backInOut:cB,circInOut:mB}})),IU,LU,RU=o((()=>{EB(),zB(),mU(),IH(),PU(),jH(),zfe(),IU=10,LU=class extends NU{constructor(e){Rfe(e),kH(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new FH({...a,autoplay:!1}),s=Math.max(IU,RB.now()-this.startTime),c=Pz(0,IU,s-IU),l=o.sample(s).value,{name:u}=this.options;i&&u&&pU(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}}})),zU,Bfe=o((()=>{PV(),zU=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(NV.test(e)||e===`0`)&&!e.startsWith(`url(`))}));function Vfe(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Hfe(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=zU(i,t),s=zU(a,t);return Fz(o===s,`You are trying to animate ${t} from "${i}" to "${a}". "${o?a:i}" is not an animatable value.`,`value-not-animatable`),!o||!s?!1:Vfe(e)||(n===`spring`||AU(n))&&r}var Ufe=o((()=>{EB(),jU(),Bfe()}));function BU(e){e.duration=0,e.type=`keyframes`}var VU=o((()=>{})),HU,UU=o((()=>{HU=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`])}));function Wfe(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&WU.test(e[t]))return!0;return!1}var WU,Gfe=o((()=>{WU=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/}));function Kfe(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return KU()&&n&&(HU.has(n)||GU.has(n)&&Wfe(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var GU,KU,qU=o((()=>{EB(),UU(),Gfe(),GU=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),KU=Hz(()=>Object.hasOwnProperty.call(Element.prototype,`animate`))})),JU,YU,XU=o((()=>{EB(),zB(),IH(),OH(),uU(),RU(),Ufe(),VU(),NH(),qU(),JU=40,YU=class extends MH{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=RB.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||lU;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=RB.now();let u=!0;Hfe(e,i,a,o)||(u=!1,(Rz.instantAnimations||!s)&&l?.(EH(e,n,t)),e[0]=e[e.length-1],BU(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>JU?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Kfe(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new LU({...d,element:p})}catch{m=new FH(d)}else m=new FH(d);m.finished.then(()=>{this.notifyFinished()}).catch(Uz),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Pfe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}}));function ZU(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var QU=o((()=>{}));function $U(e,t){return new rW(e,t)}var eW,tW,nW,rW,iW=o((()=>{EB(),zB(),IB(),eW=30,tW=e=>!isNaN(parseFloat(e)),nW={current:void 0},rW=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=RB.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=RB.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=tW(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new qz);let n=this.events[e].add(t);return e===`change`?()=>{n(),MB.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return nW.current&&nW.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=RB.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>eW)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,eW);return Xz(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}}));function aW(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}var oW=o((()=>{}));function sW(e,t){let n=e?.[t]??e?.default??e;return n===e?n:aW(n,e)}var cW=o((()=>{oW()})),lW,uW,dW,fW,pW,mW=o((()=>{ZH(),lW={type:`spring`,stiffness:500,damping:25,restSpeed:10},uW=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),dW={type:`keyframes`,duration:.8},fW={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},pW=(e,{keyframes:t})=>t.length>2?dW:XH.has(e)?e.startsWith(`scale`)?uW(t[1]):lW:fW}));function qfe(e){for(let t in e)if(!hW.has(t))return!0;return!1}var hW,gW=o((()=>{hW=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`])})),_W,vW=o((()=>{EB(),XU(),IH(),cW(),VU(),mW(),OH(),gW(),IB(),_W=(e,t,n,r={},i,a)=>o=>{let s=sW(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=Jz(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};qfe(s)||Object.assign(u,pW(e,u)),u.duration&&=Jz(u.duration),u.repeatDelay&&=Jz(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(BU(u),u.delay===0&&(d=!0)),(Rz.instantAnimations||Rz.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,BU(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=EH(u.keyframes,s);if(e!==void 0){MB.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new FH(u):new YU(u)}}));function Jfe(e){let t=bW.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function yW(e,t,n=1){Iz(n<=xW,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,`max-css-var-depth`);let[r,i]=Jfe(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return zz(e)?parseFloat(e):e}return WB(i)?yW(i,t,n+1):i}var bW,xW,SW=o((()=>{EB(),KB(),bW=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,xW=4}));function CW(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function wW(e,t,n,r){if(typeof t==`function`){let[i,a]=CW(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=CW(r);t=t(n===void 0?e.custom:n,i,a)}return t}var TW=o((()=>{}));function EW(e,t,n){let r=e.getProps();return wW(r,t,n===void 0?r.custom:n,e)}var DW=o((()=>{TW()})),OW,kW=o((()=>{ZH(),OW=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...YH])})),AW,jW=o((()=>{AW=e=>Array.isArray(e)}));function Yfe(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,$U(n))}function Xfe(e){return AW(e)?e[e.length-1]||0:e}function Zfe(e,t){let{transitionEnd:n={},transition:r={},...i}=EW(e,t)||{};i={...i,...n};for(let t in i)Yfe(e,t,Xfe(i[t]))}var MW=o((()=>{iW(),DW(),jW()})),NW,PW=o((()=>{NW=e=>!!(e&&e.getVelocity)}));function Qfe(e){return!!(NW(e)&&e.add)}var FW=o((()=>{PW()}));function IW(e,t){let n=e.getValue(`willChange`);if(Qfe(n))return n.add(t);if(!n&&Rz.WillChange){let n=new Rz.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}var LW=o((()=>{EB(),FW()}));function RW(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var zW=o((()=>{})),BW,VW,HW=o((()=>{zW(),BW=`framerAppearId`,VW=`data-`+RW(BW)}));function UW(e){return e.props[VW]}var WW=o((()=>{HW()}));function $fe({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function GW(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?aW(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&$fe(f,t))continue;let o={delay:n,...sW(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){MB.update(()=>r.set(i));continue}let p=!1;if(KW&&window.MotionHandoffAnimation){let n=UW(e);if(n){let e=window.MotionHandoffAnimation(n,t,MB);e!==null&&(o.startTime=e,p=!0)}}IW(e,t);let m=l??e.shouldReduceMotion;r.start(_W(t,r,i,m&&OW.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>MB.update(()=>{o&&Zfe(e,o)});d.length?Promise.all(d).then(t):t()}return d}var KW,qW=o((()=>{cW(),oW(),kW(),MW(),LW(),WW(),vW(),IB(),KW=typeof window<`u`}));function JW(e,t,n={}){let r=EW(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(GW(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return epe(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function epe(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(JW(c,t,{...o,delay:n+(typeof r==`function`?0:r)+ZU(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}var YW=o((()=>{DW(),QU(),qW()}));function tpe(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>JW(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=JW(e,t,n);else{let i=typeof t==`function`?EW(e,t,n.custom):t;r=Promise.all(GW(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var XW=o((()=>{DW(),qW(),YW()})),ZW,npe=o((()=>{ZW={test:e=>e===`auto`,parse:e=>e}})),QW,$W=o((()=>{QW=e=>t=>t.test(e)})),eG,tG,nG=o((()=>{npe(),XB(),_V(),$W(),eG=[qB,U,pV,fV,hV,mV,ZW],tG=e=>eG.find(QW(e))}));function rpe(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Vz(e)}var ipe=o((()=>{EB()}));function ape(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match($B)||[];if(!r)return e;let i=n.replace(r,``),a=+!!rG.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var rG,iG,aG,oG=o((()=>{PV(),eV(),rG=new Set([`brightness`,`contrast`,`saturate`,`opacity`]),iG=/\b([a-z-]*)\(.*?\)/gu,aG={...NV,getAnimatableNone:e=>{let t=e.match(iG);return t?t.map(ape).join(` `):e}}})),sG,cG=o((()=>{PV(),sG={...NV,getAnimatableNone:e=>{let t=NV.parse(e);return NV.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}}})),lG,ope=o((()=>{XB(),lG={...qB,transform:Math.round}})),uG,dG=o((()=>{XB(),_V(),uG={rotate:fV,pathRotation:fV,rotateX:fV,rotateY:fV,rotateZ:fV,scale:YB,scaleX:YB,scaleY:YB,scaleZ:YB,skew:fV,skewX:fV,skewY:fV,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:JB,originX:gV,originY:gV,originZ:U}})),fG,pG=o((()=>{ope(),XB(),_V(),dG(),fG={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,...uG,zIndex:lG,fillOpacity:JB,strokeOpacity:JB,numOctaves:lG}})),mG,hG,gG=o((()=>{xV(),oG(),cG(),pG(),mG={...fG,color:bV,backgroundColor:bV,outlineColor:bV,fill:bV,stroke:bV,borderColor:bV,borderTopColor:bV,borderRightColor:bV,borderBottomColor:bV,borderLeftColor:bV,filter:aG,WebkitFilter:aG,mask:sG,WebkitMask:sG},hG=e=>mG[e]}));function _G(e,t){let n=hG(e);return vG.has(n)||(n=NV),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var vG,yG=o((()=>{PV(),oG(),cG(),gG(),vG=new Set([aG,sG])}));function spe(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!bG.has(t)&&CV(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=_G(n,i)}var bG,cpe=o((()=>{PV(),yG(),bG=new Set([`auto`,`none`,`0`])})),xG,SG=o((()=>{kW(),nG(),SW(),KB(),uU(),ipe(),cpe(),nU(),xG=class extends lU{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),WB(r))){let i=yW(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!OW.has(n)||e.length!==2)return;let[r,i]=e,a=tG(r),o=tG(i);if(BB(r)!==BB(i)&&tU[n]){this.needsMeasurement=!0;return}if(a!==o){if(QH(a)&&QH(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else tU[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||rpe(e[t]))&&n.push(t);n.length&&spe(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tU[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=tU[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}})),CG,wG=o((()=>{CG=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`]}));function TG(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var EG=o((()=>{})),DG,OG=o((()=>{DG=(e,t)=>t&&typeof e==`number`?t.transform(e):e}));function kG(e){return Bz(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var AG=o((()=>{EB()})),jG,lpe,MG=o((()=>{jB(),{schedule:jG,cancel:lpe}=kB(queueMicrotask,!1)}));function NG(){return PG.x||PG.y}var PG,FG=o((()=>{PG={x:!1,y:!1}}));function upe(e){return e===`x`||e===`y`?PG[e]?null:(PG[e]=!0,()=>{PG[e]=!1}):PG.x||PG.y?null:(PG.x=PG.y=!0,()=>{PG.x=PG.y=!1})}var dpe=o((()=>{FG()}));function IG(e,t){let n=TG(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}var LG=o((()=>{EG()}));function fpe(e){return!(e.pointerType===`touch`||NG())}function ppe(e,t,n={}){let[r,i,a]=IG(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!fpe(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var mpe=o((()=>{FG(),LG()})),RG,zG=o((()=>{RG=(e,t)=>t?e===t||RG(e,t.parentElement):!1})),BG,VG=o((()=>{BG=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1}));function hpe(e){return HG.has(e.tagName)||e.isContentEditable===!0}function gpe(e){return UG.has(e.tagName)||e.isContentEditable===!0}var HG,UG,WG=o((()=>{HG=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]),UG=new Set([`INPUT`,`SELECT`,`TEXTAREA`])})),GG,KG=o((()=>{GG=new WeakSet}));function qG(e){return t=>{t.key===`Enter`&&e(t)}}function JG(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var YG,_pe=o((()=>{KG(),YG=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=qG(()=>{if(GG.has(n))return;JG(n,`down`);let e=qG(()=>{JG(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>JG(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)}}));function XG(e){return BG(e)&&!NG()}function vpe(e,t,n={}){let[r,i,a]=IG(e,n),o=e=>{let r=e.currentTarget;if(!XG(e)||ZG.has(e))return;GG.add(r),n.stopPropagation&&ZG.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),GG.has(r)&&GG.delete(r),XG(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||RG(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),kG(e)&&(e.addEventListener(`focus`,e=>YG(e,i)),!hpe(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var ZG,ype=o((()=>{AG(),FG(),zG(),VG(),LG(),WG(),_pe(),KG(),ZG=new WeakSet}));function QG(e){return Bz(e)&&`ownerSVGElement`in e}var $G=o((()=>{EB()}));function bpe({target:e,borderBoxSize:t}){eK.get(e)?.forEach(n=>{n(e,{get width(){return rK(e,t)},get height(){return iK(e,t)}})})}function xpe(e){e.forEach(bpe)}function Spe(){typeof ResizeObserver>`u`||(tK=new ResizeObserver(xpe))}function Cpe(e,t){tK||Spe();let n=TG(e);return n.forEach(e=>{let n=eK.get(e);n||(n=new Set,eK.set(e,n)),n.add(t),tK?.observe(e)}),()=>{n.forEach(e=>{let n=eK.get(e);n?.delete(t),n?.size||tK?.unobserve(e)})}}var eK,tK,nK,rK,iK,wpe=o((()=>{$G(),EG(),eK=new WeakMap,nK=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:QG(r)&&`getBBox`in r?r.getBBox()[t]:r[n],rK=nK(`inline`,`width`,`offsetWidth`),iK=nK(`block`,`height`,`offsetHeight`)}));function Tpe(){oK=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};aK.forEach(t=>t(e))},window.addEventListener(`resize`,oK)}function Epe(e){return aK.add(e),oK||Tpe(),()=>{aK.delete(e),!aK.size&&typeof oK==`function`&&(window.removeEventListener(`resize`,oK),oK=void 0)}}var aK,oK,Dpe=o((()=>{aK=new Set}));function sK(e,t){return typeof e==`function`?Epe(e):Cpe(e,t)}var Ope=o((()=>{wpe(),Dpe()})),cK,lK=o((()=>{cK={value:null,addProjectionMetrics:null}}));function kpe(e){return QG(e)&&e.tagName===`svg`}var uK=o((()=>{$G()})),dK,fK,pK=o((()=>{xV(),PV(),nG(),$W(),dK=[...eG,bV,NV],fK=e=>dK.find(QW(e))})),mK,hK,gK,_K,vK=o((()=>{mK=()=>({translate:0,scale:1,origin:0,originPoint:0}),hK=()=>({x:mK(),y:mK()}),gK=()=>({min:0,max:0}),_K=()=>({x:gK(),y:gK()})})),yK,bK=o((()=>{yK=new WeakMap}));function xK(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}var SK=o((()=>{}));function CK(e){return typeof e==`string`||Array.isArray(e)}var wK=o((()=>{})),TK,EK,DK=o((()=>{TK=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],EK=[`initial`,...TK]}));function OK(e){return xK(e.animate)||EK.some(t=>CK(e[t]))}function kK(e){return!!(OK(e)||e.variants)}var AK=o((()=>{SK(),wK(),DK()}));function Ape(e,t,n){for(let r in t){let i=t[r],a=n[r];if(NW(i))e.addValue(r,i);else if(NW(a))e.addValue(r,$U(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,$U(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var jK=o((()=>{iW(),PW()})),MK,NK,PK=o((()=>{MK={current:null},NK={current:!1}}));function jpe(){if(NK.current=!0,FK){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>MK.current=e.matches;e.addEventListener(`change`,t),t()}else MK.current=!1}}var FK,IK=o((()=>{PK(),FK=typeof window<`u`}));function LK(e){zK=e}function Mpe(){return zK}var RK,zK,BK,VK=o((()=>{EB(),uU(),PU(),UU(),MG(),zB(),vK(),iW(),PV(),yG(),pK(),PW(),bK(),AK(),ZH(),jK(),IK(),TW(),PK(),IB(),RK=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],zK={},BK=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=lU,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=RB.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,MB.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=OK(t),this.isVariantNode=kK(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&NW(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,yK.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(NK.current||jpe(),this.shouldReduceMotion=MK.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),NB(this.notifyUpdate),NB(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&HU.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new NU({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:Jz(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=XH.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&MB.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in zK){let t=zK[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):_K()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<RK.length;t++){let n=RK[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ape(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=$U(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(zz(n)||Vz(n))?n=parseFloat(n):!fK(n)&&NV.test(t)&&(n=_G(e,t)),this.setBaseTarget(e,NW(n)?n.get():n)),NW(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=wW(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!NW(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new qz),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){jG.render(this.render)}}})),HK,UK=o((()=>{PW(),SG(),VK(),HK=class extends BK{constructor(){super(...arguments),this.KeyframeResolver=xG}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;NW(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}}})),WK,Npe=o((()=>{WK=class{constructor(e){this.isMounted=!1,this.node=e}update(){}}}));function GK({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ppe({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fpe(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}var KK=o((()=>{}));function qK(e){return e===void 0||e===1}function JK({scale:e,scaleX:t,scaleY:n}){return!qK(e)||!qK(t)||!qK(n)}function YK(e){return JK(e)||XK(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function XK(e){return ZK(e.x)||ZK(e.y)}function ZK(e){return e&&e!==`0%`}var QK=o((()=>{}));function $K(e,t,n){return n+t*(e-n)}function eq(e,t,n,r,i){return i!==void 0&&(e=$K(e,i,r)),$K(e,n,r)+t}function tq(e,t=0,n=1,r,i){e.min=eq(e.min,t,n,r,i),e.max=eq(e.max,t,n,r,i)}function nq(e,{x:t,y:n}){tq(e.x,t.translate,t.scale,t.originPoint),tq(e.y,n.translate,n.scale,n.originPoint)}function Ipe(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(rq(e.x,-a.scroll.offset.x),rq(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,nq(e,o)),r&&YK(a.latestValues)&&oq(e,a.latestValues,a.layout?.layoutBox))}t.x<cq&&t.x>sq&&(t.x=1),t.y<cq&&t.y>sq&&(t.y=1)}function rq(e,t){e.min+=t,e.max+=t}function iq(e,t,n,r,i=.5){tq(e,t,n,RV(e.min,e.max,i),r)}function aq(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function oq(e,t,n){let r=n??e;iq(e.x,aq(t.x,r.x),t.scaleX,t.scale,t.originX),iq(e.y,aq(t.y,r.y),t.scaleY,t.scale,t.originY)}var sq,cq,lq=o((()=>{zV(),QK(),sq=.999999999999,cq=1.0000000000001}));function uq(e,t){return GK(Fpe(e.getBoundingClientRect(),t))}function Lpe(e,t,n){let r=uq(e,n),{scroll:i}=t;return i&&(rq(r.x,i.offset.x),rq(r.y,i.offset.y)),r}var dq=o((()=>{KK(),lq()}));function Rpe(e,t,n){let r=``,i=!0;for(let a=0;a<pq;a++){let o=YH[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=DG(s,fG[o]);if(!c){i=!1;let t=fq[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${DG(a,fG.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}var fq,pq,mq=o((()=>{OG(),pG(),ZH(),fq={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},pq=YH.length}));function hq(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(XH.has(e)){o=!0;continue}if(HB(e)){i[e]=n;continue}{let t=DG(n,fG[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Rpe(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var gq=o((()=>{OG(),pG(),ZH(),KB(),mq()}));function _q(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}var vq=o((()=>{}));function yq(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var bq,xq=o((()=>{_V(),bq={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(U.test(e))e=parseFloat(e);else return e}return`${yq(e,t.target.x)}% ${yq(e,t.target.y)}%`}}})),Sq,Cq=o((()=>{PV(),zV(),Sq={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=NV.parse(e);if(i.length>5)return r;let a=NV.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=RV(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}}})),wq,Tq=o((()=>{wG(),xq(),Cq(),wq={borderRadius:{...bq,applyTo:[...CG]},borderTopLeftRadius:bq,borderTopRightRadius:bq,borderBottomLeftRadius:bq,borderBottomRightRadius:bq,boxShadow:Sq}}));function Eq(e,{layout:t,layoutId:n}){return XH.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!wq[e]||e===`opacity`)}var Dq=o((()=>{ZH(),Tq()}));function Oq(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(NW(r[t])||i&&NW(i[t])||Eq(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}var kq=o((()=>{PW(),Dq()}));function zpe(e){return window.getComputedStyle(e)}var Aq,Bpe=o((()=>{EB(),KB(),ZH(),JH(),dq(),UK(),gq(),vq(),kq(),Aq=class extends HK{constructor(){super(...arguments),this.type=`html`,this.renderInstance=_q}mount(e){Iz(!!e.style,`motion.create() components must forward their ref to a HTML or SVG element`,`custom-component-ref`),super.mount(e)}readValueFromInstance(e,t){if(XH.has(t))return this.projection?.isProjecting?LH(t):qH(e,t);{let n=zpe(e),r=(HB(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return uq(e,t)}build(e,t,n){hq(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Oq(e,t,n)}}}));function Vpe(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?jq:Mq;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var jq,Mq,Nq=o((()=>{jq={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Mq={offset:`strokeDashoffset`,array:`strokeDasharray`}}));function Pq(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(hq(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Fq)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Vpe(d,i,a,o,!1)}var Fq,Iq=o((()=>{gq(),Nq(),Fq=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`]})),Lq,Rq=o((()=>{Lq=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`])})),zq,Bq=o((()=>{zq=e=>typeof e==`string`&&e.toLowerCase()===`svg`}));function Hpe(e,t,n,r){_q(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Lq.has(n)?n:RW(n),t.attrs[n])}var Vq=o((()=>{zW(),vq(),Rq()}));function Hq(e,t,n){let r=Oq(e,t,n);for(let n in e)if(NW(e[n])||NW(t[n])){let t=YH.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Uq=o((()=>{PW(),ZH(),kq()})),Wq,Upe=o((()=>{ZH(),gG(),vK(),UK(),zW(),Iq(),Rq(),Bq(),Vq(),Uq(),Wq=class extends HK{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=_K}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(XH.has(t)){let e=hG(t);return e&&e.default||0}if(Fq.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Lq.has(t)?t:RW(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Hq(e,t,n)}build(e,t,n){Pq(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Hpe(e,t,n,r)}mount(e){this.isSVGTag=zq(e.tagName),super.mount(e)}}}));function Gq(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Gq(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Kq;n++){let r=EK[n],i=e.props[r];(CK(i)||i===!1)&&(t[r]=i)}return t}var Kq,qq=o((()=>{wK(),DK(),Kq=EK.length}));function Jq(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Wpe=o((()=>{}));function Gpe(e){return t=>Promise.all(t.map(({animation:t,options:n})=>tpe(e,t,n)))}function Kpe(e){let t=Gpe(e),n=Xq(),r=!0,i=!1,a=t=>(n,r)=>{let i=EW(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Gq(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Qq;t++){let p=Zq[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=CK(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||xK(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=qpe(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=AW(t)&&AW(n)?!Jq(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=EW(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=ZU(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=EW(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Xq(),i=!0}}}function qpe(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Jq(t,e):!1}function Yq(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xq(){return{animate:Yq(!0),whileInView:Yq(),whileHover:Yq(),whileTap:Yq(),whileDrag:Yq(),whileFocus:Yq(),exit:Yq()}}var Zq,Qq,Jpe=o((()=>{XW(),QU(),qq(),SK(),jW(),wK(),DW(),Wpe(),DK(),Zq=[...TK].reverse(),Qq=TK.length}));function $q(e,t){e.min=t.min,e.max=t.max}function eJ(e,t){$q(e.x,t.x),$q(e.y,t.y)}function tJ(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ype=o((()=>{}));function nJ(e){return e.max-e.min}function Xpe(e,t,n){return Math.abs(e-t)<=n}function rJ(e,t,n,r=.5){e.origin=r,e.originPoint=RV(t.min,t.max,e.origin),e.scale=nJ(n)/nJ(t),e.translate=RV(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cJ&&e.scale<=lJ||isNaN(e.scale))&&(e.scale=1),(e.translate>=uJ&&e.translate<=dJ||isNaN(e.translate))&&(e.translate=0)}function iJ(e,t,n,r){rJ(e.x,t.x,n.x,r?r.originX:void 0),rJ(e.y,t.y,n.y,r?r.originY:void 0)}function aJ(e,t,n,r=0){e.min=(r?RV(n.min,n.max,r):n.min)+t.min,e.max=e.min+nJ(t)}function Zpe(e,t,n,r){aJ(e.x,t.x,n.x,r?.x),aJ(e.y,t.y,n.y,r?.y)}function oJ(e,t,n,r=0){let i=r?RV(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+nJ(t)}function sJ(e,t,n,r){oJ(e.x,t.x,n.x,r?.x),oJ(e.y,t.y,n.y,r?.y)}var cJ,lJ,uJ,dJ,fJ=o((()=>{zV(),cJ=.9999,lJ=1.0001,uJ=-.01,dJ=.01}));function pJ(e,t,n,r,i){return e-=t,e=$K(e,1/n,r),i!==void 0&&(e=$K(e,1/i,r)),e}function Qpe(e,t=0,n=1,r=.5,i,a=e,o=e){if(pV.test(t)&&(t=parseFloat(t),t=RV(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=RV(a.min,a.max,r);e===a&&(s-=t),e.min=pJ(e.min,t,n,s,i),e.max=pJ(e.max,t,n,s,i)}function mJ(e,t,[n,r,i],a,o){Qpe(e,t[n],t[r],t[i],t.scale,a,o)}function hJ(e,t,n,r){mJ(e.x,t,gJ,n?n.x:void 0,r?r.x:void 0),mJ(e.y,t,_J,n?n.y:void 0,r?r.y:void 0)}var gJ,_J,vJ=o((()=>{zV(),_V(),lq(),gJ=[`x`,`scaleX`,`originX`],_J=[`y`,`scaleY`,`originY`]}));function yJ(e){return e.translate===0&&e.scale===1}function bJ(e){return yJ(e.x)&&yJ(e.y)}function xJ(e,t){return e.min===t.min&&e.max===t.max}function $pe(e,t){return xJ(e.x,t.x)&&xJ(e.y,t.y)}function SJ(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function CJ(e,t){return SJ(e.x,t.x)&&SJ(e.y,t.y)}function wJ(e){return nJ(e.x)/nJ(e.y)}function TJ(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var EJ=o((()=>{fJ()}));function DJ(e){return[e(`x`),e(`y`)]}var OJ=o((()=>{}));function eme(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var tme=o((()=>{}));function nme(e,t,n,r,i,a){i?(e.opacity=RV(0,n.opacity??1,PJ(r)),e.opacityExit=RV(t.opacity??1,0,FJ(r))):a&&(e.opacity=RV(t.opacity??1,n.opacity??1,r));for(let i=0;i<jJ;i++){let a=CG[i],o=kJ(t,a),s=kJ(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||NJ(o)===NJ(s)?(e[a]=Math.max(RV(MJ(o),MJ(s),r),0),(pV.test(s)||pV.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=RV(t.rotate||0,n.rotate||0,r))}function kJ(e,t){return e[t]===void 0?e.borderRadius:e[t]}function AJ(e,t,n){return r=>r<e?0:r>t?1:n(Kz(e,t,r))}var jJ,MJ,NJ,PJ,FJ,IJ=o((()=>{zV(),_V(),EB(),wG(),jJ=CG.length,MJ=e=>typeof e==`string`?parseFloat(e):e,NJ=e=>typeof e==`number`||U.test(e),PJ=AJ(0,.5,pB),FJ=AJ(.5,.95,Uz)}));function rme(e,t,n){let r=NW(e)?e:$U(e);return r.start(_W(``,r,t,n)),r.animation}var LJ=o((()=>{vW(),iW(),PW()}));function RJ(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var zJ=o((()=>{})),BJ,VJ=o((()=>{BJ=(e,t)=>e.depth-t.depth})),HJ,UJ=o((()=>{EB(),VJ(),HJ=class{constructor(){this.children=[],this.isDirty=!1}add(e){jz(this.children,e),this.isDirty=!0}remove(e){Mz(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(BJ),this.isDirty=!1,this.children.forEach(e)}}}));function ime(e,t){let n=RB.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(NB(r),e(a-t))};return MB.setup(r,!0),()=>NB(r)}var WJ=o((()=>{zB(),IB()}));function GJ(e){return NW(e)?e.get():e}var KJ=o((()=>{PW()})),qJ,JJ=o((()=>{EB(),qJ=class{constructor(){this.members=[]}add(e){jz(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Mz(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Mz(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}})),YJ,XJ=o((()=>{YJ={hasAnimatedSinceResize:!0,hasEverUpdated:!1}}));function ZJ(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ame(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=UW(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,MB,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ame(r)}function QJ({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=lY++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,cK.value&&(oY.nodes=oY.calculatedTargetDeltas=oY.calculatedProjections=0),this.nodes.forEach(cme),this.nodes.forEach(mme),this.nodes.forEach(hme),this.nodes.forEach(lme),cK.addProjectionMetrics&&cK.addProjectionMetrics(oY)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new HJ)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new qz),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=QG(t)&&!kpe(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;MB.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=ime(i,250),YJ.hasAnimatedSinceResize&&(YJ.hasAnimatedSinceResize=!1,this.nodes.forEach(tY)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||uY,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!CJ(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...sW(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||tY(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),NB(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gme),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ame(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(dme),this.nodes.forEach($J);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(eY);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fme),this.nodes.forEach(pme),this.nodes.forEach(ome),this.nodes.forEach(sme)):this.nodes.forEach(eY),this.clearAllSnapshots();let e=RB.now();PB.delta=Pz(0,1e3/60,e-PB.timestamp),PB.timestamp=e,PB.isProcessing=!0,FB.update.process(PB),FB.preRender.process(PB),FB.render.process(PB),PB.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jG.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ume),this.sharedNodes.forEach(_me)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,MB.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){MB.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!nJ(this.snapshot.measuredBox.x)&&!nJ(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=_K(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!bJ(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||YK(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),bme(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return _K();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(xme))){let{scroll:e}=this.root;e&&(rq(t.x,e.offset.x),rq(t.y,e.offset.y))}return t}removeElementScroll(e){let t=_K();if(eJ(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&eJ(t,e),rq(t.x,i.offset.x),rq(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||_K();eJ(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(rq(r.x,-n.scroll.offset.x),rq(r.y,-n.scroll.offset.y)),YK(n.latestValues)&&oq(r,n.latestValues,n.layout?.layoutBox)}return YK(this.latestValues)&&oq(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=_K();eJ(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!YK(n.latestValues))continue;let r;n.instance&&(JK(n.latestValues)&&n.updateSnapshot(),r=_K(),eJ(r,n.measurePageBox())),hJ(t,n.latestValues,n.snapshot?.layoutBox,r)}return YK(this.latestValues)&&hJ(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==PB.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=PB.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=_K(),this.targetWithTransforms=_K()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Zpe(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):eJ(this.target,this.layout.layoutBox),nq(this.target,this.targetDelta)):eJ(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),cK.value&&oY.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||JK(this.parent.latestValues)||XK(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=_K(),this.relativeTargetOrigin=_K(),sJ(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),eJ(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===PB.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;eJ(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Ipe(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=_K());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(tJ(this.prevProjectionDelta.x,this.projectionDelta.x),tJ(this.prevProjectionDelta.y,this.projectionDelta.y)),iJ(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!TJ(this.projectionDelta.x,this.prevProjectionDelta.x)||!TJ(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),cK.value&&oY.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=hK(),this.projectionDelta=hK(),this.projectionDeltaWithTransform=hK()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=hK();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=_K(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(yme));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=RV(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=RV(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(nY(o.x,e.x,n),nY(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sJ(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),vme(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&$pe(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=_K(),eJ(f,this.relativeTarget)),c&&(this.animationValues=a,nme(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(NB(this.pendingAnimation),void 0),this.pendingAnimation=MB.update(()=>{YJ.hasAnimatedSinceResize=!0,this.motionValue||=$U(0),this.motionValue.jump(0,!1),this.currentAnimation=rme(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(cY),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&aY(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||_K();let t=nJ(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=nJ(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}eJ(t,n),oq(t,i),iJ(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new qJ),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ZJ(`z`,e,r,this.animationValues);for(let t=0;t<sY.length;t++)ZJ(`rotate${sY[t]}`,e,r,this.animationValues),ZJ(`skew${sY[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=GJ(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=GJ(t?.pointerEvents)||``),this.hasProjected&&!YK(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=eme(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in wq){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=wq[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?GJ(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach($J),this.root.sharedNodes.clear()}}}function ome(e){e.updateLayout()}function sme(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)DJ(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=nJ(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;$q(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else aY(i,t.layoutBox,n)&&DJ(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=nJ(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=hK();iJ(o,n,t.layoutBox);let s=hK();a?iJ(s,e.applyTransform(r,!0),t.measuredBox):iJ(s,n,t.layoutBox);let c=!bJ(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=_K();sJ(s,t.layoutBox,i.layoutBox,o);let c=_K();sJ(c,n,a.layoutBox,o),CJ(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function cme(e){cK.value&&oY.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function lme(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ume(e){e.clearSnapshot()}function $J(e){e.clearMeasurements()}function dme(e){e.isLayoutDirty=!0,e.updateLayout()}function eY(e){e.isLayoutDirty=!1}function fme(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function pme(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function tY(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mme(e){e.resolveTargetDelta()}function hme(e){e.calcProjection()}function gme(e){e.resetSkewAndRotation()}function _me(e){e.removeLeadSnapshot()}function nY(e,t,n){e.translate=RV(t.translate,0,n),e.scale=RV(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rY(e,t,n,r){e.min=RV(t.min,n.min,r),e.max=RV(t.max,n.max,r)}function vme(e,t,n,r){rY(e.x,t.x,n.x,r),rY(e.y,t.y,n.y,r)}function yme(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}function iY(e){e.min=fY(e.min),e.max=fY(e.max)}function bme(e){iY(e.x),iY(e.y)}function aY(e,t,n){return e===`position`||e===`preserve-aspect`&&!Xpe(wJ(t),wJ(n),.2)}function xme(e){return e!==e.root&&e.scroll?.wasRoot}var oY,sY,cY,lY,uY,dY,fY,pY=o((()=>{EB(),LJ(),WW(),cW(),MG(),zB(),Tq(),lK(),WJ(),$G(),uK(),zV(),iW(),KJ(),IJ(),Ype(),lq(),fJ(),vJ(),vK(),EJ(),JJ(),tme(),OJ(),UJ(),QK(),XJ(),IB(),oY={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},sY=[``,`X`,`Y`,`Z`],cY=1e3,lY=0,uY={duration:.45,ease:[.4,0,.1,1]},dY=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fY=dY(`applewebkit/`)&&!dY(`chrome/`)?Math.round:Uz})),mY,hY=o((()=>{zJ(),pY(),mY=QJ({attachResizeListener:(e,t)=>RJ(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0})})),gY,_Y,Sme=o((()=>{pY(),hY(),gY={current:void 0},_Y=QJ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!gY.current){let e=new mY({});e.mount(window),e.setOptions({layoutScroll:!0}),gY.current=e}return gY.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`})})),vY=o((()=>{XU(),IH(),PU(),RU(),EB(),iW(),vW(),cW(),SW(),mW(),OH(),KB(),gW(),XW(),qW(),YW(),HW(),WW(),bH(),TH(),hH(),aH(),oH(),SG(),uU(),CH(),SH(),wG(),wU(),SU(),EU(),OU(),kU(),qU(),UU(),MU(),nH(),IB(),pG(),OG(),fU(),ZH(),AG(),jB(),MG(),zB(),FG(),dpe(),mpe(),ype(),WG(),zG(),VG(),JH(),mU(),jW(),kW(),Ope(),lK(),xH(),$G(),uK(),$V(),GV(),ZV(),zV(),qV(),gU(),bU(),PW(),xV(),uV(),yV(),cV(),PV(),nG(),gG(),dG(),XB(),_V(),$W(),yG(),pK(),LW(),FW(),UK(),Npe(),Bpe(),vK(),VK(),bK(),Upe(),Jpe(),qq(),SK(),AK(),Dq(),wK(),jK(),DW(),TW(),MW(),DK(),IK(),KK(),lq(),fJ(),vJ(),EJ(),OJ(),dq(),xq(),Cq(),IJ(),LJ(),zJ(),VJ(),UJ(),WJ(),KJ(),pY(),hY(),Sme(),XJ(),JJ(),gq(),mq(),kq(),Iq(),Rq(),Bq(),Nq(),Vq(),Uq(),OB(),Tq(),PK()})),yY,bY,xY=o((()=>{yY=u(p(),1),bY=(0,yY.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`})}));function SY(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Cme(...e){return t=>{let n=!1,r=e.map(e=>{let r=SY(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():SY(e[t],null)}}}}function wme(...e){return CY.useCallback(Cme(...e),e)}var CY,wY=o((()=>{CY=u(p(),1)}));function Tme({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,DY.useId)(),s=(0,DY.useRef)(null),c=(0,DY.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,DY.useContext)(bY),u=wme(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,DY.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
[data-motion-pop-id="${o}"] {
position: absolute !important;
width: ${e}px !important;
height: ${u}px !important;
${_}px !important;
${v}px !important;
}
`),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,TY.jsx)(OY,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:EY.cloneElement(e,{ref:u})})}var TY,EY,DY,OY,kY=o((()=>{TY=ho(),vY(),EY=u(p(),1),DY=u(p(),1),xY(),wY(),OY=class extends EY.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(kG(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=kG(e)&&e.offsetWidth||0,r=kG(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}}));function Eme(){return new Map}var AY,jY,MY,NY,PY=o((()=>{AY=ho(),jY=u(p(),1),MY=u(p(),1),Az(),Sz(),Dz(),kY(),NY=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=bz(Eme),d=(0,MY.useId)(),f=(0,MY.useRef)(n),p=(0,MY.useRef)(r);Ez(()=>{f.current=n,p.current=r});let m=!0,h=(0,MY.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,MY.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),jY.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,AY.jsx)(Tme,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,AY.jsx)(kz.Provider,{value:h,children:e})}}));function FY(e=!0){let t=(0,IY.useContext)(kz);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,IY.useId)();(0,IY.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,IY.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var IY,LY=o((()=>{IY=u(p(),1),Az()}));function RY(e){let t=[];return zY.Children.forEach(e,e=>{(0,zY.isValidElement)(e)&&t.push(e)}),t}var zY,BY,Dme=o((()=>{zY=u(p(),1),BY=e=>e.key||``})),VY,HY,UY,Ome=o((()=>{VY=ho(),HY=u(p(),1),yz(),Sz(),Dz(),PY(),LY(),Dme(),UY=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=FY(o),f=(0,HY.useMemo)(()=>RY(e),[e]),p=o&&!u?[]:f.map(BY),m=(0,HY.useRef)(!0),h=(0,HY.useRef)(f),g=bz(()=>new Map),_=(0,HY.useRef)(new Set),[v,y]=(0,HY.useState)(f),[b,x]=(0,HY.useState)(f);Ez(()=>{o&&!u&&!b.length&&d?.()},[u,o,b.length,d]),Ez(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=BY(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f],t=0;for(let n of b){let r=p.indexOf(BY(n));r===-1?(e.splice(t++,0,n),S.push(n)):t=r+S.length+1}return a===`wait`&&S.length&&(e=S),x(RY(e)),y(f),null}let{forceRender:C}=(0,HY.useContext)(vz);return(0,VY.jsx)(VY.Fragment,{children:b.map(e=>{let v=BY(e),y=o&&!u?!1:f===b||p.includes(v);return(0,VY.jsx)(NY,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})}})),WY,GY,KY=o((()=>{WY=u(p(),1),GY=(0,WY.createContext)({strict:!1})}));function kme(){if(YY)return;let e={};for(let t in JY)e[t]={isEnabled:e=>JY[t].some(t=>!!e[t])};LK(e),YY=!0}function qY(){return kme(),Mpe()}var JY,YY,XY=o((()=>{vY(),JY={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},YY=!1}));function Ame(e){let t=qY();for(let n in e)t[n]={...t[n],...e[n]};LK(t)}var ZY=o((()=>{vY(),XY()})),QY,$Y,eX=o((()=>{QY=u(p(),1),$Y=(0,QY.createContext)({})}));function jme(e,t){if(OK(e)){let{initial:t,animate:n}=e;return{initial:t===!1||CK(t)?t:void 0,animate:CK(n)?n:void 0}}return e.inherit===!1?{}:t}var Mme=o((()=>{vY()}));function Nme(e){let{initial:t,animate:n}=jme(e,(0,nX.useContext)($Y));return(0,nX.useMemo)(()=>({initial:t,animate:n}),[tX(t),tX(n)])}function tX(e){return Array.isArray(e)?e.join(` `):e}var nX,Pme=o((()=>{nX=u(p(),1),eX(),Mme()})),rX,iX=o((()=>{rX=()=>({style:{},transform:{},transformOrigin:{},vars:{}})}));function aX(e,t,n){for(let r in t)!NW(t[r])&&!Eq(r,n)&&(e[r]=t[r])}function Fme({transformTemplate:e},t){return(0,oX.useMemo)(()=>{let n=rX();return hq(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ime(e,t){let n=e.style||{},r={};return aX(r,n,e),Object.assign(r,Fme(e,t)),r}function Lme(e,t){let n={},r=Ime(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var oX,sX=o((()=>{vY(),oX=u(p(),1),iX()})),cX,lX=o((()=>{iX(),cX=()=>({...rX(),attrs:{}})}));function Rme(e,t,n,r){let i=(0,uX.useMemo)(()=>{let n=cX();return Pq(n,t,zq(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};aX(t,e.style,e),i.style={...t,...i.style}}return i}var uX,zme=o((()=>{vY(),uX=u(p(),1),sX(),lX()}));function dX(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||fX.has(e)}var fX,pX=o((()=>{fX=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`))}));function Bme(e,t){return e.startsWith(`on`)?!dX(e):t?.(e)??!dX(e)}function Vme(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(NW(e[a])||(Bme(a,r)||n===!0&&dX(a)||!t&&!dX(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var mX=o((()=>{vY(),pX()})),hX,Hme=o((()=>{hX=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`]}));function gX(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(hX.indexOf(e)>-1||/[A-Z]/u.test(e))}var _X=o((()=>{Hme()}));function Ume(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??gX(e)?Rme:Lme)(t,r,i,e),l=Vme(t,typeof e==`string`,a,s),u=e===vX.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,vX.useMemo)(()=>NW(d)?d.get():d,[d]);return(0,vX.createElement)(e,{...u,children:f})}var vX,Wme=o((()=>{vY(),vX=u(p(),1),sX(),zme(),mX(),_X()}));function Gme({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Kme(n,r,i,e),renderState:t()}}function Kme(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=GJ(a[e]);let{initial:o,animate:s}=e,c=OK(e),l=kK(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!xK(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=wW(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var yX,bX,xX=o((()=>{vY(),yX=u(p(),1),eX(),Az(),Sz(),bX=e=>(t,n)=>{let r=(0,yX.useContext)($Y),i=(0,yX.useContext)(kz),a=()=>Gme(e,t,r,i);return n?a():bz(a)}})),SX,qme=o((()=>{vY(),xX(),iX(),SX=bX({scrapeMotionValuesFromProps:Oq,createRenderState:rX})})),CX,Jme=o((()=>{vY(),xX(),lX(),CX=bX({scrapeMotionValuesFromProps:Hq,createRenderState:cX})})),wX,TX=o((()=>{wX=Symbol.for(`motionComponentSymbol`)}));function Yme(e,t,n){let r=(0,EX.useRef)(n);(0,EX.useInsertionEffect)(()=>{r.current=n});let i=(0,EX.useRef)(null);return(0,EX.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var EX,Xme=o((()=>{EX=u(p(),1)})),DX,OX,kX=o((()=>{DX=u(p(),1),OX=(0,DX.createContext)({})}));function AX(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}var jX=o((()=>{}));function Zme(e,t,n,r,i,a){let{visualElement:o}=(0,NX.useContext)($Y),s=(0,NX.useContext)(GY),c=(0,NX.useContext)(kz),l=(0,NX.useContext)(bY),u=l.reducedMotion,d=l.skipAnimations,f=(0,NX.useRef)(null),p=(0,NX.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,NX.useContext)(OX);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Qme(f.current,n,i,h);let g=(0,NX.useRef)(!1);(0,NX.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[VW],v=(0,NX.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Ez(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,NX.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Qme(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:MX(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&AX(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function MX(e){if(e)return e.options.allowProjection===!1?MX(e.parent):e.projection}var NX,$me=o((()=>{vY(),NX=u(p(),1),KY(),xY(),eX(),Az(),kX(),jX(),Dz()}));function PX(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&Ame(r);let a=n?n===`svg`:gX(e),o=a?CX:SX;function s(n,s){let c,l={...(0,IX.useContext)(bY),...n,layoutId:ehe(n)},{isStatic:u,isValidProp:d}=l,f=Nme(n),p=o(n,u);if(!u&&typeof window<`u`){the(l,r);let t=nhe(l);c=t.MeasureLayout,f.visualElement=Zme(e,p,l,i,t.ProjectionNode,a)}return(0,FX.jsxs)($Y.Provider,{value:f,children:[c&&f.visualElement?(0,FX.jsx)(c,{visualElement:f.visualElement,...l}):null,Ume(e,n,Yme(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,IX.forwardRef)(s);return c[wX]=e,c}function ehe({layoutId:e}){let t=(0,IX.useContext)(vz).id;return t&&e!==void 0?t+`-`+e:e}function the(e,t){(0,IX.useContext)(GY).strict}function nhe(e){let{drag:t,layout:n}=qY();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}var FX,IX,rhe=o((()=>{FX=ho(),IX=u(p(),1),yz(),KY(),xY(),eX(),Pme(),Wme(),_X(),qme(),Jme(),XY(),ZY(),TX(),Xme(),$me()}));function ihe(e,t){if(typeof Proxy>`u`)return PX;let n=new Map,r=(n,r)=>PX(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,PX(a,void 0,e,t)),n.get(a))})}var LX=o((()=>{rhe()})),RX,zX,BX=o((()=>{vY(),RX=u(p(),1),_X(),zX=(e,t)=>t.isSVG??gX(e)?new Wq(t):new Aq(t,{allowProjection:e!==RX.Fragment})})),VX,ahe=o((()=>{vY(),VX=class extends WK{constructor(e){super(e),e.animationState||=Kpe(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();xK(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}})),HX,UX,ohe=o((()=>{vY(),HX=0,UX=class extends WK{constructor(){super(...arguments),this.id=HX++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=EW(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}})),WX,GX=o((()=>{ahe(),ohe(),WX={animation:{Feature:VX},exit:{Feature:UX}}}));function KX(e){return{point:{x:e.pageX,y:e.pageY}}}var qX,JX=o((()=>{vY(),qX=e=>t=>BG(t)&&e(t,KX(t))}));function YX(e,t,n,r){return RJ(e,t,qX(n),r)}var XX=o((()=>{vY(),JX()})),ZX,QX=o((()=>{ZX=({current:e})=>e?e.ownerDocument.defaultView:null}));function she(e,t){let n=$X(e.x,t.x),r=$X(e.y,t.y);return Math.sqrt(n**2+r**2)}var $X,eZ=o((()=>{$X=(e,t)=>Math.abs(e-t)}));function tZ(e,t){return t?{point:t(e.point)}:e}function nZ(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rZ({point:e},t){return{point:e,delta:nZ(e,iZ(t)),offset:nZ(e,che(t)),velocity:lhe(t,.1)}}function che(e){return e[0]}function iZ(e){return e[e.length-1]}function lhe(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=iZ(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Jz(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>Jz(t)*2&&(r=e[1]);let a=Yz(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var aZ,oZ,sZ=o((()=>{vY(),EB(),XX(),JX(),eZ(),aZ=new Set([`auto`,`scroll`]),oZ=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=tZ(this.lastRawMoveEventInfo,this.transformPagePoint));let e=rZ(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=she(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=PB;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=tZ(t,this.transformPagePoint),MB.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=rZ(e.type===`pointercancel`?this.lastMoveEventInfo:tZ(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!BG(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=tZ(KX(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=PB;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,rZ(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=Gz(YX(this.contextWindow,`pointermove`,this.handlePointerMove,d),YX(this.contextWindow,`pointerup`,this.handlePointerUp,d),YX(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(aZ.has(e.overflowX)||aZ.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),MB.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),NB(this.updatePoint)}}}));function uhe(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?RV(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?RV(n,e,r.max):Math.min(e,n)),e}function cZ(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function dhe(e,{top:t,left:n,bottom:r,right:i}){return{x:cZ(e.x,n,i),y:cZ(e.y,t,r)}}function lZ(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function fhe(e,t){return{x:lZ(e.x,t.x),y:lZ(e.y,t.y)}}function phe(e,t){let n=.5,r=nJ(e),i=nJ(t);return i>r?n=Kz(t.min,t.max-r,e.min):r>i&&(n=Kz(e.min,e.max-i,t.min)),Pz(0,1,n)}function mhe(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function hhe(e=fZ){return e===!1?e=0:e===!0&&(e=fZ),{x:uZ(e,`left`,`right`),y:uZ(e,`top`,`bottom`)}}function uZ(e,t,n){return{min:dZ(e,t),max:dZ(e,n)}}function dZ(e,t){return typeof e==`number`?e:e[t]||0}var fZ,ghe=o((()=>{vY(),EB(),fZ=.35}));function pZ(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function _he(e,t,n){let r=sK(e,pZ(n)),i=sK(t,pZ(n));return()=>{r(),i()}}function mZ(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function vhe(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var hZ,gZ,yhe=o((()=>{vY(),EB(),XX(),JX(),QX(),jX(),sZ(),ghe(),hZ=new WeakMap,gZ=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=_K(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(KX(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=upe(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),DJ(e=>{let t=this.getAxisMotionValue(e).get()||0;if(pV.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=nJ(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&MB.update(()=>i(e,t),!1,!0),IW(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=vhe(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&MB.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new oZ(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:ZX(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&MB.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!mZ(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=uhe(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&AX(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?dhe(n.layoutBox,e):!1,this.elastic=hhe(t),r!==this.constraints&&!AX(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&DJ(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=mhe(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!AX(e))return!1;let n=e.current;Iz(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.",`drag-constraints-ref`);let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Lpe(n,r.root,this.visualElement.getTransformPagePoint()),a=fhe(r.layout.layoutBox,i);if(t){let e=t(Ppe(a));this.hasMutatedConstraints=!!e,e&&(a=GK(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=DJ(o=>{if(!mZ(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return IW(this.visualElement,e),n.start(_W(e,n,0,t,this.visualElement,!1))}stopAnimation(){DJ(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){DJ(t=>{let{drag:n}=this.getProps();if(!mZ(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-RV(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!AX(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};DJ(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=phe({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),DJ(t=>{if(!mZ(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(RV(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;hZ.set(this.visualElement,this);let e=this.visualElement.current,t=YX(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&gpe(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();AX(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=_he(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),MB.read(r);let o=RJ(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(DJ(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=fZ,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}}})),_Z,bhe=o((()=>{vY(),EB(),yhe(),_Z=class extends WK{constructor(e){super(e),this.removeGroupControls=Uz,this.removeListeners=Uz,this.controls=new gZ(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Uz}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}})),vZ,yZ,xhe=o((()=>{vY(),EB(),XX(),QX(),sZ(),vZ=e=>(t,n)=>{e&&MB.update(()=>e(t,n),!1,!0)},yZ=class extends WK{constructor(){super(...arguments),this.removePointerDownListener=Uz}onPointerDown(e){this.session=new oZ(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ZX(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:vZ(e),onStart:vZ(t),onMove:vZ(n),onEnd:(e,t)=>{delete this.session,r&&MB.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=YX(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}}));function bZ(e){let[t,n]=FY(),r=(0,SZ.useContext)(vz);return(0,xZ.jsx)(wZ,{...e,layoutGroup:r,switchLayoutGroup:(0,SZ.useContext)(OX),isPresent:t,safeToRemove:n})}var xZ,SZ,CZ,wZ,TZ=o((()=>{xZ=ho(),vY(),SZ=u(p(),1),LY(),yz(),kX(),CZ=!1,wZ=class extends SZ.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),CZ&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),YJ.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),CZ=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||MB.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),jG.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;CZ=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}})),EZ,DZ=o((()=>{bhe(),xhe(),TZ(),vY(),EZ={pan:{Feature:yZ},drag:{Feature:_Z,ProjectionNode:_Y,MeasureLayout:bZ}}}));function OZ(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&MB.postRender(()=>i(t,KX(t)))}var kZ,She=o((()=>{vY(),JX(),kZ=class extends WK{mount(){let{current:e}=this.node;e&&(this.unmount=ppe(e,(e,t)=>(OZ(this.node,t,`Start`),e=>OZ(this.node,e,`End`))))}unmount(){}}})),AZ,Che=o((()=>{vY(),EB(),AZ=class extends WK{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=Gz(RJ(this.node.current,`focus`,()=>this.onFocus()),RJ(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}}}));function jZ(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&MB.postRender(()=>i(t,KX(t)))}var MZ,whe=o((()=>{vY(),JX(),MZ=class extends WK{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=vpe(e,(e,t)=>(jZ(this.node,t,`Start`),(e,{success:t})=>jZ(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}}));function The({root:e,...t}){let n=e||document;PZ.has(n)||PZ.set(n,{});let r=PZ.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(IZ,{root:e,...t})),r[i]}function Ehe(e,t,n){let r=The(t);return NZ.set(e,n),r.observe(e),()=>{NZ.delete(e),r.unobserve(e)}}var NZ,PZ,FZ,IZ,Dhe=o((()=>{NZ=new WeakMap,PZ=new WeakMap,FZ=e=>{let t=NZ.get(e.target);t&&t(e)},IZ=e=>{e.forEach(FZ)}}));function Ohe({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var LZ,RZ,khe=o((()=>{vY(),Dhe(),LZ={some:0,all:1},RZ=class extends WK{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:LZ[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Ehe(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Ohe(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}})),zZ,BZ=o((()=>{She(),Che(),whe(),khe(),zZ={inView:{Feature:RZ},tap:{Feature:MZ},focus:{Feature:AZ},hover:{Feature:kZ}}})),VZ,HZ=o((()=>{vY(),TZ(),VZ={layout:{ProjectionNode:_Y,MeasureLayout:bZ}}})),UZ,Ahe=o((()=>{GX(),DZ(),BZ(),HZ(),UZ={...WX,...zZ,...EZ,...VZ}})),WZ,jhe=o((()=>{BX(),LX(),Ahe(),WZ=ihe(UZ,zX)})),Mhe=o((()=>{Ome(),kY(),PY(),yz(),vY(),Dz(),KY(),ZY(),xY(),Sz(),LX(),jhe(),XX(),JX(),GX(),xX(),vY(),mX(),wz(),wY(),BZ(),BX(),DZ(),HZ(),EB(),EB(),LY(),Az(),TX(),pX(),eX(),kX(),eZ()})),Nhe=c({AbstractNumbering:()=>H7,AlignmentType:()=>I1,AnnotationReference:()=>s3,Attributes:()=>_Q,BaseXmlComponent:()=>fQ,Body:()=>t7,Bookmark:()=>K3,BookmarkEnd:()=>J3,BookmarkStart:()=>q3,Border:()=>B1,BorderStyle:()=>z1,BuilderElement:()=>Y,CarriageReturn:()=>p3,CellMerge:()=>b8,CellMergeAttributes:()=>y8,CharacterSet:()=>t6,CheckBox:()=>Ege,CheckBoxSymbolElement:()=>u9,CheckBoxUtil:()=>d9,Column:()=>e7,ColumnBreak:()=>w3,Comment:()=>K4,CommentRangeEnd:()=>W4,CommentRangeStart:()=>U4,CommentReference:()=>G4,Comments:()=>J4,CommentsExtended:()=>Q4,ConcreteHyperlink:()=>V3,ConcreteNumbering:()=>U7,ContinuationSeparator:()=>d3,DayLong:()=>i3,DayShort:()=>t3,DeletedTableCell:()=>_8,DeletedTableRow:()=>h8,DeletedTextRun:()=>f8,Document:()=>n9,DocumentAttributeNamespaces:()=>g5,DocumentAttributes:()=>_5,DocumentBackground:()=>r7,DocumentBackgroundAttributes:()=>n7,DocumentDefaults:()=>e9,DocumentGridType:()=>D5,Drawing:()=>C4,DropCapType:()=>c6,EMPTY_OBJECT:()=>pQ,EmphasisMarkType:()=>l0,EmptyElement:()=>A1,EndnoteIdReference:()=>c9,EndnoteReference:()=>l3,EndnoteReferenceRun:()=>Tge,EndnoteReferenceRunAttributes:()=>s9,Endnotes:()=>h7,ExternalHyperlink:()=>U3,File:()=>n9,FileChild:()=>R3,FootNoteReferenceRunAttributes:()=>a9,FootNotes:()=>E7,Footer:()=>Cge,FooterWrapper:()=>y7,FootnoteReference:()=>o9,FootnoteReferenceElement:()=>c3,FootnoteReferenceRun:()=>wge,FrameAnchorType:()=>l6,FrameWrap:()=>u6,GridSpan:()=>M8,Header:()=>Sge,HeaderFooterReferenceType:()=>k5,HeaderFooterType:()=>A5,HeaderWrapper:()=>A7,HeadingLevel:()=>O3,HeightRule:()=>a5,HighlightColor:()=>w0,HorizontalPositionAlign:()=>Y1,HorizontalPositionRelativeFrom:()=>l2,HpsMeasureElement:()=>k1,HyperlinkType:()=>B3,IgnoreIfEmptyXmlComponent:()=>mQ,ImageRun:()=>D4,ImportedRootElementAttributes:()=>l1,ImportedXmlComponent:()=>c1,InitializableXmlComponent:()=>u1,InsertedTableCell:()=>g8,InsertedTableRow:()=>m8,InsertedTextRun:()=>s8,InternalHyperlink:()=>H3,LastRenderedPageBreak:()=>h3,LeaderType:()=>j3,Level:()=>V7,LevelBase:()=>B7,LevelForOverride:()=>Bhe,LevelFormat:()=>M7,LevelOverride:()=>W7,LevelSuffix:()=>L7,LineNumberRestartFormat:()=>M5,LineRuleType:()=>E3,Math:()=>h6,MathAngledBrackets:()=>n8,MathCurlyBrackets:()=>t8,MathDegree:()=>H6,MathDenominator:()=>v6,MathFraction:()=>b6,MathFunction:()=>Y6,MathFunctionName:()=>q6,MathFunctionProperties:()=>J6,MathIntegral:()=>A6,MathLimit:()=>j6,MathLimitLower:()=>N6,MathLimitUpper:()=>M6,MathNumerator:()=>y6,MathPreSubSuperScript:()=>V6,MathRadical:()=>K6,MathRadicalProperties:()=>G6,MathRoundBrackets:()=>$6,MathRun:()=>_6,MathSquareBrackets:()=>e8,MathSubScript:()=>L6,MathSubSuperScript:()=>z6,MathSum:()=>k6,MathSuperScript:()=>F6,Media:()=>j7,MonthLong:()=>a3,MonthShort:()=>n3,NextAttributeComponent:()=>gQ,NoBreakHyphen:()=>$4,NumberFormat:()=>Z1,NumberProperties:()=>F3,NumberValueElement:()=>N1,NumberedItemReference:()=>Z3,NumberedItemReferenceFormat:()=>Y3,Numbering:()=>G7,OnOffElement:()=>J,OverlapType:()=>J8,Packer:()=>b9,PageBorderDisplay:()=>P5,PageBorderOffsetFrom:()=>F5,PageBorderZOrder:()=>I5,PageBorders:()=>R5,PageBreak:()=>C3,PageBreakBefore:()=>T3,PageNumber:()=>k0,PageNumberElement:()=>f3,PageNumberSeparator:()=>B5,PageOrientation:()=>H5,PageReference:()=>e6,PageTextDirection:()=>K5,PageTextDirectionType:()=>W5,Paragraph:()=>m6,ParagraphProperties:()=>f6,ParagraphPropertiesChange:()=>p6,ParagraphPropertiesDefaults:()=>Q7,ParagraphRunProperties:()=>E0,PatchType:()=>P9,PositionalTab:()=>b3,PositionalTabAlignment:()=>g3,PositionalTabLeader:()=>v3,PositionalTabRelativeTo:()=>_3,PrettifyType:()=>v9,RelativeHorizontalPosition:()=>K8,RelativeVerticalPosition:()=>q8,Run:()=>A0,RunProperties:()=>T0,RunPropertiesChange:()=>D0,RunPropertiesDefaults:()=>$7,SectionProperties:()=>Z5,SectionPropertiesChange:()=>Q5,SectionType:()=>q5,Separator:()=>u3,SequentialIdentifier:()=>M4,ShadingType:()=>a0,SimpleField:()=>P4,SimpleMailMergeField:()=>F4,SoftHyphen:()=>e3,SpaceType:()=>Q1,StringContainer:()=>F1,StringEnumValueElement:()=>P1,StringValueElement:()=>j1,StyleForCharacter:()=>Y7,StyleForParagraph:()=>J7,StyleLevel:()=>xge,Styles:()=>Z7,SymbolRun:()=>P0,TDirection:()=>R8,Tab:()=>m3,TabStopPosition:()=>M3,TabStopType:()=>A3,Table:()=>i5,TableAnchorType:()=>G8,TableBorders:()=>W8,TableCell:()=>V8,TableCellBorders:()=>A8,TableLayoutType:()=>Z8,TableOfContents:()=>bge,TableProperties:()=>n5,TableRow:()=>l5,TableRowProperties:()=>s5,TableRowPropertiesChange:()=>c5,TextDirection:()=>I8,TextEffect:()=>C0,TextRun:()=>j0,TextWrappingSide:()=>l4,TextWrappingType:()=>c4,Textbox:()=>Fge,ThematicBreak:()=>V1,UnderlineType:()=>x0,VerticalAlign:()=>C8,VerticalAlignSection:()=>S8,VerticalAlignTable:()=>x8,VerticalAnchor:()=>g2,VerticalMerge:()=>F8,VerticalMergeRevisionType:()=>v8,VerticalMergeType:()=>N8,VerticalPositionAlign:()=>X1,VerticalPositionRelativeFrom:()=>u2,WORKAROUND2:()=>``,WORKAROUND3:()=>``,WORKAROUND4:()=>``,WidthType:()=>O8,WpgGroupRun:()=>A4,WpsShapeRun:()=>k4,XmlAttributeComponent:()=>hQ,XmlComponent:()=>q,YearLong:()=>o3,YearShort:()=>r3,abstractNumUniqueNumericIdGen:()=>e2,bookmarkUniqueNumericIdGen:()=>r2,commentIdToParaId:()=>q4,concreteNumUniqueNumericIdGen:()=>t2,convertInchesToTwip:()=>Q0,convertMillimetersToTwip:()=>Z0,convertToXmlComponent:()=>o1,createAlignment:()=>L1,createBodyProperties:()=>_2,createBorderElement:()=>R1,createColumns:()=>E5,createDocumentGrid:()=>O5,createDotEmphasisMark:()=>d0,createEmphasisMark:()=>u0,createFrameProperties:()=>d6,createHeaderFooterReference:()=>j5,createHorizontalPosition:()=>m2,createIndent:()=>H1,createLineNumberType:()=>N5,createMathAccentCharacter:()=>x6,createMathBase:()=>S6,createMathLimitLocation:()=>C6,createMathNAryProperties:()=>E6,createMathPreSubSuperScriptProperties:()=>B6,createMathSubScriptElement:()=>D6,createMathSubScriptProperties:()=>I6,createMathSubSuperScriptProperties:()=>R6,createMathSuperScriptElement:()=>O6,createMathSuperScriptProperties:()=>P6,createOutlineLevel:()=>Q3,createPageMargin:()=>z5,createPageNumberType:()=>V5,createPageSize:()=>U5,createParagraphStyle:()=>k3,createRunFonts:()=>_0,createSectionType:()=>J5,createShading:()=>i0,createSimplePos:()=>d2,createSpacing:()=>D3,createStringElement:()=>M1,createTabStop:()=>P3,createTabStopItem:()=>N3,createTableFloatProperties:()=>X8,createTableLayout:()=>Q8,createTableLook:()=>t5,createTableRowHeight:()=>o5,createTableWidthElement:()=>k8,createTransformation:()=>O4,createUnderline:()=>S0,createVerticalAlign:()=>w8,createVerticalPosition:()=>h2,createWrapNone:()=>u4,createWrapSquare:()=>d4,createWrapTight:()=>f4,createWrapTopAndBottom:()=>p4,dateTimeValue:()=>O1,decimalNumber:()=>d1,docPropertiesUniqueNumericIdGen:()=>n2,eighthPointMeasureValue:()=>E1,encodeUtf8:()=>c2,hashedId:()=>a2,hexColorValue:()=>y1,hpsMeasureValue:()=>x1,longHexNumber:()=>m1,measurementOrPercentValue:()=>T1,patchDetector:()=>c_e,patchDocument:()=>o_e,percentageValue:()=>w1,pointMeasureValue:()=>D1,positiveUniversalMeasureValue:()=>v1,sectionMarginDefaults:()=>Y5,sectionPageSizeDefaults:()=>X5,shortHexNumber:()=>h1,signedHpsMeasureValue:()=>S1,signedTwipsMeasureValue:()=>b1,standardizeData:()=>T4,twipsMeasureValue:()=>C1,uCharHexNumber:()=>g1,uniqueId:()=>i2,uniqueNumericIdCreator:()=>$0,uniqueUuid:()=>s2,universalMeasureValue:()=>_1,unsignedDecimalNumber:()=>f1});function GZ(e){"@babel/helpers - typeof";return GZ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},GZ(e)}function Phe(e,t){if(GZ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(GZ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Fhe(e){var t=Phe(e,`string`);return GZ(t)==`symbol`?t:t+``}function W(e,t,n){return(t=Fhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?KZ(Object(n),!0).forEach(function(t){W(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ihe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function qZ(){throw Error(`setTimeout has not been defined`)}function JZ(){throw Error(`clearTimeout has not been defined`)}function YZ(e){if(wQ===setTimeout)return setTimeout(e,0);if((wQ===qZ||!wQ)&&setTimeout)return wQ=setTimeout,setTimeout(e,0);try{return wQ(e,0)}catch{try{return wQ.call(null,e,0)}catch{return wQ.call(this,e,0)}}}function Lhe(e){if(TQ===clearTimeout)return clearTimeout(e);if((TQ===JZ||!TQ)&&clearTimeout)return TQ=clearTimeout,clearTimeout(e);try{return TQ(e)}catch{try{return TQ.call(null,e)}catch{return TQ.call(this,e)}}}function Rhe(){!DQ||!OQ||(DQ=!1,OQ.length?EQ=OQ.concat(EQ):kQ=-1,EQ.length&&XZ())}function XZ(){if(!DQ){var e=YZ(Rhe);DQ=!0;for(var t=EQ.length;t;){for(OQ=EQ,EQ=[];++kQ<t;)OQ&&OQ[kQ].run();kQ=-1,t=EQ.length}OQ=null,DQ=!1,Lhe(e)}}function ZZ(e,t){this.fun=e,this.array=t}function QZ(){}function zhe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function $Z(e,t){if(e==null)return{};var n,r,i=zhe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eQ(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function tQ(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var a=e.apply(t,n);function o(e){eQ(a,r,i,o,s,`next`,e)}function s(e){eQ(a,r,i,o,s,`throw`,e)}o(void 0)})}}var nQ,rQ,iQ,aQ,oQ,sQ,cQ,K,lQ,uQ,dQ,fQ,pQ,q,mQ,hQ,gQ,_Q,vQ,yQ,bQ,xQ,SQ,CQ,wQ,TQ,EQ,DQ,OQ,kQ,AQ,jQ,MQ,NQ,PQ,FQ,IQ,LQ,RQ,zQ,BQ,VQ,HQ,UQ,WQ,GQ,KQ,qQ,JQ,YQ,XQ,ZQ,QQ,$Q,e$,t$,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,f$,p$,m$,h$,g$,_$,v$,y$,b$,x$,S$,C$,w$,T$,E$,D$,O$,k$,A$,j$,M$,N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1,O1,J,k1,A1,j1,M1,N1,P1,F1,Y,I1,L1,R1,z1,B1,V1,H1,U1,W1,G1,K1,q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0,o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0,y0,b0,x0,S0,C0,w0,T0,E0,D0,O0,k0,A0,j0,M0,N0,P0,F0,I0,L0,R0,z0,B0,V0,H0,U0,W0,G0,K0,q0,J0,Y0,X0,Z0,Q0,$0,e2,t2,n2,r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2,P2,F2,I2,L2,R2,z2,B2,V2,H2,U2,W2,G2,K2,q2,J2,Y2,X2,Z2,Q2,$2,e4,t4,n4,r4,i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3,i3,a3,o3,s3,c3,l3,u3,d3,f3,p3,m3,h3,g3,_3,v3,y3,b3,x3,S3,C3,w3,T3,E3,D3,O3,k3,A3,j3,M3,N3,P3,F3,I3,L3,R3,z3,B3,V3,H3,U3,W3,G3,K3,q3,J3,Y3,X3,Z3,Q3,$3,e6,t6,n6,r6,i6,a6,o6,s6,c6,l6,u6,d6,f6,p6,m6,h6,g6,_6,v6,y6,b6,x6,S6,C6,w6,T6,E6,D6,O6,k6,A6,j6,M6,N6,P6,F6,I6,L6,R6,z6,B6,V6,H6,U6,W6,G6,K6,q6,J6,Y6,X6,Z6,Q6,$6,e8,t8,n8,r8,i8,a8,o8,s8,c8,l8,u8,d8,f8,p8,m8,h8,g8,_8,v8,y8,b8,x8,S8,C8,w8,T8,E8,D8,O8,k8,A8,j8,M8,N8,P8,F8,I8,L8,R8,z8,B8,V8,H8,U8,W8,G8,K8,q8,J8,Y8,X8,Z8,Q8,$8,e5,t5,n5,r5,i5,a5,o5,s5,c5,l5,u5,d5,f5,p5,m5,h5,g5,_5,v5,y5,b5,x5,S5,C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5,F5,I5,L5,R5,z5,B5,V5,H5,U5,W5,G5,K5,q5,J5,Y5,X5,Z5,Q5,$5,e7,t7,n7,r7,i7,a7,o7,s7,c7,l7,u7,d7,f7,p7,m7,h7,g7,_7,v7,y7,b7,x7,S7,C7,w7,T7,E7,D7,O7,k7,A7,j7,M7,N7,P7,F7,I7,L7,R7,z7,B7,V7,Bhe,Vhe,Hhe,H7,Uhe,Whe,U7,Ghe,W7,Khe,qhe,G7,Jhe,Yhe,Xhe,Zhe,K7,Qhe,$he,ege,q7,J7,Y7,X7,tge,nge,rge,ige,age,oge,sge,cge,lge,uge,dge,fge,pge,mge,hge,gge,Z7,Q7,$7,e9,_ge,t9,n9,vge,r9,i9,yge,bge,xge,Sge,Cge,a9,o9,wge,s9,c9,Tge,l9,u9,d9,Ege,Dge,Oge,kge,Age,jge,Mge,Nge,Pge,Fge,Ige,Lge,Rge,zge,f9,p9,m9,h9,Bge,Vge,g9,_9,Hge,Uge,v9,y9,b9,Wge,x9,S9,C9,w9,T9,Gge,Kge,E9,qge,Jge,Yge,D9,Xge,O9,Zge,Qge,k9,A9,j9,$ge,e_e,M9,t_e,N9,n_e,r_e,P9,F9,i_e,a_e,I9,o_e,s_e,L9,c_e,l_e,u_e=o((()=>{nQ=Object.create,rQ=Object.defineProperty,iQ=Object.getOwnPropertyDescriptor,aQ=Object.getOwnPropertyNames,oQ=Object.getPrototypeOf,sQ=Object.prototype.hasOwnProperty,cQ=(e,t)=>()=>(e&&(t=e(e=0)),t),K=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),lQ=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=aQ(t),a=0,o=i.length,s;a<o;a++)s=i[a],!sQ.call(e,s)&&s!==n&&rQ(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=iQ(t,s))||r.enumerable});return e},uQ=(e,t,n)=>(n=e==null?{}:nQ(oQ(e)),lQ(t||!e||!e.__esModule?rQ(n,`default`,{value:e,enumerable:!0}):n,e)),dQ=(e=>d===void 0?typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(d===void 0?e:d)[t]}):e:d)(function(e){if(d!==void 0)return d.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")}),fQ=class{constructor(e){W(this,`rootKey`,void 0),this.rootKey=e}},pQ=Object.seal({}),q=class extends fQ{constructor(e){super(e),W(this,`root`,void 0),this.root=[]}prepForXml(e){e.stack.push(this);let t=this.root.map(t=>t instanceof fQ?t.prepForXml(e):t).filter(e=>e!==void 0);return e.stack.pop(),{[this.rootKey]:t.length?t.length===1&&t[0]?._attr?t[0]:t:pQ}}addChildElement(e){return this.root.push(e),this}},mQ=class extends q{constructor(e,t){super(e),W(this,`includeIfEmpty`,void 0),this.includeIfEmpty=t}prepForXml(e){let t=super.prepForXml(e);if(this.includeIfEmpty||t&&(typeof t[this.rootKey]!=`object`||Object.keys(t[this.rootKey]).length))return t}},hQ=class extends fQ{constructor(e){super(`_attr`),W(this,`root`,void 0),W(this,`xmlKeys`,void 0),this.root=e}prepForXml(e){let t={};return Object.entries(this.root).forEach(([e,n])=>{if(n!==void 0){let r=this.xmlKeys&&this.xmlKeys[e]||e;t[r]=n}}),{_attr:t}}},gQ=class extends fQ{constructor(e){super(`_attr`),W(this,`root`,void 0),this.root=e}prepForXml(e){return{_attr:Object.values(this.root).filter(({value:e})=>e!==void 0).reduce((e,{key:t,value:n})=>G(G({},e),{},{[t]:n}),{})}}},_Q=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{val:`w:val`,color:`w:color`,fill:`w:fill`,space:`w:space`,sz:`w:sz`,type:`w:type`,rsidR:`w:rsidR`,rsidRPr:`w:rsidRPr`,rsidSect:`w:rsidSect`,w:`w:w`,h:`w:h`,top:`w:top`,right:`w:right`,bottom:`w:bottom`,left:`w:left`,header:`w:header`,footer:`w:footer`,gutter:`w:gutter`,linePitch:`w:linePitch`,pos:`w:pos`})}},vQ=K(((e,t)=>{var n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},i=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};function a(e){console&&console.warn&&console.warn(e)}var o=Number.isNaN||function(e){return e!==e};function s(){s.init.call(this)}t.exports=s,t.exports.once=y,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);c=e}}),s.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||o(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this};function u(e){return e._maxListeners===void 0?s.defaultMaxListeners:e._maxListeners}s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else for(var l=c.length,u=g(c,l),n=0;n<l;++n)r(u[n],this,t);return!0};function d(e,t,n,r){var i,o,s;if(l(n),o=e._events,o===void 0?(o=e._events=Object.create(null),e._eventsCount=0):(o.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),o=e._events),s=o[t]),s===void 0)s=o[t]=n,++e._eventsCount;else if(typeof s==`function`?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=u(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var c=Error(`Possible EventEmitter memory leak detected. `+s.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);c.name=`MaxListenersExceededWarning`,c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}s.prototype.addListener=function(e,t){return d(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return d(this,e,t,!0)};function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=f.bind(r);return i.listener=n,r.wrapFn=i,i}s.prototype.once=function(e,t){return l(t),this.on(e,p(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,p(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,i,a,o;if(l(t),r=this._events,r===void 0||(n=r[e],n===void 0))return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():_(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n=this._events,r;if(n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),a;for(r=0;r<i.length;++r)a=i[r],a!==`removeListener`&&this.removeAllListeners(a);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(t=n[e],typeof t==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this};function m(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?v(i):g(i,i.length)}s.prototype.listeners=function(e){return m(this,e,!0)},s.prototype.rawListeners=function(e){return m(this,e,!1)},s.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h;function h(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]};function g(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function _(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function v(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function y(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}x(e,t,a,{once:!0}),t!==`error`&&b(e,i,{once:!0})})}function b(e,t,n){typeof e.on==`function`&&x(e,`error`,t,n)}function x(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener==`function`)e.addEventListener(t,function i(a){r.once&&e.removeEventListener(t,i),n(a)});else throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e)}})),yQ=K(((e,t)=>{t.exports=typeof Object.create==`function`?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),xQ=cQ((()=>{bQ=globalThis||self})),MQ=cQ((()=>{SQ={exports:{}},CQ=SQ.exports={},(function(){try{wQ=typeof setTimeout==`function`?setTimeout:qZ}catch{wQ=qZ}try{TQ=typeof clearTimeout==`function`?clearTimeout:JZ}catch{TQ=JZ}})(),EQ=[],DQ=!1,kQ=-1,CQ.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];EQ.push(new ZZ(e,t)),EQ.length===1&&!DQ&&YZ(XZ)},ZZ.prototype.run=function(){this.fun.apply(null,this.array)},CQ.title=`browser`,CQ.browser=!0,CQ.env={},CQ.argv=[],CQ.version=``,CQ.versions={},CQ.on=QZ,CQ.addListener=QZ,CQ.once=QZ,CQ.off=QZ,CQ.removeListener=QZ,CQ.removeAllListeners=QZ,CQ.emit=QZ,CQ.prependListener=QZ,CQ.prependOnceListener=QZ,CQ.listeners=function(e){return[]},CQ.binding=function(e){throw Error(`process.binding is not supported`)},CQ.cwd=function(){return`/`},CQ.chdir=function(e){throw Error(`process.chdir is not supported`)},CQ.umask=function(){return 0},AQ=SQ.exports,jQ=Ihe(AQ)})),NQ=K(((e,t)=>{t.exports=vQ().EventEmitter})),PQ=K((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f;for(f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),FQ=K((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>1,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),IQ=K((e=>{var t=PQ(),n=FQ(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.TYPED_ARRAY_SUPPORT&&typeof console<`u`&&typeof console.error==`function`&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(ue(e,ArrayBuffer)||e&&ue(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(ue(e,SharedArrayBuffer)||e&&ue(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);var r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);var i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);var n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){for(var t=e.length<0?0:_(e.length)|0,n=o(t),r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(ue(e,Uint8Array)){var t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);var r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n);return Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){var t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||de(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(ue(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),ue(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;for(var n=e.length,r=t.length,i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);var n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(ue(a,Uint8Array))i+a.length>r.length?s.from(a).copy(r,i):Uint8Array.prototype.set.call(r,a,i);else if(s.isBuffer(a))a.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=a.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ue(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);var n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;for(var i=!1;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return ae(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ce(e).length;default:if(i)return r?-1:ae(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){var r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return I(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(var t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){var t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(ue(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n),d=0;d<c;++d)if(l[d]!==u[d]){a=l[d],o=u[d];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,de(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(i)n=0;else return-1}if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){var a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}var l;if(i){var u=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===s)return u*a}else u!==-1&&(l-=l-u),u=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){for(var d=!0,f=0;f<s;f++)if(c(e,l+f)!==c(t,f)){d=!1;break}if(d)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;var a=t.length;r>a/2&&(r=a/2);for(var o=0;o<r;++o){var s=parseInt(t.substr(o*2,2),16);if(de(s))return o;e[n+o]=s}return o}function T(e,t,n,r){return le(ae(t,e.length-n),e,n,r)}function E(e,t,n,r){return le(oe(t),e,n,r)}function D(e,t,n,r){return le(ce(t),e,n,r)}function O(e,t,n,r){return le(se(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;for(var a=!1;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var a=e[i],o=null,s=a>239?4:a>223?3:a>191?2:1;if(i+s<=n){var c,l,u,d;switch(s){case 1:a<128&&(o=a);break;case 2:c=e[i+1],(c&192)==128&&(d=(a&31)<<6|c&63,d>127&&(o=d));break;case 3:c=e[i+1],l=e[i+2],(c&192)==128&&(l&192)==128&&(d=(a&15)<<12|(c&63)<<6|l&63,d>2047&&(d<55296||d>57343)&&(o=d));break;case 4:c=e[i+1],l=e[i+2],u=e[i+3],(c&192)==128&&(l&192)==128&&(u&192)==128&&(d=(a&15)<<18|(c&63)<<12|(l&63)<<6|u&63,d>65535&&d<1114112&&(o=d))}}o===null?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|o&1023),r.push(o),i+=s}return M(r)}var j=4096;function M(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);for(var n=``,r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){var r=``;n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i=``,a=t;a<n;++a)i+=fe[e[a]];return i}function I(e,t,n){for(var r=e.slice(t,n),i=``,a=0;a<r.length-1;a+=2)i+=String.fromCharCode(r[a]+r[a+1]*256);return i}s.prototype.slice=function(e,t){var n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function L(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=this[e],i=1,a=0;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);for(var r=t,i=1,a=this[e+--r];r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function R(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;R(this,e,t,n,i,0)}var a=1,o=0;for(this[t]=e&255;++o<n&&(a*=256);)this[t+o]=e/a&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var i=2**(8*n)-1;R(this,e,t,n,i,0)}var a=n-1,o=1;for(this[t+a]=e&255;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);R(this,e,t,n,i-1,-i)}var a=0,o=1,s=0;for(this[t]=e&255;++a<n&&(o*=256);)e<0&&s===0&&this[t+a-1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=2**(8*n-1);R(this,e,t,n,i-1,-i)}var a=n-1,o=1,s=0;for(this[t+a]=e&255;--a>=0&&(o*=256);)e<0&&s===0&&this[t+a+1]!==0&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function ee(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function te(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return te(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return te(this,e,t,!1,n)};function ne(e,t,r,i,a){return t=+t,r>>>=0,a||ee(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return ne(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return ne(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){var i=e.charCodeAt(0);(r===`utf8`&&i<128||r===`latin1`)&&(e=i)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;var a;if(typeof e==`number`)for(a=t;a<n;++a)this[a]=e;else{var o=s.isBuffer(e)?e:s.from(e,r),c=o.length;if(c===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(a=0;a<n-t;++a)this[a+t]=o[a%c]}return this};var re=/[^+/0-9A-Za-z-_]/g;function ie(e){if(e=e.split(`=`)[0],e=e.trim().replace(re,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function ae(e,t){t||=1/0;for(var n,r=e.length,i=null,a=[],o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function oe(e){for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function se(e,t){for(var n,r,i,a=[],o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function ce(e){return t.toByteArray(ie(e))}function le(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ue(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function de(e){return e!==e}var fe=(function(){for(var e=`0123456789abcdef`,t=Array(256),n=0;n<16;++n)for(var r=n*16,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t})()})),LQ=K(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),RQ=K(((e,t)=>{var n=LQ();t.exports=function(){return n()&&!!Symbol.toStringTag}})),zQ=K(((e,t)=>{t.exports=Object})),BQ=K(((e,t)=>{t.exports=Error})),VQ=K(((e,t)=>{t.exports=EvalError})),HQ=K(((e,t)=>{t.exports=RangeError})),UQ=K(((e,t)=>{t.exports=ReferenceError})),WQ=K(((e,t)=>{t.exports=SyntaxError})),GQ=K(((e,t)=>{t.exports=TypeError})),KQ=K(((e,t)=>{t.exports=URIError})),qQ=K(((e,t)=>{t.exports=Math.abs})),JQ=K(((e,t)=>{t.exports=Math.floor})),YQ=K(((e,t)=>{t.exports=Math.max})),XQ=K(((e,t)=>{t.exports=Math.min})),ZQ=K(((e,t)=>{t.exports=Math.pow})),QQ=K(((e,t)=>{t.exports=Math.round})),$Q=K(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),e$=K(((e,t)=>{var n=$Q();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),t$=K(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),n$=K(((e,t)=>{var n=t$();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),r$=K(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),i$=K(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=LQ();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),a$=K(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),o$=K(((e,t)=>{t.exports=zQ().getPrototypeOf||null})),s$=K(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),c$=K(((e,t)=>{var n=s$();t.exports=Function.prototype.bind||n})),l$=K(((e,t)=>{t.exports=Function.prototype.call})),u$=K(((e,t)=>{t.exports=Function.prototype.apply})),d$=K(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),f$=K(((e,t)=>{var n=c$(),r=u$(),i=l$();t.exports=d$()||n.call(i,r)})),p$=K(((e,t)=>{var n=c$(),r=GQ(),i=l$(),a=f$();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),m$=K(((e,t)=>{var n=p$(),r=n$(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),h$=K(((e,t)=>{var n=a$(),r=o$(),i=m$();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),g$=K(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=c$().call(n,r)})),_$=K(((e,t)=>{var n,r=zQ(),i=BQ(),a=VQ(),o=HQ(),s=UQ(),c=WQ(),l=GQ(),u=KQ(),d=qQ(),f=JQ(),p=YQ(),m=XQ(),h=ZQ(),g=QQ(),_=e$(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=n$(),x=r$(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=i$()(),T=h$(),E=o$(),D=a$(),O=u$(),k=l$(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},F=c$(),I=g$(),L=F.call(k,Array.prototype.concat),R=F.call(O,Array.prototype.splice),ee=F.call(k,String.prototype.replace),te=F.call(k,String.prototype.slice),ne=F.call(k,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ie=/\\(\\)?/g,ae=function(e){var t=te(e,0,1),n=te(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return ee(e,re,function(e,t,n,i){r[r.length]=n?ee(i,ie,`$1`):t||e}),r},oe=function(e,t){var n=e,r;if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(ne(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ae(e),r=n.length>0?n[0]:``,i=oe(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],R(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=te(p,0,1),h=te(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),v$=K(((e,t)=>{var n=_$(),r=p$(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),y$=K(((e,t)=>{var n=RQ()(),r=v$()(`Object.prototype.toString`),i=function(e){return n&&e&&typeof e==`object`&&Symbol.toStringTag in e?!1:r(e)===`[object Arguments]`},a=function(e){return i(e)?!0:typeof e==`object`&&!!e&&`length`in e&&typeof e.length==`number`&&e.length>=0&&r(e)!==`[object Array]`&&`callee`in e&&r(e.callee)===`[object Function]`},o=function(){return i(arguments)}();i.isLegacyArguments=a,t.exports=o?i:a})),b$=K(((e,t)=>{var n=Object.prototype.toString,r=Function.prototype.toString,i=/^\s*(?:function)?\*/,a=RQ()(),o=Object.getPrototypeOf,s=function(){if(!a)return!1;try{return Function(`return function*() {}`)()}catch{}},c;t.exports=function(e){if(typeof e!=`function`)return!1;if(i.test(r.call(e)))return!0;if(!a)return n.call(e)===`[object GeneratorFunction]`;if(!o)return!1;if(c===void 0){var t=s();c=t?o(t):!1}return o(e)===c}})),x$=K(((e,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return!s(e)&&(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}})),S$=K(((e,t)=>{var n=x$(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}})),C$=K(((e,t)=>{t.exports=[`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),w$=K(((e,t)=>{xQ();var n=C$(),r=typeof globalThis>`u`?bQ:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}})),T$=K(((e,t)=>{var n=r$(),r=WQ(),i=GQ(),a=n$();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),E$=K(((e,t)=>{var n=r$(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r})),D$=K(((e,t)=>{var n=_$(),r=T$(),i=E$()(),a=n$(),o=GQ(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),O$=K(((e,t)=>{var n=c$(),r=u$(),i=f$();t.exports=function(){return i(n,r,arguments)}})),k$=K(((e,t)=>{var n=D$(),r=r$(),i=p$(),a=O$();t.exports=function(e){var t=i(arguments),r=e.length-(arguments.length-1);return n(t,1+(r>0?r:0),!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),A$=K(((e,t)=>{xQ();var n=S$(),r=w$(),i=k$(),a=v$(),o=n$(),s=h$(),c=a(`Object.prototype.toString`),l=RQ()(),u=typeof globalThis>`u`?bQ:globalThis,d=r(),f=a(`String.prototype.slice`),p=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};l&&o&&s?n(d,function(e){var t=new u[e];if(Symbol.toStringTag in t&&s){var n=s(t),r=o(n,Symbol.toStringTag);!r&&n&&(r=o(s(n),Symbol.toStringTag)),m[`$`+e]=i(r.get)}}):n(d,function(e){var t=new u[e],n=t.slice||t.set;n&&(m[`$`+e]=i(n))});var h=function(e){var t=!1;return n(m,function(n,r){if(!t)try{`$`+n(e)===r&&(t=f(r,1))}catch{}}),t},g=function(e){var t=!1;return n(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch{}}),t};t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!l){var t=f(c(e),8,-1);return p(d,t)>-1?t:t===`Object`&&g(e)}return o?h(e):null}})),j$=K(((e,t)=>{var n=A$();t.exports=function(e){return!!n(e)}})),M$=K((e=>{var t=y$(),n=b$(),r=A$(),i=j$();function a(e){return e.call.bind(e)}var o=typeof BigInt<`u`,s=typeof Symbol<`u`,c=a(Object.prototype.toString),l=a(Number.prototype.valueOf),u=a(String.prototype.valueOf),d=a(Boolean.prototype.valueOf);if(o)var f=a(BigInt.prototype.valueOf);if(s)var p=a(Symbol.prototype.valueOf);function m(e,t){if(typeof e!=`object`)return!1;try{return t(e),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=i;function h(e){return typeof Promise<`u`&&e instanceof Promise||typeof e==`object`&&!!e&&typeof e.then==`function`&&typeof e.catch==`function`}e.isPromise=h;function g(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):i(e)||ee(e)}e.isArrayBufferView=g;function _(e){return r(e)===`Uint8Array`}e.isUint8Array=_;function v(e){return r(e)===`Uint8ClampedArray`}e.isUint8ClampedArray=v;function y(e){return r(e)===`Uint16Array`}e.isUint16Array=y;function b(e){return r(e)===`Uint32Array`}e.isUint32Array=b;function x(e){return r(e)===`Int8Array`}e.isInt8Array=x;function S(e){return r(e)===`Int16Array`}e.isInt16Array=S;function C(e){return r(e)===`Int32Array`}e.isInt32Array=C;function w(e){return r(e)===`Float32Array`}e.isFloat32Array=w;function T(e){return r(e)===`Float64Array`}e.isFloat64Array=T;function E(e){return r(e)===`BigInt64Array`}e.isBigInt64Array=E;function D(e){return r(e)===`BigUint64Array`}e.isBigUint64Array=D;function O(e){return c(e)===`[object Map]`}O.working=typeof Map<`u`&&O(new Map);function k(e){return typeof Map>`u`?!1:O.working?O(e):e instanceof Map}e.isMap=k;function A(e){return c(e)===`[object Set]`}A.working=typeof Set<`u`&&A(new Set);function j(e){return typeof Set>`u`?!1:A.working?A(e):e instanceof Set}e.isSet=j;function M(e){return c(e)===`[object WeakMap]`}M.working=typeof WeakMap<`u`&&M(new WeakMap);function N(e){return typeof WeakMap>`u`?!1:M.working?M(e):e instanceof WeakMap}e.isWeakMap=N;function P(e){return c(e)===`[object WeakSet]`}P.working=typeof WeakSet<`u`&&P(new WeakSet);function F(e){return P(e)}e.isWeakSet=F;function I(e){return c(e)===`[object ArrayBuffer]`}I.working=typeof ArrayBuffer<`u`&&I(new ArrayBuffer);function L(e){return typeof ArrayBuffer>`u`?!1:I.working?I(e):e instanceof ArrayBuffer}e.isArrayBuffer=L;function R(e){return c(e)===`[object DataView]`}R.working=typeof ArrayBuffer<`u`&&typeof DataView<`u`&&R(new DataView(new ArrayBuffer(1),0,1));function ee(e){return typeof DataView>`u`?!1:R.working?R(e):e instanceof DataView}e.isDataView=ee;var te=typeof SharedArrayBuffer<`u`?SharedArrayBuffer:void 0;function ne(e){return c(e)===`[object SharedArrayBuffer]`}function re(e){return te!==void 0&&(ne.working===void 0&&(ne.working=ne(new te)),ne.working?ne(e):e instanceof te)}e.isSharedArrayBuffer=re;function ie(e){return c(e)===`[object AsyncFunction]`}e.isAsyncFunction=ie;function ae(e){return c(e)===`[object Map Iterator]`}e.isMapIterator=ae;function oe(e){return c(e)===`[object Set Iterator]`}e.isSetIterator=oe;function se(e){return c(e)===`[object Generator]`}e.isGeneratorObject=se;function ce(e){return c(e)===`[object WebAssembly.Module]`}e.isWebAssemblyCompiledModule=ce;function le(e){return m(e,l)}e.isNumberObject=le;function ue(e){return m(e,u)}e.isStringObject=ue;function de(e){return m(e,d)}e.isBooleanObject=de;function fe(e){return o&&m(e,f)}e.isBigIntObject=fe;function pe(e){return s&&m(e,p)}e.isSymbolObject=pe;function me(e){return le(e)||ue(e)||de(e)||fe(e)||pe(e)}e.isBoxedPrimitive=me;function he(e){return typeof Uint8Array<`u`&&(L(e)||re(e))}e.isAnyArrayBuffer=he,[`isProxy`,`isExternal`,`isModuleNamespaceObject`].forEach(function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw Error(t+` is not supported in userland`)}})})})),N$=K(((e,t)=>{t.exports=function(e){return e&&typeof e==`object`&&typeof e.copy==`function`&&typeof e.fill==`function`&&typeof e.readUInt8==`function`}})),P$=K((e=>{MQ();var t=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},n=/%[sdj%]/g;e.format=function(e){if(!x(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(o(arguments[r]));return t.join(` `)}for(var r=1,i=arguments,a=i.length,s=String(e).replace(n,function(e){if(e===`%%`)return`%`;if(r>=a)return e;switch(e){case`%s`:return String(i[r++]);case`%d`:return Number(i[r++]);case`%j`:try{return JSON.stringify(i[r++])}catch{return`[Circular]`}default:return e}}),c=i[r];r<a;c=i[++r])v(c)||!T(c)?s+=` `+c:s+=` `+o(c);return s},e.deprecate=function(t,n){if(jQ!==void 0&&jQ.noDeprecation===!0)return t;if(jQ===void 0)return function(){return e.deprecate(t,n).apply(this,arguments)};var r=!1;function i(){if(!r){if(jQ.throwDeprecation)throw Error(n);jQ.traceDeprecation?console.trace(n):console.error(n),r=!0}return t.apply(this,arguments)}return i};var r={},i=/^$/;if(jQ.env.NODE_DEBUG){var a=jQ.env.NODE_DEBUG;a=a.replace(/[|\\{}()[\]^$+?.]/g,`\\$&`).replace(/\*/g,`.*`).replace(/,/g,`$|^`).toUpperCase(),i=RegExp(`^`+a+`$`,`i`)}e.debuglog=function(t){if(t=t.toUpperCase(),!r[t]){if(i.test(t)){var n=jQ.pid;r[t]=function(){var r=e.format.apply(e,arguments);console.error(`%s %d: %s`,t,n,r)}}else r[t]=function(){}}return r[t]};function o(t,n){var r={seen:[],stylize:c};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(n)?r.showHidden=n:n&&e._extend(r,n),C(r.showHidden)&&(r.showHidden=!1),C(r.depth)&&(r.depth=2),C(r.colors)&&(r.colors=!1),C(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=s),u(r,t,r.depth)}e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:`cyan`,number:`yellow`,boolean:`yellow`,undefined:`grey`,null:`bold`,string:`green`,date:`magenta`,regexp:`red`};function s(e,t){var n=o.styles[t];return n?`\x1B[`+o.colors[n][0]+`m`+e+`\x1B[`+o.colors[n][1]+`m`:e}function c(e,t){return e}function l(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function u(t,n,r){if(t.customInspect&&n&&O(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var i=n.inspect(r,t);return x(i)||(i=u(t,i,r)),i}var a=d(t,n);if(a)return a;var o=Object.keys(n),s=l(o);if(t.showHidden&&(o=Object.getOwnPropertyNames(n)),D(n)&&(o.indexOf(`message`)>=0||o.indexOf(`description`)>=0))return f(n);if(o.length===0){if(O(n)){var c=n.name?`: `+n.name:``;return t.stylize(`[Function`+c+`]`,`special`)}if(w(n))return t.stylize(RegExp.prototype.toString.call(n),`regexp`);if(E(n))return t.stylize(Date.prototype.toString.call(n),`date`);if(D(n))return f(n)}var _=``,v=!1,y=[`{`,`}`];if(g(n)&&(v=!0,y=[`[`,`]`]),O(n)&&(_=` [Function`+(n.name?`: `+n.name:``)+`]`),w(n)&&(_=` `+RegExp.prototype.toString.call(n)),E(n)&&(_=` `+Date.prototype.toUTCString.call(n)),D(n)&&(_=` `+f(n)),o.length===0&&(!v||n.length==0))return y[0]+_+y[1];if(r<0)return w(n)?t.stylize(RegExp.prototype.toString.call(n),`regexp`):t.stylize(`[Object]`,`special`);t.seen.push(n);var b=v?p(t,n,r,s,o):o.map(function(e){return m(t,n,r,s,e,v)});return t.seen.pop(),h(b,_,y)}function d(e,t){if(C(t))return e.stylize(`undefined`,`undefined`);if(x(t)){var n=`'`+JSON.stringify(t).replace(/^"|"$/g,``).replace(/'/g,`\\'`).replace(/\\"/g,`"`)+`'`;return e.stylize(n,`string`)}if(b(t))return e.stylize(``+t,`number`);if(_(t))return e.stylize(``+t,`boolean`);if(v(t))return e.stylize(`null`,`null`)}function f(e){return`[`+Error.prototype.toString.call(e)+`]`}function p(e,t,n,r,i){for(var a=[],o=0,s=t.length;o<s;++o)P(t,String(o))?a.push(m(e,t,n,r,String(o),!0)):a.push(``);return i.forEach(function(i){i.match(/^\d+$/)||a.push(m(e,t,n,r,i,!0))}),a}function m(e,t,n,r,i,a){var o,s,c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]};if(c.get?s=c.set?e.stylize(`[Getter/Setter]`,`special`):e.stylize(`[Getter]`,`special`):c.set&&(s=e.stylize(`[Setter]`,`special`)),P(r,i)||(o=`[`+i+`]`),s||(e.seen.indexOf(c.value)<0?(s=v(n)?u(e,c.value,null):u(e,c.value,n-1),s.indexOf(`
`)>-1&&(s=a?s.split(`
`).map(function(e){return` `+e}).join(`
`).slice(2):`
`+s.split(`
`).map(function(e){return` `+e}).join(`
`))):s=e.stylize(`[Circular]`,`special`)),C(o)){if(a&&i.match(/^\d+$/))return s;o=JSON.stringify(``+i),o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.slice(1,-1),o=e.stylize(o,`name`)):(o=o.replace(/'/g,`\\'`).replace(/\\"/g,`"`).replace(/(^"|"$)/g,`'`),o=e.stylize(o,`string`))}return o+`: `+s}function h(e,t,n){var r=0;return e.reduce(function(e,t){return r++,t.indexOf(`
`)>=0&&r++,e+t.replace(/\u001b\[\d\d?m/g,``).length+1},0)>60?n[0]+(t===``?``:t+`
`)+` `+e.join(`,
`)+` `+n[1]:n[0]+t+` `+e.join(`, `)+` `+n[1]}e.types=M$();function g(e){return Array.isArray(e)}e.isArray=g;function _(e){return typeof e==`boolean`}e.isBoolean=_;function v(e){return e===null}e.isNull=v;function y(e){return e==null}e.isNullOrUndefined=y;function b(e){return typeof e==`number`}e.isNumber=b;function x(e){return typeof e==`string`}e.isString=x;function S(e){return typeof e==`symbol`}e.isSymbol=S;function C(e){return e===void 0}e.isUndefined=C;function w(e){return T(e)&&A(e)===`[object RegExp]`}e.isRegExp=w,e.types.isRegExp=w;function T(e){return typeof e==`object`&&!!e}e.isObject=T;function E(e){return T(e)&&A(e)===`[object Date]`}e.isDate=E,e.types.isDate=E;function D(e){return T(e)&&(A(e)===`[object Error]`||e instanceof Error)}e.isError=D,e.types.isNativeError=D;function O(e){return typeof e==`function`}e.isFunction=O;function k(e){return e===null||typeof e==`boolean`||typeof e==`number`||typeof e==`string`||typeof e==`symbol`||e===void 0}e.isPrimitive=k,e.isBuffer=N$();function A(e){return Object.prototype.toString.call(e)}function j(e){return e<10?`0`+e.toString(10):e.toString(10)}var M=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`];function N(){var e=new Date,t=[j(e.getHours()),j(e.getMinutes()),j(e.getSeconds())].join(`:`);return[e.getDate(),M[e.getMonth()],t].join(` `)}e.log=function(){console.log(`%s - %s`,N(),e.format.apply(e,arguments))},e.inherits=yQ(),e._extend=function(e,t){if(!t||!T(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var F=typeof Symbol<`u`?Symbol(`util.promisify.custom`):void 0;e.promisify=function(e){if(typeof e!=`function`)throw TypeError(`The "original" argument must be of type Function`);if(F&&e[F]){var n=e[F];if(typeof n!=`function`)throw TypeError(`The "util.promisify.custom" argument must be of type Function`);return Object.defineProperty(n,F,{value:n,enumerable:!1,writable:!1,configurable:!0}),n}function n(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),i=[],a=0;a<arguments.length;a++)i.push(arguments[a]);i.push(function(e,r){e?n(e):t(r)});try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),F&&Object.defineProperty(n,F,{value:n,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(n,t(e))},e.promisify.custom=F;function I(e,t){if(!e){var n=Error(`Promise was rejected with a falsy value`);n.reason=e,e=n}return t(e)}function L(e){if(typeof e!=`function`)throw TypeError(`The "original" argument must be of type Function`);function n(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if(typeof r!=`function`)throw TypeError(`The last argument must be of type Function`);var i=this,a=function(){return r.apply(i,arguments)};e.apply(this,t).then(function(e){jQ.nextTick(a.bind(null,null,e))},function(e){jQ.nextTick(I.bind(null,e,a))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,t(e)),n}e.callbackify=L})),F$=K(((e,t)=>{function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]==null?{}:arguments[t];t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,n){return t=c(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function s(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c(e){var t=l(e,`string`);return typeof t==`symbol`?t:String(t)}function l(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var u=IQ().Buffer,d=P$().inspect,f=d&&d.custom||`inspect`;function p(e,t,n){u.prototype.copy.call(e,t,n)}t.exports=function(){function e(){a(this,e),this.head=null,this.tail=null,this.length=0}return s(e,[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.head=this.length===1?this.tail=null:this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return u.alloc(0);for(var t=u.allocUnsafe(e>>>0),n=this.head,r=0;n;)p(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),e-=a,e===0){a===i.length?(++n,this.head=t.next?t.next:this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),e-=a,e===0){a===i.length?(++r,this.head=n.next?n.next:this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r(r({},t),{},{depth:0,customInspect:!1}))}}]),e}()})),I$=K(((e,t)=>{MQ();function n(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,jQ.nextTick(o,this,e)):jQ.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?n._writableState?n._writableState.errorEmitted?jQ.nextTick(i,n):(n._writableState.errorEmitted=!0,jQ.nextTick(r,n,e)):jQ.nextTick(r,n,e):t?(jQ.nextTick(i,n),t(e)):jQ.nextTick(i,n)}),this)}function r(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function a(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(e,t){e.emit(`error`,t)}function s(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}t.exports={destroy:n,undestroy:a,errorOrDestroy:s}})),L$=K(((e,t)=>{function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var r={};function i(e,t,i){i||=Error;function a(e,n,r){return typeof t==`string`?t:t(e,n,r)}var o=function(e){n(t,e);function t(t,n,r){return e.call(this,a(t,n,r))||this}return t}(i);o.prototype.name=i.name,o.prototype.code=e,r[e]=o}function a(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}function o(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}function s(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function c(e,t,n){return typeof n!=`number`&&(n=0),n+t.length>e.length?!1:e.indexOf(t,n)!==-1}i(`ERR_INVALID_OPT_VALUE`,function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`},TypeError),i(`ERR_INVALID_ARG_TYPE`,function(e,t,n){var r;typeof t==`string`&&o(t,`not `)?(r=`must not be`,t=t.replace(/^not /,``)):r=`must be`;var i=s(e,` argument`)?`The ${e} ${r} ${a(t,`type`)}`:`The "${e}" ${c(e,`.`)?`property`:`argument`} ${r} ${a(t,`type`)}`;return i+=`. Received type ${typeof n}`,i},TypeError),i(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),i(`ERR_METHOD_NOT_IMPLEMENTED`,function(e){return`The `+e+` method is not implemented`}),i(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),i(`ERR_STREAM_DESTROYED`,function(e){return`Cannot call `+e+` after a stream was destroyed`}),i(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),i(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),i(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),i(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),i(`ERR_UNKNOWN_ENCODING`,function(e){return`Unknown encoding: `+e},TypeError),i(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),t.exports.codes=r})),R$=K(((e,t)=>{var n=L$().codes.ERR_INVALID_OPT_VALUE;function r(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}function i(e,t,i,a){var o=r(t,a,i);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0)throw new n(a?i:`highWaterMark`,o);return Math.floor(o)}return e.objectMode?16:16384}t.exports={getHighWaterMark:i}})),z$=K(((e,t)=>{xQ(),t.exports=n;function n(e,t){if(r(`noDeprecation`))return e;var n=!1;function i(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!bQ.localStorage)return!1}catch{return!1}var t=bQ.localStorage[e];return t!=null&&String(t).toLowerCase()===`true`}})),B$=K(((e,t)=>{xQ(),MQ(),t.exports=T;function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){re(t,e)}}var r;T.WritableState=C;var i={deprecate:z$()},a=NQ(),o=IQ().Buffer,s=(bQ===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:bQ).Uint8Array||function(){};function c(e){return o.from(e)}function l(e){return o.isBuffer(e)||e instanceof s}var u=I$(),d=R$().getHighWaterMark,f=L$().codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,h=f.ERR_MULTIPLE_CALLBACK,g=f.ERR_STREAM_CANNOT_PIPE,_=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,y=f.ERR_STREAM_WRITE_AFTER_END,b=f.ERR_UNKNOWN_ENCODING,x=u.errorOrDestroy;yQ()(T,a);function S(){}function C(e,t,i){r||=V$(),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,`writableHighWaterMark`,i),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=e.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){N(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:i.deprecate(function(){return this.getBuffer()},`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}})();var w;typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(w=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return w.call(this,e)?!0:this===T&&e&&e._writableState instanceof C}})):w=function(e){return e instanceof this};function T(e){r||=V$();var t=this instanceof r;if(!t&&!w.call(T,this))return new T(e);this._writableState=new C(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),a.call(this)}T.prototype.pipe=function(){x(this,new g)};function E(e,t){var n=new y;x(e,n),jQ.nextTick(t,n)}function D(e,t,n,r){var i;return n===null?i=new v:typeof n!=`string`&&!t.objectMode&&(i=new p(`chunk`,[`string`,`Buffer`],n)),!i||(x(e,i),jQ.nextTick(r,i),!1)}T.prototype.write=function(e,t,n){var r=this._writableState,i=!1,a=!r.objectMode&&l(e);return a&&!o.isBuffer(e)&&(e=c(e)),typeof t==`function`&&(n=t,t=null),a?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=S),r.ending?E(this,n):(a||D(this,r,e,n))&&(r.pendingcb++,i=k(this,r,a,e,t,n)),i},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&I(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(e,t,n){return!e.objectMode&&e.decodeStrings!==!1&&typeof t==`string`&&(t=o.from(t,n)),t}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function k(e,t,n,r,i,a){if(!n){var o=O(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;if(c||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,s,r,i,a);return c}function A(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function j(e,t,n,r,i){--t.pendingcb,n?(jQ.nextTick(i,r),jQ.nextTick(te,e,t),e._writableState.errorEmitted=!0,x(e,r)):(i(r),e._writableState.errorEmitted=!0,x(e,r),te(e,t))}function M(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function N(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(typeof i!=`function`)throw new h;if(M(n),t)j(e,n,r,t,i);else{var a=L(n)||e.destroyed;!a&&!n.corked&&!n.bufferProcessing&&n.bufferedRequest&&I(e,n),r?jQ.nextTick(P,e,n,a,i):P(e,n,a,i)}}function P(e,t,n,r){n||F(e,t),t.pendingcb--,r(),te(e,t)}function F(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}function I(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,A(e,t,!0,t.length,a,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(A(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}T.prototype._write=function(e,t,n){n(new m(`_write()`))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||ne(this,r,n),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function L(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function R(e,t){e._final(function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit(`prefinish`),te(e,t)})}function ee(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final==`function`&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,jQ.nextTick(R,e,t)):(t.prefinished=!0,e.emit(`prefinish`)))}function te(e,t){var n=L(t);if(n&&(ee(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}function ne(e,t,n){t.ending=!0,te(e,t),n&&(t.finished?jQ.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}function re(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=u.destroy,T.prototype._undestroy=u.undestroy,T.prototype._destroy=function(e,t){t(e)}})),V$=K(((e,t)=>{MQ();var n=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=c;var r=q$(),i=B$();yQ()(c,r);for(var a=n(i.prototype),o=0;o<a.length;o++){var s=a[o];c.prototype[s]||(c.prototype[s]=i.prototype[s])}function c(e){if(!(this instanceof c))return new c(e);r.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once(`end`,l)))}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function l(){this._writableState.ended||jQ.nextTick(u,this)}function u(e){e.end()}Object.defineProperty(c.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})})),H$=K(((e,t)=>{var n=IQ(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),U$=K((e=>{var t=H$().Buffer,n=t.isEncoding||function(e){switch(e=``+e,e&&e.toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:case`raw`:return!0;default:return!1}};function r(e){if(!e)return`utf8`;for(var t;;)switch(e){case`utf8`:case`utf-8`:return`utf8`;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return`utf16le`;case`latin1`:case`binary`:return`latin1`;case`base64`:case`ascii`:case`hex`:return e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}function i(e){var i=r(e);if(typeof i!=`string`&&(t.isEncoding===n||!n(e)))throw Error(`Unknown encoding: `+e);return i||e}e.StringDecoder=a;function a(e){this.encoding=i(e);var n;switch(this.encoding){case`utf16le`:this.text=f,this.end=p,n=4;break;case`utf8`:this.fillLast=l,n=4;break;case`base64`:this.text=m,this.end=h,n=3;break;default:this.write=g,this.end=_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(n)}a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=d,a.prototype.text=u,a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function c(e,t,n){if((t[0]&192)!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,`�`}}function l(e){var t=this.lastTotal-this.lastNeed,n=c(this,e,t);if(n!==void 0)return n;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u(e,t){var n=s(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t}function f(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function m(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function h(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function g(e){return e.toString(this.encoding)}function _(e){return e&&e.length?this.write(e):``}})),W$=K(((e,t)=>{var n=L$().codes.ERR_STREAM_PREMATURE_CLOSE;function r(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}function i(){}function a(e){return e.setHeader&&typeof e.abort==`function`}function o(e,t,s){if(typeof t==`function`)return o(e,null,t);t||={},s=r(s||i);var c=t.readable||t.readable!==!1&&e.readable,l=t.writable||t.writable!==!1&&e.writable,u=function(){e.writable||f()},d=e._writableState&&e._writableState.finished,f=function(){l=!1,d=!0,c||s.call(e)},p=e._readableState&&e._readableState.endEmitted,m=function(){c=!1,p=!0,l||s.call(e)},h=function(t){s.call(e,t)},g=function(){var t;if(c&&!p)return(!e._readableState||!e._readableState.ended)&&(t=new n),s.call(e,t);if(l&&!d)return(!e._writableState||!e._writableState.ended)&&(t=new n),s.call(e,t)},_=function(){e.req.on(`finish`,f)};return a(e)?(e.on(`complete`,f),e.on(`abort`,g),e.req?_():e.on(`request`,_)):l&&!e._writableState&&(e.on(`end`,u),e.on(`close`,u)),e.on(`end`,m),e.on(`finish`,f),t.error!==!1&&e.on(`error`,h),e.on(`close`,g),function(){e.removeListener(`complete`,f),e.removeListener(`abort`,g),e.removeListener(`request`,_),e.req&&e.req.removeListener(`finish`,f),e.removeListener(`end`,u),e.removeListener(`close`,u),e.removeListener(`finish`,f),e.removeListener(`end`,m),e.removeListener(`error`,h),e.removeListener(`close`,g)}}t.exports=o})),G$=K(((e,t)=>{MQ();var n;function r(e,t,n){return t=i(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){var t=a(e,`string`);return typeof t==`symbol`?t:String(t)}function a(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var o=W$(),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){jQ.nextTick(h,e)}function _(e,t){return function(n,r){e.then(function(){if(t[u]){n(m(void 0,!0));return}t[f](n,r)},r)}}var v=Object.getPrototypeOf(function(){}),y=Object.setPrototypeOf((n={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise(function(t,n){jQ.nextTick(function(){e[l]?n(e[l]):t(m(void 0,!0))})});var n=this[d],r;if(n)r=new Promise(_(n,this));else{var i=this[p].read();if(i!==null)return Promise.resolve(m(i,!1));r=new Promise(this[f])}return this[d]=r,r}},r(n,Symbol.asyncIterator,function(){return this}),r(n,`return`,function(){var e=this;return new Promise(function(t,n){e[p].destroy(null,function(e){if(e){n(e);return}t(m(void 0,!0))})})}),n),v);t.exports=function(e){var t,n=Object.create(y,(t={},r(t,p,{value:e,writable:!0}),r(t,s,{value:null,writable:!0}),r(t,c,{value:null,writable:!0}),r(t,l,{value:null,writable:!0}),r(t,u,{value:e._readableState.endEmitted,writable:!0}),r(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0}),e.on(`readable`,g.bind(null,n)),n}})),K$=K(((e,t)=>{t.exports=function(){throw Error(`Readable.from is not available in the browser`)}})),q$=K(((e,t)=>{xQ(),MQ(),t.exports=E;var n;E.ReadableState=T,vQ().EventEmitter;var r=function(e,t){return e.listeners(t).length},i=NQ(),a=IQ().Buffer,o=(bQ===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:bQ).Uint8Array||function(){};function s(e){return a.from(e)}function c(e){return a.isBuffer(e)||e instanceof o}var l=P$(),u=l&&l.debuglog?l.debuglog(`stream`):function(){},d=F$(),f=I$(),p=R$().getHighWaterMark,m=L$().codes,h=m.ERR_INVALID_ARG_TYPE,g=m.ERR_STREAM_PUSH_AFTER_EOF,_=m.ERR_METHOD_NOT_IMPLEMENTED,v=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,y,b,x;yQ()(E,i);var S=f.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,n){if(typeof e.prependListener==`function`)return e.prependListener(t,n);!e._events||!e._events[t]?e.on(t,n):Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]}function T(e,t,r){n||=V$(),e||={},typeof r!=`boolean`&&(r=t instanceof n),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=p(this,e,`readableHighWaterMark`,r),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(y||=U$().StringDecoder,this.decoder=new y(e.encoding),this.encoding=e.encoding)}function E(e){if(n||=V$(),!(this instanceof E))return new E(e);var t=this instanceof n;this._readableState=new T(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),i.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),E.prototype.destroy=f.destroy,E.prototype._undestroy=f.undestroy,E.prototype._destroy=function(e,t){t(e)},E.prototype.push=function(e,t){var n=this._readableState,r;return n.objectMode?r=!0:typeof e==`string`&&(t||=n.defaultEncoding,t!==n.encoding&&(e=a.from(e,t),t=``),r=!0),D(this,e,t,!1,r)},E.prototype.unshift=function(e){return D(this,e,null,!0,!1)};function D(e,t,n,r,i){u(`readableAddChunk`,t);var o=e._readableState;if(t===null)o.reading=!1,N(e,o);else{var c;if(i||(c=k(o,t)),c)S(e,c);else if(o.objectMode||t&&t.length>0){if(typeof t!=`string`&&!o.objectMode&&Object.getPrototypeOf(t)!==a.prototype&&(t=s(t)),r)o.endEmitted?S(e,new v):O(e,o,t,!0);else if(o.ended)S(e,new g);else if(o.destroyed)return!1;else o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?O(e,o,t,!1):I(e,o)):O(e,o,t,!1)}else r||(o.reading=!1,I(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function O(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&P(e)),I(e,t)}function k(e,t){var n;return!c(t)&&typeof t!=`string`&&t!==void 0&&!e.objectMode&&(n=new h(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),n}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(e){y||=U$().StringDecoder;var t=new y(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,r=``;n!==null;)r+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),r!==``&&this._readableState.buffer.push(r),this._readableState.length=r.length,this};var A=1073741824;function j(e){return e>=A?e=A:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=j(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}E.prototype.read=function(e){u(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return u(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?oe(this):P(this),null;if(e=M(e,t),e===0&&t.ended)return t.length===0&&oe(this),null;var r=t.needReadable;u(`need readable`,r),(t.length===0||t.length-e<t.highWaterMark)&&(r=!0,u(`length less than watermark`,r)),t.ended||t.reading?(r=!1,u(`reading or ended`,r)):r&&(u(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=M(n,t)));var i=e>0?ae(e,t):null;return i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&oe(this)),i!==null&&this.emit(`data`,i),i};function N(e,t){if(u(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?P(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,F(e)))}}function P(e){var t=e._readableState;u(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u(`emitReadable`,t.flowing),t.emittedReadable=!0,jQ.nextTick(F,e))}function F(e){var t=e._readableState;u(`emitReadable_`,t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ie(e)}function I(e,t){t.readingMore||(t.readingMore=!0,jQ.nextTick(L,e,t))}function L(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(u(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}E.prototype._read=function(e){S(this,new _(`_read()`))},E.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,u(`pipe count=%d opts=%j`,i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==jQ.stdout&&e!==jQ.stderr?s:g;i.endEmitted?jQ.nextTick(a):n.once(`end`,a),e.on(`unpipe`,o);function o(e,t){u(`onunpipe`),e===n&&t&&t.hasUnpiped===!1&&(t.hasUnpiped=!0,d())}function s(){u(`onend`),e.end()}var c=R(n);e.on(`drain`,c);var l=!1;function d(){u(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,c),e.removeListener(`error`,p),e.removeListener(`unpipe`,o),n.removeListener(`end`,s),n.removeListener(`end`,g),n.removeListener(`data`,f),l=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&c()}n.on(`data`,f);function f(t){u(`ondata`);var r=e.write(t);u(`dest.write`,r),r===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&ce(i.pipes,e)!==-1)&&!l&&(u(`false write response, pause`,i.awaitDrain),i.awaitDrain++),n.pause())}function p(t){u(`onerror`,t),g(),e.removeListener(`error`,p),r(e,`error`)===0&&S(e,t)}w(e,`error`,p);function m(){e.removeListener(`finish`,h),g()}e.once(`close`,m);function h(){u(`onfinish`),e.removeListener(`close`,m),g()}e.once(`finish`,h);function g(){u(`unpipe`),n.unpipe(e)}return e.emit(`pipe`,n),i.flowing||(u(`pipe resume`),n.resume()),e};function R(e){return function(){var t=e._readableState;u(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&r(e,`data`)&&(t.flowing=!0,ie(e))}}E.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=ce(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n),this)},E.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return e===`data`?(r.readableListening=this.listenerCount(`readable`)>0,r.flowing!==!1&&this.resume()):e===`readable`&&!r.endEmitted&&!r.readableListening&&(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,u(`on readable`,r.length,r.reading),r.length?P(this):r.reading||jQ.nextTick(te,this)),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return e===`readable`&&jQ.nextTick(ee,this),n},E.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return(e===`readable`||e===void 0)&&jQ.nextTick(ee,this),t};function ee(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function te(e){u(`readable nexttick read 0`),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(u(`resume`),e.flowing=!e.readableListening,ne(this,e)),e.paused=!1,this};function ne(e,t){t.resumeScheduled||(t.resumeScheduled=!0,jQ.nextTick(re,e,t))}function re(e,t){u(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),ie(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return u(`call pause flowing=%j`,this._readableState.flowing),this._readableState.flowing!==!1&&(u(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this};function ie(e){var t=e._readableState;for(u(`flow`,t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,function(){if(u(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on(`data`,function(i){u(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),!(n.objectMode&&i==null)&&(!n.objectMode&&(!i||!i.length)||t.push(i)||(r=!0,e.pause()))}),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){u(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(E.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=G$()),b(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),E._fromList=ae,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ae(e,t){if(t.length===0)return null;var n;return t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n}function oe(e){var t=e._readableState;u(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,jQ.nextTick(se,t,e))}function se(e,t){if(u(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}typeof Symbol==`function`&&(E.from=function(e,t){return x===void 0&&(x=K$()),x(E,e,t)});function ce(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}})),J$=K(((e,t)=>{t.exports=l;var n=L$().codes,r=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,s=V$();yQ()(l,s);function c(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(r===null)return this.emit(`error`,new i);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);s.call(this,e),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,u)}function u(){var e=this;typeof this._flush==`function`&&!this._readableState.destroyed?this._flush(function(t,n){d(e,t,n)}):d(this,null,null)}l.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,n){n(new r(`_transform()`))},l.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},l.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})};function d(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new o;if(e._transformState.transforming)throw new a;return e.push(null)}})),Y$=K(((e,t)=>{t.exports=r;var n=J$();yQ()(r,n);function r(e){if(!(this instanceof r))return new r(e);n.call(this,e)}r.prototype._transform=function(e,t,n){n(null,e)}})),X$=K(((e,t)=>{var n;function r(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var i=L$().codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){return e.setHeader&&typeof e.abort==`function`}function l(e,t,i,a){a=r(a);var s=!1;e.on(`close`,function(){s=!0}),n===void 0&&(n=W$()),n(e,{readable:t,writable:i},function(e){if(e)return a(e);s=!0,a()});var l=!1;return function(t){if(!s&&!l){if(l=!0,c(e))return e.abort();if(typeof e.destroy==`function`)return e.destroy();a(t||new o(`pipe`))}}}function u(e){e()}function d(e,t){return e.pipe(t)}function f(e){return!e.length||typeof e[e.length-1]!=`function`?s:e.pop()}function p(){var e=[...arguments],t=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var n,r=e.map(function(i,a){var o=a<e.length-1;return l(i,o,a>0,function(e){n||=e,e&&r.forEach(u),!o&&(r.forEach(u),t(n))})});return e.reduce(d)}t.exports=p})),Z$=K(((e,t)=>{t.exports=r;var n=vQ().EventEmitter;yQ()(r,n),r.Readable=q$(),r.Writable=B$(),r.Duplex=V$(),r.Transform=J$(),r.PassThrough=Y$(),r.finished=W$(),r.pipeline=X$(),r.Stream=r;function r(){n.call(this)}r.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}r.on(`data`,i);function a(){r.readable&&r.resume&&r.resume()}e.on(`drain`,a),!e._isStdio&&(!t||t.end!==!1)&&(r.on(`end`,s),r.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),n.listenerCount(this,`error`)===0)throw e}r.on(`error`,l),e.on(`error`,l);function u(){r.removeListener(`data`,i),e.removeListener(`drain`,a),r.removeListener(`end`,s),r.removeListener(`close`,c),r.removeListener(`error`,l),e.removeListener(`error`,l),r.removeListener(`end`,u),r.removeListener(`close`,u),e.removeListener(`close`,u)}return r.on(`end`,u),r.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,r),e}})),Q$=K((e=>{(function(e){e.parser=function(e,t){return new n(e,t)},e.SAXParser=n,e.SAXStream=l,e.createStream=c,e.MAX_BUFFER_LENGTH=65536;var t=[`comment`,`sgmlDecl`,`textNode`,`tagName`,`doctype`,`procInstName`,`procInstBody`,`entity`,`attribName`,`attribValue`,`cdata`,`script`];e.EVENTS=[`text`,`processinginstruction`,`sgmldeclaration`,`doctype`,`comment`,`opentagstart`,`attribute`,`opentag`,`closetag`,`opencdata`,`cdata`,`closecdata`,`error`,`end`,`ready`,`script`,`opennamespace`,`closenamespace`];function n(t,r){if(!(this instanceof n))return new n(t,r);var a=this;i(a),a.q=a.c=``,a.bufferCheckPosition=e.MAX_BUFFER_LENGTH,a.opt=r||{},a.opt.lowercase=a.opt.lowercase||a.opt.lowercasetags,a.looseCase=a.opt.lowercase?`toLowerCase`:`toUpperCase`,a.tags=[],a.closed=a.closedRoot=a.sawRoot=!1,a.tag=a.error=null,a.strict=!!t,a.noscript=!!(t||a.opt.noscript),a.state=w.BEGIN,a.strictEntities=a.opt.strictEntities,a.ENTITIES=a.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),a.attribList=[],a.opt.xmlns&&(a.ns=Object.create(m)),a.trackPosition=a.opt.position!==!1,a.trackPosition&&(a.position=a.line=a.column=0),E(a,`onready`)}Object.create||(Object.create=function(e){function t(){}return t.prototype=e,new t}),Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t});function r(n){for(var r=Math.max(e.MAX_BUFFER_LENGTH,10),i=0,a=0,o=t.length;a<o;a++){var s=n[t[a]].length;if(s>r)switch(t[a]){case`textNode`:O(n);break;case`cdata`:D(n,`oncdata`,n.cdata),n.cdata=``;break;case`script`:D(n,`onscript`,n.script),n.script=``;break;default:A(n,`Max buffer length exceeded: `+t[a])}i=Math.max(i,s)}n.bufferCheckPosition=e.MAX_BUFFER_LENGTH-i+n.position}function i(e){for(var n=0,r=t.length;n<r;n++)e[t[n]]=``}function a(e){O(e),e.cdata!==``&&(D(e,`oncdata`,e.cdata),e.cdata=``),e.script!==``&&(D(e,`onscript`,e.script),e.script=``)}n.prototype={end:function(){j(this)},write:ne,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){a(this)}};var o;try{o=Z$().Stream}catch{o=function(){}}var s=e.EVENTS.filter(function(e){return e!==`error`&&e!==`end`});function c(e,t){return new l(e,t)}function l(e,t){if(!(this instanceof l))return new l(e,t);o.apply(this),this._parser=new n(e,t),this.writable=!0,this.readable=!0;var r=this;this._parser.onend=function(){r.emit(`end`)},this._parser.onerror=function(e){r.emit(`error`,e),r._parser.error=null},this._decoder=null,s.forEach(function(e){Object.defineProperty(r,`on`+e,{get:function(){return r._parser[`on`+e]},set:function(t){if(!t)return r.removeAllListeners(e),r._parser[`on`+e]=t,t;r.on(e,t)},enumerable:!0,configurable:!1})})}l.prototype=Object.create(o.prototype,{constructor:{value:l}}),l.prototype.write=function(e){if(typeof Buffer==`function`&&typeof Buffer.isBuffer==`function`&&Buffer.isBuffer(e)){if(!this._decoder){var t=U$().StringDecoder;this._decoder=new t(`utf8`)}e=this._decoder.write(e)}return this._parser.write(e.toString()),this.emit(`data`,e),!0},l.prototype.end=function(e){return e&&e.length&&this.write(e),this._parser.end(),!0},l.prototype.on=function(e,t){var n=this;return!n._parser[`on`+e]&&s.indexOf(e)!==-1&&(n._parser[`on`+e]=function(){var t=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);t.splice(0,0,e),n.emit.apply(n,t)}),o.prototype.on.call(n,e,t)};var u=`[CDATA[`,d=`DOCTYPE`,f=`http://www.w3.org/XML/1998/namespace`,p=`http://www.w3.org/2000/xmlns/`,m={xml:f,xmlns:p},h=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,g=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,_=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,v=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function y(e){return e===` `||e===`
`||e===`\r`||e===` `}function b(e){return e===`"`||e===`'`}function x(e){return e===`>`||y(e)}function S(e,t){return e.test(t)}function C(e,t){return!S(e,t)}var w=0;for(var T in e.STATE={BEGIN:w++,BEGIN_WHITESPACE:w++,TEXT:w++,TEXT_ENTITY:w++,OPEN_WAKA:w++,SGML_DECL:w++,SGML_DECL_QUOTED:w++,DOCTYPE:w++,DOCTYPE_QUOTED:w++,DOCTYPE_DTD:w++,DOCTYPE_DTD_QUOTED:w++,COMMENT_STARTING:w++,COMMENT:w++,COMMENT_ENDING:w++,COMMENT_ENDED:w++,CDATA:w++,CDATA_ENDING:w++,CDATA_ENDING_2:w++,PROC_INST:w++,PROC_INST_BODY:w++,PROC_INST_ENDING:w++,OPEN_TAG:w++,OPEN_TAG_SLASH:w++,ATTRIB:w++,ATTRIB_NAME:w++,ATTRIB_NAME_SAW_WHITE:w++,ATTRIB_VALUE:w++,ATTRIB_VALUE_QUOTED:w++,ATTRIB_VALUE_CLOSED:w++,ATTRIB_VALUE_UNQUOTED:w++,ATTRIB_VALUE_ENTITY_Q:w++,ATTRIB_VALUE_ENTITY_U:w++,CLOSE_TAG:w++,CLOSE_TAG_SAW_WHITE:w++,SCRIPT:w++,SCRIPT_ENDING:w++},e.XML_ENTITIES={amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`},e.ENTITIES={amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`,AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(t){var n=e.ENTITIES[t],r=typeof n==`number`?String.fromCharCode(n):n;e.ENTITIES[t]=r}),e.STATE)e.STATE[e.STATE[T]]=T;w=e.STATE;function E(e,t,n){e[t]&&e[t](n)}function D(e,t,n){e.textNode&&O(e),E(e,t,n)}function O(e){e.textNode=k(e.opt,e.textNode),e.textNode&&E(e,`ontext`,e.textNode),e.textNode=``}function k(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g,` `)),t}function A(e,t){return O(e),e.trackPosition&&(t+=`
Line: `+e.line+`
Column: `+e.column+`
Char: `+e.c),t=Error(t),e.error=t,E(e,`onerror`,t),e}function j(e){return e.sawRoot&&!e.closedRoot&&M(e,`Unclosed root tag`),e.state!==w.BEGIN&&e.state!==w.BEGIN_WHITESPACE&&e.state!==w.TEXT&&A(e,`Unexpected end`),O(e),e.c=``,e.closed=!0,E(e,`onend`),n.call(e,e.strict,e.opt),e}function M(e,t){if(typeof e!=`object`||!(e instanceof n))throw Error(`bad call to strictFail`);e.strict&&A(e,t)}function N(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,D(e,`onopentagstart`,n)}function P(e,t){var n=e.indexOf(`:`)<0?[``,e]:e.split(`:`),r=n[0],i=n[1];return t&&e===`xmlns`&&(r=`xmlns`,i=``),{prefix:r,local:i}}function F(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),e.attribList.indexOf(e.attribName)!==-1||e.tag.attributes.hasOwnProperty(e.attribName)){e.attribName=e.attribValue=``;return}if(e.opt.xmlns){var t=P(e.attribName,!0),n=t.prefix,r=t.local;if(n===`xmlns`){if(r===`xml`&&e.attribValue!==f)M(e,`xml: prefix must be bound to `+f+`
Actual: `+e.attribValue);else if(r===`xmlns`&&e.attribValue!==p)M(e,`xmlns: prefix must be bound to `+p+`
Actual: `+e.attribValue);else{var i=e.tag,a=e.tags[e.tags.length-1]||e;i.ns===a.ns&&(i.ns=Object.create(a.ns)),i.ns[r]=e.attribValue}}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,D(e,`onattribute`,{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=``}function I(e,t){if(e.opt.xmlns){var n=e.tag,r=P(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||``,n.prefix&&!n.uri&&(M(e,`Unbound namespace prefix: `+JSON.stringify(e.tagName)),n.uri=r.prefix);var i=e.tags[e.tags.length-1]||e;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach(function(t){D(e,`onopennamespace`,{prefix:t,uri:n.ns[t]})});for(var a=0,o=e.attribList.length;a<o;a++){var s=e.attribList[a],c=s[0],l=s[1],u=P(c,!0),d=u.prefix,f=u.local,p=d===``?``:n.ns[d]||``,m={name:c,value:l,prefix:d,local:f,uri:p};d&&d!==`xmlns`&&!p&&(M(e,`Unbound namespace prefix: `+JSON.stringify(d)),m.uri=d),e.tag.attributes[c]=m,D(e,`onattribute`,m)}e.attribList.length=0}e.tag.isSelfClosing=!!t,e.sawRoot=!0,e.tags.push(e.tag),D(e,`onopentag`,e.tag),t||(e.state=!e.noscript&&e.tagName.toLowerCase()===`script`?w.SCRIPT:w.TEXT,e.tag=null,e.tagName=``),e.attribName=e.attribValue=``,e.attribList.length=0}function L(e){if(!e.tagName){M(e,`Weird empty close tag.`),e.textNode+=`</>`,e.state=w.TEXT;return}if(e.script){if(e.tagName!==`script`){e.script+=`</`+e.tagName+`>`,e.tagName=``,e.state=w.SCRIPT;return}D(e,`onscript`,e.script),e.script=``}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());for(var r=n;t--&&e.tags[t].name!==r;)M(e,`Unexpected close tag`);if(t<0){M(e,`Unmatched closing tag: `+e.tagName),e.textNode+=`</`+e.tagName+`>`,e.state=w.TEXT;return}e.tagName=n;for(var i=e.tags.length;i-->t;){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,D(e,`onclosetag`,e.tagName);var o={};for(var s in a.ns)o[s]=a.ns[s];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach(function(t){var n=a.ns[t];D(e,`onclosenamespace`,{prefix:t,uri:n})})}t===0&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName=``,e.attribList.length=0,e.state=w.TEXT}function R(e){var t=e.entity,n=t.toLowerCase(),r,i=``;return e.ENTITIES[t]?e.ENTITIES[t]:e.ENTITIES[n]?e.ENTITIES[n]:(t=n,t.charAt(0)===`#`&&(t.charAt(1)===`x`?(t=t.slice(2),r=parseInt(t,16),i=r.toString(16)):(t=t.slice(1),r=parseInt(t,10),i=r.toString(10))),t=t.replace(/^0+/,``),isNaN(r)||i.toLowerCase()!==t?(M(e,`Invalid character entity`),`&`+e.entity+`;`):String.fromCodePoint(r))}function ee(e,t){t===`<`?(e.state=w.OPEN_WAKA,e.startTagPosition=e.position):y(t)||(M(e,`Non-whitespace before first tag.`),e.textNode=t,e.state=w.TEXT)}function te(e,t){var n=``;return t<e.length&&(n=e.charAt(t)),n}function ne(e){var t=this;if(this.error)throw this.error;if(t.closed)return A(t,`Cannot write after close. Assign an onready handler.`);if(e===null)return j(t);typeof e==`object`&&(e=e.toString());for(var n=0,i=``;i=te(e,n++),t.c=i,i;)switch(t.trackPosition&&(t.position++,i===`
`?(t.line++,t.column=0):t.column++),t.state){case w.BEGIN:if(t.state=w.BEGIN_WHITESPACE,i===``)continue;ee(t,i);continue;case w.BEGIN_WHITESPACE:ee(t,i);continue;case w.TEXT:if(t.sawRoot&&!t.closedRoot){for(var a=n-1;i&&i!==`<`&&i!==`&`;)i=te(e,n++),i&&t.trackPosition&&(t.position++,i===`
`?(t.line++,t.column=0):t.column++);t.textNode+=e.substring(a,n-1)}i===`<`&&!(t.sawRoot&&t.closedRoot&&!t.strict)?(t.state=w.OPEN_WAKA,t.startTagPosition=t.position):(!y(i)&&(!t.sawRoot||t.closedRoot)&&M(t,`Text data outside of root node.`),i===`&`?t.state=w.TEXT_ENTITY:t.textNode+=i);continue;case w.SCRIPT:i===`<`?t.state=w.SCRIPT_ENDING:t.script+=i;continue;case w.SCRIPT_ENDING:i===`/`?t.state=w.CLOSE_TAG:(t.script+=`<`+i,t.state=w.SCRIPT);continue;case w.OPEN_WAKA:if(i===`!`)t.state=w.SGML_DECL,t.sgmlDecl=``;else if(!y(i)){if(S(h,i))t.state=w.OPEN_TAG,t.tagName=i;else if(i===`/`)t.state=w.CLOSE_TAG,t.tagName=``;else if(i===`?`)t.state=w.PROC_INST,t.procInstName=t.procInstBody=``;else{if(M(t,`Unencoded <`),t.startTagPosition+1<t.position){var o=t.position-t.startTagPosition;i=Array(o).join(` `)+i}t.textNode+=`<`+i,t.state=w.TEXT}}continue;case w.SGML_DECL:(t.sgmlDecl+i).toUpperCase()===u?(D(t,`onopencdata`),t.state=w.CDATA,t.sgmlDecl=``,t.cdata=``):t.sgmlDecl+i===`--`?(t.state=w.COMMENT,t.comment=``,t.sgmlDecl=``):(t.sgmlDecl+i).toUpperCase()===d?(t.state=w.DOCTYPE,(t.doctype||t.sawRoot)&&M(t,`Inappropriately located doctype declaration`),t.doctype=``,t.sgmlDecl=``):i===`>`?(D(t,`onsgmldeclaration`,t.sgmlDecl),t.sgmlDecl=``,t.state=w.TEXT):(b(i)&&(t.state=w.SGML_DECL_QUOTED),t.sgmlDecl+=i);continue;case w.SGML_DECL_QUOTED:i===t.q&&(t.state=w.SGML_DECL,t.q=``),t.sgmlDecl+=i;continue;case w.DOCTYPE:i===`>`?(t.state=w.TEXT,D(t,`ondoctype`,t.doctype),t.doctype=!0):(t.doctype+=i,i===`[`?t.state=w.DOCTYPE_DTD:b(i)&&(t.state=w.DOCTYPE_QUOTED,t.q=i));continue;case w.DOCTYPE_QUOTED:t.doctype+=i,i===t.q&&(t.q=``,t.state=w.DOCTYPE);continue;case w.DOCTYPE_DTD:t.doctype+=i,i===`]`?t.state=w.DOCTYPE:b(i)&&(t.state=w.DOCTYPE_DTD_QUOTED,t.q=i);continue;case w.DOCTYPE_DTD_QUOTED:t.doctype+=i,i===t.q&&(t.state=w.DOCTYPE_DTD,t.q=``);continue;case w.COMMENT:i===`-`?t.state=w.COMMENT_ENDING:t.comment+=i;continue;case w.COMMENT_ENDING:i===`-`?(t.state=w.COMMENT_ENDED,t.comment=k(t.opt,t.comment),t.comment&&D(t,`oncomment`,t.comment),t.comment=``):(t.comment+=`-`+i,t.state=w.COMMENT);continue;case w.COMMENT_ENDED:i===`>`?t.state=w.TEXT:(M(t,`Malformed comment`),t.comment+=`--`+i,t.state=w.COMMENT);continue;case w.CDATA:i===`]`?t.state=w.CDATA_ENDING:t.cdata+=i;continue;case w.CDATA_ENDING:i===`]`?t.state=w.CDATA_ENDING_2:(t.cdata+=`]`+i,t.state=w.CDATA);continue;case w.CDATA_ENDING_2:i===`>`?(t.cdata&&D(t,`oncdata`,t.cdata),D(t,`onclosecdata`),t.cdata=``,t.state=w.TEXT):i===`]`?t.cdata+=`]`:(t.cdata+=`]]`+i,t.state=w.CDATA);continue;case w.PROC_INST:i===`?`?t.state=w.PROC_INST_ENDING:y(i)?t.state=w.PROC_INST_BODY:t.procInstName+=i;continue;case w.PROC_INST_BODY:if(!t.procInstBody&&y(i))continue;i===`?`?t.state=w.PROC_INST_ENDING:t.procInstBody+=i;continue;case w.PROC_INST_ENDING:i===`>`?(D(t,`onprocessinginstruction`,{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody=``,t.state=w.TEXT):(t.procInstBody+=`?`+i,t.state=w.PROC_INST_BODY);continue;case w.OPEN_TAG:S(g,i)?t.tagName+=i:(N(t),i===`>`?I(t):i===`/`?t.state=w.OPEN_TAG_SLASH:(y(i)||M(t,`Invalid character in tag name`),t.state=w.ATTRIB));continue;case w.OPEN_TAG_SLASH:i===`>`?(I(t,!0),L(t)):(M(t,`Forward-slash in opening tag not followed by >`),t.state=w.ATTRIB);continue;case w.ATTRIB:if(y(i))continue;i===`>`?I(t):i===`/`?t.state=w.OPEN_TAG_SLASH:S(h,i)?(t.attribName=i,t.attribValue=``,t.state=w.ATTRIB_NAME):M(t,`Invalid attribute name`);continue;case w.ATTRIB_NAME:i===`=`?t.state=w.ATTRIB_VALUE:i===`>`?(M(t,`Attribute without value`),t.attribValue=t.attribName,F(t),I(t)):y(i)?t.state=w.ATTRIB_NAME_SAW_WHITE:S(g,i)?t.attribName+=i:M(t,`Invalid attribute name`);continue;case w.ATTRIB_NAME_SAW_WHITE:if(i===`=`)t.state=w.ATTRIB_VALUE;else if(y(i))continue;else M(t,`Attribute without value`),t.tag.attributes[t.attribName]=``,t.attribValue=``,D(t,`onattribute`,{name:t.attribName,value:``}),t.attribName=``,i===`>`?I(t):S(h,i)?(t.attribName=i,t.state=w.ATTRIB_NAME):(M(t,`Invalid attribute name`),t.state=w.ATTRIB);continue;case w.ATTRIB_VALUE:if(y(i))continue;b(i)?(t.q=i,t.state=w.ATTRIB_VALUE_QUOTED):(M(t,`Unquoted attribute value`),t.state=w.ATTRIB_VALUE_UNQUOTED,t.attribValue=i);continue;case w.ATTRIB_VALUE_QUOTED:if(i!==t.q){i===`&`?t.state=w.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=i;continue}F(t),t.q=``,t.state=w.ATTRIB_VALUE_CLOSED;continue;case w.ATTRIB_VALUE_CLOSED:y(i)?t.state=w.ATTRIB:i===`>`?I(t):i===`/`?t.state=w.OPEN_TAG_SLASH:S(h,i)?(M(t,`No whitespace between attributes`),t.attribName=i,t.attribValue=``,t.state=w.ATTRIB_NAME):M(t,`Invalid attribute name`);continue;case w.ATTRIB_VALUE_UNQUOTED:if(!x(i)){i===`&`?t.state=w.ATTRIB_VALUE_ENTITY_U:t.attribValue+=i;continue}F(t),i===`>`?I(t):t.state=w.ATTRIB;continue;case w.CLOSE_TAG:if(t.tagName)i===`>`?L(t):S(g,i)?t.tagName+=i:t.script?(t.script+=`</`+t.tagName,t.tagName=``,t.state=w.SCRIPT):(y(i)||M(t,`Invalid tagname in closing tag`),t.state=w.CLOSE_TAG_SAW_WHITE);else if(y(i))continue;else C(h,i)?t.script?(t.script+=`</`+i,t.state=w.SCRIPT):M(t,`Invalid tagname in closing tag.`):t.tagName=i;continue;case w.CLOSE_TAG_SAW_WHITE:if(y(i))continue;i===`>`?L(t):M(t,`Invalid characters in closing tag`);continue;case w.TEXT_ENTITY:case w.ATTRIB_VALUE_ENTITY_Q:case w.ATTRIB_VALUE_ENTITY_U:var s,c;switch(t.state){case w.TEXT_ENTITY:s=w.TEXT,c=`textNode`;break;case w.ATTRIB_VALUE_ENTITY_Q:s=w.ATTRIB_VALUE_QUOTED,c=`attribValue`;break;case w.ATTRIB_VALUE_ENTITY_U:s=w.ATTRIB_VALUE_UNQUOTED,c=`attribValue`}i===`;`?(t[c]+=R(t),t.entity=``,t.state=s):S(t.entity.length?v:_,i)?t.entity+=i:(M(t,`Invalid character in entity name`),t[c]+=`&`+t.entity+i,t.entity=``,t.state=s);continue;default:throw Error(t,`Unknown state: `+t.state)}return t.position>=t.bufferCheckPosition&&r(t),t}String.fromCodePoint||(function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n=16384,r=[],i,a,o=-1,s=arguments.length;if(!s)return``;for(var c=``;++o<s;){var l=Number(arguments[o]);if(!isFinite(l)||l<0||l>1114111||t(l)!==l)throw RangeError(`Invalid code point: `+l);l<=65535?r.push(l):(l-=65536,i=(l>>10)+55296,a=l%1024+56320,r.push(i,a)),(o+1===s||r.length>n)&&(c+=e.apply(null,r),r.length=0)}return c};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n})()})(e===void 0?e.sax={}:e)})),$$=K(((e,t)=>{t.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)===`[object Array]`}}})),e1=K(((e,t)=>{var n=$$().isArray;t.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!=`boolean`)&&(t[e]=!1)},ensureSpacesExists:function(e){(!(`spaces`in e)||typeof e.spaces!=`number`&&typeof e.spaces!=`string`)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!(`alwaysArray`in e)||typeof e.alwaysArray!=`boolean`&&!n(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+`Key`in t)||typeof t[e+`Key`]!=`string`)&&(t[e+`Key`]=t.compact?`_`+e:e)},checkFnExists:function(e,t){return e+`Fn`in t}}})),t1=K(((e,t)=>{var n=Q$(),r={on:function(){},parse:function(){}},i=e1(),a=$$().isArray,o,s=!0,c;function l(e){return o=i.copyOptions(e),i.ensureFlagExists(`ignoreDeclaration`,o),i.ensureFlagExists(`ignoreInstruction`,o),i.ensureFlagExists(`ignoreAttributes`,o),i.ensureFlagExists(`ignoreText`,o),i.ensureFlagExists(`ignoreComment`,o),i.ensureFlagExists(`ignoreCdata`,o),i.ensureFlagExists(`ignoreDoctype`,o),i.ensureFlagExists(`compact`,o),i.ensureFlagExists(`alwaysChildren`,o),i.ensureFlagExists(`addParent`,o),i.ensureFlagExists(`trim`,o),i.ensureFlagExists(`nativeType`,o),i.ensureFlagExists(`nativeTypeAttributes`,o),i.ensureFlagExists(`sanitize`,o),i.ensureFlagExists(`instructionHasAttributes`,o),i.ensureFlagExists(`captureSpacesBetweenElements`,o),i.ensureAlwaysArrayExists(o),i.ensureKeyExists(`declaration`,o),i.ensureKeyExists(`instruction`,o),i.ensureKeyExists(`attributes`,o),i.ensureKeyExists(`text`,o),i.ensureKeyExists(`comment`,o),i.ensureKeyExists(`cdata`,o),i.ensureKeyExists(`doctype`,o),i.ensureKeyExists(`type`,o),i.ensureKeyExists(`name`,o),i.ensureKeyExists(`elements`,o),i.ensureKeyExists(`parent`,o),i.checkFnExists(`doctype`,o),i.checkFnExists(`instruction`,o),i.checkFnExists(`cdata`,o),i.checkFnExists(`comment`,o),i.checkFnExists(`text`,o),i.checkFnExists(`instructionName`,o),i.checkFnExists(`elementName`,o),i.checkFnExists(`attributeName`,o),i.checkFnExists(`attributeValue`,o),i.checkFnExists(`attributes`,o),o}function u(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n===`true`||n!==`false`&&e}function d(e,t){var n;if(o.compact){if(!c[o[e+`Key`]]&&(a(o.alwaysArray)?o.alwaysArray.indexOf(o[e+`Key`])!==-1:o.alwaysArray)&&(c[o[e+`Key`]]=[]),c[o[e+`Key`]]&&!a(c[o[e+`Key`]])&&(c[o[e+`Key`]]=[c[o[e+`Key`]]]),e+`Fn`in o&&typeof t==`string`&&(t=o[e+`Fn`](t,c)),e===`instruction`&&(`instructionFn`in o||`instructionNameFn`in o)){for(n in t)if(t.hasOwnProperty(n)){if(`instructionFn`in o)t[n]=o.instructionFn(t[n],n,c);else{var r=t[n];delete t[n],t[o.instructionNameFn(n,r,c)]=r}}}a(c[o[e+`Key`]])?c[o[e+`Key`]].push(t):c[o[e+`Key`]]=t}else{c[o.elementsKey]||(c[o.elementsKey]=[]);var i={};if(i[o.typeKey]=e,e===`instruction`){for(n in t)if(t.hasOwnProperty(n))break;i[o.nameKey]=`instructionNameFn`in o?o.instructionNameFn(n,t,c):n,o.instructionHasAttributes?(i[o.attributesKey]=t[n][o.attributesKey],`instructionFn`in o&&(i[o.attributesKey]=o.instructionFn(i[o.attributesKey],n,c))):(`instructionFn`in o&&(t[n]=o.instructionFn(t[n],n,c)),i[o.instructionKey]=t[n])}else e+`Fn`in o&&(t=o[e+`Fn`](t,c)),i[o[e+`Key`]]=t;o.addParent&&(i[o.parentKey]=c),c[o.elementsKey].push(i)}}function f(e){if(`attributesFn`in o&&e&&(e=o.attributesFn(e,c)),(o.trim||`attributeValueFn`in o||`attributeNameFn`in o||o.nativeTypeAttributes)&&e){for(var t in e)if(e.hasOwnProperty(t)&&(o.trim&&(e[t]=e[t].trim()),o.nativeTypeAttributes&&(e[t]=u(e[t])),`attributeValueFn`in o&&(e[t]=o.attributeValueFn(e[t],t,c)),`attributeNameFn`in o)){var n=e[t];delete e[t],e[o.attributeNameFn(t,e[t],c)]=n}}return e}function p(e){var t={};if(e.body&&(e.name.toLowerCase()===`xml`||o.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,r;(r=n.exec(e.body))!==null;)t[r[1]]=r[2]||r[3]||r[4];t=f(t)}if(e.name.toLowerCase()===`xml`){if(o.ignoreDeclaration)return;c[o.declarationKey]={},Object.keys(t).length&&(c[o.declarationKey][o.attributesKey]=t),o.addParent&&(c[o.declarationKey][o.parentKey]=c)}else{if(o.ignoreInstruction)return;o.trim&&(e.body=e.body.trim());var i={};o.instructionHasAttributes&&Object.keys(t).length?(i[e.name]={},i[e.name][o.attributesKey]=t):i[e.name]=e.body,d(`instruction`,i)}}function m(e,t){var n;if(typeof e==`object`&&(t=e.attributes,e=e.name),t=f(t),`elementNameFn`in o&&(e=o.elementNameFn(e,c)),o.compact){if(n={},!o.ignoreAttributes&&t&&Object.keys(t).length)for(var r in n[o.attributesKey]={},t)t.hasOwnProperty(r)&&(n[o.attributesKey][r]=t[r]);!(e in c)&&(a(o.alwaysArray)?o.alwaysArray.indexOf(e)!==-1:o.alwaysArray)&&(c[e]=[]),c[e]&&!a(c[e])&&(c[e]=[c[e]]),a(c[e])?c[e].push(n):c[e]=n}else c[o.elementsKey]||(c[o.elementsKey]=[]),n={},n[o.typeKey]=`element`,n[o.nameKey]=e,!o.ignoreAttributes&&t&&Object.keys(t).length&&(n[o.attributesKey]=t),o.alwaysChildren&&(n[o.elementsKey]=[]),c[o.elementsKey].push(n);n[o.parentKey]=c,c=n}function h(e){o.ignoreText||!e.trim()&&!o.captureSpacesBetweenElements||(o.trim&&(e=e.trim()),o.nativeType&&(e=u(e)),o.sanitize&&(e=e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)),d(`text`,e))}function g(e){o.ignoreComment||(o.trim&&(e=e.trim()),d(`comment`,e))}function _(e){var t=c[o.parentKey];o.addParent||delete c[o.parentKey],c=t}function v(e){o.ignoreCdata||(o.trim&&(e=e.trim()),d(`cdata`,e))}function y(e){o.ignoreDoctype||(e=e.replace(/^ /,``),o.trim&&(e=e.trim()),d(`doctype`,e))}function b(e){e.note=e}t.exports=function(e,t){var i=s?n.parser(!0,{}):i=new r.Parser(`UTF-8`),a={};if(c=a,o=l(t),s?(i.opt={strictEntities:!0},i.onopentag=m,i.ontext=h,i.oncomment=g,i.onclosetag=_,i.onerror=b,i.oncdata=v,i.ondoctype=y,i.onprocessinginstruction=p):(i.on(`startElement`,m),i.on(`text`,h),i.on(`comment`,g),i.on(`endElement`,_),i.on(`error`,b)),s)i.write(e).close();else if(!i.parse(e))throw Error(`XML parsing error: `+i.getError());if(a[o.elementsKey]){var u=a[o.elementsKey];delete a[o.elementsKey],a[o.elementsKey]=u,delete a.text}return a}})),n1=K(((e,t)=>{var n=e1(),r=t1();function i(e){var t=n.copyOptions(e);return n.ensureSpacesExists(t),t}t.exports=function(e,t){var n=i(t),a=r(e,n),o,s=`compact`in n&&n.compact?`_parent`:`parent`;return o=`addParent`in n&&n.addParent?JSON.stringify(a,function(e,t){return e===s?`_`:t},n.spaces):JSON.stringify(a,null,n.spaces),o.replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}})),r1=K(((e,t)=>{var n=e1(),r=$$().isArray,i,a;function o(e){var t=n.copyOptions(e);return n.ensureFlagExists(`ignoreDeclaration`,t),n.ensureFlagExists(`ignoreInstruction`,t),n.ensureFlagExists(`ignoreAttributes`,t),n.ensureFlagExists(`ignoreText`,t),n.ensureFlagExists(`ignoreComment`,t),n.ensureFlagExists(`ignoreCdata`,t),n.ensureFlagExists(`ignoreDoctype`,t),n.ensureFlagExists(`compact`,t),n.ensureFlagExists(`indentText`,t),n.ensureFlagExists(`indentCdata`,t),n.ensureFlagExists(`indentAttributes`,t),n.ensureFlagExists(`indentInstruction`,t),n.ensureFlagExists(`fullTagEmptyElement`,t),n.ensureFlagExists(`noQuotesForNativeAttributes`,t),n.ensureSpacesExists(t),typeof t.spaces==`number`&&(t.spaces=Array(t.spaces+1).join(` `)),n.ensureKeyExists(`declaration`,t),n.ensureKeyExists(`instruction`,t),n.ensureKeyExists(`attributes`,t),n.ensureKeyExists(`text`,t),n.ensureKeyExists(`comment`,t),n.ensureKeyExists(`cdata`,t),n.ensureKeyExists(`doctype`,t),n.ensureKeyExists(`type`,t),n.ensureKeyExists(`name`,t),n.ensureKeyExists(`elements`,t),n.checkFnExists(`doctype`,t),n.checkFnExists(`instruction`,t),n.checkFnExists(`cdata`,t),n.checkFnExists(`comment`,t),n.checkFnExists(`text`,t),n.checkFnExists(`instructionName`,t),n.checkFnExists(`elementName`,t),n.checkFnExists(`attributeName`,t),n.checkFnExists(`attributeValue`,t),n.checkFnExists(`attributes`,t),n.checkFnExists(`fullTagEmptyElement`,t),t}function s(e,t,n){return(!n&&e.spaces?`
`:``)+Array(t+1).join(e.spaces)}function c(e,t,n){if(t.ignoreAttributes)return``;`attributesFn`in t&&(e=t.attributesFn(e,a,i));var r,o,c,l,u=[];for(r in e)e.hasOwnProperty(r)&&e[r]!==null&&e[r]!==void 0&&(l=t.noQuotesForNativeAttributes&&typeof e[r]!=`string`?``:`"`,o=``+e[r],o=o.replace(/"/g,`&quot;`),c=`attributeNameFn`in t?t.attributeNameFn(r,o,a,i):r,u.push(t.spaces&&t.indentAttributes?s(t,n+1,!1):` `),u.push(c+`=`+l+(`attributeValueFn`in t?t.attributeValueFn(o,r,a,i):o)+l));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&u.push(s(t,n,!1)),u.join(``)}function l(e,t,n){return i=e,a=`xml`,t.ignoreDeclaration?``:`<?xml`+c(e[t.attributesKey],t,n)+`?>`}function u(e,t,n){if(t.ignoreInstruction)return``;for(var r in e)if(e.hasOwnProperty(r))break;var o=`instructionNameFn`in t?t.instructionNameFn(r,e[r],a,i):r;if(typeof e[r]==`object`)return i=e,a=o,`<?`+o+c(e[r][t.attributesKey],t,n)+`?>`;var s=e[r]?e[r]:``;return`instructionFn`in t&&(s=t.instructionFn(s,r,a,i)),`<?`+o+(s?` `+s:``)+`?>`}function d(e,t){return t.ignoreComment?``:`\x3C!--`+(`commentFn`in t?t.commentFn(e,a,i):e)+`-->`}function f(e,t){return t.ignoreCdata?``:`<![CDATA[`+(`cdataFn`in t?t.cdataFn(e,a,i):e.replace(`]]>`,`]]]]><![CDATA[>`))+`]]>`}function p(e,t){return t.ignoreDoctype?``:`<!DOCTYPE `+(`doctypeFn`in t?t.doctypeFn(e,a,i):e)+`>`}function m(e,t){return t.ignoreText?``:(e=``+e,e=e.replace(/&amp;/g,`&`),e=e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`),`textFn`in t?t.textFn(e,a,i):e)}function h(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case`text`:if(t.indentText)return!0;break;case`cdata`:if(t.indentCdata)return!0;break;case`instruction`:if(t.indentInstruction)return!0;break;case`doctype`:case`comment`:case`element`:return!0;default:return!0}return!1}function g(e,t,n){i=e,a=e.name;var r=[],o=`elementNameFn`in t?t.elementNameFn(e.name,e):e.name;r.push(`<`+o),e[t.attributesKey]&&r.push(c(e[t.attributesKey],t,n));var s=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey][`xml:space`]===`preserve`;return s||=`fullTagEmptyElementFn`in t?t.fullTagEmptyElementFn(e.name,e):t.fullTagEmptyElement,s?(r.push(`>`),e[t.elementsKey]&&e[t.elementsKey].length&&(r.push(_(e[t.elementsKey],t,n+1)),i=e,a=e.name),r.push(t.spaces&&h(e,t)?`
`+Array(n+1).join(t.spaces):``),r.push(`</`+o+`>`)):r.push(`/>`),r.join(``)}function _(e,t,n,r){return e.reduce(function(e,i){var a=s(t,n,r&&!e);switch(i.type){case`element`:return e+a+g(i,t,n);case`comment`:return e+a+d(i[t.commentKey],t);case`doctype`:return e+a+p(i[t.doctypeKey],t);case`cdata`:return e+(t.indentCdata?a:``)+f(i[t.cdataKey],t);case`text`:return e+(t.indentText?a:``)+m(i[t.textKey],t);case`instruction`:var o={};return o[i[t.nameKey]]=i[t.attributesKey]?i:i[t.instructionKey],e+(t.indentInstruction?a:``)+u(o,t,n)}},``)}function v(e,t,n){for(var r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function y(e,t,n,r,o){i=e,a=t;var l=`elementNameFn`in n?n.elementNameFn(t,e):t;if(e==null||e===``)return`fullTagEmptyElementFn`in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?`<`+l+`></`+l+`>`:`<`+l+`/>`;var u=[];if(t){if(u.push(`<`+l),typeof e!=`object`)return u.push(`>`+m(e,n)+`</`+l+`>`),u.join(``);e[n.attributesKey]&&u.push(c(e[n.attributesKey],n,r));var d=v(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey][`xml:space`]===`preserve`;if(d||=`fullTagEmptyElementFn`in n?n.fullTagEmptyElementFn(t,e):n.fullTagEmptyElement,d)u.push(`>`);else return u.push(`/>`),u.join(``)}return u.push(b(e,n,r+1,!1)),i=e,a=t,t&&u.push((o?s(n,r,!1):``)+`</`+l+`>`),u.join(``)}function b(e,t,n,i){var a,o,c,h=[];for(o in e)if(e.hasOwnProperty(o))for(c=r(e[o])?e[o]:[e[o]],a=0;a<c.length;++a){switch(o){case t.declarationKey:h.push(l(c[a],t,n));break;case t.instructionKey:h.push((t.indentInstruction?s(t,n,i):``)+u(c[a],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:h.push((t.indentText?s(t,n,i):``)+m(c[a],t));break;case t.cdataKey:h.push((t.indentCdata?s(t,n,i):``)+f(c[a],t));break;case t.doctypeKey:h.push(s(t,n,i)+p(c[a],t));break;case t.commentKey:h.push(s(t,n,i)+d(c[a],t));break;default:h.push(s(t,n,i)+y(c[a],o,t,n,v(c[a],t)))}i&&=!h.length}return h.join(``)}t.exports=function(e,t){t=o(t);var n=[];return i=e,a=`_root_`,t.compact?n.push(b(e,t,0,!0)):(e[t.declarationKey]&&n.push(l(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(_(e[t.elementsKey],t,0,!n.length))),n.join(``)}})),i1=K(((e,t)=>{var n=r1();t.exports=function(e,t){e instanceof Buffer&&(e=e.toString());var r=null;if(typeof e==`string`)try{r=JSON.parse(e)}catch{throw Error(`The JSON structure is invalid`)}else r=e;return n(r,t)}})),a1=K(((e,t)=>{t.exports={xml2js:t1(),xml2json:n1(),js2xml:r1(),json2xml:i1()}}))(),o1=e=>{switch(e.type){case void 0:case`element`:let t=new c1(e.name,e.attributes),n=e.elements||[];for(let e of n){let n=o1(e);n!==void 0&&t.push(n)}return t;case`text`:return e.text;default:return}},s1=class extends hQ{},c1=class extends q{static fromXmlString(e){return o1((0,a1.xml2js)(e,{compact:!1}))}constructor(e,t){super(e),t&&this.root.push(new s1(t))}push(e){this.root.push(e)}},l1=class extends q{constructor(e){super(``),W(this,`_attr`,void 0),this._attr=e}prepForXml(e){return{_attr:this._attr}}},u1=class extends q{constructor(e,t){super(e),t&&(this.root=t.root)}},d1=e=>{if(isNaN(e))throw Error(`Invalid value '${e}' specified. Must be an integer.`);return Math.floor(e)},f1=e=>{let t=d1(e);if(t<0)throw Error(`Invalid value '${e}' specified. Must be a positive integer.`);return t},p1=(e,t)=>{let n=t*2;if(e.length!==n||isNaN(Number(`0x${e}`)))throw Error(`Invalid hex value '${e}'. Expected ${n} digit hex value`);return e},m1=e=>p1(e,4),h1=e=>p1(e,2),g1=e=>p1(e,1),_1=e=>{let t=e.slice(-2),n=e.substring(0,e.length-2);return`${Number(n)}${t}`},v1=e=>{let t=_1(e);if(parseFloat(t)<0)throw Error(`Invalid value '${t}' specified. Expected a positive number.`);return t},y1=e=>e===`auto`?e:p1(e.charAt(0)===`#`?e.substring(1):e,3),b1=e=>typeof e==`string`?_1(e):d1(e),x1=e=>typeof e==`string`?v1(e):f1(e),S1=e=>typeof e==`string`?_1(e):d1(e),C1=e=>typeof e==`string`?v1(e):f1(e),w1=e=>{let t=e.substring(0,e.length-1);return`${Number(t)}%`},T1=e=>typeof e==`number`?d1(e):e.slice(-1)===`%`?w1(e):_1(e),E1=f1,D1=f1,O1=e=>e.toISOString(),J=class extends q{constructor(e,t=!0){super(e),t!==!0&&this.root.push(new _Q({val:t}))}},k1=class extends q{constructor(e,t){super(e),this.root.push(new _Q({val:x1(t)}))}},A1=class extends q{},j1=class extends q{constructor(e,t){super(e),this.root.push(new _Q({val:t}))}},M1=(e,t)=>new Y({name:e,attributes:{value:{key:`w:val`,value:t}}}),N1=class extends q{constructor(e,t){super(e),this.root.push(new _Q({val:t}))}},P1=class extends q{constructor(e,t){super(e),this.root.push(new _Q({val:t}))}},F1=class extends q{constructor(e,t){super(e),this.root.push(t)}},Y=class extends q{constructor({name:e,attributes:t,children:n}){super(e),t&&this.root.push(new gQ(t)),n&&this.root.push(...n)}},I1={START:`start`,CENTER:`center`,END:`end`,BOTH:`both`,MEDIUM_KASHIDA:`mediumKashida`,DISTRIBUTE:`distribute`,NUM_TAB:`numTab`,HIGH_KASHIDA:`highKashida`,LOW_KASHIDA:`lowKashida`,THAI_DISTRIBUTE:`thaiDistribute`,LEFT:`left`,RIGHT:`right`,JUSTIFIED:`both`},L1=e=>new Y({name:`w:jc`,attributes:{val:{key:`w:val`,value:e}}}),R1=(e,{color:t,size:n,space:r,style:i})=>new Y({name:e,attributes:{style:{key:`w:val`,value:i},color:{key:`w:color`,value:t===void 0?void 0:y1(t)},size:{key:`w:sz`,value:n===void 0?void 0:E1(n)},space:{key:`w:space`,value:r===void 0?void 0:D1(r)}}}),z1={SINGLE:`single`,DASH_DOT_STROKED:`dashDotStroked`,DASHED:`dashed`,DASH_SMALL_GAP:`dashSmallGap`,DOT_DASH:`dotDash`,DOT_DOT_DASH:`dotDotDash`,DOTTED:`dotted`,DOUBLE:`double`,DOUBLE_WAVE:`doubleWave`,INSET:`inset`,NIL:`nil`,NONE:`none`,OUTSET:`outset`,THICK:`thick`,THICK_THIN_LARGE_GAP:`thickThinLargeGap`,THICK_THIN_MEDIUM_GAP:`thickThinMediumGap`,THICK_THIN_SMALL_GAP:`thickThinSmallGap`,THIN_THICK_LARGE_GAP:`thinThickLargeGap`,THIN_THICK_MEDIUM_GAP:`thinThickMediumGap`,THIN_THICK_SMALL_GAP:`thinThickSmallGap`,THIN_THICK_THIN_LARGE_GAP:`thinThickThinLargeGap`,THIN_THICK_THIN_MEDIUM_GAP:`thinThickThinMediumGap`,THIN_THICK_THIN_SMALL_GAP:`thinThickThinSmallGap`,THREE_D_EMBOSS:`threeDEmboss`,THREE_D_ENGRAVE:`threeDEngrave`,TRIPLE:`triple`,WAVE:`wave`},B1=class extends mQ{constructor(e){super(`w:pBdr`),e.top&&this.root.push(R1(`w:top`,e.top)),e.bottom&&this.root.push(R1(`w:bottom`,e.bottom)),e.left&&this.root.push(R1(`w:left`,e.left)),e.right&&this.root.push(R1(`w:right`,e.right)),e.between&&this.root.push(R1(`w:between`,e.between))}},V1=class extends q{constructor(){super(`w:pBdr`);let e=R1(`w:bottom`,{color:`auto`,space:1,style:z1.SINGLE,size:6});this.root.push(e)}},H1=({start:e,end:t,left:n,right:r,hanging:i,firstLine:a,firstLineChars:o})=>new Y({name:`w:ind`,attributes:{start:{key:`w:start`,value:e===void 0?void 0:b1(e)},end:{key:`w:end`,value:t===void 0?void 0:b1(t)},left:{key:`w:left`,value:n===void 0?void 0:b1(n)},right:{key:`w:right`,value:r===void 0?void 0:b1(r)},hanging:{key:`w:hanging`,value:i===void 0?void 0:C1(i)},firstLine:{key:`w:firstLine`,value:a===void 0?void 0:C1(a)},firstLineChars:{key:`w:firstLineChars`,value:o===void 0?void 0:d1(o)}}}),U1=()=>new Y({name:`w:br`}),W1={BEGIN:`begin`,END:`end`,SEPARATE:`separate`},G1=(e,t)=>new Y({name:`w:fldChar`,attributes:{type:{key:`w:fldCharType`,value:e},dirty:{key:`w:dirty`,value:t}}}),K1=e=>G1(W1.BEGIN,e),q1=e=>G1(W1.SEPARATE,e),J1=e=>G1(W1.END,e),Y1={CENTER:`center`,INSIDE:`inside`,LEFT:`left`,OUTSIDE:`outside`,RIGHT:`right`},X1={BOTTOM:`bottom`,CENTER:`center`,INSIDE:`inside`,OUTSIDE:`outside`,TOP:`top`},Z1={DECIMAL:`decimal`,UPPER_ROMAN:`upperRoman`,LOWER_ROMAN:`lowerRoman`,UPPER_LETTER:`upperLetter`,LOWER_LETTER:`lowerLetter`,ORDINAL:`ordinal`,CARDINAL_TEXT:`cardinalText`,ORDINAL_TEXT:`ordinalText`,HEX:`hex`,CHICAGO:`chicago`,IDEOGRAPH_DIGITAL:`ideographDigital`,JAPANESE_COUNTING:`japaneseCounting`,AIUEO:`aiueo`,IROHA:`iroha`,DECIMAL_FULL_WIDTH:`decimalFullWidth`,DECIMAL_HALF_WIDTH:`decimalHalfWidth`,JAPANESE_LEGAL:`japaneseLegal`,JAPANESE_DIGITAL_TEN_THOUSAND:`japaneseDigitalTenThousand`,DECIMAL_ENCLOSED_CIRCLE:`decimalEnclosedCircle`,DECIMAL_FULL_WIDTH_2:`decimalFullWidth2`,AIUEO_FULL_WIDTH:`aiueoFullWidth`,IROHA_FULL_WIDTH:`irohaFullWidth`,DECIMAL_ZERO:`decimalZero`,BULLET:`bullet`,GANADA:`ganada`,CHOSUNG:`chosung`,DECIMAL_ENCLOSED_FULL_STOP:`decimalEnclosedFullstop`,DECIMAL_ENCLOSED_PAREN:`decimalEnclosedParen`,DECIMAL_ENCLOSED_CIRCLE_CHINESE:`decimalEnclosedCircleChinese`,IDEOGRAPH_ENCLOSED_CIRCLE:`ideographEnclosedCircle`,IDEOGRAPH_TRADITIONAL:`ideographTraditional`,IDEOGRAPH_ZODIAC:`ideographZodiac`,IDEOGRAPH_ZODIAC_TRADITIONAL:`ideographZodiacTraditional`,TAIWANESE_COUNTING:`taiwaneseCounting`,IDEOGRAPH_LEGAL_TRADITIONAL:`ideographLegalTraditional`,TAIWANESE_COUNTING_THOUSAND:`taiwaneseCountingThousand`,TAIWANESE_DIGITAL:`taiwaneseDigital`,CHINESE_COUNTING:`chineseCounting`,CHINESE_LEGAL_SIMPLIFIED:`chineseLegalSimplified`,CHINESE_COUNTING_TEN_THOUSAND:`chineseCountingThousand`,KOREAN_DIGITAL:`koreanDigital`,KOREAN_COUNTING:`koreanCounting`,KOREAN_LEGAL:`koreanLegal`,KOREAN_DIGITAL_2:`koreanDigital2`,VIETNAMESE_COUNTING:`vietnameseCounting`,RUSSIAN_LOWER:`russianLower`,RUSSIAN_UPPER:`russianUpper`,NONE:`none`,NUMBER_IN_DASH:`numberInDash`,HEBREW_1:`hebrew1`,HEBREW_2:`hebrew2`,ARABIC_ALPHA:`arabicAlpha`,ARABIC_ABJAD:`arabicAbjad`,HINDI_VOWELS:`hindiVowels`,HINDI_CONSONANTS:`hindiConsonants`,HINDI_NUMBERS:`hindiNumbers`,HINDI_COUNTING:`hindiCounting`,THAI_LETTERS:`thaiLetters`,THAI_NUMBERS:`thaiNumbers`,THAI_COUNTING:`thaiCounting`,BAHT_TEXT:`bahtText`,DOLLAR_TEXT:`dollarText`},Q1={DEFAULT:`default`,PRESERVE:`preserve`},$1=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{space:`xml:space`})}},e0=class extends q{constructor(){super(`w:instrText`),this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(`PAGE`)}},t0=class extends q{constructor(){super(`w:instrText`),this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(`NUMPAGES`)}},n0=class extends q{constructor(){super(`w:instrText`),this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(`SECTIONPAGES`)}},r0=class extends q{constructor(){super(`w:instrText`),this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(`SECTION`)}},i0=({fill:e,color:t,type:n})=>new Y({name:`w:shd`,attributes:{fill:{key:`w:fill`,value:e===void 0?void 0:y1(e)},color:{key:`w:color`,value:t===void 0?void 0:y1(t)},type:{key:`w:val`,value:n}}}),a0={CLEAR:`clear`,DIAGONAL_CROSS:`diagCross`,DIAGONAL_STRIPE:`diagStripe`,HORIZONTAL_CROSS:`horzCross`,HORIZONTAL_STRIPE:`horzStripe`,NIL:`nil`,PERCENT_5:`pct5`,PERCENT_10:`pct10`,PERCENT_12:`pct12`,PERCENT_15:`pct15`,PERCENT_20:`pct20`,PERCENT_25:`pct25`,PERCENT_30:`pct30`,PERCENT_35:`pct35`,PERCENT_37:`pct37`,PERCENT_40:`pct40`,PERCENT_45:`pct45`,PERCENT_50:`pct50`,PERCENT_55:`pct55`,PERCENT_60:`pct60`,PERCENT_62:`pct62`,PERCENT_65:`pct65`,PERCENT_70:`pct70`,PERCENT_75:`pct75`,PERCENT_80:`pct80`,PERCENT_85:`pct85`,PERCENT_87:`pct87`,PERCENT_90:`pct90`,PERCENT_95:`pct95`,REVERSE_DIAGONAL_STRIPE:`reverseDiagStripe`,SOLID:`solid`,THIN_DIAGONAL_CROSS:`thinDiagCross`,THIN_DIAGONAL_STRIPE:`thinDiagStripe`,THIN_HORIZONTAL_CROSS:`thinHorzCross`,THIN_REVERSE_DIAGONAL_STRIPE:`thinReverseDiagStripe`,THIN_VERTICAL_STRIPE:`thinVertStripe`,VERTICAL_STRIPE:`vertStripe`},o0=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`w:id`,author:`w:author`,date:`w:date`})}},s0=class extends q{constructor(e){super(`w:del`),this.root.push(new o0({id:e.id,author:e.author,date:e.date}))}},c0=class extends q{constructor(e){super(`w:ins`),this.root.push(new o0({id:e.id,author:e.author,date:e.date}))}},l0={DOT:`dot`},u0=(e=l0.DOT)=>new Y({name:`w:em`,attributes:{val:{key:`w:val`,value:e}}}),d0=()=>u0(l0.DOT),f0=class extends q{constructor(e){super(`w:spacing`),this.root.push(new _Q({val:b1(e)}))}},p0=class extends q{constructor(e){super(`w:color`),this.root.push(new _Q({val:y1(e)}))}},m0=class extends q{constructor(e){super(`w:highlight`),this.root.push(new _Q({val:e}))}},h0=class extends q{constructor(e){super(`w:highlightCs`),this.root.push(new _Q({val:e}))}},g0=e=>new Y({name:`w:lang`,attributes:{value:{key:`w:val`,value:e.value},eastAsia:{key:`w:eastAsia`,value:e.eastAsia},bidirectional:{key:`w:bidi`,value:e.bidirectional}}}),_0=(e,t)=>{if(typeof e==`string`){let n=e;return new Y({name:`w:rFonts`,attributes:{ascii:{key:`w:ascii`,value:n},cs:{key:`w:cs`,value:n},eastAsia:{key:`w:eastAsia`,value:n},hAnsi:{key:`w:hAnsi`,value:n},hint:{key:`w:hint`,value:t}}})}let n=e;return new Y({name:`w:rFonts`,attributes:{ascii:{key:`w:ascii`,value:n.ascii},cs:{key:`w:cs`,value:n.cs},eastAsia:{key:`w:eastAsia`,value:n.eastAsia},hAnsi:{key:`w:hAnsi`,value:n.hAnsi},hint:{key:`w:hint`,value:n.hint}}})},v0=e=>new Y({name:`w:vertAlign`,attributes:{val:{key:`w:val`,value:e}}}),y0=()=>v0(`superscript`),b0=()=>v0(`subscript`),x0={SINGLE:`single`,WORDS:`words`,DOUBLE:`double`,THICK:`thick`,DOTTED:`dotted`,DOTTEDHEAVY:`dottedHeavy`,DASH:`dash`,DASHEDHEAVY:`dashedHeavy`,DASHLONG:`dashLong`,DASHLONGHEAVY:`dashLongHeavy`,DOTDASH:`dotDash`,DASHDOTHEAVY:`dashDotHeavy`,DOTDOTDASH:`dotDotDash`,DASHDOTDOTHEAVY:`dashDotDotHeavy`,WAVE:`wave`,WAVYHEAVY:`wavyHeavy`,WAVYDOUBLE:`wavyDouble`,NONE:`none`},S0=(e=x0.SINGLE,t)=>new Y({name:`w:u`,attributes:{val:{key:`w:val`,value:e},color:{key:`w:color`,value:t===void 0?void 0:y1(t)}}}),C0={BLINK_BACKGROUND:`blinkBackground`,LIGHTS:`lights`,ANTS_BLACK:`antsBlack`,ANTS_RED:`antsRed`,SHIMMER:`shimmer`,SPARKLE:`sparkle`,NONE:`none`},w0={BLACK:`black`,BLUE:`blue`,CYAN:`cyan`,DARK_BLUE:`darkBlue`,DARK_CYAN:`darkCyan`,DARK_GRAY:`darkGray`,DARK_GREEN:`darkGreen`,DARK_MAGENTA:`darkMagenta`,DARK_RED:`darkRed`,DARK_YELLOW:`darkYellow`,GREEN:`green`,LIGHT_GRAY:`lightGray`,MAGENTA:`magenta`,NONE:`none`,RED:`red`,WHITE:`white`,YELLOW:`yellow`},T0=class extends mQ{constructor(e){if(super(`w:rPr`),!e)return;e.style&&this.push(new j1(`w:rStyle`,e.style)),e.font&&(typeof e.font==`string`?this.push(_0(e.font)):`name`in e.font?this.push(_0(e.font.name,e.font.hint)):this.push(_0(e.font))),e.bold!==void 0&&this.push(new J(`w:b`,e.bold)),(e.boldComplexScript===void 0&&e.bold!==void 0||e.boldComplexScript)&&this.push(new J(`w:bCs`,e.boldComplexScript??e.bold)),e.italics!==void 0&&this.push(new J(`w:i`,e.italics)),(e.italicsComplexScript===void 0&&e.italics!==void 0||e.italicsComplexScript)&&this.push(new J(`w:iCs`,e.italicsComplexScript??e.italics)),e.smallCaps===void 0?e.allCaps!==void 0&&this.push(new J(`w:caps`,e.allCaps)):this.push(new J(`w:smallCaps`,e.smallCaps)),e.strike!==void 0&&this.push(new J(`w:strike`,e.strike)),e.doubleStrike!==void 0&&this.push(new J(`w:dstrike`,e.doubleStrike)),e.emboss!==void 0&&this.push(new J(`w:emboss`,e.emboss)),e.imprint!==void 0&&this.push(new J(`w:imprint`,e.imprint)),e.noProof!==void 0&&this.push(new J(`w:noProof`,e.noProof)),e.snapToGrid!==void 0&&this.push(new J(`w:snapToGrid`,e.snapToGrid)),e.vanish&&this.push(new J(`w:vanish`,e.vanish)),e.color&&this.push(new p0(e.color)),e.characterSpacing&&this.push(new f0(e.characterSpacing)),e.scale!==void 0&&this.push(new N1(`w:w`,e.scale)),e.kern&&this.push(new k1(`w:kern`,e.kern)),e.position&&this.push(new j1(`w:position`,e.position)),e.size!==void 0&&this.push(new k1(`w:sz`,e.size));let t=e.sizeComplexScript===void 0||e.sizeComplexScript===!0?e.size:e.sizeComplexScript;t&&this.push(new k1(`w:szCs`,t)),e.highlight&&this.push(new m0(e.highlight));let n=e.highlightComplexScript===void 0||e.highlightComplexScript===!0?e.highlight:e.highlightComplexScript;n&&this.push(new h0(n)),e.underline&&this.push(S0(e.underline.type,e.underline.color)),e.effect&&this.push(new j1(`w:effect`,e.effect)),e.border&&this.push(R1(`w:bdr`,e.border)),e.shading&&this.push(i0(e.shading)),e.subScript&&this.push(b0()),e.superScript&&this.push(y0()),e.rightToLeft!==void 0&&this.push(new J(`w:rtl`,e.rightToLeft)),e.emphasisMark&&this.push(u0(e.emphasisMark.type)),e.language&&this.push(g0(e.language)),e.specVanish&&this.push(new J(`w:specVanish`,e.vanish)),e.math&&this.push(new J(`w:oMath`,e.math)),e.revision&&this.push(new D0(e.revision))}push(e){this.root.push(e)}},E0=class extends T0{constructor(e){super(e),e?.insertion&&this.push(new c0(e.insertion)),e?.deletion&&this.push(new s0(e.deletion))}},D0=class extends q{constructor(e){super(`w:rPrChange`),this.root.push(new o0({id:e.id,author:e.author,date:e.date})),this.addChildElement(new T0(e))}},O0=class extends q{constructor(e){super(`w:t`),typeof e==`string`?(this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(e)):(this.root.push(new $1({space:e.space??Q1.DEFAULT})),this.root.push(e.text))}},k0={CURRENT:`CURRENT`,TOTAL_PAGES:`TOTAL_PAGES`,TOTAL_PAGES_IN_SECTION:`TOTAL_PAGES_IN_SECTION`,CURRENT_SECTION:`SECTION`},A0=class extends q{constructor(e){if(super(`w:r`),W(this,`properties`,void 0),this.properties=new T0(e),this.root.push(this.properties),e.break)for(let t=0;t<e.break;t++)this.root.push(U1());if(e.children)for(let t of e.children){if(typeof t==`string`){switch(t){case k0.CURRENT:this.root.push(K1()),this.root.push(new e0),this.root.push(q1()),this.root.push(J1());break;case k0.TOTAL_PAGES:this.root.push(K1()),this.root.push(new t0),this.root.push(q1()),this.root.push(J1());break;case k0.TOTAL_PAGES_IN_SECTION:this.root.push(K1()),this.root.push(new n0),this.root.push(q1()),this.root.push(J1());break;case k0.CURRENT_SECTION:this.root.push(K1()),this.root.push(new r0),this.root.push(q1()),this.root.push(J1());break;default:this.root.push(new O0(t))}continue}this.root.push(t)}else e.text!==void 0&&this.root.push(new O0(e.text))}},j0=class extends A0{constructor(e){super(typeof e==`string`?{text:e}:e)}},M0=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{char:`w:char`,symbolfont:`w:font`})}},N0=class extends q{constructor(e=``,t=`Wingdings`){super(`w:sym`),this.root.push(new M0({char:e,symbolfont:t}))}},P0=class extends A0{constructor(e){if(typeof e==`string`)return super({}),this.root.push(new N0(e)),this;super(e),this.root.push(new N0(e.char,e.symbolfont))}},F0=K(((e,t)=>{t.exports=n;function n(e,t){if(!e)throw Error(t||`Assertion failed`)}n.equal=function(e,t,n){if(e!=t)throw Error(n||`Assertion failed: `+e+` != `+t)}})),I0=K((e=>{var t=F0();e.inherits=yQ();function n(e,t){return(e.charCodeAt(t)&64512)!=55296||t<0||t+1>=e.length?!1:(e.charCodeAt(t+1)&64512)==56320}function r(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if(typeof e==`string`){if(!t)for(var i=0,a=0;a<e.length;a++){var o=e.charCodeAt(a);o<128?r[i++]=o:o<2048?(r[i++]=o>>6|192,r[i++]=o&63|128):n(e,a)?(o=65536+((o&1023)<<10)+(e.charCodeAt(++a)&1023),r[i++]=o>>18|240,r[i++]=o>>12&63|128,r[i++]=o>>6&63|128,r[i++]=o&63|128):(r[i++]=o>>12|224,r[i++]=o>>6&63|128,r[i++]=o&63|128)}else if(t===`hex`)for(e=e.replace(/[^a-z0-9]+/gi,``),e.length%2!=0&&(e=`0`+e),a=0;a<e.length;a+=2)r.push(parseInt(e[a]+e[a+1],16))}else for(a=0;a<e.length;a++)r[a]=e[a]|0;return r}e.toArray=r;function i(e){for(var t=``,n=0;n<e.length;n++)t+=s(e[n].toString(16));return t}e.toHex=i;function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(e&255)<<24)>>>0}e.htonl=a;function o(e,t){for(var n=``,r=0;r<e.length;r++){var i=e[r];t===`little`&&(i=a(i)),n+=c(i.toString(16))}return n}e.toHex32=o;function s(e){return e.length===1?`0`+e:e}e.zero2=s;function c(e){return e.length===7?`0`+e:e.length===6?`00`+e:e.length===5?`000`+e:e.length===4?`0000`+e:e.length===3?`00000`+e:e.length===2?`000000`+e:e.length===1?`0000000`+e:e}e.zero8=c;function l(e,n,r,i){var a=r-n;t(a%4==0);for(var o=Array(a/4),s=0,c=n;s<o.length;s++,c+=4){var l=i===`big`?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c];o[s]=l>>>0}return o}e.join32=l;function u(e,t){for(var n=Array(e.length*4),r=0,i=0;r<e.length;r++,i+=4){var a=e[r];t===`big`?(n[i]=a>>>24,n[i+1]=a>>>16&255,n[i+2]=a>>>8&255,n[i+3]=a&255):(n[i+3]=a>>>24,n[i+2]=a>>>16&255,n[i+1]=a>>>8&255,n[i]=a&255)}return n}e.split32=u;function d(e,t){return e>>>t|e<<32-t}e.rotr32=d;function f(e,t){return e<<t|e>>>32-t}e.rotl32=f;function p(e,t){return e+t>>>0}e.sum32=p;function m(e,t,n){return e+t+n>>>0}e.sum32_3=m;function h(e,t,n,r){return e+t+n+r>>>0}e.sum32_4=h;function g(e,t,n,r,i){return e+t+n+r+i>>>0}e.sum32_5=g;function _(e,t,n,r){var i=e[t],a=r+e[t+1]>>>0;e[t]=+(a<r)+n+i>>>0,e[t+1]=a}e.sum64=_;function v(e,t,n,r){return+(t+r>>>0<t)+e+n>>>0}e.sum64_hi=v;function y(e,t,n,r){return t+r>>>0}e.sum64_lo=y;function b(e,t,n,r,i,a,o,s){var c=0,l=t;return l=l+r>>>0,c+=+(l<t),l=l+a>>>0,c+=+(l<a),l=l+s>>>0,c+=+(l<s),e+n+i+o+c>>>0}e.sum64_4_hi=b;function x(e,t,n,r,i,a,o,s){return t+r+a+s>>>0}e.sum64_4_lo=x;function S(e,t,n,r,i,a,o,s,c,l){var u=0,d=t;return d=d+r>>>0,u+=+(d<t),d=d+a>>>0,u+=+(d<a),d=d+s>>>0,u+=+(d<s),d=d+l>>>0,u+=+(d<l),e+n+i+o+c+u>>>0}e.sum64_5_hi=S;function C(e,t,n,r,i,a,o,s,c,l){return t+r+a+s+l>>>0}e.sum64_5_lo=C;function w(e,t,n){return(t<<32-n|e>>>n)>>>0}e.rotr64_hi=w;function T(e,t,n){return(e<<32-n|t>>>n)>>>0}e.rotr64_lo=T;function E(e,t,n){return e>>>n}e.shr64_hi=E;function D(e,t,n){return(e<<32-n|t>>>n)>>>0}e.shr64_lo=D})),L0=K((e=>{var t=I0(),n=F0();function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian=`big`,this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=r,r.prototype.update=function(e,n){if(e=t.toArray(e,n),this.pending=this.pending?this.pending.concat(e):e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),this.pending.length===0&&(this.pending=null),e=t.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},r.prototype.digest=function(e){return this.update(this._pad()),n(this.pending===null),this._digest(e)},r.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,this.endian===`big`){for(var a=8;a<this.padLength;a++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=e&255}else for(r[i++]=e&255,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,a=8;a<this.padLength;a++)r[i++]=0;return r}})),R0=K((e=>{var t=I0().rotr32;function n(e,t,n,o){if(e===0)return r(t,n,o);if(e===1||e===3)return a(t,n,o);if(e===2)return i(t,n,o)}e.ft_1=n;function r(e,t,n){return e&t^~e&n}e.ch32=r;function i(e,t,n){return e&t^e&n^t&n}e.maj32=i;function a(e,t,n){return e^t^n}e.p32=a;function o(e){return t(e,2)^t(e,13)^t(e,22)}e.s0_256=o;function s(e){return t(e,6)^t(e,11)^t(e,25)}e.s1_256=s;function c(e){return t(e,7)^t(e,18)^e>>>3}e.g0_256=c;function l(e){return t(e,17)^t(e,19)^e>>>10}e.g1_256=l})),z0=K(((e,t)=>{var n=I0(),r=L0(),i=R0(),a=n.rotl32,o=n.sum32,s=n.sum32_5,c=i.ft_1,l=r.BlockHash,u=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}n.inherits(d,l),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],l=this.h[1],d=this.h[2],f=this.h[3],p=this.h[4];for(r=0;r<n.length;r++){var m=~~(r/20),h=s(a(i,5),c(m,l,d,f),p,n[r],u[m]);p=f,f=d,d=a(l,30),l=i,i=h}this.h[0]=o(this.h[0],i),this.h[1]=o(this.h[1],l),this.h[2]=o(this.h[2],d),this.h[3]=o(this.h[3],f),this.h[4]=o(this.h[4],p)},d.prototype._digest=function(e){return e===`hex`?n.toHex32(this.h,`big`):n.split32(this.h,`big`)}})),B0=K(((e,t)=>{var n=I0(),r=L0(),i=R0(),a=F0(),o=n.sum32,s=n.sum32_4,c=n.sum32_5,l=i.ch32,u=i.maj32,d=i.s0_256,f=i.s1_256,p=i.g0_256,m=i.g1_256,h=r.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function _(){if(!(this instanceof _))return new _;h.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=Array(64)}n.inherits(_,h),t.exports=_,_.blockSize=512,_.outSize=256,_.hmacStrength=192,_.padLength=64,_.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=s(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],h=this.h[1],g=this.h[2],_=this.h[3],v=this.h[4],y=this.h[5],b=this.h[6],x=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var S=c(x,f(v),l(v,y,b),this.k[r],n[r]),C=o(d(i),u(i,h,g));x=b,b=y,y=v,v=o(_,S),_=g,g=h,h=i,i=o(S,C)}this.h[0]=o(this.h[0],i),this.h[1]=o(this.h[1],h),this.h[2]=o(this.h[2],g),this.h[3]=o(this.h[3],_),this.h[4]=o(this.h[4],v),this.h[5]=o(this.h[5],y),this.h[6]=o(this.h[6],b),this.h[7]=o(this.h[7],x)},_.prototype._digest=function(e){return e===`hex`?n.toHex32(this.h,`big`):n.split32(this.h,`big`)}})),V0=K(((e,t)=>{var n=I0(),r=B0();function i(){if(!(this instanceof i))return new i;r.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(i,r),t.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return e===`hex`?n.toHex32(this.h.slice(0,7),`big`):n.split32(this.h.slice(0,7),`big`)}})),H0=K(((e,t)=>{var n=I0(),r=L0(),i=F0(),a=n.rotr64_hi,o=n.rotr64_lo,s=n.shr64_hi,c=n.shr64_lo,l=n.sum64,u=n.sum64_hi,d=n.sum64_lo,f=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,h=n.sum64_5_lo,g=r.BlockHash,_=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=_,this.W=Array(160)}n.inherits(v,g),t.exports=v,v.blockSize=1024,v.outSize=512,v.hmacStrength=192,v.padLength=128,v.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=k(n[r-4],n[r-3]),a=A(n[r-4],n[r-3]),o=n[r-14],s=n[r-13],c=D(n[r-30],n[r-29]),l=O(n[r-30],n[r-29]),u=n[r-32],d=n[r-31];n[r]=f(i,a,o,s,c,l,u,d),n[r+1]=p(i,a,o,s,c,l,u,d)}},v.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],a=this.h[1],o=this.h[2],s=this.h[3],c=this.h[4],f=this.h[5],p=this.h[6],g=this.h[7],_=this.h[8],v=this.h[9],D=this.h[10],O=this.h[11],k=this.h[12],A=this.h[13],j=this.h[14],M=this.h[15];i(this.k.length===n.length);for(var N=0;N<n.length;N+=2){var P=j,F=M,I=T(_,v),L=E(_,v),R=y(_,v,D,O,k,A),ee=b(_,v,D,O,k,A),te=this.k[N],ne=this.k[N+1],re=n[N],ie=n[N+1],ae=m(P,F,I,L,R,ee,te,ne,re,ie),oe=h(P,F,I,L,R,ee,te,ne,re,ie);P=C(r,a),F=w(r,a),I=x(r,a,o,s,c,f),L=S(r,a,o,s,c,f);var se=u(P,F,I,L),ce=d(P,F,I,L);j=k,M=A,k=D,A=O,D=_,O=v,_=u(p,g,ae,oe),v=d(g,g,ae,oe),p=c,g=f,c=o,f=s,o=r,s=a,r=u(ae,oe,se,ce),a=d(ae,oe,se,ce)}l(this.h,0,r,a),l(this.h,2,o,s),l(this.h,4,c,f),l(this.h,6,p,g),l(this.h,8,_,v),l(this.h,10,D,O),l(this.h,12,k,A),l(this.h,14,j,M)},v.prototype._digest=function(e){return e===`hex`?n.toHex32(this.h,`big`):n.split32(this.h,`big`)};function y(e,t,n,r,i){var a=e&n^~e&i;return a<0&&(a+=4294967296),a}function b(e,t,n,r,i,a){var o=t&r^~t&a;return o<0&&(o+=4294967296),o}function x(e,t,n,r,i){var a=e&n^e&i^n&i;return a<0&&(a+=4294967296),a}function S(e,t,n,r,i,a){var o=t&r^t&a^r&a;return o<0&&(o+=4294967296),o}function C(e,t){var n=a(e,t,28),r=a(t,e,2),i=a(t,e,7),o=n^r^i;return o<0&&(o+=4294967296),o}function w(e,t){var n=o(e,t,28),r=o(t,e,2),i=o(t,e,7),a=n^r^i;return a<0&&(a+=4294967296),a}function T(e,t){var n=a(e,t,14),r=a(e,t,18),i=a(t,e,9),o=n^r^i;return o<0&&(o+=4294967296),o}function E(e,t){var n=o(e,t,14),r=o(e,t,18),i=o(t,e,9),a=n^r^i;return a<0&&(a+=4294967296),a}function D(e,t){var n=a(e,t,1),r=a(e,t,8),i=s(e,t,7),o=n^r^i;return o<0&&(o+=4294967296),o}function O(e,t){var n=o(e,t,1),r=o(e,t,8),i=c(e,t,7),a=n^r^i;return a<0&&(a+=4294967296),a}function k(e,t){var n=a(e,t,19),r=a(t,e,29),i=s(e,t,6),o=n^r^i;return o<0&&(o+=4294967296),o}function A(e,t){var n=o(e,t,19),r=o(t,e,29),i=c(e,t,6),a=n^r^i;return a<0&&(a+=4294967296),a}})),U0=K(((e,t)=>{var n=I0(),r=H0();function i(){if(!(this instanceof i))return new i;r.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(i,r),t.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return e===`hex`?n.toHex32(this.h.slice(0,12),`big`):n.split32(this.h.slice(0,12),`big`)}})),W0=K((e=>{e.sha1=z0(),e.sha224=V0(),e.sha256=B0(),e.sha384=U0(),e.sha512=H0()})),G0=K((e=>{var t=I0(),n=L0(),r=t.rotl32,i=t.sum32,a=t.sum32_3,o=t.sum32_4,s=n.BlockHash;function c(){if(!(this instanceof c))return new c;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian=`little`}t.inherits(c,s),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var n=this.h[0],s=this.h[1],c=this.h[2],g=this.h[3],_=this.h[4],v=n,y=s,b=c,x=g,S=_,C=0;C<80;C++){var w=i(r(o(n,l(C,s,c,g),e[f[C]+t],u(C)),m[C]),_);n=_,_=g,g=r(c,10),c=s,s=w,w=i(r(o(v,l(79-C,y,b,x),e[p[C]+t],d(C)),h[C]),S),v=S,S=x,x=r(b,10),b=y,y=w}w=a(this.h[1],c,x),this.h[1]=a(this.h[2],g,S),this.h[2]=a(this.h[3],_,v),this.h[3]=a(this.h[4],n,y),this.h[4]=a(this.h[0],s,b),this.h[0]=w},c.prototype._digest=function(e){return e===`hex`?t.toHex32(this.h,`little`):t.split32(this.h,`little`)};function l(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function u(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],p=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],h=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]})),K0=K(((e,t)=>{var n=I0(),r=F0();function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}t.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),r(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=new this.Hash().update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=new this.Hash().update(e)},i.prototype.update=function(e,t){return this.inner.update(e,t),this},i.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}})),q0=uQ(K((e=>{var t=e;t.utils=I0(),t.common=L0(),t.sha=W0(),t.ripemd=G0(),t.hmac=K0(),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160}))(),1),J0=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`,Y0=(e,t=21)=>(n=t)=>{let r=``,i=n|0;for(;i--;)r+=e[Math.random()*e.length|0];return r},X0=(e=21)=>{let t=``,n=e|0;for(;n--;)t+=J0[Math.random()*64|0];return t},Z0=e=>Math.floor(e/25.4*72*20),Q0=e=>Math.floor(e*72*20),$0=(e=0)=>{let t=e;return()=>++t},e2=()=>$0(),t2=()=>$0(1),n2=()=>$0(),r2=()=>$0(),i2=()=>X0().toLowerCase(),a2=e=>q0.default.sha1().update(e instanceof ArrayBuffer?new Uint8Array(e):e).digest(`hex`),o2=e=>Y0(`1234567890abcdef`,e)(),s2=()=>`${o2(8)}-${o2(4)}-${o2(4)}-${o2(4)}-${o2(12)}`,c2=e=>new Uint8Array(new TextEncoder().encode(e)),l2={CHARACTER:`character`,COLUMN:`column`,INSIDE_MARGIN:`insideMargin`,LEFT_MARGIN:`leftMargin`,MARGIN:`margin`,OUTSIDE_MARGIN:`outsideMargin`,PAGE:`page`,RIGHT_MARGIN:`rightMargin`},u2={BOTTOM_MARGIN:`bottomMargin`,INSIDE_MARGIN:`insideMargin`,LINE:`line`,MARGIN:`margin`,OUTSIDE_MARGIN:`outsideMargin`,PAGE:`page`,PARAGRAPH:`paragraph`,TOP_MARGIN:`topMargin`},d2=()=>new Y({name:`wp:simplePos`,attributes:{x:{key:`x`,value:0},y:{key:`y`,value:0}}}),f2=e=>new Y({name:`wp:align`,children:[e]}),p2=e=>new Y({name:`wp:posOffset`,children:[e.toString()]}),m2=({relative:e,align:t,offset:n})=>new Y({name:`wp:positionH`,attributes:{relativeFrom:{key:`relativeFrom`,value:e??l2.PAGE}},children:[(()=>{if(t)return f2(t);if(n!==void 0)return p2(n);throw Error(`There is no configuration provided for floating position (Align or offset)`)})()]}),h2=({relative:e,align:t,offset:n})=>new Y({name:`wp:positionV`,attributes:{relativeFrom:{key:`relativeFrom`,value:e??u2.PAGE}},children:[(()=>{if(t)return f2(t);if(n!==void 0)return p2(n);throw Error(`There is no configuration provided for floating position (Align or offset)`)})()]}),g2=function(e){return e.CENTER=`ctr`,e.TOP=`t`,e.BOTTOM=`b`,e}({}),_2=(e={})=>new Y({name:`wps:bodyPr`,attributes:{lIns:{key:`lIns`,value:e.margins?.left},rIns:{key:`rIns`,value:e.margins?.right},tIns:{key:`tIns`,value:e.margins?.top},bIns:{key:`bIns`,value:e.margins?.bottom},anchor:{key:`anchor`,value:e.verticalAnchor}},children:[...e.noAutoFit?[new J(`a:noAutofit`,e.noAutoFit)]:[]]}),v2=(e={txBox:`1`})=>new Y({name:`wps:cNvSpPr`,attributes:{txBox:{key:`txBox`,value:e.txBox}}}),y2=e=>new Y({name:`w:txbxContent`,children:[...e]}),b2=e=>new Y({name:`wps:txbx`,children:[y2(e)]}),x2=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{cx:`cx`,cy:`cy`})}},S2=class extends q{constructor(e,t){super(`a:ext`),W(this,`attributes`,void 0),this.attributes=new x2({cx:e,cy:t}),this.root.push(this.attributes)}},C2=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{x:`x`,y:`y`})}},w2=class extends q{constructor(e,t){super(`a:off`),this.root.push(new C2({x:e??0,y:t??0}))}},T2=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{flipVertical:`flipV`,flipHorizontal:`flipH`,rotation:`rot`})}},E2=class extends q{constructor(e){var t,n;super(`a:xfrm`),W(this,`extents`,void 0),W(this,`offset`,void 0),this.root.push(new T2({flipVertical:e.flip?.vertical,flipHorizontal:e.flip?.horizontal,rotation:e.rotation})),this.offset=new w2((t=e.offset)==null||(t=t.emus)==null?void 0:t.x,(n=e.offset)==null||(n=n.emus)==null?void 0:n.y),this.extents=new S2(e.emus.x,e.emus.y),this.root.push(this.offset),this.root.push(this.extents)}},D2=()=>new Y({name:`a:noFill`}),O2=e=>new Y({name:`a:srgbClr`,attributes:{value:{key:`val`,value:e.value}}}),k2=e=>new Y({name:`a:schemeClr`,attributes:{value:{key:`val`,value:e.value}}}),A2=e=>new Y({name:`a:solidFill`,children:[e.type===`rgb`?O2(e):k2(e)]}),j2=e=>new Y({name:`a:ln`,attributes:{width:{key:`w`,value:e.width},cap:{key:`cap`,value:e.cap},compoundLine:{key:`cmpd`,value:e.compoundLine},align:{key:`algn`,value:e.align}},children:[e.type===`noFill`?D2():e.solidFillType===`rgb`?A2({type:`rgb`,value:e.value}):A2({type:`scheme`,value:e.value})]}),M2=class extends q{constructor(){super(`a:avLst`)}},N2=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{prst:`prst`})}},P2=class extends q{constructor(){super(`a:prstGeom`),this.root.push(new N2({prst:`rect`})),this.root.push(new M2)}},F2=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{bwMode:`bwMode`})}},I2=class extends q{constructor({element:e,outline:t,solidFill:n,transform:r}){super(`${e}:spPr`),W(this,`form`,void 0),this.root.push(new F2({bwMode:`auto`})),this.form=new E2(r),this.root.push(this.form),this.root.push(new P2),t&&(this.root.push(D2()),this.root.push(j2(t))),n&&this.root.push(A2(n))}},L2=e=>new Y({name:`wps:wsp`,children:[v2(e.nonVisualProperties),new I2({element:`wps`,transform:e.transformation,outline:e.outline,solidFill:e.solidFill}),b2(e.children),_2(e.bodyProperties)]}),R2=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{uri:`uri`})}},z2=e=>new Y({name:`asvg:svgBlip`,attributes:{asvg:{key:`xmlns:asvg`,value:`http://schemas.microsoft.com/office/drawing/2016/SVG/main`},embed:{key:`r:embed`,value:`rId{${e.fileName}}`}}}),B2=e=>new Y({name:`a:ext`,attributes:{uri:{key:`uri`,value:`{96DAC541-7B7A-43D3-8B79-37D633B846F1}`}},children:[z2(e)]}),V2=e=>new Y({name:`a:extLst`,children:[B2(e)]}),H2=e=>new Y({name:`a:blip`,attributes:{embed:{key:`r:embed`,value:`rId{${e.type===`svg`?e.fallback.fileName:e.fileName}}`},cstate:{key:`cstate`,value:`none`}},children:e.type===`svg`?[V2(e)]:[]}),U2=class extends q{constructor(){super(`a:srcRect`)}},W2=class extends q{constructor(){super(`a:fillRect`)}},G2=class extends q{constructor(){super(`a:stretch`),this.root.push(new W2)}},K2=class extends q{constructor(e){super(`pic:blipFill`),this.root.push(H2(e)),this.root.push(new U2),this.root.push(new G2)}},q2=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{noChangeAspect:`noChangeAspect`,noChangeArrowheads:`noChangeArrowheads`})}},J2=class extends q{constructor(){super(`a:picLocks`),this.root.push(new q2({noChangeAspect:1,noChangeArrowheads:1}))}},Y2=class extends q{constructor(){super(`pic:cNvPicPr`),this.root.push(new J2)}},X2=(e,t)=>new Y({name:`a:hlinkClick`,attributes:G(G({},t?{xmlns:{key:`xmlns:a`,value:`http://schemas.openxmlformats.org/drawingml/2006/main`}}:{}),{},{id:{key:`r:id`,value:`rId${e}`}})}),Z2=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`id`,name:`name`,descr:`descr`})}},Q2=class extends q{constructor(){super(`pic:cNvPr`),this.root.push(new Z2({id:0,name:``,descr:``}))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){let n=e.stack[t];if(n instanceof V3){this.root.push(X2(n.linkId,!1));break}}return super.prepForXml(e)}},$2=class extends q{constructor(){super(`pic:nvPicPr`),this.root.push(new Q2),this.root.push(new Y2)}},e4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{xmlns:`xmlns:pic`})}},t4=class extends q{constructor({mediaData:e,transform:t,outline:n}){super(`pic:pic`),this.root.push(new e4({xmlns:`http://schemas.openxmlformats.org/drawingml/2006/picture`})),this.root.push(new $2),this.root.push(new K2(e)),this.root.push(new I2({element:`pic`,transform:t,outline:n}))}},n4=e=>new Y({name:`wpg:grpSpPr`,children:[new E2(e)]}),r4=()=>new Y({name:`wpg:cNvGrpSpPr`}),i4=e=>new Y({name:`wpg:wgp`,children:[r4(),n4(e.transformation),...e.children]}),a4=class extends q{constructor({mediaData:e,transform:t,outline:n,solidFill:r}){if(super(`a:graphicData`),e.type===`wps`){this.root.push(new R2({uri:`http://schemas.microsoft.com/office/word/2010/wordprocessingShape`}));let i=L2(G(G({},e.data),{},{transformation:t,outline:n,solidFill:r}));this.root.push(i)}else if(e.type===`wpg`){this.root.push(new R2({uri:`http://schemas.microsoft.com/office/word/2010/wordprocessingGroup`}));let n=i4({children:e.children.map(e=>e.type===`wps`?L2(G(G({},e.data),{},{transformation:e.transformation,outline:e.outline,solidFill:e.solidFill})):new t4({mediaData:e,transform:e.transformation,outline:e.outline})),transformation:t});this.root.push(n)}else{this.root.push(new R2({uri:`http://schemas.openxmlformats.org/drawingml/2006/picture`}));let r=new t4({mediaData:e,transform:t,outline:n});this.root.push(r)}}},o4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{a:`xmlns:a`})}},s4=class extends q{constructor({mediaData:e,transform:t,outline:n,solidFill:r}){super(`a:graphic`),W(this,`data`,void 0),this.root.push(new o4({a:`http://schemas.openxmlformats.org/drawingml/2006/main`})),this.data=new a4({mediaData:e,transform:t,outline:n,solidFill:r}),this.root.push(this.data)}},c4={NONE:0,SQUARE:1,TIGHT:2,TOP_AND_BOTTOM:3},l4={BOTH_SIDES:`bothSides`,LEFT:`left`,RIGHT:`right`,LARGEST:`largest`},u4=()=>new Y({name:`wp:wrapNone`}),d4=(e,t={top:0,bottom:0,left:0,right:0})=>new Y({name:`wp:wrapSquare`,attributes:{wrapText:{key:`wrapText`,value:e.side||l4.BOTH_SIDES},distT:{key:`distT`,value:t.top},distB:{key:`distB`,value:t.bottom},distL:{key:`distL`,value:t.left},distR:{key:`distR`,value:t.right}}}),f4=(e={top:0,bottom:0})=>new Y({name:`wp:wrapTight`,attributes:{distT:{key:`distT`,value:e.top},distB:{key:`distB`,value:e.bottom}}}),p4=(e={top:0,bottom:0})=>new Y({name:`wp:wrapTopAndBottom`,attributes:{distT:{key:`distT`,value:e.top},distB:{key:`distB`,value:e.bottom}}}),m4=class extends q{constructor({name:e,description:t,title:n,id:r}={name:``,description:``,title:``}){super(`wp:docPr`),W(this,`docPropertiesUniqueNumericId`,n2());let i={id:{key:`id`,value:r??this.docPropertiesUniqueNumericId()},name:{key:`name`,value:e}};t!=null&&(i.description={key:`descr`,value:t}),n!=null&&(i.title={key:`title`,value:n}),this.root.push(new gQ(i))}prepForXml(e){for(let t=e.stack.length-1;t>=0;t--){let n=e.stack[t];if(n instanceof V3){this.root.push(X2(n.linkId,!0));break}}return super.prepForXml(e)}},h4=({top:e,right:t,bottom:n,left:r})=>new Y({name:`wp:effectExtent`,attributes:{top:{key:`t`,value:e},right:{key:`r`,value:t},bottom:{key:`b`,value:n},left:{key:`l`,value:r}}}),g4=({x:e,y:t})=>new Y({name:`wp:extent`,attributes:{x:{key:`cx`,value:e},y:{key:`cy`,value:t}}}),_4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{xmlns:`xmlns:a`,noChangeAspect:`noChangeAspect`})}},v4=class extends q{constructor(){super(`a:graphicFrameLocks`),this.root.push(new _4({xmlns:`http://schemas.openxmlformats.org/drawingml/2006/main`,noChangeAspect:1}))}},y4=()=>new Y({name:`wp:cNvGraphicFramePr`,children:[new v4]}),b4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{distT:`distT`,distB:`distB`,distL:`distL`,distR:`distR`,allowOverlap:`allowOverlap`,behindDoc:`behindDoc`,layoutInCell:`layoutInCell`,locked:`locked`,relativeHeight:`relativeHeight`,simplePos:`simplePos`})}},x4=class extends q{constructor({mediaData:e,transform:t,drawingOptions:n}){super(`wp:anchor`);let r=G({allowOverlap:!0,behindDocument:!1,lockAnchor:!1,layoutInCell:!0,verticalPosition:{},horizontalPosition:{}},n.floating);if(this.root.push(new b4({distT:r.margins&&r.margins.top||0,distB:r.margins&&r.margins.bottom||0,distL:r.margins&&r.margins.left||0,distR:r.margins&&r.margins.right||0,simplePos:`0`,allowOverlap:r.allowOverlap===!0?`1`:`0`,behindDoc:r.behindDocument===!0?`1`:`0`,locked:r.lockAnchor===!0?`1`:`0`,layoutInCell:r.layoutInCell===!0?`1`:`0`,relativeHeight:r.zIndex?r.zIndex:t.emus.y})),this.root.push(d2()),this.root.push(m2(r.horizontalPosition)),this.root.push(h2(r.verticalPosition)),this.root.push(g4({x:t.emus.x,y:t.emus.y})),this.root.push(h4({top:0,right:0,bottom:0,left:0})),n.floating!==void 0&&n.floating.wrap!==void 0)switch(n.floating.wrap.type){case c4.SQUARE:this.root.push(d4(n.floating.wrap,n.floating.margins));break;case c4.TIGHT:this.root.push(f4(n.floating.margins));break;case c4.TOP_AND_BOTTOM:this.root.push(p4(n.floating.margins));break;case c4.NONE:default:this.root.push(u4())}else this.root.push(u4());this.root.push(new m4(n.docProperties)),this.root.push(y4()),this.root.push(new s4({mediaData:e,transform:t,outline:n.outline,solidFill:n.solidFill}))}},S4=({mediaData:e,transform:t,docProperties:n,outline:r,solidFill:i})=>new Y({name:`wp:inline`,attributes:{distanceTop:{key:`distT`,value:0},distanceBottom:{key:`distB`,value:0},distanceLeft:{key:`distL`,value:0},distanceRight:{key:`distR`,value:0}},children:[g4({x:t.emus.x,y:t.emus.y}),h4(r?{top:(r.width??9525)*2,right:(r.width??9525)*2,bottom:(r.width??9525)*2,left:(r.width??9525)*2}:{top:0,right:0,bottom:0,left:0}),new m4(n),y4(),new s4({mediaData:e,transform:t,outline:r,solidFill:i})]}),C4=class extends q{constructor(e,t={}){super(`w:drawing`),t.floating?this.root.push(new x4({mediaData:e,transform:e.transformation,drawingOptions:t})):this.root.push(S4({mediaData:e,transform:e.transformation,docProperties:t.docProperties,outline:t.outline,solidFill:t.solidFill}))}},w4=e=>{let t=e.indexOf(`;base64,`),n=t===-1?0:t+8;return new Uint8Array(atob(e.substring(n)).split(``).map(e=>e.charCodeAt(0)))},T4=e=>typeof e==`string`?w4(e):e,E4=(e,t)=>({data:T4(e.data),fileName:t,transformation:{pixels:{x:Math.round(e.transformation.width),y:Math.round(e.transformation.height)},emus:{x:Math.round(e.transformation.width*9525),y:Math.round(e.transformation.height*9525)},flip:e.transformation.flip,rotation:e.transformation.rotation?e.transformation.rotation*6e4:void 0}}),D4=class extends q{constructor(e){var t=(...e)=>(super(...e),W(this,`imageData`,void 0),this);let n=`${a2(e.data)}.${e.type}`,r=e.type===`svg`?G(G({type:e.type},E4(e,n)),{},{fallback:G({type:e.fallback.type},E4(G(G({},e.fallback),{},{transformation:e.transformation}),`${a2(e.fallback.data)}.${e.fallback.type}`))}):G({type:e.type},E4(e,n)),i=new C4(r,{floating:e.floating,docProperties:e.altText,outline:e.outline}),a=new A0({children:[i]});e.insertion?(t(`w:ins`),this.root.push(new o0({id:e.insertion.id,author:e.insertion.author,date:e.insertion.date})),this.addChildElement(a)):e.deletion?(t(`w:del`),this.root.push(new o0({id:e.deletion.id,author:e.deletion.author,date:e.deletion.date})),this.addChildElement(a)):(t(`w:r`),this.root.push(new T0({})),this.root.push(i)),this.imageData=r}prepForXml(e){return e.file.Media.addImage(this.imageData.fileName,this.imageData),this.imageData.type===`svg`&&e.file.Media.addImage(this.imageData.fallback.fileName,this.imageData.fallback),super.prepForXml(e)}},O4=e=>({offset:{pixels:{x:Math.round(e.offset?.left??0),y:Math.round(e.offset?.top??0)},emus:{x:Math.round((e.offset?.left??0)*9525),y:Math.round((e.offset?.top??0)*9525)}},pixels:{x:Math.round(e.width),y:Math.round(e.height)},emus:{x:Math.round(e.width*9525),y:Math.round(e.height*9525)},flip:e.flip,rotation:e.rotation?e.rotation*6e4:void 0}),k4=class extends A0{constructor(e){super({}),W(this,`wpsShapeData`,void 0),this.wpsShapeData={type:e.type,transformation:O4(e.transformation),data:G({},e)};let t=new C4(this.wpsShapeData,{floating:e.floating,docProperties:e.altText,outline:e.outline,solidFill:e.solidFill});this.root.push(t)}},A4=class extends A0{constructor(e){super({}),W(this,`wpgGroupData`,void 0),W(this,`mediaDatas`,void 0),this.wpgGroupData={type:e.type,transformation:O4(e.transformation),children:e.children};let t=new C4(this.wpgGroupData,{floating:e.floating,docProperties:e.altText});this.mediaDatas=e.children.filter(e=>e.type!==`wps`).map(e=>e),this.root.push(t)}prepForXml(e){return this.mediaDatas.forEach(t=>{e.file.Media.addImage(t.fileName,t),t.type===`svg`&&e.file.Media.addImage(t.fallback.fileName,t.fallback)}),super.prepForXml(e)}},j4=class extends q{constructor(e){super(`w:instrText`),this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(`SEQ ${e}`)}},M4=class extends A0{constructor(e){super({}),this.root.push(K1(!0)),this.root.push(new j4(e)),this.root.push(q1()),this.root.push(J1())}},N4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{instr:`w:instr`})}},P4=class extends q{constructor(e,t){super(`w:fldSimple`),this.root.push(new N4({instr:e})),t!==void 0&&this.root.push(new j0(t))}},F4=class extends P4{constructor(e){super(` MERGEFIELD ${e} `,`«${e}»`)}},I4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{xmlns:`xmlns`})}},L4={EXTERNAL:`External`},R4=(e,t,n,r)=>new Y({name:`Relationship`,attributes:{id:{key:`Id`,value:e},type:{key:`Type`,value:t},target:{key:`Target`,value:n},targetMode:{key:`TargetMode`,value:r}}}),z4=class extends q{constructor(){super(`Relationships`),this.root.push(new I4({xmlns:`http://schemas.openxmlformats.org/package/2006/relationships`}))}addRelationship(e,t,n,r){this.root.push(R4(`rId${e}`,t,n,r))}get RelationshipCount(){return this.root.length-1}},B4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`w:id`,initials:`w:initials`,author:`w:author`,date:`w:date`})}},V4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`w:id`})}},H4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{"xmlns:cx":`xmlns:cx`,"xmlns:cx1":`xmlns:cx1`,"xmlns:cx2":`xmlns:cx2`,"xmlns:cx3":`xmlns:cx3`,"xmlns:cx4":`xmlns:cx4`,"xmlns:cx5":`xmlns:cx5`,"xmlns:cx6":`xmlns:cx6`,"xmlns:cx7":`xmlns:cx7`,"xmlns:cx8":`xmlns:cx8`,"xmlns:mc":`xmlns:mc`,"xmlns:aink":`xmlns:aink`,"xmlns:am3d":`xmlns:am3d`,"xmlns:o":`xmlns:o`,"xmlns:r":`xmlns:r`,"xmlns:m":`xmlns:m`,"xmlns:v":`xmlns:v`,"xmlns:wp14":`xmlns:wp14`,"xmlns:wp":`xmlns:wp`,"xmlns:w10":`xmlns:w10`,"xmlns:w":`xmlns:w`,"xmlns:w14":`xmlns:w14`,"xmlns:w15":`xmlns:w15`,"xmlns:w16cex":`xmlns:w16cex`,"xmlns:w16cid":`xmlns:w16cid`,"xmlns:w16":`xmlns:w16`,"xmlns:w16sdtdh":`xmlns:w16sdtdh`,"xmlns:w16se":`xmlns:w16se`,"xmlns:wpg":`xmlns:wpg`,"xmlns:wpi":`xmlns:wpi`,"xmlns:wne":`xmlns:wne`,"xmlns:wps":`xmlns:wps`})}},U4=class extends q{constructor(e){super(`w:commentRangeStart`),this.root.push(new V4({id:e}))}},W4=class extends q{constructor(e){super(`w:commentRangeEnd`),this.root.push(new V4({id:e}))}},G4=class extends q{constructor(e){super(`w:commentReference`),this.root.push(new V4({id:e}))}},K4=class extends q{constructor({id:e,initials:t,author:n,date:r=new Date,children:i},a){super(`w:comment`),W(this,`paraId`,void 0),this.paraId=a,this.root.push(new B4({id:e,initials:t,author:n,date:r.toISOString()}));for(let e of i)this.root.push(e)}prepForXml(e){let t=super.prepForXml(e);if(!t||!this.paraId)return t;let n=t[`w:comment`];if(!Array.isArray(n))return t;for(let e=n.length-1;e>=0;e--){let t=n[e];if(t&&typeof t==`object`&&`w:p`in t){let e=t[`w:p`];Array.isArray(e)&&e.unshift({_attr:{"w14:paraId":this.paraId,"w14:textId":this.paraId}});break}}return t}},q4=e=>(e+1).toString(16).toUpperCase().padStart(8,`0`),J4=class extends q{constructor({children:e}){if(super(`w:comments`),W(this,`relationships`,void 0),W(this,`threadData`,void 0),this.root.push(new H4({"xmlns:cx":`http://schemas.microsoft.com/office/drawing/2014/chartex`,"xmlns:cx1":`http://schemas.microsoft.com/office/drawing/2015/9/8/chartex`,"xmlns:cx2":`http://schemas.microsoft.com/office/drawing/2015/10/21/chartex`,"xmlns:cx3":`http://schemas.microsoft.com/office/drawing/2016/5/9/chartex`,"xmlns:cx4":`http://schemas.microsoft.com/office/drawing/2016/5/10/chartex`,"xmlns:cx5":`http://schemas.microsoft.com/office/drawing/2016/5/11/chartex`,"xmlns:cx6":`http://schemas.microsoft.com/office/drawing/2016/5/12/chartex`,"xmlns:cx7":`http://schemas.microsoft.com/office/drawing/2016/5/13/chartex`,"xmlns:cx8":`http://schemas.microsoft.com/office/drawing/2016/5/14/chartex`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"xmlns:aink":`http://schemas.microsoft.com/office/drawing/2016/ink`,"xmlns:am3d":`http://schemas.microsoft.com/office/drawing/2017/model3d`,"xmlns:o":`urn:schemas-microsoft-com:office:office`,"xmlns:r":`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,"xmlns:m":`http://schemas.openxmlformats.org/officeDocument/2006/math`,"xmlns:v":`urn:schemas-microsoft-com:vml`,"xmlns:wp14":`http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing`,"xmlns:wp":`http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`,"xmlns:w10":`urn:schemas-microsoft-com:office:word`,"xmlns:w":`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,"xmlns:w14":`http://schemas.microsoft.com/office/word/2010/wordml`,"xmlns:w15":`http://schemas.microsoft.com/office/word/2012/wordml`,"xmlns:w16cex":`http://schemas.microsoft.com/office/word/2018/wordml/cex`,"xmlns:w16cid":`http://schemas.microsoft.com/office/word/2016/wordml/cid`,"xmlns:w16":`http://schemas.microsoft.com/office/word/2018/wordml`,"xmlns:w16sdtdh":`http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash`,"xmlns:w16se":`http://schemas.microsoft.com/office/word/2015/wordml/symex`,"xmlns:wpg":`http://schemas.microsoft.com/office/word/2010/wordprocessingGroup`,"xmlns:wpi":`http://schemas.microsoft.com/office/word/2010/wordprocessingInk`,"xmlns:wne":`http://schemas.microsoft.com/office/word/2006/wordml`,"xmlns:wps":`http://schemas.microsoft.com/office/word/2010/wordprocessingShape`})),e.some(e=>e.parentId!==void 0)){let t=new Map(e.map(e=>[e.id,q4(e.id)]));for(let n of e)this.root.push(new K4(n,t.get(n.id)));this.threadData=e.map(e=>({paraId:t.get(e.id),parentParaId:e.parentId===void 0?void 0:t.get(e.parentId),done:e.resolved}))}else for(let t of e)this.root.push(new K4(t));this.relationships=new z4}get Relationships(){return this.relationships}get ThreadData(){return this.threadData}},Y4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{"xmlns:wpc":`xmlns:wpc`,"xmlns:mc":`xmlns:mc`,"xmlns:w15":`xmlns:w15`,"mc:Ignorable":`mc:Ignorable`})}},X4=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{paraId:`w15:paraId`,paraIdParent:`w15:paraIdParent`,done:`w15:done`})}},Z4=class extends q{constructor(e){super(`w15:commentEx`),this.root.push(new X4({paraId:e.paraId,paraIdParent:e.parentParaId,done:e.done===void 0?void 0:e.done?`1`:`0`}))}},Q4=class extends q{constructor(e){super(`w15:commentsEx`),this.root.push(new Y4({"xmlns:wpc":`http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas`,"xmlns:mc":`http://schemas.openxmlformats.org/markup-compatibility/2006`,"xmlns:w15":`http://schemas.microsoft.com/office/word/2012/wordml`,"mc:Ignorable":`w15`}));for(let t of e)this.root.push(new Z4(t))}},$4=class extends A1{constructor(){super(`w:noBreakHyphen`)}},e3=class extends A1{constructor(){super(`w:softHyphen`)}},t3=class extends A1{constructor(){super(`w:dayShort`)}},n3=class extends A1{constructor(){super(`w:monthShort`)}},r3=class extends A1{constructor(){super(`w:yearShort`)}},i3=class extends A1{constructor(){super(`w:dayLong`)}},a3=class extends A1{constructor(){super(`w:monthLong`)}},o3=class extends A1{constructor(){super(`w:yearLong`)}},s3=class extends A1{constructor(){super(`w:annotationRef`)}},c3=class extends A1{constructor(){super(`w:footnoteRef`)}},l3=class extends A1{constructor(){super(`w:endnoteRef`)}},u3=class extends A1{constructor(){super(`w:separator`)}},d3=class extends A1{constructor(){super(`w:continuationSeparator`)}},f3=class extends A1{constructor(){super(`w:pgNum`)}},p3=class extends A1{constructor(){super(`w:cr`)}},m3=class extends A1{constructor(){super(`w:tab`)}},h3=class extends A1{constructor(){super(`w:lastRenderedPageBreak`)}},g3={LEFT:`left`,CENTER:`center`,RIGHT:`right`},_3={MARGIN:`margin`,INDENT:`indent`},v3={NONE:`none`,DOT:`dot`,HYPHEN:`hyphen`,UNDERSCORE:`underscore`,MIDDLE_DOT:`middleDot`},y3=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{alignment:`w:alignment`,relativeTo:`w:relativeTo`,leader:`w:leader`})}},b3=class extends q{constructor(e){super(`w:ptab`),this.root.push(new y3({alignment:e.alignment,relativeTo:e.relativeTo,leader:e.leader}))}},x3={COLUMN:`column`,PAGE:`page`},S3=class extends q{constructor(e){super(`w:br`),this.root.push(new _Q({type:e}))}},C3=class extends A0{constructor(){super({}),this.root.push(new S3(x3.PAGE))}},w3=class extends A0{constructor(){super({}),this.root.push(new S3(x3.COLUMN))}},T3=class extends q{constructor(){super(`w:pageBreakBefore`)}},E3={AT_LEAST:`atLeast`,EXACTLY:`exactly`,EXACT:`exact`,AUTO:`auto`},D3=({after:e,before:t,line:n,lineRule:r,beforeAutoSpacing:i,afterAutoSpacing:a})=>new Y({name:`w:spacing`,attributes:{after:{key:`w:after`,value:e},before:{key:`w:before`,value:t},line:{key:`w:line`,value:n},lineRule:{key:`w:lineRule`,value:r},beforeAutoSpacing:{key:`w:beforeAutospacing`,value:i},afterAutoSpacing:{key:`w:afterAutospacing`,value:a}}}),O3={HEADING_1:`Heading1`,HEADING_2:`Heading2`,HEADING_3:`Heading3`,HEADING_4:`Heading4`,HEADING_5:`Heading5`,HEADING_6:`Heading6`,TITLE:`Title`},k3=e=>new Y({name:`w:pStyle`,attributes:{val:{key:`w:val`,value:e}}}),A3={LEFT:`left`,RIGHT:`right`,CENTER:`center`,BAR:`bar`,CLEAR:`clear`,DECIMAL:`decimal`,END:`end`,NUM:`num`,START:`start`},j3={DOT:`dot`,HYPHEN:`hyphen`,MIDDLE_DOT:`middleDot`,NONE:`none`,UNDERSCORE:`underscore`},M3={MAX:9026},N3=({type:e,position:t,leader:n})=>new Y({name:`w:tab`,attributes:{val:{key:`w:val`,value:e},pos:{key:`w:pos`,value:t},leader:{key:`w:leader`,value:n}}}),P3=e=>new Y({name:`w:tabs`,children:e.map(e=>N3(e))}),F3=class extends q{constructor(e,t){super(`w:numPr`),this.root.push(new I3(t)),this.root.push(new L3(e))}},I3=class extends q{constructor(e){if(super(`w:ilvl`),e>9)throw Error(`Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7`);this.root.push(new _Q({val:e}))}},L3=class extends q{constructor(e){super(`w:numId`),this.root.push(new _Q({val:typeof e==`string`?`{${e}}`:e}))}},R3=class extends q{constructor(...e){super(...e),W(this,`fileChild`,Symbol())}},z3=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`r:id`,history:`w:history`,anchor:`w:anchor`})}},B3={INTERNAL:`INTERNAL`,EXTERNAL:`EXTERNAL`},V3=class extends q{constructor(e,t,n){super(`w:hyperlink`),W(this,`linkId`,void 0),this.linkId=t;let r=new z3({history:1,anchor:n||void 0,id:n?void 0:`rId${this.linkId}`});this.root.push(r),e.forEach(e=>{this.root.push(e)})}},H3=class extends V3{constructor(e){super(e.children,i2(),e.anchor)}},U3=class extends q{constructor(e){super(`w:externalHyperlink`),W(this,`options`,void 0),this.options=e}},W3=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`w:id`,name:`w:name`})}},G3=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`w:id`})}},K3=class{constructor(e){W(this,`bookmarkUniqueNumericId`,r2()),W(this,`start`,void 0),W(this,`children`,void 0),W(this,`end`,void 0);let t=this.bookmarkUniqueNumericId();this.start=new q3(e.id,t),this.children=e.children,this.end=new J3(t)}},q3=class extends q{constructor(e,t){super(`w:bookmarkStart`);let n=new W3({name:e,id:t});this.root.push(n)}},J3=class extends q{constructor(e){super(`w:bookmarkEnd`);let t=new G3({id:e});this.root.push(t)}},Y3=function(e){return e.NONE=`none`,e.RELATIVE=`relative`,e.NO_CONTEXT=`no_context`,e.FULL_CONTEXT=`full_context`,e}({}),X3={relative:`\\r`,no_context:`\\n`,full_context:`\\w`,none:void 0},Z3=class extends P4{constructor(e,t,n={}){let{hyperlink:r=!0,referenceFormat:i=`full_context`}=n,a=`${`REF ${e}`} ${[...r?[`\\h`]:[],...[X3[i]].filter(e=>!!e)].join(` `)}`;super(a,t)}},Q3=e=>new Y({name:`w:outlineLvl`,attributes:{val:{key:`w:val`,value:e}}}),$3=class extends q{constructor(e,t={}){super(`w:instrText`),this.root.push(new $1({space:Q1.PRESERVE}));let n=`PAGEREF ${e}`;t.hyperlink&&(n=`${n} \\h`),t.useRelativePosition&&(n=`${n} \\p`),this.root.push(n)}},e6=class extends A0{constructor(e,t={}){super({children:[K1(!0),new $3(e,t),J1()]})}},t6={ANSI:`00`,DEFAULT:`01`,SYMBOL:`02`,MAC:`4D`,JIS:`80`,HANGUL:`81`,JOHAB:`82`,GB_2312:`86`,CHINESEBIG5:`88`,GREEK:`A1`,TURKISH:`A2`,VIETNAMESE:`A3`,HEBREW:`B1`,ARABIC:`B2`,BALTIC:`BA`,RUSSIAN:`CC`,THAI:`DE`,EASTEUROPE:`EE`,OEM:`FF`},n6=({id:e,fontKey:t,subsetted:n},r)=>new Y({name:r,attributes:G({id:{key:`r:id`,value:e}},t?{fontKey:{key:`w:fontKey`,value:`{${t}}`}}:{}),children:[...n?[new J(`w:subsetted`,n)]:[]]}),r6=({name:e,altName:t,panose1:n,charset:r,family:i,notTrueType:a,pitch:o,sig:s,embedRegular:c,embedBold:l,embedItalic:u,embedBoldItalic:d})=>new Y({name:`w:font`,attributes:{name:{key:`w:name`,value:e}},children:[...t?[M1(`w:altName`,t)]:[],...n?[M1(`w:panose1`,n)]:[],...r?[M1(`w:charset`,r)]:[],...i?[M1(`w:family`,i)]:[],...a?[new J(`w:notTrueType`,a)]:[],...o?[M1(`w:pitch`,o)]:[],...s?[new Y({name:`w:sig`,attributes:{usb0:{key:`w:usb0`,value:s.usb0},usb1:{key:`w:usb1`,value:s.usb1},usb2:{key:`w:usb2`,value:s.usb2},usb3:{key:`w:usb3`,value:s.usb3},csb0:{key:`w:csb0`,value:s.csb0},csb1:{key:`w:csb1`,value:s.csb1}}})]:[],...c?[n6(c,`w:embedRegular`)]:[],...l?[n6(l,`w:embedBold`)]:[],...u?[n6(u,`w:embedItalic`)]:[],...d?[n6(d,`w:embedBoldItalic`)]:[]]}),i6=({name:e,index:t,fontKey:n,characterSet:r})=>r6({name:e,sig:{usb0:`E0002AFF`,usb1:`C000247B`,usb2:`00000009`,usb3:`00000000`,csb0:`000001FF`,csb1:`00000000`},charset:r,family:`auto`,pitch:`variable`,embedRegular:{fontKey:n,id:`rId${t}`}}),a6=e=>new Y({name:`w:fonts`,attributes:{mc:{key:`xmlns:mc`,value:`http://schemas.openxmlformats.org/markup-compatibility/2006`},r:{key:`xmlns:r`,value:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`},w:{key:`xmlns:w`,value:`http://schemas.openxmlformats.org/wordprocessingml/2006/main`},w14:{key:`xmlns:w14`,value:`http://schemas.microsoft.com/office/word/2010/wordml`},w15:{key:`xmlns:w15`,value:`http://schemas.microsoft.com/office/word/2012/wordml`},w16cex:{key:`xmlns:w16cex`,value:`http://schemas.microsoft.com/office/word/2018/wordml/cex`},w16cid:{key:`xmlns:w16cid`,value:`http://schemas.microsoft.com/office/word/2016/wordml/cid`},w16:{key:`xmlns:w16`,value:`http://schemas.microsoft.com/office/word/2018/wordml`},w16sdtdh:{key:`xmlns:w16sdtdh`,value:`http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash`},w16se:{key:`xmlns:w16se`,value:`http://schemas.microsoft.com/office/word/2015/wordml/symex`},Ignorable:{key:`mc:Ignorable`,value:`w14 w15 w16se w16cid w16 w16cex w16sdtdh`}},children:e.map((e,t)=>i6({name:e.name,index:t+1,fontKey:e.fontKey,characterSet:e.characterSet}))}),o6=class{constructor(e){W(this,`options`,void 0),W(this,`fontTable`,void 0),W(this,`relationships`,void 0),W(this,`fontOptionsWithKey`,[]),this.options=e,this.fontOptionsWithKey=e.map(e=>G(G({},e),{},{fontKey:s2()})),this.fontTable=a6(this.fontOptionsWithKey),this.relationships=new z4;for(let t=0;t<e.length;t++)this.relationships.addRelationship(t+1,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/font`,`fonts/font${t+1}.odttf`)}get View(){return this.fontTable}get Relationships(){return this.relationships}},s6=()=>new Y({name:`w:wordWrap`,attributes:{val:{key:`w:val`,value:0}}}),c6={NONE:`none`,DROP:`drop`,MARGIN:`margin`},l6={MARGIN:`margin`,PAGE:`page`,TEXT:`text`},u6={AROUND:`around`,AUTO:`auto`,NONE:`none`,NOT_BESIDE:`notBeside`,THROUGH:`through`,TIGHT:`tight`},d6=e=>new Y({name:`w:framePr`,attributes:{anchorLock:{key:`w:anchorLock`,value:e.anchorLock},dropCap:{key:`w:dropCap`,value:e.dropCap},width:{key:`w:w`,value:e.width},height:{key:`w:h`,value:e.height},x:{key:`w:x`,value:e.position?e.position.x:void 0},y:{key:`w:y`,value:e.position?e.position.y:void 0},anchorHorizontal:{key:`w:hAnchor`,value:e.anchor.horizontal},anchorVertical:{key:`w:vAnchor`,value:e.anchor.vertical},spaceHorizontal:{key:`w:hSpace`,value:e.space?.horizontal},spaceVertical:{key:`w:vSpace`,value:e.space?.vertical},rule:{key:`w:hRule`,value:e.rule},alignmentX:{key:`w:xAlign`,value:e.alignment?e.alignment.x:void 0},alignmentY:{key:`w:yAlign`,value:e.alignment?e.alignment.y:void 0},lines:{key:`w:lines`,value:e.lines},wrap:{key:`w:wrap`,value:e.wrap}}}),f6=class extends mQ{constructor(e){if(super(`w:pPr`,e?.includeIfEmpty),W(this,`numberingReferences`,[]),!e)return this;e.heading&&this.push(k3(e.heading)),e.bullet&&this.push(k3(`ListParagraph`)),e.numbering&&!e.style&&!e.heading&&(e.numbering.custom||this.push(k3(`ListParagraph`))),e.style&&this.push(k3(e.style)),e.keepNext!==void 0&&this.push(new J(`w:keepNext`,e.keepNext)),e.keepLines!==void 0&&this.push(new J(`w:keepLines`,e.keepLines)),e.pageBreakBefore&&this.push(new T3),e.frame&&this.push(d6(e.frame)),e.widowControl!==void 0&&this.push(new J(`w:widowControl`,e.widowControl)),e.bullet&&this.push(new F3(1,e.bullet.level)),e.numbering?(this.numberingReferences.push({reference:e.numbering.reference,instance:e.numbering.instance??0}),this.push(new F3(`${e.numbering.reference}-${e.numbering.instance??0}`,e.numbering.level))):e.numbering===!1&&this.push(new F3(0,0)),e.border&&this.push(new B1(e.border)),e.thematicBreak&&this.push(new V1),e.shading&&this.push(i0(e.shading)),e.wordWrap&&this.push(s6()),e.overflowPunctuation&&this.push(new J(`w:overflowPunct`,e.overflowPunctuation));let t=[...e.rightTabStop===void 0?[]:[{type:A3.RIGHT,position:e.rightTabStop}],...e.tabStops?e.tabStops:[],...e.leftTabStop===void 0?[]:[{type:A3.LEFT,position:e.leftTabStop}]];t.length>0&&this.push(P3(t)),e.bidirectional!==void 0&&this.push(new J(`w:bidi`,e.bidirectional)),e.spacing&&this.push(D3(e.spacing)),e.indent&&this.push(H1(e.indent)),e.contextualSpacing!==void 0&&this.push(new J(`w:contextualSpacing`,e.contextualSpacing)),e.alignment&&this.push(L1(e.alignment)),e.outlineLevel!==void 0&&this.push(Q3(e.outlineLevel)),e.suppressLineNumbers!==void 0&&this.push(new J(`w:suppressLineNumbers`,e.suppressLineNumbers)),e.autoSpaceEastAsianText!==void 0&&this.push(new J(`w:autoSpaceDN`,e.autoSpaceEastAsianText)),e.run&&this.push(new E0(e.run)),e.revision&&this.push(new p6(e.revision))}push(e){this.root.push(e)}prepForXml(e){if(!(e.viewWrapper instanceof o6))for(let t of this.numberingReferences)e.file.Numbering.createConcreteNumberingInstance(t.reference,t.instance);return super.prepForXml(e)}},p6=class extends q{constructor(e){super(`w:pPrChange`),this.root.push(new o0({id:e.id,author:e.author,date:e.date})),this.root.push(new f6(G(G({},e),{},{includeIfEmpty:!0})))}},m6=class extends R3{constructor(e){if(super(`w:p`),W(this,`properties`,void 0),typeof e==`string`)return this.properties=new f6({}),this.root.push(this.properties),this.root.push(new j0(e)),this;if(this.properties=new f6(e),this.root.push(this.properties),e.text&&this.root.push(new j0(e.text)),e.children)for(let t of e.children){if(t instanceof K3){this.root.push(t.start);for(let e of t.children)this.root.push(e);this.root.push(t.end);continue}this.root.push(t)}}prepForXml(e){for(let t of this.root)if(t instanceof U3){let n=this.root.indexOf(t),r=new V3(t.options.children,i2());e.viewWrapper.Relationships.addRelationship(r.linkId,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`,t.options.link,L4.EXTERNAL),this.root[n]=r}return super.prepForXml(e)}addRunToFront(e){return this.root.splice(1,0,e),this}},h6=class extends q{constructor(e){super(`m:oMath`);for(let t of e.children)this.root.push(t)}},g6=class extends q{constructor(e){super(`m:t`),this.root.push(e)}},_6=class extends q{constructor(e){super(`m:r`),this.root.push(new g6(e))}},v6=class extends q{constructor(e){super(`m:den`);for(let t of e)this.root.push(t)}},y6=class extends q{constructor(e){super(`m:num`);for(let t of e)this.root.push(t)}},b6=class extends q{constructor(e){super(`m:f`),this.root.push(new y6(e.numerator)),this.root.push(new v6(e.denominator))}},x6=({accent:e})=>new Y({name:`m:chr`,attributes:{accent:{key:`m:val`,value:e}}}),S6=({children:e})=>new Y({name:`m:e`,children:e}),C6=({value:e})=>new Y({name:`m:limLoc`,attributes:{value:{key:`m:val`,value:e||`undOvr`}}}),w6=()=>new Y({name:`m:subHide`,attributes:{hide:{key:`m:val`,value:1}}}),T6=()=>new Y({name:`m:supHide`,attributes:{hide:{key:`m:val`,value:1}}}),E6=({accent:e,hasSuperScript:t,hasSubScript:n,limitLocationVal:r})=>new Y({name:`m:naryPr`,children:[...e?[x6({accent:e})]:[],C6({value:r}),...t?[]:[T6()],...n?[]:[w6()]]}),D6=({children:e})=>new Y({name:`m:sub`,children:e}),O6=({children:e})=>new Y({name:`m:sup`,children:e}),k6=class extends q{constructor(e){super(`m:nary`),this.root.push(E6({accent:`∑`,hasSuperScript:!!e.superScript,hasSubScript:!!e.subScript})),e.subScript&&this.root.push(D6({children:e.subScript})),e.superScript&&this.root.push(O6({children:e.superScript})),this.root.push(S6({children:e.children}))}},A6=class extends q{constructor(e){super(`m:nary`),this.root.push(E6({accent:``,hasSuperScript:!!e.superScript,hasSubScript:!!e.subScript,limitLocationVal:`subSup`})),e.subScript&&this.root.push(D6({children:e.subScript})),e.superScript&&this.root.push(O6({children:e.superScript})),this.root.push(S6({children:e.children}))}},j6=class extends q{constructor(e){super(`m:lim`);for(let t of e)this.root.push(t)}},M6=class extends q{constructor(e){super(`m:limUpp`),this.root.push(S6({children:e.children})),this.root.push(new j6(e.limit))}},N6=class extends q{constructor(e){super(`m:limLow`),this.root.push(S6({children:e.children})),this.root.push(new j6(e.limit))}},P6=()=>new Y({name:`m:sSupPr`}),F6=class extends q{constructor(e){super(`m:sSup`),this.root.push(P6()),this.root.push(S6({children:e.children})),this.root.push(O6({children:e.superScript}))}},I6=()=>new Y({name:`m:sSubPr`}),L6=class extends q{constructor(e){super(`m:sSub`),this.root.push(I6()),this.root.push(S6({children:e.children})),this.root.push(D6({children:e.subScript}))}},R6=()=>new Y({name:`m:sSubSupPr`}),z6=class extends q{constructor(e){super(`m:sSubSup`),this.root.push(R6()),this.root.push(S6({children:e.children})),this.root.push(D6({children:e.subScript})),this.root.push(O6({children:e.superScript}))}},B6=()=>new Y({name:`m:sPrePr`}),V6=class extends Y{constructor({children:e,subScript:t,superScript:n}){super({name:`m:sPre`,children:[B6(),S6({children:e}),D6({children:t}),O6({children:n})]})}},H6=class extends q{constructor(e){if(super(`m:deg`),e)for(let t of e)this.root.push(t)}},U6=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{hide:`m:val`})}},W6=class extends q{constructor(){super(`m:degHide`),this.root.push(new U6({hide:1}))}},G6=class extends q{constructor(e){super(`m:radPr`),e||this.root.push(new W6)}},K6=class extends q{constructor(e){super(`m:rad`),this.root.push(new G6(!!e.degree)),this.root.push(new H6(e.degree)),this.root.push(S6({children:e.children}))}},q6=class extends q{constructor(e){super(`m:fName`);for(let t of e)this.root.push(t)}},J6=class extends q{constructor(){super(`m:funcPr`)}},Y6=class extends q{constructor(e){super(`m:func`),this.root.push(new J6),this.root.push(new q6(e.name)),this.root.push(S6({children:e.children}))}},X6=({character:e})=>new Y({name:`m:begChr`,attributes:{character:{key:`m:val`,value:e}}}),Z6=({character:e})=>new Y({name:`m:endChr`,attributes:{character:{key:`m:val`,value:e}}}),Q6=({characters:e})=>new Y({name:`m:dPr`,children:e?[X6({character:e.beginningCharacter}),Z6({character:e.endingCharacter})]:[]}),$6=class extends q{constructor(e){super(`m:d`),this.root.push(Q6({})),this.root.push(S6({children:e.children}))}},e8=class extends q{constructor(e){super(`m:d`),this.root.push(Q6({characters:{beginningCharacter:`[`,endingCharacter:`]`}})),this.root.push(S6({children:e.children}))}},t8=class extends q{constructor(e){super(`m:d`),this.root.push(Q6({characters:{beginningCharacter:`{`,endingCharacter:`}`}})),this.root.push(S6({children:e.children}))}},n8=class extends q{constructor(e){super(`m:d`),this.root.push(Q6({characters:{beginningCharacter:`〈`,endingCharacter:`〉`}})),this.root.push(S6({children:e.children}))}},r8=e=>new Y({name:`w:gridCol`,attributes:e===void 0?void 0:{width:{key:`w:w`,value:C1(e)}}}),i8=class extends q{constructor(e,t){super(`w:tblGrid`);for(let t of e)this.root.push(r8(t));t&&this.root.push(new o8(t))}},a8=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`w:id`})}},o8=class extends q{constructor(e){super(`w:tblGridChange`),this.root.push(new a8({id:e.id})),this.root.push(new i8(e.columnWidths))}},s8=class extends q{constructor(e){super(`w:ins`),this.root.push(new o0({id:e.id,author:e.author,date:e.date})),this.addChildElement(new j0(e))}},c8=class extends q{constructor(){super(`w:delInstrText`),this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(`PAGE`)}},l8=class extends q{constructor(){super(`w:delInstrText`),this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(`NUMPAGES`)}},u8=class extends q{constructor(){super(`w:delInstrText`),this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(`SECTIONPAGES`)}},d8=class extends q{constructor(e){super(`w:delText`),this.root.push(new $1({space:Q1.PRESERVE})),this.root.push(e)}},f8=class extends q{constructor(e){super(`w:del`),W(this,`deletedTextRunWrapper`,void 0),this.root.push(new o0({id:e.id,author:e.author,date:e.date})),this.deletedTextRunWrapper=new p8(e),this.addChildElement(this.deletedTextRunWrapper)}},p8=class extends q{constructor(e){if(super(`w:r`),this.root.push(new T0(e)),e.children)for(let t of e.children){if(typeof t==`string`){switch(t){case k0.CURRENT:this.root.push(K1()),this.root.push(new c8),this.root.push(q1()),this.root.push(J1());break;case k0.TOTAL_PAGES:this.root.push(K1()),this.root.push(new l8),this.root.push(q1()),this.root.push(J1());break;case k0.TOTAL_PAGES_IN_SECTION:this.root.push(K1()),this.root.push(new u8),this.root.push(q1()),this.root.push(J1());break;default:this.root.push(new d8(t))}continue}this.root.push(t)}else e.text&&this.root.push(new d8(e.text));if(e.break)for(let t=0;t<e.break;t++)this.root.splice(1,0,U1())}},m8=class extends q{constructor(e){super(`w:ins`),this.root.push(new o0({id:e.id,author:e.author,date:e.date}))}},h8=class extends q{constructor(e){super(`w:del`),this.root.push(new o0({id:e.id,author:e.author,date:e.date}))}},g8=class extends q{constructor(e){super(`w:cellIns`),this.root.push(new o0({id:e.id,author:e.author,date:e.date}))}},_8=class extends q{constructor(e){super(`w:cellDel`),this.root.push(new o0({id:e.id,author:e.author,date:e.date}))}},v8={CONTINUE:`cont`,RESTART:`rest`},y8=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`w:id`,author:`w:author`,date:`w:date`,verticalMerge:`w:vMerge`,verticalMergeOriginal:`w:vMergeOrig`})}},b8=class extends q{constructor(e){super(`w:cellMerge`),this.root.push(new y8(e))}},x8={TOP:`top`,CENTER:`center`,BOTTOM:`bottom`},S8=G(G({},x8),{},{BOTH:`both`}),C8=S8,w8=e=>new Y({name:`w:vAlign`,attributes:{verticalAlign:{key:`w:val`,value:e}}}),T8=({marginUnitType:e=O8.DXA,top:t,left:n,bottom:r,right:i})=>[{name:`w:top`,size:t},{name:`w:left`,size:n},{name:`w:bottom`,size:r},{name:`w:right`,size:i}].filter(e=>e.size!==void 0).map(({name:t,size:n})=>k8(t,{type:e,size:n})),E8=e=>{let t=T8(e);if(t.length!==0)return new Y({name:`w:tblCellMar`,children:t})},D8=e=>{let t=T8(e);if(t.length!==0)return new Y({name:`w:tcMar`,children:t})},O8={AUTO:`auto`,DXA:`dxa`,NIL:`nil`,PERCENTAGE:`pct`},k8=(e,{type:t=O8.AUTO,size:n})=>{let r=n;return t===O8.PERCENTAGE&&typeof n==`number`&&(r=`${n}%`),new Y({name:e,attributes:{type:{key:`w:type`,value:t},size:{key:`w:w`,value:T1(r)}}})},A8=class extends mQ{constructor(e){super(`w:tcBorders`),e.top&&this.root.push(R1(`w:top`,e.top)),e.start&&this.root.push(R1(`w:start`,e.start)),e.left&&this.root.push(R1(`w:left`,e.left)),e.bottom&&this.root.push(R1(`w:bottom`,e.bottom)),e.end&&this.root.push(R1(`w:end`,e.end)),e.right&&this.root.push(R1(`w:right`,e.right))}},j8=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{val:`w:val`})}},M8=class extends q{constructor(e){super(`w:gridSpan`),this.root.push(new j8({val:d1(e)}))}},N8={CONTINUE:`continue`,RESTART:`restart`},P8=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{val:`w:val`})}},F8=class extends q{constructor(e){super(`w:vMerge`),this.root.push(new P8({val:e}))}},I8={BOTTOM_TO_TOP_LEFT_TO_RIGHT:`btLr`,LEFT_TO_RIGHT_TOP_TO_BOTTOM:`lrTb`,TOP_TO_BOTTOM_RIGHT_TO_LEFT:`tbRl`},L8=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{val:`w:val`})}},R8=class extends q{constructor(e){super(`w:textDirection`),this.root.push(new L8({val:e}))}},z8=class extends mQ{constructor(e){if(super(`w:tcPr`,e.includeIfEmpty),e.width&&this.root.push(k8(`w:tcW`,e.width)),e.columnSpan&&this.root.push(new M8(e.columnSpan)),e.verticalMerge?this.root.push(new F8(e.verticalMerge)):e.rowSpan&&e.rowSpan>1&&this.root.push(new F8(N8.RESTART)),e.borders&&this.root.push(new A8(e.borders)),e.shading&&this.root.push(i0(e.shading)),e.margins){let t=D8(e.margins);t&&this.root.push(t)}e.textDirection&&this.root.push(new R8(e.textDirection)),e.verticalAlign&&this.root.push(w8(e.verticalAlign)),e.insertion&&this.root.push(new g8(e.insertion)),e.deletion&&this.root.push(new _8(e.deletion)),e.revision&&this.root.push(new B8(e.revision)),e.cellMerge&&this.root.push(new b8(e.cellMerge))}},B8=class extends q{constructor(e){super(`w:tcPrChange`),this.root.push(new o0({id:e.id,author:e.author,date:e.date})),this.root.push(new z8(G(G({},e),{},{includeIfEmpty:!0})))}},V8=class extends q{constructor(e){super(`w:tc`),W(this,`options`,void 0),this.options=e,this.root.push(new z8(e));for(let t of e.children)this.root.push(t)}prepForXml(e){return this.root[this.root.length-1]instanceof m6||this.root.push(new m6({})),super.prepForXml(e)}},H8={style:z1.NONE,size:0,color:`auto`},U8={style:z1.SINGLE,size:4,color:`auto`},W8=class extends q{constructor(e){super(`w:tblBorders`),this.root.push(R1(`w:top`,e.top??U8)),this.root.push(R1(`w:left`,e.left??U8)),this.root.push(R1(`w:bottom`,e.bottom??U8)),this.root.push(R1(`w:right`,e.right??U8)),this.root.push(R1(`w:insideH`,e.insideHorizontal??U8)),this.root.push(R1(`w:insideV`,e.insideVertical??U8))}},W(W8,`NONE`,{top:H8,bottom:H8,left:H8,right:H8,insideHorizontal:H8,insideVertical:H8}),G8={MARGIN:`margin`,PAGE:`page`,TEXT:`text`},K8={CENTER:`center`,INSIDE:`inside`,LEFT:`left`,OUTSIDE:`outside`,RIGHT:`right`},q8={CENTER:`center`,INSIDE:`inside`,BOTTOM:`bottom`,OUTSIDE:`outside`,INLINE:`inline`,TOP:`top`},J8={NEVER:`never`,OVERLAP:`overlap`},Y8=e=>new Y({name:`w:tblOverlap`,attributes:{val:{key:`w:val`,value:e}}}),X8=({horizontalAnchor:e,verticalAnchor:t,absoluteHorizontalPosition:n,relativeHorizontalPosition:r,absoluteVerticalPosition:i,relativeVerticalPosition:a,bottomFromText:o,topFromText:s,leftFromText:c,rightFromText:l,overlap:u})=>new Y({name:`w:tblpPr`,attributes:{leftFromText:{key:`w:leftFromText`,value:c===void 0?void 0:C1(c)},rightFromText:{key:`w:rightFromText`,value:l===void 0?void 0:C1(l)},topFromText:{key:`w:topFromText`,value:s===void 0?void 0:C1(s)},bottomFromText:{key:`w:bottomFromText`,value:o===void 0?void 0:C1(o)},absoluteHorizontalPosition:{key:`w:tblpX`,value:n===void 0?void 0:b1(n)},absoluteVerticalPosition:{key:`w:tblpY`,value:i===void 0?void 0:b1(i)},horizontalAnchor:{key:`w:horzAnchor`,value:e},relativeHorizontalPosition:{key:`w:tblpXSpec`,value:r},relativeVerticalPosition:{key:`w:tblpYSpec`,value:a},verticalAnchor:{key:`w:vertAnchor`,value:t}},children:u?[Y8(u)]:void 0}),Z8={AUTOFIT:`autofit`,FIXED:`fixed`},Q8=e=>new Y({name:`w:tblLayout`,attributes:{type:{key:`w:type`,value:e}}}),$8={DXA:`dxa`,NIL:`nil`},e5=({type:e=$8.DXA,value:t})=>new Y({name:`w:tblCellSpacing`,attributes:{type:{key:`w:type`,value:e},value:{key:`w:w`,value:T1(t)}}}),t5=({firstRow:e,lastRow:t,firstColumn:n,lastColumn:r,noHBand:i,noVBand:a})=>new Y({name:`w:tblLook`,attributes:{firstRow:{key:`w:firstRow`,value:e},lastRow:{key:`w:lastRow`,value:t},firstColumn:{key:`w:firstColumn`,value:n},lastColumn:{key:`w:lastColumn`,value:r},noHBand:{key:`w:noHBand`,value:i},noVBand:{key:`w:noVBand`,value:a}}}),n5=class extends mQ{constructor(e){if(super(`w:tblPr`,e.includeIfEmpty),e.style&&this.root.push(new j1(`w:tblStyle`,e.style)),e.float&&this.root.push(X8(e.float)),e.visuallyRightToLeft!==void 0&&this.root.push(new J(`w:bidiVisual`,e.visuallyRightToLeft)),e.width&&this.root.push(k8(`w:tblW`,e.width)),e.alignment&&this.root.push(L1(e.alignment)),e.indent&&this.root.push(k8(`w:tblInd`,e.indent)),e.borders&&this.root.push(new W8(e.borders)),e.shading&&this.root.push(i0(e.shading)),e.layout&&this.root.push(Q8(e.layout)),e.cellMargin){let t=E8(e.cellMargin);t&&this.root.push(t)}e.tableLook&&this.root.push(t5(e.tableLook)),e.cellSpacing&&this.root.push(e5(e.cellSpacing)),e.revision&&this.root.push(new r5(e.revision))}},r5=class extends q{constructor(e){super(`w:tblPrChange`),this.root.push(new o0({id:e.id,author:e.author,date:e.date})),this.root.push(new n5(G(G({},e),{},{includeIfEmpty:!0})))}},i5=class extends R3{constructor({rows:e,width:t,columnWidths:n=Array(Math.max(...e.map(e=>e.CellCount))).fill(100),columnWidthsRevision:r,margins:i,indent:a,float:o,layout:s,style:c,borders:l,alignment:u,visuallyRightToLeft:d,tableLook:f,cellSpacing:p,revision:m}){super(`w:tbl`),this.root.push(new n5({borders:l??{},width:t??{size:100},indent:a,float:o,layout:s,style:c,alignment:u,cellMargin:i,visuallyRightToLeft:d,tableLook:f,cellSpacing:p,revision:m})),this.root.push(new i8(n,r));for(let t of e)this.root.push(t);e.forEach((t,n)=>{if(n===e.length-1)return;let r=0;t.cells.forEach(t=>{if(t.options.rowSpan&&t.options.rowSpan>1){let i=new V8({rowSpan:t.options.rowSpan-1,columnSpan:t.options.columnSpan,borders:t.options.borders,children:[],verticalMerge:N8.CONTINUE});e[n+1].addCellToColumnIndex(i,r)}r+=t.options.columnSpan||1})})}},a5={AUTO:`auto`,ATLEAST:`atLeast`,EXACT:`exact`},o5=(e,t)=>new Y({name:`w:trHeight`,attributes:{value:{key:`w:val`,value:C1(e)},rule:{key:`w:hRule`,value:t}}}),s5=class extends mQ{constructor(e){super(`w:trPr`,e.includeIfEmpty),e.cantSplit!==void 0&&this.root.push(new J(`w:cantSplit`,e.cantSplit)),e.tableHeader!==void 0&&this.root.push(new J(`w:tblHeader`,e.tableHeader)),e.height&&this.root.push(o5(e.height.value,e.height.rule)),e.cellSpacing&&this.root.push(e5(e.cellSpacing)),e.insertion&&this.root.push(new m8(e.insertion)),e.deletion&&this.root.push(new h8(e.deletion)),e.revision&&this.root.push(new c5(e.revision))}},c5=class extends q{constructor(e){super(`w:trPrChange`),this.root.push(new o0({id:e.id,author:e.author,date:e.date})),this.root.push(new s5(G(G({},e),{},{includeIfEmpty:!0})))}},l5=class extends q{constructor(e){super(`w:tr`),W(this,`options`,void 0),this.options=e,this.root.push(new s5(e));for(let t of e.children)this.root.push(t)}get CellCount(){return this.options.children.length}get cells(){return this.root.filter(e=>e instanceof V8)}addCellToIndex(e,t){this.root.splice(t+1,0,e)}addCellToColumnIndex(e,t){let n=this.columnIndexToRootIndex(t,!0);this.addCellToIndex(e,n-1)}rootIndexToColumnIndex(e){if(e<1||e>=this.root.length)throw Error(`cell 'rootIndex' should between 1 to ${this.root.length-1}`);let t=0;for(let n=1;n<e;n++){let e=this.root[n];t+=e.options.columnSpan||1}return t}columnIndexToRootIndex(e,t=!1){if(e<0)throw Error(`cell 'columnIndex' should not less than zero`);let n=0,r=1;for(;n<=e;){if(r>=this.root.length){if(t)return this.root.length;throw Error(`cell 'columnIndex' should not great than ${n-1}`)}let e=this.root[r];r+=1,n+=e&&e.options.columnSpan||1}return r-1}},u5=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{xmlns:`xmlns`,vt:`xmlns:vt`})}},d5=class extends q{constructor(){super(`Properties`),this.root.push(new u5({xmlns:`http://schemas.openxmlformats.org/officeDocument/2006/extended-properties`,vt:`http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes`}))}},f5=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{xmlns:`xmlns`})}},p5=(e,t)=>new Y({name:`Default`,attributes:{contentType:{key:`ContentType`,value:e},extension:{key:`Extension`,value:t}}}),m5=(e,t)=>new Y({name:`Override`,attributes:{contentType:{key:`ContentType`,value:e},partName:{key:`PartName`,value:t}}}),h5=class extends q{constructor(){super(`Types`),this.root.push(new f5({xmlns:`http://schemas.openxmlformats.org/package/2006/content-types`})),this.root.push(p5(`image/png`,`png`)),this.root.push(p5(`image/jpeg`,`jpeg`)),this.root.push(p5(`image/jpeg`,`jpg`)),this.root.push(p5(`image/bmp`,`bmp`)),this.root.push(p5(`image/gif`,`gif`)),this.root.push(p5(`image/svg+xml`,`svg`)),this.root.push(p5(`application/vnd.openxmlformats-package.relationships+xml`,`rels`)),this.root.push(p5(`application/xml`,`xml`)),this.root.push(p5(`application/vnd.openxmlformats-officedocument.obfuscatedFont`,`odttf`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml`,`/word/document.xml`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml`,`/word/styles.xml`)),this.root.push(m5(`application/vnd.openxmlformats-package.core-properties+xml`,`/docProps/core.xml`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.custom-properties+xml`,`/docProps/custom.xml`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.extended-properties+xml`,`/docProps/app.xml`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml`,`/word/numbering.xml`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml`,`/word/footnotes.xml`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml`,`/word/endnotes.xml`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml`,`/word/settings.xml`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml`,`/word/comments.xml`)),this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml`,`/word/fontTable.xml`))}addCommentsExtended(){this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.commentsExtended+xml`,`/word/commentsExtended.xml`))}addFooter(e){this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml`,`/word/footer${e}.xml`))}addHeader(e){this.root.push(m5(`application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml`,`/word/header${e}.xml`))}},g5={wpc:`http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas`,mc:`http://schemas.openxmlformats.org/markup-compatibility/2006`,o:`urn:schemas-microsoft-com:office:office`,r:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,m:`http://schemas.openxmlformats.org/officeDocument/2006/math`,v:`urn:schemas-microsoft-com:vml`,wp14:`http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing`,wp:`http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`,w10:`urn:schemas-microsoft-com:office:word`,w:`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,w14:`http://schemas.microsoft.com/office/word/2010/wordml`,w15:`http://schemas.microsoft.com/office/word/2012/wordml`,wpg:`http://schemas.microsoft.com/office/word/2010/wordprocessingGroup`,wpi:`http://schemas.microsoft.com/office/word/2010/wordprocessingInk`,wne:`http://schemas.microsoft.com/office/word/2006/wordml`,wps:`http://schemas.microsoft.com/office/word/2010/wordprocessingShape`,cp:`http://schemas.openxmlformats.org/package/2006/metadata/core-properties`,dc:`http://purl.org/dc/elements/1.1/`,dcterms:`http://purl.org/dc/terms/`,dcmitype:`http://purl.org/dc/dcmitype/`,xsi:`http://www.w3.org/2001/XMLSchema-instance`,cx:`http://schemas.microsoft.com/office/drawing/2014/chartex`,cx1:`http://schemas.microsoft.com/office/drawing/2015/9/8/chartex`,cx2:`http://schemas.microsoft.com/office/drawing/2015/10/21/chartex`,cx3:`http://schemas.microsoft.com/office/drawing/2016/5/9/chartex`,cx4:`http://schemas.microsoft.com/office/drawing/2016/5/10/chartex`,cx5:`http://schemas.microsoft.com/office/drawing/2016/5/11/chartex`,cx6:`http://schemas.microsoft.com/office/drawing/2016/5/12/chartex`,cx7:`http://schemas.microsoft.com/office/drawing/2016/5/13/chartex`,cx8:`http://schemas.microsoft.com/office/drawing/2016/5/14/chartex`,aink:`http://schemas.microsoft.com/office/drawing/2016/ink`,am3d:`http://schemas.microsoft.com/office/drawing/2017/model3d`,w16cex:`http://schemas.microsoft.com/office/word/2018/wordml/cex`,w16cid:`http://schemas.microsoft.com/office/word/2016/wordml/cid`,w16:`http://schemas.microsoft.com/office/word/2018/wordml`,w16sdtdh:`http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash`,w16se:`http://schemas.microsoft.com/office/word/2015/wordml/symex`},_5=class extends hQ{constructor(e,t){super(G({Ignorable:t},Object.fromEntries(e.map(e=>[e,g5[e]])))),W(this,`xmlKeys`,G({Ignorable:`mc:Ignorable`},Object.fromEntries(Object.keys(g5).map(e=>[e,`xmlns:${e}`]))))}},v5=class extends q{constructor(e){super(`cp:coreProperties`),this.root.push(new _5([`cp`,`dc`,`dcterms`,`dcmitype`,`xsi`])),e.title&&this.root.push(new F1(`dc:title`,e.title)),e.subject&&this.root.push(new F1(`dc:subject`,e.subject)),e.creator&&this.root.push(new F1(`dc:creator`,e.creator)),e.keywords&&this.root.push(new F1(`cp:keywords`,e.keywords)),e.description&&this.root.push(new F1(`dc:description`,e.description)),e.lastModifiedBy&&this.root.push(new F1(`cp:lastModifiedBy`,e.lastModifiedBy)),e.revision&&this.root.push(new F1(`cp:revision`,String(e.revision))),this.root.push(new b5(`dcterms:created`)),this.root.push(new b5(`dcterms:modified`))}},y5=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{type:`xsi:type`})}},b5=class extends q{constructor(e){super(e),this.root.push(new y5({type:`dcterms:W3CDTF`})),this.root.push(O1(new Date))}},x5=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{xmlns:`xmlns`,vt:`xmlns:vt`})}},S5=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{formatId:`fmtid`,pid:`pid`,name:`name`})}},C5=class extends q{constructor(e,t){super(`property`),this.root.push(new S5({formatId:`{D5CDD505-2E9C-101B-9397-08002B2CF9AE}`,pid:e.toString(),name:t.name})),this.root.push(new w5(t.value))}},w5=class extends q{constructor(e){super(`vt:lpwstr`),this.root.push(e)}},T5=class extends q{constructor(e){super(`Properties`),W(this,`nextId`,void 0),W(this,`properties`,[]),this.root.push(new x5({xmlns:`http://schemas.openxmlformats.org/officeDocument/2006/custom-properties`,vt:`http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes`})),this.nextId=2;for(let t of e)this.addCustomProperty(t)}prepForXml(e){return this.properties.forEach(e=>this.root.push(e)),super.prepForXml(e)}addCustomProperty(e){this.properties.push(new C5(this.nextId++,e))}},E5=({space:e,count:t,separate:n,equalWidth:r,children:i})=>new Y({name:`w:cols`,attributes:{space:{key:`w:space`,value:e===void 0?void 0:C1(e)},count:{key:`w:num`,value:t===void 0?void 0:d1(t)},separate:{key:`w:sep`,value:n},equalWidth:{key:`w:equalWidth`,value:r}},children:!r&&i?i:void 0}),D5={DEFAULT:`default`,LINES:`lines`,LINES_AND_CHARS:`linesAndChars`,SNAP_TO_CHARS:`snapToChars`},O5=({type:e,linePitch:t,charSpace:n})=>new Y({name:`w:docGrid`,attributes:{type:{key:`w:type`,value:e},linePitch:{key:`w:linePitch`,value:d1(t)},charSpace:{key:`w:charSpace`,value:n?d1(n):void 0}}}),k5={DEFAULT:`default`,FIRST:`first`,EVEN:`even`},A5={HEADER:`w:headerReference`,FOOTER:`w:footerReference`},j5=(e,t)=>new Y({name:e,attributes:{type:{key:`w:type`,value:t.type||k5.DEFAULT},id:{key:`r:id`,value:`rId${t.id}`}}}),M5={NEW_PAGE:`newPage`,NEW_SECTION:`newSection`,CONTINUOUS:`continuous`},N5=({countBy:e,start:t,restart:n,distance:r})=>new Y({name:`w:lnNumType`,attributes:{countBy:{key:`w:countBy`,value:e===void 0?void 0:d1(e)},start:{key:`w:start`,value:t===void 0?void 0:d1(t)},restart:{key:`w:restart`,value:n},distance:{key:`w:distance`,value:r===void 0?void 0:C1(r)}}}),P5={ALL_PAGES:`allPages`,FIRST_PAGE:`firstPage`,NOT_FIRST_PAGE:`notFirstPage`},F5={PAGE:`page`,TEXT:`text`},I5={BACK:`back`,FRONT:`front`},L5=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{display:`w:display`,offsetFrom:`w:offsetFrom`,zOrder:`w:zOrder`})}},R5=class extends mQ{constructor(e){if(super(`w:pgBorders`),!e)return this;e.pageBorders?this.root.push(new L5({display:e.pageBorders.display,offsetFrom:e.pageBorders.offsetFrom,zOrder:e.pageBorders.zOrder})):this.root.push(new L5({})),e.pageBorderTop&&this.root.push(R1(`w:top`,e.pageBorderTop)),e.pageBorderLeft&&this.root.push(R1(`w:left`,e.pageBorderLeft)),e.pageBorderBottom&&this.root.push(R1(`w:bottom`,e.pageBorderBottom)),e.pageBorderRight&&this.root.push(R1(`w:right`,e.pageBorderRight))}},z5=(e,t,n,r,i,a,o)=>new Y({name:`w:pgMar`,attributes:{top:{key:`w:top`,value:b1(e)},right:{key:`w:right`,value:C1(t)},bottom:{key:`w:bottom`,value:b1(n)},left:{key:`w:left`,value:C1(r)},header:{key:`w:header`,value:C1(i)},footer:{key:`w:footer`,value:C1(a)},gutter:{key:`w:gutter`,value:C1(o)}}}),B5={HYPHEN:`hyphen`,PERIOD:`period`,COLON:`colon`,EM_DASH:`emDash`,EN_DASH:`endash`},V5=({start:e,formatType:t,separator:n})=>new Y({name:`w:pgNumType`,attributes:{start:{key:`w:start`,value:e===void 0?void 0:d1(e)},formatType:{key:`w:fmt`,value:t},separator:{key:`w:chapSep`,value:n}}}),H5={PORTRAIT:`portrait`,LANDSCAPE:`landscape`},U5=({width:e,height:t,orientation:n,code:r})=>{let i=C1(e),a=C1(t);return new Y({name:`w:pgSz`,attributes:{width:{key:`w:w`,value:n===H5.LANDSCAPE?a:i},height:{key:`w:h`,value:n===H5.LANDSCAPE?i:a},orientation:{key:`w:orient`,value:n},code:{key:`w:code`,value:r}}})},W5={LEFT_TO_RIGHT_TOP_TO_BOTTOM:`lrTb`,TOP_TO_BOTTOM_RIGHT_TO_LEFT:`tbRl`},G5=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{val:`w:val`})}},K5=class extends q{constructor(e){super(`w:textDirection`),this.root.push(new G5({val:e}))}},q5={NEXT_PAGE:`nextPage`,NEXT_COLUMN:`nextColumn`,CONTINUOUS:`continuous`,EVEN_PAGE:`evenPage`,ODD_PAGE:`oddPage`},J5=e=>new Y({name:`w:type`,attributes:{val:{key:`w:val`,value:e}}}),Y5={TOP:1440,RIGHT:1440,BOTTOM:1440,LEFT:1440,HEADER:708,FOOTER:708,GUTTER:0},X5={WIDTH:11906,HEIGHT:16838,ORIENTATION:H5.PORTRAIT},Z5=class extends q{constructor({page:{size:{width:e=X5.WIDTH,height:t=X5.HEIGHT,orientation:n=X5.ORIENTATION,code:r}={},margin:{top:i=Y5.TOP,right:a=Y5.RIGHT,bottom:o=Y5.BOTTOM,left:s=Y5.LEFT,header:c=Y5.HEADER,footer:l=Y5.FOOTER,gutter:u=Y5.GUTTER}={},pageNumbers:d={},borders:f,textDirection:p}={},grid:{linePitch:m=360,charSpace:h,type:g}={},headerWrapperGroup:_={},footerWrapperGroup:v={},lineNumbers:y,titlePage:b,verticalAlign:x,column:S,type:C,revision:w}={}){super(`w:sectPr`),this.addHeaderFooterGroup(A5.HEADER,_),this.addHeaderFooterGroup(A5.FOOTER,v),C&&this.root.push(J5(C)),this.root.push(U5({width:e,height:t,orientation:n,code:r})),this.root.push(z5(i,a,o,s,c,l,u)),f&&this.root.push(new R5(f)),y&&this.root.push(N5(y)),this.root.push(V5(d)),S&&this.root.push(E5(S)),x&&this.root.push(w8(x)),b!==void 0&&this.root.push(new J(`w:titlePg`,b)),p&&this.root.push(new K5(p)),w&&this.root.push(new Q5(w)),this.root.push(O5({linePitch:m,charSpace:h,type:g}))}addHeaderFooterGroup(e,t){t.default&&this.root.push(j5(e,{type:k5.DEFAULT,id:t.default.View.ReferenceId})),t.first&&this.root.push(j5(e,{type:k5.FIRST,id:t.first.View.ReferenceId})),t.even&&this.root.push(j5(e,{type:k5.EVEN,id:t.even.View.ReferenceId}))}},Q5=class extends q{constructor(e){super(`w:sectPrChange`),this.root.push(new o0({id:e.id,author:e.author,date:e.date})),this.root.push(new Z5(e))}},$5=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{width:`w:w`,space:`w:space`})}},e7=class extends q{constructor(e){super(`w:col`),this.root.push(new $5({width:C1(e.width),space:e.space===void 0?void 0:C1(e.space)}))}},t7=class extends q{constructor(){super(`w:body`),W(this,`sections`,[])}addSection(e){let t=this.sections.pop();this.root.push(this.createSectionParagraph(t)),this.sections.push(new Z5(e))}prepForXml(e){return this.sections.length===1&&(this.root.splice(0,1),this.root.push(this.sections.pop())),super.prepForXml(e)}push(e){this.root.push(e)}createSectionParagraph(e){let t=new m6({}),n=new f6({});return n.push(e),t.addChildElement(n),t}},n7=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{color:`w:color`,themeColor:`w:themeColor`,themeShade:`w:themeShade`,themeTint:`w:themeTint`})}},r7=class extends q{constructor(e){super(`w:background`),this.root.push(new n7({color:e.color===void 0?void 0:y1(e.color),themeColor:e.themeColor,themeShade:e.themeShade===void 0?void 0:g1(e.themeShade),themeTint:e.themeTint===void 0?void 0:g1(e.themeTint)}))}},i7=class extends q{constructor(e){super(`w:document`),W(this,`body`,void 0),this.root.push(new _5(`wpc.mc.o.r.m.v.wp14.wp.w10.w.w14.w15.wpg.wpi.wne.wps.cx.cx1.cx2.cx3.cx4.cx5.cx6.cx7.cx8.aink.am3d.w16cex.w16cid.w16.w16sdtdh.w16se`.split(`.`),`w14 w15 wp14`)),this.body=new t7,e.background&&this.root.push(new r7(e.background)),this.root.push(this.body)}add(e){return this.body.push(e),this}get Body(){return this.body}},a7=class{constructor(e){W(this,`document`,void 0),W(this,`relationships`,void 0),this.document=new i7(e),this.relationships=new z4}get View(){return this.document}get Relationships(){return this.relationships}},o7=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{wpc:`xmlns:wpc`,mc:`xmlns:mc`,o:`xmlns:o`,r:`xmlns:r`,m:`xmlns:m`,v:`xmlns:v`,wp14:`xmlns:wp14`,wp:`xmlns:wp`,w10:`xmlns:w10`,w:`xmlns:w`,w14:`xmlns:w14`,w15:`xmlns:w15`,wpg:`xmlns:wpg`,wpi:`xmlns:wpi`,wne:`xmlns:wne`,wps:`xmlns:wps`,Ignorable:`mc:Ignorable`})}},s7=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{type:`w:type`,id:`w:id`})}},c7=class extends A0{constructor(){super({style:`EndnoteReference`}),this.root.push(new l3)}},l7={SEPARATOR:`separator`,CONTINUATION_SEPARATOR:`continuationSeparator`},u7=class extends q{constructor(e){super(`w:endnote`),this.root.push(new s7({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){let n=e.children[t];t===0&&n.addRunToFront(new c7),this.root.push(n)}}},d7=class extends q{constructor(){super(`w:continuationSeparator`)}},f7=class extends A0{constructor(){super({}),this.root.push(new d7)}},p7=class extends q{constructor(){super(`w:separator`)}},m7=class extends A0{constructor(){super({}),this.root.push(new p7)}},h7=class extends q{constructor(){super(`w:endnotes`),this.root.push(new o7({wpc:`http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas`,mc:`http://schemas.openxmlformats.org/markup-compatibility/2006`,o:`urn:schemas-microsoft-com:office:office`,r:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,m:`http://schemas.openxmlformats.org/officeDocument/2006/math`,v:`urn:schemas-microsoft-com:vml`,wp14:`http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing`,wp:`http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`,w10:`urn:schemas-microsoft-com:office:word`,w:`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,w14:`http://schemas.microsoft.com/office/word/2010/wordml`,w15:`http://schemas.microsoft.com/office/word/2012/wordml`,wpg:`http://schemas.microsoft.com/office/word/2010/wordprocessingGroup`,wpi:`http://schemas.microsoft.com/office/word/2010/wordprocessingInk`,wne:`http://schemas.microsoft.com/office/word/2006/wordml`,wps:`http://schemas.microsoft.com/office/word/2010/wordprocessingShape`,Ignorable:`w14 w15 wp14`}));let e=new u7({id:-1,type:l7.SEPARATOR,children:[new m6({spacing:{after:0,line:240,lineRule:E3.AUTO},children:[new m7]})]});this.root.push(e);let t=new u7({id:0,type:l7.CONTINUATION_SEPARATOR,children:[new m6({spacing:{after:0,line:240,lineRule:E3.AUTO},children:[new f7]})]});this.root.push(t)}createEndnote(e,t){let n=new u7({id:e,children:t});this.root.push(n)}},g7=class{constructor(){W(this,`endnotes`,void 0),W(this,`relationships`,void 0),this.endnotes=new h7,this.relationships=new z4}get View(){return this.endnotes}get Relationships(){return this.relationships}},_7=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{wpc:`xmlns:wpc`,mc:`xmlns:mc`,o:`xmlns:o`,r:`xmlns:r`,m:`xmlns:m`,v:`xmlns:v`,wp14:`xmlns:wp14`,wp:`xmlns:wp`,w10:`xmlns:w10`,w:`xmlns:w`,w14:`xmlns:w14`,w15:`xmlns:w15`,wpg:`xmlns:wpg`,wpi:`xmlns:wpi`,wne:`xmlns:wne`,wps:`xmlns:wps`,cp:`xmlns:cp`,dc:`xmlns:dc`,dcterms:`xmlns:dcterms`,dcmitype:`xmlns:dcmitype`,xsi:`xmlns:xsi`,type:`xsi:type`})}},v7=class extends u1{constructor(e,t){super(`w:ftr`,t),W(this,`refId`,void 0),this.refId=e,t||this.root.push(new _7({wpc:`http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas`,mc:`http://schemas.openxmlformats.org/markup-compatibility/2006`,o:`urn:schemas-microsoft-com:office:office`,r:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,m:`http://schemas.openxmlformats.org/officeDocument/2006/math`,v:`urn:schemas-microsoft-com:vml`,wp14:`http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing`,wp:`http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`,w10:`urn:schemas-microsoft-com:office:word`,w:`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,w14:`http://schemas.microsoft.com/office/word/2010/wordml`,w15:`http://schemas.microsoft.com/office/word/2012/wordml`,wpg:`http://schemas.microsoft.com/office/word/2010/wordprocessingGroup`,wpi:`http://schemas.microsoft.com/office/word/2010/wordprocessingInk`,wne:`http://schemas.microsoft.com/office/word/2006/wordml`,wps:`http://schemas.microsoft.com/office/word/2010/wordprocessingShape`}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},y7=class{constructor(e,t,n){W(this,`media`,void 0),W(this,`footer`,void 0),W(this,`relationships`,void 0),this.media=e,this.footer=new v7(t,n),this.relationships=new z4}add(e){this.footer.add(e)}addChildElement(e){this.footer.addChildElement(e)}get View(){return this.footer}get Relationships(){return this.relationships}get Media(){return this.media}},b7=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{type:`w:type`,id:`w:id`})}},x7=class extends q{constructor(){super(`w:footnoteRef`)}},S7=class extends A0{constructor(){super({style:`FootnoteReference`}),this.root.push(new x7)}},C7={SEPERATOR:`separator`,CONTINUATION_SEPERATOR:`continuationSeparator`},w7=class extends q{constructor(e){super(`w:footnote`),this.root.push(new b7({type:e.type,id:e.id}));for(let t=0;t<e.children.length;t++){let n=e.children[t];t===0&&n.addRunToFront(new S7),this.root.push(n)}}},T7=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{wpc:`xmlns:wpc`,mc:`xmlns:mc`,o:`xmlns:o`,r:`xmlns:r`,m:`xmlns:m`,v:`xmlns:v`,wp14:`xmlns:wp14`,wp:`xmlns:wp`,w10:`xmlns:w10`,w:`xmlns:w`,w14:`xmlns:w14`,w15:`xmlns:w15`,wpg:`xmlns:wpg`,wpi:`xmlns:wpi`,wne:`xmlns:wne`,wps:`xmlns:wps`,Ignorable:`mc:Ignorable`})}},E7=class extends q{constructor(){super(`w:footnotes`),this.root.push(new T7({wpc:`http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas`,mc:`http://schemas.openxmlformats.org/markup-compatibility/2006`,o:`urn:schemas-microsoft-com:office:office`,r:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,m:`http://schemas.openxmlformats.org/officeDocument/2006/math`,v:`urn:schemas-microsoft-com:vml`,wp14:`http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing`,wp:`http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`,w10:`urn:schemas-microsoft-com:office:word`,w:`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,w14:`http://schemas.microsoft.com/office/word/2010/wordml`,w15:`http://schemas.microsoft.com/office/word/2012/wordml`,wpg:`http://schemas.microsoft.com/office/word/2010/wordprocessingGroup`,wpi:`http://schemas.microsoft.com/office/word/2010/wordprocessingInk`,wne:`http://schemas.microsoft.com/office/word/2006/wordml`,wps:`http://schemas.microsoft.com/office/word/2010/wordprocessingShape`,Ignorable:`w14 w15 wp14`}));let e=new w7({id:-1,type:C7.SEPERATOR,children:[new m6({spacing:{after:0,line:240,lineRule:E3.AUTO},children:[new m7]})]});this.root.push(e);let t=new w7({id:0,type:C7.CONTINUATION_SEPERATOR,children:[new m6({spacing:{after:0,line:240,lineRule:E3.AUTO},children:[new f7]})]});this.root.push(t)}createFootNote(e,t){let n=new w7({id:e,children:t});this.root.push(n)}},D7=class{constructor(){W(this,`footnotess`,void 0),W(this,`relationships`,void 0),this.footnotess=new E7,this.relationships=new z4}get View(){return this.footnotess}get Relationships(){return this.relationships}},O7=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{wpc:`xmlns:wpc`,mc:`xmlns:mc`,o:`xmlns:o`,r:`xmlns:r`,m:`xmlns:m`,v:`xmlns:v`,wp14:`xmlns:wp14`,wp:`xmlns:wp`,w10:`xmlns:w10`,w:`xmlns:w`,w14:`xmlns:w14`,w15:`xmlns:w15`,wpg:`xmlns:wpg`,wpi:`xmlns:wpi`,wne:`xmlns:wne`,wps:`xmlns:wps`,cp:`xmlns:cp`,dc:`xmlns:dc`,dcterms:`xmlns:dcterms`,dcmitype:`xmlns:dcmitype`,xsi:`xmlns:xsi`,type:`xsi:type`,cx:`xmlns:cx`,cx1:`xmlns:cx1`,cx2:`xmlns:cx2`,cx3:`xmlns:cx3`,cx4:`xmlns:cx4`,cx5:`xmlns:cx5`,cx6:`xmlns:cx6`,cx7:`xmlns:cx7`,cx8:`xmlns:cx8`,w16cid:`xmlns:w16cid`,w16se:`xmlns:w16se`})}},k7=class extends u1{constructor(e,t){super(`w:hdr`,t),W(this,`refId`,void 0),this.refId=e,t||this.root.push(new O7({wpc:`http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas`,mc:`http://schemas.openxmlformats.org/markup-compatibility/2006`,o:`urn:schemas-microsoft-com:office:office`,r:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,m:`http://schemas.openxmlformats.org/officeDocument/2006/math`,v:`urn:schemas-microsoft-com:vml`,wp14:`http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing`,wp:`http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`,w10:`urn:schemas-microsoft-com:office:word`,w:`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,w14:`http://schemas.microsoft.com/office/word/2010/wordml`,w15:`http://schemas.microsoft.com/office/word/2012/wordml`,wpg:`http://schemas.microsoft.com/office/word/2010/wordprocessingGroup`,wpi:`http://schemas.microsoft.com/office/word/2010/wordprocessingInk`,wne:`http://schemas.microsoft.com/office/word/2006/wordml`,wps:`http://schemas.microsoft.com/office/word/2010/wordprocessingShape`,cx:`http://schemas.microsoft.com/office/drawing/2014/chartex`,cx1:`http://schemas.microsoft.com/office/drawing/2015/9/8/chartex`,cx2:`http://schemas.microsoft.com/office/drawing/2015/10/21/chartex`,cx3:`http://schemas.microsoft.com/office/drawing/2016/5/9/chartex`,cx4:`http://schemas.microsoft.com/office/drawing/2016/5/10/chartex`,cx5:`http://schemas.microsoft.com/office/drawing/2016/5/11/chartex`,cx6:`http://schemas.microsoft.com/office/drawing/2016/5/12/chartex`,cx7:`http://schemas.microsoft.com/office/drawing/2016/5/13/chartex`,cx8:`http://schemas.microsoft.com/office/drawing/2016/5/14/chartex`,w16cid:`http://schemas.microsoft.com/office/word/2016/wordml/cid`,w16se:`http://schemas.microsoft.com/office/word/2015/wordml/symex`}))}get ReferenceId(){return this.refId}add(e){this.root.push(e)}},A7=class{constructor(e,t,n){W(this,`media`,void 0),W(this,`header`,void 0),W(this,`relationships`,void 0),this.media=e,this.header=new k7(t,n),this.relationships=new z4}add(e){return this.header.add(e),this}addChildElement(e){this.header.addChildElement(e)}get View(){return this.header}get Relationships(){return this.relationships}get Media(){return this.media}},j7=class{constructor(){W(this,`map`,void 0),this.map=new Map}addImage(e,t){this.map.set(e,t)}get Array(){return Array.from(this.map.values())}},M7={DECIMAL:`decimal`,UPPER_ROMAN:`upperRoman`,LOWER_ROMAN:`lowerRoman`,UPPER_LETTER:`upperLetter`,LOWER_LETTER:`lowerLetter`,ORDINAL:`ordinal`,CARDINAL_TEXT:`cardinalText`,ORDINAL_TEXT:`ordinalText`,HEX:`hex`,CHICAGO:`chicago`,IDEOGRAPH__DIGITAL:`ideographDigital`,JAPANESE_COUNTING:`japaneseCounting`,AIUEO:`aiueo`,IROHA:`iroha`,DECIMAL_FULL_WIDTH:`decimalFullWidth`,DECIMAL_HALF_WIDTH:`decimalHalfWidth`,JAPANESE_LEGAL:`japaneseLegal`,JAPANESE_DIGITAL_TEN_THOUSAND:`japaneseDigitalTenThousand`,DECIMAL_ENCLOSED_CIRCLE:`decimalEnclosedCircle`,DECIMAL_FULL_WIDTH2:`decimalFullWidth2`,AIUEO_FULL_WIDTH:`aiueoFullWidth`,IROHA_FULL_WIDTH:`irohaFullWidth`,DECIMAL_ZERO:`decimalZero`,BULLET:`bullet`,GANADA:`ganada`,CHOSUNG:`chosung`,DECIMAL_ENCLOSED_FULLSTOP:`decimalEnclosedFullstop`,DECIMAL_ENCLOSED_PARENTHESES:`decimalEnclosedParen`,DECIMAL_ENCLOSED_CIRCLE_CHINESE:`decimalEnclosedCircleChinese`,IDEOGRAPH_ENCLOSED_CIRCLE:`ideographEnclosedCircle`,IDEOGRAPH_TRADITIONAL:`ideographTraditional`,IDEOGRAPH_ZODIAC:`ideographZodiac`,IDEOGRAPH_ZODIAC_TRADITIONAL:`ideographZodiacTraditional`,TAIWANESE_COUNTING:`taiwaneseCounting`,IDEOGRAPH_LEGAL_TRADITIONAL:`ideographLegalTraditional`,TAIWANESE_COUNTING_THOUSAND:`taiwaneseCountingThousand`,TAIWANESE_DIGITAL:`taiwaneseDigital`,CHINESE_COUNTING:`chineseCounting`,CHINESE_LEGAL_SIMPLIFIED:`chineseLegalSimplified`,CHINESE_COUNTING_THOUSAND:`chineseCountingThousand`,KOREAN_DIGITAL:`koreanDigital`,KOREAN_COUNTING:`koreanCounting`,KOREAN_LEGAL:`koreanLegal`,KOREAN_DIGITAL2:`koreanDigital2`,VIETNAMESE_COUNTING:`vietnameseCounting`,RUSSIAN_LOWER:`russianLower`,RUSSIAN_UPPER:`russianUpper`,NONE:`none`,NUMBER_IN_DASH:`numberInDash`,HEBREW1:`hebrew1`,HEBREW2:`hebrew2`,ARABIC_ALPHA:`arabicAlpha`,ARABIC_ABJAD:`arabicAbjad`,HINDI_VOWELS:`hindiVowels`,HINDI_CONSONANTS:`hindiConsonants`,HINDI_NUMBERS:`hindiNumbers`,HINDI_COUNTING:`hindiCounting`,THAI_LETTERS:`thaiLetters`,THAI_NUMBERS:`thaiNumbers`,THAI_COUNTING:`thaiCounting`,BAHT_TEXT:`bahtText`,DOLLAR_TEXT:`dollarText`,CUSTOM:`custom`},N7=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{ilvl:`w:ilvl`,tentative:`w15:tentative`})}},P7=class extends q{constructor(e){super(`w:numFmt`),this.root.push(new _Q({val:e}))}},F7=class extends q{constructor(e){super(`w:lvlText`),this.root.push(new _Q({val:e}))}},I7=class extends q{constructor(e){super(`w:lvlJc`),this.root.push(new _Q({val:e}))}},L7={NOTHING:`nothing`,SPACE:`space`,TAB:`tab`},R7=class extends q{constructor(e){super(`w:suff`),this.root.push(new _Q({val:e}))}},z7=class extends q{constructor(){super(`w:isLgl`)}},B7=class extends q{constructor({level:e,format:t,text:n,alignment:r=I1.START,start:i=1,style:a,suffix:o,isLegalNumberingStyle:s}){if(super(`w:lvl`),W(this,`paragraphProperties`,void 0),W(this,`runProperties`,void 0),this.root.push(new N1(`w:start`,d1(i))),t&&this.root.push(new P7(t)),o&&this.root.push(new R7(o)),s&&this.root.push(new z7),n&&this.root.push(new F7(n)),this.root.push(new I7(r)),a?.style&&this.root.push(k3(a.style)),this.paragraphProperties=new f6(a&&a.paragraph),this.runProperties=new T0(a&&a.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties),e>9)throw Error(`Level cannot be greater than 9. Read more here: https://answers.microsoft.com/en-us/msoffice/forum/all/does-word-support-more-than-9-list-levels/d130fdcd-1781-446d-8c84-c6c79124e4d7`);this.root.push(new N7({ilvl:d1(e),tentative:1}))}},V7=class extends B7{},Bhe=class extends B7{},Vhe=class extends q{constructor(e){super(`w:multiLevelType`),this.root.push(new _Q({val:e}))}},Hhe=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{abstractNumId:`w:abstractNumId`,restartNumberingAfterBreak:`w15:restartNumberingAfterBreak`})}},H7=class extends q{constructor(e,t){super(`w:abstractNum`),W(this,`id`,void 0),this.root.push(new Hhe({abstractNumId:d1(e),restartNumberingAfterBreak:0})),this.root.push(new Vhe(`hybridMultilevel`)),this.id=e;for(let e of t)this.root.push(new V7(e))}},Uhe=class extends q{constructor(e){super(`w:abstractNumId`),this.root.push(new _Q({val:e}))}},Whe=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{numId:`w:numId`})}},U7=class extends q{constructor(e){if(super(`w:num`),W(this,`numId`,void 0),W(this,`reference`,void 0),W(this,`instance`,void 0),this.numId=e.numId,this.reference=e.reference,this.instance=e.instance,this.root.push(new Whe({numId:d1(e.numId)})),this.root.push(new Uhe(d1(e.abstractNumId))),e.overrideLevels&&e.overrideLevels.length)for(let t of e.overrideLevels)this.root.push(new W7(t.num,t.start))}},Ghe=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{ilvl:`w:ilvl`})}},W7=class extends q{constructor(e,t){super(`w:lvlOverride`),this.root.push(new Ghe({ilvl:e})),t!==void 0&&this.root.push(new qhe(t))}},Khe=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{val:`w:val`})}},qhe=class extends q{constructor(e){super(`w:startOverride`),this.root.push(new Khe({val:e}))}},G7=class extends q{constructor(e){super(`w:numbering`),W(this,`abstractNumberingMap`,new Map),W(this,`concreteNumberingMap`,new Map),W(this,`referenceConfigMap`,new Map),W(this,`abstractNumUniqueNumericId`,e2()),W(this,`concreteNumUniqueNumericId`,t2()),this.root.push(new _5([`wpc`,`mc`,`o`,`r`,`m`,`v`,`wp14`,`wp`,`w10`,`w`,`w14`,`w15`,`wpg`,`wpi`,`wne`,`wps`],`w14 w15 wp14`));let t=new H7(this.abstractNumUniqueNumericId(),[{level:0,format:M7.BULLET,text:`●`,alignment:I1.LEFT,style:{paragraph:{indent:{left:Q0(.5),hanging:Q0(.25)}}}},{level:1,format:M7.BULLET,text:`○`,alignment:I1.LEFT,style:{paragraph:{indent:{left:Q0(1),hanging:Q0(.25)}}}},{level:2,format:M7.BULLET,text:`■`,alignment:I1.LEFT,style:{paragraph:{indent:{left:2160,hanging:Q0(.25)}}}},{level:3,format:M7.BULLET,text:`●`,alignment:I1.LEFT,style:{paragraph:{indent:{left:2880,hanging:Q0(.25)}}}},{level:4,format:M7.BULLET,text:`○`,alignment:I1.LEFT,style:{paragraph:{indent:{left:3600,hanging:Q0(.25)}}}},{level:5,format:M7.BULLET,text:`■`,alignment:I1.LEFT,style:{paragraph:{indent:{left:4320,hanging:Q0(.25)}}}},{level:6,format:M7.BULLET,text:`●`,alignment:I1.LEFT,style:{paragraph:{indent:{left:5040,hanging:Q0(.25)}}}},{level:7,format:M7.BULLET,text:`●`,alignment:I1.LEFT,style:{paragraph:{indent:{left:5760,hanging:Q0(.25)}}}},{level:8,format:M7.BULLET,text:`●`,alignment:I1.LEFT,style:{paragraph:{indent:{left:6480,hanging:Q0(.25)}}}}]);this.concreteNumberingMap.set(`default-bullet-numbering`,new U7({numId:1,abstractNumId:t.id,reference:`default-bullet-numbering`,instance:0,overrideLevels:[{num:0,start:1}]})),this.abstractNumberingMap.set(`default-bullet-numbering`,t);for(let t of e.config)this.abstractNumberingMap.set(t.reference,new H7(this.abstractNumUniqueNumericId(),t.levels)),this.referenceConfigMap.set(t.reference,t.levels)}prepForXml(e){for(let e of this.abstractNumberingMap.values())this.root.push(e);for(let e of this.concreteNumberingMap.values())this.root.push(e);return super.prepForXml(e)}createConcreteNumberingInstance(e,t){let n=this.abstractNumberingMap.get(e);if(!n)return;let r=`${e}-${t}`;if(this.concreteNumberingMap.has(r))return;let i=this.referenceConfigMap.get(e),a=i&&i[0].start,o={numId:this.concreteNumUniqueNumericId(),abstractNumId:n.id,reference:e,instance:t,overrideLevels:[typeof a==`number`&&Number.isInteger(a)?{num:0,start:a}:{num:0,start:1}]};this.concreteNumberingMap.set(r,new U7(o))}get ConcreteNumbering(){return Array.from(this.concreteNumberingMap.values())}get ReferenceConfig(){return Array.from(this.referenceConfigMap.values())}},Jhe=e=>new Y({name:`w:compatSetting`,attributes:{version:{key:`w:val`,value:e},name:{key:`w:name`,value:`compatibilityMode`},uri:{key:`w:uri`,value:`http://schemas.microsoft.com/office/word`}}}),Yhe=class extends q{constructor(e){super(`w:compat`),e.version&&this.root.push(Jhe(e.version)),e.useSingleBorderforContiguousCells&&this.root.push(new J(`w:useSingleBorderforContiguousCells`,e.useSingleBorderforContiguousCells)),e.wordPerfectJustification&&this.root.push(new J(`w:wpJustification`,e.wordPerfectJustification)),e.noTabStopForHangingIndent&&this.root.push(new J(`w:noTabHangInd`,e.noTabStopForHangingIndent)),e.noLeading&&this.root.push(new J(`w:noLeading`,e.noLeading)),e.spaceForUnderline&&this.root.push(new J(`w:spaceForUL`,e.spaceForUnderline)),e.noColumnBalance&&this.root.push(new J(`w:noColumnBalance`,e.noColumnBalance)),e.balanceSingleByteDoubleByteWidth&&this.root.push(new J(`w:balanceSingleByteDoubleByteWidth`,e.balanceSingleByteDoubleByteWidth)),e.noExtraLineSpacing&&this.root.push(new J(`w:noExtraLineSpacing`,e.noExtraLineSpacing)),e.doNotLeaveBackslashAlone&&this.root.push(new J(`w:doNotLeaveBackslashAlone`,e.doNotLeaveBackslashAlone)),e.underlineTrailingSpaces&&this.root.push(new J(`w:ulTrailSpace`,e.underlineTrailingSpaces)),e.doNotExpandShiftReturn&&this.root.push(new J(`w:doNotExpandShiftReturn`,e.doNotExpandShiftReturn)),e.spacingInWholePoints&&this.root.push(new J(`w:spacingInWholePoints`,e.spacingInWholePoints)),e.lineWrapLikeWord6&&this.root.push(new J(`w:lineWrapLikeWord6`,e.lineWrapLikeWord6)),e.printBodyTextBeforeHeader&&this.root.push(new J(`w:printBodyTextBeforeHeader`,e.printBodyTextBeforeHeader)),e.printColorsBlack&&this.root.push(new J(`w:printColBlack`,e.printColorsBlack)),e.spaceWidth&&this.root.push(new J(`w:wpSpaceWidth`,e.spaceWidth)),e.showBreaksInFrames&&this.root.push(new J(`w:showBreaksInFrames`,e.showBreaksInFrames)),e.subFontBySize&&this.root.push(new J(`w:subFontBySize`,e.subFontBySize)),e.suppressBottomSpacing&&this.root.push(new J(`w:suppressBottomSpacing`,e.suppressBottomSpacing)),e.suppressTopSpacing&&this.root.push(new J(`w:suppressTopSpacing`,e.suppressTopSpacing)),e.suppressSpacingAtTopOfPage&&this.root.push(new J(`w:suppressSpacingAtTopOfPage`,e.suppressSpacingAtTopOfPage)),e.suppressTopSpacingWP&&this.root.push(new J(`w:suppressTopSpacingWP`,e.suppressTopSpacingWP)),e.suppressSpBfAfterPgBrk&&this.root.push(new J(`w:suppressSpBfAfterPgBrk`,e.suppressSpBfAfterPgBrk)),e.swapBordersFacingPages&&this.root.push(new J(`w:swapBordersFacingPages`,e.swapBordersFacingPages)),e.convertMailMergeEsc&&this.root.push(new J(`w:convMailMergeEsc`,e.convertMailMergeEsc)),e.truncateFontHeightsLikeWP6&&this.root.push(new J(`w:truncateFontHeightsLikeWP6`,e.truncateFontHeightsLikeWP6)),e.macWordSmallCaps&&this.root.push(new J(`w:mwSmallCaps`,e.macWordSmallCaps)),e.usePrinterMetrics&&this.root.push(new J(`w:usePrinterMetrics`,e.usePrinterMetrics)),e.doNotSuppressParagraphBorders&&this.root.push(new J(`w:doNotSuppressParagraphBorders`,e.doNotSuppressParagraphBorders)),e.wrapTrailSpaces&&this.root.push(new J(`w:wrapTrailSpaces`,e.wrapTrailSpaces)),e.footnoteLayoutLikeWW8&&this.root.push(new J(`w:footnoteLayoutLikeWW8`,e.footnoteLayoutLikeWW8)),e.shapeLayoutLikeWW8&&this.root.push(new J(`w:shapeLayoutLikeWW8`,e.shapeLayoutLikeWW8)),e.alignTablesRowByRow&&this.root.push(new J(`w:alignTablesRowByRow`,e.alignTablesRowByRow)),e.forgetLastTabAlignment&&this.root.push(new J(`w:forgetLastTabAlignment`,e.forgetLastTabAlignment)),e.adjustLineHeightInTable&&this.root.push(new J(`w:adjustLineHeightInTable`,e.adjustLineHeightInTable)),e.autoSpaceLikeWord95&&this.root.push(new J(`w:autoSpaceLikeWord95`,e.autoSpaceLikeWord95)),e.noSpaceRaiseLower&&this.root.push(new J(`w:noSpaceRaiseLower`,e.noSpaceRaiseLower)),e.doNotUseHTMLParagraphAutoSpacing&&this.root.push(new J(`w:doNotUseHTMLParagraphAutoSpacing`,e.doNotUseHTMLParagraphAutoSpacing)),e.layoutRawTableWidth&&this.root.push(new J(`w:layoutRawTableWidth`,e.layoutRawTableWidth)),e.layoutTableRowsApart&&this.root.push(new J(`w:layoutTableRowsApart`,e.layoutTableRowsApart)),e.useWord97LineBreakRules&&this.root.push(new J(`w:useWord97LineBreakRules`,e.useWord97LineBreakRules)),e.doNotBreakWrappedTables&&this.root.push(new J(`w:doNotBreakWrappedTables`,e.doNotBreakWrappedTables)),e.doNotSnapToGridInCell&&this.root.push(new J(`w:doNotSnapToGridInCell`,e.doNotSnapToGridInCell)),e.selectFieldWithFirstOrLastCharacter&&this.root.push(new J(`w:selectFldWithFirstOrLastChar`,e.selectFieldWithFirstOrLastCharacter)),e.applyBreakingRules&&this.root.push(new J(`w:applyBreakingRules`,e.applyBreakingRules)),e.doNotWrapTextWithPunctuation&&this.root.push(new J(`w:doNotWrapTextWithPunct`,e.doNotWrapTextWithPunctuation)),e.doNotUseEastAsianBreakRules&&this.root.push(new J(`w:doNotUseEastAsianBreakRules`,e.doNotUseEastAsianBreakRules)),e.useWord2002TableStyleRules&&this.root.push(new J(`w:useWord2002TableStyleRules`,e.useWord2002TableStyleRules)),e.growAutofit&&this.root.push(new J(`w:growAutofit`,e.growAutofit)),e.useFELayout&&this.root.push(new J(`w:useFELayout`,e.useFELayout)),e.useNormalStyleForList&&this.root.push(new J(`w:useNormalStyleForList`,e.useNormalStyleForList)),e.doNotUseIndentAsNumberingTabStop&&this.root.push(new J(`w:doNotUseIndentAsNumberingTabStop`,e.doNotUseIndentAsNumberingTabStop)),e.useAlternateEastAsianLineBreakRules&&this.root.push(new J(`w:useAltKinsokuLineBreakRules`,e.useAlternateEastAsianLineBreakRules)),e.allowSpaceOfSameStyleInTable&&this.root.push(new J(`w:allowSpaceOfSameStyleInTable`,e.allowSpaceOfSameStyleInTable)),e.doNotSuppressIndentation&&this.root.push(new J(`w:doNotSuppressIndentation`,e.doNotSuppressIndentation)),e.doNotAutofitConstrainedTables&&this.root.push(new J(`w:doNotAutofitConstrainedTables`,e.doNotAutofitConstrainedTables)),e.autofitToFirstFixedWidthCell&&this.root.push(new J(`w:autofitToFirstFixedWidthCell`,e.autofitToFirstFixedWidthCell)),e.underlineTabInNumberingList&&this.root.push(new J(`w:underlineTabInNumList`,e.underlineTabInNumberingList)),e.displayHangulFixedWidth&&this.root.push(new J(`w:displayHangulFixedWidth`,e.displayHangulFixedWidth)),e.splitPgBreakAndParaMark&&this.root.push(new J(`w:splitPgBreakAndParaMark`,e.splitPgBreakAndParaMark)),e.doNotVerticallyAlignCellWithSp&&this.root.push(new J(`w:doNotVertAlignCellWithSp`,e.doNotVerticallyAlignCellWithSp)),e.doNotBreakConstrainedForcedTable&&this.root.push(new J(`w:doNotBreakConstrainedForcedTable`,e.doNotBreakConstrainedForcedTable)),e.ignoreVerticalAlignmentInTextboxes&&this.root.push(new J(`w:doNotVertAlignInTxbx`,e.ignoreVerticalAlignmentInTextboxes)),e.useAnsiKerningPairs&&this.root.push(new J(`w:useAnsiKerningPairs`,e.useAnsiKerningPairs)),e.cachedColumnBalance&&this.root.push(new J(`w:cachedColBalance`,e.cachedColumnBalance))}},Xhe=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{wpc:`xmlns:wpc`,mc:`xmlns:mc`,o:`xmlns:o`,r:`xmlns:r`,m:`xmlns:m`,v:`xmlns:v`,wp14:`xmlns:wp14`,wp:`xmlns:wp`,w10:`xmlns:w10`,w:`xmlns:w`,w14:`xmlns:w14`,w15:`xmlns:w15`,wpg:`xmlns:wpg`,wpi:`xmlns:wpi`,wne:`xmlns:wne`,wps:`xmlns:wps`,Ignorable:`mc:Ignorable`})}},Zhe=class extends q{constructor(e){super(`w:settings`),this.root.push(new Xhe({wpc:`http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas`,mc:`http://schemas.openxmlformats.org/markup-compatibility/2006`,o:`urn:schemas-microsoft-com:office:office`,r:`http://schemas.openxmlformats.org/officeDocument/2006/relationships`,m:`http://schemas.openxmlformats.org/officeDocument/2006/math`,v:`urn:schemas-microsoft-com:vml`,wp14:`http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing`,wp:`http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing`,w10:`urn:schemas-microsoft-com:office:word`,w:`http://schemas.openxmlformats.org/wordprocessingml/2006/main`,w14:`http://schemas.microsoft.com/office/word/2010/wordml`,w15:`http://schemas.microsoft.com/office/word/2012/wordml`,wpg:`http://schemas.microsoft.com/office/word/2010/wordprocessingGroup`,wpi:`http://schemas.microsoft.com/office/word/2010/wordprocessingInk`,wne:`http://schemas.microsoft.com/office/word/2006/wordml`,wps:`http://schemas.microsoft.com/office/word/2010/wordprocessingShape`,Ignorable:`w14 w15 wp14`})),this.root.push(new J(`w:displayBackgroundShape`,!0)),e.trackRevisions!==void 0&&this.root.push(new J(`w:trackRevisions`,e.trackRevisions)),e.evenAndOddHeaders!==void 0&&this.root.push(new J(`w:evenAndOddHeaders`,e.evenAndOddHeaders)),e.updateFields!==void 0&&this.root.push(new J(`w:updateFields`,e.updateFields)),e.defaultTabStop!==void 0&&this.root.push(new N1(`w:defaultTabStop`,e.defaultTabStop)),e.hyphenation?.autoHyphenation!==void 0&&this.root.push(new J(`w:autoHyphenation`,e.hyphenation.autoHyphenation)),e.hyphenation?.hyphenationZone!==void 0&&this.root.push(new N1(`w:hyphenationZone`,e.hyphenation.hyphenationZone)),e.hyphenation?.consecutiveHyphenLimit!==void 0&&this.root.push(new N1(`w:consecutiveHyphenLimit`,e.hyphenation.consecutiveHyphenLimit)),e.hyphenation?.doNotHyphenateCaps!==void 0&&this.root.push(new J(`w:doNotHyphenateCaps`,e.hyphenation.doNotHyphenateCaps)),this.root.push(new Yhe(G(G({},e.compatibility??{}),{},{version:e.compatibility?.version??e.compatibilityModeVersion??15})))}},K7=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{val:`w:val`})}},Qhe=class extends q{constructor(e){super(`w:name`),this.root.push(new K7({val:e}))}},$he=class extends q{constructor(e){super(`w:uiPriority`),this.root.push(new K7({val:d1(e)}))}},ege=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{type:`w:type`,styleId:`w:styleId`,default:`w:default`,customStyle:`w:customStyle`})}},q7=class extends q{constructor(e,t){super(`w:style`),this.root.push(new ege(e)),t.name&&this.root.push(new Qhe(t.name)),t.basedOn&&this.root.push(new j1(`w:basedOn`,t.basedOn)),t.next&&this.root.push(new j1(`w:next`,t.next)),t.link&&this.root.push(new j1(`w:link`,t.link)),t.uiPriority!==void 0&&this.root.push(new $he(t.uiPriority)),t.semiHidden!==void 0&&this.root.push(new J(`w:semiHidden`,t.semiHidden)),t.unhideWhenUsed!==void 0&&this.root.push(new J(`w:unhideWhenUsed`,t.unhideWhenUsed)),t.quickFormat!==void 0&&this.root.push(new J(`w:qFormat`,t.quickFormat))}},J7=class extends q7{constructor(e){super({type:`paragraph`,styleId:e.id},e),W(this,`paragraphProperties`,void 0),W(this,`runProperties`,void 0),this.paragraphProperties=new f6(e.paragraph),this.runProperties=new T0(e.run),this.root.push(this.paragraphProperties),this.root.push(this.runProperties)}},Y7=class extends q7{constructor(e){super({type:`character`,styleId:e.id},G({uiPriority:99,unhideWhenUsed:!0},e)),W(this,`runProperties`,void 0),this.runProperties=new T0(e.run),this.root.push(this.runProperties)}},X7=class extends J7{constructor(e){super(G({basedOn:`Normal`,next:`Normal`,quickFormat:!0},e))}},tge=class extends X7{constructor(e){super(G({id:`Title`,name:`Title`},e))}},nge=class extends X7{constructor(e){super(G({id:`Heading1`,name:`Heading 1`},e))}},rge=class extends X7{constructor(e){super(G({id:`Heading2`,name:`Heading 2`},e))}},ige=class extends X7{constructor(e){super(G({id:`Heading3`,name:`Heading 3`},e))}},age=class extends X7{constructor(e){super(G({id:`Heading4`,name:`Heading 4`},e))}},oge=class extends X7{constructor(e){super(G({id:`Heading5`,name:`Heading 5`},e))}},sge=class extends X7{constructor(e){super(G({id:`Heading6`,name:`Heading 6`},e))}},cge=class extends X7{constructor(e){super(G({id:`Strong`,name:`Strong`},e))}},lge=class extends J7{constructor(e){super(G({id:`ListParagraph`,name:`List Paragraph`,basedOn:`Normal`,quickFormat:!0},e))}},uge=class extends J7{constructor(e){super(G({id:`FootnoteText`,name:`footnote text`,link:`FootnoteTextChar`,basedOn:`Normal`,uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:E3.AUTO}},run:{size:20}},e))}},dge=class extends Y7{constructor(e){super(G({id:`FootnoteReference`,name:`footnote reference`,basedOn:`DefaultParagraphFont`,semiHidden:!0,run:{superScript:!0}},e))}},fge=class extends Y7{constructor(e){super(G({id:`FootnoteTextChar`,name:`Footnote Text Char`,basedOn:`DefaultParagraphFont`,link:`FootnoteText`,semiHidden:!0,run:{size:20}},e))}},pge=class extends J7{constructor(e){super(G({id:`EndnoteText`,name:`endnote text`,link:`EndnoteTextChar`,basedOn:`Normal`,uiPriority:99,semiHidden:!0,unhideWhenUsed:!0,paragraph:{spacing:{after:0,line:240,lineRule:E3.AUTO}},run:{size:20}},e))}},mge=class extends Y7{constructor(e){super(G({id:`EndnoteReference`,name:`endnote reference`,basedOn:`DefaultParagraphFont`,semiHidden:!0,run:{superScript:!0}},e))}},hge=class extends Y7{constructor(e){super(G({id:`EndnoteTextChar`,name:`Endnote Text Char`,basedOn:`DefaultParagraphFont`,link:`EndnoteText`,semiHidden:!0,run:{size:20}},e))}},gge=class extends Y7{constructor(e){super(G({id:`Hyperlink`,name:`Hyperlink`,basedOn:`DefaultParagraphFont`,run:{color:`0563C1`,underline:{type:x0.SINGLE}}},e))}},Z7=class extends q{constructor(e){if(super(`w:styles`),e.initialStyles&&this.root.push(e.initialStyles),e.importedStyles)for(let t of e.importedStyles)this.root.push(t);if(e.paragraphStyles)for(let t of e.paragraphStyles)this.root.push(new J7(t));if(e.characterStyles)for(let t of e.characterStyles)this.root.push(new Y7(t))}},Q7=class extends q{constructor(e){super(`w:pPrDefault`),this.root.push(new f6(e))}},$7=class extends q{constructor(e){super(`w:rPrDefault`),this.root.push(new T0(e))}},e9=class extends q{constructor(e){super(`w:docDefaults`),W(this,`runPropertiesDefaults`,void 0),W(this,`paragraphPropertiesDefaults`,void 0),this.runPropertiesDefaults=new $7(e.run),this.paragraphPropertiesDefaults=new Q7(e.paragraph),this.root.push(this.runPropertiesDefaults),this.root.push(this.paragraphPropertiesDefaults)}},_ge=class{newInstance(e){let t=(0,a1.xml2js)(e,{compact:!1}),n;for(let e of t.elements||[])e.name===`w:styles`&&(n=e);if(n===void 0)throw Error(`can not find styles element`);let r=n.elements||[];return{initialStyles:new l1(n.attributes),importedStyles:r.map(e=>o1(e))}}},t9=class{newInstance(e={}){return{initialStyles:new _5([`mc`,`r`,`w`,`w14`,`w15`],`w14 w15`),importedStyles:[new e9(e.document??{}),new tge(G({run:{size:56}},e.title)),new nge(G({run:{color:`2E74B5`,size:32}},e.heading1)),new rge(G({run:{color:`2E74B5`,size:26}},e.heading2)),new ige(G({run:{color:`1F4D78`,size:24}},e.heading3)),new age(G({run:{color:`2E74B5`,italics:!0}},e.heading4)),new oge(G({run:{color:`2E74B5`}},e.heading5)),new sge(G({run:{color:`1F4D78`}},e.heading6)),new cge(G({run:{bold:!0}},e.strong)),new lge(e.listParagraph||{}),new gge(e.hyperlink||{}),new dge(e.footnoteReference||{}),new uge(e.footnoteText||{}),new fge(e.footnoteTextChar||{}),new mge(e.endnoteReference||{}),new pge(e.endnoteText||{}),new hge(e.endnoteTextChar||{})]}}},n9=class{constructor(e){if(W(this,`currentRelationshipId`,1),W(this,`documentWrapper`,void 0),W(this,`headers`,[]),W(this,`footers`,[]),W(this,`coreProperties`,void 0),W(this,`numbering`,void 0),W(this,`media`,void 0),W(this,`fileRelationships`,void 0),W(this,`footnotesWrapper`,void 0),W(this,`endnotesWrapper`,void 0),W(this,`settings`,void 0),W(this,`contentTypes`,void 0),W(this,`customProperties`,void 0),W(this,`appProperties`,void 0),W(this,`styles`,void 0),W(this,`comments`,void 0),W(this,`commentsExtended`,void 0),W(this,`fontWrapper`,void 0),this.coreProperties=new v5(G(G({},e),{},{creator:e.creator??`Un-named`,revision:e.revision??1,lastModifiedBy:e.lastModifiedBy??`Un-named`})),this.numbering=new G7(e.numbering?e.numbering:{config:[]}),this.comments=new J4(e.comments??{children:[]}),this.comments.ThreadData&&(this.commentsExtended=new Q4(this.comments.ThreadData)),this.fileRelationships=new z4,this.customProperties=new T5(e.customProperties??[]),this.appProperties=new d5,this.footnotesWrapper=new D7,this.endnotesWrapper=new g7,this.contentTypes=new h5,this.documentWrapper=new a7({background:e.background}),this.settings=new Zhe({compatibilityModeVersion:e.compatabilityModeVersion,compatibility:e.compatibility,evenAndOddHeaders:!!e.evenAndOddHeaderAndFooters,trackRevisions:e.features?.trackRevisions,updateFields:e.features?.updateFields,defaultTabStop:e.defaultTabStop,hyphenation:{autoHyphenation:e.hyphenation?.autoHyphenation,hyphenationZone:e.hyphenation?.hyphenationZone,consecutiveHyphenLimit:e.hyphenation?.consecutiveHyphenLimit,doNotHyphenateCaps:e.hyphenation?.doNotHyphenateCaps}}),this.media=new j7,e.externalStyles!==void 0){let t=new t9().newInstance(e.styles?.default),n=new _ge().newInstance(e.externalStyles);this.styles=new Z7(G(G({},n),{},{importedStyles:[...t.importedStyles,...n.importedStyles]}))}else if(e.styles){let t=new t9().newInstance(e.styles.default);this.styles=new Z7(G(G({},t),e.styles))}else{let e=new t9;this.styles=new Z7(e.newInstance())}this.addDefaultRelationships();for(let t of e.sections)this.addSection(t);if(e.footnotes)for(let t in e.footnotes)this.footnotesWrapper.View.createFootNote(parseFloat(t),e.footnotes[t].children);if(e.endnotes)for(let t in e.endnotes)this.endnotesWrapper.View.createEndnote(parseFloat(t),e.endnotes[t].children);this.fontWrapper=new o6(e.fonts??[])}addSection({headers:e={},footers:t={},children:n,properties:r}){this.documentWrapper.View.Body.addSection(G(G({},r),{},{headerWrapperGroup:{default:e.default?this.createHeader(e.default):void 0,first:e.first?this.createHeader(e.first):void 0,even:e.even?this.createHeader(e.even):void 0},footerWrapperGroup:{default:t.default?this.createFooter(t.default):void 0,first:t.first?this.createFooter(t.first):void 0,even:t.even?this.createFooter(t.even):void 0}}));for(let e of n)this.documentWrapper.View.add(e)}createHeader(e){let t=new A7(this.media,this.currentRelationshipId++);for(let n of e.options.children)t.add(n);return this.addHeaderToDocument(t),t}createFooter(e){let t=new y7(this.media,this.currentRelationshipId++);for(let n of e.options.children)t.add(n);return this.addFooterToDocument(t),t}addHeaderToDocument(e,t=k5.DEFAULT){this.headers.push({header:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/header`,`header${this.headers.length}.xml`),this.contentTypes.addHeader(this.headers.length)}addFooterToDocument(e,t=k5.DEFAULT){this.footers.push({footer:e,type:t}),this.documentWrapper.Relationships.addRelationship(e.View.ReferenceId,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer`,`footer${this.footers.length}.xml`),this.contentTypes.addFooter(this.footers.length)}addDefaultRelationships(){this.fileRelationships.addRelationship(1,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`,`word/document.xml`),this.fileRelationships.addRelationship(2,`http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties`,`docProps/core.xml`),this.fileRelationships.addRelationship(3,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties`,`docProps/app.xml`),this.fileRelationships.addRelationship(4,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties`,`docProps/custom.xml`),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles`,`styles.xml`),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering`,`numbering.xml`),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes`,`footnotes.xml`),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes`,`endnotes.xml`),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings`,`settings.xml`),this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`,`comments.xml`),this.commentsExtended&&(this.documentWrapper.Relationships.addRelationship(this.currentRelationshipId++,`http://schemas.microsoft.com/office/2011/relationships/commentsExtended`,`commentsExtended.xml`),this.contentTypes.addCommentsExtended())}get Document(){return this.documentWrapper}get Styles(){return this.styles}get CoreProperties(){return this.coreProperties}get Numbering(){return this.numbering}get Media(){return this.media}get FileRelationships(){return this.fileRelationships}get Headers(){return this.headers.map(e=>e.header)}get Footers(){return this.footers.map(e=>e.footer)}get ContentTypes(){return this.contentTypes}get CustomProperties(){return this.customProperties}get AppProperties(){return this.appProperties}get FootNotes(){return this.footnotesWrapper}get Endnotes(){return this.endnotesWrapper}get Settings(){return this.settings}get Comments(){return this.comments}get CommentsExtended(){return this.commentsExtended}get FontTable(){return this.fontWrapper}},vge=class extends q{constructor(e={}){super(`w:instrText`),W(this,`properties`,void 0),this.properties=e,this.root.push(new $1({space:Q1.PRESERVE}));let t=`TOC`;if(this.properties.captionLabel&&(t=`${t} \\a "${this.properties.captionLabel}"`),this.properties.entriesFromBookmark&&(t=`${t} \\b "${this.properties.entriesFromBookmark}"`),this.properties.captionLabelIncludingNumbers&&(t=`${t} \\c "${this.properties.captionLabelIncludingNumbers}"`),this.properties.sequenceAndPageNumbersSeparator&&(t=`${t} \\d "${this.properties.sequenceAndPageNumbersSeparator}"`),this.properties.tcFieldIdentifier&&(t=`${t} \\f "${this.properties.tcFieldIdentifier}"`),this.properties.hyperlink&&(t=`${t} \\h`),this.properties.tcFieldLevelRange&&(t=`${t} \\l "${this.properties.tcFieldLevelRange}"`),this.properties.pageNumbersEntryLevelsRange&&(t=`${t} \\n "${this.properties.pageNumbersEntryLevelsRange}"`),this.properties.headingStyleRange&&(t=`${t} \\o "${this.properties.headingStyleRange}"`),this.properties.entryAndPageNumberSeparator&&(t=`${t} \\p "${this.properties.entryAndPageNumberSeparator}"`),this.properties.seqFieldIdentifierForPrefix&&(t=`${t} \\s "${this.properties.seqFieldIdentifierForPrefix}"`),this.properties.stylesWithLevels&&this.properties.stylesWithLevels.length){let e=this.properties.stylesWithLevels.map(e=>`${e.styleName},${e.level}`).join(`,`);t=`${t} \\t "${e}"`}this.properties.useAppliedParagraphOutlineLevel&&(t=`${t} \\u`),this.properties.preserveTabInEntries&&(t=`${t} \\w`),this.properties.preserveNewLineInEntries&&(t=`${t} \\x`),this.properties.hideTabAndPageNumbersInWebView&&(t=`${t} \\z`),this.root.push(t)}},r9=class extends q{constructor(){super(`w:sdtContent`)}},i9=class extends q{constructor(e){super(`w:sdtPr`),e&&this.root.push(new j1(`w:alias`,e))}},yge=[`contentChildren`,`cachedEntries`,`beginDirty`],bge=class extends R3{constructor(e=`Table of Contents`,t={}){let{contentChildren:n=[],cachedEntries:r=[],beginDirty:i=!0}=t,a=$Z(t,yge);super(`w:sdt`),this.root.push(new i9(e));let o=new r9,s=[new A0({children:[K1(i),new vge(a),q1()]})],c=[new A0({children:[J1()]})];if(r!==void 0&&r.length>0){let{stylesWithLevels:e}=a,t=r.map((t,n)=>{var i;let o=this.buildCachedContentParagraphChild(t,a),l=(e==null||(i=e.find(e=>e.level===t.level))==null?void 0:i.styleName)??`TOC${t.level}`,u=n===0?[...s,o]:n===r.length-1?[o,...c]:[o];return new m6({style:l,tabStops:this.getTabStopsForLevel(t.level),children:u})}),n=t;r.length<=1&&(n=[...t,new m6({children:c})]);for(let e of n)o.addChildElement(e)}else{let e=new m6({children:s});o.addChildElement(e);for(let e of n)o.addChildElement(e);let t=new m6({children:c});o.addChildElement(t)}this.root.push(o)}getTabStopsForLevel(e,t=9025){return[{type:`clear`,position:t+1-(e-1)*240},{type:`right`,position:t,leader:`dot`}]}buildCachedContentRun(e,t){return new A0({style:t?.hyperlink&&e.href!==void 0?`IndexLink`:void 0,children:[new O0({text:e.title}),new m3,new O0({text:e.page?.toString()??``})]})}buildCachedContentParagraphChild(e,t){let n=this.buildCachedContentRun(e,t);return t?.hyperlink&&e.href!==void 0?new H3({anchor:e.href,children:[n]}):n}},xge=class{constructor(e,t){W(this,`styleName`,void 0),W(this,`level`,void 0),this.styleName=e,this.level=t}},Sge=class{constructor(e={children:[]}){W(this,`options`,void 0),this.options=e}},Cge=class{constructor(e={children:[]}){W(this,`options`,void 0),this.options=e}},a9=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`w:id`})}},o9=class extends q{constructor(e){super(`w:footnoteReference`),this.root.push(new a9({id:e}))}},wge=class extends A0{constructor(e){super({style:`FootnoteReference`}),this.root.push(new o9(e))}},s9=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{id:`w:id`})}},c9=class extends q{constructor(e){super(`w:endnoteReference`),this.root.push(new s9({id:e}))}},Tge=class extends A0{constructor(e){super({style:`EndnoteReference`}),this.root.push(new c9(e))}},l9=class extends hQ{constructor(...e){super(...e),W(this,`xmlKeys`,{val:`w14:val`,symbolfont:`w14:font`})}},u9=class extends q{constructor(e,t,n){super(e),n?this.root.push(new l9({val:h1(t),symbolfont:n})):this.root.push(new l9({val:t}))}},d9=class extends q{constructor(e){var t,n,r,i,a,o,s,c;super(`w14:checkbox`),W(this,`DEFAULT_UNCHECKED_SYMBOL`,`2610`),W(this,`DEFAULT_CHECKED_SYMBOL`,`2612`),W(this,`DEFAULT_FONT`,`MS Gothic`);let l=e?.checked?`1`:`0`,u,d;this.root.push(new u9(`w14:checked`,l)),u=e!=null&&(t=e.checkedState)!=null&&t.value?e==null||(n=e.checkedState)==null?void 0:n.value:this.DEFAULT_CHECKED_SYMBOL,d=e!=null&&(r=e.checkedState)!=null&&r.font?e==null||(i=e.checkedState)==null?void 0:i.font:this.DEFAULT_FONT,this.root.push(new u9(`w14:checkedState`,u,d)),u=e!=null&&(a=e.uncheckedState)!=null&&a.value?e==null||(o=e.uncheckedState)==null?void 0:o.value:this.DEFAULT_UNCHECKED_SYMBOL,d=e!=null&&(s=e.uncheckedState)!=null&&s.font?e==null||(c=e.uncheckedState)==null?void 0:c.font:this.DEFAULT_FONT,this.root.push(new u9(`w14:uncheckedState`,u,d))}},Ege=class extends q{constructor(e){var t,n,r,i;super(`w:sdt`),W(this,`DEFAULT_UNCHECKED_SYMBOL`,`2610`),W(this,`DEFAULT_CHECKED_SYMBOL`,`2612`),W(this,`DEFAULT_FONT`,`MS Gothic`);let a=new i9(e?.alias);a.addChildElement(new d9(e)),this.root.push(a);let o=new r9,s=e==null||(t=e.checkedState)==null?void 0:t.font,c=e==null||(n=e.checkedState)==null?void 0:n.value,l=e==null||(r=e.uncheckedState)==null?void 0:r.font,u=e==null||(i=e.uncheckedState)==null?void 0:i.value,d,f;e?.checked?(d=s||this.DEFAULT_FONT,f=c||this.DEFAULT_CHECKED_SYMBOL):(d=l||this.DEFAULT_FONT,f=u||this.DEFAULT_UNCHECKED_SYMBOL);let p=new P0({char:f,symbolfont:d});o.addChildElement(p),this.root.push(o)}},Dge=({shape:e})=>new Y({name:`w:pict`,children:[e]}),Oge=({children:e=[]})=>new Y({name:`w:txbxContent`,children:e}),kge=({style:e,children:t,inset:n})=>new Y({name:`v:textbox`,attributes:{style:{key:`style`,value:e},insetMode:{key:`insetmode`,value:n?`custom`:`auto`},inset:{key:`inset`,value:n?`${n.left}, ${n.top}, ${n.right}, ${n.bottom}`:void 0}},children:[Oge({children:t})]}),Age=`#_x0000_t202`,jge={flip:`flip`,height:`height`,left:`left`,marginBottom:`margin-bottom`,marginLeft:`margin-left`,marginRight:`margin-right`,marginTop:`margin-top`,positionHorizontal:`mso-position-horizontal`,positionHorizontalRelative:`mso-position-horizontal-relative`,positionVertical:`mso-position-vertical`,positionVerticalRelative:`mso-position-vertical-relative`,wrapDistanceBottom:`mso-wrap-distance-bottom`,wrapDistanceLeft:`mso-wrap-distance-left`,wrapDistanceRight:`mso-wrap-distance-right`,wrapDistanceTop:`mso-wrap-distance-top`,wrapEdited:`mso-wrap-edited`,wrapStyle:`mso-wrap-style`,position:`position`,rotation:`rotation`,top:`top`,visibility:`visibility`,width:`width`,zIndex:`z-index`},Mge=e=>e?Object.entries(e).map(([e,t])=>`${jge[e]}:${t}`).join(`;`):void 0,Nge=({id:e,children:t,type:n=Age,style:r})=>new Y({name:`v:shape`,attributes:{id:{key:`id`,value:e},type:{key:`type`,value:n},style:{key:`style`,value:Mge(r)}},children:[kge({style:`mso-fit-shape-to-text:t;`,children:t})]}),Pge=[`style`,`children`],Fge=class extends R3{constructor(e){let{style:t,children:n}=e,r=$Z(e,Pge);super(`w:p`),this.root.push(new f6(r)),this.root.push(Dge({shape:Nge({children:n,id:i2(),style:t})}))}},Ige=K(((e,t)=>{xQ(),MQ(),(function(n){typeof e==`object`&&t!==void 0?t.exports=n():typeof define==`function`&&define.amd?define([],n):(typeof window<`u`?window:bQ===void 0?typeof self<`u`?self:this:bQ).JSZip=n()})(function(){return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var c=typeof dQ==`function`&&dQ;if(!s&&c)return c(o,!0);if(a)return a(o,!0);var l=Error(`Cannot find module '`+o+`'`);throw l.code=`MODULE_NOT_FOUND`,l}var u=n[o]={exports:{}};t[o][0].call(u.exports,function(e){var n=t[o][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[o].exports}for(var a=typeof dQ==`function`&&dQ,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){var r=e(`./utils`),i=e(`./support`),a=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;n.encode=function(e){for(var t,n,i,o,s,c,l,u=[],d=0,f=e.length,p=f,m=r.getTypeOf(e)!==`string`;d<e.length;)p=f-d,i=m?(t=e[d++],n=d<f?e[d++]:0,d<f?e[d++]:0):(t=e.charCodeAt(d++),n=d<f?e.charCodeAt(d++):0,d<f?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|n>>4,c=1<p?(15&n)<<2|i>>6:64,l=2<p?63&i:64,u.push(a.charAt(o)+a.charAt(s)+a.charAt(c)+a.charAt(l));return u.join(``)},n.decode=function(e){var t,n,r,o,s,c,l=0,u=0,d=`data:`;if(e.substr(0,d.length)===d)throw Error(`Invalid base64 input, it looks like a data url.`);var f,p=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,``)).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&p--,e.charAt(e.length-2)===a.charAt(64)&&p--,p%1!=0)throw Error(`Invalid base64 input, bad content length.`);for(f=i.uint8array?new Uint8Array(0|p):Array(0|p);l<e.length;)t=a.indexOf(e.charAt(l++))<<2|(o=a.indexOf(e.charAt(l++)))>>4,n=(15&o)<<4|(s=a.indexOf(e.charAt(l++)))>>2,r=(3&s)<<6|(c=a.indexOf(e.charAt(l++))),f[u++]=t,s!==64&&(f[u++]=n),c!==64&&(f[u++]=r);return f}},{"./support":30,"./utils":32}],2:[function(e,t,n){var r=e(`./external`),i=e(`./stream/DataWorker`),a=e(`./stream/Crc32Probe`),o=e(`./stream/DataLengthProbe`);function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o(`data_length`)),t=this;return e.on(`end`,function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error(`Bug : uncompressed data size mismatch`)}),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo(`compressedSize`,this.compressedSize).withStreamInfo(`uncompressedSize`,this.uncompressedSize).withStreamInfo(`crc32`,this.crc32).withStreamInfo(`compression`,this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o(`uncompressedSize`)).pipe(t.compressWorker(n)).pipe(new o(`compressedSize`)).withStreamInfo(`compression`,t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,n){var r=e(`./stream/GenericWorker`);n.STORE={magic:`\0\0`,compressWorker:function(){return new r(`STORE compression`)},uncompressWorker:function(){return new r(`STORE decompression`)}},n.DEFLATE=e(`./flate`)},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,n){var r=e(`./utils`),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t){return e!==void 0&&e.length?r.getTypeOf(e)===`string`?function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):function(e,t,n,r){var a=i,o=r+n;e^=-1;for(var s=r;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,n){n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(e,t,n){var r=null;r=typeof Promise<`u`?Promise:e(`lie`),t.exports={Promise:r}},{lie:37}],7:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Uint32Array<`u`,i=e(`pako`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=r?`uint8array`:`array`;function c(e,t){o.call(this,`FlateWorker/`+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic=`\b\0`,a.inherits(c,o),c.prototype.processChunk=function(e){this.meta=e.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},c.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},c.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},c.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new c(`Deflate`,e)},n.uncompressWorker=function(){return new c(`Inflate`,{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,n){function r(e,t){var n,r=``;for(n=0;n<t;n++)r+=String.fromCharCode(255&e),e>>>=8;return r}function i(e,t,n,i,o,u){var d,f,p=e.file,m=e.compression,h=u!==s.utf8encode,g=a.transformTo(`string`,u(p.name)),_=a.transformTo(`string`,s.utf8encode(p.name)),v=p.comment,y=a.transformTo(`string`,u(v)),b=a.transformTo(`string`,s.utf8encode(v)),x=_.length!==p.name.length,S=b.length!==v.length,C=``,w=``,T=``,E=p.dir,D=p.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var k=0;t&&(k|=8),h||!x&&!S||(k|=2048);var A=0,j=0;E&&(A|=16),o===`UNIX`?(j=798,A|=function(e,t){var n=e;return e||(n=t?16893:33204),(65535&n)<<16}(p.unixPermissions,E)):(j=20,A|=function(e){return 63&(e||0)}(p.dosPermissions)),d=D.getUTCHours(),d<<=6,d|=D.getUTCMinutes(),d<<=5,d|=D.getUTCSeconds()/2,f=D.getUTCFullYear()-1980,f<<=4,f|=D.getUTCMonth()+1,f<<=5,f|=D.getUTCDate(),x&&(w=r(1,1)+r(c(g),4)+_,C+=`up`+r(w.length,2)+w),S&&(T=r(1,1)+r(c(y),4)+b,C+=`uc`+r(T.length,2)+T);var M=``;return M+=`
\0`,M+=r(k,2),M+=m.magic,M+=r(d,2),M+=r(f,2),M+=r(O.crc32,4),M+=r(O.compressedSize,4),M+=r(O.uncompressedSize,4),M+=r(g.length,2),M+=r(C.length,2),{fileRecord:l.LOCAL_FILE_HEADER+M+g+C,dirRecord:l.CENTRAL_FILE_HEADER+r(j,2)+M+r(y.length,2)+`\0\0\0\0`+r(A,4)+r(i,4)+g+C+y}}var a=e(`../utils`),o=e(`../stream/GenericWorker`),s=e(`../utf8`),c=e(`../crc32`),l=e(`../signature`);function u(e,t,n,r){o.call(this,`ZipFileWorker`),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(u,o),u.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},u.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},u.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:function(e){return l.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},u.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var n=this.bytesWritten-e,i=function(e,t,n,i,o){var s=a.transformTo(`string`,o(i));return l.CENTRAL_DIRECTORY_END+`\0\0\0\0`+r(e,2)+r(e,2)+r(t,4)+r(n,4)+r(s.length,2)+s}(this.dirRecords.length,n,e,this.zipComment,this.encodeFileName);this.push({data:i,meta:{percent:100}})},u.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},u.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on(`error`,function(e){t.error(e)}),this},u.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},u.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var n=0;n<t.length;n++)try{t[n].error(e)}catch{}return!0},u.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=u},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,n){var r=e(`../compressions`),i=e(`./ZipFileWorker`);n.generateWorker=function(e,t,n){var a=new i(t.streamFiles,n,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,n){o++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw Error(n+` is not a valid compression method !`);return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},c=n.dir,l=n.date;n._compressWorker(i,s).withStreamInfo(`file`,{name:e,dir:c,date:l,comment:n.comment||``,unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,n){function r(){if(!(this instanceof r))return new r;if(arguments.length)throw Error(`The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.`);this.files=Object.create(null),this.comment=null,this.root=``,this.clone=function(){var e=new r;for(var t in this)typeof this[t]!=`function`&&(e[t]=this[t]);return e}}(r.prototype=e(`./object`)).loadAsync=e(`./load`),r.support=e(`./support`),r.defaults=e(`./defaults`),r.version=`3.10.1`,r.loadAsync=function(e,t){return new r().loadAsync(e,t)},r.external=e(`./external`),t.exports=r},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,n){var r=e(`./utils`),i=e(`./external`),a=e(`./utf8`),o=e(`./zipEntries`),s=e(`./stream/Crc32Probe`),c=e(`./nodejsUtils`);function l(e){return new i.Promise(function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on(`error`,function(e){n(e)}).on(`end`,function(){r.streamInfo.crc32===e.decompressed.crc32?t():n(Error(`Corrupted zip : CRC32 mismatch`))}).resume()})}t.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),c.isNode&&c.isStream(e)?i.Promise.reject(Error(`JSZip can't accept a stream when loading a zip file.`)):r.prepareContent(`the loaded zip file`,e,!0,t.optimizedBinaryString,t.base64).then(function(e){var n=new o(t);return n.load(e),n}).then(function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var a=0;a<r.length;a++)n.push(l(r[a]));return i.Promise.all(n)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],c=s.fileNameStr,l=r.resolve(s.fileNameStr);n.file(l,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(n.file(l).unsafeOriginalName=c)}return i.zipComment.length&&(n.comment=i.zipComment),n})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,n){var r=e(`../utils`),i=e(`../stream/GenericWorker`);function a(e,t){i.call(this,`Nodejs stream input adapter for `+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on(`data`,function(e){t.push({data:e,meta:{percent:0}})}).on(`error`,function(e){t.isPaused?this.generatedError=e:t.error(e)}).on(`end`,function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,n){var r=e(`readable-stream`).Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on(`data`,function(e,t){i.push(e)||i._helper.pause(),n&&n(t)}).on(`error`,function(e){i.emit(`error`,e)}).on(`end`,function(){i.push(null)})}e(`../utils`).inherits(i,r),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,n){t.exports={isNode:typeof Buffer<`u`,newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if(typeof e==`number`)throw Error(`The "data" argument must not be a number`);return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on==`function`&&typeof e.pause==`function`&&typeof e.resume==`function`}}},{}],15:[function(e,t,n){function r(e,t,n){var r,i=a.getTypeOf(t),s=a.extend(n||{},c);s.date=s.date||new Date,s.compression!==null&&(s.compression=s.compression.toUpperCase()),typeof s.unixPermissions==`string`&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=h(e)),s.createFolders&&(r=m(e))&&g.call(this,r,!0);var d=i===`string`&&!1===s.binary&&!1===s.base64;n&&n.binary!==void 0||(s.binary=!d),(t instanceof l&&t.uncompressedSize===0||s.dir||!t||t.length===0)&&(s.base64=!1,s.binary=!0,t=``,s.compression=`STORE`,i=`string`);var _=null;_=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new p(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new u(e,_,s);this.files[e]=v}var i=e(`./utf8`),a=e(`./utils`),o=e(`./stream/GenericWorker`),s=e(`./stream/StreamHelper`),c=e(`./defaults`),l=e(`./compressedObject`),u=e(`./zipObject`),d=e(`./generate`),f=e(`./nodejsUtils`),p=e(`./nodejs/NodejsStreamInputAdapter`),m=function(e){e.slice(-1)===`/`&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf(`/`);return 0<t?e.substring(0,t):``},h=function(e){return e.slice(-1)!==`/`&&(e+=`/`),e},g=function(e,t){return t=t===void 0?c.createFolders:t,e=h(e),this.files[e]||r.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function _(e){return Object.prototype.toString.call(e)===`[object RegExp]`}t.exports={load:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},forEach:function(e){var t,n,r;for(t in this.files)r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r)},filter:function(e){var t=[];return this.forEach(function(n,r){e(n,r)&&t.push(r)}),t},file:function(e,t,n){if(arguments.length!==1)return e=this.root+e,r.call(this,e,t,n),this;if(_(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(_(e))return this.filter(function(t,n){return n.dir&&e.test(t)});var t=this.root+e,n=g.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||=(e.slice(-1)!==`/`&&(e+=`/`),this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter(function(t,n){return n.name.slice(0,e.length)===e}),r=0;r<n.length;r++)delete this.files[n[r].name];return this},generate:function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},generateInternalStream:function(e){var t,n={};try{if((n=a.extend(e||{},{streamFiles:!1,compression:`STORE`,compressionOptions:null,type:``,platform:`DOS`,comment:null,mimeType:`application/zip`,encodeFileName:i.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),n.type===`binarystring`&&(n.type=`string`),!n.type)throw Error(`No output type specified.`);a.checkSupport(n.type),n.platform!==`darwin`&&n.platform!==`freebsd`&&n.platform!==`linux`&&n.platform!==`sunos`||(n.platform=`UNIX`),n.platform===`win32`&&(n.platform=`DOS`);var r=n.comment||this.comment||``;t=d.generateWorker(this,n,r)}catch(e){(t=new o(`error`)).error(e)}return new s(t,n.type||`string`,n.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e||={}).type||(e.type=`nodebuffer`),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,n){t.exports=e(`stream`)},{stream:void 0}],17:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===n&&this.data[a+2]===r&&this.data[a+3]===i)return a-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&n===a[1]&&r===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,n){var r=e(`../utils`);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error(`End of data reached (data length = `+this.length+`, asked index = `+e+`). Corrupted zip ?`)},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,n=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo(`string`,this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,n){var r=e(`./Uint8ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,n){var r=e(`./DataReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,n){var r=e(`./ArrayReader`);function i(e){r.call(this,e)}e(`../utils`).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),e===0)return new Uint8Array;var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,n){var r=e(`../utils`),i=e(`../support`),a=e(`./ArrayReader`),o=e(`./StringReader`),s=e(`./NodeBufferReader`),c=e(`./Uint8ArrayReader`);t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),t!==`string`||i.uint8array?t===`nodebuffer`?new s(e):i.uint8array?new c(r.transformTo(`uint8array`,e)):new a(r.transformTo(`array`,e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,n){n.LOCAL_FILE_HEADER=`PK`,n.CENTRAL_FILE_HEADER=`PK`,n.CENTRAL_DIRECTORY_END=`PK`,n.ZIP64_CENTRAL_DIRECTORY_LOCATOR=`PK\x07`,n.ZIP64_CENTRAL_DIRECTORY_END=`PK`,n.DATA_DESCRIPTOR=`PK\x07\b`},{}],24:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../utils`);function a(e){r.call(this,`ConvertWorker to `+e),this.destType=e}i.inherits(a,r),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,n){var r=e(`./GenericWorker`),i=e(`../crc32`);function a(){r.call(this,`Crc32Probe`),this.withStreamInfo(`crc32`,0)}e(`../utils`).inherits(a,r),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataLengthProbe for `+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,n){var r=e(`../utils`),i=e(`./GenericWorker`);function a(e){i.call(this,`DataWorker`);var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type=``,this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}r.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case`string`:e=this.data.substring(this.index,t);break;case`uint8array`:e=this.data.subarray(this.index,t);break;case`array`:case`nodebuffer`:e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,n){function r(e){this.name=e||`default`,this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit(`data`,e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit(`end`),this.cleanUp(),this.isFinished=!0}catch(e){this.emit(`error`,e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit(`error`,e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n<this._listeners[e].length;n++)this._listeners[e][n].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on(`data`,function(e){t.processChunk(e)}),e.on(`end`,function(){t.end()}),e.on(`error`,function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error(`The stream '`+this+`' has already been used.`);this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e=`Worker `+this.name;return this.previous?this.previous+` -> `+e:e}},t.exports=r},{}],29:[function(e,t,n){var r=e(`../utils`),i=e(`./ConvertWorker`),a=e(`./GenericWorker`),o=e(`../base64`),s=e(`../support`),c=e(`../external`),l=null;if(s.nodestream)try{l=e(`../nodejs/NodejsStreamOutputAdapter`)}catch{}function u(e,t){return new c.Promise(function(n,i){var a=[],s=e._internalType,c=e._outputType,l=e._mimeType;e.on(`data`,function(e,n){a.push(e),t&&t(n)}).on(`error`,function(e){a=[],i(e)}).on(`end`,function(){try{n(function(e,t,n){switch(e){case`blob`:return r.newBlob(r.transformTo(`arraybuffer`,t),n);case`base64`:return o.encode(t);default:return r.transformTo(e,t)}}(c,function(e,t){var n,r=0,i=null,a=0;for(n=0;n<t.length;n++)a+=t[n].length;switch(e){case`string`:return t.join(``);case`array`:return Array.prototype.concat.apply([],t);case`uint8array`:for(i=new Uint8Array(a),n=0;n<t.length;n++)i.set(t[n],r),r+=t[n].length;return i;case`nodebuffer`:return Buffer.concat(t);default:throw Error(`concat : unsupported type '`+e+`'`)}}(s,a),l))}catch(e){i(e)}a=[]}).resume()})}function d(e,t,n){var o=t;switch(t){case`blob`:case`arraybuffer`:o=`uint8array`;break;case`base64`:o=`string`}try{this._internalType=o,this._outputType=t,this._mimeType=n,r.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new a(`error`),this._worker.error(e)}}d.prototype={accumulate:function(e){return u(this,e)},on:function(e,t){var n=this;return e===`data`?this._worker.on(e,function(e){t.call(n,e.data,e.meta)}):this._worker.on(e,function(){r.delay(t,arguments,n)}),this},resume:function(){return r.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(r.checkSupport(`nodestream`),this._outputType!==`nodebuffer`)throw Error(this._outputType+` is not supported by this method`);return new l(this,{objectMode:this._outputType!==`nodebuffer`},e)}},t.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,n.nodebuffer=typeof Buffer<`u`,n.uint8array=typeof Uint8Array<`u`,typeof ArrayBuffer>`u`)n.blob=!1;else{var r=new ArrayBuffer(0);try{n.blob=new Blob([r],{type:`application/zip`}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(r),n.blob=i.getBlob(`application/zip`).size===0}catch{n.blob=!1}}}try{n.nodestream=!!e(`readable-stream`).Readable}catch{n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,n){for(var r=e(`./utils`),i=e(`./support`),a=e(`./nodejsUtils`),o=e(`./stream/GenericWorker`),s=Array(256),c=0;c<256;c++)s[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;s[254]=s[254]=1;function l(){o.call(this,`utf-8 decode`),this.leftOver=null}function u(){o.call(this,`utf-8 encode`)}n.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,`utf-8`):function(e){var t,n,r,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=i.uint8array?new Uint8Array(c):Array(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(r=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(r-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t}(e)},n.utf8decode=function(e){return i.nodebuffer?r.transformTo(`nodebuffer`,e).toString(`utf-8`):function(e){var t,n,i,a,o=e.length,c=Array(2*o);for(t=n=0;t<o;)if((i=e[t++])<128)c[n++]=i;else if(4<(a=s[i]))c[n++]=65533,t+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?c[n++]=65533:i<65536?c[n++]=i:(i-=65536,c[n++]=55296|i>>10&1023,c[n++]=56320|1023&i)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),r.applyFromCharCode(c)}(e=r.transformTo(i.uint8array?`uint8array`:`array`,e))},r.inherits(l,o),l.prototype.processChunk=function(e){var t=r.transformTo(i.uint8array?`uint8array`:`array`,e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+s[e[n]]>t?n:t}(t),c=t;o!==t.length&&(i.uint8array?(c=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(c=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:n.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=l,r.inherits(u,o),u.prototype.processChunk=function(e){this.push({data:n.utf8encode(e.data),meta:e.meta})},n.Utf8EncodeWorker=u},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,n){var r=e(`./support`),i=e(`./base64`),a=e(`./nodejsUtils`),o=e(`./external`);function s(e){return e}function c(e,t){for(var n=0;n<e.length;++n)t[n]=255&e.charCodeAt(n);return t}e(`setimmediate`),n.newBlob=function(e,t){n.checkSupport(`blob`);try{return new Blob([e],{type:t})}catch{try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch{throw Error(`Bug : can't construct the Blob.`)}}};var l={stringifyByChunk:function(e,t,n){var r=[],i=0,a=e.length;if(a<=n)return String.fromCharCode.apply(null,e);for(;i<a;)t===`array`||t===`nodebuffer`?r.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+n,a)))):r.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+n,a)))),i+=n;return r.join(``)},stringifyByChar:function(e){for(var t=``,n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return t},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}}()}};function u(e){var t=65536,r=n.getTypeOf(e),i=!0;if(r===`uint8array`?i=l.applyCanBeUsed.uint8array:r===`nodebuffer`&&(i=l.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return l.stringifyByChunk(e,r,t)}catch{t=Math.floor(t/2)}return l.stringifyByChar(e)}function d(e,t){for(var n=0;n<e.length;n++)t[n]=e[n];return t}n.applyFromCharCode=u;var f={};f.string={string:s,array:function(e){return c(e,Array(e.length))},arraybuffer:function(e){return f.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,a.allocBuffer(e.length))}},f.array={string:u,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},f.arraybuffer={string:function(e){return u(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},f.uint8array={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},f.nodebuffer={string:u,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return f.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},n.transformTo=function(e,t){return t||=``,e?(n.checkSupport(e),f[n.getTypeOf(t)][e](t)):t},n.resolve=function(e){for(var t=e.split(`/`),n=[],r=0;r<t.length;r++){var i=t[r];i===`.`||i===``&&r!==0&&r!==t.length-1||(i===`..`?n.pop():n.push(i))}return n.join(`/`)},n.getTypeOf=function(e){return typeof e==`string`?`string`:Object.prototype.toString.call(e)===`[object Array]`?`array`:r.nodebuffer&&a.isBuffer(e)?`nodebuffer`:r.uint8array&&e instanceof Uint8Array?`uint8array`:r.arraybuffer&&e instanceof ArrayBuffer?`arraybuffer`:void 0},n.checkSupport=function(e){if(!r[e.toLowerCase()])throw Error(e+` is not supported by this platform`)},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,n,r=``;for(n=0;n<(e||``).length;n++)r+=`\\x`+((t=e.charCodeAt(n))<16?`0`:``)+t.toString(16).toUpperCase();return r},n.delay=function(e,t,n){setImmediate(function(){e.apply(n||null,t||[])})},n.inherits=function(e,t){function n(){}n.prototype=t.prototype,e.prototype=new n},n.extend=function(){var e,t,n={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&n[t]===void 0&&(n[t]=arguments[e][t]);return n},n.prepareContent=function(e,t,a,s,l){return o.Promise.resolve(t).then(function(e){return r.blob&&(e instanceof Blob||[`[object File]`,`[object Blob]`].indexOf(Object.prototype.toString.call(e))!==-1)&&typeof FileReader<`u`?new o.Promise(function(t,n){var r=new FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e.target.error)},r.readAsArrayBuffer(e)}):e}).then(function(t){var u=n.getTypeOf(t);return u?(u===`arraybuffer`?t=n.transformTo(`uint8array`,t):u===`string`&&(l?t=i.decode(t):a&&!0!==s&&(t=function(e){return c(e,r.uint8array?new Uint8Array(e.length):Array(e.length))}(t))),t):o.Promise.reject(Error(`Can't read the data of '`+e+`'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?`))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./signature`),o=e(`./zipEntry`),s=e(`./support`);function c(e){this.files=[],this.loadOptions=e}c.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error(`Corrupted zip or bug: unexpected signature (`+i.pretty(t)+`, expected `+i.pretty(e)+`)`)}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?`uint8array`:`array`,n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;0<r;)e=this.reader.readInt(2),t=this.reader.readInt(4),n=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error(`Multi-volumes zip are not supported`)},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw Error(`Corrupted zip or bug: expected `+this.centralDirRecords+` records in central dir, got `+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?Error(`Corrupted zip: can't find end of central directory`):Error(`Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html`);this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error(`Corrupted zip: can't find the ZIP64 end of central directory locator`);if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error(`Corrupted zip: can't find the ZIP64 end of central directory`);this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var r=t-n;if(0<r)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw Error(`Corrupted zip: missing `+Math.abs(r)+` bytes.`)},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=c},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,n){var r=e(`./reader/readerFor`),i=e(`./utils`),a=e(`./compressedObject`),o=e(`./crc32`),s=e(`./utf8`),c=e(`./compressions`),l=e(`./support`);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),this.compressedSize===-1||this.uncompressedSize===-1)throw Error(`Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)`);if((t=function(e){for(var t in c)if(Object.prototype.hasOwnProperty.call(c,t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod))===null)throw Error(`Corrupted zip : compression `+i.pretty(this.compressionMethod)+` unknown (inner file : `+i.transformTo(`string`,this.fileName)+`)`);this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error(`Encrypted zip are not supported`);e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),e==0&&(this.dosPermissions=63&this.externalFileAttributes),e==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!==`/`||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||={};e.index+4<i;)t=e.readInt(2),n=e.readInt(2),r=e.readData(n),this.extraFields[t]={id:t,length:n,value:r};e.setIndex(i)},handleUTF8:function(){var e=l.uint8array?`uint8array`:`array`;if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(t!==null)this.fileNameStr=t;else{var n=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var r=this.findExtraFieldUnicodeComment();if(r!==null)this.fileCommentStr=r;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileName)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=r(e.value);return t.readInt(1)===1&&o(this.fileComment)===t.readInt(4)?s.utf8decode(t.readData(e.length-5)):null}return null}},t.exports=u},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,n){function r(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var i=e(`./stream/StreamHelper`),a=e(`./stream/DataWorker`),o=e(`./utf8`),s=e(`./compressedObject`),c=e(`./stream/GenericWorker`);r.prototype={internalStream:function(e){var t=null,n=`string`;try{if(!e)throw Error(`No output type specified.`);var r=(n=e.toLowerCase())===`string`||n===`text`;n!==`binarystring`&&n!==`text`||(n=`string`),t=this._decompressWorker();var a=!this._dataBinary;a&&!r&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&r&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new c(`error`)).error(e)}return new i(t,n,``)},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||`nodebuffer`).toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof c?this._data:new a(this._data)}};for(var l=[`asText`,`asBinary`,`asNodeBuffer`,`asUint8Array`,`asArrayBuffer`],u=function(){throw Error(`This method has been removed in JSZip 3.0, please check the upgrade guide.`)},d=0;d<l.length;d++)r.prototype[l[d]]=u;t.exports=r},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,n){(function(e){var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(u),s=e.document.createTextNode(``);o.observe(s,{characterData:!0}),n=function(){s.data=a=++a%2}}else if(e.setImmediate||e.MessageChannel===void 0)n=`document`in e&&`onreadystatechange`in e.document.createElement(`script`)?function(){var t=e.document.createElement(`script`);t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var c=new e.MessageChannel;c.port1.onmessage=u,n=function(){c.port2.postMessage(0)}}var l=[];function u(){var e,t;r=!0;for(var n=l.length;n;){for(t=l,l=[],e=-1;++e<n;)t[e]();n=l.length}r=!1}t.exports=function(e){l.push(e)!==1||r||n()}}).call(this,bQ===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:bQ)},{}],37:[function(e,t,n){var r=e(`immediate`);function i(){}var a={},o=[`REJECTED`],s=[`FULFILLED`],c=[`PENDING`];function l(e){if(typeof e!=`function`)throw TypeError(`resolver must be a function`);this.state=c,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function u(e,t,n){this.promise=e,typeof t==`function`&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),typeof n==`function`&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r(function(){var r;try{r=t(n)}catch(t){return a.reject(e,t)}r===e?a.reject(e,TypeError(`Cannot resolve promise with itself`)):a.resolve(e,r)})}function f(e){var t=e&&e.then;if(e&&(typeof e==`object`||typeof e==`function`)&&typeof t==`function`)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}var o=m(function(){t(i,r)});o.status===`error`&&r(o.value)}function m(e,t){var n={};try{n.value=e(t),n.status=`success`}catch(e){n.status=`error`,n.value=e}return n}(t.exports=l).prototype.finally=function(e){if(typeof e!=`function`)return this;var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})},l.prototype.catch=function(e){return this.then(null,e)},l.prototype.then=function(e,t){if(typeof e!=`function`&&this.state===s||typeof t!=`function`&&this.state===o)return this;var n=new this.constructor(i);return this.state===c?this.queue.push(new u(n,e,t)):d(n,this.state===s?e:t,this.outcome),n},u.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){a.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=m(f,t);if(n.status===`error`)return a.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},l.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},l.reject=function(e){var t=new this(i);return a.reject(t,e)},l.all=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=Array(n),s=0,c=-1,l=new this(i);++c<n;)u(e[c],c);return l;function u(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(l,o))},function(e){r||(r=!0,a.reject(l,e))})}},l.race=function(e){var t=this;if(Object.prototype.toString.call(e)!==`[object Array]`)return this.reject(TypeError(`must be an array`));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var o=-1,s=new this(i);++o<n;)c=e[o],t.resolve(c).then(function(e){r||(r=!0,a.resolve(s,e))},function(e){r||(r=!0,a.reject(s,e))});var c;return s}},{immediate:36}],38:[function(e,t,n){var r={};(0,e(`./lib/utils/common`).assign)(r,e(`./lib/deflate`),e(`./lib/inflate`),e(`./lib/zlib/constants`)),t.exports=r},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,n){var r=e(`./zlib/deflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/messages`),s=e(`./zlib/zstream`),c=Object.prototype.toString,l=0,u=-1,d=0,f=8;function p(e){if(!(this instanceof p))return new p(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:``},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==l)throw Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var m;if(m=typeof t.dictionary==`string`?a.string2buf(t.dictionary):c.call(t.dictionary)===`[object ArrayBuffer]`?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,m))!==l)throw Error(o[n]);this._dict_set=!0}}function m(e,t){var n=new p(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}p.prototype.push=function(e,t){var n,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,s.input=typeof e==`string`?a.string2buf(e):c.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,s.next_in=0,s.avail_in=s.input.length;do{if(s.avail_out===0&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),(n=r.deflate(s,o))!==1&&n!==l)return this.onEnd(n),!(this.ended=!0);s.avail_out!==0&&(s.avail_in!==0||o!==4&&o!==2)||(this.options.to===`string`?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||s.avail_out===0)&&n!==1);return o===4?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===l):o!==2||(this.onEnd(l),!(s.avail_out=0))},p.prototype.onData=function(e){this.chunks.push(e)},p.prototype.onEnd=function(e){e===l&&(this.result=this.options.to===`string`?this.chunks.join(``):i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=p,n.deflate=m,n.deflateRaw=function(e,t){return(t||={}).raw=!0,m(e,t)},n.gzip=function(e,t){return(t||={}).gzip=!0,m(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,n){var r=e(`./zlib/inflate`),i=e(`./utils/common`),a=e(`./utils/strings`),o=e(`./zlib/constants`),s=e(`./zlib/messages`),c=e(`./zlib/zstream`),l=e(`./zlib/gzheader`),u=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:``},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&!(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg=``,this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==o.Z_OK)throw Error(s[n]);this.header=new l,r.inflateGetHeader(this.strm,this.header)}function f(e,t){var n=new d(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(e,t){var n,s,c,l,d,f,p=this.strm,m=this.options.chunkSize,h=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,p.input=typeof e==`string`?a.binstring2buf(e):u.call(e)===`[object ArrayBuffer]`?new Uint8Array(e):e,p.next_in=0,p.avail_in=p.input.length;do{if(p.avail_out===0&&(p.output=new i.Buf8(m),p.next_out=0,p.avail_out=m),(n=r.inflate(p,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&h&&(f=typeof h==`string`?a.string2buf(h):u.call(h)===`[object ArrayBuffer]`?new Uint8Array(h):h,n=r.inflateSetDictionary(this.strm,f)),n===o.Z_BUF_ERROR&&!0===g&&(n=o.Z_OK,g=!1),n!==o.Z_STREAM_END&&n!==o.Z_OK)return this.onEnd(n),!(this.ended=!0);p.next_out&&(p.avail_out!==0&&n!==o.Z_STREAM_END&&(p.avail_in!==0||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||(this.options.to===`string`?(c=a.utf8border(p.output,p.next_out),l=p.next_out-c,d=a.buf2string(p.output,c),p.next_out=l,p.avail_out=m-l,l&&i.arraySet(p.output,p.output,c,l,0),this.onData(d)):this.onData(i.shrinkBuf(p.output,p.next_out)))),p.avail_in===0&&p.avail_out===0&&(g=!0)}while((0<p.avail_in||p.avail_out===0)&&n!==o.Z_STREAM_END);return n===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(p.avail_out=0))},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&(this.result=this.options.to===`string`?this.chunks.join(``):i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Inflate=d,n.inflate=f,n.inflateRaw=function(e,t){return(t||={}).raw=!0,f(e,t)},n.ungzip=f},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,n){var r=typeof Uint8Array<`u`&&typeof Uint16Array<`u`&&typeof Int32Array<`u`;n.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if(typeof n!=`object`)throw TypeError(n+`must be non-object`);for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){var t,n,r,i,a,o;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(o=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,n,r,i){for(var a=0;a<r;a++)e[i+a]=t[n+a]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)},{}],42:[function(e,t,n){var r=e(`./common`),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new r.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function c(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n=``,o=0;o<t;o++)n+=String.fromCharCode(e[o]);return n}o[254]=o[254]=1,n.string2buf=function(e){var t,n,i,a,o,s=e.length,c=0;for(a=0;a<s;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(c),a=o=0;o<c;a++)(64512&(n=e.charCodeAt(a)))==55296&&a+1<s&&(64512&(i=e.charCodeAt(a+1)))==56320&&(n=65536+(n-55296<<10)+(i-56320),a++),n<128?t[o++]=n:(n<2048?t[o++]=192|n>>>6:(n<65536?t[o++]=224|n>>>12:(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63),t[o++]=128|n>>>6&63),t[o++]=128|63&n);return t},n.buf2binstring=function(e){return c(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,a,s=t||e.length,l=Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)l[r++]=i;else if(4<(a=o[i]))l[r++]=65533,n+=a-1;else{for(i&=a===2?31:a===3?15:7;1<a&&n<s;)i=i<<6|63&e[n++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return c(l,r)},n.utf8border=function(e,t){var n;for((t||=e.length)>e.length&&(t=e.length),n=t-1;0<=n&&(192&e[n])==128;)n--;return n<0||n===0?t:n+o[e[n]]>t?n:t}},{"./common":41}],43:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;n!==0;){for(n-=o=2e3<n?2e3:n;a=a+(i=i+t[r++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,n){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var a=r,o=i+n;e^=-1;for(var s=i;s<o;s++)e=e>>>8^a[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,n){var r,i=e(`../utils/common`),a=e(`./trees`),o=e(`./adler32`),s=e(`./crc32`),c=e(`./messages`),l=0,u=4,d=0,f=-2,p=-1,m=4,h=2,g=8,_=9,v=286,y=30,b=19,x=2*v+1,S=15,C=3,w=258,T=w+C+1,E=42,D=113,O=1,k=2,A=3,j=4;function M(e,t){return e.msg=c[t],t}function N(e){return(e<<1)-(4<e?9:0)}function P(e){for(var t=e.length;0<=--t;)e[t]=0}function F(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function I(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,F(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function R(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ee(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-T?e.strstart-(e.w_size-T):0,l=e.window,u=e.w_mask,d=e.prev,f=e.strstart+w,p=l[a+o-1],m=l[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(l[(n=t)+o]===m&&l[n+o-1]===p&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do;while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<f);if(r=w-(f-a),a=f-w,o<r){if(e.match_start=t,s<=(o=r))break;p=l[a+o-1],m=l[a+o]}}while((t=d[t&u])>c&&--i!=0);return o<=e.lookahead?o:e.lookahead}function te(e){var t,n,r,a,c,l,u,d,f,p,m=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=m+(m-T)){for(i.arraySet(e.window,e.window,m,m,0),e.match_start-=m,e.strstart-=m,e.block_start-=m,t=n=e.hash_size;r=e.head[--t],e.head[t]=m<=r?r-m:0,--n;);for(t=n=m;r=e.prev[--t],e.prev[t]=m<=r?r-m:0,--n;);a+=m}if(e.strm.avail_in===0)break;if(l=e.strm,u=e.window,d=e.strstart+e.lookahead,f=a,p=void 0,p=l.avail_in,f<p&&(p=f),n=p===0?0:(l.avail_in-=p,i.arraySet(u,l.input,l.next_in,p,d),l.state.wrap===1?l.adler=o(l.adler,u,p,d):l.state.wrap===2&&(l.adler=s(l.adler,u,p,d)),l.next_in+=p,l.total_in+=p,p),e.lookahead+=n,e.lookahead+e.insert>=C)for(c=e.strstart-e.insert,e.ins_h=e.window[c],e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[c+C-1])&e.hash_mask,e.prev[c&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=c,c++,e.insert--,!(e.lookahead+e.insert<C)););}while(e.lookahead<T&&e.strm.avail_in!==0)}function ne(e,t){for(var n,r;;){if(e.lookahead<T){if(te(e),e.lookahead<T&&t===l)return O;if(e.lookahead===0)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-T&&(e.match_length=ee(e,n)),e.match_length>=C){if(r=a._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,--e.match_length!=0;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask}else r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}function re(e,t){for(var n,r,i;;){if(e.lookahead<T){if(te(e),e.lookahead<T&&t===l)return O;if(e.lookahead===0)break}if(n=0,e.lookahead>=C&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=C-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-T&&(e.match_length=ee(e,n),e.match_length<=5&&(e.strategy===1||e.match_length===C&&4096<e.strstart-e.match_start)&&(e.match_length=C-1)),e.prev_length>=C&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-C,r=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+C-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),--e.prev_length!=0;);if(e.match_available=0,e.match_length=C-1,e.strstart++,r&&(I(e,!1),e.strm.avail_out===0))return O}else if(e.match_available){if((r=a._tr_tally(e,0,e.window[e.strstart-1]))&&I(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return O}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&=(r=a._tr_tally(e,0,e.window[e.strstart-1]),0),e.insert=e.strstart<C-1?e.strstart:C-1,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}function ie(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function ae(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*x),this.dyn_dtree=new i.Buf16(2*(2*y+1)),this.bl_tree=new i.Buf16(2*(2*b+1)),P(this.dyn_ltree),P(this.dyn_dtree),P(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(S+1),this.heap=new i.Buf16(2*v+1),P(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*v+1),P(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function oe(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=h,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?E:D,e.adler=t.wrap===2?0:1,t.last_flush=l,a._tr_init(t),d):M(e,f)}function se(e){var t=oe(e);return t===d&&function(e){e.window_size=2*e.w_size,P(e.head),e.max_lazy_match=r[e.level].max_lazy,e.good_match=r[e.level].good_length,e.nice_match=r[e.level].nice_length,e.max_chain_length=r[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=C-1,e.match_available=0,e.ins_h=0}(e.state),t}function ce(e,t,n,r,a,o){if(!e)return f;var s=1;if(t===p&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),a<1||_<a||n!==g||r<8||15<r||t<0||9<t||o<0||m<o)return M(e,f);r===8&&(r=9);var c=new ae;return(e.state=c).strm=e,c.wrap=s,c.gzhead=null,c.w_bits=r,c.w_size=1<<c.w_bits,c.w_mask=c.w_size-1,c.hash_bits=a+7,c.hash_size=1<<c.hash_bits,c.hash_mask=c.hash_size-1,c.hash_shift=~~((c.hash_bits+C-1)/C),c.window=new i.Buf8(2*c.w_size),c.head=new i.Buf16(c.hash_size),c.prev=new i.Buf16(c.w_size),c.lit_bufsize=1<<a+6,c.pending_buf_size=4*c.lit_bufsize,c.pending_buf=new i.Buf8(c.pending_buf_size),c.d_buf=1*c.lit_bufsize,c.l_buf=3*c.lit_bufsize,c.level=t,c.strategy=o,c.method=n,se(e)}r=[new ie(0,0,0,0,function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(te(e),e.lookahead===0&&t===l)return O;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,I(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-T&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(I(e,!0),e.strm.avail_out===0?A:j):(e.strstart>e.block_start&&(I(e,!1),e.strm.avail_out),O)}),new ie(4,4,8,4,ne),new ie(4,5,16,8,ne),new ie(4,6,32,32,ne),new ie(4,4,16,16,re),new ie(8,16,32,32,re),new ie(8,16,128,128,re),new ie(8,32,128,256,re),new ie(32,128,258,1024,re),new ie(32,258,258,4096,re)],n.deflateInit=function(e,t){return ce(e,t,g,15,8,0)},n.deflateInit2=ce,n.deflateReset=se,n.deflateResetKeep=oe,n.deflateSetHeader=function(e,t){return e&&e.state&&e.state.wrap===2?(e.state.gzhead=t,d):f},n.deflate=function(e,t){var n,i,o,c;if(!e||!e.state||5<t||t<0)return e?M(e,f):f;if(i=e.state,!e.output||!e.input&&e.avail_in!==0||i.status===666&&t!==u)return M(e,e.avail_out===0?-5:f);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===E){if(i.wrap===2)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(i,+!!i.gzhead.text+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),L(i,255&i.gzhead.time),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),L(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,255&i.gzhead.extra.length),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,i.level===9?2:2<=i.strategy||i.level<2?4:0),L(i,3),i.status=D);else{var p=g+(i.w_bits-8<<4)<<8;p|=(2<=i.strategy||i.level<2?0:i.level<6?1:i.level===6?2:3)<<6,i.strstart!==0&&(p|=32),p+=31-p%31,i.status=D,R(i,p),i.strstart!==0&&(R(i,e.adler>>>16),R(i,65535&e.adler)),e.adler=1}}if(i.status===69){if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending!==i.pending_buf_size));)L(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(i.status===73){if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,L(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.gzindex=0,i.status=91)}else i.status=91}if(i.status===91){if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),F(e),o=i.pending,i.pending===i.pending_buf_size)){c=1;break}c=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,L(i,c)}while(c!==0);i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),c===0&&(i.status=103)}else i.status=103}if(i.status===103&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&F(e),i.pending+2<=i.pending_buf_size&&(L(i,255&e.adler),L(i,e.adler>>8&255),e.adler=0,i.status=D)):i.status=D),i.pending!==0){if(F(e),e.avail_out===0)return i.last_flush=-1,d}else if(e.avail_in===0&&N(t)<=N(n)&&t!==u)return M(e,-5);if(i.status===666&&e.avail_in!==0)return M(e,-5);if(e.avail_in!==0||i.lookahead!==0||t!==l&&i.status!==666){var m=i.strategy===2?function(e,t){for(var n;;){if(e.lookahead===0&&(te(e),e.lookahead===0)){if(t===l)return O;break}if(e.match_length=0,n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}(i,t):i.strategy===3?function(e,t){for(var n,r,i,o,s=e.window;;){if(e.lookahead<=w){if(te(e),e.lookahead<=w&&t===l)return O;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=C&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){o=e.strstart+w;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);e.match_length=w-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(n=a._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(I(e,!1),e.strm.avail_out===0))return O}return e.insert=0,t===u?(I(e,!0),e.strm.avail_out===0?A:j):e.last_lit&&(I(e,!1),e.strm.avail_out===0)?O:k}(i,t):r[i.level].func(i,t);if(m!==A&&m!==j||(i.status=666),m===O||m===A)return e.avail_out===0&&(i.last_flush=-1),d;if(m===k&&(t===1?a._tr_align(i):t!==5&&(a._tr_stored_block(i,0,0,!1),t===3&&(P(i.head),i.lookahead===0&&(i.strstart=0,i.block_start=0,i.insert=0))),F(e),e.avail_out===0))return i.last_flush=-1,d}return t===u?i.wrap<=0?1:(i.wrap===2?(L(i,255&e.adler),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,255&e.total_in),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(R(i,e.adler>>>16),R(i,65535&e.adler)),F(e),0<i.wrap&&(i.wrap=-i.wrap),i.pending===0?1:d):d},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==E&&t!==69&&t!==73&&t!==91&&t!==103&&t!==D&&t!==666?M(e,f):(e.state=null,t===D?M(e,-3):d):f},n.deflateSetDictionary=function(e,t){var n,r,a,s,c,l,u,p,m=t.length;if(!e||!e.state||(s=(n=e.state).wrap)===2||s===1&&n.status!==E||n.lookahead)return f;for(s===1&&(e.adler=o(e.adler,t,m,0)),n.wrap=0,m>=n.w_size&&(s===0&&(P(n.head),n.strstart=0,n.block_start=0,n.insert=0),p=new i.Buf8(n.w_size),i.arraySet(p,t,m-n.w_size,n.w_size,0),t=p,m=n.w_size),c=e.avail_in,l=e.next_in,u=e.input,e.avail_in=m,e.next_in=0,e.input=t,te(n);n.lookahead>=C;){for(r=n.strstart,a=n.lookahead-(C-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+C-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--a;);n.strstart=r,n.lookahead=C-1,te(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=C-1,n.match_available=0,e.next_in=l,e.input=u,e.avail_in=c,n.wrap=s,d},n.deflateInfo=`pako deflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,n){t.exports=function(){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}},{}],48:[function(e,t,n){t.exports=function(e,t){var n=e.state,r=e.next_in,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=e.input,E;i=r+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),c=n.dmax,l=n.wsize,u=n.whave,d=n.wnext,f=n.window,p=n.hold,m=n.bits,h=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;e:do{m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=h[p&_];t:for(;;){if(p>>>=b=y>>>24,m-=b,(b=y>>>16&255)==0)E[a++]=65535&y;else{if(!(16&b)){if(!(64&b)){y=h[(65535&y)+(p&(1<<b)-1)];continue t}if(32&b){n.mode=12;break e}e.msg=`invalid literal/length code`,n.mode=30;break e}x=65535&y,(b&=15)&&(m<b&&(p+=T[r++]<<m,m+=8),x+=p&(1<<b)-1,p>>>=b,m-=b),m<15&&(p+=T[r++]<<m,m+=8,p+=T[r++]<<m,m+=8),y=g[p&v];r:for(;;){if(p>>>=b=y>>>24,m-=b,!(16&(b=y>>>16&255))){if(!(64&b)){y=g[(65535&y)+(p&(1<<b)-1)];continue r}e.msg=`invalid distance code`,n.mode=30;break e}if(S=65535&y,m<(b&=15)&&(p+=T[r++]<<m,(m+=8)<b&&(p+=T[r++]<<m,m+=8)),c<(S+=p&(1<<b)-1)){e.msg=`invalid distance too far back`,n.mode=30;break e}if(p>>>=b,m-=b,(b=a-o)<S){if(u<(b=S-b)&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break e}if(w=f,(C=0)===d){if(C+=l-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}}else if(d<b){if(C+=l+d-b,(b-=d)<x){for(x-=b;E[a++]=f[C++],--b;);if(C=0,d<x){for(x-=b=d;E[a++]=f[C++],--b;);C=a-S,w=E}}}else if(C+=d-b,b<x){for(x-=b;E[a++]=f[C++],--b;);C=a-S,w=E}for(;2<x;)E[a++]=w[C++],E[a++]=w[C++],E[a++]=w[C++],x-=3;x&&(E[a++]=w[C++],1<x&&(E[a++]=w[C++]))}else{for(C=a-S;E[a++]=E[C++],E[a++]=E[C++],E[a++]=E[C++],2<(x-=3););x&&(E[a++]=E[C++],1<x&&(E[a++]=E[C++]))}break}}break}}while(r<i&&a<s);r-=x=m>>3,p&=(1<<(m-=x<<3))-1,e.next_in=r,e.next_out=a,e.avail_in=r<i?i-r+5:5-(r-i),e.avail_out=a<s?s-a+257:257-(a-s),n.hold=p,n.bits=m}},{}],49:[function(e,t,n){var r=e(`../utils/common`),i=e(`./adler32`),a=e(`./crc32`),o=e(`./inffast`),s=e(`./inftrees`),c=1,l=2,u=0,d=-2,f=1,p=852,m=592;function h(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){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 r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function _(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg=``,t.wrap&&(e.adler=1&t.wrap),t.mode=f,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(p),t.distcode=t.distdyn=new r.Buf32(m),t.sane=1,t.back=-1,u):d}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,_(e)):d}function y(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?d:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,v(e))):d}function b(e,t){var n,r;return e?(r=new g,(e.state=r).window=null,(n=y(e,t))!==u&&(e.state=null),n):d}var x,S,C=!0;function w(e){if(C){var t;for(x=new r.Buf32(512),S=new r.Buf32(32),t=0;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(s(c,e.lens,0,288,x,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(l,e.lens,0,32,S,0,e.work,{bits:5}),C=!1}e.lencode=x,e.lenbits=9,e.distcode=S,e.distbits=5}function T(e,t,n,i){var a,o=e.state;return o.window===null&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new r.Buf8(o.wsize)),i>=o.wsize?(r.arraySet(o.window,t,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),r.arraySet(o.window,t,n-i,a,o.wnext),(i-=a)?(r.arraySet(o.window,t,n-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}n.inflateReset=v,n.inflateReset2=y,n.inflateResetKeep=_,n.inflateInit=function(e){return b(e,15)},n.inflateInit2=b,n.inflate=function(e,t){var n,p,m,g,_,v,y,b,x,S,C,E,D,O,k,A,j,M,N,P,F,I,L,R,ee=0,te=new r.Buf8(4),ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&e.avail_in!==0)return d;(n=e.state).mode===12&&(n.mode=13),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,S=v,C=y,I=u;e:for(;;)switch(n.mode){case f:if(n.wrap===0){n.mode=13;break}for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(2&n.wrap&&b===35615){te[n.check=0]=255&b,te[1]=b>>>8&255,n.check=a(n.check,te,2,0),x=b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&b)<<8)+(b>>8))%31){e.msg=`incorrect header check`,n.mode=30;break}if((15&b)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(x-=4,F=8+(15&(b>>>=4)),n.wbits===0)n.wbits=F;else if(F>n.wbits){e.msg=`invalid window size`,n.mode=30;break}n.dmax=1<<F,e.adler=n.check=1,n.mode=512&b?10:12,x=b=0;break;case 2:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(n.flags=b,(255&n.flags)!=8){e.msg=`unknown compression method`,n.mode=30;break}if(57344&n.flags){e.msg=`unknown header flags set`,n.mode=30;break}n.head&&(n.head.text=b>>8&1),512&n.flags&&(te[0]=255&b,te[1]=b>>>8&255,n.check=a(n.check,te,2,0)),x=b=0,n.mode=3;case 3:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.head&&(n.head.time=b),512&n.flags&&(te[0]=255&b,te[1]=b>>>8&255,te[2]=b>>>16&255,te[3]=b>>>24&255,n.check=a(n.check,te,4,0)),x=b=0,n.mode=4;case 4:for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.head&&(n.head.xflags=255&b,n.head.os=b>>8),512&n.flags&&(te[0]=255&b,te[1]=b>>>8&255,n.check=a(n.check,te,2,0)),x=b=0,n.mode=5;case 5:if(1024&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.length=b,n.head&&(n.head.extra_len=b),512&n.flags&&(te[0]=255&b,te[1]=b>>>8&255,n.check=a(n.check,te,2,0)),x=b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(v<(E=n.length)&&(E=v),E&&(n.head&&(F=n.head.extra_len-n.length,n.head.extra||(n.head.extra=Array(n.head.extra_len)),r.arraySet(n.head.extra,p,g,E,F)),512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,n.length-=E),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(v===0)break e;for(E=0;F=p[g+E++],n.head&&F&&n.length<65536&&(n.head.name+=String.fromCharCode(F)),F&&E<v;);if(512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,F)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(v===0)break e;for(E=0;F=p[g+E++],n.head&&F&&n.length<65536&&(n.head.comment+=String.fromCharCode(F)),F&&E<v;);if(512&n.flags&&(n.check=a(n.check,p,E,g)),v-=E,g+=E,F)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;x<16;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b!==(65535&n.check)){e.msg=`header crc mismatch`,n.mode=30;break}x=b=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}e.adler=n.check=h(b),x=b=0,n.mode=11;case 11:if(n.havedict===0)return e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,2;e.adler=n.check=1,n.mode=12;case 12:if(t===5||t===6)break e;case 13:if(n.last){b>>>=7&x,x-=7&x,n.mode=27;break}for(;x<3;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}switch(n.last=1&b,--x,3&(b>>>=1)){case 0:n.mode=14;break;case 1:if(w(n),n.mode=20,t!==6)break;b>>>=2,x-=2;break e;case 2:n.mode=17;break;case 3:e.msg=`invalid block type`,n.mode=30}b>>>=2,x-=2;break;case 14:for(b>>>=7&x,x-=7&x;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if((65535&b)!=(b>>>16^65535)){e.msg=`invalid stored block lengths`,n.mode=30;break}if(n.length=65535&b,x=b=0,n.mode=15,t===6)break e;case 15:n.mode=16;case 16:if(E=n.length){if(v<E&&(E=v),y<E&&(E=y),E===0)break e;r.arraySet(m,p,g,E,_),v-=E,g+=E,y-=E,_+=E,n.length-=E;break}n.mode=12;break;case 17:for(;x<14;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(n.nlen=257+(31&b),b>>>=5,x-=5,n.ndist=1+(31&b),b>>>=5,x-=5,n.ncode=4+(15&b),b>>>=4,x-=4,286<n.nlen||30<n.ndist){e.msg=`too many length or distance symbols`,n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;x<3;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.lens[ne[n.have++]]=7&b,b>>>=3,x-=3}for(;n.have<19;)n.lens[ne[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,L={bits:n.lenbits},I=s(0,n.lens,0,19,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg=`invalid code lengths set`,n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;A=(ee=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&ee,!((k=ee>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(j<16)b>>>=k,x-=k,n.lens[n.have++]=j;else{if(j===16){for(R=k+2;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b>>>=k,x-=k,n.have===0){e.msg=`invalid bit length repeat`,n.mode=30;break}F=n.lens[n.have-1],E=3+(3&b),b>>>=2,x-=2}else if(j===17){for(R=k+3;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}x-=k,F=0,E=3+(7&(b>>>=k)),b>>>=3,x-=3}else{for(R=k+7;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}x-=k,F=0,E=11+(127&(b>>>=k)),b>>>=7,x-=7}if(n.have+E>n.nlen+n.ndist){e.msg=`invalid bit length repeat`,n.mode=30;break}for(;E--;)n.lens[n.have++]=F}}if(n.mode===30)break;if(n.lens[256]===0){e.msg=`invalid code -- missing end-of-block`,n.mode=30;break}if(n.lenbits=9,L={bits:n.lenbits},I=s(c,n.lens,0,n.nlen,n.lencode,0,n.work,L),n.lenbits=L.bits,I){e.msg=`invalid literal/lengths set`,n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,L={bits:n.distbits},I=s(l,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,L),n.distbits=L.bits,I){e.msg=`invalid distances set`,n.mode=30;break}if(n.mode=20,t===6)break e;case 20:n.mode=21;case 21:if(6<=v&&258<=y){e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,o(e,C),_=e.next_out,m=e.output,y=e.avail_out,g=e.next_in,p=e.input,v=e.avail_in,b=n.hold,x=n.bits,n.mode===12&&(n.back=-1);break}for(n.back=0;A=(ee=n.lencode[b&(1<<n.lenbits)-1])>>>16&255,j=65535&ee,!((k=ee>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(A&&!(240&A)){for(M=k,N=A,P=j;A=(ee=n.lencode[P+((b&(1<<M+N)-1)>>M)])>>>16&255,j=65535&ee,!(M+(k=ee>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}b>>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,n.length=j,A===0){n.mode=26;break}if(32&A){n.back=-1,n.mode=12;break}if(64&A){e.msg=`invalid literal/length code`,n.mode=30;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(R=n.extra;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.length+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(ee=n.distcode[b&(1<<n.distbits)-1])>>>16&255,j=65535&ee,!((k=ee>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(!(240&A)){for(M=k,N=A,P=j;A=(ee=n.distcode[P+((b&(1<<M+N)-1)>>M)])>>>16&255,j=65535&ee,!(M+(k=ee>>>24)<=x);){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}b>>>=M,x-=M,n.back+=M}if(b>>>=k,x-=k,n.back+=k,64&A){e.msg=`invalid distance code`,n.mode=30;break}n.offset=j,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(R=n.extra;x<R;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}n.offset+=b&(1<<n.extra)-1,b>>>=n.extra,x-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg=`invalid distance too far back`,n.mode=30;break}n.mode=25;case 25:if(y===0)break e;if(E=C-y,n.offset>E){if((E=n.offset-E)>n.whave&&n.sane){e.msg=`invalid distance too far back`,n.mode=30;break}D=E>n.wnext?(E-=n.wnext,n.wsize-E):n.wnext-E,E>n.length&&(E=n.length),O=n.window}else O=m,D=_-n.offset,E=n.length;for(y<E&&(E=y),y-=E,n.length-=E;m[_++]=O[D++],--E;);n.length===0&&(n.mode=21);break;case 26:if(y===0)break e;m[_++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;x<32;){if(v===0)break e;v--,b|=p[g++]<<x,x+=8}if(C-=y,e.total_out+=C,n.total+=C,C&&(e.adler=n.check=n.flags?a(n.check,m,C,_-C):i(n.check,m,C,_-C)),C=y,(n.flags?b:h(b))!==n.check){e.msg=`incorrect data check`,n.mode=30;break}x=b=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;x<32;){if(v===0)break e;v--,b+=p[g++]<<x,x+=8}if(b!==(4294967295&n.total)){e.msg=`incorrect length check`,n.mode=30;break}x=b=0}n.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;case 32:default:return d}return e.next_out=_,e.avail_out=y,e.next_in=g,e.avail_in=v,n.hold=b,n.bits=x,(n.wsize||C!==e.avail_out&&n.mode<30&&(n.mode<27||t!==4))&&T(e,e.output,e.next_out,C-e.avail_out)?(n.mode=31,-4):(S-=e.avail_in,C-=e.avail_out,e.total_in+=S,e.total_out+=C,n.total+=C,n.wrap&&C&&(e.adler=n.check=n.flags?a(n.check,m,C,e.next_out-C):i(n.check,m,C,e.next_out-C)),e.data_type=n.bits+(n.last?64:0)+(n.mode===12?128:0)+(n.mode===20||n.mode===15?256:0),(S==0&&C===0||t===4)&&I===u&&(I=-5),I)},n.inflateEnd=function(e){if(!e||!e.state)return d;var t=e.state;return t.window&&=null,e.state=null,u},n.inflateGetHeader=function(e,t){var n;return e&&e.state&&2&(n=e.state).wrap?((n.head=t).done=!1,u):d},n.inflateSetDictionary=function(e,t){var n,r=t.length;return e&&e.state?(n=e.state).wrap!==0&&n.mode!==11?d:n.mode===11&&i(1,t,r,0)!==n.check?-3:T(e,t,r,r)?(n.mode=31,-4):(n.havedict=1,u):d},n.inflateInfo=`pako inflate (from Nodeca project)`},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,n){var r=e(`../utils/common`),i=[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],a=[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],o=[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],s=[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];t.exports=function(e,t,n,c,l,u,d,f){var p,m,h,g,_,v,y,b,x,S=f.bits,C=0,w=0,T=0,E=0,D=0,O=0,k=0,A=0,j=0,M=0,N=null,P=0,F=new r.Buf16(16),I=new r.Buf16(16),L=null,R=0;for(C=0;C<=15;C++)F[C]=0;for(w=0;w<c;w++)F[t[n+w]]++;for(D=S,E=15;1<=E&&F[E]===0;E--);if(E<D&&(D=E),E===0)return l[u++]=20971520,l[u++]=20971520,f.bits=1,0;for(T=1;T<E&&F[T]===0;T++);for(D<T&&(D=T),C=A=1;C<=15;C++)if(A<<=1,(A-=F[C])<0)return-1;if(0<A&&(e===0||E!==1))return-1;for(I[1]=0,C=1;C<15;C++)I[C+1]=I[C]+F[C];for(w=0;w<c;w++)t[n+w]!==0&&(d[I[t[n+w]]++]=w);if(v=e===0?(N=L=d,19):e===1?(N=i,P-=257,L=a,R-=257,256):(N=o,L=s,-1),C=T,_=u,k=w=M=0,h=-1,g=(j=1<<(O=D))-1,e===1&&852<j||e===2&&592<j)return 1;for(;;){for(y=C-k,x=d[w]<v?(b=0,d[w]):d[w]>v?(b=L[R+d[w]],N[P+d[w]]):(b=96,0),p=1<<C-k,T=m=1<<O;l[_+(M>>k)+(m-=p)]=y<<24|b<<16|x|0,m!==0;);for(p=1<<C-1;M&p;)p>>=1;if(p===0?M=0:(M&=p-1,M+=p),w++,--F[C]==0){if(C===E)break;C=t[n+d[w]]}if(D<C&&(M&g)!==h){for(k===0&&(k=D),_+=T,A=1<<(O=C-k);O+k<E&&!((A-=F[O+k])<=0);)O++,A<<=1;if(j+=1<<O,e===1&&852<j||e===2&&592<j)return 1;l[h=M&g]=D<<24|O<<16|_-u|0}}return M!==0&&(l[_+M]=C-k<<24|4194304),f.bits=D,0}},{"../utils/common":41}],51:[function(e,t,n){t.exports={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`}},{}],52:[function(e,t,n){var r=e(`../utils/common`),i=0,a=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,c=29,l=256,u=l+1+c,d=30,f=19,p=2*u+1,m=15,h=16,g=7,_=256,v=16,y=17,b=18,x=[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],S=[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],C=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],w=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],T=Array(2*(u+2));o(T);var E=Array(2*d);o(E);var D=Array(512);o(D);var O=Array(256);o(O);var k=Array(c);o(k);var A,j,M,N=Array(d);function P(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function F(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function I(e){return e<256?D[e]:D[256+(e>>>7)]}function L(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function R(e,t,n){e.bi_valid>h-n?(e.bi_buf|=t<<e.bi_valid&65535,L(e,e.bi_buf),e.bi_buf=t>>h-e.bi_valid,e.bi_valid+=n-h):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function ee(e,t,n){R(e,n[2*t],n[2*t+1])}function te(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function ne(e,t,n){var r,i,a=Array(m+1),o=0;for(r=1;r<=m;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];s!==0&&(e[2*i]=te(a[s]++,s))}}function re(e){var t;for(t=0;t<u;t++)e.dyn_ltree[2*t]=0;for(t=0;t<d;t++)e.dyn_dtree[2*t]=0;for(t=0;t<f;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*_]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function ie(e){8<e.bi_valid?L(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ae(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function oe(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&ae(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!ae(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function se(e,t,n){var r,i,a,o,s=0;if(e.last_lit!==0)for(;r=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],i=e.pending_buf[e.l_buf+s],s++,r===0?ee(e,i,t):(ee(e,(a=O[i])+l+1,t),(o=x[a])!==0&&R(e,i-=k[a],o),ee(e,a=I(--r),n),(o=S[a])!==0&&R(e,r-=N[a],o)),s<e.last_lit;);ee(e,_,t)}function ce(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,l=-1;for(e.heap_len=0,e.heap_max=p,n=0;n<c;n++)a[2*n]===0?a[2*n+1]=0:(e.heap[++e.heap_len]=l=n,e.depth[n]=0);for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=l<2?++l:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=l,n=e.heap_len>>1;1<=n;n--)oe(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],oe(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,oe(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,c=t.dyn_tree,l=t.max_code,u=t.stat_desc.static_tree,d=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,g=t.stat_desc.max_length,_=0;for(a=0;a<=m;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<p;n++)g<(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(a=g,_++),c[2*r+1]=a,l<r||(e.bl_count[a]++,o=0,h<=r&&(o=f[r-h]),s=c[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(u[2*r+1]+o)));if(_!==0){do{for(a=g-1;e.bl_count[a]===0;)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,_-=2}while(0<_);for(a=g;a!==0;a--)for(r=e.bl_count[a];r!==0;)l<(i=e.heap[--n])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),ne(a,l,e.bl_count)}function le(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++s<c&&i===o||(s<l?e.bl_tree[2*i]+=s:i===0?s<=10?e.bl_tree[2*y]++:e.bl_tree[2*b]++:(i!==a&&e.bl_tree[2*i]++,e.bl_tree[2*v]++),a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4))}function ue(e,t,n){var r,i,a=-1,o=t[1],s=0,c=7,l=4;for(o===0&&(c=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++s<c&&i===o)){if(s<l)for(;ee(e,i,e.bl_tree),--s!=0;);else i===0?s<=10?(ee(e,y,e.bl_tree),R(e,s-3,3)):(ee(e,b,e.bl_tree),R(e,s-11,7)):(i!==a&&(ee(e,i,e.bl_tree),s--),ee(e,v,e.bl_tree),R(e,s-3,2));a=i,l=(s=0)===o?(c=138,3):i===o?(c=6,3):(c=7,4)}}o(N);var de=!1;function fe(e,t,n,i){R(e,(s<<1)+ +!!i,3),function(e,t,n,i){ie(e),i&&(L(e,n),L(e,~n)),r.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}(e,t,n,!0)}n._tr_init=function(e){de||=(function(){var e,t,n,r,i,a=Array(m+1);for(r=n=0;r<c-1;r++)for(k[r]=n,e=0;e<1<<x[r];e++)O[n++]=r;for(O[n-1]=r,r=i=0;r<16;r++)for(N[r]=i,e=0;e<1<<S[r];e++)D[i++]=r;for(i>>=7;r<d;r++)for(N[r]=i<<7,e=0;e<1<<S[r]-7;e++)D[256+i++]=r;for(t=0;t<=m;t++)a[t]=0;for(e=0;e<=143;)T[2*e+1]=8,e++,a[8]++;for(;e<=255;)T[2*e+1]=9,e++,a[9]++;for(;e<=279;)T[2*e+1]=7,e++,a[7]++;for(;e<=287;)T[2*e+1]=8,e++,a[8]++;for(ne(T,u+1,a),e=0;e<d;e++)E[2*e+1]=5,E[2*e]=te(e,5);A=new P(T,x,l+1,u,m),j=new P(E,S,0,d,m),M=new P([],C,0,f,g)}(),!0),e.l_desc=new F(e.dyn_ltree,A),e.d_desc=new F(e.dyn_dtree,j),e.bl_desc=new F(e.bl_tree,M),e.bi_buf=0,e.bi_valid=0,re(e)},n._tr_stored_block=fe,n._tr_flush_block=function(e,t,n,r){var o,s,c=0;0<e.level?(e.strm.data_type===2&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&e.dyn_ltree[2*t]!==0)return i;if(e.dyn_ltree[18]!==0||e.dyn_ltree[20]!==0||e.dyn_ltree[26]!==0)return a;for(t=32;t<l;t++)if(e.dyn_ltree[2*t]!==0)return a;return i}(e)),ce(e,e.l_desc),ce(e,e.d_desc),c=function(e){var t;for(le(e,e.dyn_ltree,e.l_desc.max_code),le(e,e.dyn_dtree,e.d_desc.max_code),ce(e,e.bl_desc),t=f-1;3<=t&&e.bl_tree[2*w[t]+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=n+5,n+4<=o&&t!==-1?fe(e,t,n,r):e.strategy===4||s===o?(R(e,2+ +!!r,3),se(e,T,E)):(R(e,4+ +!!r,3),function(e,t,n,r){var i;for(R(e,t-257,5),R(e,n-1,5),R(e,r-4,4),i=0;i<r;i++)R(e,e.bl_tree[2*w[i]+1],3);ue(e,e.dyn_ltree,t-1),ue(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,c+1),se(e,e.dyn_ltree,e.dyn_dtree)),re(e),r&&ie(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,t===0?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(O[n]+l+1)]++,e.dyn_dtree[2*I(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){R(e,2,3),ee(e,_,T),function(e){e.bi_valid===16?(L(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,n){t.exports=function(){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}},{}],54:[function(e,t,n){(function(e){(function(e,t){if(!e.setImmediate){var n,r,i,a,o=1,s={},c=!1,l=e.document,u=Object.getPrototypeOf&&Object.getPrototypeOf(e);u=u&&u.setTimeout?u:e,n={}.toString.call(e.process)===`[object process]`?function(e){jQ.nextTick(function(){f(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage(``,`*`),e.onmessage=n,t}}()?(a=`setImmediate$`+Math.random()+`$`,e.addEventListener?e.addEventListener(`message`,p,!1):e.attachEvent(`onmessage`,p),function(t){e.postMessage(a+t,`*`)}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){f(e.data)},function(e){i.port2.postMessage(e)}):l&&`onreadystatechange`in l.createElement(`script`)?(r=l.documentElement,function(e){var t=l.createElement(`script`);t.onreadystatechange=function(){f(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(f,0,e)},u.setImmediate=function(e){typeof e!=`function`&&(e=Function(``+e));for(var t=Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];return s[o]={callback:e,args:t},n(o),o++},u.clearImmediate=d}function d(e){delete s[e]}function f(e){if(c)setTimeout(f,0,e);else{var n=s[e];if(n){c=!0;try{(function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}})(n)}finally{d(e),c=!1}}}}function p(t){t.source===e&&typeof t.data==`string`&&t.data.indexOf(a)===0&&f(+t.data.slice(a.length))}})(typeof self>`u`?e===void 0?this:e:self)}).call(this,bQ===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:bQ)},{}]},{},[10])(10)})})),Lge=K(((e,t)=>{var n={"&":`&amp;`,'"':`&quot;`,"'":`&apos;`,"<":`&lt;`,">":`&gt;`};function r(e){return e&&e.replace?e.replace(/([&"<>'])/g,function(e,t){return n[t]}):e}t.exports=r})),Rge=K(((e,t)=>{MQ();var n=Lge(),r=Z$().Stream,i=` `;function a(e,t){typeof t!=`object`&&(t={indent:t});var n=t.stream?new r:null,a=``,o=!1,s=t.indent?t.indent===!0?i:t.indent:``,u=!0;function d(e){u?jQ.nextTick(e):e()}function f(e,t){if(t!==void 0&&(a+=t),e&&!o&&(n||=new r,o=!0),e&&o){var i=a;d(function(){n.emit(`data`,i)}),a=``}}function p(e,t){l(f,c(e,s,+!!s),t)}function m(){if(n){var e=a;d(function(){n.emit(`data`,e),n.emit(`end`),n.readable=!1,n.emit(`close`)})}}function h(e){var t={version:`1.0`,encoding:e.encoding||`UTF-8`};e.standalone&&(t.standalone=e.standalone),p({"?xml":{_attr:t}}),a=a.replace(`/>`,`?>`)}return d(function(){u=!1}),t.declaration&&h(t.declaration),e&&e.forEach?e.forEach(function(t,n){var r;n+1===e.length&&(r=m),p(t,r)}):p(e,m),n?(n.readable=!0,n):a}function o(){var e={_elem:c(Array.prototype.slice.call(arguments))};return e.push=function(e){if(!this.append)throw Error(`not assigned to a parent!`);var t=this,n=this._elem.indent;l(this.append,c(e,n,this._elem.icount+ +!!n),function(){t.append(!0)})},e.close=function(e){e!==void 0&&this.push(e),this.end&&this.end()},e}function s(e,t){return Array(t||0).join(e||``)}function c(e,t,r){r||=0;var i=s(t,r),a,o=e,l=!1;if(typeof e==`object`&&(a=Object.keys(e)[0],o=e[a],o&&o._elem))return o._elem.name=a,o._elem.icount=r,o._elem.indent=t,o._elem.indents=i,o._elem.interrupt=o,o._elem;var d=[],f=[],p;function m(e){Object.keys(e).forEach(function(t){d.push(u(t,e[t]))})}switch(typeof o){case`object`:if(o===null)break;o._attr&&m(o._attr),o._cdata&&f.push((`<![CDATA[`+o._cdata).replace(/\]\]>/g,`]]]]><![CDATA[>`)+`]]>`),o.forEach&&(p=!1,f.push(``),o.forEach(function(e){typeof e==`object`?Object.keys(e)[0]==`_attr`?m(e._attr):f.push(c(e,t,r+1)):(f.pop(),p=!0,f.push(n(e)))}),p||f.push(``));break;default:f.push(n(o))}return{name:a,interrupt:l,attributes:d,content:f,icount:r,indents:i,indent:t}}function l(e,t,n){if(typeof t!=`object`)return e(!1,t);var r=t.interrupt?1:t.content.length;function i(){for(;t.content.length;){var i=t.content.shift();if(i!==void 0){if(a(i))return;l(e,i)}}e(!1,(r>1?t.indents:``)+(t.name?`</`+t.name+`>`:``)+(t.indent&&!n?`
`:``)),n&&n()}function a(t){return t.interrupt?(t.interrupt.append=e,t.interrupt.end=i,t.interrupt=!1,e(!0),!0):!1}if(e(!1,t.indents+(t.name?`<`+t.name:``)+(t.attributes.length?` `+t.attributes.join(` `):``)+(r?t.name?`>`:``:t.name?`/>`:``)+(t.indent&&r>1?`
`:``)),!r)return e(!1,t.indent?`
`:``);a(t)||i()}function u(e,t){return e+`="`+n(t)+`"`}t.exports=a,t.exports.element=t.exports.Element=o})),zge=Z$(),f9=uQ(Ige(),1),p9=uQ(Rge(),1),m9=0,h9=32,Bge=32,Vge=(e,t)=>{let n=t.replace(/-/g,``);if(n.length!==Bge)throw Error(`Error: Cannot extract GUID from font filename: ${t}`);let r=n.replace(/(..)/g,`$1 `).trim().split(` `).map(e=>parseInt(e,16));r.reverse();let i=e.slice(m9,h9).map((e,t)=>e^r[t%r.length]),a=new Uint8Array(m9+i.length+Math.max(0,e.length-h9));return a.set(e.slice(0,m9)),a.set(i,m9),a.set(e.slice(h9),m9+i.length),a},g9=class{format(e,t={stack:[]}){let n=e.prepForXml(t);if(n)return n;throw Error(`XMLComponent did not format correctly`)}},_9=class{replace(e,t,n){let r=e;return t.forEach((e,t)=>{r=r.replace(RegExp(`{${e.fileName}}`,`g`),(n+t).toString())}),r}getMediaData(e,t){return t.Array.filter(t=>e.search(`{${t.fileName}}`)>0)}},Hge=class{replace(e,t){let n=e;for(let e of t)n=n.replace(RegExp(`{${e.reference}-${e.instance}}`,`g`),e.numId.toString());return n}},Uge=class{constructor(){W(this,`formatter`,void 0),W(this,`imageReplacer`,void 0),W(this,`numberingReplacer`,void 0),this.formatter=new g9,this.imageReplacer=new _9,this.numberingReplacer=new Hge}compile(e,t,n=[]){let r=new f9.default,i=this.xmlifyFile(e,t),a=new Map(Object.entries(i));for(let[,e]of a)if(Array.isArray(e))for(let t of e)r.file(t.path,c2(t.data));else r.file(e.path,c2(e.data));for(let e of n)r.file(e.path,c2(e.data));for(let t of e.Media.Array)t.type===`svg`?(r.file(`word/media/${t.fileName}`,t.data),r.file(`word/media/${t.fallback.fileName}`,t.fallback.data)):r.file(`word/media/${t.fileName}`,t.data);for(let[t,{data:n,fontKey:i}]of e.FontTable.fontOptionsWithKey.entries())r.file(`word/fonts/font${t+1}.odttf`,Vge(n,i));return r}xmlifyFile(e,t){let n=e.Document.Relationships.RelationshipCount+1,r=(0,p9.default)(this.formatter.format(e.Document.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),i=e.Comments.Relationships.RelationshipCount+1,a=(0,p9.default)(this.formatter.format(e.Comments,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),o=e.FootNotes.Relationships.RelationshipCount+1,s=(0,p9.default)(this.formatter.format(e.FootNotes.View,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),c=this.imageReplacer.getMediaData(r,e.Media),l=this.imageReplacer.getMediaData(a,e.Media),u=this.imageReplacer.getMediaData(s,e.Media);return G(G({Relationships:{data:(c.forEach((t,r)=>{e.Document.Relationships.addRelationship(n+r,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${t.fileName}`)}),e.Document.Relationships.addRelationship(e.Document.Relationships.RelationshipCount+1,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable`,`fontTable.xml`),(0,p9.default)(this.formatter.format(e.Document.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}})),path:`word/_rels/document.xml.rels`},Document:{data:(()=>{let t=this.imageReplacer.replace(r,c,n);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:`word/document.xml`},Styles:{data:(()=>{let n=(0,p9.default)(this.formatter.format(e.Styles,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}});return this.numberingReplacer.replace(n,e.Numbering.ConcreteNumbering)})(),path:`word/styles.xml`},Properties:{data:(0,p9.default)(this.formatter.format(e.CoreProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`docProps/core.xml`},Numbering:{data:(0,p9.default)(this.formatter.format(e.Numbering,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/numbering.xml`},FileRelationships:{data:(0,p9.default)(this.formatter.format(e.FileRelationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`_rels/.rels`},HeaderRelationships:e.Headers.map((n,r)=>{let i=(0,p9.default)(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}});return this.imageReplacer.getMediaData(i,e.Media).forEach((e,t)=>{n.Relationships.addRelationship(t,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${e.fileName}`)}),{data:(0,p9.default)(this.formatter.format(n.Relationships,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`word/_rels/header${r+1}.xml.rels`}}),FooterRelationships:e.Footers.map((n,r)=>{let i=(0,p9.default)(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}});return this.imageReplacer.getMediaData(i,e.Media).forEach((e,t)=>{n.Relationships.addRelationship(t,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${e.fileName}`)}),{data:(0,p9.default)(this.formatter.format(n.Relationships,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`word/_rels/footer${r+1}.xml.rels`}}),Headers:e.Headers.map((n,r)=>{let i=(0,p9.default)(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),a=this.imageReplacer.getMediaData(i,e.Media),o=this.imageReplacer.replace(i,a,0);return{data:this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering),path:`word/header${r+1}.xml`}}),Footers:e.Footers.map((n,r)=>{let i=(0,p9.default)(this.formatter.format(n.View,{viewWrapper:n,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),a=this.imageReplacer.getMediaData(i,e.Media),o=this.imageReplacer.replace(i,a,0);return{data:this.numberingReplacer.replace(o,e.Numbering.ConcreteNumbering),path:`word/footer${r+1}.xml`}}),ContentTypes:{data:(0,p9.default)(this.formatter.format(e.ContentTypes,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`[Content_Types].xml`},CustomProperties:{data:(0,p9.default)(this.formatter.format(e.CustomProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`docProps/custom.xml`},AppProperties:{data:(0,p9.default)(this.formatter.format(e.AppProperties,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`docProps/app.xml`},FootNotes:{data:(()=>{let t=this.imageReplacer.replace(s,u,o);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:`word/footnotes.xml`},FootNotesRelationships:{data:(u.forEach((t,n)=>{e.FootNotes.Relationships.addRelationship(o+n,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${t.fileName}`)}),(0,p9.default)(this.formatter.format(e.FootNotes.Relationships,{viewWrapper:e.FootNotes,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}})),path:`word/_rels/footnotes.xml.rels`},Endnotes:{data:(0,p9.default)(this.formatter.format(e.Endnotes.View,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`word/endnotes.xml`},EndnotesRelationships:{data:(0,p9.default)(this.formatter.format(e.Endnotes.Relationships,{viewWrapper:e.Endnotes,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`word/_rels/endnotes.xml.rels`},Settings:{data:(0,p9.default)(this.formatter.format(e.Settings,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/settings.xml`},Comments:{data:(()=>{let t=this.imageReplacer.replace(a,l,i);return this.numberingReplacer.replace(t,e.Numbering.ConcreteNumbering)})(),path:`word/comments.xml`},CommentsRelationships:{data:(l.forEach((t,n)=>{e.Comments.Relationships.addRelationship(i+n,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${t.fileName}`)}),(0,p9.default)(this.formatter.format(e.Comments.Relationships,{viewWrapper:{View:e.Comments,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}})),path:`word/_rels/comments.xml.rels`}},e.CommentsExtended?{CommentsExtended:{data:(0,p9.default)(this.formatter.format(e.CommentsExtended,{viewWrapper:{View:e.CommentsExtended,Relationships:e.Comments.Relationships},file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/commentsExtended.xml`}}:{}),{},{FontTable:{data:(0,p9.default)(this.formatter.format(e.FontTable.View,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{standalone:`yes`,encoding:`UTF-8`}}),path:`word/fontTable.xml`},FontTableRelationships:{data:(0,p9.default)(this.formatter.format(e.FontTable.Relationships,{viewWrapper:e.Document,file:e,stack:[]}),{indent:t,declaration:{encoding:`UTF-8`}}),path:`word/_rels/fontTable.xml.rels`}})}},v9={NONE:``,WITH_2_BLANKS:` `,WITH_4_BLANKS:` `,WITH_TAB:` `},y9=e=>e===!0?v9.WITH_2_BLANKS:e===!1?void 0:e,b9=class e{static pack(e,t,n){var r=this;return tQ(function*(e,t,n,i=[]){return r.compiler.compile(e,y9(n),i).generateAsync({type:t,mimeType:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,compression:`DEFLATE`})}).apply(this,arguments)}static toString(t,n,r=[]){return e.pack(t,`string`,n,r)}static toBuffer(t,n,r=[]){return e.pack(t,`nodebuffer`,n,r)}static toBase64String(t,n,r=[]){return e.pack(t,`base64`,n,r)}static toBlob(t,n,r=[]){return e.pack(t,`blob`,n,r)}static toArrayBuffer(t,n,r=[]){return e.pack(t,`arraybuffer`,n,r)}static toStream(e,t,n=[]){let r=new zge.Stream;return this.compiler.compile(e,y9(t),n).generateAsync({type:`nodebuffer`,mimeType:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,compression:`DEFLATE`}).then(e=>{r.emit(`data`,e),r.emit(`end`)}),r}},W(b9,`compiler`,new Uge),Wge=new g9,x9=e=>(0,a1.xml2js)(e,{compact:!1,captureSpacesBetweenElements:!0}),S9=e=>x9((0,p9.default)(Wge.format(new O0({text:e})))).elements[0].elements??[],C9=e=>G(G({},e),{},{attributes:{"xml:space":`preserve`}}),w9=(e,t)=>e.elements?.filter(e=>e.name===t)[0].elements??[],T9=(e,t,n)=>{let r=w9(e,`Types`);r.some(e=>{var r,i;return e.type===`element`&&e.name===`Default`&&(e==null||(r=e.attributes)==null?void 0:r.ContentType)===t&&(e==null||(i=e.attributes)==null?void 0:i.Extension)===n})||r.push({attributes:{ContentType:t,Extension:n},name:`Default`,type:`element`})},Gge=e=>{let t=parseInt(e.substring(3),10);return isNaN(t)?0:t},Kge=e=>w9(e,`Relationships`).map(e=>{var t;return Gge(((t=e.attributes)==null||(t=t.Id)==null?void 0:t.toString())??``)}).reduce((e,t)=>Math.max(e,t),0)+1,E9=(e,t,n,r,i)=>{let a=w9(e,`Relationships`);return a.push({attributes:{Id:`rId${t}`,Type:n,Target:r,TargetMode:i},name:`Relationship`,type:`element`}),a},qge=class extends Error{constructor(e){super(`Token ${e} not found`),this.name=`TokenNotFoundError`}},Jge=(e,t)=>{for(let n=0;n<(e.elements??[]).length;n++){let r=e.elements[n];if(r.type===`element`&&r.name===`w:r`){let e=(r.elements??[]).filter(e=>e.type===`element`&&e.name===`w:t`);for(let r of e)if(r.elements?.[0]&&r.elements[0].text?.includes(t))return n}}throw new qge(t)},Yge=(e,t)=>{let n=-1,r=e.elements?.map((e,r)=>{if(n!==-1)return e;if(e.type===`element`&&e.name===`w:t`){var i;let a=(((i=e.elements)==null||(i=i[0])==null?void 0:i.text)??``).split(t),o=a.map(t=>G(G(G({},e),C9(e)),{},{elements:S9(t)}));return a.length>1&&(n=r),o}return e}).flat()??[];return{left:G(G({},JSON.parse(JSON.stringify(e))),{},{elements:r.slice(0,n+1)}),right:G(G({},JSON.parse(JSON.stringify(e))),{},{elements:r.slice(n+1)})}},D9={START:0,MIDDLE:1,END:2},Xge=({paragraphElement:e,renderedParagraph:t,originalText:n,replacementText:r})=>{let i=t.text.indexOf(n),a=i+n.length-1,o=D9.START;for(let n of t.runs)for(let{text:t,index:s,start:c,end:l}of n.parts)switch(o){case D9.START:if(i>=c&&i<=l){let u=i-c,d=Math.min(a,l)-c,f=n.text.substring(u,d+1);if(f===``)continue;let p=t.replace(f,r);O9(e.elements[n.index].elements[s],p),o=D9.MIDDLE;continue}break;case D9.MIDDLE:if(a<=l){let r=t.substring(a-c+1);O9(e.elements[n.index].elements[s],r);let i=e.elements[n.index].elements[s];e.elements[n.index].elements[s]=C9(i),o=D9.END}else O9(e.elements[n.index].elements[s],``);break;default:}return e},O9=(e,t)=>(e.elements=S9(t),e),Zge=e=>{if(e.element.name!==`w:p`)throw Error(`Invalid node type: ${e.element.name}`);if(!e.element.elements)return{text:``,runs:[],index:-1,pathToParagraph:[]};let t=0,n=e.element.elements.map((e,t)=>({element:e,i:t})).filter(({element:e})=>e.name===`w:r`).map(({element:e,i:n})=>{let r=Qge(e,n,t);return t+=r.text.length,r}).filter(e=>!!e);return{text:n.reduce((e,t)=>e+t.text,``),runs:n,index:e.index,pathToParagraph:k9(e)}},Qge=(e,t,n)=>{if(!e.elements)return{text:``,parts:[],index:-1,start:n,end:n};let r=n,i=e.elements.map((e,t)=>e.name===`w:t`&&e.elements&&e.elements.length>0?{text:e.elements[0].text?.toString()??``,index:t,start:r,end:(r+=(e.elements[0].text?.toString()??``).length-1,r)}:void 0).filter(e=>!!e).map(e=>e);return{text:i.reduce((e,t)=>e+t.text,``),parts:i,index:t,start:n,end:r}},k9=e=>e.parent?[...k9(e.parent),e.index]:[e.index],A9=e=>e.element.elements?.map((t,n)=>({element:t,index:n,parent:e}))??[],j9=e=>{let t=[],n=[...A9({element:e,index:0,parent:void 0})],r;for(;n.length>0;)r=n.shift(),r.element.name===`w:p`&&(t=[...t,Zge(r)]),n.push(...A9(r));return t},$ge=(e,t)=>j9(e).filter(e=>e.text.includes(t)),e_e=new g9,M9=`ɵ`,t_e=({json:e,patch:t,patchText:n,context:r,keepOriginalStyles:i=!0})=>{let a=$ge(e,n);if(a.length===0)return{element:e,didFindOccurrence:!1};for(let o of a){let a=t.children.map(e=>x9((0,p9.default)(e_e.format(e,r)))).map(e=>e.elements[0]);switch(t.type){case P9.DOCUMENT:{let t=n_e(e,o.pathToParagraph),n=r_e(o.pathToParagraph);t.elements.splice(n,1,...a);break}case P9.PARAGRAPH:default:{let t=N9(e,o.pathToParagraph);Xge({paragraphElement:t,renderedParagraph:o,originalText:n,replacementText:M9});let r=Jge(t,M9),s=t.elements[r],{left:c,right:l}=Yge(s,M9),u=a,d=l;if(i){let e=s.elements.filter(e=>e.type===`element`&&e.name===`w:rPr`);u=a.map(t=>G(G({},t),{},{elements:[...e,...t.elements??[]]})),d=G(G({},l),{},{elements:[...e,...l.elements]})}t.elements.splice(r,1,c,...u,d);break}}}return{element:e,didFindOccurrence:!0}},N9=(e,t)=>{let n=e;for(let e=1;e<t.length;e++){let r=t[e];n=n.elements[r]}return n},n_e=(e,t)=>N9(e,t.slice(0,t.length-1)),r_e=e=>e[e.length-1],P9={DOCUMENT:`file`,PARAGRAPH:`paragraph`},F9=new _9,i_e=new Uint8Array([255,254]),a_e=new Uint8Array([254,255]),I9=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},o_e=function(){var e=tQ(function*({outputType:e,data:t,patches:n,keepOriginalStyles:r,placeholderDelimiters:i={start:`{{`,end:`}}`},recursive:a=!0}){let o=t instanceof f9.default?t:yield f9.default.loadAsync(t),s=new Map,c={Media:new j7},l=new Map,u=[],d=[],f=!1,p=new Map;for(let[e,t]of Object.entries(o.files)){let o=yield t.async(`uint8array`),m=o.slice(0,2);if(I9(m,i_e)||I9(m,a_e)){p.set(e,o);continue}if(!e.endsWith(`.xml`)&&!e.endsWith(`.rels`)){p.set(e,o);continue}let h=x9(yield t.async(`text`));if(e===`word/document.xml`){let e=h.elements?.find(e=>e.name===`w:document`);if(e&&e.attributes){for(let t of[`mc`,`wp`,`r`,`w15`,`m`])e.attributes[`xmlns:${t}`]=g5[t];e.attributes[`mc:Ignorable`]=`${e.attributes[`mc:Ignorable`]||``} w15`.trim()}}if(e.startsWith(`word/`)&&!e.endsWith(`.xml.rels`)){let t={file:c,viewWrapper:{Relationships:{addRelationship:(t,n,r,i)=>{d.push({key:e,hyperlink:{id:t,link:r}})}}},stack:[]};if(s.set(e,t),!i?.start.trim()||!i?.end.trim())throw Error(`Both start and end delimiters must be non-empty strings.`);let{start:o,end:l}=i;for(let[i,s]of Object.entries(n)){let n=`${o}${i}${l}`;for(;;){let{didFindOccurrence:i}=t_e({json:h,patch:G(G({},s),{},{children:s.children.map(t=>{if(t instanceof U3){let n=new V3(t.options.children,i2());return d.push({key:e,hyperlink:{id:n.linkId,link:t.options.link}}),n}return t})}),patchText:n,context:t,keepOriginalStyles:r});if(!a||!i)break}}let p=F9.getMediaData(JSON.stringify(h),t.file.Media);p.length>0&&(f=!0,u.push({key:e,mediaDatas:p}))}l.set(e,h)}for(let{key:e,mediaDatas:t}of u){let n=`word/_rels/${e.split(`/`).pop()}.rels`,r=l.get(n)??L9();l.set(n,r);let i=Kge(r),a=F9.replace(JSON.stringify(l.get(e)),t,i);l.set(e,JSON.parse(a));for(let e=0;e<t.length;e++){let{fileName:n}=t[e];E9(r,i+e,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,`media/${n}`)}}for(let{key:e,hyperlink:t}of d){let n=`word/_rels/${e.split(`/`).pop()}.rels`,r=l.get(n)??L9();l.set(n,r),E9(r,t.id,`http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`,t.link,L4.EXTERNAL)}if(f){let e=l.get(`[Content_Types].xml`);if(!e)throw Error(`Could not find content types file`);T9(e,`image/png`,`png`),T9(e,`image/jpeg`,`jpeg`),T9(e,`image/jpeg`,`jpg`),T9(e,`image/bmp`,`bmp`),T9(e,`image/gif`,`gif`),T9(e,`image/svg+xml`,`svg`)}let m=new f9.default;for(let[e,t]of l){let n=s_e(t);m.file(e,c2(n))}for(let[e,t]of p)m.file(e,t);for(let{data:e,fileName:t}of c.Media.Array)m.file(`word/media/${t}`,e);return m.generateAsync({type:e,mimeType:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,compression:`DEFLATE`})});return function(t){return e.apply(this,arguments)}}(),s_e=e=>(0,a1.js2xml)(e,{attributeValueFn:e=>String(e).replace(/&(?!amp;|lt;|gt;|quot;|apos;)/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`)}),L9=()=>({declaration:{attributes:{version:`1.0`,encoding:`UTF-8`,standalone:`yes`}},elements:[{type:`element`,name:`Relationships`,attributes:{xmlns:`http://schemas.openxmlformats.org/package/2006/relationships`},elements:[]}]}),c_e=function(){var e=tQ(function*({data:e}){let t=e instanceof f9.default?e:yield f9.default.loadAsync(e),n=new Set;for(let[e,r]of Object.entries(t.files))!e.endsWith(`.xml`)&&!e.endsWith(`.rels`)||e.startsWith(`word/`)&&!e.endsWith(`.xml.rels`)&&j9(x9(yield r.async(`text`))).forEach(e=>l_e(e.text).forEach(e=>n.add(e)));return Array.from(n)});return function(t){return e.apply(this,arguments)}}(),l_e=e=>{let t=RegExp(`(?<=\\{\\{).+?(?=\\}\\})`,`gs`);return e.match(t)??[]}}));function d_e(e,t){let n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,r.style.display=`none`,document.body.appendChild(r),r.click(),r.remove(),window.setTimeout(()=>URL.revokeObjectURL(n),500)}function f_e(){d_e(new Blob([fo],{type:`text/markdown;charset=utf-8`}),`研发产品设计要求说明文档_AI-OUT-2026-0901.md`)}async function p_e(){let{AlignmentType:e,BorderStyle:t,Document:n,Footer:r,HeadingLevel:i,Packer:a,PageOrientation:o,Paragraph:s,Table:c,TableCell:l,TableRow:u,TextRun:d,WidthType:f}=await C(async()=>{let{AlignmentType:e,BorderStyle:t,Document:n,Footer:r,HeadingLevel:i,Packer:a,PageOrientation:o,Paragraph:s,Table:c,TableCell:l,TableRow:u,TextRun:d,WidthType:f}=await Promise.resolve().then(()=>(u_e(),Nhe));return{AlignmentType:e,BorderStyle:t,Document:n,Footer:r,HeadingLevel:i,Packer:a,PageOrientation:o,Paragraph:s,Table:c,TableCell:l,TableRow:u,TextRun:d,WidthType:f}},void 0,import.meta.url),p={top:{style:t.SINGLE,size:2,color:`D9E1EB`},bottom:{style:t.SINGLE,size:2,color:`D9E1EB`},left:{style:t.SINGLE,size:2,color:`D9E1EB`},right:{style:t.SINGLE,size:2,color:`D9E1EB`},insideHorizontal:{style:t.SINGLE,size:2,color:`D9E1EB`},insideVertical:{style:t.SINGLE,size:2,color:`D9E1EB`}},m=e=>new s({text:e,heading:i.HEADING_1,spacing:{before:260,after:120}}),h=[[`推荐物料编码`,`物料名称`,`物料属性`,`复用建议`],[`SP-M-001`,`无刷电机基座A`,`通用件`,`优先选用`],[`SP-P-005`,`动力输出轴-20`,`通用件`,`优先选用`],[`SP-S-011`,`减震垫圈Φ62`,`标准件`,`优先选用`]].map((e,t)=>new u({children:e.map(e=>new l({shading:t===0?{fill:`E8F4F3`}:void 0,children:[new s({children:[new d({text:e,bold:t===0,font:`Microsoft YaHei`})]})]}))})),g=new n({styles:{default:{document:{run:{font:`Microsoft YaHei`,size:22},paragraph:{spacing:{line:340,after:100}}}},paragraphStyles:[{id:`Title`,name:`Title`,basedOn:`Normal`,next:`Normal`,run:{size:36,bold:!0,color:`142033`,font:`Microsoft YaHei`},paragraph:{spacing:{after:260},alignment:e.CENTER}},{id:`Heading1`,name:`Heading 1`,basedOn:`Normal`,next:`Normal`,run:{size:28,bold:!0,color:`155E75`,font:`Microsoft YaHei`}}]},sections:[{properties:{page:{size:{orientation:o.PORTRAIT},margin:{top:1247,bottom:1247,left:1247,right:1247}}},footers:{default:new r({children:[new s({alignment:e.CENTER,children:[new d({text:`三瑞智研 AI 设计标准化智能体 · DEMO 模拟输出`,color:`6B7280`,size:18})]})]})},children:[new s({text:`研发产品设计要求说明文档(标准化校验版)`,style:`Title`}),new s({children:[new d({text:`项目名称:`,bold:!0}),new d(`植保无人机 V2.1 改型动力套件开发`)]}),new s({children:[new d({text:`文档编号:`,bold:!0}),new d(`AI-OUT-2026-0901`)]}),new s({children:[new d({text:`生成时间:`,bold:!0}),new d(`2026-09-01(AI 自动生成)`)]}),m(`一、参数解析结果`),new s(`AI 解析需求文档提取关键设计参数:电机基座外径 62mm,孔距 48mm,厚度 8mm,4-M6 安装孔,材质 6061 铝合金;动力输出轴轴径 20mm,键槽 6×3mm,总长 75mm,40Cr 调质;减震垫圈内径 62mm,外径 72mm,厚度 2mm,硅胶。`),m(`二、相似零部件检索结果`),new s(`系统检索企业物料库,匹配到 SP-M-001、SP-P-005、SP-S-011 三项可复用成熟物料,参数均完全匹配,无需新建。`),m(`三、标准化合规校验结果`),new s(`当前设计方案计划新建 3 项物料,参数与现有成熟物料完全一致,存在一物多码和重复设计风险。命中 RULE-001、RULE-002、RULE-003,建议取消新建物料。`),m(`四、BOM 物料智能推荐清单`),new c({width:{size:100,type:f.PERCENTAGE},borders:p,rows:h}),m(`五、相似历史方案推荐`),new s(`匹配成熟案例 CASE-001《20kg 级多旋翼无人机动力基座总成方案》。该方案已量产验证,BOM 零定制件。`),m(`六、最终标准化设计结论`),new s(`本次植保无人机 V2.1 动力套件改型无需新增定制零件,全部零部件选用现有库内通用件、标准件,实现设计标准化。预计减少新建物料编码 3 个,降低开模与采购成本。`),m(`附录:证据来源`),new s(`新品需求:XQ-2026-0901;推荐物料:SP-M-001、SP-P-005、SP-S-011;命中规则:RULE-001、RULE-002、RULE-003;历史案例:CASE-001;审核状态:待研发工程师、标准化工程师确认。`)]}]});d_e(await a.toBlob(g),`研发产品设计要求说明文档_AI-OUT-2026-0901.docx`)}var m_e=o((()=>{po(),w()})),h_e=c({default:()=>g_e});function g_e(){let e=ke(),{state:t,startRun:n,pauseRun:r,skipRun:i,resetRun:a,submitKnowledge:o,notify:s,ask:c}=vo(),[l,u]=(0,z9.useState)(t.currentStage),[d,f]=(0,z9.useState)(!1),[p,m]=(0,z9.useState)(``);(0,z9.useEffect)(()=>{t.isRunning&&u(t.currentStage)},[t.currentStage,t.isRunning]);let h=t.completedStages===6?100:Math.max(4,Math.round(t.completedStages/6*100)),g=t.runStatus===`completed`?`分析完成`:t.isPaused?`运行已暂停`:t.isRunning?`AI 分析运行中`:`等待运行`;return(0,X.jsxs)(`div`,{className:`page cockpit-page`,children:[(0,X.jsxs)(`div`,{className:`cockpit-header`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsxs)(`div`,{className:`cockpit-breadcrumb`,children:[(0,X.jsx)(`button`,{onClick:()=>e(`/`),children:`工作台`}),(0,X.jsx)(Br,{size:13}),(0,X.jsx)(`span`,{children:`AI 分析驾驶舱`})]}),(0,X.jsx)(`h1`,{children:`植保无人机 V2.1 改型动力套件开发`}),(0,X.jsxs)(`div`,{className:`task-meta`,children:[(0,X.jsx)(`span`,{children:`XQ-2026-0901`}),(0,X.jsx)(`span`,{children:`20kg 级植保多旋翼无人机`}),(0,X.jsx)(Do,{tone:t.runStatus===`completed`?`success`:t.isRunning?`brand`:`warning`,children:g})]})]}),(0,X.jsx)(`div`,{className:`cockpit-actions`,children:t.isRunning?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Eo,{variant:`secondary`,icon:(0,X.jsx)(sa,{size:16}),onClick:r,children:`暂停`}),(0,X.jsx)(Eo,{variant:`ghost`,icon:(0,X.jsx)(Ua,{size:16}),onClick:i,children:`跳过动画`})]}):t.isPaused?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Eo,{icon:(0,X.jsx)(ua,{size:16}),onClick:()=>n(!1),children:`继续运行`}),(0,X.jsx)(Eo,{variant:`secondary`,icon:(0,X.jsx)(ga,{size:16}),onClick:()=>n(!0),children:`重新运行`})]}):(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Eo,{icon:(0,X.jsx)(ua,{size:16}),onClick:()=>n(!0),children:t.runStatus===`completed`?`重新运行`:`运行 AI 分析`}),(0,X.jsx)(Eo,{variant:`ghost`,icon:(0,X.jsx)(ga,{size:16}),onClick:a,children:`重置`})]})})]}),(0,X.jsxs)(`div`,{className:`progress-rail`,children:[(0,X.jsxs)(`div`,{className:`progress-info`,children:[(0,X.jsxs)(`span`,{children:[(0,X.jsx)(Ka,{size:15}),` 研发标准化编排智能体`]}),(0,X.jsxs)(`strong`,{children:[h,`%`]})]}),(0,X.jsx)(`div`,{className:`progress-track`,children:(0,X.jsx)(`span`,{style:{width:`${h}%`}})})]}),(0,X.jsxs)(`div`,{className:`cockpit-layout`,children:[(0,X.jsxs)(`aside`,{className:`stage-sidebar`,children:[(0,X.jsxs)(`div`,{className:`stage-side-head`,children:[(0,X.jsx)(`span`,{className:`eyebrow`,children:`AGENT WORKFLOW`}),(0,X.jsx)(`strong`,{children:`六阶段分析流程`})]}),co.map((e,n)=>{let r=t.completedStages>n,i=t.isRunning?t.currentStage===n:l===n,a=t.evidence.length>0&&n>Math.max(t.currentStage,t.completedStages-1)&&t.completedStages<6;return(0,X.jsxs)(`button`,{className:`stage-button ${r?`done`:``} ${i?`active`:``}`,onClick:()=>!a&&u(n),disabled:a,children:[(0,X.jsx)(`span`,{className:`stage-marker`,children:r?(0,X.jsx)(Lr,{size:14}):i&&t.isRunning?(0,X.jsx)(`span`,{className:`pulse-dot`}):n+1}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`strong`,{children:e.title}),(0,X.jsx)(`small`,{children:w_e[n]})]}),i&&(0,X.jsx)(Br,{size:15})]},e.title)}),(0,X.jsxs)(`div`,{className:`agent-safety`,children:[(0,X.jsx)(Ba,{size:17}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`strong`,{children:`可审计运行`}),(0,X.jsx)(`small`,{children:`仅展示输入、规则、证据与结果,不展示隐含思维链。`})]})]})]}),(0,X.jsx)(`main`,{className:`stage-content`,children:t.evidence.length===0?(0,X.jsxs)(ko,{className:`cockpit-empty`,children:[(0,X.jsx)(`div`,{className:`empty-orb`,children:(0,X.jsx)(Or,{size:34})}),(0,X.jsx)(Do,{tone:`brand`,children:`任务数据已配置`}),(0,X.jsx)(`h2`,{children:`准备运行 AI 设计标准化分析`}),(0,X.jsx)(`p`,{children:`系统将在本地依次解析需求、检索相似物料、执行企业规则、优化 BOM、匹配历史方案并生成标准化文档。`}),(0,X.jsxs)(`div`,{className:`empty-facts`,children:[(0,X.jsxs)(`span`,{children:[(0,X.jsx)(Ur,{size:16}),`10 条物料已连接`]}),(0,X.jsxs)(`span`,{children:[(0,X.jsx)(Ur,{size:16}),`6 条规则已加载`]}),(0,X.jsxs)(`span`,{children:[(0,X.jsx)(Ur,{size:16}),`4 个案例已索引`]})]}),(0,X.jsx)(Eo,{icon:(0,X.jsx)(Ka,{size:17}),onClick:()=>n(!0),children:`一键运行 AI 分析`})]}):(0,X.jsx)(UY,{mode:`wait`,children:(0,X.jsx)(WZ.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.2},children:__e(l,{graphMode:d,setGraphMode:f,state:t,submitKnowledge:o,notify:s,navigate:e})},l)})}),(0,X.jsxs)(`aside`,{className:`evidence-sidebar`,children:[(0,X.jsxs)(`div`,{className:`evidence-head`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`span`,{className:`eyebrow`,children:`AUDIT TRAIL`}),(0,X.jsx)(`strong`,{children:`AI 证据轨迹`})]}),(0,X.jsx)(Do,{tone:t.isRunning?`brand`:t.completedStages===6?`success`:`neutral`,children:t.isRunning?`实时`:t.completedStages===6?`已固化`:`待运行`})]}),(0,X.jsx)(`div`,{className:`evidence-timeline`,children:t.evidence.length===0?(0,X.jsxs)(`div`,{className:`evidence-empty`,children:[(0,X.jsx)(ti,{size:24}),(0,X.jsx)(`p`,{children:`运行后,这里将逐条展示数据命中、规则编号和计算结果。`})]}):t.evidence.map((e,t)=>(0,X.jsxs)(WZ.div,{className:`evidence-event`,initial:{opacity:0,x:10},animate:{opacity:1,x:0},children:[(0,X.jsx)(`span`,{className:`event-node`,children:t+1}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`strong`,{children:e.title}),(0,X.jsx)(`p`,{children:e.detail}),(0,X.jsx)(`div`,{children:e.sourceIds.map(e=>(0,X.jsx)(`button`,{onClick:()=>s(`证据 ${e} 已在当前结果中高亮`),children:e},e))})]})]},e.id))}),(0,X.jsxs)(`div`,{className:`qa-panel`,children:[(0,X.jsxs)(`div`,{className:`qa-title`,children:[(0,X.jsx)(ta,{size:17}),(0,X.jsx)(`strong`,{children:`询问分析依据`})]}),(0,X.jsx)(`div`,{className:`quick-questions`,children:uo.map(e=>(0,X.jsxs)(`button`,{onClick:()=>c(e),children:[e,(0,X.jsx)(Br,{size:13})]},e))}),t.qa.length>0&&(0,X.jsxs)(`div`,{className:`qa-answer`,children:[(0,X.jsx)(`span`,{children:`最近回答`}),(0,X.jsx)(`strong`,{children:t.qa.at(-1)?.question}),(0,X.jsx)(`p`,{children:t.qa.at(-1)?.answer}),(0,X.jsx)(`div`,{children:t.qa.at(-1)?.sources.map(e=>(0,X.jsx)(Do,{tone:`blue`,children:e},e))})]}),(0,X.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),p.trim()&&(c(p.trim()),m(``))},className:`qa-input`,children:[(0,X.jsx)(`input`,{value:p,onChange:e=>m(e.target.value),placeholder:`输入关于结果的问题…`,"aria-label":`询问分析依据`}),(0,X.jsx)(`button`,{type:`submit`,"aria-label":`发送问题`,children:(0,X.jsx)(ja,{size:16})})]})]})]})]}),t.completedStages===6&&(0,X.jsxs)(`div`,{className:`result-summary-bar`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`span`,{className:`success-orb`,children:(0,X.jsx)(Lr,{size:18})}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`strong`,{children:`AI 标准化分析已完成`}),(0,X.jsx)(`small`,{children:`所有结论均保留物料、规则与案例证据`})]})]}),(0,X.jsxs)(`div`,{className:`summary-stats`,children:[(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`b`,{children:`3`}),` 推荐物料`]}),(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`b`,{children:`3`}),` 命中规则`]}),(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`b`,{children:`1`}),` 成熟案例`]}),(0,X.jsxs)(`span`,{className:`highlight`,children:[(0,X.jsx)(`b`,{children:`0`}),` 新增编码`]})]}),(0,X.jsx)(Eo,{icon:(0,X.jsx)(Ti,{size:16}),onClick:()=>e(`/document/AI-OUT-2026-0901`),children:`查看设计文档`})]})]})}function __e(e,t){switch(e){case 0:return(0,X.jsx)(v_e,{});case 1:return(0,X.jsx)(y_e,{});case 2:return(0,X.jsx)(b_e,{intent:t.state.intentMode});case 3:return(0,X.jsx)(x_e,{});case 4:return(0,X.jsx)(S_e,{graphMode:t.graphMode,setGraphMode:t.setGraphMode});default:return(0,X.jsx)(C_e,{...t})}}function R9({icon:e,eyebrow:t,title:n,description:r,badge:i}){return(0,X.jsxs)(`div`,{className:`stage-result-head`,children:[(0,X.jsx)(`div`,{className:`result-icon`,children:e}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`span`,{className:`eyebrow`,children:t}),(0,X.jsx)(`h2`,{children:n}),(0,X.jsx)(`p`,{children:r})]}),(0,X.jsx)(`div`,{children:i})]})}function v_e(){return(0,X.jsxs)(`div`,{className:`stage-view`,children:[(0,X.jsx)(R9,{icon:(0,X.jsx)(Ti,{size:22}),eyebrow:`STAGE 01`,title:`需求与图纸文本解析`,description:`已完成部件分类、单位归一化和关键参数结构化。`,badge:(0,X.jsxs)(Do,{tone:`success`,children:[(0,X.jsx)(Lr,{size:13}),`13 项参数`]})}),(0,X.jsx)(`div`,{className:`part-card-grid`,children:ao.map((e,t)=>(0,X.jsxs)(ko,{className:`part-card`,children:[(0,X.jsxs)(`div`,{className:`part-card-head`,children:[(0,X.jsxs)(`div`,{className:`part-number part-${t}`,children:[`0`,t+1]}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`strong`,{children:e.role}),(0,X.jsx)(`small`,{children:e.id})]}),(0,X.jsxs)(Do,{tone:`success`,children:[`置信度 `,t===1?`96`:`99`,`%`]})]}),(0,X.jsx)(`div`,{className:`parameter-grid`,children:e.parameterPairs.map(([e,t])=>(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`span`,{children:e}),(0,X.jsx)(`b`,{children:t})]},e))}),(0,X.jsxs)(`div`,{className:`source-line`,children:[(0,X.jsx)(gi,{size:14}),`来源:XQ-2026-0901 · 已归一化`]})]},e.id))}),(0,X.jsxs)(ko,{className:`normalization-panel`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(Kr,{size:18}),(0,X.jsx)(`strong`,{children:`参数归一化记录`})]}),(0,X.jsxs)(`div`,{className:`normalization-list`,children:[(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`del`,{children:`4-M6`}),(0,X.jsx)(gr,{size:13}),(0,X.jsx)(`b`,{children:`4 个 M6 安装孔`})]}),(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`del`,{children:`6*3mm`}),(0,X.jsx)(gr,{size:13}),(0,X.jsx)(`b`,{children:`6×3 mm`})]}),(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`del`,{children:`20公斤级`}),(0,X.jsx)(gr,{size:13}),(0,X.jsx)(`b`,{children:`20kg-class`})]})]})]})]})}function y_e(){return(0,X.jsxs)(`div`,{className:`stage-view`,children:[(0,X.jsx)(R9,{icon:(0,X.jsx)(Oa,{size:22}),eyebrow:`STAGE 02`,title:`相似零部件智能检索`,description:`参数相似度与物料推荐优先级分开计算,标准件与通用件优先。`,badge:(0,X.jsx)(Do,{tone:`brand`,children:`7 个候选`})}),(0,X.jsx)(`div`,{className:`similarity-stack`,children:oo.map(e=>(0,X.jsxs)(ko,{className:`similarity-group`,children:[(0,X.jsxs)(`div`,{className:`similarity-title`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`span`,{className:`part-dot`}),(0,X.jsx)(`strong`,{children:e.part}),(0,X.jsxs)(`small`,{children:[`主推荐 `,e.recommended]})]}),(0,X.jsx)(Do,{tone:`success`,children:`最高匹配 100%`})]}),(0,X.jsx)(`div`,{className:`candidate-list`,children:e.candidates.map((t,n)=>(0,X.jsxs)(`div`,{className:`candidate-row ${t.code===e.recommended?`recommended`:``}`,children:[(0,X.jsx)(`span`,{className:`candidate-rank`,children:n+1}),(0,X.jsxs)(`div`,{className:`candidate-code`,children:[(0,X.jsx)(`strong`,{children:t.code}),(0,X.jsx)(`small`,{children:t.note})]}),(0,X.jsx)(Do,{tone:t.type===`标准件`?`brand`:t.type===`通用件`?`success`:`warning`,children:t.type}),(0,X.jsxs)(`div`,{className:`score-cell`,children:[(0,X.jsx)(`div`,{children:(0,X.jsx)(`span`,{style:{width:`${t.score}%`}})}),(0,X.jsxs)(`b`,{children:[t.score,`%`]})]}),t.code===e.recommended?(0,X.jsxs)(`span`,{className:`recommend-label`,children:[(0,X.jsx)(Lr,{size:13}),`主推荐`]}):(0,X.jsx)(`span`,{className:`risk-label`,children:t.score===100?`编码风险`:`差异候选`})]},t.code))})]},e.part))}),(0,X.jsxs)(`div`,{className:`cross-product-note`,children:[(0,X.jsx)(Ya,{size:18}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`strong`,{children:`跨产品适配提示`}),(0,X.jsx)(`p`,{children:`SP-P-005 主数据适配产品为机器人动力套件,但 CASE-001 已提供 20kg 级无人机量产应用佐证;真实工况仍需工程师确认。`})]}),(0,X.jsx)(Do,{tone:`warning`,children:`需人工确认`})]})]})}function b_e({intent:e}){return(0,X.jsxs)(`div`,{className:`stage-view`,children:[(0,X.jsx)(R9,{icon:(0,X.jsx)(Ba,{size:22}),eyebrow:`STAGE 03`,title:`设计标准化合规校验`,description:`规则判断由企业标准和工程师初始意图共同驱动。`,badge:(0,X.jsx)(Do,{tone:e===`create_new`?`danger`:`success`,children:e===`create_new`?`3 条规则命中`:`复用意图已确认`})}),(0,X.jsxs)(`div`,{className:`rule-summary`,children:[(0,X.jsx)(No,{label:`高风险命中`,value:e===`create_new`?`2`:`0`,tone:`warning`}),(0,X.jsx)(No,{label:`中风险命中`,value:e===`create_new`?`1`:`0`,tone:`warning`}),(0,X.jsx)(No,{label:`规则通过`,value:e===`create_new`?`1`:`4`,tone:`success`}),(0,X.jsx)(No,{label:`不适用`,value:`2`,tone:`blue`})]}),(0,X.jsx)(ko,{className:`rule-table-panel`,children:(0,X.jsxs)(`div`,{className:`data-table rule-table`,children:[(0,X.jsxs)(`div`,{className:`table-row table-head`,children:[(0,X.jsx)(`span`,{children:`规则编号 / 名称`}),(0,X.jsx)(`span`,{children:`风险`}),(0,X.jsx)(`span`,{children:`结果`}),(0,X.jsx)(`span`,{children:`审计证据`})]}),so.map(t=>{let n=ro.find(e=>e.id===t.id),r=e===`reuse_first`&&t.status===`命中`?`通过`:t.status;return(0,X.jsxs)(`div`,{className:`table-row`,children:[(0,X.jsxs)(`span`,{children:[(0,X.jsx)(`b`,{children:n.id}),(0,X.jsx)(`small`,{children:n.name})]}),(0,X.jsx)(`span`,{children:(0,X.jsx)(Do,{tone:n.riskLevel===`高`?`danger`:n.riskLevel===`中`?`warning`:`neutral`,children:n.riskLevel})}),(0,X.jsx)(`span`,{children:(0,X.jsx)(Oo,{status:r})}),(0,X.jsx)(`span`,{children:r===`通过`&&e===`reuse_first`?`工程师已选择优先复用,不触发重复新建预警`:t.evidence})]},n.id)})]})}),(0,X.jsxs)(`div`,{className:`audit-explanation`,children:[(0,X.jsx)(Or,{size:20}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`strong`,{children:`AI 审计结论`}),(0,X.jsx)(`p`,{children:e===`create_new`?`当前拟新建 3 项物料与库内成熟件完全匹配,建议阻断重复建码并进入 BOM 复用推荐。`:`工程师已主动选择复用优先,本轮未发现重复新建意图;仍保留物料匹配与材质一致性证据。`})]})]})]})}function x_e(){return(0,X.jsxs)(`div`,{className:`stage-view`,children:[(0,X.jsx)(R9,{icon:(0,X.jsx)(Bi,{size:22}),eyebrow:`STAGE 04`,title:`BOM 物料智能推荐`,description:`在物料创建前完成复用判断,把标准化约束前移到设计发生时。`,badge:(0,X.jsx)(Do,{tone:`success`,children:`复用率 100%`})}),(0,X.jsxs)(`div`,{className:`bom-impact`,children:[(0,X.jsxs)(`div`,{className:`impact-card before`,children:[(0,X.jsx)(`span`,{children:`优化前`}),(0,X.jsx)(`strong`,{children:`3`}),(0,X.jsx)(`p`,{children:`拟新增物料编码`})]}),(0,X.jsx)(gr,{className:`impact-arrow`,size:22}),(0,X.jsxs)(`div`,{className:`impact-card after`,children:[(0,X.jsx)(`span`,{children:`优化后`}),(0,X.jsx)(`strong`,{children:`0`}),(0,X.jsx)(`p`,{children:`新增物料编码`})]}),(0,X.jsxs)(`div`,{className:`impact-metrics`,children:[(0,X.jsx)(No,{label:`定制件`,value:`3 → 0`,tone:`success`}),(0,X.jsx)(No,{label:`复用物料`,value:`0 → 3`,tone:`brand`}),(0,X.jsx)(No,{label:`范围内复用率`,value:`100%`,tone:`blue`})]})]}),(0,X.jsx)(ko,{className:`bom-table-panel`,children:(0,X.jsxs)(`div`,{className:`data-table bom-table`,children:[(0,X.jsxs)(`div`,{className:`table-row table-head`,children:[(0,X.jsx)(`span`,{children:`部件`}),(0,X.jsx)(`span`,{children:`优化前`}),(0,X.jsx)(`span`,{children:`优化后物料`}),(0,X.jsx)(`span`,{children:`属性`}),(0,X.jsx)(`span`,{children:`AI 建议`})]}),[[`电机基座`,`拟新建定制件`,`SP-M-001`,`通用件`,`取消新建,直接复用`],[`动力输出轴`,`拟新建定制件`,`SP-P-005`,`通用件`,`取消新建,直接复用`],[`减震垫圈`,`拟新建定制件`,`SP-S-011`,`标准件`,`取消定制,标准件优先`]].map(e=>(0,X.jsxs)(`div`,{className:`table-row`,children:[(0,X.jsx)(`span`,{children:(0,X.jsx)(`b`,{children:e[0]})}),(0,X.jsxs)(`span`,{className:`before-value`,children:[(0,X.jsx)(Qr,{size:14}),e[1]]}),(0,X.jsx)(`span`,{children:(0,X.jsx)(`b`,{children:e[2]})}),(0,X.jsx)(`span`,{children:(0,X.jsx)(Do,{tone:e[3]===`标准件`?`brand`:`success`,children:e[3]})}),(0,X.jsxs)(`span`,{className:`after-value`,children:[(0,X.jsx)(Ur,{size:14}),e[4]]})]},e[0]))]})}),(0,X.jsxs)(`div`,{className:`business-result`,children:[(0,X.jsx)(Ka,{size:20}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`span`,{children:`本次业务结论`}),(0,X.jsx)(`strong`,{children:`3 项拟新建物料全部可由库内成熟件替代,无需新增编码。`})]})]})]})}function S_e({graphMode:e,setGraphMode:t}){return(0,X.jsxs)(`div`,{className:`stage-view`,children:[(0,X.jsx)(R9,{icon:(0,X.jsx)(ya,{size:22}),eyebrow:`STAGE 05`,title:`历史成熟方案智能匹配`,description:`综合产品类型、核心部件覆盖度与量产成熟度排序。`,badge:(0,X.jsxs)(`div`,{className:`view-toggle`,children:[(0,X.jsxs)(`button`,{className:e?``:`active`,onClick:()=>t(!1),children:[(0,X.jsx)(Yi,{size:14}),`列表`]}),(0,X.jsxs)(`button`,{className:e?`active`:``,onClick:()=>t(!0),children:[(0,X.jsx)(ia,{size:14}),`关系图`]})]})}),e?(0,X.jsxs)(ko,{className:`relation-graph`,children:[(0,X.jsxs)(`div`,{className:`graph-node graph-current`,children:[(0,X.jsx)(`small`,{children:`当前需求`}),(0,X.jsx)(`strong`,{children:`植保无人机 V2.1`})]}),(0,X.jsx)(`div`,{className:`graph-edge edge-1`}),(0,X.jsxs)(`div`,{className:`graph-node graph-case`,children:[(0,X.jsx)(`small`,{children:`第一推荐`}),(0,X.jsx)(`strong`,{children:`CASE-001`}),(0,X.jsx)(`span`,{children:`三类核心物料覆盖`})]}),(0,X.jsx)(`div`,{className:`graph-edge edge-2`}),(0,X.jsxs)(`div`,{className:`graph-materials`,children:[(0,X.jsx)(`span`,{children:`SP-M-001`}),(0,X.jsx)(`span`,{children:`SP-P-005`}),(0,X.jsx)(`span`,{children:`SP-S-011`})]}),(0,X.jsx)(`div`,{className:`graph-edge edge-3`}),(0,X.jsxs)(`div`,{className:`graph-rules`,children:[(0,X.jsx)(`span`,{children:`RULE-001`}),(0,X.jsx)(`span`,{children:`RULE-002`}),(0,X.jsx)(`span`,{children:`RULE-003`})]}),(0,X.jsxs)(`p`,{className:`graph-caption`,children:[(0,X.jsx)(Pi,{size:15}),`图谱仅表达内置附件数据关系,不生成新实体。`]})]}):(0,X.jsx)(`div`,{className:`case-list`,children:io.slice(0,3).map((e,t)=>(0,X.jsxs)(ko,{className:`case-card ${t===0?`case-featured`:``}`,children:[(0,X.jsxs)(`div`,{className:`case-rank`,children:[t===0?(0,X.jsx)(Do,{tone:`success`,children:`第一推荐`}):(0,X.jsxs)(Do,{tone:`neutral`,children:[`候选 `,t+1]}),(0,X.jsxs)(`b`,{children:[t===0?`96%`:t===2?`84%`:`67%`,` 匹配`]})]}),(0,X.jsx)(`span`,{className:`case-id`,children:e.id}),(0,X.jsx)(`h3`,{children:e.name}),(0,X.jsx)(`p`,{children:e.parameterSummary}),(0,X.jsx)(`div`,{className:`case-tags`,children:e.tags.map(e=>(0,X.jsx)(Do,{tone:t===0?`brand`:`neutral`,children:e},e))}),(0,X.jsxs)(`div`,{className:`reused-line`,children:[(0,X.jsx)(jr,{size:15}),(0,X.jsx)(`span`,{children:`复用物料`}),e.reusedMaterials.map(e=>(0,X.jsx)(`b`,{children:e},e))]}),t===0&&(0,X.jsxs)(`div`,{className:`case-reason`,children:[(0,X.jsx)(Ur,{size:16}),`同时覆盖本次基座、输出轴、垫圈三类核心物料,且已量产验证。`]}),t===2&&(0,X.jsxs)(`div`,{className:`case-reason secondary`,children:[(0,X.jsx)(Yr,{size:16}),`未覆盖本次动力输出轴,因此排序低于 CASE-001。`]})]},e.id))})]})}function C_e({state:e,submitKnowledge:t,notify:n,navigate:r}){return(0,X.jsxs)(`div`,{className:`stage-view`,children:[(0,X.jsx)(R9,{icon:(0,X.jsx)(Ti,{size:22}),eyebrow:`STAGE 06`,title:`标准化文档与知识沉淀`,description:`把分析结论固化为可交付文档,并生成待专家审核的知识草稿。`,badge:(0,X.jsxs)(Do,{tone:`success`,children:[(0,X.jsx)(Lr,{size:13}),`闭环完成`]})}),(0,X.jsxs)(ko,{className:`output-document-card`,children:[(0,X.jsxs)(`div`,{className:`doc-art`,children:[(0,X.jsx)(gi,{size:34}),(0,X.jsx)(`span`,{children:`DOC`})]}),(0,X.jsxs)(`div`,{className:`doc-info`,children:[(0,X.jsx)(Do,{tone:`success`,children:`已生成`}),(0,X.jsx)(`h3`,{children:`研发产品设计要求说明文档`}),(0,X.jsx)(`p`,{children:`AI-OUT-2026-0901 · 6 个正文部分 · 11 条证据记录`}),(0,X.jsx)(`strong`,{children:`结论:无需新增 3 个定制物料编码`})]}),(0,X.jsxs)(`div`,{className:`doc-actions`,children:[(0,X.jsx)(Eo,{icon:(0,X.jsx)(pi,{size:16}),onClick:()=>r(`/document/AI-OUT-2026-0901`),children:`预览文档`}),(0,X.jsx)(Eo,{variant:`secondary`,icon:(0,X.jsx)(ui,{size:16}),onClick:async()=>{try{await p_e(),n(`Word 文档已生成并下载`)}catch{n(`Word 导出失败,可先下载 Markdown 或重试`)}},children:`下载 Word`}),(0,X.jsx)(Eo,{variant:`ghost`,icon:(0,X.jsx)(Ti,{size:16}),onClick:()=>{f_e(),n(`Markdown 文档已下载`)},children:`下载 MD`}),(0,X.jsx)(Eo,{variant:`ghost`,icon:(0,X.jsx)(pa,{size:16}),onClick:()=>window.print(),children:`打印 / PDF`})]})]}),(0,X.jsxs)(ko,{className:`knowledge-draft`,children:[(0,X.jsx)(`div`,{className:`knowledge-icon`,children:(0,X.jsx)(Or,{size:24})}),(0,X.jsxs)(`div`,{className:`knowledge-copy`,children:[(0,X.jsxs)(`div`,{children:[(0,X.jsx)(Do,{tone:e.knowledgeStatus===`待专家审核`?`warning`:`brand`,children:e.knowledgeStatus}),(0,X.jsx)(`span`,{children:`知识卡 KC-2026-0901`})]}),(0,X.jsx)(`h3`,{children:`植保无人机 V2.1 动力套件标准化改型方案`}),(0,X.jsx)(`p`,{children:`已关联需求、3 个复用物料、3 条命中规则与 CASE-001。正式入库前仍需专家确认真实工况与复用边界。`}),(0,X.jsxs)(`div`,{className:`knowledge-links`,children:[(0,X.jsx)(`span`,{children:`SP-M-001`}),(0,X.jsx)(`span`,{children:`SP-P-005`}),(0,X.jsx)(`span`,{children:`SP-S-011`}),(0,X.jsx)(`span`,{children:`RULE-001~003`})]})]}),(0,X.jsx)(Eo,{variant:e.knowledgeStatus===`审核中`?`secondary`:`primary`,icon:e.knowledgeStatus===`审核中`?(0,X.jsx)(ti,{size:16}):(0,X.jsx)(ja,{size:16}),onClick:t,disabled:e.knowledgeStatus===`审核中`,children:e.knowledgeStatus===`审核中`?`已提交审核`:`模拟提交审核`})]}),(0,X.jsxs)(`div`,{className:`boundary-notice`,children:[(0,X.jsx)(Ya,{size:18}),(0,X.jsxs)(`div`,{children:[(0,X.jsx)(`strong`,{children:`DEMO 边界`}),(0,X.jsx)(`p`,{children:`知识卡不会自动写入正式知识库,推荐 BOM 也不会回写 PLM / ERP。关键设计决策仍由工程师和标准化专家负责。`})]})]})]})}var z9,X,w_e,T_e=o((()=>{z9=u(p(),1),Wn(),Mhe(),eo(),Io(),po(),m_e(),To(),X=ho(),w_e=[`识别零件与关键参数`,`匹配已有成熟物料`,`执行企业研发规则`,`生成复用优先 BOM`,`关联量产成熟方案`,`输出文档与知识草稿`]})),E_e=c({default:()=>D_e});function D_e(){let[e,t]=Ft(),n=e.get(`tab`)||`materials`,[r,i]=(0,B9.useState)(``),[a,o]=(0,B9.useState)(`全部属性`),[s,c]=(0,B9.useState)(!1),[l,u]=(0,B9.useState)(null),d=e=>{t({tab:e}),i(``),u(null)};(0,B9.useEffect)(()=>{i(``),u(null)},[n]);let f=(0,B9.useMemo)(()=>no.filter(e=>[e.code,e.name,e.category,e.parametersText].some(e=>e.toLowerCase().includes(r.toLowerCase()))&&(a===`全部属性`||e.materialType===a)&&(!s||!!e.riskTag)),[a,r,s]),p=ro.filter(e=>[e.id,e.name,e.scope].some(e=>e.toLowerCase().includes(r.toLowerCase()))),m=io.filter(e=>[e.id,e.name,e.productType,...e.tags].some(e=>e.toLowerCase().includes(r.toLowerCase()))),h=n===`materials`?f.length:n===`rules`?p.length:m.length;return(0,Z.jsxs)(`div`,{className:`page knowledge-page`,children:[(0,Z.jsxs)(`div`,{className:`page-heading knowledge-heading`,children:[(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{className:`eyebrow`,children:`STANDARDIZATION KNOWLEDGE`}),(0,Z.jsx)(`h1`,{children:`研发标准化知识中心`}),(0,Z.jsx)(`p`,{children:`统一浏览物料主数据、企业规则与历史成熟方案,所有演示结论均可回溯到这里。`})]}),(0,Z.jsxs)(`div`,{className:`knowledge-overview`,children:[(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(si,{size:18}),(0,Z.jsx)(`b`,{children:`20`}),(0,Z.jsx)(`span`,{children:`结构化数据资产`})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(Ur,{size:18}),(0,Z.jsx)(`b`,{children:`100%`}),(0,Z.jsx)(`span`,{children:`演示结论可追溯`})]})]})]}),(0,Z.jsxs)(`div`,{className:`knowledge-tabs`,children:[(0,Z.jsxs)(`button`,{className:n===`materials`?`active`:``,onClick:()=>d(`materials`),children:[(0,Z.jsx)(Pr,{size:17}),(0,Z.jsx)(`span`,{children:`物料零件库`}),(0,Z.jsx)(`b`,{children:`10`})]}),(0,Z.jsxs)(`button`,{className:n===`rules`?`active`:``,onClick:()=>d(`rules`),children:[(0,Z.jsx)(Ba,{size:17}),(0,Z.jsx)(`span`,{children:`标准化规则库`}),(0,Z.jsx)(`b`,{children:`6`})]}),(0,Z.jsxs)(`button`,{className:n===`cases`?`active`:``,onClick:()=>d(`cases`),children:[(0,Z.jsx)(ya,{size:17}),(0,Z.jsx)(`span`,{children:`历史成熟方案`}),(0,Z.jsx)(`b`,{children:`4`})]})]}),(0,Z.jsxs)(ko,{className:`knowledge-toolbar`,children:[(0,Z.jsxs)(`div`,{className:`search-box`,children:[(0,Z.jsx)(Oa,{size:17}),(0,Z.jsx)(`input`,{value:r,onChange:e=>i(e.target.value),placeholder:n===`materials`?`搜索物料编码、名称、类别或参数`:n===`rules`?`搜索规则编号、名称或适用范围`:`搜索案例、产品类型或标签`}),r&&(0,Z.jsx)(`button`,{onClick:()=>i(``),"aria-label":`清空搜索`,children:(0,Z.jsx)(Qa,{size:15})})]}),n===`materials`&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`select`,{value:a,onChange:e=>o(e.target.value),"aria-label":`筛选物料属性`,children:[(0,Z.jsx)(`option`,{children:`全部属性`}),(0,Z.jsx)(`option`,{children:`标准件`}),(0,Z.jsx)(`option`,{children:`通用件`}),(0,Z.jsx)(`option`,{children:`定制件`})]}),(0,Z.jsxs)(`button`,{className:`filter-toggle ${s?`active`:``}`,onClick:()=>c(!s),children:[(0,Z.jsx)(ji,{size:15}),`仅看治理风险`]})]}),(0,Z.jsxs)(`span`,{className:`result-count`,children:[`显示 `,(0,Z.jsx)(`b`,{children:h}),` 条`]})]}),h===0?(0,Z.jsxs)(ko,{className:`empty-search`,children:[(0,Z.jsx)(yi,{size:36}),(0,Z.jsx)(`h3`,{children:`未找到匹配结果`}),(0,Z.jsx)(`p`,{children:`尝试更换关键词或清除当前筛选条件。`}),(0,Z.jsx)(Eo,{variant:`secondary`,onClick:()=>{i(``),o(`全部属性`),c(!1)},children:`清除筛选`})]}):n===`materials`?(0,Z.jsx)(O_e,{items:f,onSelect:u}):n===`rules`?(0,Z.jsx)(k_e,{items:p,onSelect:u}):(0,Z.jsx)(A_e,{items:m,onSelect:u}),(0,Z.jsx)(jo,{open:!!l,onClose:()=>u(null),title:l?`code`in l?`${l.code} · ${l.name}`:`${l.id} · ${l.name}`:`知识详情`,children:l&&(0,Z.jsx)(j_e,{item:l})})]})}function O_e({items:e,onSelect:t}){let n=ke();return(0,Z.jsxs)(ko,{className:`knowledge-table-panel`,children:[(0,Z.jsx)(Ao,{eyebrow:`MATERIAL MASTER`,title:`物料主数据与标准属性`,action:(0,Z.jsx)(Eo,{variant:`secondary`,icon:(0,Z.jsx)(ia,{size:15}),onClick:()=>n(`/knowledge/graph`),children:`物料知识图谱`})}),(0,Z.jsxs)(`div`,{className:`knowledge-table`,children:[(0,Z.jsxs)(`div`,{className:`knowledge-row knowledge-head`,children:[(0,Z.jsx)(`span`,{children:`物料编码 / 名称`}),(0,Z.jsx)(`span`,{children:`类别`}),(0,Z.jsx)(`span`,{children:`关键参数`}),(0,Z.jsx)(`span`,{children:`属性`}),(0,Z.jsx)(`span`,{children:`治理状态`})]}),e.map(e=>(0,Z.jsxs)(`button`,{className:`knowledge-row`,onClick:()=>t(e),children:[(0,Z.jsxs)(`span`,{children:[(0,Z.jsx)(`b`,{children:e.code}),(0,Z.jsxs)(`small`,{children:[e.name,` · `,e.drawingNo]})]}),(0,Z.jsx)(`span`,{children:e.category}),(0,Z.jsx)(`span`,{className:`parameter-cell`,children:e.parametersText}),(0,Z.jsx)(`span`,{children:(0,Z.jsx)(Do,{tone:e.materialType===`标准件`?`brand`:e.materialType===`通用件`?`success`:`warning`,children:e.materialType})}),(0,Z.jsx)(`span`,{children:e.riskTag?(0,Z.jsx)(Do,{tone:`danger`,children:e.riskTag}):(0,Z.jsx)(Do,{tone:`success`,children:`正常`})})]},e.code))]})]})}function k_e({items:e,onSelect:t}){return(0,Z.jsx)(`div`,{className:`rule-library-grid`,children:e.map((e,n)=>(0,Z.jsxs)(ko,{className:`rule-library-card`,children:[(0,Z.jsxs)(`div`,{className:`rule-library-head`,children:[(0,Z.jsx)(`span`,{children:(0,Z.jsx)(Ba,{size:19})}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`b`,{children:e.id}),(0,Z.jsx)(`small`,{children:e.scope})]}),(0,Z.jsxs)(Do,{tone:e.riskLevel===`高`?`danger`:e.riskLevel===`中`?`warning`:`neutral`,children:[e.riskLevel,`风险`]})]}),(0,Z.jsx)(`h3`,{children:e.name}),(0,Z.jsx)(`p`,{children:e.condition}),(0,Z.jsxs)(`div`,{className:`rule-hit`,children:[(0,Z.jsx)(`span`,{children:`当前任务`}),(0,Z.jsx)(`b`,{children:n<3?`命中 1 次`:n===5?`通过 1 次`:`未触发`})]}),(0,Z.jsx)(Eo,{variant:`ghost`,className:`full-button`,onClick:()=>t(e),children:`查看校验条件`})]},e.id))})}function A_e({items:e,onSelect:t}){return(0,Z.jsx)(`div`,{className:`case-library-grid`,children:e.map((e,n)=>(0,Z.jsxs)(ko,{className:`case-library-card ${e.id===`CASE-001`?`featured`:``}`,children:[(0,Z.jsxs)(`div`,{className:`case-cover`,children:[(0,Z.jsx)(Tr,{size:25}),(0,Z.jsx)(`span`,{children:e.id}),e.id===`CASE-001`&&(0,Z.jsx)(Do,{tone:`success`,children:`当前任务第一推荐`})]}),(0,Z.jsx)(`h3`,{children:e.name}),(0,Z.jsx)(`p`,{children:e.productType}),(0,Z.jsx)(`div`,{className:`case-tags`,children:e.tags.map(e=>(0,Z.jsx)(Do,{tone:`neutral`,children:e},e))}),(0,Z.jsxs)(`div`,{className:`case-material-count`,children:[(0,Z.jsx)(Pr,{size:15}),(0,Z.jsx)(`span`,{children:`可复用物料`}),(0,Z.jsxs)(`b`,{children:[e.reusedMaterials.length,` 项`]})]}),(0,Z.jsx)(Eo,{variant:n===0?`primary`:`secondary`,className:`full-button`,onClick:()=>t(e),children:`查看匹配证据`})]},e.id))})}function j_e({item:e}){return`code`in e?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`detail-hero`,children:[(0,Z.jsx)(`div`,{className:`detail-code`,children:e.code}),(0,Z.jsx)(Do,{tone:e.materialType===`标准件`?`brand`:e.materialType===`通用件`?`success`:`warning`,children:e.materialType}),e.riskTag&&(0,Z.jsx)(Do,{tone:`danger`,children:e.riskTag})]}),(0,Z.jsxs)(`div`,{className:`detail-list`,children:[(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`物料名称`}),(0,Z.jsx)(`b`,{children:e.name})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`类别`}),(0,Z.jsx)(`b`,{children:e.category})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`关键参数`}),(0,Z.jsx)(`b`,{children:e.parametersText})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`适配产品`}),(0,Z.jsx)(`b`,{children:e.compatibleProduct})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`图纸编号`}),(0,Z.jsx)(`b`,{children:e.drawingNo})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`数据说明`}),(0,Z.jsx)(`b`,{children:e.note})]})]}),e.canonicalCode&&(0,Z.jsxs)(`div`,{className:`drawer-summary danger-summary`,children:[(0,Z.jsx)(Ba,{size:20}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsxs)(`strong`,{children:[`建议主编码:`,e.canonicalCode]}),(0,Z.jsx)(`p`,{children:`该结论用于演示主数据治理,不执行真实合并或停用。`})]})]})]}):`riskLevel`in e?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`detail-hero`,children:[(0,Z.jsx)(`div`,{className:`detail-code`,children:e.id}),(0,Z.jsxs)(Do,{tone:e.riskLevel===`高`?`danger`:e.riskLevel===`中`?`warning`:`neutral`,children:[e.riskLevel,`风险`]})]}),(0,Z.jsxs)(`div`,{className:`detail-list`,children:[(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`适用范围`}),(0,Z.jsx)(`b`,{children:e.scope})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`校验条件`}),(0,Z.jsx)(`b`,{children:e.condition})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`违规判定`}),(0,Z.jsx)(`b`,{children:e.violation})]})]}),(0,Z.jsxs)(`div`,{className:`drawer-summary`,children:[(0,Z.jsx)(Ba,{size:20}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`strong`,{children:`AI 提示文案`}),(0,Z.jsx)(`p`,{children:e.message})]})]})]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`div`,{className:`detail-hero`,children:[(0,Z.jsx)(`div`,{className:`detail-code`,children:e.id}),(0,Z.jsx)(Do,{tone:e.id===`CASE-001`?`success`:`neutral`,children:e.id===`CASE-001`?`当前第一推荐`:`历史案例`})]}),(0,Z.jsxs)(`div`,{className:`detail-list`,children:[(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`产品类型`}),(0,Z.jsx)(`b`,{children:e.productType})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`参数摘要`}),(0,Z.jsx)(`b`,{children:e.parameterSummary})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`span`,{children:`成熟方案`}),(0,Z.jsx)(`b`,{children:e.solution})]})]}),(0,Z.jsx)(`h3`,{className:`detail-subtitle`,children:`复用物料`}),(0,Z.jsx)(`div`,{className:`knowledge-links`,children:e.reusedMaterials.map(e=>(0,Z.jsx)(`span`,{children:e},e))}),e.id===`CASE-001`&&(0,Z.jsxs)(`div`,{className:`drawer-summary`,children:[(0,Z.jsx)(Ur,{size:20}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`strong`,{children:`匹配依据`}),(0,Z.jsx)(`p`,{children:`同时覆盖本次基座、输出轴、垫圈三类核心物料,且属于 20kg 级多旋翼无人机量产方案。`})]})]})]})}var B9,Z,M_e=o((()=>{B9=u(p(),1),Wn(),eo(),Io(),po(),Z=ho()})),N_e=c({default:()=>P_e});function P_e(){let e=ke(),[t,n]=(0,V9.useState)(0),[r,i]=(0,V9.useState)(null),a=(0,V9.useMemo)(()=>{let e=H9.map((e,t)=>{let n=(-90+t*90)*Math.PI/180;return{...e,x:K9+J9*Math.cos(n),y:q9+J9*Math.sin(n),angle:n}}),t=[],n=0;for(let r of e){let e=no.filter(e=>e.category===r.name);e.forEach((i,a)=>{let o=(a-(e.length-1)/2)*17,s=r.angle+o*Math.PI/180;t.push({...i,x:K9+Y9*Math.cos(s),y:q9+Y9*Math.sin(s),color:r.color,catName:r.name,delay:1.8+n*.12}),n+=1})}return{catNodes:e,matNodes:t,riskEdges:no.filter(e=>e.riskTag&&e.canonicalCode).map((e,n)=>{let r=t.find(t=>t.code===e.canonicalCode),i=t.find(t=>t.code===e.code),a=(r.x+i.x)/2,o=(r.y+i.y)/2,s=a-K9,c=o-q9,l=Math.hypot(s,c)||1;return{from:r,to:i,tag:e.riskTag,color:U9[e.riskTag],lx:a+s/l*52,ly:o+c/l*52,delay:3.6+n*.4}})}},[]),o=r?.kind===`material`?no.find(e=>e.code===r.code)??null:null,s=r?.kind===`category`?H9.find(e=>e.name===r.name)??null:null;return(0,Q.jsxs)(`div`,{className:`page graph-page`,children:[(0,Q.jsxs)(`div`,{className:`page-heading`,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`button`,{className:`back-link`,onClick:()=>e(`/knowledge?tab=materials`),children:[(0,Q.jsx)(yr,{size:16}),`返回物料零件库`]}),(0,Q.jsx)(`span`,{className:`eyebrow`,children:`MATERIAL KNOWLEDGE GRAPH`}),(0,Q.jsx)(`h1`,{children:`物料知识图谱`}),(0,Q.jsx)(`p`,{children:`以轨道布局呈现物料库的分类归属与治理风险关联结构,节点与连线按“类别枢纽 → 物料节点 → 风险连线”顺序缓慢生成。`})]}),(0,Q.jsxs)(`div`,{className:`graph-head-side`,children:[(0,Q.jsxs)(`div`,{className:`graph-stats`,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`b`,{children:`10`}),(0,Q.jsx)(`span`,{children:`物料节点`})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`b`,{children:`4`}),(0,Q.jsx)(`span`,{children:`类别枢纽`})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`b`,{children:a.riskEdges.length}),(0,Q.jsx)(`span`,{children:`治理风险连线`})]})]}),(0,Q.jsx)(Eo,{variant:`secondary`,icon:(0,Q.jsx)(Sa,{size:15}),onClick:()=>{n(t+1),i(null)},children:`重播动画`})]})]}),(0,Q.jsxs)(`div`,{className:`graph-stage`,children:[(0,Q.jsxs)(`svg`,{className:`graph-svg`,viewBox:`0 0 ${W9} ${G9}`,role:`img`,"aria-label":`物料知识图谱`,children:[(0,Q.jsx)(`circle`,{cx:K9,cy:q9,r:J9,className:`graph-ring`}),(0,Q.jsx)(`circle`,{cx:K9,cy:q9,r:Y9,className:`graph-ring`}),a.catNodes.map((e,t)=>(0,Q.jsx)(`line`,{x1:K9,y1:q9,x2:e.x,y2:e.y,pathLength:1,className:`graph-edge`,stroke:e.color,strokeOpacity:.45,style:X9(.9+t*.18)},`ce-${e.name}`)),a.matNodes.map(e=>{let t=a.catNodes.find(t=>t.name===e.catName);return(0,Q.jsx)(`line`,{x1:t.x,y1:t.y,x2:e.x,y2:e.y,pathLength:1,className:`graph-edge`,stroke:e.color,strokeOpacity:.3,style:X9(e.delay+.2)},`me-${e.code}`)}),a.riskEdges.map(e=>(0,Q.jsxs)(`g`,{children:[(0,Q.jsx)(`path`,{d:`M ${e.from.x} ${e.from.y} Q ${e.lx} ${e.ly} ${e.to.x} ${e.to.y}`,fill:`none`,stroke:e.color,strokeOpacity:.75,strokeWidth:1.6,strokeDasharray:`7 5`,className:`graph-fade`,style:X9(e.delay)}),(0,Q.jsx)(`text`,{x:e.lx,y:e.ly,className:`graph-risk-label graph-fade`,fill:e.color,style:X9(e.delay+.35),children:e.tag})]},`re-${e.to.code}`)),(0,Q.jsxs)(`g`,{className:`graph-node`,style:X9(.1),children:[(0,Q.jsx)(`circle`,{cx:K9,cy:q9,r:46,className:`graph-center-circle`}),(0,Q.jsx)(`text`,{x:K9,y:358,className:`graph-center-num`,children:`10`}),(0,Q.jsx)(`text`,{x:K9,y:380,className:`graph-center-label`,children:`物料零件`})]}),a.catNodes.map((e,t)=>(0,Q.jsxs)(`g`,{className:`graph-node`,style:X9(.6+t*.18),onClick:()=>i({kind:`category`,name:e.name}),children:[(0,Q.jsx)(`circle`,{cx:e.x,cy:e.y,r:30,fill:e.color,fillOpacity:.16,stroke:e.color,strokeOpacity:.8,strokeWidth:1.4}),(0,Q.jsx)(`text`,{x:e.x,y:e.y+4,className:`graph-cat-label`,fill:e.color,children:e.short})]},e.name)),a.matNodes.map(e=>(0,Q.jsxs)(`g`,{className:`graph-node`,style:X9(e.delay),onClick:()=>i({kind:`material`,code:e.code}),children:[(0,Q.jsx)(`circle`,{cx:e.x,cy:e.y,r:17,fill:`#0d1b2e`,stroke:e.color,strokeWidth:1.6,strokeOpacity:.9}),e.riskTag&&(0,Q.jsx)(`circle`,{cx:e.x+12,cy:e.y-12,r:4.5,fill:U9[e.riskTag]}),(0,Q.jsx)(`text`,{x:e.x,y:e.y+34,className:`graph-code-label`,children:e.code})]},e.code))]},t),(0,Q.jsxs)(`div`,{className:`graph-legend`,children:[(0,Q.jsx)(`strong`,{children:`图例`}),(0,Q.jsx)(`div`,{children:H9.map(e=>(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(`i`,{style:{background:e.color}}),e.short]},e.name))}),(0,Q.jsx)(`div`,{children:Object.entries(U9).map(([e,t])=>(0,Q.jsxs)(`span`,{children:[(0,Q.jsx)(`i`,{className:`dash`,style:{background:t}}),e]},e))}),(0,Q.jsx)(`small`,{children:`点击节点查看物料证据与关联说明。`})]}),o&&(0,Q.jsxs)(`aside`,{className:`graph-detail`,children:[(0,Q.jsxs)(`div`,{className:`graph-detail-head`,children:[(0,Q.jsx)(ia,{size:16}),(0,Q.jsx)(`strong`,{children:o.code}),(0,Q.jsx)(`button`,{className:`icon-button`,onClick:()=>i(null),"aria-label":`关闭详情`,children:(0,Q.jsx)(Qa,{size:16})})]}),(0,Q.jsx)(`p`,{className:`graph-detail-name`,children:o.name}),(0,Q.jsxs)(`div`,{className:`graph-detail-tags`,children:[(0,Q.jsx)(Do,{tone:o.materialType===`标准件`?`brand`:o.materialType===`通用件`?`success`:`warning`,children:o.materialType}),o.riskTag&&(0,Q.jsx)(Do,{tone:`danger`,children:o.riskTag})]}),(0,Q.jsxs)(`div`,{className:`detail-list`,children:[(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{children:`类别`}),(0,Q.jsx)(`b`,{children:o.category})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{children:`关键参数`}),(0,Q.jsx)(`b`,{children:o.parametersText})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{children:`适配产品`}),(0,Q.jsx)(`b`,{children:o.compatibleProduct})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{children:`图纸编号`}),(0,Q.jsx)(`b`,{children:o.drawingNo})]}),(0,Q.jsxs)(`div`,{children:[(0,Q.jsx)(`span`,{children:`数据说明`}),(0,Q.jsx)(`b`,{children:o.note})]})]}),o.canonicalCode&&(0,Q.jsxs)(`div`,{className:`graph-detail-note`,children:[`治理建议:建议主编码 `,o.canonicalCode,`,该关系仅用于演示主数据治理,不执行真实合并。`]})]}),s&&(0,Q.jsxs)(`aside`,{className:`graph-detail`,children:[(0,Q.jsxs)(`div`,{className:`graph-detail-head`,children:[(0,Q.jsx)(ia,{size:16}),(0,Q.jsx)(`strong`,{children:s.name}),(0,Q.jsx)(`button`,{className:`icon-button`,onClick:()=>i(null),"aria-label":`关闭详情`,children:(0,Q.jsx)(Qa,{size:16})})]}),(0,Q.jsxs)(`p`,{className:`graph-detail-name`,children:[`类别枢纽 · `,no.filter(e=>e.category===s.name).length,` 个物料节点`]}),(0,Q.jsx)(`div`,{className:`graph-cat-members`,children:no.filter(e=>e.category===s.name).map(e=>(0,Q.jsxs)(`button`,{onClick:()=>i({kind:`material`,code:e.code}),children:[e.code,(0,Q.jsx)(`small`,{children:e.name})]},e.code))})]})]})]})}var V9,Q,H9,U9,W9,G9,K9,q9,J9,Y9,X9,F_e=o((()=>{V9=u(p(),1),Wn(),eo(),Io(),po(),Q=ho(),H9=[{name:`动力套件-结构件`,short:`结构件`,color:`#5a7cff`},{name:`动力套件-传动件`,short:`传动件`,color:`#36c7bd`},{name:`动力套件-辅件`,short:`辅件`,color:`#a78bfa`},{name:`紧固件`,short:`紧固件`,color:`#3ddc97`}],U9={一物多码:`#ff6b6b`,重复建码:`#f3b64d`,非必要非标:`#5a7cff`},W9=1e3,G9=720,K9=W9/2,q9=G9/2,J9=150,Y9=292,X9=e=>({"--d":`${e}s`})})),I_e=c({default:()=>L_e});function L_e(){let e=ke(),{state:t,submitKnowledge:n,notify:r}=vo(),[i,a]=(0,Z9.useState)(0),o=e=>{a(e),document.getElementById(`doc-section-${e}`)?.scrollIntoView({behavior:`smooth`,block:`start`})};return(0,$.jsxs)(`div`,{className:`page document-page`,children:[(0,$.jsxs)(`div`,{className:`document-toolbar`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsxs)(`button`,{className:`back-link`,onClick:()=>e(`/task/demo-v21`),children:[(0,$.jsx)(yr,{size:16}),`返回 AI 驾驶舱`]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(gi,{size:22}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`strong`,{children:`AI-OUT-2026-0901`}),(0,$.jsx)(`small`,{children:`研发产品设计要求说明文档`})]}),(0,$.jsx)(Do,{tone:`success`,children:`标准化校验版`})]})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(Eo,{variant:`secondary`,icon:(0,$.jsx)(Ti,{size:16}),onClick:()=>{f_e(),r(`Markdown 文档已下载`)},children:`下载 Markdown`}),(0,$.jsx)(Eo,{variant:`secondary`,icon:(0,$.jsx)(ui,{size:16}),onClick:async()=>{try{await p_e(),r(`Word 文档已生成并下载`)}catch{r(`Word 导出失败,请重试或下载 Markdown`)}},children:`下载 Word`}),(0,$.jsx)(Eo,{icon:(0,$.jsx)(pa,{size:16}),onClick:()=>window.print(),children:`打印 / 导出 PDF`})]})]}),(0,$.jsxs)(`div`,{className:`document-layout`,children:[(0,$.jsxs)(`aside`,{className:`document-outline`,children:[(0,$.jsx)(`span`,{className:`eyebrow`,children:`DOCUMENT OUTLINE`}),(0,$.jsx)(`strong`,{children:`文档目录`}),R_e.map((e,t)=>(0,$.jsxs)(`button`,{className:i===t?`active`:``,onClick:()=>o(t),children:[(0,$.jsx)(`span`,{children:String(t+1).padStart(2,`0`)}),e]},e)),(0,$.jsxs)(`div`,{className:`document-status-card`,children:[(0,$.jsx)(Ba,{size:18}),(0,$.jsx)(`strong`,{children:`证据完整`}),(0,$.jsx)(`p`,{children:`3 个物料、3 条规则、1 个案例均已关联。`})]})]}),(0,$.jsxs)(`article`,{className:`document-paper`,children:[(0,$.jsx)(`header`,{className:`paper-header`,children:(0,$.jsxs)(`div`,{className:`paper-brand`,children:[(0,$.jsx)(`div`,{className:`paper-logo`,children:(0,$.jsx)(`img`,{src:`/assets/nanchang-sanrui-logo.png`,alt:`南昌三瑞智能标识`})}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`b`,{children:`三瑞智能`}),(0,$.jsx)(`small`,{children:`AI DESIGN STANDARDIZATION`})]})]})}),(0,$.jsxs)(`div`,{className:`paper-title`,children:[(0,$.jsx)(`span`,{children:`研发产品设计要求说明文档`}),(0,$.jsx)(`h1`,{children:`标准化校验版`}),(0,$.jsx)(`p`,{children:`由 AI 设计标准化智能体基于内置需求、物料、规则与历史案例自动生成`})]}),(0,$.jsxs)(`div`,{className:`paper-meta`,children:[(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`span`,{children:`项目名称`}),(0,$.jsx)(`b`,{children:`植保无人机 V2.1 改型动力套件开发`})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`span`,{children:`文档编号`}),(0,$.jsx)(`b`,{children:`AI-OUT-2026-0901`})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`span`,{children:`生成时间`}),(0,$.jsx)(`b`,{children:`2026-09-01(AI 自动生成)`})]}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`span`,{children:`审核状态`}),(0,$.jsx)(`b`,{children:`待研发工程师、标准化工程师确认`})]})]}),(0,$.jsxs)(`div`,{className:`paper-callout`,children:[(0,$.jsx)(Lr,{size:22}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`span`,{children:`AI 标准化结论`}),(0,$.jsx)(`strong`,{children:`本次范围内 3 项拟新建物料全部可复用,无需新增定制物料编码。`})]})]}),(0,$.jsxs)(`section`,{id:`doc-section-0`,children:[(0,$.jsxs)(`h2`,{children:[(0,$.jsx)(`span`,{children:`01`}),`一、参数解析结果`]}),(0,$.jsx)(`p`,{children:`AI 解析需求文档提取关键设计参数:电机基座外径 62mm,孔距 48mm,厚度 8mm,4-M6 安装孔,材质 6061 铝合金;动力输出轴轴径 20mm,键槽 6×3mm,总长 75mm,40Cr 调质;减震垫圈内径 62mm,外径 72mm,厚度 2mm,硅胶。`}),(0,$.jsxs)(`table`,{children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{children:[(0,$.jsx)(`th`,{children:`零部件`}),(0,$.jsx)(`th`,{children:`关键几何 / 接口`}),(0,$.jsx)(`th`,{children:`材质 / 处理`}),(0,$.jsx)(`th`,{children:`数据来源`})]})}),(0,$.jsxs)(`tbody`,{children:[(0,$.jsxs)(`tr`,{children:[(0,$.jsx)(`td`,{children:`电机基座`}),(0,$.jsx)(`td`,{children:`Ø62 · 孔距48 · 厚8 · 4-M6`}),(0,$.jsx)(`td`,{children:`6061 铝合金`}),(0,$.jsx)(`td`,{children:`REQ-PART-001`})]}),(0,$.jsxs)(`tr`,{children:[(0,$.jsx)(`td`,{children:`动力输出轴`}),(0,$.jsx)(`td`,{children:`Ø20 · 键槽6×3 · 长75`}),(0,$.jsx)(`td`,{children:`40Cr 调质`}),(0,$.jsx)(`td`,{children:`REQ-PART-002`})]}),(0,$.jsxs)(`tr`,{children:[(0,$.jsx)(`td`,{children:`减震垫圈`}),(0,$.jsx)(`td`,{children:`内Ø62 · 外Ø72 · 厚2`}),(0,$.jsx)(`td`,{children:`硅胶`}),(0,$.jsx)(`td`,{children:`REQ-PART-003`})]})]})]})]}),(0,$.jsxs)(`section`,{id:`doc-section-1`,children:[(0,$.jsxs)(`h2`,{children:[(0,$.jsx)(`span`,{children:`02`}),`二、相似零部件检索结果`]}),(0,$.jsx)(`p`,{children:`系统检索企业物料库,匹配到 3 项可复用成熟物料:`}),(0,$.jsxs)(`ol`,{children:[(0,$.jsxs)(`li`,{children:[(0,$.jsx)(`b`,{children:`电机基座:`}),`SP-M-001(通用件),参数完全匹配,无需新建。`]}),(0,$.jsxs)(`li`,{children:[(0,$.jsx)(`b`,{children:`动力输出轴:`}),`SP-P-005(通用件),参数完全匹配;CASE-001 提供无人机应用佐证。`]}),(0,$.jsxs)(`li`,{children:[(0,$.jsx)(`b`,{children:`减震垫圈:`}),`SP-S-011(企业标准件),参数完全匹配,无需新建。`]})]})]}),(0,$.jsxs)(`section`,{id:`doc-section-2`,children:[(0,$.jsxs)(`h2`,{children:[(0,$.jsx)(`span`,{children:`03`}),`三、标准化合规校验结果`]}),(0,$.jsxs)(`div`,{className:`paper-warning`,children:[(0,$.jsx)(`strong`,{children:`风险预警`}),(0,$.jsx)(`p`,{children:`当前设计方案计划新建 3 项物料,参数与现有成熟物料完全一致,存在一物多码、重复设计风险。`})]}),(0,$.jsx)(`p`,{children:`命中校验规则:RULE-001(基座复用)、RULE-002(传动轴复用)、RULE-003(标准件优先)。AI 建议取消新建物料,优先复用现有物料。`})]}),(0,$.jsxs)(`section`,{id:`doc-section-3`,children:[(0,$.jsxs)(`h2`,{children:[(0,$.jsx)(`span`,{children:`04`}),`四、BOM 物料智能推荐清单`]}),(0,$.jsxs)(`table`,{children:[(0,$.jsx)(`thead`,{children:(0,$.jsxs)(`tr`,{children:[(0,$.jsx)(`th`,{children:`推荐物料编码`}),(0,$.jsx)(`th`,{children:`物料名称`}),(0,$.jsx)(`th`,{children:`物料属性`}),(0,$.jsx)(`th`,{children:`复用建议`})]})}),(0,$.jsxs)(`tbody`,{children:[(0,$.jsxs)(`tr`,{children:[(0,$.jsx)(`td`,{children:(0,$.jsx)(`b`,{children:`SP-M-001`})}),(0,$.jsx)(`td`,{children:`无刷电机基座A`}),(0,$.jsx)(`td`,{children:`通用件`}),(0,$.jsx)(`td`,{className:`paper-success`,children:`优先选用`})]}),(0,$.jsxs)(`tr`,{children:[(0,$.jsx)(`td`,{children:(0,$.jsx)(`b`,{children:`SP-P-005`})}),(0,$.jsx)(`td`,{children:`动力输出轴-20`}),(0,$.jsx)(`td`,{children:`通用件`}),(0,$.jsx)(`td`,{className:`paper-success`,children:`优先选用`})]}),(0,$.jsxs)(`tr`,{children:[(0,$.jsx)(`td`,{children:(0,$.jsx)(`b`,{children:`SP-S-011`})}),(0,$.jsx)(`td`,{children:`减震垫圈Φ62`}),(0,$.jsx)(`td`,{children:`标准件`}),(0,$.jsx)(`td`,{className:`paper-success`,children:`优先选用`})]})]})]})]}),(0,$.jsxs)(`section`,{id:`doc-section-4`,children:[(0,$.jsxs)(`h2`,{children:[(0,$.jsx)(`span`,{children:`05`}),`五、相似历史方案推荐`]}),(0,$.jsxs)(`div`,{className:`paper-case`,children:[(0,$.jsx)(`span`,{children:`第一推荐 · CASE-001`}),(0,$.jsx)(`h3`,{children:`20kg 级多旋翼无人机动力基座总成方案`}),(0,$.jsx)(`p`,{children:`可直接参考该总成成熟方案落地开发。方案已量产验证,覆盖 SP-M-001、SP-P-005、SP-S-011 三类核心物料,BOM 零定制件。`})]})]}),(0,$.jsxs)(`section`,{id:`doc-section-5`,children:[(0,$.jsxs)(`h2`,{children:[(0,$.jsx)(`span`,{children:`06`}),`六、最终标准化设计结论`]}),(0,$.jsx)(`p`,{children:`本次植保无人机 V2.1 动力套件改型无需新增定制零件,全部零部件选用现有库内通用件、标准件,实现设计标准化。预计减少新建物料编码 3 个,降低开模与采购成本。`})]}),(0,$.jsxs)(`section`,{id:`doc-section-6`,className:`paper-evidence`,children:[(0,$.jsxs)(`h2`,{children:[(0,$.jsx)(`span`,{children:`07`}),`附录:证据来源`]}),(0,$.jsxs)(`div`,{className:`evidence-chips`,children:[(0,$.jsx)(`span`,{children:`新品需求 · XQ-2026-0901`}),(0,$.jsx)(`span`,{children:`推荐物料 · SP-M-001 / SP-P-005 / SP-S-011`}),(0,$.jsx)(`span`,{children:`命中规则 · RULE-001 / 002 / 003`}),(0,$.jsx)(`span`,{children:`历史案例 · CASE-001`})]}),(0,$.jsx)(`p`,{children:`审核状态:待研发工程师、标准化工程师确认。本文档为 DEMO 模拟输出,不代表已完成生产系统审批或数据回写。`})]}),(0,$.jsxs)(`footer`,{className:`paper-footer`,children:[(0,$.jsx)(`span`,{children:`三瑞智研 AI 设计标准化智能体 · DEMO 模拟输出`}),(0,$.jsx)(`span`,{children:`AI-OUT-2026-0901`})]})]}),(0,$.jsxs)(`aside`,{className:`document-side`,children:[(0,$.jsxs)(ko,{children:[(0,$.jsx)(`span`,{className:`eyebrow`,children:`DELIVERY STATUS`}),(0,$.jsx)(`h3`,{children:`交付状态`}),(0,$.jsxs)(`div`,{className:`delivery-item done`,children:[(0,$.jsx)(Lr,{size:15}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`b`,{children:`标准化文档`}),(0,$.jsx)(`small`,{children:`页面预览已生成`})]})]}),(0,$.jsxs)(`div`,{className:`delivery-item done`,children:[(0,$.jsx)(Lr,{size:15}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`b`,{children:`证据附录`}),(0,$.jsx)(`small`,{children:`11 条轨迹已固化`})]})]}),(0,$.jsxs)(`div`,{className:`delivery-item ${t.knowledgeStatus===`审核中`?`done`:`pending`}`,children:[t.knowledgeStatus===`审核中`?(0,$.jsx)(Lr,{size:15}):(0,$.jsx)(ja,{size:15}),(0,$.jsxs)(`div`,{children:[(0,$.jsx)(`b`,{children:`知识卡审核`}),(0,$.jsx)(`small`,{children:t.knowledgeStatus})]})]}),(0,$.jsx)(Eo,{className:`full-button`,icon:(0,$.jsx)(ja,{size:16}),disabled:t.knowledgeStatus===`审核中`,onClick:n,children:t.knowledgeStatus===`审核中`?`已提交审核`:`提交知识卡审核`})]}),(0,$.jsxs)(ko,{className:`human-review`,children:[(0,$.jsx)(Ba,{size:20}),(0,$.jsx)(`h3`,{children:`需要人工确认`}),(0,$.jsx)(`p`,{children:`真实工况适配、规则例外、重复编码治理和知识正式发布仍由人负责。`})]})]})]})]})}var Z9,$,R_e,z_e=o((()=>{Z9=u(p(),1),Wn(),eo(),Io(),m_e(),To(),$=ho(),R_e=[`一、参数解析结果`,`二、相似零部件检索结果`,`三、标准化合规校验结果`,`四、BOM 物料智能推荐清单`,`五、相似历史方案推荐`,`六、最终标准化设计结论`,`附录:证据来源`]})),B_e=y(),Q9=u(p(),1);Wn(),Io();var $9=ho();w();var V_e=(0,Q9.lazy)(()=>C(()=>Promise.resolve().then(()=>(Fde(),Mde)),void 0,import.meta.url)),H_e=(0,Q9.lazy)(()=>C(()=>Promise.resolve().then(()=>(zde(),Ide)),void 0,import.meta.url)),U_e=(0,Q9.lazy)(()=>C(()=>Promise.resolve().then(()=>(T_e(),h_e)),void 0,import.meta.url)),W_e=(0,Q9.lazy)(()=>C(()=>Promise.resolve().then(()=>(M_e(),E_e)),void 0,import.meta.url)),G_e=(0,Q9.lazy)(()=>C(()=>Promise.resolve().then(()=>(F_e(),N_e)),void 0,import.meta.url)),K_e=(0,Q9.lazy)(()=>C(()=>Promise.resolve().then(()=>(z_e(),I_e)),void 0,import.meta.url));function q_e(){return(0,$9.jsx)(Mo,{children:(0,$9.jsx)(Q9.Suspense,{fallback:(0,$9.jsxs)(`div`,{className:`route-loading`,children:[(0,$9.jsx)(`span`,{}),(0,$9.jsx)(`strong`,{children:`正在加载本地模块…`})]}),children:(0,$9.jsxs)(Ze,{children:[(0,$9.jsx)(Ye,{path:`/`,element:(0,$9.jsx)(V_e,{})}),(0,$9.jsx)(Ye,{path:`/task/new`,element:(0,$9.jsx)(H_e,{})}),(0,$9.jsx)(Ye,{path:`/task/demo-v21`,element:(0,$9.jsx)(U_e,{})}),(0,$9.jsx)(Ye,{path:`/knowledge/graph`,element:(0,$9.jsx)(G_e,{})}),(0,$9.jsx)(Ye,{path:`/knowledge`,element:(0,$9.jsx)(W_e,{})}),(0,$9.jsx)(Ye,{path:`/document/AI-OUT-2026-0901`,element:(0,$9.jsx)(K_e,{})}),(0,$9.jsx)(Ye,{path:`*`,element:(0,$9.jsx)(Je,{to:`/`,replace:!0})})]})})})}Wn(),To();var J_e=jt;(0,B_e.createRoot)(document.getElementById(`root`)).render((0,$9.jsx)(Q9.StrictMode,{children:(0,$9.jsx)(J_e,{children:(0,$9.jsx)(_o,{children:(0,$9.jsx)(q_e,{})})})}));</script>
<style rel="stylesheet" crossorigin>:root{color:#f2f7ff;font-synthesis:none;text-rendering:optimizelegibility;--bg-app:#07111f;--bg-panel:#0d1b2e;--bg-panel-strong:#12243b;--bg-elevated:#172b45;--text-primary:#f2f7ff;--text-secondary:#9fb1c7;--line:#243a55;--brand:#36c7bd;--brand-blue:#5a7cff;--success:#3ddc97;--warning:#f3b64d;--danger:#ff6b6b;--paper:#fff;--paper-text:#142033;background:#07111f;font-family:Microsoft YaHei,PingFang SC,Noto Sans SC,Arial,sans-serif}*{box-sizing:border-box}html{background:var(--bg-app);scroll-behavior:smooth}body{background:radial-gradient(circle at 74% -10%, #36c7bd12, transparent 30%), var(--bg-app);min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--brand);outline-offset:2px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}small{color:var(--text-secondary)}.app-shell{grid-template-columns:228px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{z-index:20;background:#07111ff7;border-right:1px solid #6080a333;flex-direction:column;height:100vh;padding:20px 14px 16px;display:flex;position:sticky;top:0}.brand-lockup{align-items:center;gap:11px;padding:2px 6px 19px;display:flex}.brand-mark{background:#fff;border-radius:11px;flex:0 0 40px;place-items:center;width:40px;height:40px;display:grid;overflow:hidden;box-shadow:0 10px 28px #5a7cff38}.brand-mark img{object-fit:contain;width:100%;height:100%;display:block}.brand-lockup strong{letter-spacing:.04em;font-size:16px;display:block}.brand-lockup span{color:var(--text-secondary);margin-top:2px;font-size:10px;display:block}.environment-pill{color:#86e9e1;letter-spacing:.05em;background:#36c7bd1a;border:1px solid #36c7bd38;border-radius:8px;justify-content:center;align-items:center;gap:7px;height:31px;margin:0 5px 16px;font-size:11px;font-weight:700;display:flex}.sidebar-nav{gap:5px;display:grid}.nav-item{color:#8fa3ba;border-radius:9px;align-items:center;gap:11px;min-width:0;padding:11px 10px;font-size:13px;font-weight:600;transition:all .18s;display:flex}.nav-item:hover{color:#fff;background:#ffffff0a}.nav-item.active{color:#eafffd;box-shadow:inset 2px 0 var(--brand);background:linear-gradient(90deg,#36c7bd2e,#36c7bd0d)}.nav-arrow{opacity:0;margin-left:auto;transition:all .18s}.nav-item.active .nav-arrow,.nav-item:hover .nav-arrow{opacity:.8}.sidebar-assets{background:#12243bb3;border:1px solid #5070913d;border-radius:11px;margin-top:auto;padding:12px}.sidebar-assets>div{align-items:center;gap:8px;font-size:12px;font-weight:700;display:flex}.sidebar-assets small{margin-top:8px;font-size:10px;display:block}.sidebar-footer{color:#677d96;align-items:center;gap:7px;padding:13px 5px 0;font-size:9.5px;display:flex}.live-dot{background:var(--success);border-radius:50%;width:6px;height:6px;box-shadow:0 0 0 4px #3ddc971a}.app-main{min-width:0}.topbar{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:15;background:#07111fdb;border-bottom:1px solid #5070912e;justify-content:space-between;align-items:center;gap:20px;height:58px;padding:0 24px;display:flex;position:sticky;top:0}.topbar-context,.role-select{color:var(--text-secondary);align-items:center;gap:9px;font-size:11px;display:flex}.role-select select{color:#dfeeff;background:var(--bg-panel);border:1px solid var(--line);border-radius:8px;height:31px;padding:0 28px 0 10px;font-size:11px}.avatar{color:#dcecff;background:linear-gradient(145deg,#334d6b,#1b2d43);border:1px solid #436181;border-radius:50%;place-items:center;width:30px;height:30px;font-size:11px;font-weight:700;display:grid}.mobile-menu{display:none!important}.page-container{min-width:0;padding:22px 24px 38px}.page{width:100%;max-width:1500px;margin:0 auto}.route-loading{color:#8fa6bd;align-content:center;place-items:center;gap:12px;min-height:55vh;font-size:11px;display:grid}.route-loading span{border:2px solid #29415c;border-top-color:var(--brand);border-radius:50%;width:28px;height:28px;animation:.8s linear infinite route-spin}@keyframes route-spin{to{transform:rotate(360deg)}}.panel{background:linear-gradient(145deg,#12243bed,#0b192bf0);border:1px solid #3e5c7b70;border-radius:14px;min-width:0;box-shadow:0 12px 35px #0000001a}.button{cursor:pointer;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:0 15px;font-size:12px;font-weight:700;transition:transform .15s,background .15s,border-color .15s,opacity .15s;display:inline-flex}.button:hover:not(:disabled){transform:translateY(-1px)}.button:active:not(:disabled){transform:translateY(0)}.button:disabled{cursor:not-allowed;opacity:.48}.button-primary{color:#052321;background:linear-gradient(135deg,#50d6cd,#2db7ad);box-shadow:0 8px 20px #36c7bd2e}.button-secondary{color:#e4f1ff;background:#18304d;border-color:#2d4a6b}.button-secondary:hover:not(:disabled){background:#1d3a5c}.button-ghost{color:#a9bdd3;background:0 0;border-color:#2b415d}.button-ghost:hover:not(:disabled){color:#fff;background:#ffffff0a}.button-danger{color:#ffdede;background:#ff6b6b1f;border-color:#ff6b6b59}.full-button{width:100%}.icon-button{border:1px solid var(--line);color:#9fb1c7;background:var(--bg-panel);cursor:pointer;border-radius:9px;place-items:center;width:34px;height:34px;padding:0;display:inline-grid}.tag{white-space:nowrap;border:1px solid #0000;border-radius:99px;justify-content:center;align-items:center;gap:5px;width:fit-content;padding:4px 8px;font-size:10px;font-weight:700;line-height:1;display:inline-flex}.tag-brand{color:#86eee6;background:#36c7bd1a;border-color:#36c7bd42}.tag-success{color:#72efb3;background:#3ddc971a;border-color:#3ddc9740}.tag-warning{color:#ffd181;background:#f3b64d1a;border-color:#f3b64d40}.tag-danger{color:#ff9e9e;background:#ff6b6b1a;border-color:#ff6b6b40}.tag-blue{color:#aabaff;background:#5a7cff1c;border-color:#5a7cff40}.tag-neutral{color:#a7b9ce;background:#9fb1c714;border-color:#9fb1c72b}.eyebrow{color:var(--brand);letter-spacing:.14em;text-transform:uppercase;margin-bottom:5px;font-size:9px;font-weight:800;display:block}.section-title{justify-content:space-between;align-items:center;gap:16px;min-width:0;margin-bottom:17px;display:flex}.section-title h2{margin:0;font-size:16px;line-height:1.25}.toast{z-index:80;color:#eafff6;background:#10283c;border:1px solid #3ddc9752;border-radius:11px;align-items:center;gap:10px;max-width:410px;padding:12px 16px;font-size:12px;animation:.2s ease-out toast-in;display:flex;position:fixed;bottom:24px;right:24px;box-shadow:0 18px 50px #00000059}.toast-check{color:#08261a;background:var(--success);border-radius:50%;place-items:center;width:20px;height:20px;font-weight:900;display:grid}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.dashboard-page{gap:17px;display:grid}.dashboard-hero{background:radial-gradient(circle at 79% 45%,#36c7bd29,#0000 22%),linear-gradient(120deg,#10233a,#0a1729 64%,#0a202d);border:1px solid #4167896b;border-radius:17px;justify-content:space-between;align-items:center;min-height:240px;padding:30px 38px;display:flex;position:relative;overflow:hidden}.dashboard-hero:after{content:"";opacity:.13;pointer-events:none;background-image:linear-gradient(#ffffff0d 1px,#0000 1px),linear-gradient(90deg,#ffffff0d 1px,#0000 1px);background-size:32px 32px;position:absolute;inset:0;-webkit-mask-image:linear-gradient(90deg,#0000,#000);mask-image:linear-gradient(90deg,#0000,#000)}.hero-copy{z-index:1;max-width:620px}.hero-copy h1{letter-spacing:-.03em;margin:0 0 10px;font-size:clamp(27px,3vw,39px);line-height:1.1}.hero-copy p{color:#a9bfd4;margin-bottom:21px;font-size:14px}.hero-actions{gap:9px;display:flex}.hero-orbit{z-index:1;flex:0 0 278px;width:278px;height:184px;position:relative}.hero-orbit:before,.hero-orbit:after{content:"";border:1px solid #36c7bd38;border-radius:50%;position:absolute}.hero-orbit:before{inset:7px 22px}.hero-orbit:after{inset:28px 47px}.orbit-core{z-index:2;color:#71e4db;background:radial-gradient(circle,#153a46,#0e2536 68%);border:1px solid #36c7bd66;border-radius:50%;align-content:center;place-items:center;gap:4px;width:104px;height:104px;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 0 45px #36c7bd26}.orbit-core strong{color:#effffd;font-size:11px}.orbit-core span{color:#7597a8;font-size:8px}.orbit-node{z-index:3;color:#94e8e1;background:#10283c;border:1px solid #2f5266;border-radius:7px;place-items:center;width:45px;height:25px;font-size:9px;display:grid;position:absolute}.node-a{top:80px;left:7px}.node-b{top:3px;left:70px}.node-c{top:37px;right:13px}.node-d{bottom:5px;right:42px}.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;display:grid}.asset-card{align-items:center;gap:13px;padding:17px;display:flex}.asset-icon{border-radius:10px;flex:0 0 39px;place-items:center;width:39px;height:39px;display:grid}.asset-brand{color:#7ee9e1;background:#36c7bd1f}.asset-warning{color:#ffd384;background:#f3b64d1f}.asset-blue{color:#a9b8ff;background:#5a7cff21}.asset-success{color:#7bf0b6;background:#3ddc971f}.asset-card>div:last-child{flex:1;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 10px;min-width:0;display:grid}.asset-card span{color:var(--text-secondary);font-size:11px}.asset-card strong{font-variant-numeric:tabular-nums;grid-area:1/2/3;font-size:30px}.asset-card small{font-size:9.5px}.dashboard-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);gap:13px;display:grid}.risk-panel,.recent-task,.capability-panel{padding:19px}.risk-content{grid-template-columns:minmax(0,1.4fr) minmax(220px,.7fr);gap:20px;display:grid}.risk-list{gap:7px;display:grid}.risk-row{text-align:left;cursor:pointer;background:#07111f4d;border:1px solid #0000;border-radius:9px;grid-template-columns:28px minmax(0,1fr) auto 16px;align-items:center;gap:10px;min-width:0;padding:9px;display:grid}.risk-row:hover{background:#ffffff08;border-color:#304966}.risk-row>div{min-width:0}.risk-row strong,.risk-row small{display:block}.risk-row strong{font-size:11.5px}.risk-row small{margin-top:3px;font-size:9.5px}.risk-index{color:#ff9797;background:#ff6b6b1a;border-radius:8px;place-items:center;width:27px;height:27px;font-size:10px;font-weight:800;display:grid}.risk-chart{border-left:1px solid var(--line);min-width:0;padding-left:16px}.risk-chart>strong{color:#adbed1;font-size:10px}.recent-task{flex-direction:column;display:flex}.task-status-row{border-bottom:1px solid var(--line);grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0 16px;display:grid}.task-file-icon{color:#82e5de;background:#36c7bd1a;border-radius:10px;place-items:center;width:39px;height:39px;display:grid}.task-status-row strong,.task-status-row small{display:block}.task-status-row strong{font-size:11.5px}.task-status-row small{margin-top:3px;font-size:9px}.task-mini-grid{grid-template-columns:1fr 1fr;gap:9px;margin:15px 0;display:grid}.metric{border:1px solid var(--line);background:#07111f61;border-radius:9px;min-width:0;padding:11px}.metric span,.metric small{color:var(--text-secondary);font-size:9px;display:block}.metric strong{font-variant-numeric:tabular-nums;margin:5px 0 2px;font-size:22px;display:block}.metric-success strong{color:var(--success)}.metric-warning strong{color:var(--warning)}.metric-brand strong{color:var(--brand)}.metric-blue strong{color:#8da5ff}.capability-flow{grid-template-columns:repeat(6,minmax(0,1fr));display:grid}.capability-step{border-right:1px solid var(--line);grid-template-columns:28px minmax(0,1fr) 14px;align-items:center;gap:9px;min-width:0;padding:7px 10px;display:grid}.capability-step:last-child{border-right:0}.capability-step>span{color:var(--brand);font-size:10px;font-weight:800}.capability-step strong,.capability-step small{display:block}.capability-step strong{font-size:11px}.capability-step small{margin-top:3px;font-size:8.5px;line-height:1.35}.capability-step svg{color:#49637f}.drawer-backdrop{z-index:70;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#02080fad;position:fixed;inset:0}.drawer{background:#0c192b;border-left:1px solid #29425f;max-width:92vw;height:100%;animation:.22s ease-out drawer-in;position:absolute;top:0;right:0;overflow:auto;box-shadow:-25px 0 70px #00000059}@keyframes drawer-in{0%{opacity:0;transform:translate(36px)}}.drawer-head{z-index:2;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0c192bf0;justify-content:space-between;align-items:center;padding:22px 24px;display:flex;position:sticky;top:0}.drawer-head h2{margin:0;font-size:18px}.drawer-body{padding:22px 24px 35px}.drawer-summary{color:#a5c0d9;background:#36c7bd12;border:1px solid #36c7bd38;border-radius:10px;gap:12px;margin-bottom:18px;padding:14px;display:flex}.drawer-summary svg{color:var(--brand);flex:none}.drawer-summary strong{color:#eef9ff;font-size:12px}.drawer-summary p{margin:5px 0 0;font-size:11px;line-height:1.65}.danger-summary{background:#ff6b6b0f;border-color:#ff6b6b38}.danger-summary svg{color:var(--danger)}.comparison-head{grid-template-columns:1fr 32px 1fr;align-items:center;gap:10px;margin-bottom:18px;display:grid}.comparison-head>span{color:#58708a;text-align:center;font-size:9px}.comparison-head>div{border:1px solid var(--line);background:#12243b;border-radius:10px;padding:13px}.comparison-head h3{margin:10px 0 3px}.comparison-head p{color:var(--text-secondary);margin:0;font-size:10px}.evidence-table{border:1px solid var(--line);border-radius:10px;overflow:hidden}.evidence-table>div{border-bottom:1px solid var(--line);grid-template-columns:90px 1fr 1fr;gap:12px;padding:11px;font-size:10px;line-height:1.55;display:grid}.evidence-table>div:last-child{border-bottom:0}.evidence-table span{color:var(--text-secondary)}.evidence-table b{font-weight:600}.audit-note{color:#8fa5bb;align-items:center;gap:8px;margin-top:16px;font-size:10px;display:flex}.audit-note svg{color:var(--success)}.detail-hero{align-items:center;gap:8px;margin-bottom:18px;display:flex}.detail-code{margin-right:auto;font-size:21px;font-weight:800}.detail-list{border:1px solid var(--line);border-radius:10px;overflow:hidden}.detail-list>div{border-bottom:1px solid var(--line);grid-template-columns:110px 1fr;gap:14px;padding:12px 14px;font-size:11px;line-height:1.6;display:grid}.detail-list>div:last-child{border-bottom:0}.detail-list span{color:var(--text-secondary)}.detail-list b{font-weight:600}.detail-subtitle{margin:20px 0 10px;font-size:13px}.page-heading{justify-content:space-between;align-items:flex-end;gap:24px;margin:2px 0 20px;display:flex}.page-heading h1{letter-spacing:-.02em;margin:7px 0;font-size:27px}.page-heading p{color:var(--text-secondary);margin:0;font-size:12px}.back-link{color:#8299b2;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;margin-bottom:14px;padding:0;font-size:10px;display:inline-flex}.heading-badge{background:#36c7bd12;border:1px solid #36c7bd2e;border-radius:10px;align-items:center;gap:10px;max-width:300px;padding:11px 13px;display:flex}.heading-badge svg{color:var(--brand)}.heading-badge strong,.heading-badge small{display:block}.heading-badge strong{font-size:10.5px}.heading-badge small{margin-top:3px;font-size:8.5px}.task-form-grid{grid-template-columns:minmax(0,1.55fr) minmax(300px,.65fr);align-items:start;gap:14px;display:grid}.task-main-column{gap:14px;display:grid}.task-main-column>.panel,.task-side-column>.panel{padding:20px}.task-side-column{gap:14px;display:grid;position:sticky;top:77px}.upload-zone{text-align:center;cursor:pointer;background:#07111f54;border:1px dashed #3a5878;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-height:210px;padding:24px;transition:all .18s;display:flex}.upload-zone:hover{border-color:var(--brand);background:#36c7bd09}.upload-zone.loaded{background:#3ddc9709;border-style:solid;border-color:#3ddc974d}.upload-icon{width:50px;height:50px;color:var(--brand);background:#36c7bd1c;border-radius:13px;place-items:center;display:grid}.upload-zone strong{font-size:12px}.upload-zone>span{color:var(--text-secondary);align-items:center;gap:5px;font-size:9.5px;display:flex}.upload-zone.loaded>span{color:#78dca9}.upload-zone .button{margin-top:4px}.upload-footnote{color:#7f96af;align-items:center;gap:7px;margin-top:10px;font-size:9.5px;display:flex}.sample-load-card{color:#dceaff;cursor:pointer;background:#10243b;border:1px solid #294665;border-radius:10px;justify-content:space-between;align-items:center;width:100%;margin-top:14px;padding:11px;display:flex}.sample-load-card>div,.sample-load-card>span{align-items:center;gap:10px;display:flex}.sample-load-card strong,.sample-load-card small{text-align:left;display:block}.sample-load-card strong{font-size:10.5px}.sample-load-card small{margin-top:3px;font-size:8.5px}.sample-load-card>span{color:var(--brand);font-size:10px}.project-fields{grid-template-columns:1fr 1fr;gap:11px;display:grid}.project-fields label{min-width:0}.project-fields label>span{color:var(--text-secondary);margin-bottom:6px;font-size:9px;display:block}.project-fields input{color:#dbe9f8;border:1px solid var(--line);background:#0a1727;border-radius:8px;width:100%;height:37px;padding:0 11px;font-size:10.5px}.project-fields .span-2{grid-column:span 2}.intent-block{border-top:1px solid var(--line);margin-top:19px;padding-top:17px}.intent-title{justify-content:space-between;gap:16px;margin-bottom:11px;display:flex}.intent-title strong{font-size:12px}.intent-title p{color:var(--text-secondary);margin:4px 0 0;font-size:9px}.intent-option{border:1px solid var(--line);cursor:pointer;background:#07111f42;border-radius:10px;align-items:center;gap:11px;margin-top:8px;padding:12px;display:flex}.intent-option.selected{background:#36c7bd0e;border-color:#36c7bd73}.intent-option input{opacity:0;position:absolute}.radio-ui{border:1px solid #4d6580;border-radius:50%;flex:0 0 17px;width:17px;height:17px}.intent-option.selected .radio-ui{border:5px solid var(--brand)}.intent-option strong,.intent-option small{display:block}.intent-option strong{font-size:10.5px}.intent-option small{margin-top:4px;font-size:8.5px}.source-row{border-bottom:1px solid var(--line);grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 0;display:grid}.source-row>span{color:#91a9c2;background:#172b45;border-radius:8px;place-items:center;width:33px;height:33px;display:grid}.source-row strong,.source-row small{display:block}.source-row strong{font-size:10.5px}.source-row small{margin-top:3px;font-size:8.5px}.local-security{background:#3ddc970f;border:1px solid #3ddc972b;border-radius:9px;align-items:center;gap:9px;margin-top:14px;padding:11px;display:flex}.shield-icon{color:#08291d;background:var(--success);border-radius:50%;place-items:center;width:29px;height:29px;display:grid}.local-security strong,.local-security small{display:block}.local-security strong{font-size:10px}.local-security small{margin-top:3px;font-size:8.5px}.run-summary h3{margin:3px 0 14px;font-size:15px}.run-summary ol{gap:9px;margin:0 0 18px;padding:0;list-style:none;display:grid}.run-summary li{color:#afc0d4;align-items:center;gap:9px;font-size:9.5px;display:flex}.run-summary li span{width:24px;height:24px;color:var(--brand);background:#36c7bd14;border-radius:7px;place-items:center;font-size:8px;font-weight:800;display:grid}.run-button{min-height:43px}.disabled-hint{text-align:center;margin:7px 0;font-size:8.5px;display:block}.run-summary .button-ghost{margin-top:7px}.cockpit-page{padding-bottom:72px}.cockpit-header{justify-content:space-between;align-items:flex-end;gap:20px;min-width:0;margin-bottom:13px;display:flex}.cockpit-breadcrumb{color:#7289a2;align-items:center;gap:5px;margin-bottom:6px;font-size:9px;display:flex}.cockpit-breadcrumb button{color:#7fa0bb;cursor:pointer;background:0;border:0;padding:0}.cockpit-header h1{margin:0 0 6px;font-size:21px}.task-meta,.cockpit-actions{align-items:center;gap:8px;display:flex}.task-meta>span{color:var(--text-secondary);font-size:9.5px}.task-meta>span+span:before{content:"·";margin-right:8px}.progress-rail{background:#0c1b2e;border:1px solid #223b57;border-radius:10px;margin-bottom:12px;padding:10px 13px}.progress-info{color:var(--text-secondary);justify-content:space-between;align-items:center;margin-bottom:7px;font-size:9px;display:flex}.progress-info span{align-items:center;gap:6px;display:flex}.progress-info svg,.progress-info strong{color:var(--brand)}.progress-track{background:#1b314a;border-radius:99px;height:4px;overflow:hidden}.progress-track span{background:linear-gradient(90deg, var(--brand), #6de7de);border-radius:inherit;height:100%;transition:width .35s;display:block}.cockpit-layout{grid-template-columns:205px minmax(0,1fr) 302px;align-items:stretch;gap:12px;min-width:0;min-height:610px;display:grid}.stage-sidebar,.stage-content,.evidence-sidebar{background:linear-gradient(145deg,#0f1f33f5,#091525f5);border:1px solid #3e5c7b66;border-radius:13px;min-width:0}.stage-sidebar{padding:16px 10px}.stage-side-head{border-bottom:1px solid var(--line);padding:0 7px 12px}.stage-side-head strong{font-size:12px}.stage-button{text-align:left;color:#8297ae;cursor:pointer;background:0 0;border:0;border-radius:9px;grid-template-columns:27px minmax(0,1fr) 13px;align-items:center;gap:8px;width:100%;padding:10px 7px;display:grid;position:relative}.stage-button:before{content:"";background:#29425d;width:1px;position:absolute;top:37px;bottom:-10px;left:20px}.stage-button:nth-of-type(7):before{display:none}.stage-button:hover:not(:disabled),.stage-button.active{color:#f0fbff;background:#36c7bd11}.stage-button:disabled{cursor:not-allowed;opacity:.42}.stage-button.done:before{background:#3ddc9773}.stage-marker{z-index:1;color:#7891aa;background:#12243b;border:1px solid #38536f;border-radius:50%;place-items:center;width:25px;height:25px;font-size:9px;font-weight:800;display:grid}.stage-button.done .stage-marker{color:#06281a;background:var(--success);border-color:var(--success)}.stage-button.active .stage-marker{color:#06211f;background:var(--brand);border-color:var(--brand);box-shadow:0 0 0 5px #36c7bd1a}.stage-button strong,.stage-button small{display:block}.stage-button strong{font-size:10px}.stage-button small{margin-top:3px;font-size:8px;line-height:1.3}.pulse-dot{background:#04231f;border-radius:50%;width:7px;height:7px;animation:1.3s infinite pulse;box-shadow:0 0 #021c1a99}@keyframes pulse{70%{box-shadow:0 0 0 6px #021c1a00}}.agent-safety{color:#839ab0;background:#5a7cff0f;border:1px solid #5a7cff29;border-radius:9px;gap:8px;margin-top:13px;padding:10px;display:flex}.agent-safety svg{color:#859dff;flex:none}.agent-safety strong,.agent-safety small{display:block}.agent-safety strong{color:#c7d1ff;font-size:9px}.agent-safety small{margin-top:4px;font-size:7.5px;line-height:1.45}.stage-content{padding:17px;overflow:hidden}.cockpit-empty{text-align:center;background:radial-gradient(circle at 50% 43%,#36c7bd1a,#0000 29%);flex-direction:column;justify-content:center;align-items:center;min-height:575px;padding:40px;display:flex}.empty-orb{width:68px;height:68px;color:var(--brand);background:#36c7bd17;border:1px solid #36c7bd47;border-radius:50%;place-items:center;margin-bottom:17px;display:grid;box-shadow:0 0 0 10px #36c7bd06}.cockpit-empty h2{margin:12px 0 8px;font-size:19px}.cockpit-empty p{max-width:520px;color:var(--text-secondary);font-size:10.5px;line-height:1.7}.empty-facts{gap:15px;margin:9px 0 21px;display:flex}.empty-facts span{color:#9db4c9;align-items:center;gap:5px;font-size:9px;display:flex}.empty-facts svg{color:var(--success)}.stage-result-head{border-bottom:1px solid var(--line);grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;min-width:0;margin-bottom:14px;padding-bottom:15px;display:grid}.result-icon{width:41px;height:41px;color:var(--brand);background:#36c7bd1a;border:1px solid #36c7bd33;border-radius:11px;place-items:center;display:grid}.stage-result-head h2{margin:0 0 4px;font-size:16px}.stage-result-head p{color:var(--text-secondary);margin:0;font-size:9px}.stage-result-head .eyebrow{margin-bottom:2px}.part-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;display:grid}.part-card{background:#0e1e31cc;padding:13px}.part-card-head{border-bottom:1px solid var(--line);grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;padding-bottom:10px;display:grid}.part-number{color:#72e7df;background:#36c7bd1a;border-radius:9px;place-items:center;width:32px;height:32px;font-size:9px;font-weight:800;display:grid}.part-1{color:#aab7ff;background:#5a7cff1c}.part-2{color:#ffd27c;background:#f3b64d1c}.part-card-head strong,.part-card-head small{display:block}.part-card-head strong{font-size:10.5px}.part-card-head small{margin-top:3px;font-size:7.5px}.parameter-grid{gap:0;margin-top:7px;display:grid}.parameter-grid>div{border-bottom:1px dashed #4b668454;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;font-size:9px;display:flex}.parameter-grid>div:last-child{border-bottom:0}.parameter-grid span{color:var(--text-secondary)}.parameter-grid b{text-align:right}.source-line{color:#66839d;border-top:1px solid var(--line);align-items:center;gap:5px;margin-top:9px;padding-top:9px;font-size:7.5px;display:flex}.source-line svg{color:var(--success)}.normalization-panel{background:#5a7cff0b;grid-template-columns:auto 1fr;align-items:center;gap:18px;margin-top:10px;padding:13px;display:grid}.normalization-panel>div:first-child{align-items:center;gap:7px;font-size:9.5px;display:flex}.normalization-panel>div:first-child svg{color:#8da2ff}.normalization-list{justify-content:flex-end;align-items:center;gap:9px;display:flex}.normalization-list span{color:#8da0b6;border:1px solid var(--line);background:#07111f4d;border-radius:7px;align-items:center;gap:5px;padding:6px 8px;font-size:8px;display:flex}.normalization-list del{opacity:.6}.normalization-list b{color:#dce8f5}.normalization-list svg{color:var(--brand);transform:rotate(-90deg)}.similarity-stack{gap:8px;display:grid}.similarity-group{background:#0d1c2fd6;padding:11px}.similarity-title{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.similarity-title>div{align-items:center;gap:8px;display:flex}.similarity-title strong{font-size:10px}.similarity-title small{font-size:8px}.part-dot{background:var(--brand);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 4px #36c7bd1a}.candidate-list{gap:4px;display:grid}.candidate-row{background:#07111f3d;border:1px solid #0000;border-radius:7px;grid-template-columns:23px minmax(100px,1.25fr) 55px minmax(100px,.85fr) 75px;align-items:center;gap:7px;min-width:0;padding:7px;display:grid}.candidate-row.recommended{background:#3ddc9709;border-color:#3ddc973d}.candidate-rank{color:#8297ae;background:#172b45;border-radius:6px;place-items:center;width:20px;height:20px;font-size:8px;font-weight:800;display:grid}.candidate-code strong,.candidate-code small{display:block}.candidate-code strong{font-size:9px}.candidate-code small{text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:7px;overflow:hidden}.score-cell{grid-template-columns:minmax(40px,1fr) 32px;align-items:center;gap:5px;display:grid}.score-cell>div{background:#21364d;border-radius:99px;height:4px;overflow:hidden}.score-cell>div span{background:var(--brand);height:100%;display:block}.score-cell b{font-size:8px}.recommend-label,.risk-label{color:var(--success);justify-content:flex-end;align-items:center;gap:4px;font-size:7.5px;font-weight:700;display:flex}.risk-label{color:#dfaa57}.cross-product-note{color:#9cb0c6;background:#f3b64d0e;border:1px solid #f3b64d2e;border-radius:9px;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:9px;margin-top:9px;padding:10px;display:grid}.cross-product-note svg{color:var(--warning)}.cross-product-note strong{color:#f0f4f8;font-size:9px}.cross-product-note p{margin:3px 0 0;font-size:7.8px;line-height:1.5}.rule-summary{grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:9px;display:grid}.rule-summary .metric{padding:8px 10px}.rule-summary .metric strong{margin:2px 0 0;font-size:18px}.rule-table-panel,.bom-table-panel{padding:0;overflow:hidden}.data-table{min-width:0;display:grid}.table-row{border-bottom:1px solid #3e5c7b4d;align-items:center;gap:8px;min-width:0;padding:9px 11px;font-size:8.5px;display:grid}.table-row:last-child{border-bottom:0}.table-head{color:#8097af;text-transform:uppercase;background:#07111f5e;font-size:7.5px}.rule-table .table-row{grid-template-columns:minmax(120px,1.1fr) 40px 65px minmax(170px,1.5fr)}.table-row>span{min-width:0}.table-row span b,.table-row span small{display:block}.table-row span small{margin-top:2px;font-size:7px}.audit-explanation{background:#36c7bd0e;border:1px solid #36c7bd2e;border-radius:9px;gap:10px;margin-top:9px;padding:11px;display:flex}.audit-explanation svg{color:var(--brand);flex:none}.audit-explanation strong{font-size:9.5px}.audit-explanation p{color:#97acc1;margin:4px 0 0;font-size:8px;line-height:1.55}.bom-impact{grid-template-columns:105px 22px 105px 1fr;align-items:stretch;gap:8px;margin-bottom:9px;display:grid}.impact-card{text-align:center;border-radius:10px;padding:11px}.impact-card span{color:var(--text-secondary);font-size:8px}.impact-card strong{margin:1px 0;font-size:28px;display:block}.impact-card p{margin:0;font-size:7px}.impact-card.before{color:#ffc0c0;background:#ff6b6b12;border:1px solid #ff6b6b2e}.impact-card.after{color:#86f1bb;background:#3ddc9712;border:1px solid #3ddc972e}.impact-arrow{color:#506a84;align-self:center;transform:rotate(-90deg)}.impact-metrics{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.impact-metrics .metric{padding:8px}.impact-metrics .metric strong{font-size:16px}.bom-table .table-row{grid-template-columns:.75fr 1.1fr .75fr .55fr 1.3fr}.before-value,.after-value{align-items:center;gap:4px;display:flex}.before-value{color:#d89999}.after-value{color:#80dbae}.business-result{background:linear-gradient(90deg,#36c7bd1a,#5a7cff0d);border:1px solid #36c7bd38;border-radius:9px;align-items:center;gap:10px;margin-top:9px;padding:12px;display:flex}.business-result svg{color:var(--brand)}.business-result span,.business-result strong{display:block}.business-result span{color:#87a3ba;font-size:8px}.business-result strong{margin-top:3px;font-size:10px}.view-toggle{border:1px solid var(--line);background:#0a1727;border-radius:8px;padding:3px;display:flex}.view-toggle button{color:#8297ad;cursor:pointer;background:0;border:0;border-radius:6px;align-items:center;gap:4px;padding:5px 8px;font-size:8px;display:flex}.view-toggle button.active{color:#e9fffd;background:#1b3d50}.case-list{gap:8px;display:grid}.case-card{padding:12px;position:relative}.case-featured{background:linear-gradient(145deg,#123137d1,#0b1c2de6);border-color:#3ddc9757}.case-rank{float:right;align-items:center;gap:7px;display:flex}.case-rank b{color:var(--success);font-size:9px}.case-id{color:var(--brand);font-size:8px;font-weight:800}.case-card h3{margin:5px 0 4px;font-size:11.5px}.case-card>p{color:var(--text-secondary);margin:0 0 8px;font-size:8px}.case-tags,.knowledge-links{flex-wrap:wrap;gap:5px;display:flex}.reused-line{color:#8298af;align-items:center;gap:6px;margin-top:8px;font-size:7.5px;display:flex}.reused-line b{color:#c5d4e3;background:#ffffff09;border-radius:4px;padding:3px 5px}.case-reason{color:#82dfaf;background:#3ddc970f;border-radius:6px;align-items:center;gap:6px;margin-top:8px;padding:7px;font-size:7.5px;display:flex}.case-reason.secondary{color:#c2a56d;background:#f3b64d0d}.relation-graph{background-image:radial-gradient(circle,#6d8eaf26 1px,#0000 1px);background-size:20px 20px;place-items:center;min-height:440px;display:grid;position:relative;overflow:hidden}.graph-node{z-index:2;text-align:center;background:#12243b;border:1px solid #345474;border-radius:10px;gap:4px;min-width:145px;padding:12px;display:grid;position:absolute}.graph-node small{color:var(--brand);font-size:7px}.graph-node strong{font-size:10px}.graph-node span{color:var(--text-secondary);font-size:7px}.graph-current{top:42%;left:6%}.graph-case{border-color:#3ddc9780;top:42%;left:39%;box-shadow:0 0 30px #3ddc9714}.graph-materials,.graph-rules{z-index:2;gap:6px;display:flex;position:absolute;right:5%}.graph-materials{top:28%}.graph-rules{bottom:28%}.graph-materials span,.graph-rules span{background:#162b45;border:1px solid #35516e;border-radius:7px;padding:7px;font-size:7.5px}.graph-rules span{border-color:#f3b64d40}.graph-edge{transform-origin:0;background:#3b6674;height:1px;position:absolute}.edge-1{width:28%;top:49%;left:22%}.edge-2{width:25%;top:47%;left:61%;transform:rotate(-15deg)}.edge-3{width:25%;top:52%;left:61%;transform:rotate(15deg)}.graph-caption{color:#667f98;align-items:center;gap:6px;margin:0;font-size:8px;display:flex;position:absolute;bottom:12px;left:16px}.output-document-card{grid-template-columns:70px minmax(0,1fr) 150px;align-items:center;gap:13px;margin-bottom:9px;padding:15px;display:grid}.doc-art{color:#0a2e2a;background:linear-gradient(145deg,#e8fffd,#94e7df);border-radius:8px 13px 8px 8px;align-content:center;place-items:center;gap:7px;width:64px;height:82px;display:grid}.doc-art span{font-size:8px;font-weight:900}.doc-info h3{margin:7px 0 4px;font-size:13px}.doc-info p{color:var(--text-secondary);margin:0 0 9px;font-size:8px}.doc-info>strong{color:var(--success);font-size:10px}.doc-actions{gap:5px;display:grid}.doc-actions .button{min-height:31px;font-size:8.5px}.knowledge-draft{grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;padding:14px;display:grid}.knowledge-icon{color:#aab8ff;background:#5a7cff1f;border-radius:10px;place-items:center;width:40px;height:40px;display:grid}.knowledge-copy>div:first-child{color:#748ba4;align-items:center;gap:7px;font-size:8px;display:flex}.knowledge-copy h3{margin:6px 0 4px;font-size:11px}.knowledge-copy p{color:var(--text-secondary);margin:0;font-size:8px;line-height:1.5}.knowledge-links{margin-top:7px}.knowledge-links span{color:#a9baf0;background:#5a7cff12;border:1px solid #5a7cff26;border-radius:5px;padding:4px 6px;font-size:7px}.boundary-notice{color:#a4b5c7;background:#f3b64d0d;border:1px solid #f3b64d29;border-radius:9px;gap:9px;margin-top:9px;padding:10px;display:flex}.boundary-notice svg{color:var(--warning);flex:none}.boundary-notice strong{font-size:9px}.boundary-notice p{margin:3px 0 0;font-size:7.5px;line-height:1.5}.evidence-sidebar{flex-direction:column;display:flex;overflow:hidden}.evidence-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:15px;display:flex}.evidence-head strong{font-size:11px}.evidence-timeline{flex:1;min-height:230px;max-height:385px;padding:13px;overflow:auto}.evidence-empty{text-align:center;color:#536b84;align-content:center;place-items:center;gap:7px;height:100%;display:grid}.evidence-empty p{max-width:180px;margin:0;font-size:8px;line-height:1.5}.evidence-event{grid-template-columns:23px minmax(0,1fr);gap:8px;padding-bottom:12px;display:grid;position:relative}.evidence-event:before{content:"";background:#2a465e;width:1px;position:absolute;top:22px;bottom:0;left:10px}.evidence-event:last-child:before{display:none}.event-node{z-index:1;color:#052822;background:var(--brand);border-radius:50%;place-items:center;width:21px;height:21px;font-size:7px;font-weight:900;display:grid}.evidence-event strong{font-size:8.5px}.evidence-event p{color:#8fa4b9;margin:3px 0 5px;font-size:7.5px;line-height:1.5}.evidence-event button{color:#8ea6ff;cursor:pointer;background:#5a7cff0f;border:1px solid #5a7cff29;border-radius:4px;margin:0 4px 3px 0;padding:2px 4px;font-size:6.5px}.qa-panel{border-top:1px solid var(--line);background:#07111f42}.qa-title{align-items:center;gap:7px;padding:11px 13px 7px;font-size:9.5px;display:flex}.qa-title svg{color:var(--brand)}.quick-questions{grid-template-columns:1fr 1fr;gap:4px;padding:0 10px 9px;display:grid}.quick-questions button{text-align:left;color:#8da3ba;cursor:pointer;background:#ffffff06;border:1px solid #263d58;border-radius:6px;justify-content:space-between;align-items:center;gap:4px;min-width:0;padding:6px;font-size:6.8px;display:flex}.quick-questions button:hover{color:#dff7f5;border-color:#35625f}.qa-answer{background:#36c7bd0d;border:1px solid #36c7bd26;border-radius:7px;max-height:150px;margin:0 10px 8px;padding:9px;overflow:auto}.qa-answer>span{color:var(--brand);text-transform:uppercase;font-size:6.5px}.qa-answer strong{margin:4px 0;font-size:7.5px;display:block}.qa-answer p{color:#9db1c6;margin:0 0 6px;font-size:7px;line-height:1.45}.qa-answer>div{flex-wrap:wrap;gap:3px;display:flex}.qa-answer .tag{font-size:6px}.qa-input{grid-template-columns:minmax(0,1fr) 30px;gap:5px;padding:0 10px 10px;display:grid}.qa-input input{color:#dce9f6;border:1px solid var(--line);background:#0a1727;border-radius:7px;min-width:0;height:31px;padding:0 8px;font-size:8px}.qa-input button{color:#052822;background:var(--brand);cursor:pointer;border:0;border-radius:7px;place-items:center;display:grid}.result-summary-bar{z-index:12;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0f2233f2;border:1px solid #3ddc9752;border-radius:12px;justify-content:space-between;align-items:center;gap:15px;padding:10px 12px;display:flex;position:fixed;bottom:15px;left:252px;right:24px;box-shadow:0 12px 35px #00000047}.result-summary-bar>div:first-child{align-items:center;gap:9px;display:flex}.success-orb{color:#05261a;background:var(--success);border-radius:50%;place-items:center;width:32px;height:32px;display:grid}.result-summary-bar strong,.result-summary-bar small{display:block}.result-summary-bar strong{font-size:10px}.result-summary-bar small{margin-top:2px;font-size:7.5px}.summary-stats{gap:13px;display:flex}.summary-stats span{color:#8fa4ba;font-size:8px}.summary-stats b{color:#e9f7ff;font-size:12px}.summary-stats .highlight b{color:var(--success)}.knowledge-heading{align-items:center}.knowledge-overview{gap:8px;display:flex}.knowledge-overview>div{border:1px solid var(--line);background:#10243a;border-radius:10px;grid-template-columns:27px auto;align-items:center;gap:0 8px;min-width:140px;padding:10px 12px;display:grid}.knowledge-overview svg{color:var(--brand);grid-row:span 2}.knowledge-overview b{font-size:15px}.knowledge-overview span{color:var(--text-secondary);font-size:8px}.knowledge-tabs{gap:7px;margin-bottom:11px;display:flex}.knowledge-tabs button{text-align:left;color:#849bb2;border:1px solid var(--line);cursor:pointer;background:#0d1b2e;border-radius:9px;grid-template-columns:20px minmax(0,1fr) 24px;align-items:center;gap:7px;min-width:170px;padding:10px 12px;font-size:10px;display:grid}.knowledge-tabs button b{background:#ffffff0a;border-radius:6px;place-items:center;width:23px;height:23px;font-size:8px;display:grid}.knowledge-tabs button.active{color:#e9fffd;background:#36c7bd12;border-color:#36c7bd66}.knowledge-toolbar{align-items:center;gap:8px;margin-bottom:11px;padding:10px;display:flex}.search-box{flex:1;align-items:center;min-width:240px;display:flex;position:relative}.search-box>svg{color:#7890a8;position:absolute;left:10px}.search-box input{color:#e2edf8;border:1px solid var(--line);background:#091625;border-radius:8px;width:100%;height:36px;padding:0 34px;font-size:9px}.search-box button{color:#8298ae;cursor:pointer;background:0;border:0;place-items:center;width:24px;height:24px;display:grid;position:absolute;right:7px}.knowledge-toolbar select{color:#c4d3e2;border:1px solid var(--line);background:#10233a;border-radius:8px;height:36px;padding:0 26px 0 9px;font-size:9px}.filter-toggle{color:#96aac0;border:1px solid var(--line);cursor:pointer;background:#10233a;border-radius:8px;align-items:center;gap:6px;height:36px;padding:0 10px;font-size:9px;display:flex}.filter-toggle.active{color:#ffb5b5;background:#ff6b6b12;border-color:#ff6b6b59}.result-count{color:#738ba3;padding:0 8px;font-size:9px}.result-count b{color:#dceaf7}.knowledge-table-panel{padding:18px}.knowledge-table{border:1px solid var(--line);border-radius:10px;overflow:hidden}.knowledge-row{text-align:left;color:#cbd8e5;cursor:pointer;background:#0a172785;border:0;border-bottom:1px solid #3e5c7b52;grid-template-columns:1.2fr .8fr 1.8fr .55fr .75fr;align-items:center;gap:9px;width:100%;min-width:0;padding:11px;font-size:8.5px;display:grid}.knowledge-row:last-child{border-bottom:0}.knowledge-row:not(.knowledge-head):hover{background:#36c7bd09}.knowledge-head{color:#788fa7;cursor:default;background:#07111f8c;font-size:7.5px}.knowledge-row b,.knowledge-row small{display:block}.knowledge-row b{color:#edf6ff;font-size:9.5px}.knowledge-row small{margin-top:3px;font-size:7px}.parameter-cell{color:#91a7bc;text-overflow:ellipsis;white-space:nowrap;line-height:1.45;overflow:hidden}.empty-search{text-align:center;color:#6e859d;align-content:center;place-items:center;gap:8px;min-height:350px;display:grid}.empty-search h3,.empty-search p{margin:0}.empty-search h3{color:#dce8f5;font-size:14px}.empty-search p{font-size:9px}.rule-library-grid,.case-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.rule-library-card,.case-library-card{padding:15px}.rule-library-head{grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;display:grid}.rule-library-head>span{color:#93a7ff;background:#5a7cff1a;border-radius:9px;place-items:center;width:33px;height:33px;display:grid}.rule-library-head b,.rule-library-head small{display:block}.rule-library-head b{font-size:9px}.rule-library-head small{margin-top:2px;font-size:6.8px}.rule-library-card h3{margin:12px 0 6px;font-size:12px}.rule-library-card>p{min-height:46px;color:var(--text-secondary);margin:0;font-size:8px;line-height:1.55}.rule-hit{background:#07111f57;border-radius:7px;justify-content:space-between;margin:11px 0;padding:8px;font-size:8px;display:flex}.rule-hit span{color:var(--text-secondary)}.case-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.case-library-card.featured{background:linear-gradient(145deg,#113438d1,#0b1b2cf0);border-color:#3ddc9759}.case-cover{color:#9ab0ff;background:linear-gradient(135deg,#5a7cff1f,#36c7bd0f);border-radius:9px;align-items:flex-start;gap:7px;height:68px;padding:12px;display:flex}.case-cover>span{font-size:10px;font-weight:800}.case-cover .tag{margin-left:auto;font-size:6.5px}.case-library-card h3{min-height:36px;margin:11px 0 5px;font-size:11px;line-height:1.45}.case-library-card>p{color:var(--text-secondary);margin:0 0 8px;font-size:8px}.case-material-count{color:#849ab0;align-items:center;gap:6px;margin:10px 0;font-size:8px;display:flex}.case-material-count b{color:#dfe9f4;margin-left:auto}.document-page{max-width:none}.document-toolbar{justify-content:space-between;align-items:center;gap:20px;margin-bottom:13px;display:flex}.document-toolbar>div,.document-toolbar>div:first-child>div{align-items:center;gap:8px;display:flex}.document-toolbar>div:first-child{display:block}.document-toolbar svg{color:var(--brand)}.document-toolbar strong,.document-toolbar small{display:block}.document-toolbar strong{font-size:11px}.document-toolbar small{margin-top:2px;font-size:8px}.document-layout{grid-template-columns:190px minmax(560px,1fr) 205px;align-items:start;gap:14px;display:grid}.document-outline{border:1px solid var(--line);background:#0d1b2e;border-radius:12px;gap:4px;padding:14px;display:grid;position:sticky;top:76px}.document-outline>strong{margin-bottom:7px;font-size:11px}.document-outline>button{text-align:left;color:#8298af;cursor:pointer;background:0 0;border:0;border-radius:7px;grid-template-columns:20px 1fr;gap:6px;padding:7px;font-size:7.5px;line-height:1.4;display:grid}.document-outline>button span{color:#53708d;font-size:7px}.document-outline>button.active,.document-outline>button:hover{color:#effffd;background:#36c7bd12}.document-outline>button.active span{color:var(--brand)}.document-status-card{color:#7de3ae;background:#3ddc970f;border:1px solid #3ddc9729;border-radius:8px;gap:5px;margin-top:10px;padding:10px;display:grid}.document-status-card strong{font-size:8.5px}.document-status-card p{color:#839aaf;margin:0;font-size:7px;line-height:1.45}.document-paper{width:100%;max-width:820px;min-height:1120px;color:var(--paper-text);background:var(--paper);border-radius:3px;margin:0 auto;padding:46px 54px 35px;box-shadow:0 24px 65px #00000059}.paper-header{border-bottom:1px solid #d9e4e8;justify-content:space-between;align-items:center;padding-bottom:16px;display:flex}.paper-brand{align-items:center;gap:9px;display:flex}.paper-logo{background:#fff;border:1px solid #d9e4e8;border-radius:8px;place-items:center;width:33px;height:33px;display:grid;overflow:hidden}.paper-logo img{object-fit:contain;width:100%;height:100%;display:block}.paper-brand b,.paper-brand small{display:block}.paper-brand b{font-size:11px}.paper-brand small{color:#71828e;letter-spacing:.08em;margin-top:1px;font-size:6px}.document-paper .tag-neutral{color:#61717b;background:#f2f5f7;border-color:#dbe3e8}.paper-title{text-align:center;padding:38px 0 27px}.paper-title>span{color:#127d77;letter-spacing:.05em;font-size:11px;font-weight:700}.paper-title h1{letter-spacing:.12em;margin:7px 0 9px;font-size:30px}.paper-title p{color:#788894;margin:0;font-size:8px}.paper-meta{border:1px solid #dce4e9;border-radius:7px;grid-template-columns:1fr 1fr;margin-bottom:20px;display:grid;overflow:hidden}.paper-meta>div{border-bottom:1px solid #e3e9ed;grid-template-columns:68px 1fr;gap:8px;padding:9px 11px;font-size:8px;display:grid}.paper-meta>div:nth-child(odd){border-right:1px solid #e3e9ed}.paper-meta>div:nth-last-child(-n+2){border-bottom:0}.paper-meta span{color:#73838e}.paper-meta b{font-weight:600}.paper-callout{color:#0b665f;background:#eaf8f6;border-left:4px solid #24aa9f;border-radius:5px;align-items:center;gap:11px;margin-bottom:24px;padding:14px;display:flex}.paper-callout span,.paper-callout strong{display:block}.paper-callout span{margin-bottom:3px;font-size:7px}.paper-callout strong{font-size:9px}.document-paper section{margin:0 0 24px;scroll-margin-top:75px}.document-paper section h2{border-bottom:1px solid #dfe6ea;align-items:center;gap:9px;margin-bottom:10px;padding-bottom:7px;font-size:13px;display:flex}.document-paper section h2 span{color:#fff;background:#197f78;border-radius:6px;place-items:center;width:23px;height:23px;font-size:7px;display:grid}.document-paper section p,.document-paper section li{color:#334451;font-size:8.5px;line-height:1.8}.document-paper section ol{padding-left:20px}.document-paper table{border-collapse:collapse;width:100%;margin-top:10px;font-size:7.5px}.document-paper th{color:#31515a;background:#eaf3f3}.document-paper th,.document-paper td{text-align:left;border:1px solid #dce5e8;padding:7px 8px}.paper-success{color:#08775b;font-weight:700}.paper-warning{background:#fff6e8;border-left:3px solid #e6a139;border-radius:4px;margin-bottom:10px;padding:10px 12px}.paper-warning strong{color:#9a6516;font-size:8px}.paper-warning p{margin:4px 0 0}.paper-case{background:#f4f7fb;border:1px solid #dfe6ed;border-radius:6px;padding:13px}.paper-case span{color:#18766f;font-size:7px;font-weight:700}.paper-case h3{margin:5px 0 4px;font-size:10px}.paper-case p{margin:0}.paper-evidence{padding-top:4px}.evidence-chips{gap:5px;display:grid}.evidence-chips span{color:#435764;background:#f3f6f8;border-radius:4px;padding:7px;font-size:7px}.paper-footer{color:#7e8d96;border-top:1px solid #dfe6e9;justify-content:space-between;margin-top:35px;padding-top:12px;font-size:6.5px;display:flex}.document-side{gap:10px;display:grid;position:sticky;top:76px}.document-side .panel{padding:14px}.document-side h3{margin:4px 0 12px;font-size:11px}.delivery-item{border-bottom:1px solid var(--line);grid-template-columns:23px 1fr;align-items:center;gap:8px;padding:8px 0;display:grid}.delivery-item>svg{border-radius:50%;width:21px;height:21px;padding:5px}.delivery-item.done>svg{color:#06291a;background:var(--success)}.delivery-item.pending>svg{color:#2a210f;background:var(--warning)}.delivery-item b,.delivery-item small{display:block}.delivery-item b{font-size:8.5px}.delivery-item small{margin-top:2px;font-size:7px}.document-side .button{margin-top:12px;font-size:8px}.human-review svg{color:var(--warning)}.human-review p{color:var(--text-secondary);margin:0;font-size:7.5px;line-height:1.55}@media (width<=1280px){.page-container{padding-left:18px;padding-right:18px}.cockpit-layout{grid-template-columns:190px minmax(0,1fr) 280px;gap:9px}.stage-content{padding:13px}.candidate-row{grid-template-columns:20px minmax(90px,1.2fr) 52px minmax(85px,.8fr) 65px}.part-card-grid{grid-template-columns:1fr}.part-card{grid-template-columns:180px 1fr;gap:10px;display:grid}.part-card-head{border-bottom:0;border-right:1px solid var(--line);padding-right:10px}.source-line{grid-column:1/-1}.parameter-grid{grid-template-columns:repeat(3,1fr);gap:5px;margin:0}.parameter-grid>div{background:#07111f33;border:0;border-radius:5px;gap:3px;padding:5px;display:grid}.document-layout{grid-template-columns:170px minmax(520px,1fr) 185px}.document-paper{padding-left:42px;padding-right:42px}.case-library-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=1080px){.app-shell{grid-template-columns:72px minmax(0,1fr)}.brand-lockup>div:last-child,.environment-pill,.nav-item span,.nav-arrow,.sidebar-assets,.sidebar-footer{display:none}.brand-lockup{justify-content:center;padding:0 0 18px}.sidebar-nav{place-items:center}.nav-item{justify-content:center;width:42px;padding:11px}.result-summary-bar{left:90px}.dashboard-grid{grid-template-columns:1fr}.cockpit-layout{grid-template-columns:180px minmax(0,1fr)}.evidence-sidebar{grid-column:1/-1;min-height:360px}.evidence-timeline{max-height:210px}.quick-questions{grid-template-columns:repeat(5,1fr)}.document-layout{grid-template-columns:160px minmax(500px,1fr)}.document-side{grid-column:1/-1;grid-template-columns:1fr 1fr;display:grid;position:static}}@media (width<=760px){.app-shell{display:block}.sidebar{display:none}.topbar{padding:0 13px}.mobile-menu{display:inline-grid!important}.topbar-context span,.role-select>span{display:none}.page-container{padding:14px 12px 30px}.dashboard-hero{padding:24px}.hero-orbit{display:none}.asset-grid{grid-template-columns:1fr 1fr}.risk-content{grid-template-columns:1fr}.risk-chart{border:0;border-top:1px solid var(--line);padding:14px 0 0}.capability-flow{grid-template-columns:1fr 1fr}.capability-step{border-bottom:1px solid var(--line)}.task-form-grid{grid-template-columns:1fr}.task-side-column{position:static}.page-heading{display:block}.heading-badge{margin-top:14px}.cockpit-header{display:block}.cockpit-actions{margin-top:10px}.cockpit-layout{display:block}.stage-sidebar,.stage-content{margin-bottom:9px}.stage-button{grid-template-columns:25px 1fr 13px}.part-card{display:block}.part-card-head{border-right:0;border-bottom:1px solid var(--line)}.parameter-grid{grid-template-columns:1fr 1fr;margin-top:8px}.normalization-panel,.normalization-list{display:grid}.rule-summary{grid-template-columns:1fr 1fr}.bom-impact{grid-template-columns:1fr 24px 1fr}.impact-metrics{grid-column:1/-1}.output-document-card,.knowledge-draft{grid-template-columns:1fr}.doc-art{display:none}.result-summary-bar{flex-wrap:wrap;margin-top:10px;position:static}.summary-stats{order:3;justify-content:space-between;width:100%}.knowledge-heading,.knowledge-overview{display:block}.knowledge-overview{margin-top:12px}.knowledge-overview>div{margin-top:6px}.knowledge-tabs{overflow-x:auto}.knowledge-tabs button{min-width:150px}.knowledge-toolbar{flex-wrap:wrap}.search-box{width:100%}.knowledge-row{grid-template-columns:1.2fr .7fr .7fr}.knowledge-row>span:nth-child(2),.knowledge-row>span:nth-child(3){display:none}.rule-library-grid,.case-library-grid{grid-template-columns:1fr}.document-toolbar{display:block}.document-toolbar>div:last-child{flex-wrap:wrap;margin-top:10px}.document-layout{display:block}.document-outline,.document-side{display:none}.document-paper{min-height:0;padding:30px 22px}.paper-meta{grid-template-columns:1fr}.paper-meta>div{border-bottom:1px solid #e3e9ed!important;border-right:0!important}.paper-meta>div:last-child{border-bottom:0!important}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media print{@page{size:A4 portrait;margin:14mm}body{background:#fff!important}.sidebar,.topbar,.document-toolbar,.document-outline,.document-side,.toast{display:none!important}.app-shell,.app-main,.page-container,.document-layout,.document-page{background:#fff!important;width:auto!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important}.document-paper{width:auto!important;max-width:none!important;min-height:0!important;box-shadow:none!important;margin:0!important;padding:0!important}.document-paper section,.document-paper table{break-inside:avoid}}.graph-page{gap:14px;display:grid}.graph-head-side{align-items:center;gap:12px;display:flex}.graph-stats{gap:8px;display:flex}.graph-stats>div{text-align:center;border:1px solid var(--line);background:#10243a;border-radius:10px;min-width:86px;padding:10px 12px}.graph-stats b{color:#eaf6ff;font-variant-numeric:tabular-nums;font-size:18px;display:block}.graph-stats span{color:var(--text-secondary);font-size:9.5px}.graph-stage{background:radial-gradient(circle at 20% 15%,#5a7cff14,#0000 32%),radial-gradient(circle at 82% 78%,#36c7bd12,#0000 30%),radial-gradient(1.5px 1.5px at 12% 32%,#ffffff80,#0000 60%),radial-gradient(1px 1px at 68% 18%,#fff6,#0000 60%),radial-gradient(1.2px 1.2px at 42% 72%,#ffffff59,#0000 60%),radial-gradient(1px 1px at 88% 46%,#fff6,#0000 60%),#081120;border:1px solid #3e5c7b70;border-radius:14px;position:relative;overflow:hidden}.graph-svg{width:100%;height:auto;display:block}.graph-ring{fill:none;stroke:#6080a32e;stroke-dasharray:3 6}.graph-edge{fill:none;stroke-dasharray:1;stroke-dashoffset:1px;animation:.9s forwards graph-edge-draw;animation-delay:var(--d)}@keyframes graph-edge-draw{to{stroke-dashoffset:0}}.graph-node{opacity:0;cursor:pointer;transform-box:fill-box;transform-origin:50%;animation:.7s cubic-bezier(.2,.8,.3,1.15) forwards graph-node-in;animation-delay:var(--d)}@keyframes graph-node-in{0%{opacity:0;transform:scale(.25)}to{opacity:1;transform:scale(1)}}.graph-fade{opacity:0;animation:.8s forwards graph-fade-in;animation-delay:var(--d)}@keyframes graph-fade-in{to{opacity:1}}.graph-center-circle{fill:#12243b;stroke:#36c7bd8c;stroke-width:1.5px}.graph-center-num{fill:#eafffd;text-anchor:middle;font-size:26px;font-weight:800}.graph-center-label{fill:#7597a8;text-anchor:middle;font-size:10px}.graph-cat-label{text-anchor:middle;font-size:12px;font-weight:700}.graph-code-label{fill:#cfe0f2;text-anchor:middle;font-size:10.5px;font-weight:600}.graph-risk-label{text-anchor:middle;font-size:10px;font-weight:700}.graph-legend{border:1px solid var(--line);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0a1626d1;border-radius:10px;gap:7px;padding:12px 14px;display:grid;position:absolute;bottom:14px;left:16px}.graph-legend strong{color:#adbed1;font-size:10px}.graph-legend>div{flex-wrap:wrap;gap:6px 12px;display:flex}.graph-legend span{color:#9fb1c7;align-items:center;gap:6px;font-size:9.5px;display:inline-flex}.graph-legend i{border-radius:50%;width:8px;height:8px}.graph-legend i.dash{border-radius:2px;width:14px;height:3px}.graph-legend small{color:#677d96;font-size:9px}.graph-detail{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0c192bf0;border:1px solid #29425f;border-radius:12px;width:300px;max-height:calc(100% - 28px);padding:14px;animation:.22s ease-out drawer-in;position:absolute;top:14px;right:14px;overflow:auto}.graph-detail-head{align-items:center;gap:8px;display:flex}.graph-detail-head svg{color:var(--brand)}.graph-detail-head strong{flex:1;font-size:14px}.graph-detail-head .icon-button{width:28px;height:28px}.graph-detail-name{color:var(--text-secondary);margin:8px 0;font-size:11px}.graph-detail-tags{gap:6px;margin-bottom:10px;display:flex}.graph-detail .detail-list{margin-bottom:0}.graph-detail-note{color:#ffd181;background:#f3b64d14;border:1px solid #f3b64d40;border-radius:8px;margin-top:10px;padding:9px 10px;font-size:10px;line-height:1.6}.graph-cat-members{gap:6px;display:grid}.graph-cat-members button{color:#dfeaff;border:1px solid var(--line);cursor:pointer;background:#ffffff08;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:9px 10px;font-size:11px;font-weight:700;display:flex}.graph-cat-members small{color:var(--text-secondary);font-weight:400}@media (width<=1080px){.graph-head-side{flex-direction:column;align-items:flex-end}}@media (width<=760px){.graph-detail{width:calc(100% - 28px)}.graph-head-side{align-items:flex-start}}.nl-hint{color:#7f96af;align-items:center;gap:7px;margin:0 0 11px;font-size:9.5px;display:flex}.nl-examples{flex-wrap:wrap;gap:6px;margin-bottom:11px;display:flex}.nl-examples button{color:#8da3ba;cursor:pointer;background:#ffffff06;border:1px solid #263d58;border-radius:99px;padding:6px 10px;font-size:8.5px;transition:all .15s}.nl-examples button:hover{color:#dff7f5;background:#36c7bd0d;border-color:#35625f}.nl-input{grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;display:grid}.nl-input textarea{resize:vertical;color:#dce9f6;border:1px solid var(--line);min-width:0;min-height:78px;font:inherit;background:#0a1727;border-radius:10px;padding:10px 12px;font-size:10.5px;line-height:1.7}.nl-input textarea::placeholder{color:#5c7590}.nl-input .button{align-self:end}.nl-feedback{border-radius:8px;margin-top:10px;padding:9px 11px;font-size:9.5px}.nl-feedback.ok{color:#7de3ae;background:#3ddc9712;border:1px solid #3ddc9733}.nl-feedback.warn{color:#ffd181;background:#f3b64d12;border:1px solid #f3b64d38}
/*$vite$:1*/</style>
</head>
<body>
<div id="root"></div>
</body>
</html>